@feedmepos/ui-library 1.2.1 → 1.2.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.
Files changed (54) hide show
  1. package/dist/CHANGELOG.md +16 -0
  2. package/dist/federation/{FmDatePicker.vue_vue_type_script_setup_true_lang-DWy5lrL4.js → FmDatePicker.vue_vue_type_script_setup_true_lang-BHPtSsn3.js} +1 -1
  3. package/dist/federation/{FmDateRangePicker.vue_vue_type_script_setup_true_lang-BKBLFgkC.js → FmDateRangePicker.vue_vue_type_script_setup_true_lang-szNa-5fR.js} +1 -1
  4. package/dist/federation/FmDialog.vue_vue_type_script_setup_true_lang-879nDPWi.js +1 -0
  5. package/dist/federation/{FmFormGroup.vue_vue_type_script_setup_true_lang-DhAEpcUT.js → FmFormGroup.vue_vue_type_script_setup_true_lang-Szp5WL6v.js} +1 -1
  6. package/dist/federation/{FmGlobalSearch.vue_vue_type_script_setup_true_lang-2oFm5iPX.js → FmGlobalSearch.vue_vue_type_script_setup_true_lang-EFgPmICh.js} +1 -1
  7. package/dist/federation/{FmLabel.vue_vue_type_script_setup_true_lang-sMIW9VLt.js → FmLabel.vue_vue_type_script_setup_true_lang-T_r9I5bO.js} +1 -1
  8. package/dist/federation/{FmPageHead.vue_vue_type_script_setup_true_lang-2GClh-mz.js → FmPageHead.vue_vue_type_script_setup_true_lang-Cq5qDR6T.js} +1 -1
  9. package/dist/federation/{FmPhoneNumber.vue_vue_type_script_setup_true_lang-CLsImjZb.js → FmPhoneNumber.vue_vue_type_script_setup_true_lang-u-jaAgrD.js} +1 -1
  10. package/dist/federation/{FmPopover-Do-USmJ9.js → FmPopover-B6v_466y.js} +1 -1
  11. package/dist/federation/{FmRadioGroup.vue_vue_type_script_setup_true_lang-Cd9u81fp.js → FmRadioGroup.vue_vue_type_script_setup_true_lang-nvY40e1h.js} +1 -1
  12. package/dist/federation/{FmSearch.vue_vue_type_script_setup_true_lang-BcQ9Gbp5.js → FmSearch.vue_vue_type_script_setup_true_lang-CixIHNf5.js} +1 -1
  13. package/dist/federation/{FmTable.vue_vue_type_script_setup_true_lang-b7fQuonZ.js → FmTable.vue_vue_type_script_setup_true_lang-B7V3yOpX.js} +1 -1
  14. package/dist/federation/{FmTabs.vue_vue_type_script_setup_true_lang-CJAijXd0.js → FmTabs.vue_vue_type_script_setup_true_lang-CNHl6iM_.js} +1 -1
  15. package/dist/federation/{FmTextField.vue_vue_type_style_index_0_lang-CvU6DwNY.js → FmTextField.vue_vue_type_style_index_0_lang-ClFyLOeC.js} +1 -1
  16. package/dist/federation/{FmTimePicker.vue_vue_type_script_setup_true_lang-BmXHQ7Zs.js → FmTimePicker.vue_vue_type_script_setup_true_lang-BdFqUUbi.js} +1 -1
  17. package/dist/federation/{FmTimeRangePicker.vue_vue_type_script_setup_true_lang-D-JuJhHG.js → FmTimeRangePicker.vue_vue_type_script_setup_true_lang-B342S6v1.js} +1 -1
  18. package/dist/federation/{FmTooltip.vue_vue_type_script_setup_true_lang-DTbMQKoY.js → FmTooltip.vue_vue_type_script_setup_true_lang-CrlFrXs1.js} +1 -1
  19. package/dist/federation/{__federation_expose_FmDatePicker-H_W7z6TK.js → __federation_expose_FmDatePicker-BbGmCd2C.js} +1 -1
  20. package/dist/federation/{__federation_expose_FmDatePickerMobile-BM7QhbvX.js → __federation_expose_FmDatePickerMobile-DaDoLycr.js} +1 -1
  21. package/dist/federation/{__federation_expose_FmDateRangePicker-B-fMtlTp.js → __federation_expose_FmDateRangePicker-Chr_VqXA.js} +1 -1
  22. package/dist/federation/{__federation_expose_FmDateRangePickerMobile-WMoPHOP_.js → __federation_expose_FmDateRangePickerMobile-C0r7RmSw.js} +1 -1
  23. package/dist/federation/{__federation_expose_FmDialog-B21ZOG2x.js → __federation_expose_FmDialog-CU6-im7v.js} +1 -1
  24. package/dist/federation/{__federation_expose_FmFormGroup-LM7dsrkY.js → __federation_expose_FmFormGroup-DPEUxXcP.js} +1 -1
  25. package/dist/federation/{__federation_expose_FmGlobalSearch-BI5zA2nH.js → __federation_expose_FmGlobalSearch-DD6qVmmW.js} +1 -1
  26. package/dist/federation/{__federation_expose_FmLabel-DKJ6EjZr.js → __federation_expose_FmLabel-NA_H1VSm.js} +1 -1
  27. package/dist/federation/__federation_expose_FmMenu-1nhxW0J_.js +1 -0
  28. package/dist/federation/{__federation_expose_FmMenu-BH_ktwVS.css → __federation_expose_FmMenu-D-4UA1_t.css} +1 -1
  29. package/dist/federation/{__federation_expose_FmMenuDeprecated-tn86sQTh.js → __federation_expose_FmMenuDeprecated-CfgGtpVz.js} +1 -1
  30. package/dist/federation/{__federation_expose_FmPageHead-ClrKHcan.js → __federation_expose_FmPageHead-C85_X5cM.js} +1 -1
  31. package/dist/federation/{__federation_expose_FmPhoneNumber-Df79nr_0.js → __federation_expose_FmPhoneNumber-Dpksx3n7.js} +1 -1
  32. package/dist/federation/{__federation_expose_FmRadioGroup-WsLaJHof.js → __federation_expose_FmRadioGroup-D8f-uCBp.js} +1 -1
  33. package/dist/federation/{__federation_expose_FmSearch-CXla99Ft.js → __federation_expose_FmSearch-BVlqzf--.js} +1 -1
  34. package/dist/federation/{__federation_expose_FmSelect-DMHpyujH.js → __federation_expose_FmSelect-BioMILVo.js} +1 -1
  35. package/dist/federation/{__federation_expose_FmStepperField-BIorWXET.js → __federation_expose_FmStepperField-DSIEW3aK.js} +1 -1
  36. package/dist/federation/{__federation_expose_FmTab-hD2n6fuA.js → __federation_expose_FmTab-Dhp21g63.js} +1 -1
  37. package/dist/federation/{__federation_expose_FmTable-UtS-AwGW.js → __federation_expose_FmTable-DKEP2IJg.js} +1 -1
  38. package/dist/federation/{__federation_expose_FmTabs-Bk1A1VZp.js → __federation_expose_FmTabs-koR2744c.js} +1 -1
  39. package/dist/federation/{__federation_expose_FmTextField-BaVmowhl.js → __federation_expose_FmTextField-Davo-Mys.js} +1 -1
  40. package/dist/federation/{__federation_expose_FmTextarea-DBW8j3bW.js → __federation_expose_FmTextarea-F0iD2nx_.js} +1 -1
  41. package/dist/federation/{__federation_expose_FmTimePicker-xnUMNTcG.js → __federation_expose_FmTimePicker-ycpQnoGx.js} +1 -1
  42. package/dist/federation/{__federation_expose_FmTimeRangePicker-CfrRT3ur.js → __federation_expose_FmTimeRangePicker-BEKsxKP8.js} +1 -1
  43. package/dist/federation/{__federation_expose_FmTooltip-DQOjBEzE.js → __federation_expose_FmTooltip-D7gZ4oaY.js} +1 -1
  44. package/dist/federation/feedmepos-ui-components.js +1 -1
  45. package/dist/federation/floating-ui.vue-BgyyifUv.js +1 -0
  46. package/dist/federation/{index-OZLfcagb.js → index-BNkhSiB2.js} +1 -1
  47. package/dist/federation/{useInheritFormState-BS3s39k4.js → useInheritFormState-DReSoHxE.js} +1 -1
  48. package/dist/feedmepos-ui-library.js +31253 -31193
  49. package/dist/feedmepos-ui-library.umd.cjs +196 -196
  50. package/dist/style.css +1 -1
  51. package/package.json +1 -1
  52. package/dist/federation/FmDialog.vue_vue_type_script_setup_true_lang-CkH0ZE0q.js +0 -1
  53. package/dist/federation/__federation_expose_FmMenu-XrcUZO72.js +0 -1
  54. package/dist/federation/floating-ui.vue-DjkycLBz.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/ui-library",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1 +0,0 @@
