@telia-ace/knowledge-widget-components-guide 1.0.47 → 1.1.1-rc.0

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.
@@ -0,0 +1,22 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { j as a } from "./index-bc93d90b.mjs";
3
+ import { useState as c, useEffect as r } from "react";
4
+ import "react-dom";
5
+ import { C as m } from "./guide-ff7bbb35.mjs";
6
+ const C = ({ builder: s }) => {
7
+ const o = a(), [e, d] = c(null);
8
+ return r(() => {
9
+ o.getAsync("components").then((t) => s(t).then((n) => {
10
+ d(n);
11
+ }));
12
+ }, []), r(() => () => {
13
+ e && o.getAsync("components").then((t) => {
14
+ t.nodes.detached = t.nodes.detached.filter(
15
+ (n) => n.id !== e.id
16
+ );
17
+ });
18
+ }, [e]), e ? /* @__PURE__ */ i(m, { id: e.id, node: e, branch: "default" }) : null;
19
+ };
20
+ export {
21
+ C as default
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),i=require("./index-db2054f8.js"),r=require("react");require("react-dom");const d=require("./guide-34ba7f9d.js"),a=({builder:u})=>{const o=i.useContainer(),[e,s]=r.useState(null);return r.useEffect(()=>{o.getAsync("components").then(t=>u(t).then(n=>{s(n)}))},[]),r.useEffect(()=>()=>{e&&o.getAsync("components").then(t=>{t.nodes.detached=t.nodes.detached.filter(n=>n.id!==e.id)})},[e]),e?c.jsx(d.Component,{id:e.id,node:e,branch:"default"}):null};exports.default=a;
@@ -0,0 +1,353 @@
1
+ "use strict";const c=require("react/jsx-runtime"),n=require("./index-db2054f8.js"),m=require("react");require("react-dom");function*Q(e){if(e)for(let t=0;t<e.length;t++){const o=e[t];yield o,o.items&&(yield*Q(o.items))}}const le=(e,t)=>{const o=Q(t);let s=o.next(),r=null;for(;!s.done;)s.value.id===e&&(r=s.value),s=o.next();return r};function J(e,t={},o){return e.forEach(s=>{o&&(t[+s.id]=o),s.items&&J(s.items,t,s.id)}),t}function ce(e,t,o=[e],s=J(t)){const r=a=>{const d=s[+a];d&&(o.unshift(d),r(d))},i=s[+e];return i&&(o.unshift(i),r(i)),o}const de=(e,t)=>typeof e>"u"||typeof t>"u"?new Map:new Map(e.map(o=>{const s=le(o,t);return[o,s]})),ue=(e,t,o,s="guide-categories")=>o.getAsync("dataClient").then(r=>r.fetch(s,{expandCategories:"descendants"}).then(({categories:i})=>{const a=d=>{const l=ce(d,i),u=de(l,i),h=[];return l.forEach(f=>{const y=u.get(f);y&&h.push({routeName:e,title:y.title,symbol:y.symbol,id:y.id,routeParams:s==="contact-method-categories"?n.createParams({contactCategory:y.id,uriName:n.formatUrl(y.title)}):n.createParams({guideCategory:y.id,uriName:n.formatUrl(y.title)})})}),h};return Array.isArray(t)?t.reduce((d,l)=>{const u=a(l);return u.length>0&&d.push(u),d},[]):a(t)})),V=(e,t)=>({id:e.id,type:e.type,name:e.name,branch:t||"default"}),me=e=>e==="entering"||e==="entered",he=e=>e==="exiting"||e==="exited",z={fade:{in:"opacity: 1;",out:"opacity: 0;"},"slide-left":{in:"transform: translateX(0);",out:"transform: translateX(-100%);"},"slide-right":{in:"transform: translateX(0);",out:"transform: translateX(100%);"},"slide-up":{in:"transform: translateY(0);",out:"transform: translateY(100%);"},"slide-down":{in:"transform: translateY(0);",out:"transform: translateY(-100%);"},scale:{in:"transform: scale(1);",out:"transform: scale(0);"}},fe=["slide-up","slide-down","slide-left","slide-right","scale"],A={compose:(e="exited",t)=>{const{enter:o,exit:s}=t,r=o.transitionKeys.split(" "),i=fe.indexOf(r[0])>-1?"transform":"opacity";if(me(e))return r&&r.length>0?n.css`
2
+ ${r&&r.length>0&&r.map(d=>z[d]?z[d].in:"")}
3
+ transition: ${i} ${o.duration}ms ${o.easing};
4
+ `:"";const a=r&&r.length>0&&n.css`
5
+ ${r.map(d=>z[d]?z[d].out:"")}
6
+ `;if(he(e)){const d=s.transitionKeys.split(" ");return d&&d.length>0&&e==="exiting"?n.css`
7
+ ${a};
8
+ ${d.map(l=>z[l]?z[l].out:"")}
9
+ transition: ${i} ${s.duration}ms ${s.easing};
10
+ `:a}},composeViewTransition:(e,t,o)=>{if(t==="slide")return A.compose(e,{enter:{transitionKeys:o==="forth"?"slide-right":"slide-left",duration:500},exit:{transitionKeys:o==="forth"?"slide-left":"slide-right",duration:500}});if(t==="fade")return A.compose(e,{enter:{transitionKeys:"fade",duration:500},exit:{transitionKeys:"fade",duration:500}})},get:e=>z[e]},pe=(e,t)=>e.get("seoConfiguration")?c.jsx(n.Empty,{...t}):null;function ye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(e,t){var o=function(i){return t&&m.isValidElement(i)?t(i):i},s=Object.create(null);return e&&m.Children.map(e,function(r){return r}).forEach(function(r){s[r.key]=o(r)}),s}function ge(e,t){e=e||{},t=t||{};function o(h){return h in t?t[h]:e[h]}var s=Object.create(null),r=[];for(var i in e)i in t?r.length&&(s[i]=r,r=[]):r.push(i);var a,d={};for(var l in t){if(s[l])for(a=0;a<s[l].length;a++){var u=s[l][a];d[s[l][a]]=o(u)}d[l]=o(l)}for(a=0;a<r.length;a++)d[r[a]]=o(r[a]);return d}function B(e,t,o){return o[t]!=null?o[t]:e.props[t]}function be(e,t){return H(e.children,function(o){return m.cloneElement(o,{onExited:t.bind(null,o),in:!0,appear:B(o,"appear",e),enter:B(o,"enter",e),exit:B(o,"exit",e)})})}function xe(e,t,o){var s=H(e.children),r=ge(t,s);return Object.keys(r).forEach(function(i){var a=r[i];if(m.isValidElement(a)){var d=i in t,l=i in s,u=t[i],h=m.isValidElement(u)&&!u.props.in;l&&(!d||h)?r[i]=m.cloneElement(a,{onExited:o.bind(null,a),in:!0,exit:B(a,"exit",e),enter:B(a,"enter",e)}):!l&&d&&!h?r[i]=m.cloneElement(a,{in:!1}):l&&d&&m.isValidElement(u)&&(r[i]=m.cloneElement(a,{onExited:o.bind(null,a),in:u.props.in,exit:B(a,"exit",e),enter:B(a,"enter",e)}))}}),r}var $e=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},we={component:"div",childFactory:function(t){return t}},_=function(e){n._inheritsLoose(t,e);function t(s,r){var i;i=e.call(this,s,r)||this;var a=i.handleExited.bind(ye(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,d=i.handleExited,l=i.firstRender;return{children:l?be(r,d):xe(r,a,d),firstRender:!1}},o.handleExited=function(r,i){var a=H(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(d){var l=n._extends({},d.children);return delete l[r.key],{children:l}}))},o.render=function(){var r=this.props,i=r.component,a=r.childFactory,d=n._objectWithoutPropertiesLoose(r,["component","childFactory"]),l=this.state.contextValue,u=$e(this.state.children).map(a);return delete d.appear,delete d.enter,delete d.exit,i===null?m.createElement(n.TransitionGroupContext.Provider,{value:l},u):m.createElement(n.TransitionGroupContext.Provider,{value:l},m.createElement(i,d,u))},t}(m.Component);_.propTypes=process.env.NODE_ENV!=="production"?{component:n.PropTypes.any,children:n.PropTypes.node,appear:n.PropTypes.bool,enter:n.PropTypes.bool,exit:n.PropTypes.bool,childFactory:n.PropTypes.func}:{};_.defaultProps=we;const Ce=_,G=()=>m.useContext(n.ComponentNodeContext),Se=()=>{const e=n.useComponentNode(),t=n.useComponentPlatform(),[o,s]=m.useState([]),r=n.useIsMounted(),i=m.useCallback(a=>{if(t&&r.current&&a){const d=t.getBranch(a),l=a.getChildren(d).map(u=>V(u));s(l)}},[r,t,s,e]);return m.useEffect(()=>{e&&i(e)},[e,t]),m.useEffect(()=>{if(t){const[a,d]=n.createEventSubscriber(t.events);return a("components:set-layout",(l,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&i(u.node.parent)}),a("components:node-appended",(l,u)=>{(e===u.node.parent||u.node.parent===t.nodes.root)&&i(u.node.parent)}),a("components:node-removed",(l,{parentNode:u})=>{(u===e||u===t.nodes.root)&&i(u)}),()=>{d()}}},[e,t,i]),o},je=()=>m.useContext(n.ColumnContext),Z=(e,t)=>{const o=G(),s=n.useContainer(),[r,i]=m.useState(void 0),a=n.useIsMounted(),d=e||o.type||"";return m.useEffect(()=>{if(d){let l;return(t||s).getAsync("componentResolver").then(u=>{if(a.current){const h=u.getComponent(d);i(h)}l=u.registerResolver(d,h=>{a.current&&i(h)})}),()=>{l&&l()}}},[a,d,t,s]),r},ee=()=>{const e=n.useComponentPlatform(),t=G(),[o,s]=m.useState([]),[r,i]=m.useState();return m.useEffect(()=>{if(e&&t){const a=new n.ComponentQuery(e).withId(t.id),d=e.actions(a,t.type||n.uuid());i(d),o!==null&&(o.forEach(l=>{d.dispatch(l.key,l.data).then(u=>l.resolve(u)).catch(u=>l.reject(u))}),s(null))}},[e,t.id]),(a,d)=>o!==null?new Promise((l,u)=>{o.push({key:a,data:d,resolve:l,reject:u})}):r.dispatch(a,d)},ve=e=>{const t=n.useComponentNode(e),o=n.useComponentPlatform(),[s,r]=m.useState({}),i=n.useIsMounted();return m.useEffect(()=>{t&&i.current&&r(t.attributes.layout)},[t,i]),m.useEffect(()=>{if(o){const a=o.events.subscribe("components:layout-changed",(d,l)=>{t===l.node&&i.current&&r(l.node.attributes.layout)});return()=>{a()}}},[o,i,t]),s},D=()=>m.useContext(n.ComponentPropertyContext);n.newStyled(n.Paragraph)`
11
+ ${e=>{var t;return n.headingElement(e)("h1",n.css`
12
+ font-weight: normal;
13
+ font-size: ${(t=e.theme.fonts)==null?void 0:t.medium};
14
+ `)}}
15
+ `;const ke=n.newStyled(n.Html)`
16
+ ${n.genericHtml}
17
+ font-weight: 300;
18
+ line-height: 1.5em;
19
+ button:focus-visible {
20
+ ${n.borderTabStyle};
21
+ }
22
+
23
+ a:focus-visible {
24
+ ${n.linkTabStyle};
25
+ }
26
+ `,Ne=e=>{const t=Z(e.clientName),{params:{contactCategory:o,guideCategory:s,phrase:r}}=n.useRouteData();if(typeof t>"u")return null;if(t===null)return process.env.NODE_ENV!=="production"?c.jsx(Ee,{title:`client-name: ${e.clientName}, id: ${e.id}`,className:"humany-non-resolved-contact-method",children:c.jsx(n.Typography,{variant:"h5",children:"Non resolved Contact Method type"})}):null;const i=(a={})=>{const d={...e,...a},{id:l,title:u,clientName:h,symbol:f,inline:y,onClick:g=()=>{},description:C,htmlParseInstruction:b,className:$,disabled:p,guideId:j,dispatch:T=()=>{},expanded:v}=d,w=y?{onKeyDown:S=>{S.key&&S.key==="Enter"&&(g(S,d),S.defaultPrevented||!v&&T("expand",l))},onClick:S=>{g(S,d),S.defaultPrevented||!v&&T("expand",l)}}:{onClick:S=>g(S,d),routeName:"contact-method",params:n.createParams({contactCategory:o,guideId:j,guideCategory:s,phrase:r,contactMethod:l,uriName:n.formatUrl(u)})};return c.jsxs(Te,{title:u,"aria-label":u,className:$,disabled:p,description:C,"data-client-name":h,...a,...w,children:[f&&c.jsx(n.SymbolBadge,{symbol:f}),C?c.jsxs("div",{className:"humany-contact-link-rich-content",children:[c.jsx(X,{children:u}),c.jsx(ke,{html:C,htmlParseInstruction:b})]}):c.jsx(X,{children:u})]})};return e.expanded?c.jsx(m.Suspense,{fallback:null,children:c.jsx(t,{...e,renderDefault:i})}):i()},te=e=>{var t,o,s,r,i,a,d,l;return n.css`
27
+ display: flex;
28
+ padding: ${(t=e.theme.sizes)==null?void 0:t.large};
29
+ ${e.description?"":"align-items: center;"}
30
+ text-decoration: none;
31
+ span {
32
+ display: inline-block;
33
+ color: ${(o=e.theme.colors)==null?void 0:o.text};
34
+ }
35
+ i {
36
+ font-size: ${(s=e.theme.fonts)==null?void 0:s.large};
37
+ margin: 0 ${(r=e.theme.sizes)==null?void 0:r.large} 0 0;
38
+ min-height: ${(i=e.theme.fonts)==null?void 0:i.large};
39
+ min-width: ${(a=e.theme.fonts)==null?void 0:a.large};
40
+ line-height: ${(d=e.theme.fonts)==null?void 0:d.large};
41
+ display: inline-block;
42
+ vertical-align: bottom;
43
+ color: ${(l=e.theme.colors)==null?void 0:l.text};
44
+ }
45
+ `},X=n.newStyled(n.StyledText)`
46
+ line-height: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.large}};
47
+ `,Te=n.newStyled(n.Link)`
48
+ ${e=>te(e)}
49
+
50
+ &:focus-visible {
51
+ ${n.borderTabStyle};
52
+ }
53
+ `,Ee=n.newStyled.div`
54
+ text-align: center;
55
+ display: block;
56
+ ${e=>{var t,o;return typeof((t=e.theme.colors)==null?void 0:t.warning)<"u"&&`color: ${(o=e.theme.colors)==null?void 0:o.warning};`}}
57
+ `,Pe=e=>{var t,o,s;return n.css`
58
+ ${n.itemList(e)}
59
+
60
+ > div {
61
+ padding: ${(t=e.theme.sizes)==null?void 0:t.large};
62
+
63
+ ${n.headingElement(e)("h1",n.css`
64
+ margin: 0;
65
+ `)}
66
+ }
67
+
68
+ > ul {
69
+ &:not(:first-child) {
70
+ border-top: ${e.theme.border};
71
+ }
72
+
73
+ > li {
74
+ margin: 0;
75
+ white-space: normal;
76
+
77
+ > a {
78
+ overflow: hidden;
79
+ }
80
+
81
+ &:first-child > a {
82
+ border-radius: ${`${e.theme.borderRadius} ${e.theme.borderRadius} 0 0`};
83
+ }
84
+
85
+ &:last-child:not(:first-child) > a {
86
+ border-radius: ${`0 0 ${e.theme.borderRadius} ${e.theme.borderRadius}`};
87
+ }
88
+
89
+ &:not(:last-child) {
90
+ border-bottom: ${e.theme.border};
91
+ }
92
+
93
+ > div {
94
+ padding: ${(o=e.theme.sizes)==null?void 0:o.large};
95
+ }
96
+ }
97
+ }
98
+
99
+ @media (hover: hover) {
100
+ a:hover {
101
+ background-color: ${(s=e.theme.colors)==null?void 0:s.accent};
102
+ }
103
+ }
104
+ `},Le=n.newStyled(n.ItemList)`
105
+ ${e=>Pe(e)}
106
+ `,ne=({contactMethods:e,children:t,guideId:o,dispatch:s,className:r="",itemRenderer:i,action:a=()=>{},header:d=""})=>e.length?c.jsx(Le,{header:d,className:n.appendClassNames(r,"humany-contact-list"),items:e,renderItem:i?l=>c.jsx("li",{"data-contact-method":l.id,children:i(l,{action:a,dispatch:s,guideId:o})},l.id):l=>c.jsx("li",{"data-contact-method":l.id,children:c.jsx(Ne,{...l,action:a,dispatch:s,guideId:o})},l.id),children:t}):null;var W=(e=>(e.back="back",e.forth="forth",e))(W||{});const ze=(e,t,o)=>typeof o[e]=="number"&&typeof o[t]=="number"&&o[e]>o[t]?"back":"forth",oe=({views:e,location:t,render:o})=>c.jsx(n.Switch,{location:t&&{...t,pathname:t.pathname.split("?")[0]},children:[...Object.keys(e).filter(s=>!!e[s].path),...Object.keys(e).filter(s=>!e[s].path)].map(s=>{const{path:r}=e[s];return r?Array.isArray(r)?r.map(i=>c.jsx(n.Route,{exact:!0,path:i,render:()=>o(s)},s)):c.jsx(n.Route,{exact:!0,path:r,render:()=>o(s)},s):c.jsx(n.Route,{render:()=>o(s)},s)})}),Be=n.newStyled.div`
107
+ position: relative;
108
+ width: 100%;
109
+ flex: 1;
110
+ `,De=n.newStyled(n.Grid)`
111
+ position: absolute;
112
+ left: 0;
113
+ right: 0;
114
+ ${e=>!!e.animationCss&&e.animationCss}
115
+ ${e=>!!e.scrollableCss&&e.scrollableCss}
116
+ `,Re={index:1,search:2,browse:3,guide:4,contact:5,"contact-method":6,conversation:7},Me=({className:e="",...t})=>{const[o,s]=m.useState("index"),[r,i]=m.useState(W.forth),a=n.useRouteData(),d=n.useRouter(),l=D(),u=n.useContext(),h=n.useContainer(),f=n.useComponentNode(),{gap:y="0"}=u,{columns:g=1,animation:C="none",scrollable:b=!1,...$}=l,[p,j]=n.useScroll(b);if(!f||!d)return null;const{location:T}=d;a.name!==o&&a.name!==""&&C&&(i(ze(o,a.name,Re)),s(a.name));const{views:v}=h.get("$settings");if(!Object.keys(v).length)return null;const w=(x,N,E)=>{const k=S(N,E),P=f.getChildren(x)[0];return c.jsx(De,{...t,...$,scrollableCss:p,ref:j,columns:g,gap:y,...k,className:n.appendClassNames(e,"humany-view"),children:c.jsx(M,{id:P.id,branch:"default"})})},S=(x,N)=>{if(C==="slide"||C==="fade")return{animationCss:A.composeViewTransition(x,C,N),"data-state":x}};return c.jsx(Be,{className:"humany-animated-view",children:c.jsx(Ce,{component:null,childFactory:x=>m.cloneElement(x,{direction:r}),children:c.jsx(n.Transition,{timeout:{enter:500,exit:500},onEnter:x=>x==null?void 0:x.clientHeight,unmountOnExit:!0,direction:W.forth,children:(x,{direction:N})=>c.jsx(oe,{views:v,location:T,render:E=>w(E,x,N)})},o)})})},Oe=n.newStyled(n.Grid)`
117
+ ${e=>!!e.scrollableCss&&e.scrollableCss}
118
+ `,Ie=({className:e="",...t})=>{const o=D(),s=n.useContext(),r=n.useContainer(),i=n.useComponentNode(),{views:a}=r.get("$settings"),{gap:d="0"}=s,{columns:l=1,animation:u="none",scrollable:h=!1,...f}=o,[y,g]=n.useScroll(h);return i?c.jsx(Oe,{...t,...f,scrollableCss:y,ref:g,columns:l,gap:d,className:n.appendClassNames(e,"humany-view"),children:c.jsx(oe,{views:a,render:C=>{const b=i.getChildren(C)[0];return c.jsx(M,{id:b.id,node:b,branch:"default"})}})}):null},R=e=>{var t,o;return n.css`
119
+ outline: none;
120
+ box-sizing: border-box;
121
+ * {
122
+ box-sizing: border-box;
123
+ outline: none;
124
+ }
125
+
126
+ grid-column: ${e["data-indent"]?`${e["data-indent"]+1} / ${e["data-indent"]+(e["data-width"]||0)+1}`:`span ${e["data-width"]}`};
127
+
128
+ ${((t=e.theme.fonts)==null?void 0:t.type)&&`
129
+ font-family: ${e.theme.fonts.type};
130
+
131
+ input, textarea {
132
+ font-family: ${e.theme.fonts.type};
133
+ }
134
+ `}
135
+
136
+ ${((o=e.theme.fonts)==null?void 0:o.base)&&`
137
+ font-size: ${e.theme.fonts.base};
138
+ `}
139
+
140
+ &:focus-visible {
141
+ ${n.paddedBorderTabStyle(e)};
142
+ }
143
+ `},Fe=n.newStyled(Ie)`
144
+ ${e=>R(e)}
145
+ `,Ve=n.newStyled(Me)`
146
+ ${e=>R(e)}
147
+ `,Ae=n.newStyled.div`
148
+ text-align: center;
149
+ ${e=>{var t,o,s;return typeof((t=e.theme.colors)==null?void 0:t.warning)<"u"&&n.css`
150
+ color: ${(o=e.theme.colors)==null?void 0:o.warning};
151
+ border: 2px dashed ${(s=e.theme.colors)==null?void 0:s.warning};
152
+ `}}
153
+ ${e=>typeof e.theme.borderRadius<"u"&&`border-radius: ${e.theme.borderRadius};`}
154
+ ${e=>R(e)}
155
+ `,We=m.forwardRef(({className:e="",children:t,...o},s)=>{const r=Z(),{name:i,type:a,id:d}=G(),l=m.useMemo(()=>r?n.newStyled(r)`
156
+ ${R}
157
+ ${n.filterCssPropsStyle}
158
+ `:null,[r]);return typeof r>"u"?null:r===null||l===null?process.env.NODE_ENV!=="production"?c.jsx(Ae,{...o,title:`type: ${a}, definition-id: ${i}, instance-id: ${d}`,className:n.appendClassNames(e,"humany-non-resolved-component"),children:c.jsx(n.Typography,{variant:"h5",children:"Non Resolved Component Type"})}):null:c.jsx(m.Suspense,{fallback:null,children:c.jsx(l,{ref:s,...o,className:n.appendClassNames(e,"humany-component",`humany-component-${i}`),children:t})})}),He=e=>{const t=n.useComponentNode(e),o=n.useComponentPlatform(),[s,r]=m.useState({}),i=n.useIsMounted();return m.useEffect(()=>{t&&i.current&&r(t.attributes.properties)},[t,e,i]),m.useEffect(()=>{if(o){const a=o.events.subscribe("components:properties-changed",(d,l)=>{t===l.node&&i.current&&r(l.node.attributes.properties)});return()=>{a()}}},[o,i,e,t]),s},_e=(e,t)=>t?!0:typeof e=="string"?e==="full":e>0,M=m.forwardRef(({className:e="",id:t,branch:o,node:s,ariaLabel:r,tabIndex:i,context:a,...d},l)=>{const u=n.useComponentPlatform(),h=n.useContainer(),[f,y]=m.useState(),g=je(),C=n.useContext(t),b=He(t),{size:$="none",indent:p=0}=ve(t),j=_e($,s);if(m.useEffect(()=>{if(u){if(t&&!s){const k=u.nodes.get(t);if(k&&(y(V(k,o)),j)){const P=k.mount(h);return()=>{P()}}}else if(s){y(V(s,o));const k=s.mount(h);return()=>{k()}}}},[u,t,s,j]),!f||!j)return null;const T={...C,...a||{}},{cardinal:v,fonts:w={},accessibility:S={},...x}=T,N={type:w.type,base:w.base||"16px",small:w.small||"0.8em",normal:w.normal||"1em",medium:w.medium||"1.2em",large:w.large||"1.6em",huge:w.huge||"2.5em"},E={...x,fonts:N,accessibility:{...S}};return typeof v=="number"&&(E.sizes={cardinal:v,small:`${v}px`,normal:`${v*3}px`,medium:`${v*5}px`,large:`${v*8}px`}),c.jsx(n.ThemeProvider,{theme:E,children:c.jsx(n.ComponentNodeContext.Provider,{value:f,children:c.jsx(n.ComponentPropertyContext.Provider,{value:b,children:(()=>{const k={"data-width":$==="full"?g:Math.min($,g),"data-indent":p,"data-name":f.name,"data-node-id":f.id,"data-component-type":f.type,"aria-label":r,tabIndex:i,id:f.id,role:b&&b.role,...d};switch(f.type){case"view":return typeof b.animation=="string"&&b.animation!=="none"?c.jsx(Ve,{...k,className:e}):c.jsx(Fe,{...k,className:e});default:{const P=n.filterCssProps(b);return c.jsx(We,{ref:l,...k,...P,className:e})}}})()})})})}),Ge=m.lazy(()=>Promise.resolve().then(()=>require("./detached-component-cb6ec5d1.js"))),qe=({showSearch:e=!1})=>{const t=n.useTheme(),o=n.useContainer();return c.jsx(m.Suspense,{fallback:null,children:c.jsx(Ge,{builder:s=>o.get("settings").then(r=>{var u;const{properties:i,context:a}=Object.keys(r.components).reduce((h,f)=>(r.components[f].type==="not-found"&&(h.properties=r.components[f].properties,h.context=r.components[f].context),h),{properties:{},context:{}});i.showSearch=e;const d=s.createNode("area",{detached:!0});if(d.name="not-found-area",d.writeLayout({size:"full"}),e){const h=Object.keys(r.components).reduce((y,g)=>r.components[g].type==="search"?r.components[g].properties:y,{}),f=s.createNode("search",{detached:!0});f.writeLayout({size:"full"}),f.writeProperties({"css-margin-bottom":((u=t==null?void 0:t.sizes)==null?void 0:u.normal)||"15px",...h}),d.appendChild(f)}const l=s.createNode("not-found",{detached:!0});return l.writeLayout({size:"full"}),l.writeProperties(i),l.writeContext(a),d.appendChild(l),d})})})},Ue=({className:e,defaultAnswerVersionLabel:t,guide:{perspective:o,perspectives:s},availablePerspectives:r=[]})=>{const{name:i,params:a}=n.useRouteData(),d=m.useMemo(()=>!s||!r.length?[]:r.filter(({name:l})=>!!s[l]).map(({name:l,title:u})=>({label:u,connection:s[l]})),[s,r]);return c.jsx(Ke,{className:n.appendClassNames(e,"humany-guide-answer-version-picker"),items:d,renderItem:l=>{const u=l.label==="Default"?t:l.label,h=o===l.connection,f=h&&(!a.connection||o===a.connection);return c.jsx("li",{"data-version":l.connection,children:c.jsx(Xe,{as:f?"span":void 0,text:u,routeName:i,selected:h,"aria-label":u,title:u,params:{...a,connection:l.connection}},l.connection)},l.connection)}})},Ke=n.newStyled(n.List)`
159
+ display: flex;
160
+ align-items: center;
161
+ flex-wrap: wrap;
162
+
163
+ list-style: none;
164
+ padding: 0;
165
+ margin: 0;
166
+
167
+ li:not(:last-child) {
168
+ margin: 0 calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} * 2) 0 0;
169
+ }
170
+
171
+ li > span {
172
+ cursor: default;
173
+ }
174
+ `,Xe=n.newStyled(n.TextLink)`
175
+ font-weight: 300;
176
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
177
+ text-decoration: none;
178
+
179
+ ${e=>e.selected&&n.css`
180
+ font-weight: bold;
181
+ text-decoration: underline;
182
+ `}
183
+
184
+ &:focus-visible {
185
+ ${n.paddedBorderTabStyle};
186
+ }
187
+ `,Ye=n.newStyled(ne)`
188
+ border-top: ${e=>e.theme.border};
189
+ ${e=>e.backButtonShown==="true"&&`border-bottom: ${e.theme.border};`}
190
+ `,Qe=n.newStyled(n.FeedbackUi)`
191
+ ${e=>{var t,o;return`padding: ${(t=e.theme.sizes)==null?void 0:t.large} ${(o=e.theme.sizes)==null?void 0:o.large};`}}
192
+ `,Je=n.newStyled(n.StyledHeaderText)`
193
+ ${e=>{var t,o;return`padding: ${(t=e.theme.sizes)==null?void 0:t.large} ${(o=e.theme.sizes)==null?void 0:o.large};`}}
194
+
195
+ display: block;
196
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
197
+ font-weight: bold;
198
+ `,Ze=({backButtonShown:e=!1,accordion:t=!1})=>{const o=ee(),{loading:s=!1,dialog:r=[],guide:i,handoverContactMethods:a=[],contactHeader:d,showFeedback:l,feedbackDirection:u="horizontal",feedbackRecognitionLabel:h,feedbackGiven:f,feedbackHeader:y,positiveFeedbackLabel:g,negativeFeedbackLabel:C,contactFeedbackLabel:b}=D(),[$,p]=m.useState(!1);return m.useEffect(()=>{f||p(!1)},[f]),!l||!i||!i.allowFeedback||s&&!f||r.length?null:f&&h&&!a.length&&!s?c.jsx(Je,{accordion:t?"true":"false",tabindex:-1,ref:j=>{!$&&j&&(p(!0),j.focus())},children:h}):i.hasHandover&&a.length?c.jsx(Ye,{backButtonShown:e?"true":"false",accordion:t?"true":"false",header:d,contactMethods:a,dispatch:o}):c.jsx(Qe,{accordion:t?"true":"false",positive:g,negative:i.hasHandover?b:C,header:y,selected:f,onFeedback:j=>o("feedback",j),direction:u})},et=({guide:{categories:e=[]},toolbar:{picker:t=n.PickerTypes.NONE}})=>{const[o,s]=m.useState([]),r=n.useContainer();return m.useEffect(()=>{ue("index",e.map(i=>i.toString()),r).then(i=>{s(i)})},[e]),o.length?c.jsx(n.Tooltip,{className:"humany-guide-category-tooltip",sticky:t===n.PickerTypes.DRAWER,content:c.jsx(c.Fragment,{children:o.map(i=>c.jsx(tt,{className:"humany-guide-category-trail",children:i.map((a,d)=>c.jsxs(n.Text,{className:"humany-guide-category-trail-segment",children:[a.symbol&&d===0&&c.jsx(n.SymbolBadge,{size:14,symbol:a.symbol}),a.title,d!==i.length-1&&c.jsx(nt,{className:"humany-category-separator",children:"/"})]},a.id))},i.map(a=>a.id).join(".")))}),children:t===n.PickerTypes.DRAWER?c.jsx(n.StyledListButton,{className:"humany-guide-category-tooltip-button","data-has-label":"false","data-has-symbol":"true",children:c.jsx(Y,{size:19,symbol:{type:"Svg",content:"information"}})}):c.jsx(Y,{size:19,symbol:{type:"Svg",content:"information"}})}):null},tt=n.newStyled.div`
199
+ i,
200
+ svg {
201
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
202
+ }
203
+
204
+ &:not(:last-child) {
205
+ margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
206
+ }
207
+ `,nt=n.newStyled(n.Text)`
208
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
209
+ `,Y=n.newStyled(n.SymbolBadge)`
210
+ display: block;
211
+ `,ot=({header:e,tooltip:t,printActionLabel:o,copyActionLabel:s,addFavoriteTooltip:r,removeFavoriteCancelLabel:i,removeFavoriteConfirmLabel:a,removeFavoriteHeader:d,removeFavoriteLabel:l,removeFavoriteTooltip:u,toolbarFunctionsCloseButtonAriaLabel:h,allowCopy:f=!1,allowPrint:y=!1,showFavoriteToggle:g=!1,picker:C=n.PickerTypes.NONE,guide:b,dispatch:$})=>{const[p,j]=n.useFavorites(),T=m.useCallback(N=>{b&&$("copy",b)},[b,$]),v=m.useCallback(()=>{b&&$("print")},[b,$]),w=m.useMemo(()=>{const{id:N,title:E}=b,k=[];if(f&&k.push({type:"copy",child:c.jsxs(n.StyledListButton,{"data-has-label":s?"true":"false","data-has-symbol":"true",title:s,"aria-label":o,onClick:T,children:[c.jsx(F,{size:16,symbol:{type:"Svg",content:"copy"}}),s&&c.jsx(n.StyledText,{children:s})]})}),y&&k.push({type:"print",child:c.jsxs(n.StyledListButton,{"data-has-label":o?"true":"false","data-has-symbol":"true",title:o,"aria-label":o,onClick:v,children:[c.jsx(F,{size:16,symbol:{type:"Svg",content:"print"}}),o&&c.jsx(n.StyledText,{children:o})]})}),g){const P=p.indexOf(N)>-1;k.push({type:"favorite",child:c.jsx(n.FavoriteButton,{id:N,guideTitle:E,isFavorite:P,buttonLabel:P?u:r,addFavoriteTooltip:r,removeFavoriteCancelLabel:i,removeFavoriteConfirmLabel:a,removeFavoriteHeader:d,removeFavoriteLabel:l,removeFavoriteTooltip:u,actions:j})})}return k},[p,b,f,y,g,o,s,r,i,a,d,l,u]);if(!w.length)return null;const S=c.jsx(rt,{tabIndex:0,title:t,"data-has-symbol":"true","data-has-label":"false",children:c.jsx(F,{symbol:{type:"Svg",content:"options"},size:18})}),x=({type:N,child:E})=>c.jsx("li",{"data-function-type":N,children:E},N);return C===n.PickerTypes.DROPDOWN?c.jsx(st,{className:"humany-guide-functions-dropdown-list",header:e,items:w,trigger:S,renderItem:x,closeButtonAriaLabel:h}):C===n.PickerTypes.DRAWER?c.jsx(n.DrawerList,{className:"humany-guide-functions-drawer-list",animation:{type:n.AnimationType.SlideInBottom},header:e,items:w,trigger:S,renderItem:x,closeButtonAriaLabel:h}):null},F=n.newStyled(n.SymbolBadge)`
212
+ circle {
213
+ fill: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
214
+ }
215
+
216
+ line,
217
+ path,
218
+ rect {
219
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
220
+ }
221
+ `,st=n.newStyled(n.DropdownList)`
222
+ display: block;
223
+ min-height: auto;
224
+ `,rt=n.newStyled(n.StyledListButton)`
225
+ padding: calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} * 2) 0;
226
+ `,it=(e,t)=>{var o;return((o=t.find(s=>s.id===e.id))==null?void 0:o.label)||""},at=({header:e,tooltip:t,picker:o=n.PickerTypes.NONE,guide:s,...r})=>{const{name:i,params:a}=n.useRouteData(),d=m.useMemo(()=>Object.keys(s.translations||{}).reduce((f,y)=>{const g={};return g.key=y,g.id=(s.translations||{})[y],g.label=r[`${y}LanguageLabel`],(g.id||g.label)&&f.push(g),f},[]),[s,r]);if(!d.length)return null;const l=it(s,d),u=c.jsxs(lt,{tabIndex:0,title:t,"data-has-symbol":"true","data-has-label":o===n.PickerTypes.DROPDOWN&&l?"true":"false",children:[o===n.PickerTypes.DROPDOWN&&c.jsxs(c.Fragment,{children:[l&&c.jsx(dt,{children:l}),c.jsx(ut,{symbol:{type:"Svg",content:"caret-down"},size:11})]}),o===n.PickerTypes.DRAWER&&c.jsx(ct,{symbol:{type:"Svg",content:"language"},size:20})]}),h=({label:f,key:y,id:g})=>c.jsx("li",{"data-language":y,children:c.jsx(ht,{tabIndex:0,text:f,routeName:i,selected:s.id===g,params:n.createParams({...a,connection:void 0,guide:g})})},y);return o===n.PickerTypes.DROPDOWN?c.jsx(mt,{className:"humany-guide-languages-dropdown-list",header:e,items:d,trigger:u,renderItem:h}):o===n.PickerTypes.DRAWER?c.jsx(n.DrawerList,{className:"humany-guide-languages-drawer-list",animation:{type:n.AnimationType.SlideInBottom},header:e,items:d,trigger:u,renderItem:h}):null},lt=n.newStyled(n.StyledListButton)`
227
+ &&& {
228
+ margin: 0 ${e=>{var t;return`calc(${(t=e.theme.sizes)==null?void 0:t.small} * 2)`}} 0 0;
229
+ }
230
+ `,ct=n.newStyled(n.SymbolBadge)`
231
+ circle {
232
+ fill: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
233
+ }
234
+
235
+ line,
236
+ path,
237
+ rect {
238
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
239
+ }
240
+ `,dt=n.newStyled(n.Text)`
241
+ margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
242
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
243
+ `,ut=n.newStyled(n.SymbolBadge)`
244
+ align-self: flex-end;
245
+ stroke-width: 2px;
246
+ stroke-linecap: round;
247
+
248
+ && {
249
+ width: 0.6em;
250
+ height: 1em;
251
+ }
252
+ line {
253
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
254
+ }
255
+ `,mt=n.newStyled(n.DropdownList)`
256
+ display: block;
257
+ min-height: auto;
258
+ `,ht=n.newStyled(n.TextLink)`
259
+ color: ${e=>{var t,o;return e.selected?(t=e.theme.colors)==null?void 0:t.primary:(o=e.theme.colors)==null?void 0:o.text}};
260
+ ${e=>e.selected&&"font-weight: bold;"}
261
+
262
+ outline: none;
263
+ &:focus-visible {
264
+ ${n.paddedBorderTabStyle}
265
+ text-decoration: underline;
266
+ }
267
+ `,ft=e=>{const{allowCopy:t=!1,allowPrint:o=!1,guideCategories:s=!1,language:r=!1,showFavoriteToggle:i=!1,picker:a=n.PickerTypes.NONE}=e;return!t&&!o&&!r&&!i&&!s||a===n.PickerTypes.NONE},pt=({className:e="",dispatch:t})=>{const{toolbarLanguageHeader:o,toolbarFunctionsHeader:s,toolbarLanguageTooltip:r,toolbarFunctionsTooltip:i,toolbarFunctionsCloseButtonAriaLabel:a,printActionLabel:d,copyActionLabel:l,addFavoriteTooltip:u,removeFavoriteCancelLabel:h,removeFavoriteConfirmLabel:f,removeFavoriteHeader:y,removeFavoriteLabel:g,removeFavoriteTooltip:C,guide:b,toolbar:$,...p}=D();if(!b||!$||ft($))return null;const{language:j,guideCategories:T,allowCopy:v,allowPrint:w,showFavoriteToggle:S,picker:x}=$;return c.jsxs(yt,{className:n.appendClassNames("humany-guide-toolbar",e),children:[j&&Object.keys(b.translations||{}).length>1&&c.jsx(at,{guide:b,header:o,tooltip:r,picker:x,...p}),T&&c.jsx(et,{guide:b,toolbar:$}),(v||w||S)&&c.jsx(ot,{guide:b,header:s,tooltip:i,printActionLabel:d,copyActionLabel:l,addFavoriteTooltip:u,removeFavoriteCancelLabel:h,removeFavoriteConfirmLabel:f,removeFavoriteHeader:y,removeFavoriteLabel:g,removeFavoriteTooltip:C,toolbarFunctionsCloseButtonAriaLabel:a,allowCopy:v,allowPrint:w,showFavoriteToggle:S,picker:x,dispatch:t})]})},yt=n.newStyled.div`
268
+ display: flex;
269
+ align-items: center;
270
+ justify-content: space-between;
271
+ margin: 0 0 0 auto;
272
+
273
+ > :not(:last-child) {
274
+ margin: 0 calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} * 2) 0 0;
275
+ }
276
+ `,gt=m.forwardRef(({className:e,accordion:t=!1,...o},s)=>{const{loading:r=!1,dialog:i=[],contactMethods:a=[],showHeader:d=!0,showAnswerVersions:l=!1,defaultAnswerVersionLabel:u="Default",backButtonLabel:h,metadataByLabel:f,metadataModifiedLabel:y,metadataPublishedLabel:g,availablePerspectives:C,metadata:b,toolbar:$,guide:p,error:j}=D(),{params:{connection:T,guide:v}}=n.useRouteData(),w=n.useContainer(),S=Se(),x=ee(),N=m.useMemo(()=>({transform:{img:L=>c.jsx(n.Lightbox,{attrs:L,htmlBody:(p==null?void 0:p.body)||""}),a:L=>{const{children:re,...ie}=L,U=ie["data-target"];if(U&&i.length){const K=i.find(({connection:ae})=>ae===U);if(K)return c.jsx(n.DialogLink,{...K,children:re})}return n.embeddedLinkMapper(w)(L)}}}),[p,w,i]),E=m.useCallback(()=>{x("back")},[x]);if(!p&&!j&&!r)return pe(w,{...o,className:n.appendClassNames(e,"humany-guide")});const{id:k="",title:P="",body:O="",translations:q={}}=p||{};if(j&&j.status===404)return c.jsx(qe,{showSearch:!1});const I=!!t&&!!T,se=Object.keys(q).find(L=>q[L]===`${k}`);return c.jsxs(bt,{ref:s,...o,"data-loading":r,className:n.appendClassNames(e,"humany-guide"),children:[c.jsxs(St,{"data-loading":r,accordion:t?"true":"false",className:"humany-guide-content",children:[(l&&p||!!$)&&c.jsxs(Ct,{className:"humany-guide-top",children:[l&&p&&c.jsx(Ue,{defaultAnswerVersionLabel:u,availablePerspectives:C,guide:p}),!!$&&c.jsx(pt,{dispatch:x})]}),!!(P||O)&&c.jsx(xt,{className:"humany-guide-body",accordion:t?"true":"false",header:d&&P||void 0,html:O,htmlParseInstruction:N,lang:se}),i&&O.indexOf("h-option-link")===-1&&c.jsx(wt,{dialog:i}),c.jsx($t,{backButtonShown:I?"true":"false",contactMethods:a,dispatch:x,guideId:p&&p.id}),!a.length&&v===(p==null?void 0:p.id)&&c.jsx(Ze,{backButtonShown:I,accordion:t}),I&&c.jsxs(kt,{"aria-label":h,onClick:E,children:[c.jsxs(Nt,{width:"7",height:"13",viewBox:"0 0 7 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("line",{x1:"6.64645",y1:"12.5513",x2:"0.648357",y2:"6.55319"}),c.jsx("line",{x1:"0.646447",y1:"6.64455",x2:"6.64454",y2:"0.646465"})]}),h&&c.jsx("span",{children:h})]}),b&&c.jsx(jt,{...b,modified:p==null?void 0:p.modified,published:p==null?void 0:p.published,modifiedBy:p==null?void 0:p.modifiedBy,publishedBy:p==null?void 0:p.publishedBy,byLabel:f,modifiedLabel:y,publishedLabel:g}),S.map(L=>c.jsx(vt,{id:L.id,branch:"default",embedded:!0},L.id))]}),c.jsx(n.Loader,{loading:r})]})}),bt=n.newStyled.div`
277
+ ${n.loadingOpacity}
278
+ min-width: 0;
279
+ `,xt=n.newStyled(n.Paragraph)`
280
+ ${n.genericHtml}
281
+ ${e=>{var t;return`padding: ${(t=e.theme.sizes)==null?void 0:t.large};`}}
282
+ display: block;
283
+ line-height: 1.6em;
284
+
285
+ ${e=>{var t,o;return n.headingElement(e)("h1",n.css`
286
+ font-size: ${(t=e.theme.fonts)==null?void 0:t.large};
287
+ font-weight: normal;
288
+ line-height: 1.6em;
289
+ line-height: 1.6em;
290
+ margin: 0 0 ${(o=e.theme.sizes)==null?void 0:o.small};
291
+ `)}}
292
+
293
+ p {
294
+ font-weight: 300;
295
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
296
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
297
+ a {
298
+ display: inline;
299
+ }
300
+ }
301
+ `,$t=n.newStyled(ne)`
302
+ border-top: ${e=>e.theme.border};
303
+ ${e=>e.backButtonShown==="true"&&`border-bottom: ${e.theme.border};`}
304
+ `,wt=n.newStyled(n.DialogList)`
305
+ ${e=>{var t,o;return`padding: 0 ${(t=e.theme.sizes)==null?void 0:t.large} ${(o=e.theme.sizes)==null?void 0:o.large};`}}
306
+ display: block;
307
+ `,Ct=n.newStyled.div`
308
+ ${e=>{var t,o;return`padding: calc(${(t=e.theme.sizes)==null?void 0:t.normal}*2) ${(o=e.theme.sizes)==null?void 0:o.large};`}}
309
+ display: flex;
310
+ justify-content: space-between;
311
+ align-items: center;
312
+ border-bottom: ${e=>e.theme.border};
313
+ border-radius: ${e=>`${e.theme.borderRadius} ${e.theme.borderRadius}`} 0 0;
314
+ background-color: #ffffff;
315
+ `,St=n.newStyled.div`
316
+ ${n.contentBox}
317
+ display: block;
318
+ > a {
319
+ ${te}
320
+ }
321
+
322
+ ${e=>e.accordion==="true"&&n.css`
323
+ white-space: normal;
324
+ box-shadow: none;
325
+ background-color: #fafafa;
326
+ `}
327
+ `,jt=n.newStyled(n.Metadata)`
328
+ display: block;
329
+ ${e=>{var t,o;return`padding: calc(${(t=e.theme.sizes)==null?void 0:t.normal}*2) ${(o=e.theme.sizes)==null?void 0:o.large};`}}
330
+ font-weight: 300;
331
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
332
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
333
+ border-top: ${e=>e.theme.border};
334
+ `,vt=n.newStyled(M)`
335
+ border-top: ${e=>e.theme.border};
336
+ `,kt=n.newStyled(n.Button)`
337
+ ${e=>{var t,o;return`padding: ${(t=e.theme.sizes)==null?void 0:t.normal} calc(${(o=e.theme.sizes)==null?void 0:o.normal} * 2);`}}
338
+ color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
339
+ text-decoration: underline;
340
+ font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
341
+ span {
342
+ font-weight: 300;
343
+ }
344
+ &:focus-visible {
345
+ ${n.linkTabStyle}
346
+ padding: ${e=>{var t,o;return`calc(${(t=e.theme.sizes)==null?void 0:t.small} / 2) ${(o=e.theme.sizes)==null?void 0:o.small}`}};
347
+ }
348
+ `,Nt=n.newStyled.svg`
349
+ margin-right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
350
+ line {
351
+ stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
352
+ }
353
+ `,Tt=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"}));exports.Component=M;exports.guide=Tt;