@trintel/zooy 1.0.1-beta.1 → 1.0.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/README.md +4 -4
- package/dist/chunks/button--cIzwEQA.js +66 -0
- package/dist/chunks/button-i6QyRwAM.js +272 -0
- package/dist/chunks/{button-skeleton-BcyctpC3.js → button-skeleton-Bk2Vw5Mq.js} +1 -1
- package/dist/chunks/{button-skeleton-DEmHtnd8.js → button-skeleton-D2TeTVpP.js} +5 -5
- package/dist/chunks/checkbox-Dyh34VfG.js +201 -0
- package/dist/chunks/checkbox-atdz21pu.js +40 -0
- package/dist/chunks/{class-map-Dt10N9TS.js → class-map-CziJvhVR.js} +1 -1
- package/dist/chunks/{class-map-emHvptF6.js → class-map-hWNVHb09.js} +1 -1
- package/dist/chunks/collection-helpers-Bk68Vaau.js +7 -0
- package/dist/chunks/collection-helpers-afBvMQaC.js +1 -0
- package/dist/chunks/content-switcher-item-88PWpM2j.js +27 -0
- package/dist/chunks/content-switcher-item-CpNfKVu-.js +351 -0
- package/dist/chunks/defs-C88lSWuJ.js +1 -0
- package/dist/chunks/defs-Do0OvCKd.js +1165 -0
- package/dist/chunks/dropdown-item-CDbnp5_k.js +621 -0
- package/dist/chunks/dropdown-item-CRyAm4Ku.js +69 -0
- package/dist/chunks/{focus-Dty12qxz.js → focus-B3iymVyL.js} +1 -1
- package/dist/chunks/{focus-Cyj1QfBL.js → focus-WnKGH_xB.js} +1 -1
- package/dist/chunks/{icon-loader-C2EqV5wJ.js → icon-loader-C3acLKRm.js} +1 -1
- package/dist/chunks/{icon-loader-DS-X84Yz.js → icon-loader-CsKt-G8D.js} +1 -1
- package/dist/chunks/{icon-loader-utils-B6kq3DHp.js → icon-loader-utils-DKbXKLDh.js} +1 -1
- package/dist/chunks/{icon-loader-utils-BIiU-zGK.js → icon-loader-utils-DXGGCFfD.js} +1 -1
- package/dist/chunks/{if-defined--xXVpdta.js → if-defined-D2rCHx2p.js} +1 -1
- package/dist/chunks/{if-defined-CFTJFEK6.js → if-defined-uehgcl8e.js} +1 -1
- package/dist/chunks/if-non-empty-BEpfFFDX.js +1 -0
- package/dist/chunks/{if-non-empty-0zvrDGPr.js → if-non-empty-CcwduEjT.js} +1 -1
- package/dist/chunks/index--Q3NhIVC.js +26 -0
- package/dist/chunks/index-B16kSrMy.js +259 -0
- package/dist/chunks/index-B6vimuhF.js +74 -0
- package/dist/chunks/index-B8fGrrzJ.js +235 -0
- package/dist/chunks/index-BEDYiyp9.js +15 -0
- package/dist/chunks/{index-BKsBoGOO.js → index-BEyCs2cc.js} +147 -135
- package/dist/chunks/index-BIJ3miZu.js +103 -0
- package/dist/chunks/index-BIvyXnIe.js +62 -0
- package/dist/chunks/{index-C6SudlSp.js → index-BMJjuXme.js} +1 -1
- package/dist/chunks/{index-B3EmHaO7.js → index-BMNd2Qad.js} +5 -5
- package/dist/chunks/{index-TCPPpE9b.js → index-BMNv7Afr.js} +1 -1
- package/dist/chunks/index-BMzAaQhy.js +52 -0
- package/dist/chunks/index-BODxU-Mu.js +455 -0
- package/dist/chunks/{index-CZ2kGMvF.js → index-BPRteboN.js} +6 -6
- package/dist/chunks/{index-1G2UuijG.js → index-BTUYIkmg.js} +9 -9
- package/dist/chunks/index-BUcMLg1n.js +35 -0
- package/dist/chunks/index-BVpkxHll.js +15 -0
- package/dist/chunks/index-BWBjCDwY.js +79 -0
- package/dist/chunks/index-BYHXKkvf.js +381 -0
- package/dist/chunks/index-BeKAg3cB.js +65 -0
- package/dist/chunks/index-Bgo3KCFI.js +364 -0
- package/dist/chunks/{index-DXoeeipa.js → index-Bh3jqbKV.js} +6 -6
- package/dist/chunks/{index-Ci2M9li9.js → index-Bk2MEnMu.js} +181 -182
- package/dist/chunks/index-BlAm81hv.js +79 -0
- package/dist/chunks/index-Bp5LwA_m.js +75 -0
- package/dist/chunks/index-BqExj5O7.js +158 -0
- package/dist/chunks/index-BrqEja9V.js +452 -0
- package/dist/chunks/{index-h66Bp4Cx.js → index-BtPiuBUm.js} +1 -1
- package/dist/chunks/index-Bu6R2tix.js +22 -0
- package/dist/chunks/index-Bug3BjgA.js +71 -0
- package/dist/chunks/index-BwhAoVy-.js +254 -0
- package/dist/chunks/index-BxGUZ-qP.js +17 -0
- package/dist/chunks/index-ByNfpHAO.js +368 -0
- package/dist/chunks/index-Byf_K1x1.js +111 -0
- package/dist/chunks/index-C-P030e_.js +260 -0
- package/dist/chunks/{index-BhJiw5Wx.js → index-C1Eehpcx.js} +1 -1
- package/dist/chunks/index-C4GpRDm7.js +15 -0
- package/dist/chunks/{index-Bd60xpxv.js → index-C5b2680a.js} +1 -1
- package/dist/chunks/{index-Df3VILTD.js → index-C5s9Z5Ou.js} +4 -4
- package/dist/chunks/index-C9HJjC2j.js +3 -0
- package/dist/chunks/index-CFG5exAl.js +19 -0
- package/dist/chunks/index-CHIQ4wsM.js +57 -0
- package/dist/chunks/index-CO_QGXLN.js +881 -0
- package/dist/chunks/index-CPLpCt6z.js +30 -0
- package/dist/chunks/{index-CArtDXbg.js → index-CP_zaIyv.js} +1 -1
- package/dist/chunks/index-CPzh43Kr.js +45 -0
- package/dist/chunks/{index-B1YLd9rD.js → index-CTEnXoVq.js} +1 -1
- package/dist/chunks/{index-CmA3uuMd.js → index-CUI3NPWg.js} +1 -1
- package/dist/chunks/{index-CZwmnbDv.js → index-C_JOABLw.js} +1 -1
- package/dist/chunks/index-C_NhQPDA.js +27 -0
- package/dist/chunks/{index-Cl1_9l1N.js → index-CbiknV4d.js} +1 -1
- package/dist/chunks/{index-DEcgB0oH.js → index-CcK76f0I.js} +4 -4
- package/dist/chunks/{index-D1PpRn2p.js → index-Cd1j7Qp1.js} +40 -31
- package/dist/chunks/{index-LR7m5odx.js → index-Chyr-DU2.js} +3 -3
- package/dist/chunks/index-CjVvmbL6.js +22 -0
- package/dist/chunks/index-CsKII5mz.js +1 -0
- package/dist/chunks/index-CwpgmKTP.js +87 -0
- package/dist/chunks/index-CxJCioQg.js +77 -0
- package/dist/chunks/{index-CKBFfWOV.js → index-CyF5Kef-.js} +7 -7
- package/dist/chunks/index-CyR413wv.js +511 -0
- package/dist/chunks/{index-C3LD0iwa.js → index-CyvZ9jxn.js} +12 -12
- package/dist/chunks/index-Czs-UAWh.js +129 -0
- package/dist/chunks/{index-DocEKbBo.js → index-D-iqTNbL.js} +5 -5
- package/dist/chunks/index-D9nVgUNo.js +121 -0
- package/dist/chunks/{index-BJHILyIN.js → index-DDUqY4Rl.js} +3 -3
- package/dist/chunks/index-DEdeVoZn.js +42 -0
- package/dist/chunks/index-DEtGo4Q7.js +150 -0
- package/dist/chunks/{index-RlFlo7pl.js → index-DGvLgX2O.js} +1 -1
- package/dist/chunks/{index-cMdyiXPa.js → index-DGvVa-5J.js} +1 -1
- package/dist/chunks/index-DIg4fP-p.js +683 -0
- package/dist/chunks/index-DNkLJEg1.js +1604 -0
- package/dist/chunks/index-DPCfOgTU.js +89 -0
- package/dist/chunks/index-DPnGRDRl.js +1 -0
- package/dist/chunks/index-DQ4Y-fiZ.js +150 -0
- package/dist/chunks/{index-DkUS58Ay.js → index-DSMPUWJU.js} +14 -14
- package/dist/chunks/{index-Clei4V9i.js → index-DSgb2u7b.js} +1 -1
- package/dist/chunks/index-DTadLLRG.js +160 -0
- package/dist/chunks/index-DTtMSAgV.js +25 -0
- package/dist/chunks/index-DX2JlRat.js +12 -0
- package/dist/chunks/index-DZrmJ7Ll.js +243 -0
- package/dist/chunks/{index-CYg05Ph9.js → index-DdkIREYU.js} +4 -4
- package/dist/chunks/index-DkphY0sd.js +46 -0
- package/dist/chunks/index-Do9f8Pwe.js +45 -0
- package/dist/chunks/index-Dr4evLL7.js +414 -0
- package/dist/chunks/{index-BG3BMHhy.js → index-DwCXQC7X.js} +3 -3
- package/dist/chunks/index-DwDG_y9_.js +58 -0
- package/dist/chunks/index-F2zwTZm1.js +19 -0
- package/dist/chunks/index-HbS1lUW6.js +12 -0
- package/dist/chunks/index-LtB-4-X9.js +1 -0
- package/dist/chunks/index-QuyEX50y.js +49 -0
- package/dist/chunks/{index-CYpHcMws.js → index-WpBhhuED.js} +4 -4
- package/dist/chunks/{index-DQZqjZ8k.js → index-d0CqW2Cm.js} +7 -7
- package/dist/chunks/{index-C_Xg4nHN.js → index-el9l-ZQy.js} +7 -7
- package/dist/chunks/index-gfbRBI-d.js +1 -0
- package/dist/chunks/index-hhX-bWEv.js +252 -0
- package/dist/chunks/{index-Dl6HFhg1.js → index-jdx-M5Y-.js} +1 -1
- package/dist/chunks/index-nfJ9ioGW.js +406 -0
- package/dist/chunks/{index-BQNhvN2i.js → index-oS8XvY4G.js} +4 -4
- package/dist/chunks/index-t9TINCcm.js +563 -0
- package/dist/chunks/index-tQGRhvw0.js +337 -0
- package/dist/chunks/index-tdmIA8Xp.js +291 -0
- package/dist/chunks/index-w027CjA0.js +81 -0
- package/dist/chunks/index-wgp15jn2.js +188 -0
- package/dist/chunks/index-xipeWGGU.js +2 -0
- package/dist/chunks/{loading-icon-D7mJr3sa.js → loading-icon-CN-iehcR.js} +2 -2
- package/dist/chunks/{loading-icon-Bw73Z2Lq.js → loading-icon-q__8yLZw.js} +1 -1
- package/dist/chunks/main-BPWCMI5R.js +65 -0
- package/dist/chunks/{main-DTOZMPON.js → main-BywCEBtD.js} +1437 -1031
- package/dist/chunks/{property-C5teVlku.js → property-DCTz3KPt.js} +1 -1
- package/dist/chunks/{property-Coy6Dag6.js → property-DzfJpYmn.js} +1 -1
- package/dist/chunks/{register-BO2Fr57T.js → register-B4yRiHm6.js} +1 -1
- package/dist/chunks/register-C3XDWad0.js +1618 -0
- package/dist/chunks/{register-CHuMnx--.js → register-CyNp_638.js} +1 -1
- package/dist/chunks/register-DpOrINOx.js +1 -0
- package/dist/chunks/search-BCJx6Xft.js +240 -0
- package/dist/chunks/search-CzmoEHwa.js +30 -0
- package/dist/chunks/select-0jyl720Y.js +357 -0
- package/dist/chunks/select-DC0T8Fw_.js +76 -0
- package/dist/chunks/{settings-NO9fjW0P.js → settings-Bgpv8zuU.js} +2 -0
- package/dist/chunks/{settings-Dy9UPb4i.js → settings-jvP7vP60.js} +2 -0
- package/dist/chunks/{state-BFc9dfyj.js → state-BiEAGUqO.js} +1 -1
- package/dist/chunks/{state-C2XTwLOv.js → state-DJQLwKiU.js} +1 -1
- package/dist/chunks/text-input-BGuFqOdN.js +372 -0
- package/dist/chunks/text-input-BPvBDzky.js +68 -0
- package/dist/chunks/tooltip-content-BOefn0hU.js +3 -0
- package/dist/chunks/tooltip-content-CWdOnBaw.js +135 -0
- package/dist/chunks/{unsafe-html-H7RRvoR7.js → unsafe-html-Bi2pB4Lb.js} +1 -1
- package/dist/chunks/{unsafe-html-9YCxB3h1.js → unsafe-html-xqClX-6M.js} +1 -1
- package/dist/zooy.cjs.js +1 -1
- package/dist/zooy.es.js +11 -11
- package/package.json +2 -2
- package/src/sass/carbon.scss +78 -4
- package/src/sass/panels.scss +263 -377
- package/src/sass/split.scss +0 -13
- package/dist/chunks/button-CgQW6Alg.js +0 -272
- package/dist/chunks/button-CnwdjMNF.js +0 -66
- package/dist/chunks/checkbox-Bt024Adv.js +0 -40
- package/dist/chunks/checkbox-D2LeqAn8.js +0 -201
- package/dist/chunks/collection-helpers-BwUB2CEz.js +0 -8
- package/dist/chunks/collection-helpers-CYLIiyii.js +0 -1
- package/dist/chunks/content-switcher-item-D6gOZCuS.js +0 -351
- package/dist/chunks/content-switcher-item-Dtv8UD1x.js +0 -27
- package/dist/chunks/defs-DMmigODC.js +0 -1077
- package/dist/chunks/defs-DPD20sPK.js +0 -1
- package/dist/chunks/dropdown-item-BDRUe-IF.js +0 -621
- package/dist/chunks/dropdown-item-DNLmqxnr.js +0 -69
- package/dist/chunks/if-non-empty-BIwvmklX.js +0 -1
- package/dist/chunks/index-21j_5emj.js +0 -35
- package/dist/chunks/index-82K_ozYZ.js +0 -455
- package/dist/chunks/index-B4JPT-gj.js +0 -683
- package/dist/chunks/index-B5-56fkV.js +0 -62
- package/dist/chunks/index-B612bWya.js +0 -58
- package/dist/chunks/index-B8nOkbPA.js +0 -77
- package/dist/chunks/index-BAEdnwkZ.js +0 -25
- package/dist/chunks/index-BAMMtRO9.js +0 -214
- package/dist/chunks/index-BC-p6lrw.js +0 -337
- package/dist/chunks/index-BEOc7JG-.js +0 -16
- package/dist/chunks/index-BHWaezgU.js +0 -259
- package/dist/chunks/index-BNjgzCq_.js +0 -1
- package/dist/chunks/index-BTND2b3S.js +0 -19
- package/dist/chunks/index-BZmOT6Xm.js +0 -89
- package/dist/chunks/index-B_C9vt_w.js +0 -30
- package/dist/chunks/index-B_JMGygD.js +0 -188
- package/dist/chunks/index-Bl6sE0-K.js +0 -1
- package/dist/chunks/index-BmvLxuoI.js +0 -16
- package/dist/chunks/index-BwMEAhRr.js +0 -2
- package/dist/chunks/index-BwOJ4JFm.js +0 -1604
- package/dist/chunks/index-BzmpjZ1o.js +0 -26
- package/dist/chunks/index-C06cFvgb.js +0 -406
- package/dist/chunks/index-C4JzGVcF.js +0 -49
- package/dist/chunks/index-C5nYdcCH.js +0 -875
- package/dist/chunks/index-C6WHuZdF.js +0 -79
- package/dist/chunks/index-C8YWVLB0.js +0 -128
- package/dist/chunks/index-C8miW4lw.js +0 -364
- package/dist/chunks/index-CDNshf0_.js +0 -57
- package/dist/chunks/index-CFYfFa1Z.js +0 -235
- package/dist/chunks/index-CJZtiqY-.js +0 -22
- package/dist/chunks/index-CMD0FIe-.js +0 -41
- package/dist/chunks/index-COcNpxlj.js +0 -87
- package/dist/chunks/index-CUTw26ex.js +0 -368
- package/dist/chunks/index-CUd_43Fv.js +0 -414
- package/dist/chunks/index-CXgbBzE5.js +0 -252
- package/dist/chunks/index-C_S3O2rJ.js +0 -79
- package/dist/chunks/index-CbuopDOc.js +0 -1
- package/dist/chunks/index-CcxiTkam.js +0 -150
- package/dist/chunks/index-Ce9jg1n7.js +0 -15
- package/dist/chunks/index-CfLbYyk0.js +0 -3
- package/dist/chunks/index-CkMd-UJg.js +0 -52
- package/dist/chunks/index-Co5m8M3y.js +0 -12
- package/dist/chunks/index-CoPuejcu.js +0 -511
- package/dist/chunks/index-Cq6Vdh__.js +0 -215
- package/dist/chunks/index-Cwe1NunF.js +0 -46
- package/dist/chunks/index-D1OTs_P5.js +0 -1
- package/dist/chunks/index-D3ldTviC.js +0 -150
- package/dist/chunks/index-DBvXH68A.js +0 -26
- package/dist/chunks/index-DC7qmnoW.js +0 -74
- package/dist/chunks/index-DDRkmmQp.js +0 -156
- package/dist/chunks/index-DH9eR0DH.js +0 -32
- package/dist/chunks/index-DLUPGsWM.js +0 -71
- package/dist/chunks/index-D_pgjOiX.js +0 -81
- package/dist/chunks/index-DktSeVhc.js +0 -563
- package/dist/chunks/index-Dqe5xXlT.js +0 -160
- package/dist/chunks/index-DuGskRLI.js +0 -243
- package/dist/chunks/index-DyoG-yF-.js +0 -75
- package/dist/chunks/index-E_bjKqnf.js +0 -15
- package/dist/chunks/index-GRYR4d36.js +0 -394
- package/dist/chunks/index-H-w5fBQG.js +0 -65
- package/dist/chunks/index-HvLIPR2y.js +0 -291
- package/dist/chunks/index-OhwD9m-A.js +0 -12
- package/dist/chunks/index-XTPnXw_W.js +0 -45
- package/dist/chunks/index-ZyhwV5v-.js +0 -452
- package/dist/chunks/index-cFX6zBu4.js +0 -19
- package/dist/chunks/index-fghrBFfu.js +0 -103
- package/dist/chunks/index-wTRaGtNG.js +0 -45
- package/dist/chunks/index-wigDmvr8.js +0 -121
- package/dist/chunks/index-y_a1ZQAA.js +0 -111
- package/dist/chunks/main-A63e59aD.js +0 -67
- package/dist/chunks/register-B533U9U9.js +0 -1
- package/dist/chunks/register-ClkXTZwT.js +0 -1383
- package/dist/chunks/search-CsRC23Cp.js +0 -240
- package/dist/chunks/search-DsyFfaxl.js +0 -30
- package/dist/chunks/select-BoaR85ix.js +0 -76
- package/dist/chunks/select-CKe8zwIo.js +0 -357
- package/dist/chunks/text-input-BuK8MjZG.js +0 -68
- package/dist/chunks/text-input-D2BsjPTx.js +0 -372
- package/dist/chunks/tooltip-content-B6aAm7Zu.js +0 -3
- package/dist/chunks/tooltip-content-DXrPA6JW.js +0 -135
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const U=Math.min,C=Math.max,nt=Math.round,et=Math.floor,W=t=>({x:t,y:t}),Ht={left:"right",right:"left",bottom:"top",top:"bottom"},$t={start:"end",end:"start"};function _t(t,e,n){return C(t,U(e,n))}function G(t,e){return typeof t=="function"?t(e):t}function K(t){return t.split("-")[0]}function N(t){return t.split("-")[1]}function Mt(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}const zt=new Set(["top","bottom"]);function Y(t){return zt.has(K(t))?"y":"x"}function mt(t){return Mt(Y(t))}function Xt(t,e,n){n===void 0&&(n=!1);const o=N(t),i=mt(t),r=dt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=ot(s)),[s,ot(s)]}function Yt(t){const e=ot(t);return[ft(t),e,ft(e)]}function ft(t){return t.replace(/start|end/g,e=>$t[e])}const wt=["left","right"],yt=["right","left"],Ut=["top","bottom"],Vt=["bottom","top"];function jt(t,e,n){switch(t){case"top":case"bottom":return n?e?yt:wt:e?wt:yt;case"left":case"right":return e?Ut:Vt;default:return[]}}function Kt(t,e,n,o){const i=N(t);let r=jt(K(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(ft)))),r}function ot(t){return t.replace(/left|right|bottom|top/g,e=>Ht[e])}function qt(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ct(t){return typeof t!="number"?qt(t):{top:t,right:t,bottom:t,left:t}}function it(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function xt(t,e,n){let{reference:o,floating:i}=t;const r=Y(e),s=mt(e),l=dt(s),a=K(e),f=r==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let c;switch(a){case"top":c={x:u,y:o.y-i.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:d};break;case"left":c={x:o.x-i.width,y:d};break;default:c={x:o.x,y:o.y}}switch(N(e)){case"start":c[s]-=m*(n&&f?-1:1);break;case"end":c[s]+=m*(n&&f?-1:1);break}return c}const It=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=xt(f,o,a),m=o,c={},h=0;for(let g=0;g<l.length;g++){const{name:w,fn:p}=l[g],{x:y,y:b,data:v,reset:x}=await p({x:u,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:c,rects:f,platform:s,elements:{reference:t,floating:e}});u=y??u,d=b??d,c={...c,[w]:{...c[w],...v}},x&&h<=50&&(h++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(f=x.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):x.rects),{x:u,y:d}=xt(f,m,a)),g=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:c}};async function Ot(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:c=0}=G(e,t),h=Ct(c),w=l[m?d==="floating"?"reference":"floating":d],p=it(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:a})),y=d==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),v=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},x=it(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:a}):y);return{top:(p.top-x.top+h.top)/v.y,bottom:(x.bottom-p.bottom+h.bottom)/v.y,left:(p.left-x.left+h.left)/v.x,right:(x.right-p.right+h.right)/v.x}}const Jt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:a}=e,{element:f,padding:u=0}=G(t,e)||{};if(f==null)return{};const d=Ct(u),m={x:n,y:o},c=mt(i),h=dt(c),g=await s.getDimensions(f),w=c==="y",p=w?"top":"left",y=w?"bottom":"right",b=w?"clientHeight":"clientWidth",v=r.reference[h]+r.reference[c]-m[c]-r.floating[h],x=m[c]-r.reference[c],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let T=A?A[b]:0;(!T||!await(s.isElement==null?void 0:s.isElement(A)))&&(T=l.floating[b]||r.floating[h]);const $=v/2-x/2,B=T/2-g[h]/2-1,S=U(d[p],B),M=U(d[y],B),E=S,z=T-g[h]-M,R=T/2-g[h]/2+$,j=_t(E,R,z),_=!a.arrow&&N(i)!=null&&R!==j&&r.reference[h]/2-(R<E?S:M)-g[h]/2<0,D=_?R<E?R-E:R-z:0;return{[c]:m[c]+D,data:{[c]:j,centerOffset:R-j-D,..._&&{alignmentOffset:D}},reset:_}}}),Nt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:l,platform:a,elements:f}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...w}=G(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=K(i),y=Y(l),b=K(l)===l,v=await(a.isRTL==null?void 0:a.isRTL(f.floating)),x=m||(b||!g?[ot(l)]:Yt(l)),A=h!=="none";!m&&A&&x.push(...Kt(l,g,h,v));const T=[l,...x],$=await Ot(e,w),B=[];let S=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&B.push($[p]),d){const R=Xt(i,s,v);B.push($[R[0]],$[R[1]])}if(S=[...S,{placement:i,overflows:B}],!B.every(R=>R<=0)){var M,E;const R=(((M=r.flip)==null?void 0:M.index)||0)+1,j=T[R];if(j&&(!(d==="alignment"?y!==Y(j):!1)||S.every(L=>Y(L.placement)===y?L.overflows[0]>0:!0)))return{data:{index:R,overflows:S},reset:{placement:j}};let _=(E=S.filter(D=>D.overflows[0]<=0).sort((D,L)=>D.overflows[1]-L.overflows[1])[0])==null?void 0:E.placement;if(!_)switch(c){case"bestFit":{var z;const D=(z=S.filter(L=>{if(A){const X=Y(L.placement);return X===y||X==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(X=>X>0).reduce((X,Pt)=>X+Pt,0)]).sort((L,X)=>L[1]-X[1])[0])==null?void 0:z[0];D&&(_=D);break}case"initialPlacement":_=l;break}if(i!==_)return{reset:{placement:_}}}return{}}}},Qt=new Set(["left","top"]);async function Zt(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=K(n),l=N(n),a=Y(n)==="y",f=Qt.has(s)?-1:1,u=r&&a?-1:1,d=G(e,t);let{mainAxis:m,crossAxis:c,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(c=l==="end"?h*-1:h),a?{x:c*u,y:m*f}:{x:m*f,y:c*u}}const Gt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=e,a=await Zt(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:s}}}}},te=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:l}=e,{apply:a=()=>{},...f}=G(t,e),u=await Ot(e,f),d=K(i),m=N(i),c=Y(i)==="y",{width:h,height:g}=r.floating;let w,p;d==="top"||d==="bottom"?(w=d,p=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(p=d,w=m==="end"?"top":"bottom");const y=g-u.top-u.bottom,b=h-u.left-u.right,v=U(g-u[w],y),x=U(h-u[p],b),A=!e.middlewareData.shift;let T=v,$=x;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&($=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(T=y),A&&!m){const S=C(u.left,0),M=C(u.right,0),E=C(u.top,0),z=C(u.bottom,0);c?$=h-2*(S!==0||M!==0?S+M:C(u.left,u.right)):T=g-2*(E!==0||z!==0?E+z:C(u.top,u.bottom))}await a({...e,availableWidth:$,availableHeight:T});const B=await s.getDimensions(l.floating);return h!==B.width||g!==B.height?{reset:{rects:!0}}:{}}}};function st(){return typeof window<"u"}function Q(t){return St(t)?(t.nodeName||"").toLowerCase():"#document"}function O(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(St(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function St(t){return st()?t instanceof Node||t instanceof O(t).Node:!1}function F(t){return st()?t instanceof Element||t instanceof O(t).Element:!1}function P(t){return st()?t instanceof HTMLElement||t instanceof O(t).HTMLElement:!1}function bt(t){return!st()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof O(t).ShadowRoot}const ee=new Set(["inline","contents"]);function tt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=k(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!ee.has(i)}const ne=new Set(["table","td","th"]);function oe(t){return ne.has(Q(t))}const ie=[":popover-open",":modal"];function rt(t){return ie.some(e=>{try{return t.matches(e)}catch{return!1}})}const se=["transform","translate","scale","rotate","perspective"],re=["transform","translate","scale","rotate","perspective","filter"],le=["paint","layout","strict","content"];function ht(t){const e=gt(),n=F(t)?k(t):t;return se.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||re.some(o=>(n.willChange||"").includes(o))||le.some(o=>(n.contain||"").includes(o))}function ce(t){let e=V(t);for(;P(e)&&!J(e);){if(ht(e))return e;if(rt(e))return null;e=V(e)}return null}function gt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ae=new Set(["html","body","#document"]);function J(t){return ae.has(Q(t))}function k(t){return O(t).getComputedStyle(t)}function lt(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function V(t){if(Q(t)==="html")return t;const e=t.assignedSlot||t.parentNode||bt(t)&&t.host||H(t);return bt(e)?e.host:e}function Dt(t){const e=V(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:P(e)&&tt(e)?e:Dt(e)}function Z(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Dt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=O(i);if(r){const l=ut(s);return e.concat(s,s.visualViewport||[],tt(i)?i:[],l&&n?Z(l):[])}return e.concat(i,Z(i,[],n))}function ut(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Lt(t){const e=k(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=P(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=nt(n)!==r||nt(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function pt(t){return F(t)?t:t.contextElement}function I(t){const e=pt(t);if(!P(e))return W(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Lt(e);let s=(r?nt(n.width):n.width)/o,l=(r?nt(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const fe=W(0);function Ft(t){const e=O(t);return!gt()||!e.visualViewport?fe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ue(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==O(t)?!1:e}function q(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=pt(t);let s=W(1);e&&(o?F(o)&&(s=I(o)):s=I(t));const l=ue(r,n,o)?Ft(r):W(0);let a=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const m=O(r),c=o&&F(o)?O(o):o;let h=m,g=ut(h);for(;g&&o&&c!==h;){const w=I(g),p=g.getBoundingClientRect(),y=k(g),b=p.left+(g.clientLeft+parseFloat(y.paddingLeft))*w.x,v=p.top+(g.clientTop+parseFloat(y.paddingTop))*w.y;a*=w.x,f*=w.y,u*=w.x,d*=w.y,a+=b,f+=v,h=O(g),g=ut(h)}}return it({width:u,height:d,x:a,y:f})}function ct(t,e){const n=lt(t).scrollLeft;return e?e.left+n:q(H(t)).left+n}function kt(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-ct(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function de(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=H(o),l=e?rt(e.floating):!1;if(o===s||l&&r)return n;let a={scrollLeft:0,scrollTop:0},f=W(1);const u=W(0),d=P(o);if((d||!d&&!r)&&((Q(o)!=="body"||tt(s))&&(a=lt(o)),P(o))){const c=q(o);f=I(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const m=s&&!d&&!r?kt(s,a):W(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x+m.x,y:n.y*f.y-a.scrollTop*f.y+u.y+m.y}}function me(t){return Array.from(t.getClientRects())}function he(t){const e=H(t),n=lt(t),o=t.ownerDocument.body,i=C(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=C(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ct(t);const l=-n.scrollTop;return k(o).direction==="rtl"&&(s+=C(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}const vt=25;function ge(t,e){const n=O(t),o=H(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,a=0;if(i){r=i.width,s=i.height;const u=gt();(!u||u&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}const f=ct(o);if(f<=0){const u=o.ownerDocument,d=u.body,m=getComputedStyle(d),c=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(o.clientWidth-d.clientWidth-c);h<=vt&&(r-=h)}else f<=vt&&(r+=f);return{width:r,height:s,x:l,y:a}}const pe=new Set(["absolute","fixed"]);function we(t,e){const n=q(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=P(t)?I(t):W(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,a=i*r.x,f=o*r.y;return{width:s,height:l,x:a,y:f}}function Tt(t,e,n){let o;if(e==="viewport")o=ge(t,n);else if(e==="document")o=he(H(t));else if(F(e))o=we(e,n);else{const i=Ft(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return it(o)}function Bt(t,e){const n=V(t);return n===e||!F(n)||J(n)?!1:k(n).position==="fixed"||Bt(n,e)}function ye(t,e){const n=e.get(t);if(n)return n;let o=Z(t,[],!1).filter(l=>F(l)&&Q(l)!=="body"),i=null;const r=k(t).position==="fixed";let s=r?V(t):t;for(;F(s)&&!J(s);){const l=k(s),a=ht(s);!a&&l.position==="fixed"&&(i=null),(r?!a&&!i:!a&&l.position==="static"&&!!i&&pe.has(i.position)||tt(s)&&!a&&Bt(t,s))?o=o.filter(u=>u!==s):i=l,s=V(s)}return e.set(t,o),o}function xe(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?rt(e)?[]:ye(e,this._c):[].concat(n),o],l=s[0],a=s.reduce((f,u)=>{const d=Tt(e,u,i);return f.top=C(d.top,f.top),f.right=U(d.right,f.right),f.bottom=U(d.bottom,f.bottom),f.left=C(d.left,f.left),f},Tt(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function be(t){const{width:e,height:n}=Lt(t);return{width:e,height:n}}function ve(t,e,n){const o=P(e),i=H(e),r=n==="fixed",s=q(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=W(0);function f(){a.x=ct(i)}if(o||!o&&!r)if((Q(e)!=="body"||tt(i))&&(l=lt(e)),o){const c=q(e,!0,r,e);a.x=c.x+e.clientLeft,a.y=c.y+e.clientTop}else i&&f();r&&!o&&i&&f();const u=i&&!o&&!r?kt(i,l):W(0),d=s.left+l.scrollLeft-a.x-u.x,m=s.top+l.scrollTop-a.y-u.y;return{x:d,y:m,width:s.width,height:s.height}}function at(t){return k(t).position==="static"}function Rt(t,e){if(!P(t)||k(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function Et(t,e){const n=O(t);if(rt(t))return n;if(!P(t)){let i=V(t);for(;i&&!J(i);){if(F(i)&&!at(i))return i;i=V(i)}return n}let o=Rt(t,e);for(;o&&oe(o)&&at(o);)o=Rt(o,e);return o&&J(o)&&at(o)&&!ht(o)?n:o||ce(t)||n}const Te=async function(t){const e=this.getOffsetParent||Et,n=this.getDimensions,o=await n(t.floating);return{reference:ve(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Re(t){return k(t).direction==="rtl"}const Ae={convertOffsetParentRelativeRectToViewportRelativeRect:de,getDocumentElement:H,getClippingRect:xe,getOffsetParent:Et,getElementRects:Te,getClientRects:me,getDimensions:be,getScale:I,isElement:F,isRTL:Re};function Wt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ce(t,e){let n=null,o;const i=H(t);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),r();const f=t.getBoundingClientRect(),{left:u,top:d,width:m,height:c}=f;if(l||e(),!m||!c)return;const h=et(d),g=et(i.clientWidth-(u+m)),w=et(i.clientHeight-(d+c)),p=et(u),b={rootMargin:-h+"px "+-g+"px "+-w+"px "+-p+"px",threshold:C(0,U(1,a))||1};let v=!0;function x(A){const T=A[0].intersectionRatio;if(T!==a){if(!v)return s();T?s(!1,T):o=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!Wt(f,t.getBoundingClientRect())&&s(),v=!1}try{n=new IntersectionObserver(x,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(t)}return s(!0),r}function Oe(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,f=pt(t),u=i||r?[...f?Z(f):[],...Z(e)]:[];u.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const d=f&&l?Ce(f,n):null;let m=-1,c=null;s&&(c=new ResizeObserver(p=>{let[y]=p;y&&y.target===f&&c&&(c.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=c)==null||b.observe(e)})),n()}),f&&!a&&c.observe(f),c.observe(e));let h,g=a?q(t):null;a&&w();function w(){const p=q(t);g&&!Wt(g,p)&&n(),g=p,h=requestAnimationFrame(w)}return n(),()=>{var p;u.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),d?.(),(p=c)==null||p.disconnect(),c=null,a&&cancelAnimationFrame(h)}}const Se=Gt,De=Nt,At=te,Le=Jt,Fe=(t,e,n)=>{const o=new Map,i={platform:Ae,...n},r={...i.platform,_c:o};return It(t,e,{...i,platform:r})};class ke{constructor(e){this.updatePlacement=()=>{this.computePlacement()},this.host=e,e.addController(this)}async setPlacement(e=this.options){this.options=e;const{trigger:n,target:o}=e;this.cleanup=Oe(n,o,this.updatePlacement)}async computePlacement(){var e;const{arrowElement:n,alignment:o,caret:i,trigger:r,target:s,styleElement:l,matchWidth:a,open:f,flipArguments:u,alignmentAxisOffset:d}=this.options,m=l??s;if(!m)return;let c;switch(o){case"top-left":c="top-start";break;case"top-right":c="top-end";break;case"bottom-left":c="bottom-start";break;case"bottom-right":c="bottom-end";break;case"left-bottom":c="left-end";break;case"left-top":c="left-start";break;case"right-bottom":c="right-end";break;case"right-top":c="right-start";break;default:c=o;break}const h=[De(u),Se((d??0)+(i?10:0)),...i&&n?[Le({element:n,padding:15})]:[],...a&&(c==="bottom"||c==="top")?[At({apply({rects:g,elements:w}){w.floating.style.width=`${g.reference.width}px`}})]:[At({apply({elements:g}){g.floating.style.removeProperty("width")}})]];if(f){const{x:g,y:w,placement:p,middlewareData:y,strategy:b}=await Fe(r,m,{strategy:"fixed",middleware:h,placement:c});if(m.style.left=`${g}px`,m.style.top=`${w}px`,m.style.position=`${b}`,n){const{x:v,y:x}=y.arrow,A={top:"bottom",right:"left",bottom:"top",left:"right"}[p.split("-")[0]];n.style.left=v!=null?`${v}px`:"",n.style.top=x!=null?`${x}px`:"",n.style.right="",n.style.bottom="",n.style[A]=`${-n.offsetWidth/2}px`}(this.host.tagName==="CDS-AI-LABEL"||this.host.tagName==="CDS-SLUG")&&((e=this.host)===null||e===void 0||e.setAttribute("alignment",p))}}hostUpdated(){var e;this.host.hasAttribute("open")||((e=this.cleanup)===null||e===void 0||e.call(this),this.cleanup=void 0)}hostDisconnected(){var e;(e=this.cleanup)===null||e===void 0||e.call(this),this.cleanup=void 0}}exports.POPOVER_ALIGNMENT=void 0;(function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.TOP_START="top-start",t.TOP_END="top-end",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.BOTTOM_START="bottom-start",t.BOTTOM_END="bottom-end",t.LEFT="left",t.LEFT_BOTTOM="left-bottom",t.LEFT_TOP="left-top",t.LEFT_START="left-start",t.LEFT_END="left-end",t.RIGHT="right",t.RIGHT_BOTTOM="right-bottom",t.RIGHT_TOP="right-top",t.RIGHT_START="right-start",t.RIGHT_END="right-end"})(exports.POPOVER_ALIGNMENT||(exports.POPOVER_ALIGNMENT={}));exports.POPOVER_BACKGROUND_TOKEN=void 0;(function(t){t.LAYER="layer",t.BACKGROUND="background"})(exports.POPOVER_BACKGROUND_TOKEN||(exports.POPOVER_BACKGROUND_TOKEN={}));exports.FloatingController=ke;
|