@prozorro/prozorro-ui 0.3.5-beta → 0.3.6-beta
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/app/assets/{Color-FRDS63T2-BMKvUNXt.js → Color-FRDS63T2-aMqGZMs9.js} +1 -1
- package/dist/app/assets/{Colors.stories-CU1nYBZi.js → Colors.stories-CSgVg-gt.js} +1 -1
- package/dist/app/assets/{Display.stories-D2Xmnjgx.js → Display.stories-DFhseZzf.js} +1 -1
- package/dist/app/assets/{DocsRenderer-LL677BLK-S87SNKMv.js → DocsRenderer-LL677BLK-CLCUmVeg.js} +5 -5
- package/dist/app/assets/{Gap.stories-DqKEZElA.js → Gap.stories-D6hodcUO.js} +1 -1
- package/dist/app/assets/{Grid.stories-BJkqWn94.js → Grid.stories-BFnrLM8F.js} +1 -1
- package/dist/app/assets/{PzAccordion-LEq8OTqB.js → PzAccordion-Csm8PJmn.js} +1 -1
- package/dist/app/assets/{PzAccordion.stories-CuCYnB2b.js → PzAccordion.stories-NvG3F5vR.js} +1 -1
- package/dist/app/assets/{PzAccordionTable.stories-P5FhamT7.js → PzAccordionTable.stories-CP34zWSs.js} +1 -1
- package/dist/app/assets/{PzArrayClamp-6pCo87AW.css → PzArrayClamp-Vy-pMZwM.css} +1 -1
- package/dist/app/assets/{PzArrayClamp.stories-DE2A5Gr5.js → PzArrayClamp.stories-BwlVRqSF.js} +8 -7
- package/dist/app/assets/{PzBreadcrumb.stories-Dp8aHRH5.js → PzBreadcrumb.stories-BZ-L3CQx.js} +1 -1
- package/dist/app/assets/{PzBtn-DHwt2gw1.js → PzBtn-BEBwLD5o.js} +1 -1
- package/dist/app/assets/{PzBtn.stories-z585Cx0v.js → PzBtn.stories-Bk0Y-wtA.js} +1 -1
- package/dist/app/assets/{PzCheckbox-txMHxZJv.js → PzCheckbox-CdgZs7Wn.js} +1 -1
- package/dist/app/assets/{PzCheckbox.stories-Yg4UUOMP.js → PzCheckbox.stories-CvvKRvp0.js} +1 -1
- package/dist/app/assets/{PzCheckboxGroup.stories-CYDu6Mm1.js → PzCheckboxGroup.stories-rxYAQS9S.js} +1 -1
- package/dist/app/assets/{PzCopyToClipboard-DcFuGjZj.js → PzCopyToClipboard-BOd5PMTb.js} +1 -1
- package/dist/app/assets/{PzCopyToClipboard.stories-By1Nacqr.js → PzCopyToClipboard.stories-C5NpyI1z.js} +1 -1
- package/dist/app/assets/{PzDate-BjYVZ2_E.js → PzDate-D9qCD3tu.js} +1 -1
- package/dist/app/assets/{PzDate.stories-CroAPpaz.js → PzDate.stories-BRh3lwfJ.js} +1 -1
- package/dist/app/assets/{PzDateRange.stories-Clb5qWip.js → PzDateRange.stories-BNqFZsz5.js} +1 -1
- package/dist/app/assets/{PzDivider.stories-CBFhgmpe.js → PzDivider.stories-DTxVEFJp.js} +1 -1
- package/dist/app/assets/{PzDomHandler.stories-Db4UP2-1.js → PzDomHandler.stories-DzjPJ5cE.js} +1 -1
- package/dist/app/assets/{PzDropdown.stories-BnhByN1q.js → PzDropdown.stories-gicDbMg9.js} +1 -1
- package/dist/app/assets/{PzFileInput.stories-D-UpLUN_.js → PzFileInput.stories-D3F88Kt5.js} +1 -1
- package/dist/app/assets/{PzGrid.stories-CySMJ4L2.js → PzGrid.stories-CslI3NK8.js} +1 -1
- package/dist/app/assets/{PzHint-CrSojVma.js → PzHint-DJsQq-CH.js} +1 -1
- package/dist/app/assets/{PzHint.stories-Be882h_O.js → PzHint.stories-DHzywyf-.js} +1 -1
- package/dist/app/assets/{PzIcon-g4ONQc9C.js → PzIcon-AejPkK3_.js} +1 -1
- package/dist/app/assets/{PzIcon.stories-dnJ4wB9i.js → PzIcon.stories-BDMBR210.js} +1 -1
- package/dist/app/assets/{PzImage.stories-CfocexyX.js → PzImage.stories-BVuRatCN.js} +1 -1
- package/dist/app/assets/{PzImageInput.stories-DHJ_0oq5.js → PzImageInput.stories-BLHvbKB8.js} +1 -1
- package/dist/app/assets/{PzInfoBlockLayout.stories-BsDEc5oc.js → PzInfoBlockLayout.stories-DAFA5z1U.js} +1 -1
- package/dist/app/assets/{PzInfoHint-DNG2z-V0.js → PzInfoHint-BQGOfA5v.js} +1 -1
- package/dist/app/assets/{PzInfoHint.stories-DpTlhjH1.js → PzInfoHint.stories-CauMwx5L.js} +1 -1
- package/dist/app/assets/{PzInput.stories-CrUVyJXj.js → PzInput.stories-CBVT2OAh.js} +1 -1
- package/dist/app/assets/{PzInputDate.stories-BD_NnmtB.js → PzInputDate.stories-sp-KwtlH.js} +1 -1
- package/dist/app/assets/{PzInputNumber.stories-D3RD_wNV.js → PzInputNumber.stories-CrsOohs_.js} +1 -1
- package/dist/app/assets/{PzKeyValue-BwYXmKDl.js → PzKeyValue-sdycag4I.js} +1 -1
- package/dist/app/assets/{PzKeyValue.stories-DJWVt-pj.js → PzKeyValue.stories-BJxtd4GB.js} +1 -1
- package/dist/app/assets/{PzLabel-fXAHMBKl.js → PzLabel-DHGTQwWu.js} +1 -1
- package/dist/app/assets/{PzLabel.stories-Bi-lnR50.js → PzLabel.stories-DQ282ACE.js} +1 -1
- package/dist/app/assets/{PzLink-Drin9vuW.js → PzLink-DyQjYqjW.js} +1 -1
- package/dist/app/assets/{PzLink.stories-NCbI6bq3.js → PzLink.stories-DGa8pKL5.js} +1 -1
- package/dist/app/assets/{PzListNav-B9lJ7seh.js → PzListNav-CO2JdEYD.js} +1 -1
- package/dist/app/assets/{PzListNav.stories-DDIj2ogP.js → PzListNav.stories-CNsI3sxh.js} +1 -1
- package/dist/app/assets/{PzLoader.stories-fz4e7E9y.js → PzLoader.stories-BHVoHAO4.js} +1 -1
- package/dist/app/assets/{PzMessages-D2zYTT-s.js → PzMessages-CsKFry8-.js} +1 -1
- package/dist/app/assets/{PzMessages.stories-BAQpbJMw.js → PzMessages.stories-DmhH__OM.js} +1 -1
- package/dist/app/assets/{PzModal.stories-DXYxWRWa.js → PzModal.stories-B_dQuJSQ.js} +1 -1
- package/dist/app/assets/{PzMultiSelect.stories-DLnK26LA.js → PzMultiSelect.stories-C9AHVk8i.js} +1 -1
- package/dist/app/assets/{PzNav.stories-QkeHP6nm.js → PzNav.stories-wEJNtzJQ.js} +1 -1
- package/dist/app/assets/{PzNumberFormat.stories-BzXRu-61.js → PzNumberFormat.stories-B-u_V0Yb.js} +1 -1
- package/dist/app/assets/{PzPagination-cX8UyVXC.js → PzPagination-XPHtCp9l.js} +1 -1
- package/dist/app/assets/{PzPagination.stories-B_N2PCk3.js → PzPagination.stories-D03QtLz8.js} +1 -1
- package/dist/app/assets/{PzPaginationProvider.stories-CuglLugX.js → PzPaginationProvider.stories-B2_EAC1L.js} +1 -1
- package/dist/app/assets/{PzPrice-DBI3CqXk.js → PzPrice-C1pXEIOc.js} +1 -1
- package/dist/app/assets/{PzPrice.stories-L3hpsGi1.js → PzPrice.stories-BF7_o9Du.js} +1 -1
- package/dist/app/assets/{PzPriceFormat.stories-BGuvpAR_.js → PzPriceFormat.stories-dRbtjsdQ.js} +1 -1
- package/dist/app/assets/{PzPriceRange.stories-B8Y6gDwi.js → PzPriceRange.stories-DUVlbRVl.js} +1 -1
- package/dist/app/assets/{PzQuote.stories-SrrWWOS7.js → PzQuote.stories-BzkNSh-Y.js} +1 -1
- package/dist/app/assets/{PzRadioGroup.stories-BpiHn1WP.js → PzRadioGroup.stories-DmJh5KiH.js} +1 -1
- package/dist/app/assets/{PzRouterLink.stories-Dj4NFM5-.js → PzRouterLink.stories-DxInDCHv.js} +1 -1
- package/dist/app/assets/{PzScrollTo.stories-Cv7xVrGU.js → PzScrollTo.stories-7KElxjrZ.js} +1 -1
- package/dist/app/assets/{PzSearchResultItemLayout.stories-CHcoW4SK.js → PzSearchResultItemLayout.stories-ByGpGxLv.js} +1 -1
- package/dist/app/assets/{PzSelect-fOiKrN7W.js → PzSelect-HirRcK01.js} +1 -1
- package/dist/app/assets/{PzSelect.stories-D6NzSWBH.js → PzSelect.stories-Dv3eWTRA.js} +1 -1
- package/dist/app/assets/{PzSkeleton-DW30qcYV.js → PzSkeleton-wUthu7bS.js} +1 -1
- package/dist/app/assets/{PzSkeleton.stories-C2AboOAy.js → PzSkeleton.stories-CuNqoE7R.js} +1 -1
- package/dist/app/assets/{PzSlider.stories-Br4ZylFl.js → PzSlider.stories-D4t_G5Op.js} +1 -1
- package/dist/app/assets/{PzStatus-DHZP2Q0N.js → PzStatus-CDah39DQ.js} +1 -1
- package/dist/app/assets/{PzStatus.stories-CH6BC1ce.js → PzStatus.stories-BVvQU8xs.js} +1 -1
- package/dist/app/assets/{PzTable-CX3TId0A.js → PzTable-B7Rat275.js} +1 -1
- package/dist/app/assets/{PzTable.stories-qlrSUjTn.js → PzTable.stories-DdAEQHZd.js} +1 -1
- package/dist/app/assets/{PzTablePaginationProvider.stories-BoPwaiFI.js → PzTablePaginationProvider.stories-DwplNdr0.js} +1 -1
- package/dist/app/assets/{PzTabs.stories-CVpU0wMg.js → PzTabs.stories-D7Y5ya11.js} +1 -1
- package/dist/app/assets/{PzTag-BltIq7ah.js → PzTag-C0--JPeU.js} +1 -1
- package/dist/app/assets/{PzTag.stories-WJdFZD4P.js → PzTag.stories-C9nId87h.js} +1 -1
- package/dist/app/assets/{PzText-CYFBezH4.css → PzText-C5x-5Ber.css} +1 -1
- package/dist/app/assets/PzText-CGEwaRsm.js +1 -0
- package/dist/app/assets/PzText.stories-D-Trg_br.js +145 -0
- package/dist/app/assets/{PzTextClamp-DpdwWXt9.css → PzTextClamp-PbEIwPHK.css} +1 -1
- package/dist/app/assets/{PzTextClamp.stories-hXwwaqpg.js → PzTextClamp.stories-BamVyH7g.js} +6 -5
- package/dist/app/assets/{PzTextarea.stories-BNKgOhkW.js → PzTextarea.stories-DnKehVFd.js} +1 -1
- package/dist/app/assets/{PzTranslator-CulWifBp.js → PzTranslator-An8XzTlW.js} +1 -1
- package/dist/app/assets/{PzTranslator.stories-xv04GLFU.js → PzTranslator.stories-DA2_gFJ4.js} +1 -1
- package/dist/app/assets/{PzValidatorXSS.stories-9EGBfbS9.js → PzValidatorXSS.stories-DhrhZfmm.js} +1 -1
- package/dist/app/assets/{Spacing.stories-Bv7lI48s.js → Spacing.stories-B1YwV_zb.js} +1 -1
- package/dist/app/assets/{StaticPagination.composable-DyJA8OmC.js → StaticPagination.composable-DeCfRehO.js} +1 -1
- package/dist/app/assets/{Typography.stories-CChAXOeR.js → Typography.stories-vmbEPT5Q.js} +1 -1
- package/dist/app/assets/{WithTooltip-65CFNBJE-BimkOYIq.js → WithTooltip-65CFNBJE-DQJaA_Rm.js} +1 -1
- package/dist/app/assets/{floating-vue-BWRtcgOZ.js → floating-vue-DLhPcBHj.js} +1 -1
- package/dist/app/assets/{floating-vue-C2S3z3lE.js → floating-vue-zsdWEwSl.js} +1 -1
- package/dist/app/assets/{formatter-EIJCOSYU-DhIJ4Edi.js → formatter-EIJCOSYU-THmzpci3.js} +1 -1
- package/dist/app/assets/{iframe-Ds8IpYVS.js → iframe-NxZrijqp.js} +3 -3
- package/dist/app/assets/{index-fgHixitj.js → index-CvwcSTwr.js} +1 -1
- package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-COkDrI8G.js → syntaxhighlighter-OH4MV7E3-CSwRY4LY.js} +1 -1
- package/dist/app/iframe.html +1 -1
- package/dist/app/index.json +1 -1
- package/dist/app/project.json +1 -1
- package/dist/components/Actions/PzLink/PzLink.vue.d.ts +1 -1
- package/dist/components/Actions/PzRouterLink/PzRouterLink.vue.d.ts +1 -1
- package/dist/components/Text/PzArrayClamp/PzArrayClamp.vue.d.ts +1 -0
- package/dist/components/Text/PzArrayClamp/types.d.ts +1 -0
- package/dist/components/Text/PzQuote/PzQuote.vue.d.ts +1 -1
- package/dist/components/Text/PzText/PzText.vue.d.ts +1 -0
- package/dist/components/Text/PzText/types.d.ts +1 -0
- package/dist/components/Text/PzTextClamp/PzTextClamp.vue.d.ts +1 -0
- package/dist/components/Text/PzTextClamp/types.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/prozorro-ui.cjs +1 -1
- package/dist/prozorro-ui.js +12 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/app/assets/PzText-QWb_Ux-e.js +0 -1
- package/dist/app/assets/PzText.stories-inDNOPnz.js +0 -139
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import{a as je,p as we}from"./configs-CtUh_XBV.js";import{P as T}from"./PzText-CGEwaRsm.js";import"./iframe-NxZrijqp.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const Ee=r=>r.split("-").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" "),Ke={title:"Components/Text/PzText",component:T,parameters:{prototype:{caption:"Text component",note:"Component-level playground for semantic tag overrides and text variant rendering."},docs:{description:{component:"Vue text primitive for rendering the shared typography variants. Use `Foundation/Typography` for the full type-scale reference and `Components/Text/PzText` for the component API."},source:{transform:(r,a)=>{const e=a.args??{};return`<template>
|
|
2
|
+
<PzText ${[e.variant?`variant="${e.variant}"`:null,e.as?`as="${e.as}"`:null,e.italic?"italic":null,e.content?`content="${e.content}"`:null].filter(Boolean).join(" ")} />
|
|
3
|
+
</template>`}}}},args:{variant:"body-regular",italic:!1,content:"Every procurement notice should stay readable across dense interfaces and long-form content."},argTypes:{variant:{control:"select",options:we,description:"Text style variant from the Design System."},as:{control:"select",options:je,description:"HTML tag to render. Defaults to a semantic tag based on variant."},italic:{control:"boolean",description:"Applies italic text style."},content:{control:"text",description:"Text content.",table:{category:"Slots"}}},render:r=>({components:{pzText:T},setup(){const a=Ee(r.variant??"body-regular");return{args:r,currentLabel:a}},template:`
|
|
4
|
+
<section class="pz-text-demo">
|
|
5
|
+
<div class="pz-text-demo-header">
|
|
6
|
+
<div>
|
|
7
|
+
<span class="pz-text-demo-eyebrow">Live preview</span>
|
|
8
|
+
<h2 class="pz-text-demo-title">{{ currentLabel }}</h2>
|
|
9
|
+
</div>
|
|
10
|
+
<span class="pz-text-demo-spec">{{ args.variant }}</span>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div class="pz-text-demo-surface">
|
|
14
|
+
<pz-text :variant="args.variant" :as="args.as" :italic="args.italic">{{ args.content }}</pz-text>
|
|
15
|
+
</div>
|
|
16
|
+
</section>
|
|
17
|
+
`})},t={name:"H1 Bold",args:{variant:"h1-bold",content:"Headline Bold 1"}},n={name:"H1 Regular",args:{variant:"h1-regular",content:"Headline Regular 1"}},o={name:"H2 Bold",args:{variant:"h2-bold",content:"Headline Bold 2"}},s={name:"H3 Bold",args:{variant:"h3-bold",content:"Headline Bold 3"}},l={name:"H3 Regular",args:{variant:"h3-regular",content:"Headline Regular 3"}},c={name:"H4 Regular",args:{variant:"h4-regular",content:"Headline Regular 4"}},i={name:"H4 Semibold",args:{variant:"h4-semibold",content:"Headline Semibold 4"}},d={name:"H4 Bold",args:{variant:"h4-bold",content:"Headline Bold 4"}},m={args:{variant:"subtitle",content:"Subtitle"}},u={name:"Subtitle Bold",args:{variant:"subtitle-bold",content:"Subtitle bold"}},p={name:"Body Regular",args:{variant:"body-regular",content:"Body text regular"}},g={name:"Body Semibold",args:{variant:"body-semibold",content:"Body text semibold"}},b={name:"Body Bold",args:{variant:"body-bold",content:"Body text bold"}},S={args:{variant:"capitalized",content:"Capitalized text"}},v={args:{variant:"hint",content:"Hint text"}},B={name:"Line Through",args:{variant:"line-through",content:"Line through text"}},H={name:"Small Regular",args:{variant:"small-regular",content:"Small text regular"}},x={name:"Small Semibold",args:{variant:"small-semibold",content:"Small text semibold"}},y={name:"Small Bold",args:{variant:"small-bold",content:"Small text bold"}},h={name:"Link",args:{variant:"link",content:"Link text"}},R={args:{variant:"body-regular",italic:!0,content:"Italic body text"}},z={args:{variant:"document",content:"Document text"}};var f,L,k;t.parameters={...t.parameters,docs:{...(f=t.parameters)==null?void 0:f.docs,source:{originalSource:`{
|
|
18
|
+
name: "H1 Bold",
|
|
19
|
+
args: {
|
|
20
|
+
variant: "h1-bold",
|
|
21
|
+
content: "Headline Bold 1"
|
|
22
|
+
}
|
|
23
|
+
}`,...(k=(L=t.parameters)==null?void 0:L.docs)==null?void 0:k.source}}};var C,D,P;n.parameters={...n.parameters,docs:{...(C=n.parameters)==null?void 0:C.docs,source:{originalSource:`{
|
|
24
|
+
name: "H1 Regular",
|
|
25
|
+
args: {
|
|
26
|
+
variant: "h1-regular",
|
|
27
|
+
content: "Headline Regular 1"
|
|
28
|
+
}
|
|
29
|
+
}`,...(P=(D=n.parameters)==null?void 0:D.docs)==null?void 0:P.source}}};var I,$,A;o.parameters={...o.parameters,docs:{...(I=o.parameters)==null?void 0:I.docs,source:{originalSource:`{
|
|
30
|
+
name: "H2 Bold",
|
|
31
|
+
args: {
|
|
32
|
+
variant: "h2-bold",
|
|
33
|
+
content: "Headline Bold 2"
|
|
34
|
+
}
|
|
35
|
+
}`,...(A=($=o.parameters)==null?void 0:$.docs)==null?void 0:A.source}}};var O,V,_;s.parameters={...s.parameters,docs:{...(O=s.parameters)==null?void 0:O.docs,source:{originalSource:`{
|
|
36
|
+
name: "H3 Bold",
|
|
37
|
+
args: {
|
|
38
|
+
variant: "h3-bold",
|
|
39
|
+
content: "Headline Bold 3"
|
|
40
|
+
}
|
|
41
|
+
}`,...(_=(V=s.parameters)==null?void 0:V.docs)==null?void 0:_.source}}};var j,w,E;l.parameters={...l.parameters,docs:{...(j=l.parameters)==null?void 0:j.docs,source:{originalSource:`{
|
|
42
|
+
name: "H3 Regular",
|
|
43
|
+
args: {
|
|
44
|
+
variant: "h3-regular",
|
|
45
|
+
content: "Headline Regular 3"
|
|
46
|
+
}
|
|
47
|
+
}`,...(E=(w=l.parameters)==null?void 0:w.docs)==null?void 0:E.source}}};var U,F,M;c.parameters={...c.parameters,docs:{...(U=c.parameters)==null?void 0:U.docs,source:{originalSource:`{
|
|
48
|
+
name: "H4 Regular",
|
|
49
|
+
args: {
|
|
50
|
+
variant: "h4-regular",
|
|
51
|
+
content: "Headline Regular 4"
|
|
52
|
+
}
|
|
53
|
+
}`,...(M=(F=c.parameters)==null?void 0:F.docs)==null?void 0:M.source}}};var q,G,J;i.parameters={...i.parameters,docs:{...(q=i.parameters)==null?void 0:q.docs,source:{originalSource:`{
|
|
54
|
+
name: "H4 Semibold",
|
|
55
|
+
args: {
|
|
56
|
+
variant: "h4-semibold",
|
|
57
|
+
content: "Headline Semibold 4"
|
|
58
|
+
}
|
|
59
|
+
}`,...(J=(G=i.parameters)==null?void 0:G.docs)==null?void 0:J.source}}};var K,N,Q;d.parameters={...d.parameters,docs:{...(K=d.parameters)==null?void 0:K.docs,source:{originalSource:`{
|
|
60
|
+
name: "H4 Bold",
|
|
61
|
+
args: {
|
|
62
|
+
variant: "h4-bold",
|
|
63
|
+
content: "Headline Bold 4"
|
|
64
|
+
}
|
|
65
|
+
}`,...(Q=(N=d.parameters)==null?void 0:N.docs)==null?void 0:Q.source}}};var W,X,Y;m.parameters={...m.parameters,docs:{...(W=m.parameters)==null?void 0:W.docs,source:{originalSource:`{
|
|
66
|
+
args: {
|
|
67
|
+
variant: "subtitle",
|
|
68
|
+
content: "Subtitle"
|
|
69
|
+
}
|
|
70
|
+
}`,...(Y=(X=m.parameters)==null?void 0:X.docs)==null?void 0:Y.source}}};var Z,ee,ae;u.parameters={...u.parameters,docs:{...(Z=u.parameters)==null?void 0:Z.docs,source:{originalSource:`{
|
|
71
|
+
name: "Subtitle Bold",
|
|
72
|
+
args: {
|
|
73
|
+
variant: "subtitle-bold",
|
|
74
|
+
content: "Subtitle bold"
|
|
75
|
+
}
|
|
76
|
+
}`,...(ae=(ee=u.parameters)==null?void 0:ee.docs)==null?void 0:ae.source}}};var re,te,ne;p.parameters={...p.parameters,docs:{...(re=p.parameters)==null?void 0:re.docs,source:{originalSource:`{
|
|
77
|
+
name: "Body Regular",
|
|
78
|
+
args: {
|
|
79
|
+
variant: "body-regular",
|
|
80
|
+
content: "Body text regular"
|
|
81
|
+
}
|
|
82
|
+
}`,...(ne=(te=p.parameters)==null?void 0:te.docs)==null?void 0:ne.source}}};var oe,se,le;g.parameters={...g.parameters,docs:{...(oe=g.parameters)==null?void 0:oe.docs,source:{originalSource:`{
|
|
83
|
+
name: "Body Semibold",
|
|
84
|
+
args: {
|
|
85
|
+
variant: "body-semibold",
|
|
86
|
+
content: "Body text semibold"
|
|
87
|
+
}
|
|
88
|
+
}`,...(le=(se=g.parameters)==null?void 0:se.docs)==null?void 0:le.source}}};var ce,ie,de;b.parameters={...b.parameters,docs:{...(ce=b.parameters)==null?void 0:ce.docs,source:{originalSource:`{
|
|
89
|
+
name: "Body Bold",
|
|
90
|
+
args: {
|
|
91
|
+
variant: "body-bold",
|
|
92
|
+
content: "Body text bold"
|
|
93
|
+
}
|
|
94
|
+
}`,...(de=(ie=b.parameters)==null?void 0:ie.docs)==null?void 0:de.source}}};var me,ue,pe;S.parameters={...S.parameters,docs:{...(me=S.parameters)==null?void 0:me.docs,source:{originalSource:`{
|
|
95
|
+
args: {
|
|
96
|
+
variant: "capitalized",
|
|
97
|
+
content: "Capitalized text"
|
|
98
|
+
}
|
|
99
|
+
}`,...(pe=(ue=S.parameters)==null?void 0:ue.docs)==null?void 0:pe.source}}};var ge,be,Se;v.parameters={...v.parameters,docs:{...(ge=v.parameters)==null?void 0:ge.docs,source:{originalSource:`{
|
|
100
|
+
args: {
|
|
101
|
+
variant: "hint",
|
|
102
|
+
content: "Hint text"
|
|
103
|
+
}
|
|
104
|
+
}`,...(Se=(be=v.parameters)==null?void 0:be.docs)==null?void 0:Se.source}}};var ve,Be,He;B.parameters={...B.parameters,docs:{...(ve=B.parameters)==null?void 0:ve.docs,source:{originalSource:`{
|
|
105
|
+
name: "Line Through",
|
|
106
|
+
args: {
|
|
107
|
+
variant: "line-through",
|
|
108
|
+
content: "Line through text"
|
|
109
|
+
}
|
|
110
|
+
}`,...(He=(Be=B.parameters)==null?void 0:Be.docs)==null?void 0:He.source}}};var xe,ye,he;H.parameters={...H.parameters,docs:{...(xe=H.parameters)==null?void 0:xe.docs,source:{originalSource:`{
|
|
111
|
+
name: "Small Regular",
|
|
112
|
+
args: {
|
|
113
|
+
variant: "small-regular",
|
|
114
|
+
content: "Small text regular"
|
|
115
|
+
}
|
|
116
|
+
}`,...(he=(ye=H.parameters)==null?void 0:ye.docs)==null?void 0:he.source}}};var Re,ze,Te;x.parameters={...x.parameters,docs:{...(Re=x.parameters)==null?void 0:Re.docs,source:{originalSource:`{
|
|
117
|
+
name: "Small Semibold",
|
|
118
|
+
args: {
|
|
119
|
+
variant: "small-semibold",
|
|
120
|
+
content: "Small text semibold"
|
|
121
|
+
}
|
|
122
|
+
}`,...(Te=(ze=x.parameters)==null?void 0:ze.docs)==null?void 0:Te.source}}};var fe,Le,ke;y.parameters={...y.parameters,docs:{...(fe=y.parameters)==null?void 0:fe.docs,source:{originalSource:`{
|
|
123
|
+
name: "Small Bold",
|
|
124
|
+
args: {
|
|
125
|
+
variant: "small-bold",
|
|
126
|
+
content: "Small text bold"
|
|
127
|
+
}
|
|
128
|
+
}`,...(ke=(Le=y.parameters)==null?void 0:Le.docs)==null?void 0:ke.source}}};var Ce,De,Pe;h.parameters={...h.parameters,docs:{...(Ce=h.parameters)==null?void 0:Ce.docs,source:{originalSource:`{
|
|
129
|
+
name: "Link",
|
|
130
|
+
args: {
|
|
131
|
+
variant: "link",
|
|
132
|
+
content: "Link text"
|
|
133
|
+
}
|
|
134
|
+
}`,...(Pe=(De=h.parameters)==null?void 0:De.docs)==null?void 0:Pe.source}}};var Ie,$e,Ae;R.parameters={...R.parameters,docs:{...(Ie=R.parameters)==null?void 0:Ie.docs,source:{originalSource:`{
|
|
135
|
+
args: {
|
|
136
|
+
variant: "body-regular",
|
|
137
|
+
italic: true,
|
|
138
|
+
content: "Italic body text"
|
|
139
|
+
}
|
|
140
|
+
}`,...(Ae=($e=R.parameters)==null?void 0:$e.docs)==null?void 0:Ae.source}}};var Oe,Ve,_e;z.parameters={...z.parameters,docs:{...(Oe=z.parameters)==null?void 0:Oe.docs,source:{originalSource:`{
|
|
141
|
+
args: {
|
|
142
|
+
variant: "document",
|
|
143
|
+
content: "Document text"
|
|
144
|
+
}
|
|
145
|
+
}`,...(_e=(Ve=z.parameters)==null?void 0:Ve.docs)==null?void 0:_e.source}}};const Ne=["H1Bold","H1Regular","H2Bold","H3Bold","H3Regular","H4Regular","H4Semibold","H4Bold","Subtitle","SubtitleBold","BodyRegular","BodySemibold","BodyBold","Capitalized","Hint","LineThroughStory","SmallRegular","SmallSemibold","SmallBold","LinkStory","Italic","Document"];export{b as BodyBold,p as BodyRegular,g as BodySemibold,S as Capitalized,z as Document,t as H1Bold,n as H1Regular,o as H2Bold,s as H3Bold,l as H3Regular,d as H4Bold,c as H4Regular,i as H4Semibold,v as Hint,R as Italic,B as LineThroughStory,h as LinkStory,y as SmallBold,H as SmallRegular,x as SmallSemibold,m as Subtitle,u as SubtitleBold,Ne as __namedExportsOrder,Ke as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pz-text-clamp-story{display:grid;gap:24px}.pz-text-clamp-story-hero,.pz-text-clamp-story-card{border:1px solid color-mix(in srgb,var(--pz-color-grey-40) 58%,transparent);border-radius:28px;background:linear-gradient(180deg,color-mix(in srgb,var(--pz-color-white) 98%,transparent),color-mix(in srgb,var(--pz-color-grey-40) 10%,var(--pz-color-white))),linear-gradient(135deg,color-mix(in srgb,var(--pz-color-blue-50) 4%,transparent),transparent 42%);box-shadow:0 18px 60px color-mix(in srgb,var(--pz-color-black-90) 8%,transparent),inset 0 1px color-mix(in srgb,var(--pz-color-white) 96%,transparent)}.pz-text-clamp-story-hero{display:grid;grid-template-columns:minmax(0,.95fr) minmax(320px,1.05fr);gap:20px;padding:clamp(22px,2vw,30px)}.pz-text-clamp-story-copy,.pz-text-clamp-story-preview,.pz-text-clamp-story-card{display:grid;gap:16px}.pz-text-clamp-story-preview,.pz-text-clamp-story-card{padding:clamp(20px,2vw,24px)}.pz-text-clamp-story-preview{align-content:start;border-radius:22px;background:radial-gradient(circle at top right,color-mix(in srgb,var(--pz-color-blue-50) 8%,transparent),transparent 30%),var(--pz-color-white);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pz-color-grey-40) 52%,transparent),0 12px 32px color-mix(in srgb,var(--pz-color-black-90) 7%,transparent)}.pz-text-clamp-story-grid{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}.pz-text-clamp-story-card{min-height:220px}.pz-text-clamp-story-card-header{display:grid;gap:8px}.pz-text-clamp-story-eyebrow,.pz-text-clamp-story-kicker,.pz-text-clamp-story-chip{display:inline-flex;align-items:center;width:fit-content;font-size:11px;font-weight:700;line-height:1;letter-spacing:.14em;text-transform:uppercase}.pz-text-clamp-story-eyebrow,.pz-text-clamp-story-kicker{color:var(--pz-color-text-link-hover)}.pz-text-clamp-story-chip{padding:8px 12px;border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-50) 10%,transparent);color:var(--pz-color-text-link-hover)}.pz-text-clamp-story-custom-toggle{padding:8px 12px;border:1px solid color-mix(in srgb,var(--pz-color-blue-50) 20%,transparent);border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-50) 8%,transparent);color:var(--pz-color-text-link-hover);cursor:pointer;transition:border-color .16s ease,background-color .16s ease,color .16s ease;-webkit-hyphens:auto;hyphens:auto;white-space:pre-line;overflow-wrap:break-word;font-size:var(--pz-font-size-12);font-weight:600;line-height:1.5}.pz-text-clamp-story-custom-toggle:hover,.pz-text-clamp-story-custom-toggle:focus-visible{border-color:color-mix(in srgb,var(--pz-color-text-link-hover) 24%,transparent);background:color-mix(in srgb,var(--pz-color-blue-50) 14%,transparent);outline:none}@media (width <= 1024px){.pz-text-clamp-story-hero,.pz-text-clamp-story-grid{grid-template-columns:1fr}}@media (width <= 640px){.pz-text-clamp-story-hero,.pz-text-clamp-story-preview,.pz-text-clamp-story-card{padding:20px;border-radius:22px}}.pz-text-clamp[data-v-
|
|
1
|
+
.pz-text-clamp-story{display:grid;gap:24px}.pz-text-clamp-story-hero,.pz-text-clamp-story-card{border:1px solid color-mix(in srgb,var(--pz-color-grey-40) 58%,transparent);border-radius:28px;background:linear-gradient(180deg,color-mix(in srgb,var(--pz-color-white) 98%,transparent),color-mix(in srgb,var(--pz-color-grey-40) 10%,var(--pz-color-white))),linear-gradient(135deg,color-mix(in srgb,var(--pz-color-blue-50) 4%,transparent),transparent 42%);box-shadow:0 18px 60px color-mix(in srgb,var(--pz-color-black-90) 8%,transparent),inset 0 1px color-mix(in srgb,var(--pz-color-white) 96%,transparent)}.pz-text-clamp-story-hero{display:grid;grid-template-columns:minmax(0,.95fr) minmax(320px,1.05fr);gap:20px;padding:clamp(22px,2vw,30px)}.pz-text-clamp-story-copy,.pz-text-clamp-story-preview,.pz-text-clamp-story-card{display:grid;gap:16px}.pz-text-clamp-story-preview,.pz-text-clamp-story-card{padding:clamp(20px,2vw,24px)}.pz-text-clamp-story-preview{align-content:start;border-radius:22px;background:radial-gradient(circle at top right,color-mix(in srgb,var(--pz-color-blue-50) 8%,transparent),transparent 30%),var(--pz-color-white);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pz-color-grey-40) 52%,transparent),0 12px 32px color-mix(in srgb,var(--pz-color-black-90) 7%,transparent)}.pz-text-clamp-story-grid{display:grid;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}.pz-text-clamp-story-card{min-height:220px}.pz-text-clamp-story-card-header{display:grid;gap:8px}.pz-text-clamp-story-eyebrow,.pz-text-clamp-story-kicker,.pz-text-clamp-story-chip{display:inline-flex;align-items:center;width:fit-content;font-size:11px;font-weight:700;line-height:1;letter-spacing:.14em;text-transform:uppercase}.pz-text-clamp-story-eyebrow,.pz-text-clamp-story-kicker{color:var(--pz-color-text-link-hover)}.pz-text-clamp-story-chip{padding:8px 12px;border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-50) 10%,transparent);color:var(--pz-color-text-link-hover)}.pz-text-clamp-story-custom-toggle{padding:8px 12px;border:1px solid color-mix(in srgb,var(--pz-color-blue-50) 20%,transparent);border-radius:999px;background:color-mix(in srgb,var(--pz-color-blue-50) 8%,transparent);color:var(--pz-color-text-link-hover);cursor:pointer;transition:border-color .16s ease,background-color .16s ease,color .16s ease;-webkit-hyphens:auto;hyphens:auto;white-space:pre-line;overflow-wrap:break-word;font-size:var(--pz-font-size-12);font-weight:600;line-height:1.5}.pz-text-clamp-story-custom-toggle:hover,.pz-text-clamp-story-custom-toggle:focus-visible{border-color:color-mix(in srgb,var(--pz-color-text-link-hover) 24%,transparent);background:color-mix(in srgb,var(--pz-color-blue-50) 14%,transparent);outline:none}@media (width <= 1024px){.pz-text-clamp-story-hero,.pz-text-clamp-story-grid{grid-template-columns:1fr}}@media (width <= 640px){.pz-text-clamp-story-hero,.pz-text-clamp-story-preview,.pz-text-clamp-story-card{padding:20px;border-radius:22px}}.pz-text-clamp[data-v-c52935a6]{color:var(--pz-color-text-primary);overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;white-space:pre-line;overflow-wrap:break-word;font-size:var(--pz-text-clamp-font-size, var(--pz-typography-font-size, var(--pz-font-size-14)));font-weight:var(--pz-text-clamp-font-weight, var(--pz-typography-font-weight, 400));line-height:var(--pz-text-clamp-line-height, var(--pz-typography-line-height, 1.5))}.pz-text-clamp--italic[data-v-c52935a6]{font-style:italic}.pz-text-clamp__btn[data-v-c52935a6]{--pz-btn-padding-block: 0;--pz-btn-padding-inline: 0;margin-left:var(--pz-space-4);font-style:normal}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{e as oe,h as _e,w as g,a4 as fe,i as ge,o as H,f as he,u as U,z as O,C as z,n as ve,r as L,c as h,j as X,v as G,y as J,g as ze,$ as ye,D as be,t as Ce,q as we}from"./iframe-Ds8IpYVS.js";import{P as ie}from"./PzText-QWb_Ux-e.js";import{p as Le}from"./configs-CtUh_XBV.js";import{P as Te}from"./PzBtn-DHwt2gw1.js";import{a as K}from"./PzMessages-D2zYTT-s.js";import{_ as Ee}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";var N=null;function Pe(e){return N||(N=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){return setTimeout(a,16)}).bind(window)),N(e)}var q=null;function Se(e){q||(q=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}).bind(window)),q(e)}function ke(e){var a=document.createElement("style");return a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(a),a}function y(e,a){a===void 0&&(a={});var t=document.createElement(e);return Object.keys(a).forEach(function(r){t[r]=a[r]}),t}function le(e,a,t){var r=window.getComputedStyle(e,null)||{display:"none"};return r[a]}function A(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var a=e;a!==document;){if(le(a,"display")==="none")return{detached:!1,rendered:!1};a=a.parentNode}return{detached:!1,rendered:!0}}var Re='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',M=0,T=null;function Ne(e,a){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=Oe.bind(e));var t=e.__resize_listeners__;if(!t){if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,o=e.offsetHeight,i=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===r&&e.offsetHeight===o)||P(e)}),n=A(e),c=n.detached,l=n.rendered;e.__resize_observer_triggered__=c===!1&&l===!1,e.__resize_observer__=i,i.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){P(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(M||(T=ke(Re)),Ae(e),e.__resize_rendered__=A(e).rendered,window.MutationObserver){var d=new MutationObserver(e.__resize_mutation_handler__);d.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=d}}e.__resize_listeners__.push(a),M++}function qe(e,a){var t=e.__resize_listeners__;if(t){if(a&&t.splice(t.indexOf(a),1),!t.length||!a){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",F),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--M&&T&&T.parentNode.removeChild(T)}}function He(e){var a=e.__resize_last__,t=a.width,r=a.height,o=e.offsetWidth,i=e.offsetHeight;return o!==t||i!==r?{width:o,height:i}:null}function Oe(){var e=A(this),a=e.rendered,t=e.detached;a!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(j(this),this.addEventListener("scroll",F,!0)),this.__resize_rendered__=a,P(this))}function F(){var e=this;j(this),this.__resize_raf__&&Se(this.__resize_raf__),this.__resize_raf__=Pe(function(){var a=He(e);a&&(e.__resize_last__=a,P(e))})}function P(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(a){a.call(e,e)})}function Ae(e){var a=le(e,"position");(!a||a==="static")&&(e.style.position="relative"),e.__resize_old_position__=a,e.__resize_last__={};var t=y("div",{className:"resize-triggers"}),r=y("div",{className:"resize-expand-trigger"}),o=y("div"),i=y("div",{className:"resize-contract-trigger"});r.appendChild(o),t.appendChild(r),t.appendChild(i),e.appendChild(t),e.__resize_triggers__={triggers:t,expand:r,expandChild:o,contract:i},j(e),e.addEventListener("scroll",F,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function j(e){var a=e.__resize_triggers__,t=a.expand,r=a.expandChild,o=a.contract,i=o.scrollWidth,n=o.scrollHeight,c=t.offsetWidth,l=t.offsetHeight,d=t.scrollWidth,p=t.scrollHeight;o.scrollLeft=i,o.scrollTop=n,r.style.width=c+1+"px",r.style.height=l+1+"px",t.scrollLeft=d,t.scrollTop=p}const Me=["aria-label"];var de=oe({__name:"text-clamp",props:{text:{type:String,required:!0},maxHeight:{type:[String,Number],required:!1},maxLines:{type:Number,required:!1},expanded:{type:Boolean,required:!1,default:!1},location:{type:String,required:!1,default:"end"},ellipsis:{type:String,required:!1,default:"…"},autoResize:{type:Boolean,required:!1,default:!1}},emits:["clamp-change","update:expanded"],setup(e,{emit:a}){const t=e,r=L(null),o=L(null),i=L(null),n=_e({offset:0,localExpanded:!!t.expanded,unregisterResizeCallback:null}),c=h(()=>{if(!n.localExpanded&&t.maxHeight)return typeof(t==null?void 0:t.maxHeight)=="number"?`${t==null?void 0:t.maxHeight}px`:t==null?void 0:t.maxHeight}),l=()=>{i.value&&(i.value.textContent=xe.value)},d=()=>{n.localExpanded||(l(),(u()||m.value)&&k())},p=()=>{t.text&&(n.offset=t.text.length,x(),t.autoResize&&r.value&&(Ne(r.value,d),n.unregisterResizeCallback=()=>{r.value&&qe(r.value,d)}),d())},x=()=>{var s;(s=n.unregisterResizeCallback)==null||s.call(n)},u=()=>!(!t.maxLines&&!t.maxHeight)&&!!r.value&&(!!(t.maxLines&&S()>t.maxLines)||!!(t.maxHeight&&r.value.scrollHeight>r.value.offsetHeight)),S=()=>o.value?Object.keys(Array.prototype.slice.call(o.value.getClientRects()).reduce((s,{top:_,bottom:v})=>{const f=`${_}/${v}`;return s[f]||(s[f]=!0),s},{})).length:0,k=(...s)=>{const[_=0,v=n.offset]=s;if(v-_<=3)return void pe();const f=Math.floor((v+_)/2);R(f),u()?k(_,f):k(f,v)},R=s=>{n.offset=s,l()},pe=()=>{ce(),ue()},ce=()=>{for(;(!u()||S()<2)&&n.offset<t.text.length;)D(1)},ue=()=>{for(;u()&&S()>1&&n.offset>0;)D(-1)},D=s=>{R(n.offset+s)},m=h(()=>!!t.text&&n.offset!==t.text.length);g(()=>m.value,s=>{setTimeout(()=>{a("clamp-change",s)},0)},{immediate:!0});const xe=h(()=>m.value?me.value:t.text),me=h(()=>{if(t.location==="start")return t.ellipsis+(t.text.slice(-n.offset)||"").trim();if(t.location==="middle"){const s=Math.floor(n.offset/2);return(t.text.slice(0,s)||"").trim()+t.ellipsis+(t.text.slice(-s)||"").trim()}return(t.text.slice(0,n.offset)||"").trim()+t.ellipsis}),V=()=>{n.localExpanded=!0},W=()=>{n.localExpanded=!1},I=()=>{n.localExpanded=!n.localExpanded};return g(()=>t.expanded,s=>{n.localExpanded=s}),g(()=>n.localExpanded,s=>{s?R(t.text.length):d(),t.expanded!==s&&a("update:expanded",s)}),g(()=>[t.maxLines,t.maxHeight,t.ellipsis,t.location,m.value].join(),()=>{X(()=>{d()})}),g(()=>[t.text,t.autoResize].join(),()=>{X(()=>{p()})}),fe(()=>{x()}),ge(()=>{p()}),(s,_)=>(H(),he("div",{ref_key:"textClampRef",ref:r,class:"text-clamp",style:ve({overflow:"hidden",maxHeight:z(c)})},[U("span",{ref_key:"contentRef",ref:o},[O(s.$slots,"before",{expand:V,collapse:W,toggle:I,clamped:z(m),expanded:n.localExpanded}),U("span",{ref_key:"textRef",ref:i,"aria-label":e.text},null,8,Me),O(s.$slots,"after",{expand:V,collapse:W,toggle:I,clamped:z(m),expanded:n.localExpanded})],512)],4))}});de.__file="package/text-clamp.vue";const $e=e=>(e.install=function(a){a.component(e.__name,e)},e),Be=$e(de),Fe=4,je="... ",E=oe({name:"PzTextClamp",__name:"PzTextClamp",props:{text:{},maxContentLines:{default:Fe},clampPostfix:{default:je},btnClass:{default:""},autoResize:{type:Boolean,default:!0},expanded:{type:Boolean,default:!1},expandLabel:{},collapseLabel:{},typography:{}},emits:["update:expanded","clamp-change"],setup(e,{emit:a}){const t=e,r=h(()=>t.expandLabel??K("text.pzTextClamp.expandLabel")),o=h(()=>t.collapseLabel??K("text.pzTextClamp.collapseLabel")),i=a,n=l=>{i("update:expanded",l)},c=l=>{i("clamp-change",l)};return(l,d)=>(H(),G(z(Be),{text:e.text,"max-lines":e.maxContentLines,ellipsis:e.clampPostfix,expanded:e.expanded,"auto-resize":e.autoResize,class:ze(["pz-text-clamp",e.typography?`pz-typography--${e.typography}`:null]),"onUpdate:expanded":n,onClampChange:c},{after:J(({toggle:p,expanded:x,clamped:u})=>[O(l.$slots,"toggle",{toggle:p,expanded:x,clamped:u},()=>[u||x?(H(),G(z(Te),{key:0,variant:"transparent",type:"button",typography:e.typography??"body-regular",class:"pz-text-clamp__btn",onClick:ye(p,["stop"])},{default:J(()=>[be(Ce(x?o.value:r.value),1)]),_:2},1032,["typography","onClick"])):we("",!0)],!0)]),_:3},8,["text","max-lines","ellipsis","expanded","auto-resize","class"]))}}),$=Ee(E,[["__scopeId","data-v-5005fb0c"]]);E.__docgenInfo=Object.assign({displayName:E.name??E.__name},{name:"PzTextClamp",exportName:"default",displayName:"PzTextClamp",description:"",tags:{},props:[{name:"text",required:!0,type:{name:"string"}},{name:"maxContentLines",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"MAX_CONTENT_LINES"}},{name:"clampPostfix",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"DEFAULT_CLAMP_POSTFIX"}},{name:"btnClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"autoResize",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"expanded",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"expandLabel",required:!1,type:{name:"string"}},{name:"collapseLabel",required:!1,type:{name:"string"}},{name:"typography",required:!1,type:{name:"PzTextVariant"}}],events:[{name:"update:expanded",type:{names:["boolean"]}},{name:"clamp-change",type:{names:["boolean"]}}],slots:[{name:"toggle",scoped:!0,bindings:[{name:"toggle",title:"binding"},{name:"expanded",title:"binding"},{name:"clamped",title:"binding"}]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Text/PzTextClamp/PzTextClamp.vue"]});const B=[{kicker:"News teaser",title:"Two lines with default toggle",text:"The procurement framework for recovery projects should remain readable even when editors add dense context, supporting details, and legal clarifications into a single preview paragraph.",maxContentLines:2},{kicker:"Tender summary",title:"Three lines with longer body copy",text:"Prozorro teams often need the first block of text to stay compact inside cards, while still giving visitors a way to reveal the full explanation, deadlines, and rationale without leaving the page context.",maxContentLines:3},{kicker:"Always expanded",title:"Controlled expanded state",text:"This example starts opened to show that the wrapper supports v-model style control through update:expanded and still keeps the same text treatment as the collapsed variant.",maxContentLines:2,expanded:!0}],De=e=>`<template>
|
|
2
|
-
<PzTextClamp ${[`text="${e.text}"`,e.maxContentLines!==3?`:max-content-lines="${e.maxContentLines}"`:null,e.clampPostfix!=="... "?`clamp-postfix="${e.clampPostfix}"`:null,e.expandLabel!=="Show more"?`expand-label="${e.expandLabel}"`:null,e.collapseLabel!=="Collapse"?`collapse-label="${e.collapseLabel}"`:null,e.expanded?':expanded="true"':null].filter(t=>!!t).join(" ")} />
|
|
3
|
-
</template>`,
|
|
1
|
+
import{e as ie,h as fe,w as g,a4 as _e,i as ge,o as H,f as he,u as U,z as O,C as z,n as ve,r as L,c as h,j as X,v as G,y as J,g as ze,$ as ye,D as be,t as Ce,q as we}from"./iframe-NxZrijqp.js";import{P as oe}from"./PzText-CGEwaRsm.js";import{p as Le}from"./configs-CtUh_XBV.js";import{P as Te}from"./PzBtn-BEBwLD5o.js";import{a as K}from"./PzMessages-CsKFry8-.js";import{_ as Ee}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";var q=null;function Pe(e){return q||(q=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){return setTimeout(a,16)}).bind(window)),q(e)}var N=null;function Se(e){N||(N=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}).bind(window)),N(e)}function ke(e){var a=document.createElement("style");return a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(a),a}function y(e,a){a===void 0&&(a={});var t=document.createElement(e);return Object.keys(a).forEach(function(r){t[r]=a[r]}),t}function le(e,a,t){var r=window.getComputedStyle(e,null)||{display:"none"};return r[a]}function A(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var a=e;a!==document;){if(le(a,"display")==="none")return{detached:!1,rendered:!1};a=a.parentNode}return{detached:!1,rendered:!0}}var Re='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',M=0,T=null;function qe(e,a){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=Oe.bind(e));var t=e.__resize_listeners__;if(!t){if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,i=e.offsetHeight,o=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===r&&e.offsetHeight===i)||P(e)}),n=A(e),c=n.detached,l=n.rendered;e.__resize_observer_triggered__=c===!1&&l===!1,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){P(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(M||(T=ke(Re)),Ae(e),e.__resize_rendered__=A(e).rendered,window.MutationObserver){var d=new MutationObserver(e.__resize_mutation_handler__);d.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=d}}e.__resize_listeners__.push(a),M++}function Ne(e,a){var t=e.__resize_listeners__;if(t){if(a&&t.splice(t.indexOf(a),1),!t.length||!a){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",F),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--M&&T&&T.parentNode.removeChild(T)}}function He(e){var a=e.__resize_last__,t=a.width,r=a.height,i=e.offsetWidth,o=e.offsetHeight;return i!==t||o!==r?{width:i,height:o}:null}function Oe(){var e=A(this),a=e.rendered,t=e.detached;a!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(V(this),this.addEventListener("scroll",F,!0)),this.__resize_rendered__=a,P(this))}function F(){var e=this;V(this),this.__resize_raf__&&Se(this.__resize_raf__),this.__resize_raf__=Pe(function(){var a=He(e);a&&(e.__resize_last__=a,P(e))})}function P(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(a){a.call(e,e)})}function Ae(e){var a=le(e,"position");(!a||a==="static")&&(e.style.position="relative"),e.__resize_old_position__=a,e.__resize_last__={};var t=y("div",{className:"resize-triggers"}),r=y("div",{className:"resize-expand-trigger"}),i=y("div"),o=y("div",{className:"resize-contract-trigger"});r.appendChild(i),t.appendChild(r),t.appendChild(o),e.appendChild(t),e.__resize_triggers__={triggers:t,expand:r,expandChild:i,contract:o},V(e),e.addEventListener("scroll",F,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function V(e){var a=e.__resize_triggers__,t=a.expand,r=a.expandChild,i=a.contract,o=i.scrollWidth,n=i.scrollHeight,c=t.offsetWidth,l=t.offsetHeight,d=t.scrollWidth,p=t.scrollHeight;i.scrollLeft=o,i.scrollTop=n,r.style.width=c+1+"px",r.style.height=l+1+"px",t.scrollLeft=d,t.scrollTop=p}const Me=["aria-label"];var de=ie({__name:"text-clamp",props:{text:{type:String,required:!0},maxHeight:{type:[String,Number],required:!1},maxLines:{type:Number,required:!1},expanded:{type:Boolean,required:!1,default:!1},location:{type:String,required:!1,default:"end"},ellipsis:{type:String,required:!1,default:"…"},autoResize:{type:Boolean,required:!1,default:!1}},emits:["clamp-change","update:expanded"],setup(e,{emit:a}){const t=e,r=L(null),i=L(null),o=L(null),n=fe({offset:0,localExpanded:!!t.expanded,unregisterResizeCallback:null}),c=h(()=>{if(!n.localExpanded&&t.maxHeight)return typeof(t==null?void 0:t.maxHeight)=="number"?`${t==null?void 0:t.maxHeight}px`:t==null?void 0:t.maxHeight}),l=()=>{o.value&&(o.value.textContent=xe.value)},d=()=>{n.localExpanded||(l(),(u()||m.value)&&k())},p=()=>{t.text&&(n.offset=t.text.length,x(),t.autoResize&&r.value&&(qe(r.value,d),n.unregisterResizeCallback=()=>{r.value&&Ne(r.value,d)}),d())},x=()=>{var s;(s=n.unregisterResizeCallback)==null||s.call(n)},u=()=>!(!t.maxLines&&!t.maxHeight)&&!!r.value&&(!!(t.maxLines&&S()>t.maxLines)||!!(t.maxHeight&&r.value.scrollHeight>r.value.offsetHeight)),S=()=>i.value?Object.keys(Array.prototype.slice.call(i.value.getClientRects()).reduce((s,{top:f,bottom:v})=>{const _=`${f}/${v}`;return s[_]||(s[_]=!0),s},{})).length:0,k=(...s)=>{const[f=0,v=n.offset]=s;if(v-f<=3)return void pe();const _=Math.floor((v+f)/2);R(_),u()?k(f,_):k(_,v)},R=s=>{n.offset=s,l()},pe=()=>{ce(),ue()},ce=()=>{for(;(!u()||S()<2)&&n.offset<t.text.length;)j(1)},ue=()=>{for(;u()&&S()>1&&n.offset>0;)j(-1)},j=s=>{R(n.offset+s)},m=h(()=>!!t.text&&n.offset!==t.text.length);g(()=>m.value,s=>{setTimeout(()=>{a("clamp-change",s)},0)},{immediate:!0});const xe=h(()=>m.value?me.value:t.text),me=h(()=>{if(t.location==="start")return t.ellipsis+(t.text.slice(-n.offset)||"").trim();if(t.location==="middle"){const s=Math.floor(n.offset/2);return(t.text.slice(0,s)||"").trim()+t.ellipsis+(t.text.slice(-s)||"").trim()}return(t.text.slice(0,n.offset)||"").trim()+t.ellipsis}),D=()=>{n.localExpanded=!0},W=()=>{n.localExpanded=!1},I=()=>{n.localExpanded=!n.localExpanded};return g(()=>t.expanded,s=>{n.localExpanded=s}),g(()=>n.localExpanded,s=>{s?R(t.text.length):d(),t.expanded!==s&&a("update:expanded",s)}),g(()=>[t.maxLines,t.maxHeight,t.ellipsis,t.location,m.value].join(),()=>{X(()=>{d()})}),g(()=>[t.text,t.autoResize].join(),()=>{X(()=>{p()})}),_e(()=>{x()}),ge(()=>{p()}),(s,f)=>(H(),he("div",{ref_key:"textClampRef",ref:r,class:"text-clamp",style:ve({overflow:"hidden",maxHeight:z(c)})},[U("span",{ref_key:"contentRef",ref:i},[O(s.$slots,"before",{expand:D,collapse:W,toggle:I,clamped:z(m),expanded:n.localExpanded}),U("span",{ref_key:"textRef",ref:o,"aria-label":e.text},null,8,Me),O(s.$slots,"after",{expand:D,collapse:W,toggle:I,clamped:z(m),expanded:n.localExpanded})],512)],4))}});de.__file="package/text-clamp.vue";const $e=e=>(e.install=function(a){a.component(e.__name,e)},e),Be=$e(de),Fe=4,Ve="... ",E=ie({name:"PzTextClamp",__name:"PzTextClamp",props:{text:{},maxContentLines:{default:Fe},clampPostfix:{default:Ve},btnClass:{default:""},autoResize:{type:Boolean,default:!0},expanded:{type:Boolean,default:!1},expandLabel:{},collapseLabel:{},typography:{},italic:{type:Boolean,default:!1}},emits:["update:expanded","clamp-change"],setup(e,{emit:a}){const t=e,r=h(()=>t.expandLabel??K("text.pzTextClamp.expandLabel")),i=h(()=>t.collapseLabel??K("text.pzTextClamp.collapseLabel")),o=a,n=l=>{o("update:expanded",l)},c=l=>{o("clamp-change",l)};return(l,d)=>(H(),G(z(Be),{text:e.text,"max-lines":e.maxContentLines,ellipsis:e.clampPostfix,expanded:e.expanded,"auto-resize":e.autoResize,class:ze(["pz-text-clamp",[e.typography?`pz-typography--${e.typography}`:null,{"pz-text-clamp--italic":e.italic}]]),"onUpdate:expanded":n,onClampChange:c},{after:J(({toggle:p,expanded:x,clamped:u})=>[O(l.$slots,"toggle",{toggle:p,expanded:x,clamped:u},()=>[u||x?(H(),G(z(Te),{key:0,variant:"transparent",type:"button",typography:e.typography??"body-regular",class:"pz-text-clamp__btn",onClick:ye(p,["stop"])},{default:J(()=>[be(Ce(x?i.value:r.value),1)]),_:2},1032,["typography","onClick"])):we("",!0)],!0)]),_:3},8,["text","max-lines","ellipsis","expanded","auto-resize","class"]))}}),$=Ee(E,[["__scopeId","data-v-c52935a6"]]);E.__docgenInfo=Object.assign({displayName:E.name??E.__name},{name:"PzTextClamp",exportName:"default",displayName:"PzTextClamp",description:"",tags:{},props:[{name:"text",required:!0,type:{name:"string"}},{name:"maxContentLines",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"MAX_CONTENT_LINES"}},{name:"clampPostfix",required:!1,type:{name:"string"},defaultValue:{func:!1,value:"DEFAULT_CLAMP_POSTFIX"}},{name:"btnClass",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"autoResize",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"expanded",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"expandLabel",required:!1,type:{name:"string"}},{name:"collapseLabel",required:!1,type:{name:"string"}},{name:"typography",required:!1,type:{name:"PzTextVariant"}},{name:"italic",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"update:expanded",type:{names:["boolean"]}},{name:"clamp-change",type:{names:["boolean"]}}],slots:[{name:"toggle",scoped:!0,bindings:[{name:"toggle",title:"binding"},{name:"expanded",title:"binding"},{name:"clamped",title:"binding"}]}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Text/PzTextClamp/PzTextClamp.vue"]});const B=[{kicker:"News teaser",title:"Two lines with default toggle",text:"The procurement framework for recovery projects should remain readable even when editors add dense context, supporting details, and legal clarifications into a single preview paragraph.",maxContentLines:2},{kicker:"Tender summary",title:"Three lines with longer body copy",text:"Prozorro teams often need the first block of text to stay compact inside cards, while still giving visitors a way to reveal the full explanation, deadlines, and rationale without leaving the page context.",maxContentLines:3},{kicker:"Always expanded",title:"Controlled expanded state",text:"This example starts opened to show that the wrapper supports v-model style control through update:expanded and still keeps the same text treatment as the collapsed variant.",maxContentLines:2,expanded:!0}],je=e=>`<template>
|
|
2
|
+
<PzTextClamp ${[`text="${e.text}"`,e.maxContentLines!==3?`:max-content-lines="${e.maxContentLines}"`:null,e.clampPostfix!=="... "?`clamp-postfix="${e.clampPostfix}"`:null,e.expandLabel!=="Show more"?`expand-label="${e.expandLabel}"`:null,e.collapseLabel!=="Collapse"?`collapse-label="${e.collapseLabel}"`:null,e.expanded?':expanded="true"':null,e.italic?"italic":null].filter(t=>!!t).join(" ")} />
|
|
3
|
+
</template>`,De=()=>`<template>
|
|
4
4
|
<PzTextClamp
|
|
5
5
|
text="Long procurement summary that needs a custom action."
|
|
6
6
|
:max-content-lines="2"
|
|
@@ -16,7 +16,7 @@ import{e as oe,h as _e,w as g,a4 as fe,i as ge,o as H,f as he,u as U,z as O,C as
|
|
|
16
16
|
</button>
|
|
17
17
|
</template>
|
|
18
18
|
</PzTextClamp>
|
|
19
|
-
</template>`,We={title:"Components/Text/PzTextClamp",component:$,parameters:{prototype:{caption:"Text clamp component",note:"Built as a thin wrapper over vue3-text-clamp, reusing the old text/max-lines/postfix/button-class contract and replacing app-specific translations with explicit labels and a toggle slot."},docs:{description:{component:"Use `PzTextClamp` for compact previews of long copy. It defaults to the `body-regular` text style, exposes the old clamp props, and supports toggle customization through `v-model:expanded` and the `toggle` slot."},source:{transform:(e,a)=>
|
|
19
|
+
</template>`,We={title:"Components/Text/PzTextClamp",component:$,parameters:{prototype:{caption:"Text clamp component",note:"Built as a thin wrapper over vue3-text-clamp, reusing the old text/max-lines/postfix/button-class contract and replacing app-specific translations with explicit labels and a toggle slot."},docs:{description:{component:"Use `PzTextClamp` for compact previews of long copy. It defaults to the `body-regular` text style, exposes the old clamp props, and supports toggle customization through `v-model:expanded` and the `toggle` slot."},source:{transform:(e,a)=>je(a.args??We.args)}}},args:{text:B[1].text,maxContentLines:3,clampPostfix:"... ",btnClass:"",autoResize:!0,expanded:!1,expandLabel:"Show more",collapseLabel:"Collapse",typography:void 0,italic:!1,title:"Long-form card description"},argTypes:{text:{control:"text",description:"Source text rendered by the clamp component."},maxContentLines:{control:{type:"number",min:1,max:8,step:1},description:"Maximum number of visible lines before the text is clamped."},clampPostfix:{control:"text",description:"String appended to the truncated text."},btnClass:{control:"text",description:"Additional class names applied to the default toggle button."},autoResize:{control:"boolean",description:"Recalculates clamping on layout changes."},expanded:{control:"boolean",description:"Controlled expanded state."},expandLabel:{control:"text",description:"Default label shown while the text is collapsed."},collapseLabel:{control:"text",description:"Default label shown while the text is expanded."},typography:{control:"select",options:[void 0,...Le],description:"Overrides typography using a PzText variant."},italic:{control:"boolean",description:"Applies italic text style."},title:{control:"text",description:"Preview heading used in the story only.",table:{category:"Story"}}},render:e=>({components:{pzText:oe,pzTextClamp:$},setup(){const a=L(!!e.expanded);return g(()=>e.expanded,t=>{a.value=!!t}),{args:e,expanded:a,clampStories:B}},template:`
|
|
20
20
|
<div class="pz-text-clamp-story">
|
|
21
21
|
<section class="pz-text-clamp-story-hero">
|
|
22
22
|
<div class="pz-text-clamp-story-copy">
|
|
@@ -42,6 +42,7 @@ import{e as oe,h as _e,w as g,a4 as fe,i as ge,o as H,f as he,u as U,z as O,C as
|
|
|
42
42
|
:expand-label="args.expandLabel"
|
|
43
43
|
:collapse-label="args.collapseLabel"
|
|
44
44
|
:typography="args.typography"
|
|
45
|
+
:italic="args.italic"
|
|
45
46
|
@update:expanded="expanded = $event"
|
|
46
47
|
/>
|
|
47
48
|
</div>
|
|
@@ -66,7 +67,7 @@ import{e as oe,h as _e,w as g,a4 as fe,i as ge,o as H,f as he,u as U,z as O,C as
|
|
|
66
67
|
</article>
|
|
67
68
|
</section>
|
|
68
69
|
</div>
|
|
69
|
-
`})},b={},C={args:{text:B[0].text,maxContentLines:2,title:"News teaser"}},w={parameters:{docs:{source:{code:
|
|
70
|
+
`})},b={},C={args:{text:B[0].text,maxContentLines:2,title:"News teaser"}},w={parameters:{docs:{source:{code:De()}}},render:()=>({components:{pzText:oe,pzTextClamp:$},setup(){return{text:"Publishing teams can replace the default inline action with a branded control while keeping the same clamp behavior and the same underlying library implementation."}},template:`
|
|
70
71
|
<div class="pz-text-clamp-story">
|
|
71
72
|
<section class="pz-text-clamp-story-hero">
|
|
72
73
|
<div class="pz-text-clamp-story-copy">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as q,X as P,f as n,E as _,y as T,C as M,g as x,Y as b,o as d,B as S,u as B,a0 as $,t as u,q as z,c as k,r,w as C}from"./iframe-
|
|
1
|
+
import{e as q,X as P,f as n,E as _,y as T,C as M,g as x,Y as b,o as d,B as S,u as B,a0 as $,t as u,q as z,c as k,r,w as C}from"./iframe-NxZrijqp.js";import{P as N}from"./PzText-CGEwaRsm.js";import{P as I}from"./PzLabel-DHGTQwWu.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./preload-helper-C1FmrZbK.js";const j={key:0,class:"pz-textarea-wrap"},D=["id","placeholder","disabled","maxlength","required","rows"],E={key:0,class:"pz-textarea-counter"},A=["id"],L={key:2,class:"pz-textarea-error"},c=q({name:"PzTextarea",__name:"PzTextarea",props:b({name:{},modelValue:{},label:{default:""},placeholder:{default:""},errorMessage:{default:""},counted:{type:Boolean,default:!1},maxSize:{default:1e3},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},rows:{default:4}},{modelValue:{default:""},modelModifiers:{}}),emits:b(["focus","blur","update:modelValue"],["update:modelValue"]),setup(e,{emit:l}){const a=e,i=l,o=P(e,"modelValue"),m=k(()=>o.value.length);return(f,t)=>(d(),n("div",{class:x(["pz-textarea",{error:!!a.errorMessage,disabled:a.disabled}])},[_(M(I),{label:a.label,for:a.name,required:a.required,disabled:a.disabled},{default:T(()=>[a.editable?(d(),n("span",j,[S(B("textarea",{id:a.name,"onUpdate:modelValue":t[0]||(t[0]=s=>o.value=s),placeholder:a.placeholder,disabled:a.disabled,maxlength:a.counted?a.maxSize:void 0,required:a.required,rows:a.rows,class:x(["pz-textarea-control",{"pz-textarea-control--counted":a.counted}]),onBlur:t[1]||(t[1]=s=>i("blur")),onFocus:t[2]||(t[2]=s=>i("focus"))},null,42,D),[[$,o.value]]),a.counted?(d(),n("span",E,u(m.value)+"/"+u(a.maxSize),1)):z("",!0)])):(d(),n("div",{key:1,id:a.name,class:"pz-textarea-readonly"},u(o.value),9,A)),a.errorMessage?(d(),n("span",L,u(a.errorMessage),1)):z("",!0)]),_:1},8,["label","for","required","disabled"])],2))}}),v=F(c,[["__scopeId","data-v-2c726136"]]);c.__docgenInfo=Object.assign({displayName:c.name??c.__name},{name:"PzTextarea",exportName:"default",displayName:"PzTextarea",description:"",tags:{},props:[{name:"name",required:!0,type:{name:"string"}},{name:"modelValue",required:!0,type:{name:"string"}},{name:"label",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"placeholder",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"errorMessage",required:!1,type:{name:"string"},defaultValue:{func:!1,value:'""'}},{name:"counted",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"maxSize",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"1000"}},{name:"required",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"disabled",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"editable",required:!1,type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"rows",required:!1,type:{name:"number"},defaultValue:{func:!1,value:"4"}}],events:[{name:"focus"},{name:"blur"},{name:"update:modelValue",type:{names:["string"]}}],sourceFiles:["/builds/Web-Projects/client-services/prozorro-ui/src/components/Form/PzTextarea/PzTextarea.vue"]});const V=2,O=e=>`<template>
|
|
2
2
|
<PzTextarea
|
|
3
3
|
v-model="value"
|
|
4
4
|
${[`name="${e.name}"`,e.label?`label="${e.label}"`:null,e.placeholder?`placeholder="${e.placeholder}"`:null,e.required?':required="true"':null,e.disabled?':disabled="true"':null,e.editable===!1?':editable="false"':null,e.counted?':counted="true"':null,e.maxSize?`:max-size="${e.maxSize}"`:null,e.rows&&e.rows!==V?`:rows="${e.rows}"`:null,e.errorMessage?`error-message="${e.errorMessage}"`:null].filter(a=>!!a).join(" ")}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,s as o}from"./iframe-
|
|
1
|
+
import{r as n,s as o}from"./iframe-NxZrijqp.js";const a=o(null),r=n(!1),f=(s,t)=>{a.value=s,r.value=!1},u=()=>{a.value=null,r.value=!1},e=(s,t)=>a.value?a.value(s,t):s,c=(s,t)=>()=>e(s,t),p=s=>s?typeof s=="function"?s():r.value?e(s):s:"";export{p as a,c as p,u as r,f as s};
|
package/dist/app/assets/{PzTranslator.stories-xv04GLFU.js → PzTranslator.stories-DA2_gFJ4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g}from"./iframe-
|
|
1
|
+
import{r as g}from"./iframe-NxZrijqp.js";import{P as y}from"./PzBtn-BEBwLD5o.js";import{P as h}from"./PzKeyValue-sdycag4I.js";import{P as f}from"./PzTable-B7Rat275.js";import{s as b,p as t,r as z}from"./PzTranslator-An8XzTlW.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./isArray-uCF_2ZQ0.js";import"./isObjectLike-zXfibqpL.js";import"./lodash-CdDiHlzQ.js";import"./PzDomHandler-BU7iMNnt.js";import"./PzMessages-CsKFry8-.js";import"./PzInfoHint-BQGOfA5v.js";import"./PzIcon-AejPkK3_.js";import"./PzHint-DJsQq-CH.js";import"./floating-vue-DLhPcBHj.js";import"./floating-vue-zsdWEwSl.js";const k={uk:{"labels.title":"Найменування","labels.amount":"Сума","labels.period":"Період"},en:{"labels.title":"Title","labels.amount":"Amount","labels.period":"Period"}},N={title:"Services/PzTranslator",tags:["autodocs"],parameters:{docs:{description:{component:["`PzTranslator` bridges an app i18n instance into **config-driven components**, so views no longer","re-map their configs through `i18n.t` before passing them down.","","It is the sibling of [`PzMessages`](/docs/services-pzmessages--docs): `PzMessages` overrides the","library's **own** built-in strings; `PzTranslator` resolves the text **you** put in a config","(`PzKeyValue.config[].labelKey`, `PzTableColumn.name`, and friends).","","The library never imports an i18n package — you register a plain function, so vue-i18n, i18next or a","hand-rolled dictionary all work.","","API:","","- `setTranslator(fn, options?)` — register the app translate function. `options.autoTranslate` also routes bare config strings through it.","- `pzT(key, params?)` — wrap a key as a lazy resolver for use inside a config.","- `translate(key, params?)` — call the translator directly; returns `key` unchanged when none is registered.","- `resolveText(value)` — resolve a text field to a string (used internally by components).","- `resetTranslator()` — unregister and fall back to identity.","","### Bootstrap","","Register once at app startup (e.g. in `main.ts`). The `te` guard keeps plain literal text from","producing missing-key warnings under `autoTranslate`:","","```ts",'import { setTranslator } from "@prozorro/prozorro-ui";','import { i18n } from "@/i18n";',"","setTranslator("," (key, params) => (i18n.global.te(key) ? i18n.global.t(key, params ?? {}) : key),"," { autoTranslate: true },",");","```","","### `autoTranslate` — zero-edit migration","","With `autoTranslate: true`, configs that already store i18n keys work unchanged and the per-view","`computed` mapper disappears:","","```ts","// config module — unchanged",'export const listConfig = [{ id: "1", key: "value-amount", labelKey: "labels.amount" }];',"```","","```vue","<!-- view — no useI18n(), no computed() -->",'<pz-key-value :config="listConfig" :data="data" />',"```","","### `pzT` — explicit keys for mixed configs","","Leave `autoTranslate` off when a config mixes i18n keys with literal text. Mark only the keys:","","```ts",'import { pzT } from "@prozorro/prozorro-ui";',"","export const listConfig = [",' { id: "1", key: "amount", labelKey: pzT("labels.amount") }, // translated',' { id: "2", key: "code", labelKey: "ДК 021:2015" }, // literal, untouched',"];","```","","`pzT` is **lazy** for the same reason `PzMessages` resolvers are: it is evaluated when the text","renders, not when the config module is evaluated. Storing `i18n.t(...)` directly would freeze","whatever existed at import time — usually the raw key path, before the locale loaded.","","### Reactivity and scope","","Translator state is a module-level singleton read inside the render effect, so a late","`setTranslator` call and a locale switch inside your translator both re-render the affected text","without a remount. Being module-scoped, there is one translator per JS realm — worth noting for SSR","or multi-app-instance setups, where the last registration wins.","","Identity fields are never translated. `PzTabs` resolves a tab's `name` for display only; the active","tab is tracked by the raw value, so switching locale cannot orphan the selection. The same holds for","`PzNav.name` (route name) and `PzKeyValue.key` (data path / slot name).","","The demo below registers a dictionary translator with `autoTranslate` **off**, so the `pzT` rows","translate while the literal row stays put. Switch locale and watch the labels update in place."].join(`
|
|
2
2
|
`)}}},render:()=>({components:{pzKeyValue:h,pzTable:f,pzBtn:y},setup(){const e=g("uk"),o=()=>{b(r=>{var s;return((s=k[e.value])==null?void 0:s[r])??r})};o();const p=()=>{e.value=e.value==="uk"?"en":"uk"},d=()=>{z()},c=[{id:"1",key:"title",labelKey:t("labels.title")},{id:"2",key:"amount",labelKey:t("labels.amount")},{id:"3",key:"code",labelKey:"ДК 021:2015"}],u={title:"Медичне обладнання",amount:"1 200 000 UAH",code:"33100000-1"},m=[{id:"1",name:t("labels.title"),key:"title"},{id:"2",name:t("labels.period"),key:"period"}];return{locale:e,switchLocale:p,register:o,disable:d,config:c,data:u,tableConfig:m,tableData:[{title:"Лот №1",period:"01.01.2026 — 31.12.2026"}]}},template:`
|
|
3
3
|
<section style="display: flex; flex-direction: column; gap: 16px;">
|
|
4
4
|
<pz-key-value :config="config" :data="data" />
|
package/dist/app/assets/{PzValidatorXSS.stories-9EGBfbS9.js → PzValidatorXSS.stories-DhrhZfmm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,c as z}from"./iframe-
|
|
1
|
+
import{r as c,c as z}from"./iframe-NxZrijqp.js";import{P as u}from"./PzText-CGEwaRsm.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";class s{static validQuery(t){const i={};return Object.keys(t).forEach(e=>{const a=t[e];Array.isArray(a)?i[e]=a.map(n=>s.validString(n)):i[e]=s.validString(a)}),i}static validString(t){return t==null?"":String(t).replace(/<[^>]*>/gim,"").trim()}}const m=o=>`<script setup lang="ts">
|
|
2
2
|
import { PzValidatorXSS } from "@prozorro/prozorro-ui";
|
|
3
3
|
|
|
4
4
|
const input = "${o.testInput}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as n}from"./PzText-
|
|
1
|
+
import{P as n}from"./PzText-CGEwaRsm.js";import"./iframe-NxZrijqp.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const p=[{token:"4",value:"4px",variable:"--pz-space-4",utility:"pz-m-4 / pz-p-4",note:"Gap between a title and its supporting text."},{token:"8",value:"8px",variable:"--pz-space-8",utility:"pz-m-8 / pz-p-8",note:"Gap between dependent text rows."},{token:"16",value:"16px",variable:"--pz-space-16",utility:"pz-m-16 / pz-p-16",note:"Spacing for title blocks, table content, and link groups."},{token:"20",value:"20px",variable:"--pz-space-20",utility:"pz-m-20 / pz-p-20",note:"Gap between equal elements."},{token:"24",value:"24px",variable:"--pz-space-24",utility:"pz-m-24 / pz-p-24",note:"Spacing for docs, dividers, and tab padding."},{token:"32",value:"32px",variable:"--pz-space-32",utility:"pz-m-32 / pz-p-32",note:"Inset from content to nested background edges."},{token:"40",value:"40px",variable:"--pz-space-40",utility:"pz-m-40 / pz-p-40",note:"Large inset inside nested content areas."},{token:"44",value:"44px",variable:"--pz-space-44",utility:"pz-m-44 / pz-p-44",note:"Gap between a header and content in cabinet layouts."},{token:"60",value:"60px",variable:"--pz-space-60",utility:"pz-m-60 / pz-p-60",note:"Gap between equal large blocks."}],s=[{title:"Margin utilities",note:"Outer spacing",items:[{name:".pz-m-*",description:"Margin on all sides."},{name:".pz-mt-* / .pz-mr-* / .pz-mb-* / .pz-ml-*",description:"Single-side margin utilities."},{name:".pz-mx-* / .pz-my-*",description:"Inline and block axis margin utilities."},{name:".pz-m-auto / .pz-mx-auto / .pz-my-auto",description:"Auto alignment helpers."}]},{title:"Padding utilities",note:"Inner spacing",items:[{name:".pz-p-*",description:"Padding on all sides."},{name:".pz-pt-* / .pz-pr-* / .pz-pb-* / .pz-pl-*",description:"Single-side padding utilities."},{name:".pz-px-* / .pz-py-*",description:"Inline and block axis padding utilities."}]}],o=[{name:"sm",prefix:".pz-{prop}-sm-{value}",minWidth:"≥ 576px",description:"Small viewports and up."},{name:"md",prefix:".pz-{prop}-md-{value}",minWidth:"≥ 768px",description:"Tablet breakpoint and up."},{name:"lg",prefix:".pz-{prop}-lg-{value}",minWidth:"≥ 1024px",description:"Large viewports and up."},{name:"xl",prefix:".pz-{prop}-xl-{value}",minWidth:"≥ 1200px",description:"Desktop breakpoint and up."},{name:"xxl",prefix:".pz-{prop}-xxl-{value}",minWidth:"≥ 1400px",description:"Wide displays and up."}],u={title:"Foundation/Spacing",parameters:{prototype:{caption:"Spacing scale",note:"Spacing token and utility reference for margin and padding helpers."},docs:{description:{component:"Spacing foundation for `@prozorro/prozorro-ui`. The utility module emits `pz-m-*` and `pz-p-*` classes backed by the shared `--pz-space-*` token scale aligned with the visible Figma spacing board."}}},render:()=>({components:{pzText:n},setup(){return{spacingTokens:p,utilityGroups:s,spacingBreakpoints:o}},template:`
|
|
2
2
|
<div class="spacing-foundation">
|
|
3
3
|
<section class="spacing-foundation-board">
|
|
4
4
|
<header class="spacing-foundation-hero">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,c as o}from"./iframe-
|
|
1
|
+
import{r as n,c as o}from"./iframe-NxZrijqp.js";import{I as l}from"./PzListNav-CO2JdEYD.js";function m(a){const e=n(a.perPage||l.FIVE),t=n([0,e.value]),s=o(()=>a.data.slice(...t.value)),i=o(()=>a.data.length>e.value);return{perPage:e,pageChanged:g=>{t.value=g},getItems:s,isPaginationAvailable:i,visibleRangeElements:t}}export{m as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as p}from"./PzText-
|
|
1
|
+
import{P as p}from"./PzText-CGEwaRsm.js";import"./iframe-NxZrijqp.js";import"./preload-helper-C1FmrZbK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const a=[{variant:"h1-bold",label:"Headline Bold 1",spec:"44px / 700 / 1.5"},{variant:"h1-regular",label:"Headline Regular 1",spec:"44px / 400 / 1.5"},{variant:"h2-bold",label:"Headline Bold 2",spec:"32px / 700 / 1.5"},{variant:"h3-bold",label:"Headline Bold 3",spec:"24px / 700 / 1.5"},{variant:"h3-regular",label:"Headline Regular 3",spec:"24px / 400 / 1.5"},{variant:"h4-regular",label:"Headline Regular 4",spec:"18px / 400 / 1.5"},{variant:"h4-semibold",label:"Headline Semibold 4",spec:"18px / 600 / 1.5"},{variant:"h4-bold",label:"Headline Bold 4",spec:"18px / 700 / 1.5"},{variant:"subtitle",label:"Subtitle",spec:"16px / 600 / 1.5"},{variant:"subtitle-bold",label:"Subtitle bold",spec:"16px / 700 / 1.5"},{variant:"body-regular",label:"Body text regular",spec:"14px / 400 / 1.5"},{variant:"body-semibold",label:"Body text semibold",spec:"14px / 600 / 1.5"},{variant:"body-bold",label:"Body text bold",spec:"14px / 700 / 1.5"},{variant:"capitalized",label:"Capitalized text",spec:"14px / 400 / uppercase"},{variant:"hint",label:"Hint text",spec:"14px / 400 / muted"},{variant:"line-through",label:"Archived value",spec:"14px / 400 / strike"},{variant:"small-regular",label:"Small text regular",spec:"12px / 400 / 1.5"},{variant:"small-semibold",label:"Small text semibold",spec:"12px / 600 / 1.5"},{variant:"small-bold",label:"Small text bold",spec:"12px / 700 / 1.5"},{variant:"link",label:"Review procurement details",spec:"14px / 400 / underline"},{variant:"document",label:"Document text",spec:"14px / 400 / default"}],t=8,r=16,n=[{title:"Headlines",description:"Primary hierarchy for pages, sections and table headers.",items:a.slice(0,t)},{title:"Reading text",description:"Core editorial styles for descriptions, summaries and UI copy.",items:a.slice(t,r)},{title:"Utility styles",description:"Compact text styles for metadata, helpers and document references.",items:a.slice(r)}],x={title:"Foundation/Typography",parameters:{prototype:{caption:"Typography reference",note:"Foundation board for validating hierarchy, weight, and text semantics against the shared design-system scale."},docs:{description:{component:"Typography foundation reference. Use this page to review the full type scale and variant grouping; use `Components/Text/PzText` for the component API."}}},args:{variant:"body-regular",content:"Every procurement notice should stay readable across dense interfaces and long-form content."},render:o=>({components:{pzText:p},setup(){return{args:o,typographyReferenceGroups:n}},template:`
|
|
2
2
|
<div class="pz-text-board">
|
|
3
3
|
<section class="pz-text-board-hero">
|
|
4
4
|
<div class="pz-text-board-hero-copy">
|
package/dist/app/assets/{WithTooltip-65CFNBJE-BimkOYIq.js → WithTooltip-65CFNBJE-DQJaA_Rm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as U,r as b,s as Re,l as pe,b as Bt,_ as te,c as Pt,a as Mt,e as _t}from"./DocsRenderer-LL677BLK-S87SNKMv.js";import{b as We,d as ft}from"./iframe-Ds8IpYVS.js";import"./preload-helper-C1FmrZbK.js";import"./_commonjsHelpers-Cpj98o6Y.js";var Ht=ft({"../../node_modules/react-fast-compare/index.js"(e,t){var r=typeof Element<"u",o=typeof Map=="function",n=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function l(u,a){if(u===a)return!0;if(u&&a&&typeof u=="object"&&typeof a=="object"){if(u.constructor!==a.constructor)return!1;var i,f,p;if(Array.isArray(u)){if(i=u.length,i!=a.length)return!1;for(f=i;f--!==0;)if(!l(u[f],a[f]))return!1;return!0}var c;if(o&&u instanceof Map&&a instanceof Map){if(u.size!==a.size)return!1;for(c=u.entries();!(f=c.next()).done;)if(!a.has(f.value[0]))return!1;for(c=u.entries();!(f=c.next()).done;)if(!l(f.value[1],a.get(f.value[0])))return!1;return!0}if(n&&u instanceof Set&&a instanceof Set){if(u.size!==a.size)return!1;for(c=u.entries();!(f=c.next()).done;)if(!a.has(f.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(a)){if(i=u.length,i!=a.length)return!1;for(f=i;f--!==0;)if(u[f]!==a[f])return!1;return!0}if(u.constructor===RegExp)return u.source===a.source&&u.flags===a.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof a.valueOf=="function")return u.valueOf()===a.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof a.toString=="function")return u.toString()===a.toString();if(p=Object.keys(u),i=p.length,i!==Object.keys(a).length)return!1;for(f=i;f--!==0;)if(!Object.prototype.hasOwnProperty.call(a,p[f]))return!1;if(r&&u instanceof Element)return!1;for(f=i;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&u.$$typeof)&&!l(u[p[f]],a[p[f]]))return!1;return!0}return u!==u&&a!==a}t.exports=function(u,a){try{return l(u,a)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}}}}),Nt=ft({"../../node_modules/warning/warning.js"(e,t){var r=function(){};t.exports=r}}),Vt=We(Mt(),1);const{deprecate:lt}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:qt}=__STORYBOOK_MODULE_GLOBAL__;b.createContext();b.createContext();var Ke=function(e){return e.reduce(function(t,r){var o=r[0],n=r[1];return t[o]=n,t},{})},Je=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,$="top",H="bottom",N="right",B="left",je="auto",ye=[$,H,N,B],ie="start",ge="end",Ut="clippingParents",ct="viewport",ce="popper",zt="reference",Qe=ye.reduce(function(e,t){return e.concat([t+"-"+ie,t+"-"+ge])},[]),pt=[].concat(ye,[je]).reduce(function(e,t){return e.concat([t,t+"-"+ie,t+"-"+ge])},[]),It="beforeRead",Yt="read",Xt="afterRead",Ft="beforeMain",Gt="main",Kt="afterMain",Jt="beforeWrite",Qt="write",Zt="afterWrite",er=[It,Yt,Xt,Ft,Gt,Kt,Jt,Qt,Zt];function I(e){return e?(e.nodeName||"").toLowerCase():null}function P(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ne(e){var t=P(e).Element;return e instanceof t||e instanceof Element}function _(e){var t=P(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $e(e){if(typeof ShadowRoot>"u")return!1;var t=P(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},s=t.elements[r];!_(s)||!I(s)||(Object.assign(s.style,o),Object.keys(n).forEach(function(l){var u=n[l];u===!1?s.removeAttribute(l):s.setAttribute(l,u===!0?"":u)}))})}function rr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],s=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),u=l.reduce(function(a,i){return a[i]="",a},{});!_(n)||!I(n)||(Object.assign(n.style,u),Object.keys(s).forEach(function(a){n.removeAttribute(a)}))})}}var dt={name:"applyStyles",enabled:!0,phase:"write",fn:tr,effect:rr,requires:["computeStyles"]};function z(e){return e.split("-")[0]}var re=Math.max,Te=Math.min,ae=Math.round;function ke(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vt(){return!/^((?!chrome|android).)*safari/i.test(ke())}function se(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,s=1;t&&_(e)&&(n=e.offsetWidth>0&&ae(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ae(o.height)/e.offsetHeight||1);var l=ne(e)?P(e):window,u=l.visualViewport,a=!vt()&&r,i=(o.left+(a&&u?u.offsetLeft:0))/n,f=(o.top+(a&&u?u.offsetTop:0))/s,p=o.width/n,c=o.height/s;return{width:p,height:c,top:f,right:i+p,bottom:f+c,left:i,x:i,y:f}}function Be(e){var t=se(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function mt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&$e(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function F(e){return P(e).getComputedStyle(e)}function nr(e){return["table","td","th"].indexOf(I(e))>=0}function K(e){return((ne(e)?e.ownerDocument:e.document)||window.document).documentElement}function Le(e){return I(e)==="html"?e:e.assignedSlot||e.parentNode||($e(e)?e.host:null)||K(e)}function Ze(e){return!_(e)||F(e).position==="fixed"?null:e.offsetParent}function or(e){var t=/firefox/i.test(ke()),r=/Trident/i.test(ke());if(r&&_(e)){var o=F(e);if(o.position==="fixed")return null}var n=Le(e);for($e(n)&&(n=n.host);_(n)&&["html","body"].indexOf(I(n))<0;){var s=F(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function be(e){for(var t=P(e),r=Ze(e);r&&nr(r)&&F(r).position==="static";)r=Ze(r);return r&&(I(r)==="html"||I(r)==="body"&&F(r).position==="static")?t:r||or(e)||t}function Pe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function de(e,t,r){return re(e,Te(t,r))}function ir(e,t,r){var o=de(e,t,r);return o>r?r:o}function gt(){return{top:0,right:0,bottom:0,left:0}}function ht(e){return Object.assign({},gt(),e)}function yt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var ar=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ht(typeof e!="number"?e:yt(e,ye))};function sr(e){var t,r=e.state,o=e.name,n=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,u=z(r.placement),a=Pe(u),i=[B,N].indexOf(u)>=0,f=i?"height":"width";if(!(!s||!l)){var p=ar(n.padding,r),c=Be(s),v=a==="y"?$:B,g=a==="y"?H:N,d=r.rects.reference[f]+r.rects.reference[a]-l[a]-r.rects.popper[f],O=l[a]-r.rects.reference[a],E=be(s),C=E?a==="y"?E.clientHeight||0:E.clientWidth||0:0,k=d/2-O/2,m=p[v],w=C-c[f]-p[g],y=C/2-c[f]/2+k,T=de(m,y,w),S=a;r.modifiersData[o]=(t={},t[S]=T,t.centerOffset=T-y,t)}}function ur(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||mt(t.elements.popper,n)&&(t.elements.arrow=n))}var fr={name:"arrow",enabled:!0,phase:"main",fn:sr,effect:ur,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ue(e){return e.split("-")[1]}var lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:ae(r*n)/n||0,y:ae(o*n)/n||0}}function et(e){var t,r=e.popper,o=e.popperRect,n=e.placement,s=e.variation,l=e.offsets,u=e.position,a=e.gpuAcceleration,i=e.adaptive,f=e.roundOffsets,p=e.isFixed,c=l.x,v=c===void 0?0:c,g=l.y,d=g===void 0?0:g,O=typeof f=="function"?f({x:v,y:d}):{x:v,y:d};v=O.x,d=O.y;var E=l.hasOwnProperty("x"),C=l.hasOwnProperty("y"),k=B,m=$,w=window;if(i){var y=be(r),T="clientHeight",S="clientWidth";if(y===P(r)&&(y=K(r),F(y).position!=="static"&&u==="absolute"&&(T="scrollHeight",S="scrollWidth")),y=y,n===$||(n===B||n===N)&&s===ge){m=H;var x=p&&y===w&&w.visualViewport?w.visualViewport.height:y[T];d-=x-o.height,d*=a?1:-1}if(n===B||(n===$||n===H)&&s===ge){k=N;var R=p&&y===w&&w.visualViewport?w.visualViewport.width:y[S];v-=R-o.width,v*=a?1:-1}}var L=Object.assign({position:u},i&&lr),j=f===!0?cr({x:v,y:d},P(r)):{x:v,y:d};if(v=j.x,d=j.y,a){var W;return Object.assign({},L,(W={},W[m]=C?"0":"",W[k]=E?"0":"",W.transform=(w.devicePixelRatio||1)<=1?"translate("+v+"px, "+d+"px)":"translate3d("+v+"px, "+d+"px, 0)",W))}return Object.assign({},L,(t={},t[m]=C?d+"px":"",t[k]=E?v+"px":"",t.transform="",t))}function pr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,s=r.adaptive,l=s===void 0?!0:s,u=r.roundOffsets,a=u===void 0?!0:u,i={placement:z(t.placement),variation:ue(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,et(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,et(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var bt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pr,data:{}},Ee={passive:!0};function dr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,s=n===void 0?!0:n,l=o.resize,u=l===void 0?!0:l,a=P(t.elements.popper),i=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&i.forEach(function(f){f.addEventListener("scroll",r.update,Ee)}),u&&a.addEventListener("resize",r.update,Ee),function(){s&&i.forEach(function(f){f.removeEventListener("scroll",r.update,Ee)}),u&&a.removeEventListener("resize",r.update,Ee)}}var wt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dr,data:{}},vr={left:"right",right:"left",bottom:"top",top:"bottom"};function Se(e){return e.replace(/left|right|bottom|top/g,function(t){return vr[t]})}var mr={start:"end",end:"start"};function tt(e){return e.replace(/start|end/g,function(t){return mr[t]})}function Me(e){var t=P(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function _e(e){return se(K(e)).left+Me(e).scrollLeft}function gr(e,t){var r=P(e),o=K(e),n=r.visualViewport,s=o.clientWidth,l=o.clientHeight,u=0,a=0;if(n){s=n.width,l=n.height;var i=vt();(i||!i&&t==="fixed")&&(u=n.offsetLeft,a=n.offsetTop)}return{width:s,height:l,x:u+_e(e),y:a}}function hr(e){var t,r=K(e),o=Me(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=re(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=re(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),u=-o.scrollLeft+_e(e),a=-o.scrollTop;return F(n||r).direction==="rtl"&&(u+=re(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:l,x:u,y:a}}function He(e){var t=F(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function xt(e){return["html","body","#document"].indexOf(I(e))>=0?e.ownerDocument.body:_(e)&&He(e)?e:xt(Le(e))}function ve(e,t){var r;t===void 0&&(t=[]);var o=xt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),s=P(o),l=n?[s].concat(s.visualViewport||[],He(o)?o:[]):o,u=t.concat(l);return n?u:u.concat(ve(Le(l)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yr(e,t){var r=se(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function rt(e,t,r){return t===ct?De(gr(e,r)):ne(t)?yr(t,r):De(hr(K(e)))}function br(e){var t=ve(Le(e)),r=["absolute","fixed"].indexOf(F(e).position)>=0,o=r&&_(e)?be(e):e;return ne(o)?t.filter(function(n){return ne(n)&&mt(n,o)&&I(n)!=="body"}):[]}function wr(e,t,r,o){var n=t==="clippingParents"?br(e):[].concat(t),s=[].concat(n,[r]),l=s[0],u=s.reduce(function(a,i){var f=rt(e,i,o);return a.top=re(f.top,a.top),a.right=Te(f.right,a.right),a.bottom=Te(f.bottom,a.bottom),a.left=re(f.left,a.left),a},rt(e,l,o));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Ot(e){var t=e.reference,r=e.element,o=e.placement,n=o?z(o):null,s=o?ue(o):null,l=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,a;switch(n){case $:a={x:l,y:t.y-r.height};break;case H:a={x:l,y:t.y+t.height};break;case N:a={x:t.x+t.width,y:u};break;case B:a={x:t.x-r.width,y:u};break;default:a={x:t.x,y:t.y}}var i=n?Pe(n):null;if(i!=null){var f=i==="y"?"height":"width";switch(s){case ie:a[i]=a[i]-(t[f]/2-r[f]/2);break;case ge:a[i]=a[i]+(t[f]/2-r[f]/2);break}}return a}function he(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,s=r.strategy,l=s===void 0?e.strategy:s,u=r.boundary,a=u===void 0?Ut:u,i=r.rootBoundary,f=i===void 0?ct:i,p=r.elementContext,c=p===void 0?ce:p,v=r.altBoundary,g=v===void 0?!1:v,d=r.padding,O=d===void 0?0:d,E=ht(typeof O!="number"?O:yt(O,ye)),C=c===ce?zt:ce,k=e.rects.popper,m=e.elements[g?C:c],w=wr(ne(m)?m:m.contextElement||K(e.elements.popper),a,f,l),y=se(e.elements.reference),T=Ot({reference:y,element:k,placement:n}),S=De(Object.assign({},k,T)),x=c===ce?S:y,R={top:w.top-x.top+E.top,bottom:x.bottom-w.bottom+E.bottom,left:w.left-x.left+E.left,right:x.right-w.right+E.right},L=e.modifiersData.offset;if(c===ce&&L){var j=L[n];Object.keys(R).forEach(function(W){var V=[N,H].indexOf(W)>=0?1:-1,h=[$,H].indexOf(W)>=0?"y":"x";R[W]+=j[h]*V})}return R}function xr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,s=r.rootBoundary,l=r.padding,u=r.flipVariations,a=r.allowedAutoPlacements,i=a===void 0?pt:a,f=ue(o),p=f?u?Qe:Qe.filter(function(g){return ue(g)===f}):ye,c=p.filter(function(g){return i.indexOf(g)>=0});c.length===0&&(c=p);var v=c.reduce(function(g,d){return g[d]=he(e,{placement:d,boundary:n,rootBoundary:s,padding:l})[z(d)],g},{});return Object.keys(v).sort(function(g,d){return v[g]-v[d]})}function Or(e){if(z(e)===je)return[];var t=Se(e);return[tt(e),t,tt(t)]}function Er(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,l=r.altAxis,u=l===void 0?!0:l,a=r.fallbackPlacements,i=r.padding,f=r.boundary,p=r.rootBoundary,c=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,d=r.allowedAutoPlacements,O=t.options.placement,E=z(O),C=E===O,k=a||(C||!g?[Se(O)]:Or(O)),m=[O].concat(k).reduce(function(Z,X){return Z.concat(z(X)===je?xr(t,{placement:X,boundary:f,rootBoundary:p,padding:i,flipVariations:g,allowedAutoPlacements:d}):X)},[]),w=t.rects.reference,y=t.rects.popper,T=new Map,S=!0,x=m[0],R=0;R<m.length;R++){var L=m[R],j=z(L),W=ue(L)===ie,V=[$,H].indexOf(j)>=0,h=V?"width":"height",A=he(t,{placement:L,boundary:f,rootBoundary:p,altBoundary:c,padding:i}),D=V?W?N:B:W?H:$;w[h]>y[h]&&(D=Se(D));var Y=Se(D),q=[];if(s&&q.push(A[j]<=0),u&&q.push(A[D]<=0,A[Y]<=0),q.every(function(Z){return Z})){x=L,S=!1;break}T.set(L,q)}if(S)for(var J=g?3:1,Q=function(Z){var X=m.find(function(xe){var le=T.get(xe);if(le)return le.slice(0,Z).every(function(oe){return oe})});if(X)return x=X,"break"},fe=J;fe>0;fe--){var we=Q(fe);if(we==="break")break}t.placement!==x&&(t.modifiersData[o]._skip=!0,t.placement=x,t.reset=!0)}}var Sr={name:"flip",enabled:!0,phase:"main",fn:Er,requiresIfExists:["offset"],data:{_skip:!1}};function nt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ot(e){return[$,N,H,B].some(function(t){return e[t]>=0})}function Tr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,l=he(t,{elementContext:"reference"}),u=he(t,{altBoundary:!0}),a=nt(l,o),i=nt(u,n,s),f=ot(a),p=ot(i);t.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:i,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var Rr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tr};function Lr(e,t,r){var o=z(e),n=[B,$].indexOf(o)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],u=s[1];return l=l||0,u=(u||0)*n,[B,N].indexOf(o)>=0?{x:u,y:l}:{x:l,y:u}}function Cr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,s=n===void 0?[0,0]:n,l=pt.reduce(function(f,p){return f[p]=Lr(p,t.rects,s),f},{}),u=l[t.placement],a=u.x,i=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=i),t.modifiersData[o]=l}var Ar={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cr};function kr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ot({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Et={name:"popperOffsets",enabled:!0,phase:"read",fn:kr,data:{}};function Dr(e){return e==="x"?"y":"x"}function Wr(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,s=n===void 0?!0:n,l=r.altAxis,u=l===void 0?!1:l,a=r.boundary,i=r.rootBoundary,f=r.altBoundary,p=r.padding,c=r.tether,v=c===void 0?!0:c,g=r.tetherOffset,d=g===void 0?0:g,O=he(t,{boundary:a,rootBoundary:i,padding:p,altBoundary:f}),E=z(t.placement),C=ue(t.placement),k=!C,m=Pe(E),w=Dr(m),y=t.modifiersData.popperOffsets,T=t.rects.reference,S=t.rects.popper,x=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(y){if(s){var W,V=m==="y"?$:B,h=m==="y"?H:N,A=m==="y"?"height":"width",D=y[m],Y=D+O[V],q=D-O[h],J=v?-S[A]/2:0,Q=C===ie?T[A]:S[A],fe=C===ie?-S[A]:-T[A],we=t.elements.arrow,Z=v&&we?Be(we):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gt(),xe=X[V],le=X[h],oe=de(0,T[A],Z[A]),Ct=k?T[A]/2-J-oe-xe-R.mainAxis:Q-oe-xe-R.mainAxis,At=k?-T[A]/2+J+oe+le+R.mainAxis:fe+oe+le+R.mainAxis,Ce=t.elements.arrow&&be(t.elements.arrow),kt=Ce?m==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ve=(W=L==null?void 0:L[m])!=null?W:0,Dt=D+Ct-Ve-kt,Wt=D+At-Ve,qe=de(v?Te(Y,Dt):Y,D,v?re(q,Wt):q);y[m]=qe,j[m]=qe-D}if(u){var Ue,jt=m==="x"?$:B,$t=m==="x"?H:N,ee=y[w],Oe=w==="y"?"height":"width",ze=ee+O[jt],Ie=ee-O[$t],Ae=[$,B].indexOf(E)!==-1,Ye=(Ue=L==null?void 0:L[w])!=null?Ue:0,Xe=Ae?ze:ee-T[Oe]-S[Oe]-Ye+R.altAxis,Fe=Ae?ee+T[Oe]+S[Oe]-Ye-R.altAxis:Ie,Ge=v&&Ae?ir(Xe,ee,Fe):de(v?Xe:ze,ee,v?Fe:Ie);y[w]=Ge,j[w]=Ge-ee}t.modifiersData[o]=j}}var jr={name:"preventOverflow",enabled:!0,phase:"main",fn:Wr,requiresIfExists:["offset"]};function $r(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Br(e){return e===P(e)||!_(e)?Me(e):$r(e)}function Pr(e){var t=e.getBoundingClientRect(),r=ae(t.width)/e.offsetWidth||1,o=ae(t.height)/e.offsetHeight||1;return r!==1||o!==1}function Mr(e,t,r){r===void 0&&(r=!1);var o=_(t),n=_(t)&&Pr(t),s=K(t),l=se(e,n,r),u={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!r)&&((I(t)!=="body"||He(s))&&(u=Br(t)),_(t)?(a=se(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=_e(s))),{x:l.left+u.scrollLeft-a.x,y:l.top+u.scrollTop-a.y,width:l.width,height:l.height}}function _r(e){var t=new Map,r=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function n(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(u){if(!r.has(u)){var a=t.get(u);a&&n(a)}}),o.push(s)}return e.forEach(function(s){r.has(s.name)||n(s)}),o}function Hr(e){var t=_r(e);return er.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function Nr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Vr(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var it={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Ne(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,n=t.defaultOptions,s=n===void 0?it:n;return function(l,u,a){a===void 0&&(a=s);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},it,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,c={state:i,setOptions:function(d){var O=typeof d=="function"?d(i.options):d;g(),i.options=Object.assign({},s,i.options,O),i.scrollParents={reference:ne(l)?ve(l):l.contextElement?ve(l.contextElement):[],popper:ve(u)};var E=Hr(Vr([].concat(o,i.options.modifiers)));return i.orderedModifiers=E.filter(function(C){return C.enabled}),v(),c.update()},forceUpdate:function(){if(!p){var d=i.elements,O=d.reference,E=d.popper;if(at(O,E)){i.rects={reference:Mr(O,be(E),i.options.strategy==="fixed"),popper:Be(E)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(S){return i.modifiersData[S.name]=Object.assign({},S.data)});for(var C=0;C<i.orderedModifiers.length;C++){if(i.reset===!0){i.reset=!1,C=-1;continue}var k=i.orderedModifiers[C],m=k.fn,w=k.options,y=w===void 0?{}:w,T=k.name;typeof m=="function"&&(i=m({state:i,options:y,name:T,instance:c})||i)}}}},update:Nr(function(){return new Promise(function(d){c.forceUpdate(),d(i)})}),destroy:function(){g(),p=!0}};if(!at(l,u))return c;c.setOptions(a).then(function(d){!p&&a.onFirstUpdate&&a.onFirstUpdate(d)});function v(){i.orderedModifiers.forEach(function(d){var O=d.name,E=d.options,C=E===void 0?{}:E,k=d.effect;if(typeof k=="function"){var m=k({state:i,name:O,instance:c,options:C}),w=function(){};f.push(m||w)}})}function g(){f.forEach(function(d){return d()}),f=[]}return c}}Ne();var qr=[wt,Et,bt,dt];Ne({defaultModifiers:qr});var Ur=[wt,Et,bt,dt,Ar,Sr,jr,fr,Rr],zr=Ne({defaultModifiers:Ur}),Ir=We(Ht()),Yr=[],Xr=function(e,t,r){r===void 0&&(r={});var o=b.useRef(null),n={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Yr},s=b.useState({styles:{popper:{position:n.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],u=s[1],a=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var c=p.state,v=Object.keys(c.elements);_t.flushSync(function(){u({styles:Ke(v.map(function(g){return[g,c.styles[g]||{}]})),attributes:Ke(v.map(function(g){return[g,c.attributes[g]]}))})})},requires:["computeStyles"]}},[]),i=b.useMemo(function(){var p={onFirstUpdate:n.onFirstUpdate,placement:n.placement,strategy:n.strategy,modifiers:[].concat(n.modifiers,[a,{name:"applyStyles",enabled:!1}])};return(0,Ir.default)(o.current,p)?o.current||p:(o.current=p,p)},[n.onFirstUpdate,n.placement,n.strategy,n.modifiers,a]),f=b.useRef();return Je(function(){f.current&&f.current.setOptions(i)},[i]),Je(function(){if(!(e==null||t==null)){var p=r.createPopper||zr,c=p(e,t,i);return f.current=c,function(){c.destroy(),f.current=null}}},[e,t,r.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}};We(Nt());function St(e){var t=b.useRef(e);return t.current=e,b.useCallback(function(){return t.current},[])}var Fr=function(){};function Gr(e){var t=e.initial,r=e.value,o=e.onChange,n=o===void 0?Fr:o;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var s=b.useState(t),l=s[0],u=s[1],a=St(l),i=b.useCallback(function(p){var c=a(),v=typeof p=="function"?p(c):p;typeof v.persist=="function"&&v.persist(),u(v),typeof n=="function"&&n(v)},[a,n]),f=r!==void 0;return[f?r:l,f?n:i]}function Tt(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var Kr=["styles","attributes"],st={getBoundingClientRect:Tt()},ut={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function Jr(e,t){var r,o,n;e===void 0&&(e={}),t===void 0&&(t={});var s=Object.keys(ut).reduce(function(h,A){var D;return te({},h,(D={},D[A]=h[A]!==void 0?h[A]:ut[A],D))},e),l=b.useMemo(function(){return[{name:"offset",options:{offset:s.offset}}]},Array.isArray(s.offset)?s.offset:[]),u=te({},t,{placement:t.placement||s.placement,modifiers:t.modifiers||l}),a=b.useState(null),i=a[0],f=a[1],p=b.useState(null),c=p[0],v=p[1],g=Gr({initial:s.defaultVisible,value:s.visible,onChange:s.onVisibleChange}),d=g[0],O=g[1],E=b.useRef();b.useEffect(function(){return function(){return clearTimeout(E.current)}},[]);var C=Xr(s.followCursor?st:i,c,u),k=C.styles,m=C.attributes,w=Pt(C,Kr),y=w.update,T=St({visible:d,triggerRef:i,tooltipRef:c,finalConfig:s}),S=b.useCallback(function(h){return Array.isArray(s.trigger)?s.trigger.includes(h):s.trigger===h},Array.isArray(s.trigger)?s.trigger:[s.trigger]),x=b.useCallback(function(){clearTimeout(E.current),E.current=window.setTimeout(function(){return O(!1)},s.delayHide)},[s.delayHide,O]),R=b.useCallback(function(){clearTimeout(E.current),E.current=window.setTimeout(function(){return O(!0)},s.delayShow)},[s.delayShow,O]),L=b.useCallback(function(){T().visible?x():R()},[T,x,R]);b.useEffect(function(){if(T().finalConfig.closeOnOutsideClick){var h=function(A){var D,Y=T(),q=Y.tooltipRef,J=Y.triggerRef,Q=(A.composedPath==null||(D=A.composedPath())==null?void 0:D[0])||A.target;Q instanceof Node&&q!=null&&J!=null&&!q.contains(Q)&&!J.contains(Q)&&x()};return document.addEventListener("mousedown",h),function(){return document.removeEventListener("mousedown",h)}}},[T,x]),b.useEffect(function(){if(!(i==null||!S("click")))return i.addEventListener("click",L),function(){return i.removeEventListener("click",L)}},[i,S,L]),b.useEffect(function(){if(!(i==null||!S("double-click")))return i.addEventListener("dblclick",L),function(){return i.removeEventListener("dblclick",L)}},[i,S,L]),b.useEffect(function(){if(!(i==null||!S("right-click"))){var h=function(A){A.preventDefault(),L()};return i.addEventListener("contextmenu",h),function(){return i.removeEventListener("contextmenu",h)}}},[i,S,L]),b.useEffect(function(){if(!(i==null||!S("focus")))return i.addEventListener("focus",R),i.addEventListener("blur",x),function(){i.removeEventListener("focus",R),i.removeEventListener("blur",x)}},[i,S,R,x]),b.useEffect(function(){if(!(i==null||!S("hover")))return i.addEventListener("mouseenter",R),i.addEventListener("mouseleave",x),function(){i.removeEventListener("mouseenter",R),i.removeEventListener("mouseleave",x)}},[i,S,R,x]),b.useEffect(function(){if(!(c==null||!S("hover")||!T().finalConfig.interactive))return c.addEventListener("mouseenter",R),c.addEventListener("mouseleave",x),function(){c.removeEventListener("mouseenter",R),c.removeEventListener("mouseleave",x)}},[c,S,R,x,T]);var j=w==null||(r=w.state)==null||(o=r.modifiersData)==null||(n=o.hide)==null?void 0:n.isReferenceHidden;b.useEffect(function(){s.closeOnTriggerHidden&&j&&x()},[s.closeOnTriggerHidden,x,j]),b.useEffect(function(){if(!s.followCursor||i==null)return;function h(A){var D=A.clientX,Y=A.clientY;st.getBoundingClientRect=Tt(D,Y),y==null||y()}return i.addEventListener("mousemove",h),function(){return i.removeEventListener("mousemove",h)}},[s.followCursor,i,y]),b.useEffect(function(){if(!(c==null||y==null||s.mutationObserverOptions==null)){var h=new MutationObserver(y);return h.observe(c,s.mutationObserverOptions),function(){return h.disconnect()}}},[s.mutationObserverOptions,c,y]);var W=function(h){return h===void 0&&(h={}),te({},h,{style:te({},h.style,k.popper)},m.popper,{"data-popper-interactive":s.interactive})},V=function(h){return h===void 0&&(h={}),te({},h,m.arrow,{style:te({},h.style,k.arrow),"data-popper-arrow":!0})};return te({getArrowProps:V,getTooltipProps:W,setTooltipRef:v,setTriggerRef:f,tooltipRef:c,triggerRef:i,visible:d},w)}var{document:me}=qt,M=(0,Vt.default)(1e3)((e,t,r,o=0)=>t.split("-")[0]===e?r:o),G=8,Qr=Re.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${M("top",r,`${G*-1}px`,"auto")}`,top:`${M("bottom",r,`${G*-1}px`,"auto")}`,right:`${M("left",r,`${G*-1}px`,"auto")}`,left:`${M("right",r,`${G*-1}px`,"auto")}`,borderBottomWidth:`${M("top",r,"0",G)}px`,borderTopWidth:`${M("bottom",r,"0",G)}px`,borderRightWidth:`${M("left",r,"0",G)}px`,borderLeftWidth:`${M("right",r,"0",G)}px`,borderTopColor:M("top",r,e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,"transparent"),borderBottomColor:M("bottom",r,e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,"transparent"),borderLeftColor:M("left",r,e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,"transparent"),borderRightColor:M("right",r,e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,"transparent")})),Zr=Re.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647,colorScheme:"light dark"}),({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,filter:`
|
|
1
|
+
import{R as U,r as b,s as Re,l as pe,b as Bt,_ as te,c as Pt,a as Mt,e as _t}from"./DocsRenderer-LL677BLK-CLCUmVeg.js";import{b as We,d as ft}from"./iframe-NxZrijqp.js";import"./preload-helper-C1FmrZbK.js";import"./_commonjsHelpers-Cpj98o6Y.js";var Ht=ft({"../../node_modules/react-fast-compare/index.js"(e,t){var r=typeof Element<"u",o=typeof Map=="function",n=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function l(u,a){if(u===a)return!0;if(u&&a&&typeof u=="object"&&typeof a=="object"){if(u.constructor!==a.constructor)return!1;var i,f,p;if(Array.isArray(u)){if(i=u.length,i!=a.length)return!1;for(f=i;f--!==0;)if(!l(u[f],a[f]))return!1;return!0}var c;if(o&&u instanceof Map&&a instanceof Map){if(u.size!==a.size)return!1;for(c=u.entries();!(f=c.next()).done;)if(!a.has(f.value[0]))return!1;for(c=u.entries();!(f=c.next()).done;)if(!l(f.value[1],a.get(f.value[0])))return!1;return!0}if(n&&u instanceof Set&&a instanceof Set){if(u.size!==a.size)return!1;for(c=u.entries();!(f=c.next()).done;)if(!a.has(f.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(a)){if(i=u.length,i!=a.length)return!1;for(f=i;f--!==0;)if(u[f]!==a[f])return!1;return!0}if(u.constructor===RegExp)return u.source===a.source&&u.flags===a.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof a.valueOf=="function")return u.valueOf()===a.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof a.toString=="function")return u.toString()===a.toString();if(p=Object.keys(u),i=p.length,i!==Object.keys(a).length)return!1;for(f=i;f--!==0;)if(!Object.prototype.hasOwnProperty.call(a,p[f]))return!1;if(r&&u instanceof Element)return!1;for(f=i;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&u.$$typeof)&&!l(u[p[f]],a[p[f]]))return!1;return!0}return u!==u&&a!==a}t.exports=function(u,a){try{return l(u,a)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}}}}),Nt=ft({"../../node_modules/warning/warning.js"(e,t){var r=function(){};t.exports=r}}),Vt=We(Mt(),1);const{deprecate:lt}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:qt}=__STORYBOOK_MODULE_GLOBAL__;b.createContext();b.createContext();var Ke=function(e){return e.reduce(function(t,r){var o=r[0],n=r[1];return t[o]=n,t},{})},Je=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,$="top",H="bottom",N="right",B="left",je="auto",ye=[$,H,N,B],ie="start",ge="end",Ut="clippingParents",ct="viewport",ce="popper",zt="reference",Qe=ye.reduce(function(e,t){return e.concat([t+"-"+ie,t+"-"+ge])},[]),pt=[].concat(ye,[je]).reduce(function(e,t){return e.concat([t,t+"-"+ie,t+"-"+ge])},[]),It="beforeRead",Yt="read",Xt="afterRead",Ft="beforeMain",Gt="main",Kt="afterMain",Jt="beforeWrite",Qt="write",Zt="afterWrite",er=[It,Yt,Xt,Ft,Gt,Kt,Jt,Qt,Zt];function I(e){return e?(e.nodeName||"").toLowerCase():null}function P(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ne(e){var t=P(e).Element;return e instanceof t||e instanceof Element}function _(e){var t=P(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $e(e){if(typeof ShadowRoot>"u")return!1;var t=P(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},s=t.elements[r];!_(s)||!I(s)||(Object.assign(s.style,o),Object.keys(n).forEach(function(l){var u=n[l];u===!1?s.removeAttribute(l):s.setAttribute(l,u===!0?"":u)}))})}function rr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],s=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),u=l.reduce(function(a,i){return a[i]="",a},{});!_(n)||!I(n)||(Object.assign(n.style,u),Object.keys(s).forEach(function(a){n.removeAttribute(a)}))})}}var dt={name:"applyStyles",enabled:!0,phase:"write",fn:tr,effect:rr,requires:["computeStyles"]};function z(e){return e.split("-")[0]}var re=Math.max,Te=Math.min,ae=Math.round;function ke(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vt(){return!/^((?!chrome|android).)*safari/i.test(ke())}function se(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,s=1;t&&_(e)&&(n=e.offsetWidth>0&&ae(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ae(o.height)/e.offsetHeight||1);var l=ne(e)?P(e):window,u=l.visualViewport,a=!vt()&&r,i=(o.left+(a&&u?u.offsetLeft:0))/n,f=(o.top+(a&&u?u.offsetTop:0))/s,p=o.width/n,c=o.height/s;return{width:p,height:c,top:f,right:i+p,bottom:f+c,left:i,x:i,y:f}}function Be(e){var t=se(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function mt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&$e(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function F(e){return P(e).getComputedStyle(e)}function nr(e){return["table","td","th"].indexOf(I(e))>=0}function K(e){return((ne(e)?e.ownerDocument:e.document)||window.document).documentElement}function Le(e){return I(e)==="html"?e:e.assignedSlot||e.parentNode||($e(e)?e.host:null)||K(e)}function Ze(e){return!_(e)||F(e).position==="fixed"?null:e.offsetParent}function or(e){var t=/firefox/i.test(ke()),r=/Trident/i.test(ke());if(r&&_(e)){var o=F(e);if(o.position==="fixed")return null}var n=Le(e);for($e(n)&&(n=n.host);_(n)&&["html","body"].indexOf(I(n))<0;){var s=F(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function be(e){for(var t=P(e),r=Ze(e);r&&nr(r)&&F(r).position==="static";)r=Ze(r);return r&&(I(r)==="html"||I(r)==="body"&&F(r).position==="static")?t:r||or(e)||t}function Pe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function de(e,t,r){return re(e,Te(t,r))}function ir(e,t,r){var o=de(e,t,r);return o>r?r:o}function gt(){return{top:0,right:0,bottom:0,left:0}}function ht(e){return Object.assign({},gt(),e)}function yt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var ar=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ht(typeof e!="number"?e:yt(e,ye))};function sr(e){var t,r=e.state,o=e.name,n=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,u=z(r.placement),a=Pe(u),i=[B,N].indexOf(u)>=0,f=i?"height":"width";if(!(!s||!l)){var p=ar(n.padding,r),c=Be(s),v=a==="y"?$:B,g=a==="y"?H:N,d=r.rects.reference[f]+r.rects.reference[a]-l[a]-r.rects.popper[f],O=l[a]-r.rects.reference[a],E=be(s),C=E?a==="y"?E.clientHeight||0:E.clientWidth||0:0,k=d/2-O/2,m=p[v],w=C-c[f]-p[g],y=C/2-c[f]/2+k,T=de(m,y,w),S=a;r.modifiersData[o]=(t={},t[S]=T,t.centerOffset=T-y,t)}}function ur(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||mt(t.elements.popper,n)&&(t.elements.arrow=n))}var fr={name:"arrow",enabled:!0,phase:"main",fn:sr,effect:ur,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ue(e){return e.split("-")[1]}var lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:ae(r*n)/n||0,y:ae(o*n)/n||0}}function et(e){var t,r=e.popper,o=e.popperRect,n=e.placement,s=e.variation,l=e.offsets,u=e.position,a=e.gpuAcceleration,i=e.adaptive,f=e.roundOffsets,p=e.isFixed,c=l.x,v=c===void 0?0:c,g=l.y,d=g===void 0?0:g,O=typeof f=="function"?f({x:v,y:d}):{x:v,y:d};v=O.x,d=O.y;var E=l.hasOwnProperty("x"),C=l.hasOwnProperty("y"),k=B,m=$,w=window;if(i){var y=be(r),T="clientHeight",S="clientWidth";if(y===P(r)&&(y=K(r),F(y).position!=="static"&&u==="absolute"&&(T="scrollHeight",S="scrollWidth")),y=y,n===$||(n===B||n===N)&&s===ge){m=H;var x=p&&y===w&&w.visualViewport?w.visualViewport.height:y[T];d-=x-o.height,d*=a?1:-1}if(n===B||(n===$||n===H)&&s===ge){k=N;var R=p&&y===w&&w.visualViewport?w.visualViewport.width:y[S];v-=R-o.width,v*=a?1:-1}}var L=Object.assign({position:u},i&&lr),j=f===!0?cr({x:v,y:d},P(r)):{x:v,y:d};if(v=j.x,d=j.y,a){var W;return Object.assign({},L,(W={},W[m]=C?"0":"",W[k]=E?"0":"",W.transform=(w.devicePixelRatio||1)<=1?"translate("+v+"px, "+d+"px)":"translate3d("+v+"px, "+d+"px, 0)",W))}return Object.assign({},L,(t={},t[m]=C?d+"px":"",t[k]=E?v+"px":"",t.transform="",t))}function pr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,s=r.adaptive,l=s===void 0?!0:s,u=r.roundOffsets,a=u===void 0?!0:u,i={placement:z(t.placement),variation:ue(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,et(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,et(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var bt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pr,data:{}},Ee={passive:!0};function dr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,s=n===void 0?!0:n,l=o.resize,u=l===void 0?!0:l,a=P(t.elements.popper),i=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&i.forEach(function(f){f.addEventListener("scroll",r.update,Ee)}),u&&a.addEventListener("resize",r.update,Ee),function(){s&&i.forEach(function(f){f.removeEventListener("scroll",r.update,Ee)}),u&&a.removeEventListener("resize",r.update,Ee)}}var wt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dr,data:{}},vr={left:"right",right:"left",bottom:"top",top:"bottom"};function Se(e){return e.replace(/left|right|bottom|top/g,function(t){return vr[t]})}var mr={start:"end",end:"start"};function tt(e){return e.replace(/start|end/g,function(t){return mr[t]})}function Me(e){var t=P(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function _e(e){return se(K(e)).left+Me(e).scrollLeft}function gr(e,t){var r=P(e),o=K(e),n=r.visualViewport,s=o.clientWidth,l=o.clientHeight,u=0,a=0;if(n){s=n.width,l=n.height;var i=vt();(i||!i&&t==="fixed")&&(u=n.offsetLeft,a=n.offsetTop)}return{width:s,height:l,x:u+_e(e),y:a}}function hr(e){var t,r=K(e),o=Me(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=re(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=re(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),u=-o.scrollLeft+_e(e),a=-o.scrollTop;return F(n||r).direction==="rtl"&&(u+=re(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:l,x:u,y:a}}function He(e){var t=F(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function xt(e){return["html","body","#document"].indexOf(I(e))>=0?e.ownerDocument.body:_(e)&&He(e)?e:xt(Le(e))}function ve(e,t){var r;t===void 0&&(t=[]);var o=xt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),s=P(o),l=n?[s].concat(s.visualViewport||[],He(o)?o:[]):o,u=t.concat(l);return n?u:u.concat(ve(Le(l)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yr(e,t){var r=se(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function rt(e,t,r){return t===ct?De(gr(e,r)):ne(t)?yr(t,r):De(hr(K(e)))}function br(e){var t=ve(Le(e)),r=["absolute","fixed"].indexOf(F(e).position)>=0,o=r&&_(e)?be(e):e;return ne(o)?t.filter(function(n){return ne(n)&&mt(n,o)&&I(n)!=="body"}):[]}function wr(e,t,r,o){var n=t==="clippingParents"?br(e):[].concat(t),s=[].concat(n,[r]),l=s[0],u=s.reduce(function(a,i){var f=rt(e,i,o);return a.top=re(f.top,a.top),a.right=Te(f.right,a.right),a.bottom=Te(f.bottom,a.bottom),a.left=re(f.left,a.left),a},rt(e,l,o));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Ot(e){var t=e.reference,r=e.element,o=e.placement,n=o?z(o):null,s=o?ue(o):null,l=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,a;switch(n){case $:a={x:l,y:t.y-r.height};break;case H:a={x:l,y:t.y+t.height};break;case N:a={x:t.x+t.width,y:u};break;case B:a={x:t.x-r.width,y:u};break;default:a={x:t.x,y:t.y}}var i=n?Pe(n):null;if(i!=null){var f=i==="y"?"height":"width";switch(s){case ie:a[i]=a[i]-(t[f]/2-r[f]/2);break;case ge:a[i]=a[i]+(t[f]/2-r[f]/2);break}}return a}function he(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,s=r.strategy,l=s===void 0?e.strategy:s,u=r.boundary,a=u===void 0?Ut:u,i=r.rootBoundary,f=i===void 0?ct:i,p=r.elementContext,c=p===void 0?ce:p,v=r.altBoundary,g=v===void 0?!1:v,d=r.padding,O=d===void 0?0:d,E=ht(typeof O!="number"?O:yt(O,ye)),C=c===ce?zt:ce,k=e.rects.popper,m=e.elements[g?C:c],w=wr(ne(m)?m:m.contextElement||K(e.elements.popper),a,f,l),y=se(e.elements.reference),T=Ot({reference:y,element:k,placement:n}),S=De(Object.assign({},k,T)),x=c===ce?S:y,R={top:w.top-x.top+E.top,bottom:x.bottom-w.bottom+E.bottom,left:w.left-x.left+E.left,right:x.right-w.right+E.right},L=e.modifiersData.offset;if(c===ce&&L){var j=L[n];Object.keys(R).forEach(function(W){var V=[N,H].indexOf(W)>=0?1:-1,h=[$,H].indexOf(W)>=0?"y":"x";R[W]+=j[h]*V})}return R}function xr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,s=r.rootBoundary,l=r.padding,u=r.flipVariations,a=r.allowedAutoPlacements,i=a===void 0?pt:a,f=ue(o),p=f?u?Qe:Qe.filter(function(g){return ue(g)===f}):ye,c=p.filter(function(g){return i.indexOf(g)>=0});c.length===0&&(c=p);var v=c.reduce(function(g,d){return g[d]=he(e,{placement:d,boundary:n,rootBoundary:s,padding:l})[z(d)],g},{});return Object.keys(v).sort(function(g,d){return v[g]-v[d]})}function Or(e){if(z(e)===je)return[];var t=Se(e);return[tt(e),t,tt(t)]}function Er(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,l=r.altAxis,u=l===void 0?!0:l,a=r.fallbackPlacements,i=r.padding,f=r.boundary,p=r.rootBoundary,c=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,d=r.allowedAutoPlacements,O=t.options.placement,E=z(O),C=E===O,k=a||(C||!g?[Se(O)]:Or(O)),m=[O].concat(k).reduce(function(Z,X){return Z.concat(z(X)===je?xr(t,{placement:X,boundary:f,rootBoundary:p,padding:i,flipVariations:g,allowedAutoPlacements:d}):X)},[]),w=t.rects.reference,y=t.rects.popper,T=new Map,S=!0,x=m[0],R=0;R<m.length;R++){var L=m[R],j=z(L),W=ue(L)===ie,V=[$,H].indexOf(j)>=0,h=V?"width":"height",A=he(t,{placement:L,boundary:f,rootBoundary:p,altBoundary:c,padding:i}),D=V?W?N:B:W?H:$;w[h]>y[h]&&(D=Se(D));var Y=Se(D),q=[];if(s&&q.push(A[j]<=0),u&&q.push(A[D]<=0,A[Y]<=0),q.every(function(Z){return Z})){x=L,S=!1;break}T.set(L,q)}if(S)for(var J=g?3:1,Q=function(Z){var X=m.find(function(xe){var le=T.get(xe);if(le)return le.slice(0,Z).every(function(oe){return oe})});if(X)return x=X,"break"},fe=J;fe>0;fe--){var we=Q(fe);if(we==="break")break}t.placement!==x&&(t.modifiersData[o]._skip=!0,t.placement=x,t.reset=!0)}}var Sr={name:"flip",enabled:!0,phase:"main",fn:Er,requiresIfExists:["offset"],data:{_skip:!1}};function nt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ot(e){return[$,N,H,B].some(function(t){return e[t]>=0})}function Tr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,l=he(t,{elementContext:"reference"}),u=he(t,{altBoundary:!0}),a=nt(l,o),i=nt(u,n,s),f=ot(a),p=ot(i);t.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:i,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var Rr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tr};function Lr(e,t,r){var o=z(e),n=[B,$].indexOf(o)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],u=s[1];return l=l||0,u=(u||0)*n,[B,N].indexOf(o)>=0?{x:u,y:l}:{x:l,y:u}}function Cr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,s=n===void 0?[0,0]:n,l=pt.reduce(function(f,p){return f[p]=Lr(p,t.rects,s),f},{}),u=l[t.placement],a=u.x,i=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=i),t.modifiersData[o]=l}var Ar={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cr};function kr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ot({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Et={name:"popperOffsets",enabled:!0,phase:"read",fn:kr,data:{}};function Dr(e){return e==="x"?"y":"x"}function Wr(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,s=n===void 0?!0:n,l=r.altAxis,u=l===void 0?!1:l,a=r.boundary,i=r.rootBoundary,f=r.altBoundary,p=r.padding,c=r.tether,v=c===void 0?!0:c,g=r.tetherOffset,d=g===void 0?0:g,O=he(t,{boundary:a,rootBoundary:i,padding:p,altBoundary:f}),E=z(t.placement),C=ue(t.placement),k=!C,m=Pe(E),w=Dr(m),y=t.modifiersData.popperOffsets,T=t.rects.reference,S=t.rects.popper,x=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(y){if(s){var W,V=m==="y"?$:B,h=m==="y"?H:N,A=m==="y"?"height":"width",D=y[m],Y=D+O[V],q=D-O[h],J=v?-S[A]/2:0,Q=C===ie?T[A]:S[A],fe=C===ie?-S[A]:-T[A],we=t.elements.arrow,Z=v&&we?Be(we):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gt(),xe=X[V],le=X[h],oe=de(0,T[A],Z[A]),Ct=k?T[A]/2-J-oe-xe-R.mainAxis:Q-oe-xe-R.mainAxis,At=k?-T[A]/2+J+oe+le+R.mainAxis:fe+oe+le+R.mainAxis,Ce=t.elements.arrow&&be(t.elements.arrow),kt=Ce?m==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ve=(W=L==null?void 0:L[m])!=null?W:0,Dt=D+Ct-Ve-kt,Wt=D+At-Ve,qe=de(v?Te(Y,Dt):Y,D,v?re(q,Wt):q);y[m]=qe,j[m]=qe-D}if(u){var Ue,jt=m==="x"?$:B,$t=m==="x"?H:N,ee=y[w],Oe=w==="y"?"height":"width",ze=ee+O[jt],Ie=ee-O[$t],Ae=[$,B].indexOf(E)!==-1,Ye=(Ue=L==null?void 0:L[w])!=null?Ue:0,Xe=Ae?ze:ee-T[Oe]-S[Oe]-Ye+R.altAxis,Fe=Ae?ee+T[Oe]+S[Oe]-Ye-R.altAxis:Ie,Ge=v&&Ae?ir(Xe,ee,Fe):de(v?Xe:ze,ee,v?Fe:Ie);y[w]=Ge,j[w]=Ge-ee}t.modifiersData[o]=j}}var jr={name:"preventOverflow",enabled:!0,phase:"main",fn:Wr,requiresIfExists:["offset"]};function $r(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Br(e){return e===P(e)||!_(e)?Me(e):$r(e)}function Pr(e){var t=e.getBoundingClientRect(),r=ae(t.width)/e.offsetWidth||1,o=ae(t.height)/e.offsetHeight||1;return r!==1||o!==1}function Mr(e,t,r){r===void 0&&(r=!1);var o=_(t),n=_(t)&&Pr(t),s=K(t),l=se(e,n,r),u={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!r)&&((I(t)!=="body"||He(s))&&(u=Br(t)),_(t)?(a=se(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=_e(s))),{x:l.left+u.scrollLeft-a.x,y:l.top+u.scrollTop-a.y,width:l.width,height:l.height}}function _r(e){var t=new Map,r=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function n(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(u){if(!r.has(u)){var a=t.get(u);a&&n(a)}}),o.push(s)}return e.forEach(function(s){r.has(s.name)||n(s)}),o}function Hr(e){var t=_r(e);return er.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function Nr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Vr(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var it={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Ne(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,n=t.defaultOptions,s=n===void 0?it:n;return function(l,u,a){a===void 0&&(a=s);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},it,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},f=[],p=!1,c={state:i,setOptions:function(d){var O=typeof d=="function"?d(i.options):d;g(),i.options=Object.assign({},s,i.options,O),i.scrollParents={reference:ne(l)?ve(l):l.contextElement?ve(l.contextElement):[],popper:ve(u)};var E=Hr(Vr([].concat(o,i.options.modifiers)));return i.orderedModifiers=E.filter(function(C){return C.enabled}),v(),c.update()},forceUpdate:function(){if(!p){var d=i.elements,O=d.reference,E=d.popper;if(at(O,E)){i.rects={reference:Mr(O,be(E),i.options.strategy==="fixed"),popper:Be(E)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(S){return i.modifiersData[S.name]=Object.assign({},S.data)});for(var C=0;C<i.orderedModifiers.length;C++){if(i.reset===!0){i.reset=!1,C=-1;continue}var k=i.orderedModifiers[C],m=k.fn,w=k.options,y=w===void 0?{}:w,T=k.name;typeof m=="function"&&(i=m({state:i,options:y,name:T,instance:c})||i)}}}},update:Nr(function(){return new Promise(function(d){c.forceUpdate(),d(i)})}),destroy:function(){g(),p=!0}};if(!at(l,u))return c;c.setOptions(a).then(function(d){!p&&a.onFirstUpdate&&a.onFirstUpdate(d)});function v(){i.orderedModifiers.forEach(function(d){var O=d.name,E=d.options,C=E===void 0?{}:E,k=d.effect;if(typeof k=="function"){var m=k({state:i,name:O,instance:c,options:C}),w=function(){};f.push(m||w)}})}function g(){f.forEach(function(d){return d()}),f=[]}return c}}Ne();var qr=[wt,Et,bt,dt];Ne({defaultModifiers:qr});var Ur=[wt,Et,bt,dt,Ar,Sr,jr,fr,Rr],zr=Ne({defaultModifiers:Ur}),Ir=We(Ht()),Yr=[],Xr=function(e,t,r){r===void 0&&(r={});var o=b.useRef(null),n={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Yr},s=b.useState({styles:{popper:{position:n.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],u=s[1],a=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var c=p.state,v=Object.keys(c.elements);_t.flushSync(function(){u({styles:Ke(v.map(function(g){return[g,c.styles[g]||{}]})),attributes:Ke(v.map(function(g){return[g,c.attributes[g]]}))})})},requires:["computeStyles"]}},[]),i=b.useMemo(function(){var p={onFirstUpdate:n.onFirstUpdate,placement:n.placement,strategy:n.strategy,modifiers:[].concat(n.modifiers,[a,{name:"applyStyles",enabled:!1}])};return(0,Ir.default)(o.current,p)?o.current||p:(o.current=p,p)},[n.onFirstUpdate,n.placement,n.strategy,n.modifiers,a]),f=b.useRef();return Je(function(){f.current&&f.current.setOptions(i)},[i]),Je(function(){if(!(e==null||t==null)){var p=r.createPopper||zr,c=p(e,t,i);return f.current=c,function(){c.destroy(),f.current=null}}},[e,t,r.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}};We(Nt());function St(e){var t=b.useRef(e);return t.current=e,b.useCallback(function(){return t.current},[])}var Fr=function(){};function Gr(e){var t=e.initial,r=e.value,o=e.onChange,n=o===void 0?Fr:o;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var s=b.useState(t),l=s[0],u=s[1],a=St(l),i=b.useCallback(function(p){var c=a(),v=typeof p=="function"?p(c):p;typeof v.persist=="function"&&v.persist(),u(v),typeof n=="function"&&n(v)},[a,n]),f=r!==void 0;return[f?r:l,f?n:i]}function Tt(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var Kr=["styles","attributes"],st={getBoundingClientRect:Tt()},ut={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function Jr(e,t){var r,o,n;e===void 0&&(e={}),t===void 0&&(t={});var s=Object.keys(ut).reduce(function(h,A){var D;return te({},h,(D={},D[A]=h[A]!==void 0?h[A]:ut[A],D))},e),l=b.useMemo(function(){return[{name:"offset",options:{offset:s.offset}}]},Array.isArray(s.offset)?s.offset:[]),u=te({},t,{placement:t.placement||s.placement,modifiers:t.modifiers||l}),a=b.useState(null),i=a[0],f=a[1],p=b.useState(null),c=p[0],v=p[1],g=Gr({initial:s.defaultVisible,value:s.visible,onChange:s.onVisibleChange}),d=g[0],O=g[1],E=b.useRef();b.useEffect(function(){return function(){return clearTimeout(E.current)}},[]);var C=Xr(s.followCursor?st:i,c,u),k=C.styles,m=C.attributes,w=Pt(C,Kr),y=w.update,T=St({visible:d,triggerRef:i,tooltipRef:c,finalConfig:s}),S=b.useCallback(function(h){return Array.isArray(s.trigger)?s.trigger.includes(h):s.trigger===h},Array.isArray(s.trigger)?s.trigger:[s.trigger]),x=b.useCallback(function(){clearTimeout(E.current),E.current=window.setTimeout(function(){return O(!1)},s.delayHide)},[s.delayHide,O]),R=b.useCallback(function(){clearTimeout(E.current),E.current=window.setTimeout(function(){return O(!0)},s.delayShow)},[s.delayShow,O]),L=b.useCallback(function(){T().visible?x():R()},[T,x,R]);b.useEffect(function(){if(T().finalConfig.closeOnOutsideClick){var h=function(A){var D,Y=T(),q=Y.tooltipRef,J=Y.triggerRef,Q=(A.composedPath==null||(D=A.composedPath())==null?void 0:D[0])||A.target;Q instanceof Node&&q!=null&&J!=null&&!q.contains(Q)&&!J.contains(Q)&&x()};return document.addEventListener("mousedown",h),function(){return document.removeEventListener("mousedown",h)}}},[T,x]),b.useEffect(function(){if(!(i==null||!S("click")))return i.addEventListener("click",L),function(){return i.removeEventListener("click",L)}},[i,S,L]),b.useEffect(function(){if(!(i==null||!S("double-click")))return i.addEventListener("dblclick",L),function(){return i.removeEventListener("dblclick",L)}},[i,S,L]),b.useEffect(function(){if(!(i==null||!S("right-click"))){var h=function(A){A.preventDefault(),L()};return i.addEventListener("contextmenu",h),function(){return i.removeEventListener("contextmenu",h)}}},[i,S,L]),b.useEffect(function(){if(!(i==null||!S("focus")))return i.addEventListener("focus",R),i.addEventListener("blur",x),function(){i.removeEventListener("focus",R),i.removeEventListener("blur",x)}},[i,S,R,x]),b.useEffect(function(){if(!(i==null||!S("hover")))return i.addEventListener("mouseenter",R),i.addEventListener("mouseleave",x),function(){i.removeEventListener("mouseenter",R),i.removeEventListener("mouseleave",x)}},[i,S,R,x]),b.useEffect(function(){if(!(c==null||!S("hover")||!T().finalConfig.interactive))return c.addEventListener("mouseenter",R),c.addEventListener("mouseleave",x),function(){c.removeEventListener("mouseenter",R),c.removeEventListener("mouseleave",x)}},[c,S,R,x,T]);var j=w==null||(r=w.state)==null||(o=r.modifiersData)==null||(n=o.hide)==null?void 0:n.isReferenceHidden;b.useEffect(function(){s.closeOnTriggerHidden&&j&&x()},[s.closeOnTriggerHidden,x,j]),b.useEffect(function(){if(!s.followCursor||i==null)return;function h(A){var D=A.clientX,Y=A.clientY;st.getBoundingClientRect=Tt(D,Y),y==null||y()}return i.addEventListener("mousemove",h),function(){return i.removeEventListener("mousemove",h)}},[s.followCursor,i,y]),b.useEffect(function(){if(!(c==null||y==null||s.mutationObserverOptions==null)){var h=new MutationObserver(y);return h.observe(c,s.mutationObserverOptions),function(){return h.disconnect()}}},[s.mutationObserverOptions,c,y]);var W=function(h){return h===void 0&&(h={}),te({},h,{style:te({},h.style,k.popper)},m.popper,{"data-popper-interactive":s.interactive})},V=function(h){return h===void 0&&(h={}),te({},h,m.arrow,{style:te({},h.style,k.arrow),"data-popper-arrow":!0})};return te({getArrowProps:V,getTooltipProps:W,setTooltipRef:v,setTriggerRef:f,tooltipRef:c,triggerRef:i,visible:d},w)}var{document:me}=qt,M=(0,Vt.default)(1e3)((e,t,r,o=0)=>t.split("-")[0]===e?r:o),G=8,Qr=Re.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${M("top",r,`${G*-1}px`,"auto")}`,top:`${M("bottom",r,`${G*-1}px`,"auto")}`,right:`${M("left",r,`${G*-1}px`,"auto")}`,left:`${M("right",r,`${G*-1}px`,"auto")}`,borderBottomWidth:`${M("top",r,"0",G)}px`,borderTopWidth:`${M("bottom",r,"0",G)}px`,borderRightWidth:`${M("left",r,"0",G)}px`,borderLeftWidth:`${M("right",r,"0",G)}px`,borderTopColor:M("top",r,e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,"transparent"),borderBottomColor:M("bottom",r,e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,"transparent"),borderLeftColor:M("left",r,e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,"transparent"),borderRightColor:M("right",r,e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,"transparent")})),Zr=Re.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647,colorScheme:"light dark"}),({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||e.base==="light"?pe(e.background.app):e.background.app,filter:`
|
|
2
2
|
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
3
3
|
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
4
4
|
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{}),Rt=U.forwardRef(({placement:e="top",hasChrome:t=!0,children:r,arrowProps:o={},tooltipRef:n,color:s,withArrows:l,...u},a)=>U.createElement(Zr,{"data-testid":"tooltip",hasChrome:t,ref:a,...u,color:s},t&&l&&U.createElement(Qr,{placement:e,...o,color:s}),r));Rt.displayName="Tooltip";var en=Re.div`
|