1
- import{importShared as m,__tla as V}from"./__federation_fn_import-DzgSLNaX.js";import{_ as C,__tla as x}from"./FmDialogContent.vue_vue_type_script_setup_true_lang-aArQwa6a.js";import{F as $,__tla as z}from"./FmOverlay-DgS2AGto.js";import{__tla as F}from"./useBreakpoints-BoARERQ5.js";import{__tla as I}from"./useSnackbar-BBZda2PM.js";import{__tla as N}from"./useFormChild-CIMfi6hc.js";import{u as S,__tla as T}from"./useProxiedModel-tBxtSc23.js";let h,W=Promise.all([(()=>{try{return V}catch{}})(),(()=>{try{return x}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return T}catch{}})()]).then(async()=>{let c,l,r,d,i,s,a,u,_,p,y,f,v;({defineComponent:c}=await m("vue")),{renderSlot:l,openBlock:r,createElementBlock:d,createCommentVNode:i,unref:s,withCtx:a,createVNode:u,createBlock:_,Transition:p,Teleport:y,Fragment:f}=await m("vue"),{watch:v}=await m("vue"),h=c({__name:"FmDialog",props:{modelValue:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},minWidth:{default:280},closeButton:{type:Boolean,default:!0},zIndex:{default:void 0}},emits:["update:modelValue"],setup(w,{emit:b}){const g=w,k=b,o=S(g,"modelValue"),B=document.body.style.overflow;return v(()=>o,t=>{t?document.body.style.overflow="hidden":document.body.style.overflow=B}),(t,e)=>(r(),d(f,null,[t.$slots["dialog-button"]?(r(),d("div",{key:0,onClick:e[1]||(e[1]=n=>o.value=!0)},[l(t.$slots,"dialog-button",{onClick:e[0]||(e[0]=n=>o.value=!0)})])):i("",!0),(r(),_(y,{to:"body"},[u(p,{name:"fm-dialog"},{default:a(()=>[s(o)?(r(),_($,{key:0,"dismiss-away":t.overlay,"prevent-backdrop-event":!t.overlay,transparent:!t.overlay,"center-content":"","z-index":t.zIndex,onClose:e[3]||(e[3]=n=>k("update:modelValue",!1))},{default:a(()=>[u(C,{"close-button":t.closeButton,"min-width":t.minWidth,"model-value":s(o),"onUpdate:modelValue":e[2]||(e[2]=n=>o.value=n)},{"dialog-header":a(()=>[l(t.$slots,"dialog-header")]),"dialog-footer":a(()=>[l(t.$slots,"dialog-footer")]),default:a(()=>[l(t.$slots,"default")]),_:3},8,["close-button","min-width","model-value"])]),_:3},8,["dismiss-away","prevent-backdrop-event","transparent","z-index"])):i("",!0)]),_:3})]))],64))}})});export{h as _,W as __tla};
@@ -1 +0,0 @@
1
- import{importShared as y,__tla as K}from"./__federation_fn_import-DzgSLNaX.js";import{u as Q,o as R,f as W,s as X,a as Y,__tla as Z}from"./floating-ui.vue-DjkycLBz.js";import{M as A,b as ee}from"./provider-keys-nUDvvk3o.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";let H,ae=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return Z}catch{}})()]).then(async()=>{let w,r,u,d,c,i,m,P,x,C,v,I,b,M,p,o,f,B;({defineComponent:w}=await y("vue")),{renderSlot:r,createElementVNode:u,unref:d,normalizeStyle:c,openBlock:i,createElementBlock:m,createCommentVNode:P,Teleport:x,createBlock:C}=await y("vue"),{computed:v,inject:I,onMounted:b,onUnmounted:M,provide:p,ref:o,watch:f}=await y("vue"),B=w({__name:"FmMenu",props:{placement:{default:"bottom-start"},disabled:{type:Boolean,default:!1},trigger:{default:"click"},closeOnClick:{type:Boolean,default:!0},width:{default:void 0},maxHeight:{default:408},inPopover:{type:Boolean,default:!1},stopClickPropagation:{type:Boolean},zIndex:{default:99},offset:{}},emits:["menu-changed"],setup(L,{emit:N}){const l=L,O=N,h=o([]);let g;const E=o(),a=o(!1),n=o(!1),e=I(A,null),_=o(null),k=o(null),{floatingStyles:T}=Q(_,k,{middleware:[R({mainAxis:l.offset??(e?8:4),crossAxis:e?-12:0}),W({crossAxis:!1,fallbackStrategy:"initialPlacement"}),X()],placement:l.placement,whileElementsMounted:Y,strategy:"fixed"}),V=()=>{s.value==="hover"&&S()},F=t=>{if(l.stopClickPropagation&&t.stopPropagation(),!l.disabled){if(a.value){a.value=!1;return}s.value==="click"&&S()}},S=()=>{n.value=!0,a.value=!0,e==null||e.setChildId(g)},U=()=>{s.value==="hover"&&(n.value=!1)},q=()=>{n.value=!0},D=()=>{n.value=!1},G=()=>{l.closeOnClick&&setTimeout(()=>{a.value=!1,e==null||e.closeParent()},10)},J=v(()=>({mouseInMenu:n}));p(A,{register({injectProps:t}){return h.value=[...h.value,{injectProps:t}],h.value.length},closeParent(){e?(a.value=!1,e==null||e.closeParent()):a.value=s.value!=="click"},setChildId(t){E.value=t},mouseInChildId:E,trigger:l.trigger}),p(ee,{handleContentClick:G}),b(()=>{window.addEventListener("click",$),e&&(g=e.register({injectProps:J}))}),M(()=>{window.removeEventListener("click",$)}),f(()=>e==null?void 0:e.mouseInChildId.value,t=>{t!==g&&(a.value=!1)});const s=v(()=>e===null?l.trigger:"hover");f(()=>a.value,()=>O("menu-changed",a.value));const $=t=>{if(!a.value)return;const j=t.path||t.composedPath();for(const z of j)if(z==_.value||z==k.value)return;a.value=!1};return(t,j)=>(i(),m("div",null,[u("div",{ref_key:"anchorEl",ref:_,class:"fm-menu",onClick:F,onMouseenter:V,onMouseleave:U},[r(t.$slots,"menu-button",{},void 0,!0)],544),(i(),C(x,{disabled:!!d(e)||t.inPopover,to:"body"},[a.value?(i(),m("div",{key:0,id:"fm-menu",ref_key:"menuEl",ref:k,style:c({...d(T),zIndex:l.zIndex}),class:"block",onMouseenter:q,onMouseleave:D},[r(t.$slots,"menu-wrapper",{},()=>[u("div",{style:c({"max-height":`${t.maxHeight}px`,width:`${t.width}px`}),class:"fm-menu__wrapper"},[r(t.$slots,"default",{},void 0,!0)],4)],!0)],36)):P("",!0)],8,["disabled"]))]))}}),H=te(B,[["__scopeId","data-v-94de06e0"]])});export{ae as __tla,H as default};
@@ -1 +0,0 @@
1
- import{__tla as xe}from"./index-C0owMrfd.js";import{bK as q,ad as M,bB as tt,bE as be,ba as yt,bq as Re,bx as Ee,bD as X}from"./runtime-core.esm-bundler-CYLvGb8-.js";let Vt,Mt,_t,zt,Nt,$t,Le=Promise.all([(()=>{try{return xe}catch{}})()]).then(async()=>{const $=Math.min,_=Math.max,et=Math.round,nt=Math.floor,B=t=>({x:t,y:t}),It={left:"right",right:"left",bottom:"top",top:"bottom"},jt={start:"end",end:"start"};function st(t,e,n){return _(t,$(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function z(t){return t.split("-")[0]}function U(t){return t.split("-")[1]}function vt(t){return t==="x"?"y":"x"}function ct(t){return t==="y"?"height":"width"}function ot(t){return["top","bottom"].includes(z(t))?"y":"x"}function ut(t){return vt(ot(t))}function qt(t,e,n){n===void 0&&(n=!1);const o=U(t),i=ut(t),l=ct(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[l]>e.floating[l]&&(r=it(r)),[r,it(r)]}function Xt(t){const e=it(t);return[ft(t),e,ft(e)]}function ft(t){return t.replace(/start|end/g,e=>jt[e])}function Yt(t,e,n){const o=["left","right"],i=["right","left"],l=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?l:r;default:return[]}}function Ut(t,e,n,o){const i=U(t);let l=Yt(z(t),n==="start",o);return i&&(l=l.map(r=>r+"-"+i),e&&(l=l.concat(l.map(ft)))),l}function it(t){return t.replace(/left|right|bottom|top/g,e=>It[e])}function Gt(t){return{top:0,right:0,bottom:0,left:0,...t}}function wt(t){return typeof t!="number"?Gt(t):{top:t,right:t,bottom:t,left:t}}function rt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function xt(t,e,n){let{reference:o,floating:i}=t;const l=ot(e),r=ut(e),a=ct(r),s=z(e),c=l==="y",f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,h=o[a]/2-i[a]/2;let u;switch(s){case"top":u={x:f,y:o.y-i.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:d};break;case"left":u={x:o.x-i.width,y:d};break;default:u={x:o.x,y:o.y}}switch(U(e)){case"start":u[r]-=h*(n&&c?-1:1);break;case"end":u[r]+=h*(n&&c?-1:1);break}return u}const Jt=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:l=[],platform:r}=n,a=l.filter(Boolean),s=await(r.isRTL==null?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:d}=xt(c,o,s),h=o,u={},m=0;for(let p=0;p<a.length;p++){const{name:y,fn:g}=a[p],{x:v,y:x,data:b,reset:R}=await g({x:f,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:u,rects:c,platform:r,elements:{reference:t,floating:e}});f=v??f,d=x??d,u={...u,[y]:{...u[y],...b}},R&&m<=50&&(m++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(c=R.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):R.rects),{x:f,y:d}=xt(c,h,s)),p=-1)}return{x:f,y:d,placement:h,strategy:i,middlewareData:u}};async function bt(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:l,rects:r,elements:a,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:u=0}=Y(e,t),m=wt(u),p=a[h?d==="floating"?"reference":"floating":d],y=rt(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(p)))==null||n?p:p.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),g=d==="floating"?{...r.floating,x:o,y:i}:r.reference,v=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a.floating)),x=await(l.isElement==null?void 0:l.isElement(v))?await(l.getScale==null?void 0:l.getScale(v))||{x:1,y:1}:{x:1,y:1},b=rt(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:v,strategy:s}):g);return{top:(y.top-b.top+m.top)/x.y,bottom:(b.bottom-y.bottom+m.bottom)/x.y,left:(y.left-b.left+m.left)/x.x,right:(b.right-y.right+m.right)/x.x}}const Kt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:l,platform:r,elements:a,middlewareData:s}=e,{element:c,padding:f=0}=Y(t,e)||{};if(c==null)return{};const d=wt(f),h={x:n,y:o},u=ut(i),m=ct(u),p=await r.getDimensions(c),y=u==="y",g=y?"top":"left",v=y?"bottom":"right",x=y?"clientHeight":"clientWidth",b=l.reference[m]+l.reference[u]-h[u]-l.floating[m],R=h[u]-l.reference[u],H=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let w=H?H[x]:0;(!w||!await(r.isElement==null?void 0:r.isElement(H)))&&(w=a.floating[x]||l.floating[m]);const D=b/2-R/2,V=w/2-p[m]/2-1,K=$(d[g],V),Q=$(d[v],V),O=K,Z=w-p[m]-Q,L=w/2-p[m]/2+D,S=st(O,L,Z),P=!s.arrow&&U(i)!=null&&L!==S&&l.reference[m]/2-(L<O?K:Q)-p[m]/2<0,W=P?L<O?L-O:L-Z:0;return{[u]:h[u]+W,data:{[u]:S,centerOffset:L-S-W,...P&&{alignmentOffset:W}},reset:P}}}),Qt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:l,rects:r,initialPlacement:a,platform:s,elements:c}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=Y(t,e);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const g=z(i),v=z(a)===a,x=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=h||(v||!p?[it(a)]:Xt(a));!h&&m!=="none"&&b.push(...Ut(a,p,m,x));const R=[a,...b],H=await bt(e,y),w=[];let D=((o=l.flip)==null?void 0:o.overflows)||[];if(f&&w.push(H[g]),d){const O=qt(i,r,x);w.push(H[O[0]],H[O[1]])}if(D=[...D,{placement:i,overflows:w}],!w.every(O=>O<=0)){var V,K;const O=(((V=l.flip)==null?void 0:V.index)||0)+1,Z=R[O];if(Z)return{data:{index:O,overflows:D},reset:{placement:Z}};let L=(K=D.filter(S=>S.overflows[0]<=0).sort((S,P)=>S.overflows[1]-P.overflows[1])[0])==null?void 0:K.placement;if(!L)switch(u){case"bestFit":{var Q;const S=(Q=D.map(P=>[P.placement,P.overflows.filter(W=>W>0).reduce((W,we)=>W+we,0)]).sort((P,W)=>P[1]-W[1])[0])==null?void 0:Q[0];S&&(L=S);break}case"initialPlacement":L=a;break}if(i!==L)return{reset:{placement:L}}}return{}}}};async function Zt(t,e){const{placement:n,platform:o,elements:i}=t,l=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=z(n),a=U(n),s=ot(n)==="y",c=["left","top"].includes(r)?-1:1,f=l&&s?-1:1,d=Y(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(u=a==="end"?m*-1:m),s?{x:u*f,y:h*c}:{x:h*c,y:u*f}}let Rt;zt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:l,placement:r,middlewareData:a}=e,s=await Zt(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+s.x,y:l+s.y,data:{...s,placement:r}}}}},Rt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:a={fn:y=>{let{x:g,y:v}=y;return{x:g,y:v}}},...s}=Y(t,e),c={x:n,y:o},f=await bt(e,s),d=ot(z(i)),h=vt(d);let u=c[h],m=c[d];if(l){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",v=u+f[y],x=u-f[g];u=st(v,u,x)}if(r){const y=d==="y"?"top":"left",g=d==="y"?"bottom":"right",v=m+f[y],x=m-f[g];m=st(v,m,x)}const p=a.fn({...e,[h]:u,[d]:m});return{...p,data:{x:p.x-n,y:p.y-o}}}}};function C(t){return dt(t)?(t.nodeName||"").toLowerCase():"#document"}function E(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function k(t){var e;return(e=(dt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function dt(t){return t instanceof Node||t instanceof E(t).Node}function F(t){return t instanceof Element||t instanceof E(t).Element}function A(t){return t instanceof HTMLElement||t instanceof E(t).HTMLElement}function Et(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof E(t).ShadowRoot}function G(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=T(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function te(t){return["table","td","th"].includes(C(t))}function mt(t){const e=pt(),n=T(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function ee(t){let e=I(t);for(;A(e)&&!lt(e);){if(mt(e))return e;e=I(e)}return null}function pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lt(t){return["html","body","#document"].includes(C(t))}function T(t){return E(t).getComputedStyle(t)}function at(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function I(t){if(C(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Et(t)&&t.host||k(t);return Et(e)?e.host:e}function Lt(t){const e=I(t);return lt(e)?t.ownerDocument?t.ownerDocument.body:t.body:A(e)&&G(e)?e:Lt(e)}function J(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Lt(t),l=i===((o=t.ownerDocument)==null?void 0:o.body),r=E(i);return l?e.concat(r,r.visualViewport||[],G(i)?i:[],r.frameElement&&n?J(r.frameElement):[]):e.concat(i,J(i,[],n))}function Tt(t){const e=T(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=A(t),l=i?t.offsetWidth:n,r=i?t.offsetHeight:o,a=et(n)!==l||et(o)!==r;return a&&(n=l,o=r),{width:n,height:o,$:a}}function ht(t){return F(t)?t:t.contextElement}function j(t){const e=ht(t);if(!A(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:l}=Tt(e);let r=(l?et(n.width):n.width)/o,a=(l?et(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const ne=B(0);function Ot(t){const e=E(t);return!pt()||!e.visualViewport?ne:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function oe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==E(t)?!1:e}function N(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),l=ht(t);let r=B(1);e&&(o?F(o)&&(r=j(o)):r=j(t));const a=oe(l,n,o)?Ot(l):B(0);let s=(i.left+a.x)/r.x,c=(i.top+a.y)/r.y,f=i.width/r.x,d=i.height/r.y;if(l){const h=E(l),u=o&&F(o)?E(o):o;let m=h,p=m.frameElement;for(;p&&o&&u!==m;){const y=j(p),g=p.getBoundingClientRect(),v=T(p),x=g.left+(p.clientLeft+parseFloat(v.paddingLeft))*y.x,b=g.top+(p.clientTop+parseFloat(v.paddingTop))*y.y;s*=y.x,c*=y.y,f*=y.x,d*=y.y,s+=x,c+=b,m=E(p),p=m.frameElement}}return rt({width:f,height:d,x:s,y:c})}const ie=[":popover-open",":modal"];function At(t){return ie.some(e=>{try{return t.matches(e)}catch{return!1}})}function re(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const l=i==="fixed",r=k(o),a=e?At(e.floating):!1;if(o===r||a&&l)return n;let s={scrollLeft:0,scrollTop:0},c=B(1);const f=B(0),d=A(o);if((d||!d&&!l)&&((C(o)!=="body"||G(r))&&(s=at(o)),A(o))){const h=N(o);c=j(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x,y:n.y*c.y-s.scrollTop*c.y+f.y}}function le(t){return Array.from(t.getClientRects())}function Dt(t){return N(k(t)).left+at(t).scrollLeft}function ae(t){const e=k(t),n=at(t),o=t.ownerDocument.body,i=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Dt(t);const a=-n.scrollTop;return T(o).direction==="rtl"&&(r+=_(e.clientWidth,o.clientWidth)-i),{width:i,height:l,x:r,y:a}}function se(t,e){const n=E(t),o=k(t),i=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,a=0,s=0;if(i){l=i.width,r=i.height;const c=pt();(!c||c&&e==="fixed")&&(a=i.offsetLeft,s=i.offsetTop)}return{width:l,height:r,x:a,y:s}}function ce(t,e){const n=N(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,l=A(t)?j(t):B(1),r=t.clientWidth*l.x,a=t.clientHeight*l.y,s=i*l.x,c=o*l.y;return{width:r,height:a,x:s,y:c}}function St(t,e,n){let o;if(e==="viewport")o=se(t,n);else if(e==="document")o=ae(k(t));else if(F(e))o=ce(e,n);else{const i=Ot(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return rt(o)}function Pt(t,e){const n=I(t);return n===e||!F(n)||lt(n)?!1:T(n).position==="fixed"||Pt(n,e)}function ue(t,e){const n=e.get(t);if(n)return n;let o=J(t,[],!1).filter(a=>F(a)&&C(a)!=="body"),i=null;const l=T(t).position==="fixed";let r=l?I(t):t;for(;F(r)&&!lt(r);){const a=T(r),s=mt(r);!s&&a.position==="fixed"&&(i=null),(l?!s&&!i:!s&&a.position==="static"&&i&&["absolute","fixed"].includes(i.position)||G(r)&&!s&&Pt(t,r))?o=o.filter(c=>c!==r):i=a,r=I(r)}return e.set(t,o),o}function fe(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const l=[...n==="clippingAncestors"?ue(e,this._c):[].concat(n),o],r=l[0],a=l.reduce((s,c)=>{const f=St(e,c,i);return s.top=_(f.top,s.top),s.right=$(f.right,s.right),s.bottom=$(f.bottom,s.bottom),s.left=_(f.left,s.left),s},St(e,r,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function de(t){const{width:e,height:n}=Tt(t);return{width:e,height:n}}function me(t,e,n){const o=A(e),i=k(e),l=n==="fixed",r=N(t,!0,l,e);let a={scrollLeft:0,scrollTop:0};const s=B(0);if(o||!o&&!l)if((C(e)!=="body"||G(i))&&(a=at(e)),o){const d=N(e,!0,l,e);s.x=d.x+e.clientLeft,s.y=d.y+e.clientTop}else i&&(s.x=Dt(i));const c=r.left+a.scrollLeft-s.x,f=r.top+a.scrollTop-s.y;return{x:c,y:f,width:r.width,height:r.height}}function Ct(t,e){return!A(t)||T(t).position==="fixed"?null:e?e(t):t.offsetParent}function kt(t,e){const n=E(t);if(!A(t)||At(t))return n;let o=Ct(t,e);for(;o&&te(o)&&T(o).position==="static";)o=Ct(o,e);return o&&(C(o)==="html"||C(o)==="body"&&T(o).position==="static"&&!mt(o))?n:o||ee(t)||n}const pe=async function(t){const e=this.getOffsetParent||kt,n=this.getDimensions;return{reference:me(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};function he(t){return T(t).direction==="rtl"}const ge={convertOffsetParentRelativeRectToViewportRelativeRect:re,getDocumentElement:k,getClippingRect:fe,getOffsetParent:kt,getElementRects:pe,getClientRects:le,getDimensions:de,getScale:j,isElement:F,isRTL:he};function ye(t,e){let n=null,o;const i=k(t);function l(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function r(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),l();const{left:c,top:f,width:d,height:h}=t.getBoundingClientRect();if(a||e(),!d||!h)return;const u=nt(f),m=nt(i.clientWidth-(c+d)),p=nt(i.clientHeight-(f+h)),y=nt(c),g={rootMargin:-u+"px "+-m+"px "+-p+"px "+-y+"px",threshold:_(0,$(1,s))||1};let v=!0;function x(b){const R=b[0].intersectionRatio;if(R!==s){if(!v)return r();R?r(!1,R):o=setTimeout(()=>{r(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(x,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,g)}n.observe(t)}return r(!0),l}Vt=function(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=o,c=ht(t),f=i||l?[...c?J(c):[],...J(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),l&&g.addEventListener("resize",n)});const d=c&&a?ye(c,n):null;let h=-1,u=null;r&&(u=new ResizeObserver(g=>{let[v]=g;v&&v.target===c&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=u)==null||x.observe(e)})),n()}),c&&!s&&u.observe(c),u.observe(e));let m,p=s?N(t):null;s&&y();function y(){const g=N(t);p&&(g.x!==p.x||g.y!==p.y||g.width!==p.width||g.height!==p.height)&&n(),p=g,m=requestAnimationFrame(y)}return n(),()=>{var g;f.forEach(v=>{i&&v.removeEventListener("scroll",n),l&&v.removeEventListener("resize",n)}),d==null||d(),(g=u)==null||g.disconnect(),u=null,s&&cancelAnimationFrame(m)}};let Ft,Ht;Nt=Rt,_t=Qt,Ft=Kt,Ht=(t,e,n)=>{const o=new Map,i={platform:ge,...n},l={...i.platform,_c:o};return Jt(t,e,{...i,platform:l})};function ve(t){return t!=null&&typeof t=="object"&&"$el"in t}function gt(t){if(ve(t)){const e=t.$el;return dt(e)&&C(e)==="#comment"?null:e}return t}Mt=function(t){return{name:"arrow",options:t,fn(e){const n=gt(q(t.element));return n==null?{}:Ft({element:n,padding:t.padding}).fn(e)}}};function Wt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Bt(t,e){const n=Wt(t);return Math.round(e*n)/n}$t=function(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=M(()=>{var w;return(w=q(n.open))!=null?w:!0}),l=M(()=>q(n.middleware)),r=M(()=>{var w;return(w=q(n.placement))!=null?w:"bottom"}),a=M(()=>{var w;return(w=q(n.strategy))!=null?w:"absolute"}),s=M(()=>{var w;return(w=q(n.transform))!=null?w:!0}),c=M(()=>gt(t.value)),f=M(()=>gt(e.value)),d=tt(0),h=tt(0),u=tt(a.value),m=tt(r.value),p=be({}),y=tt(!1),g=M(()=>{const w={position:u.value,left:"0",top:"0"};if(!f.value)return w;const D=Bt(f.value,d.value),V=Bt(f.value,h.value);return s.value?{...w,transform:"translate("+D+"px, "+V+"px)",...Wt(f.value)>=1.5&&{willChange:"transform"}}:{position:u.value,left:D+"px",top:V+"px"}});let v;function x(){c.value==null||f.value==null||Ht(c.value,f.value,{middleware:l.value,placement:r.value,strategy:a.value}).then(w=>{d.value=w.x,h.value=w.y,u.value=w.strategy,m.value=w.placement,p.value=w.middlewareData,y.value=!0})}function b(){typeof v=="function"&&(v(),v=void 0)}function R(){if(b(),o===void 0){x();return}if(c.value!=null&&f.value!=null){v=o(c.value,f.value,x);return}}function H(){i.value||(y.value=!1)}return yt([l,r,a],x,{flush:"sync"}),yt([c,f],R,{flush:"sync"}),yt(i,H,{flush:"sync"}),Re()&&Ee(b),{x:X(d),y:X(h),strategy:X(u),placement:X(m),middlewareData:X(p),isPositioned:X(y),floatingStyles:g,update:x}}});export{Le as __tla,Vt as a,Mt as b,_t as f,zt as o,Nt as s,$t as u};