@digital-realty/ui-knowledgebase 17.0.0 → 17.0.1-IXUAT-11245.565071
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/ui-knowledgebase.js +1656 -68
- package/package.json +12 -8
package/dist/ui-knowledgebase.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{LitElement as e,css as t,html as n,nothing as r,
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(e,t){return re(e)||ie(e,t)||b(e,t)||ae()}function b(e,t){if(e){if(typeof e==`string`)return v(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function x(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof _;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}x.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},x.prototype.next=function(e){return this._invoke(`next`,e)},x.prototype.throw=function(e){return this._invoke(`throw`,e)},x.prototype.return=function(e){return this._invoke(`return`,e)};var oe=Object.entries,se=Object.setPrototypeOf,ce=Object.isFrozen,le=Object.getPrototypeOf,S=Object.getOwnPropertyDescriptor,C=Object.freeze,w=Object.seal,ue=Object.create,de=typeof Reflect<`u`&&Reflect,fe=de.apply,pe=de.construct;C||=function(e){return e},w||=function(e){return e},fe||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},pe||=function(e){return new e(...[...arguments].slice(1))};var me=O(Array.prototype.forEach);Array.prototype.indexOf;var he=O(Array.prototype.lastIndexOf),ge=O(Array.prototype.pop),_e=O(Array.prototype.push);Array.prototype.slice;var ve=O(Array.prototype.splice),ye=Array.isArray,be=O(String.prototype.toLowerCase),xe=O(String.prototype.toString),Se=O(String.prototype.match),Ce=O(String.prototype.replace),we=O(String.prototype.indexOf),Te=O(String.prototype.trim),Ee=O(Number.prototype.toString),De=O(Boolean.prototype.toString),Oe=typeof BigInt>`u`?null:O(BigInt.prototype.toString),ke=typeof Symbol>`u`?null:O(Symbol.prototype.toString),T=O(Object.prototype.hasOwnProperty),Ae=O(Object.prototype.toString),E=O(RegExp.prototype.test),D=je(TypeError);function O(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return fe(e,t,n)}}function je(e){return function(){return pe(e,[...arguments])}}function k(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:be;if(se&&se(e,null),!ye(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ce(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Me(e){for(let t=0;t<e.length;t++)T(e,t)||(e[t]=null);return e}function A(e){let t=ue(null);for(let r of oe(e)){var n=y(r,2);let i=n[0],a=n[1];T(e,i)&&(t[i]=ye(a)?Me(a):a&&typeof a==`object`&&a.constructor===Object?A(a):a)}return t}function Ne(e){switch(typeof e){case`string`:return e;case`number`:return Ee(e);case`boolean`:return De(e);case`bigint`:return Oe?Oe(e):`0`;case`symbol`:return ke?ke(e):`Symbol()`;case`undefined`:return Ae(e);case`function`:case`object`:{if(e===null)return Ae(e);let t=e,n=j(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Ae(e)}return Ae(e)}default:return Ae(e)}}function j(e,t){for(;e!==null;){let n=S(e,t);if(n){if(n.get)return O(n.get);if(typeof n.value==`function`)return O(n.value)}e=le(e)}function n(){return null}return n}function Pe(e){try{return E(e,``),!0}catch{return!1}}var Fe=C(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ie=C(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Le=C([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Re=C([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ze=C(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Be=C([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Ve=C([`#text`]),He=C(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Ue=C(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),We=C(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Ge=C([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ke=w(/{{[\w\W]*|^[\w\W]*}}/g),qe=w(/<%[\w\W]*|^[\w\W]*%>/g),Je=w(/\${[\w\W]*/g),Ye=w(/^data-[\-\w.\u00B7-\uFFFF]+$/),Xe=w(/^aria-[\-\w]+$/),Ze=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qe=w(/^(?:\w+script|data):/i),$e=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),et=w(/^html$/i),tt=w(/^[a-z][.\w]*(-[.\w]+)+$/i),nt=w(/<[/\w!]/g),rt=w(/<[/\w]/g),it=w(/<\/no(script|embed|frames)/i),at=w(/\/>/i),M={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ot=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],st=C(k({},ot)),ct=function(){let e={};return me(ot,t=>{e[t]=w(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),C(e)}(),lt=function(){return typeof window>`u`?null:window},ut=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},dt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},N=function(e,t,n,r){return T(e,t)&&ye(e[t])?k(r.base?A(r.base):{},e[t],r.transform):n},ft=function(e,t,n){let r=T(e,t)?e[t]:void 0;return r&&typeof r==`object`?A(r):n()};function pt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lt(),t=e=>pt(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==M.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=j(d,`cloneNode`),ee=j(d,`remove`),te=j(d,`removeAttributeNode`),p=j(d,`nextSibling`),m=j(d,`childNodes`),h=j(d,`parentNode`),ne=j(d,`shadowRoot`),g=j(d,`attributes`),_=o&&o.prototype?j(o.prototype,`nodeType`):null,v=o&&o.prototype?j(o.prototype,`nodeName`):null,re=o&&o.prototype?j(o.prototype,`ownerDocument`):null,ie=function(e){return _?_(e):e.nodeType},ae=function(e){return v?v(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let y,b=``,x,se=!1,ce=0,le=function(){if(ce>0)throw D(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},S=function(e){le(),ce++;try{return y.createHTML(e)}finally{ce--}},de=function(e){le(),ce++;try{return y.createScriptURL(e)}finally{ce--}},fe=function(){return se||=(x=ut(u,i),!0),x},pe=n,Ee=pe.implementation,De=pe.createNodeIterator,Oe=pe.createDocumentFragment,ke=pe.getElementsByTagName,Ae=r.importNode,O=dt();t.isSupported=typeof oe==`function`&&typeof h==`function`&&Ee&&Ee.createHTMLDocument!==void 0;let je=Ke,Me=qe,ot=Je,mt=Ye,ht=Xe,gt=Qe,_t=$e,vt=tt,P=Ze,F=null,yt=k({},[...Fe,...Ie,...Le,...ze,...Ve]),I=null,L=k({},[...He,...Ue,...We,...Ge]),R=Object.seal(ue(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,bt=null,B=Object.seal(ue(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),V=!0,H=!0,xt=!1,St=!0,U=!1,W=!0,G=!1,Ct=!1,K=null,q=null,wt=!1,J=!1,Tt=!1,Et=!1,Dt=!0,Ot=!1,kt=`user-content-`,At=!0,jt=!1,Mt={},Nt=null,Pt=k({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ft=null,It=k({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Lt=null,Rt=k({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),zt=`http://www.w3.org/1998/Math/MathML`,Bt=`http://www.w3.org/2000/svg`,Y=`http://www.w3.org/1999/xhtml`,X=Y,Vt=!1,Ht=null,Ut=k({},[zt,Bt,Y],xe),Wt=C([`mi`,`mo`,`mn`,`ms`,`mtext`]),Z=k({},Wt),Gt=C([`annotation-xml`]),Kt=k({},Gt),qt=k({},[`title`,`style`,`font`,`a`,`script`]),Jt=null,Yt=[`application/xhtml+xml`,`text/html`],Q=null,Xt=null,Zt=n.createElement(`form`),Qt=function(e){return e instanceof RegExp||e instanceof Function},$t=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Xt&&Xt===e)return;(!e||typeof e!=`object`)&&(e={}),e=A(e),Jt=Yt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Q=Jt===`application/xhtml+xml`?xe:be,F=N(e,`ALLOWED_TAGS`,yt,{transform:Q}),I=N(e,`ALLOWED_ATTR`,L,{transform:Q}),Ht=N(e,`ALLOWED_NAMESPACES`,Ut,{transform:xe}),Lt=N(e,`ADD_URI_SAFE_ATTR`,Rt,{transform:Q,base:Rt}),Ft=N(e,`ADD_DATA_URI_TAGS`,It,{transform:Q,base:It}),Nt=N(e,`FORBID_CONTENTS`,Pt,{transform:Q}),z=N(e,`FORBID_TAGS`,A({}),{transform:Q}),bt=N(e,`FORBID_ATTR`,A({}),{transform:Q}),Mt=T(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?A(e.USE_PROFILES):e.USE_PROFILES:!1,V=e.ALLOW_ARIA_ATTR!==!1,H=e.ALLOW_DATA_ATTR!==!1,xt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,St=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,W=e.SAFE_FOR_XML!==!1,G=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,Tt=e.RETURN_DOM_FRAGMENT||!1,Et=e.RETURN_TRUSTED_TYPE||!1,wt=e.FORCE_BODY||!1,Dt=e.SANITIZE_DOM!==!1,Ot=e.SANITIZE_NAMED_PROPS||!1,At=e.KEEP_CONTENT!==!1,jt=e.IN_PLACE||!1,P=Pe(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ze,X=typeof e.NAMESPACE==`string`?e.NAMESPACE:Y,Z=ft(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>k({},Wt)),Kt=ft(e,`HTML_INTEGRATION_POINTS`,()=>k({},Gt));let t=ft(e,`CUSTOM_ELEMENT_HANDLING`,()=>ue(null));if(R=ue(null),T(t,`tagNameCheck`)&&Qt(t.tagNameCheck)&&(R.tagNameCheck=t.tagNameCheck),T(t,`attributeNameCheck`)&&Qt(t.attributeNameCheck)&&(R.attributeNameCheck=t.attributeNameCheck),T(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(R.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),w(R),U&&(H=!1),Tt&&(J=!0),Mt&&(F=k({},Ve),I=ue(null),Mt.html===!0&&(k(F,Fe),k(I,He)),Mt.svg===!0&&(k(F,Ie),k(I,Ue),k(I,Ge)),Mt.svgFilters===!0&&(k(F,Le),k(I,Ue),k(I,Ge)),Mt.mathMl===!0&&(k(F,ze),k(I,We),k(I,Ge))),B.tagCheck=null,B.attributeCheck=null,T(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?B.tagCheck=e.ADD_TAGS:ye(e.ADD_TAGS)&&(F===yt&&(F=A(F)),k(F,e.ADD_TAGS,Q))),T(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?B.attributeCheck=e.ADD_ATTR:ye(e.ADD_ATTR)&&(I===L&&(I=A(I)),k(I,e.ADD_ATTR,Q))),T(e,`ADD_FORBID_CONTENTS`)&&ye(e.ADD_FORBID_CONTENTS)&&(Nt===Pt&&(Nt=A(Nt)),k(Nt,e.ADD_FORBID_CONTENTS,Q)),At&&(F[`#text`]=!0),G&&k(F,[`html`,`head`,`body`]),F.table&&(k(F,[`tbody`]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw D(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw D(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=y;y=e.TRUSTED_TYPES_POLICY;try{b=S(``)}catch(e){throw y=t,e}}else e.TRUSTED_TYPES_POLICY===null?(y=void 0,b=``):(y===void 0&&(y=fe()),y&&typeof b==`string`&&(b=S(``)));C&&C(e),Xt=e},en=k({},[...Ie,...Le,...Re]),tn=k({},[...ze,...Be]),nn=function(e,t,n){return t.namespaceURI===Y?e===`svg`:t.namespaceURI===zt?e===`svg`&&(n===`annotation-xml`||Z[n]):!!en[e]},rn=function(e,t,n){return t.namespaceURI===Y?e===`math`:t.namespaceURI===Bt?e===`math`&&Kt[n]:!!tn[e]},an=function(e,t,n){return t.namespaceURI===Bt&&!Kt[n]||t.namespaceURI===zt&&!Z[n]?!1:!tn[e]&&(qt[e]||!en[e])},on=function(e){let t=h(e);(!t||!t.tagName)&&(t={namespaceURI:X,tagName:`template`});let n=be(e.tagName),r=be(t.tagName);return Ht[e.namespaceURI]?e.namespaceURI===Bt?nn(n,t,r):e.namespaceURI===zt?rn(n,t,r):e.namespaceURI===Y?an(n,t,r):!!(Jt===`application/xhtml+xml`&&Ht[e.namespaceURI]):!1},sn=function(e){_e(t.removed,{element:e});try{h(e).removeChild(e)}catch{if(ee(e),!h(e))throw D(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},cn=function(e,t,n){try{te(e,t)}catch{try{e.removeAttribute(n)}catch{}}},ln=function(e){fn(e);let t=m(e);if(t){let e=[];me(t,t=>{_e(e,t)}),me(e,e=>{try{ee(e)}catch{}})}let n=g(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&cn(e,r,i)}},un=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}_e(t.removed,{attribute:r||null,from:n});try{r?te(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(J||Tt)try{sn(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},dn=function(e){let t=g(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||I[Q(i)]||cn(e,r,i)}},fn=function(e){let t=[e];for(;t.length>0;){let e=t.pop();ie(e)===M.element&&dn(e);let n=m(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},pn=function(e,t){return W?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},mn=function(e){if(!W)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=ie(e);if(n===M.processingInstruction||n===M.comment&&E(rt,e.data)){try{ee(e)}catch{}continue}if(n===M.element){let t=e,n=Q(ae(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&pn(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=m(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},hn=function(e){let t=null,r=null;if(wt)e=`<remove></remove>`+e;else{let t=Se(e,/^[\r\n\t ]+/);r=t&&t[0]}Jt===`application/xhtml+xml`&&X===Y&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=y?S(e):e;if(X===Y)try{t=new l().parseFromString(i,Jt)}catch{}if(!t||!t.documentElement){t=Ee.createDocument(X,`template`,null);try{t.documentElement.innerHTML=Vt?b:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),X===Y?ke.call(t,G?`html`:`body`)[0]:G?t.documentElement:a},gn=function(e){let t=re?re(e):e.ownerDocument;return De.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},_n=function(e){return e=Ce(e,je,` `),e=Ce(e,Me,` `),e=Ce(e,ot,` `),e},vn=function(e){e.normalize();let t=re?re(e):e.ownerDocument,n=De.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=_n(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&me(i,e=>{bn(e.content)&&vn(e.content)})},yn=function(e){let t=v?v(e):null;return typeof t!=`string`||Q(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==g(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==_(e)||e.childNodes!==m(e)},bn=function(e){if(!_||typeof e!=`object`||!e)return!1;try{return _(e)===M.documentFragment}catch{return!1}},xn=function(e){if(!_||typeof e!=`object`||!e)return!1;try{return typeof _(e)==`number`}catch{return!1}};function $(e,n,r){e.length!==0&&me(e,e=>{e.call(t,n,r,Xt)})}let Sn=function(e,t){return!!(W&&e.hasChildNodes()&&!xn(e.firstElementChild)&&E(nt,e.textContent)&&E(nt,e.innerHTML)||W&&e.namespaceURI===Y&&st[t]&&(xn(e.firstElementChild)||typeof e.textContent==`string`&&E(ct[t],e.textContent))||e.nodeType===M.processingInstruction||W&&e.nodeType===M.comment&&E(rt,e.data))},Cn=function(e,t){return e instanceof RegExp?E(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},wn=function(e,t,n){if(!z[t]&&An(t)&&Cn(R.tagNameCheck,t))return!1;if(At&&!Nt[t]){let t=h(e),r=m(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,p(e))}}}return sn(e),!0},Tn=function(e,t,n,r){return e.length===0?t:t===n||t===r?A(t):t},En=function(e,t){return e===t||h(e)!==null?!1:(jt&&fn(e),!0)},Dn=function(e,n){if($(O.beforeSanitizeElements,e,null),En(e,n))return!0;if(yn(e))return sn(e),!0;let r=Q(ae(e));if(F=Tn(O.uponSanitizeElement,F,yt,K),$(O.uponSanitizeElement,e,{tagName:r,allowedTags:F}),En(e,n))return!0;if(Sn(e,r))return sn(e),!0;if(z[r]||!(B.tagCheck instanceof Function&&B.tagCheck(r))&&!F[r]){let t=wn(e,r,n);return t===!1&&($(O.afterSanitizeElements,e,null),En(e,n))?!0:t}if(ie(e)===M.element&&!on(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&E(it,e.innerHTML))return sn(e),!0;if(U&&e.nodeType===M.text){let n=_n(e.textContent);e.textContent!==n&&(_e(t.removed,{element:e.cloneNode()}),e.textContent=n)}return $(O.afterSanitizeElements,e,null),En(e,n)},On=function(e,t,r){if(bt[t]||pn(t,e)||Dt&&(t===`id`||t===`name`)&&(r in n||r in Zt))return!1;let i=I[t]||B.attributeCheck instanceof Function&&B.attributeCheck(t,e);return H&&E(mt,t)||V&&E(ht,t)?!0:i?Lt[t]||E(P,Ce(r,_t,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&we(r,`data:`)===0&&Ft[e]||xt&&!E(gt,Ce(r,_t,``))?!0:!r:An(e)&&Cn(R.tagNameCheck,e)&&Cn(R.attributeNameCheck,t,e)||t===`is`&&R.allowCustomizedBuiltInElements&&Cn(R.tagNameCheck,r)},kn=k({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),An=function(e){return!kn[be(e)]&&E(vt,e)},jn=function(e,t,n,r){if(y&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return S(r);case`TrustedScriptURL`:return de(r)}return r},Mn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!yn(e)||(sn(e),!1)}catch{return un(t,e),!1}},Nn=function(e,n){if($(O.beforeSanitizeAttributes,e,null),En(e,n))return;let r=e.attributes;if(!r||yn(e))return;I=Tn(O.uponSanitizeAttribute,I,L,q);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0},a=r.length,o=Q(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=Q(s),d=l,f=s===`value`?d:Te(d),ee=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,$(O.uponSanitizeAttribute,e,i),f=i.attrValue,Ot&&(u===`id`||u===`name`)&&we(f,kt)!==0&&(un(s,e,n),f=kt+f,ee=!0),W&&E(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){un(s,e,n);continue}if(u===`attributename`&&Se(f,`href`)){un(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){un(s,e,n);continue}if(!St&&E(at,f)){un(s,e,n);continue}if(U&&(f=_n(f)),!On(o,u,f)){un(s,e,n);continue}f=jn(o,u,c,f),f!==d&&Mn(e,s,c,f)&&ee&&ge(t.removed)}}$(O.afterSanitizeAttributes,e,null),En(e,n)},Pn=function(e){let t=null,n=gn(e);for($(O.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if($(O.uponSanitizeShadowNode,t,null),Dn(t,e),Nn(t,e),bn(t.content)&&Pn(t.content),ie(t)===M.element){let e=ne(t);bn(e)&&(Fn(e),Pn(e))}$(O.afterSanitizeShadowDOM,e,null)},Fn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Pn(e.shadow);continue}let n=e.node,r=ie(n)===M.element,i=m(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=v?v(n):null;if(typeof e==`string`&&Q(e)===`template`){let e=n.content;bn(e)&&t.push({node:e,shadow:null})}}if(r){let e=ne(n);bn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Vt=!e,Vt&&(e=`<!-->`),typeof e!=`string`&&!xn(e)&&(e=Ne(e),typeof e!=`string`))throw D(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ct?(F=K,I=q):$t(n),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(F=A(F)),O.uponSanitizeAttribute.length>0&&(I=A(I)),t.removed=[];let c=jt&&typeof e!=`string`&&xn(e);if(c){mn(e);let t=ae(e);if(typeof t==`string`){let n=Q(t);if(!F[n]||z[n])throw ln(e),D(`root node is forbidden and cannot be sanitized in-place`)}if(yn(e))throw ln(e),D(`root node is clobbered and cannot be sanitized in-place`);try{Fn(e)}catch(t){throw ln(e),t}}else if(xn(e))i=hn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===M.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Fn(i);else{if(!J&&!U&&!G&&e.indexOf(`<`)===-1)return y&&Et?S(e):e;if(i=hn(e),!i)return J?null:Et?b:``}i&&wt&&sn(i.firstChild);let l=c?e:i;try{let e=gn(l);for(;o=e.nextNode();)Dn(o,l),Nn(o,l),bn(o.content)&&Pn(o.content)}catch(n){throw c&&(ln(e),me(t.removed,e=>{e.element&&fn(e.element)})),n}if(c){let n=!1;if(me(t.removed,t=>{t.element&&(t.element===e&&(n=!0),fn(t.element))}),n)throw D(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return U&&vn(e),e}if(J){if(U&&vn(i),Tt)for(s=Oe.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(I.shadowroot||I.shadowrootmode)&&(s=Ae.call(r,s,!0)),s}let u=G?i.outerHTML:i.innerHTML;return G&&F[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&E(et,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
3
|
-
`+u),
|
|
1
|
+
import{LitElement as e,css as t,html as n,nothing as r,svg as i}from"lit";import{customElement as a,property as o,state as s}from"lit/decorators.js";import{Router as c}from"@vaadin/router";import{unsafeHTML as l}from"lit/directives/unsafe-html.js";import"@digital-realty/ix-search-bar/ix-search-bar.js";import{styleMap as u}from"lit/directives/style-map.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-progress/ix-progress.js";import{repeat as d}from"lit/directives/repeat.js";import"@digital-realty/ix-button/ix-button.js";import{live as f}from"lit/directives/live.js";import{ifDefined as p}from"lit/directives/if-defined.js";var ee=null;function te(e,t,n){ee=new c(e,{baseUrl:`/`}),ee.setRoutes(n)}function ne(){return ee}function re(){ee?.unsubscribe(),ee?.setRoutes([],!0),ee=null}var m=window.registeredApps?.[`ui-knowledgebase`]?.path??`/knowledge-base`,ie=e=>e===m||e.startsWith(`${m}/`);function h(e,t,n){if(e!=null){if(Array.isArray(e)){e.forEach((e,r)=>h(e,`${t}[${r}]`,n));return}if(typeof e==`object`){for(let[r,i]of Object.entries(e))i!==void 0&&h(i,`${t}[${r}]`,n);return}n.push(`${encodeURIComponent(t)}=${encodeURIComponent(String(e))}`)}}function ae(e){let t=[];for(let[n,r]of Object.entries(e))r!==void 0&&h(r,n,t);return t.length?`?${t.join(`&`)}`:``}function g(e,t){if(!e)return``;try{let n=new URL(t);if(![`http:`,`https:`].includes(n.protocol)||n.username||n.password)return``;n.pathname=`${n.pathname.replace(/\/$/,``)}/`,n.search=``,n.hash=``;let r=e.startsWith(`/`)&&!e.startsWith(`//`)?e.slice(1):e,i=new URL(r,n);return![`http:`,`https:`].includes(i.protocol)||i.username||i.password||([`localhost`,`127.0.0.1`,`[::1]`].includes(n.hostname)||n.hostname.endsWith(`.localhost`))&&i.origin!==n.origin?``:i.href}catch{return``}}function oe(e,t){this.v=e,this.k=t}function se(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e){if(Array.isArray(e))return e}function ce(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function le(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(e,t){return _(e)||ce(e,t)||de(e,t)||le()}function de(e,t){if(e){if(typeof e==`string`)return se(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}function fe(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof oe;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}fe.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},fe.prototype.next=function(e){return this._invoke(`next`,e)},fe.prototype.throw=function(e){return this._invoke(`throw`,e)},fe.prototype.return=function(e){return this._invoke(`return`,e)};var pe=Object.entries,me=Object.setPrototypeOf,he=Object.isFrozen,ge=Object.getPrototypeOf,_e=Object.getOwnPropertyDescriptor,v=Object.freeze,y=Object.seal,ve=Object.create,ye=typeof Reflect<`u`&&Reflect,be=ye.apply,xe=ye.construct;v||=function(e){return e},y||=function(e){return e},be||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},xe||=function(e){return new e(...[...arguments].slice(1))};var Se=w(Array.prototype.forEach);Array.prototype.indexOf;var Ce=w(Array.prototype.lastIndexOf),we=w(Array.prototype.pop),Te=w(Array.prototype.push);Array.prototype.slice;var Ee=w(Array.prototype.splice),De=Array.isArray,Oe=w(String.prototype.toLowerCase),ke=w(String.prototype.toString),Ae=w(String.prototype.match),je=w(String.prototype.replace),Me=w(String.prototype.indexOf),Ne=w(String.prototype.trim),Pe=w(Number.prototype.toString),Fe=w(Boolean.prototype.toString),b=typeof BigInt>`u`?null:w(BigInt.prototype.toString),Ie=typeof Symbol>`u`?null:w(Symbol.prototype.toString),x=w(Object.prototype.hasOwnProperty),Le=w(Object.prototype.toString),S=w(RegExp.prototype.test),C=Re(TypeError);function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return be(e,t,n)}}function Re(e){return function(){return xe(e,[...arguments])}}function T(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oe;if(me&&me(e,null),!De(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(he(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ze(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function E(e){let t=ve(null);for(let r of pe(e)){var n=ue(r,2);let i=n[0],a=n[1];x(e,i)&&(t[i]=De(a)?ze(a):a&&typeof a==`object`&&a.constructor===Object?E(a):a)}return t}function Be(e){switch(typeof e){case`string`:return e;case`number`:return Pe(e);case`boolean`:return Fe(e);case`bigint`:return b?b(e):`0`;case`symbol`:return Ie?Ie(e):`Symbol()`;case`undefined`:return Le(e);case`function`:case`object`:{if(e===null)return Le(e);let t=e,n=D(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Le(e)}return Le(e)}default:return Le(e)}}function D(e,t){for(;e!==null;){let n=_e(e,t);if(n){if(n.get)return w(n.get);if(typeof n.value==`function`)return w(n.value)}e=ge(e)}function n(){return null}return n}function Ve(e){try{return S(e,``),!0}catch{return!1}}var He=v(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ue=v(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),We=v([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Ge=v([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Ke=v(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),qe=v([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Je=v([`#text`]),Ye=v(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Xe=v(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Ze=v(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Qe=v([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),$e=y(/{{[\w\W]*|^[\w\W]*}}/g),et=y(/<%[\w\W]*|^[\w\W]*%>/g),tt=y(/\${[\w\W]*/g),nt=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),rt=y(/^aria-[\-\w]+$/),it=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),at=y(/^(?:\w+script|data):/i),ot=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),st=y(/^html$/i),ct=y(/^[a-z][.\w]*(-[.\w]+)+$/i),lt=y(/<[/\w!]/g),ut=y(/<[/\w]/g),dt=y(/<\/no(script|embed|frames)/i),ft=y(/\/>/i),O={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},pt=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],mt=v(T({},pt)),ht=function(){let e={};return Se(pt,t=>{e[t]=y(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),v(e)}(),gt=function(){return typeof window>`u`?null:window},_t=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},vt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},k=function(e,t,n,r){return x(e,t)&&De(e[t])?T(r.base?E(r.base):{},e[t],r.transform):n},yt=function(e,t,n){let r=x(e,t)?e[t]:void 0;return r&&typeof r==`object`?E(r):n()};function bt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt(),t=e=>bt(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==O.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=D(d,`cloneNode`),p=D(d,`remove`),ee=D(d,`removeAttributeNode`),te=D(d,`nextSibling`),ne=D(d,`childNodes`),re=D(d,`parentNode`),m=D(d,`shadowRoot`),ie=D(d,`attributes`),h=o&&o.prototype?D(o.prototype,`nodeType`):null,ae=o&&o.prototype?D(o.prototype,`nodeName`):null,g=o&&o.prototype?D(o.prototype,`ownerDocument`):null,oe=function(e){return h?h(e):e.nodeType},se=function(e){return ae?ae(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let _,ce=``,le,ue=!1,de=0,fe=function(){if(de>0)throw C(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},me=function(e){fe(),de++;try{return _.createHTML(e)}finally{de--}},he=function(e){fe(),de++;try{return _.createScriptURL(e)}finally{de--}},ge=function(){return ue||=(le=_t(u,i),!0),le},_e=n,ye=_e.implementation,be=_e.createNodeIterator,xe=_e.createDocumentFragment,Pe=_e.getElementsByTagName,Fe=r.importNode,b=vt();t.isSupported=typeof pe==`function`&&typeof re==`function`&&ye&&ye.createHTMLDocument!==void 0;let Ie=$e,Le=et,w=tt,Re=nt,ze=rt,pt=at,xt=ot,St=ct,Ct=it,A=null,wt=T({},[...He,...Ue,...We,...Ke,...Je]),j=null,M=T({},[...Ye,...Xe,...Ze,...Qe]),N=Object.seal(ve(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,Et=null,P=Object.seal(ve(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Dt=!0,F=!0,Ot=!1,kt=!0,I=!1,L=!0,At=!1,jt=!1,Mt=null,Nt=null,R=!1,Pt=!1,z=!1,B=!1,Ft=!0,It=!1,Lt=`user-content-`,Rt=!0,zt=!1,Bt={},Vt=null,Ht=T({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ut=null,Wt=T({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Gt=null,Kt=T({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),qt=`http://www.w3.org/1998/Math/MathML`,Jt=`http://www.w3.org/2000/svg`,V=`http://www.w3.org/1999/xhtml`,Yt=V,Xt=!1,Zt=null,Qt=T({},[qt,Jt,V],ke),$t=v([`mi`,`mo`,`mn`,`ms`,`mtext`]),en=T({},$t),tn=v([`annotation-xml`]),nn=T({},tn),rn=T({},[`title`,`style`,`font`,`a`,`script`]),an=null,on=[`application/xhtml+xml`,`text/html`],H=null,sn=null,U=n.createElement(`form`),cn=function(e){return e instanceof RegExp||e instanceof Function},ln=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(sn&&sn===e)return;(!e||typeof e!=`object`)&&(e={}),e=E(e),an=on.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,H=an===`application/xhtml+xml`?ke:Oe,A=k(e,`ALLOWED_TAGS`,wt,{transform:H}),j=k(e,`ALLOWED_ATTR`,M,{transform:H}),Zt=k(e,`ALLOWED_NAMESPACES`,Qt,{transform:ke}),Gt=k(e,`ADD_URI_SAFE_ATTR`,Kt,{transform:H,base:Kt}),Ut=k(e,`ADD_DATA_URI_TAGS`,Wt,{transform:H,base:Wt}),Vt=k(e,`FORBID_CONTENTS`,Ht,{transform:H}),Tt=k(e,`FORBID_TAGS`,E({}),{transform:H}),Et=k(e,`FORBID_ATTR`,E({}),{transform:H}),Bt=x(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?E(e.USE_PROFILES):e.USE_PROFILES:!1,Dt=e.ALLOW_ARIA_ATTR!==!1,F=e.ALLOW_DATA_ATTR!==!1,Ot=e.ALLOW_UNKNOWN_PROTOCOLS||!1,kt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,I=e.SAFE_FOR_TEMPLATES||!1,L=e.SAFE_FOR_XML!==!1,At=e.WHOLE_DOCUMENT||!1,Pt=e.RETURN_DOM||!1,z=e.RETURN_DOM_FRAGMENT||!1,B=e.RETURN_TRUSTED_TYPE||!1,R=e.FORCE_BODY||!1,Ft=e.SANITIZE_DOM!==!1,It=e.SANITIZE_NAMED_PROPS||!1,Rt=e.KEEP_CONTENT!==!1,zt=e.IN_PLACE||!1,Ct=Ve(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:it,Yt=typeof e.NAMESPACE==`string`?e.NAMESPACE:V,en=yt(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>T({},$t)),nn=yt(e,`HTML_INTEGRATION_POINTS`,()=>T({},tn));let t=yt(e,`CUSTOM_ELEMENT_HANDLING`,()=>ve(null));if(N=ve(null),x(t,`tagNameCheck`)&&cn(t.tagNameCheck)&&(N.tagNameCheck=t.tagNameCheck),x(t,`attributeNameCheck`)&&cn(t.attributeNameCheck)&&(N.attributeNameCheck=t.attributeNameCheck),x(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(N.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),y(N),I&&(F=!1),z&&(Pt=!0),Bt&&(A=T({},Je),j=ve(null),Bt.html===!0&&(T(A,He),T(j,Ye)),Bt.svg===!0&&(T(A,Ue),T(j,Xe),T(j,Qe)),Bt.svgFilters===!0&&(T(A,We),T(j,Xe),T(j,Qe)),Bt.mathMl===!0&&(T(A,Ke),T(j,Ze),T(j,Qe))),P.tagCheck=null,P.attributeCheck=null,x(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?P.tagCheck=e.ADD_TAGS:De(e.ADD_TAGS)&&(A===wt&&(A=E(A)),T(A,e.ADD_TAGS,H))),x(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?P.attributeCheck=e.ADD_ATTR:De(e.ADD_ATTR)&&(j===M&&(j=E(j)),T(j,e.ADD_ATTR,H))),x(e,`ADD_FORBID_CONTENTS`)&&De(e.ADD_FORBID_CONTENTS)&&(Vt===Ht&&(Vt=E(Vt)),T(Vt,e.ADD_FORBID_CONTENTS,H)),Rt&&(A[`#text`]=!0),At&&T(A,[`html`,`head`,`body`]),A.table&&(T(A,[`tbody`]),delete Tt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw C(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw C(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=_;_=e.TRUSTED_TYPES_POLICY;try{ce=me(``)}catch(e){throw _=t,e}}else e.TRUSTED_TYPES_POLICY===null?(_=void 0,ce=``):(_===void 0&&(_=ge()),_&&typeof ce==`string`&&(ce=me(``)));v&&v(e),sn=e},un=T({},[...Ue,...We,...Ge]),dn=T({},[...Ke,...qe]),fn=function(e,t,n){return t.namespaceURI===V?e===`svg`:t.namespaceURI===qt?e===`svg`&&(n===`annotation-xml`||en[n]):!!un[e]},pn=function(e,t,n){return t.namespaceURI===V?e===`math`:t.namespaceURI===Jt?e===`math`&&nn[n]:!!dn[e]},mn=function(e,t,n){return t.namespaceURI===Jt&&!nn[n]||t.namespaceURI===qt&&!en[n]?!1:!dn[e]&&(rn[e]||!un[e])},hn=function(e){let t=re(e);(!t||!t.tagName)&&(t={namespaceURI:Yt,tagName:`template`});let n=Oe(e.tagName),r=Oe(t.tagName);return Zt[e.namespaceURI]?e.namespaceURI===Jt?fn(n,t,r):e.namespaceURI===qt?pn(n,t,r):e.namespaceURI===V?mn(n,t,r):!!(an===`application/xhtml+xml`&&Zt[e.namespaceURI]):!1},W=function(e){Te(t.removed,{element:e});try{re(e).removeChild(e)}catch{if(p(e),!re(e))throw C(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},gn=function(e,t,n){try{ee(e,t)}catch{try{e.removeAttribute(n)}catch{}}},G=function(e){q(e);let t=ne(e);if(t){let e=[];Se(t,t=>{Te(e,t)}),Se(e,e=>{try{p(e)}catch{}})}let n=ie(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&gn(e,r,i)}},K=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Te(t.removed,{attribute:r||null,from:n});try{r?ee(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Pt||z)try{W(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},_n=function(e){let t=ie(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||j[H(i)]||gn(e,r,i)}},q=function(e){let t=[e];for(;t.length>0;){let e=t.pop();oe(e)===O.element&&_n(e);let n=ne(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},vn=function(e,t){return L?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},yn=function(e){if(!L)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=oe(e);if(n===O.processingInstruction||n===O.comment&&S(ut,e.data)){try{p(e)}catch{}continue}if(n===O.element){let t=e,n=H(se(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&vn(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=ne(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},bn=function(e){let t=null,r=null;if(R)e=`<remove></remove>`+e;else{let t=Ae(e,/^[\r\n\t ]+/);r=t&&t[0]}an===`application/xhtml+xml`&&Yt===V&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=_?me(e):e;if(Yt===V)try{t=new l().parseFromString(i,an)}catch{}if(!t||!t.documentElement){t=ye.createDocument(Yt,`template`,null);try{t.documentElement.innerHTML=Xt?ce:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Yt===V?Pe.call(t,At?`html`:`body`)[0]:At?t.documentElement:a},xn=function(e){let t=g?g(e):e.ownerDocument;return be.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Sn=function(e){return e=je(e,Ie,` `),e=je(e,Le,` `),e=je(e,w,` `),e},Cn=function(e){e.normalize();let t=g?g(e):e.ownerDocument,n=be.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Sn(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&Se(i,e=>{J(e.content)&&Cn(e.content)})},wn=function(e){let t=ae?ae(e):null;return typeof t!=`string`||H(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==ie(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==h(e)||e.childNodes!==ne(e)},J=function(e){if(!h||typeof e!=`object`||!e)return!1;try{return h(e)===O.documentFragment}catch{return!1}},Tn=function(e){if(!h||typeof e!=`object`||!e)return!1;try{return typeof h(e)==`number`}catch{return!1}};function Y(e,n,r){e.length!==0&&Se(e,e=>{e.call(t,n,r,sn)})}let En=function(e,t){return!!(L&&e.hasChildNodes()&&!Tn(e.firstElementChild)&&S(lt,e.textContent)&&S(lt,e.innerHTML)||L&&e.namespaceURI===V&&mt[t]&&(Tn(e.firstElementChild)||typeof e.textContent==`string`&&S(ht[t],e.textContent))||e.nodeType===O.processingInstruction||L&&e.nodeType===O.comment&&S(ut,e.data))},X=function(e,t){return e instanceof RegExp?S(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Z=function(e,t,n){if(!Tt[t]&&An(t)&&X(N.tagNameCheck,t))return!1;if(Rt&&!Vt[t]){let t=re(e),r=ne(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,te(e))}}}return W(e),!0},Q=function(e,t,n,r){return e.length===0?t:t===n||t===r?E(t):t},$=function(e,t){return e===t||re(e)!==null?!1:(zt&&q(e),!0)},Dn=function(e,n){if(Y(b.beforeSanitizeElements,e,null),$(e,n))return!0;if(wn(e))return W(e),!0;let r=H(se(e));if(A=Q(b.uponSanitizeElement,A,wt,Mt),Y(b.uponSanitizeElement,e,{tagName:r,allowedTags:A}),$(e,n))return!0;if(En(e,r))return W(e),!0;if(Tt[r]||!(P.tagCheck instanceof Function&&P.tagCheck(r))&&!A[r]){let t=Z(e,r,n);return t===!1&&(Y(b.afterSanitizeElements,e,null),$(e,n))?!0:t}if(oe(e)===O.element&&!hn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&S(dt,e.innerHTML))return W(e),!0;if(I&&e.nodeType===O.text){let n=Sn(e.textContent);e.textContent!==n&&(Te(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Y(b.afterSanitizeElements,e,null),$(e,n)},On=function(e,t,r){if(Et[t]||vn(t,e)||Ft&&(t===`id`||t===`name`)&&(r in n||r in U))return!1;let i=j[t]||P.attributeCheck instanceof Function&&P.attributeCheck(t,e);return F&&S(Re,t)||Dt&&S(ze,t)?!0:i?Gt[t]||S(Ct,je(r,xt,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Me(r,`data:`)===0&&Ut[e]||Ot&&!S(pt,je(r,xt,``))?!0:!r:An(e)&&X(N.tagNameCheck,e)&&X(N.attributeNameCheck,t,e)||t===`is`&&N.allowCustomizedBuiltInElements&&X(N.tagNameCheck,r)},kn=T({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),An=function(e){return!kn[Oe(e)]&&S(St,e)},jn=function(e,t,n,r){if(_&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return me(r);case`TrustedScriptURL`:return he(r)}return r},Mn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!wn(e)||(W(e),!1)}catch{return K(t,e),!1}},Nn=function(e,n){if(Y(b.beforeSanitizeAttributes,e,null),$(e,n))return;let r=e.attributes;if(!r||wn(e))return;j=Q(b.uponSanitizeAttribute,j,M,Nt);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},a=r.length,o=H(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=H(s),d=l,f=s===`value`?d:Ne(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Y(b.uponSanitizeAttribute,e,i),f=i.attrValue,It&&(u===`id`||u===`name`)&&Me(f,Lt)!==0&&(K(s,e,n),f=Lt+f,p=!0),L&&S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){K(s,e,n);continue}if(u===`attributename`&&Ae(f,`href`)){K(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){K(s,e,n);continue}if(!kt&&S(ft,f)){K(s,e,n);continue}if(I&&(f=Sn(f)),!On(o,u,f)){K(s,e,n);continue}f=jn(o,u,c,f),f!==d&&Mn(e,s,c,f)&&p&&we(t.removed)}}Y(b.afterSanitizeAttributes,e,null),$(e,n)},Pn=function(e){let t=null,n=xn(e);for(Y(b.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Y(b.uponSanitizeShadowNode,t,null),Dn(t,e),Nn(t,e),J(t.content)&&Pn(t.content),oe(t)===O.element){let e=m(t);J(e)&&(Fn(e),Pn(e))}Y(b.afterSanitizeShadowDOM,e,null)},Fn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Pn(e.shadow);continue}let n=e.node,r=oe(n)===O.element,i=ne(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ae?ae(n):null;if(typeof e==`string`&&H(e)===`template`){let e=n.content;J(e)&&t.push({node:e,shadow:null})}}if(r){let e=m(n);J(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Xt=!e,Xt&&(e=`<!-->`),typeof e!=`string`&&!Tn(e)&&(e=Be(e),typeof e!=`string`))throw C(`dirty is not a string, aborting`);if(!t.isSupported)return e;jt?(A=Mt,j=Nt):ln(n),(b.uponSanitizeElement.length>0||b.uponSanitizeAttribute.length>0)&&(A=E(A)),b.uponSanitizeAttribute.length>0&&(j=E(j)),t.removed=[];let c=zt&&typeof e!=`string`&&Tn(e);if(c){yn(e);let t=se(e);if(typeof t==`string`){let n=H(t);if(!A[n]||Tt[n])throw G(e),C(`root node is forbidden and cannot be sanitized in-place`)}if(wn(e))throw G(e),C(`root node is clobbered and cannot be sanitized in-place`);try{Fn(e)}catch(t){throw G(e),t}}else if(Tn(e))i=bn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===O.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Fn(i);else{if(!Pt&&!I&&!At&&e.indexOf(`<`)===-1)return _&&B?me(e):e;if(i=bn(e),!i)return Pt?null:B?ce:``}i&&R&&W(i.firstChild);let l=c?e:i;try{let e=xn(l);for(;o=e.nextNode();)Dn(o,l),Nn(o,l),J(o.content)&&Pn(o.content)}catch(n){throw c&&(G(e),Se(t.removed,e=>{e.element&&q(e.element)})),n}if(c){let n=!1;if(Se(t.removed,t=>{t.element&&(t.element===e&&(n=!0),q(t.element))}),n)throw C(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return I&&Cn(e),e}if(Pt){if(I&&Cn(i),z)for(s=xe.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(j.shadowroot||j.shadowrootmode)&&(s=Fe.call(r,s,!0)),s}let u=At?i.outerHTML:i.innerHTML;return At&&A[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&S(st,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
3
|
+
`+u),I&&(u=Sn(u)),_&&B?me(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(e),jt=!0,Mt=A,Nt=j},t.clearConfig=function(){sn=null,jt=!1,Mt=null,Nt=null,_=le,ce=``},t.isValidAttribute=function(e,t,n){sn||ln({});let r=H(e),i=H(t);return On(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&x(b,e)&&Te(b[e],t)},t.removeHook=function(e,t){if(x(b,e)){if(t!==void 0){let n=Ce(b[e],t);return n===-1?void 0:Ee(b[e],n,1)[0]}return we(b[e])}},t.removeHooks=function(e){x(b,e)&&(b[e]=[])},t.removeAllHooks=function(){b=vt()},t}var xt=bt(),St=(e,t)=>{t.attrName===`crossorigin`&&(t.keepAttr=[`audio`,`video`].includes(e.localName)&&t.attrValue.toLowerCase()===`anonymous`,t.keepAttr&&(t.attrValue=`anonymous`))};function Ct(e){let t={ALLOWED_TAGS:`a.abbr.article.audio.b.blockquote.br.caption.cite.code.dd.del.details.div.dl.dt.em.figcaption.figure.h1.h2.h3.h4.h5.h6.hr.i.img.ins.kbd.li.mark.ol.p.picture.pre.q.s.small.source.span.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.time.tr.track.u.ul.video.wbr`.split(`.`),ALLOWED_ATTR:`alt.class.colspan.controls.crossorigin.datetime.dir.download.height.href.id.kind.label.lang.loading.poster.preload.rel.rowspan.scope.src.srclang.start.target.title.type.width`.split(`.`),ALLOW_DATA_ATTR:!1};xt.addHook(`uponSanitizeAttribute`,St);try{return xt.sanitize(e,t)}finally{xt.removeHook(`uponSanitizeAttribute`,St)}}function A(e,t){let n=new DOMParser().parseFromString(e,`text/html`);return n.querySelectorAll(`a[href]`).forEach(e=>{let n=e.getAttribute(`href`)??``,r=/^(?:\/)?(?:uploads|media)\//.test(n)?g(n,t):n;r!==n&&e.setAttribute(`href`,r),wt(r)&&(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`))}),n.querySelectorAll(`img[src], video[src], audio[src], source[src], track[src]`).forEach(e=>{let n=g(e.getAttribute(`src`)??``,t);n?e.setAttribute(`src`,n):e.removeAttribute(`src`)}),n.querySelectorAll(`video[poster]`).forEach(e=>{let n=g(e.getAttribute(`poster`)??``,t);n?e.setAttribute(`poster`,n):e.removeAttribute(`poster`)}),n.querySelectorAll(`[srcset]`).forEach(e=>e.removeAttribute(`srcset`)),n.querySelectorAll(`[style]`).forEach(e=>{/url\s*\(|@import|\\/i.test(e.getAttribute(`style`)??``)&&e.removeAttribute(`style`)}),n.body.innerHTML}function wt(e){if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).origin!==window.location.origin}catch{return!1}}function j(e,t){let r=A(Ct(e??``),t);return n`${l(r)}`}function M(e,t){if(!e||!e.url)return null;let n=g(e.url,t);if(!n)return null;let r;if(e.formats){r={};for(let[n,i]of Object.entries(e.formats))i?.url&&(r[n]={url:g(i.url,t),width:i.width,height:i.height})}return{url:n,alternativeText:e.alternativeText??null,mime:e.mime,name:e.name,width:e.width,height:e.height,formats:r}}var N=e=>e===`text`||e===`accordion`||e===`video_card`||e===`document_card`?e:void 0;function Tt(e){return{documentId:e.documentId??``,code:e.code??``,name:e.name??``,icon:e.icon}}function Et(e,t){return{documentId:e.documentId??``,uid:e.uid??``,title:e.title??``,subtitle:e.subtitle,icon:e.icon,image:M(e.image,t),behavior:N(e.behavior),order:e.order,showSortBy:e.showSortBy??!1,showFilterByTopic:e.showFilterByTopic??!1}}function P(e,t){return{documentId:e.documentId??``,uid:e.uid??``,title:e.title??``,abstract:e.abstract,body:j(e.text,t),behavior:N(e.behavior)??N(e.category?.behavior),featured:e.featured??!1,duration:e.duration,dateAdded:e.dateAdded,publishedAt:e.publishedAt??null,topics:(e.topics??[]).map(Tt),category:e.category?Et(e.category,t):null,thumbnail:M(e.thumbnail,t),video:M(e.video,t),captions:M(e.captions,t),documents:(e.documents??[]).map(e=>M(e,t)).filter(e=>e!==null)}}function Dt(e,t){return e?{heading:e.heading??``,description:e.description??``,backgroundImage:M(e.backgroundImage,t)}:null}var F=class extends Error{constructor(e,t){super(e,t?.cause===void 0?void 0:{cause:t.cause}),this.name=`KbApiError`,this.status=t?.status}};function Ot(e){return!e.uid||!e.title?null:{uid:e.uid,title:e.title,categoryUid:e.category?.uid??``,categoryIcon:e.category?.icon}}var kt=`whats-new`,I=100,L={thumbnail:!0,video:!0,documents:!0,topics:!0,captions:!0,category:{populate:{image:!0}}};function At(e){let t=e.apiBaseUrl.replace(/\/+$/,``),n=e.mediaBaseUrl,r=e.previewDrafts?`draft`:`published`,i=e.locale,a=e.fetch??globalThis.fetch.bind(globalThis),o=e.pageSize??I;if(!Number.isInteger(o)||o<1||o>I)throw new F(`KB page size must be an integer from 1 to 100`);async function s(e,n){let o=ae({...n,status:r,locale:i}),s=`${t}/api/${e}${o}`,c;try{c=await a(s,{credentials:`omit`,redirect:`error`,signal:AbortSignal.timeout(15e3)})}catch(t){throw new F(`Network error fetching ${e}`,{cause:t})}if(!c.ok)throw new F(`Strapi responded ${c.status} for ${e}`,{status:c.status});let l;try{l=await c.json()}catch(t){throw new F(`Invalid JSON from ${e}`,{cause:t})}if(!l||typeof l!=`object`||!Object.hasOwn(l,`data`))throw new F(`Invalid Strapi response from ${e}`);return l}async function c(e,t){return(await s(e,t)).data}async function l(e,t,n=!0){let r=[];for(let i=1;i<=1e4;i++){let a=typeof t.pagination==`object`?t.pagination:{},o=await s(e,{...t,pagination:{...a,page:i}});if(!Array.isArray(o.data))throw new F(`Invalid Strapi collection from ${e}`);r.push(...o.data);let c=o.meta?.pagination;if(!c)return r;if(!Number.isInteger(c.page)||c.page!==i||!Number.isInteger(c.pageSize)||c.pageSize<1||!Number.isInteger(c.pageCount)||c.pageCount<0||!Number.isInteger(c.total)||c.total<0||c.pageCount>i&&o.data.length===0)throw new F(`Invalid Strapi pagination from ${e}`);if(!n||i>=c.pageCount)return r}throw new F(`Strapi pagination limit exceeded for ${e}`)}async function u(){return(await l(`categories`,{populate:{image:!0},sort:[`order:asc`,`id:asc`],pagination:{pageSize:o}})).map(e=>Et(e,n))}return{getCategories:u,async getLanding(){let[e,t,r,i,a]=await Promise.all([c(`index-page`,{populate:{backgroundImage:!0}}),u(),l(`topics`,{sort:[`order:asc`,`id:asc`],pagination:{pageSize:o}}),l(`posts`,{filters:{featured:{$eq:!0}},populate:L,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}}),l(`posts`,{filters:{category:{uid:{$eq:kt}}},populate:L,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{indexPage:Dt(e,n),categories:t,topics:r.map(e=>Tt(e)),featured:i.map(e=>P(e,n)),whatsNew:a.map(e=>P(e,n))}},async getCategory(e){let[t,r]=await Promise.all([l(`categories`,{filters:{uid:{$eq:e}},populate:{image:!0},pagination:{pageSize:1}},!1),l(`posts`,{filters:{category:{uid:{$eq:e}}},populate:L,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{category:t[0]?Et(t[0],n):null,posts:r.map(e=>P(e,n))}},async getTopic(e){let[t,r]=await Promise.all([l(`topics`,{filters:{code:{$eq:e}},pagination:{pageSize:1}},!1),l(`posts`,{filters:{topics:{code:{$eq:e}}},populate:L,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{topic:t[0]?Tt(t[0]):null,posts:r.map(e=>P(e,n))}},async getPost(e){let t=await l(`posts`,{filters:{uid:{$eq:e}},populate:L,pagination:{pageSize:1}},!1);return t[0]?P(t[0],n):null},async getPostLinks(e){let t={};return e?.categoryUid&&(t.category={uid:{$eq:e.categoryUid}}),e?.topicCode&&(t.topics={code:{$eq:e.topicCode}}),(await l(`posts`,{fields:[`uid`,`title`],populate:{category:{fields:[`uid`,`icon`]}},filters:Object.keys(t).length?t:void 0,sort:[`title:asc`,`id:asc`],pagination:{pageSize:o}})).map(Ot).filter(e=>e!==null)}}}function jt(e){let t=new Map;function n(e,n){let r=t.get(e);if(r)return r;let i=n().catch(n=>{throw t.delete(e),n});return t.set(e,i),i}return{getLanding:()=>n(`landing`,()=>e.getLanding()),getCategories:()=>n(`categories`,()=>e.getCategories()),getCategory:t=>n(`category:${t}`,()=>e.getCategory(t)),getTopic:t=>n(`topic:${t}`,()=>e.getTopic(t)),getPost:t=>n(`post:${t}`,()=>e.getPost(t)),getPostLinks:t=>n(`postlinks:${t?.categoryUid??``}:${t?.topicCode??``}`,()=>e.getPostLinks(t)),invalidate:e=>{e?t.delete(e):t.clear()}}}function Mt(){let e=window.gpConfig?.[`ui-knowledgebase`],t=e?.[`KB:strapiBaseUrl`];if(!t)throw Error(`ui-knowledgebase config not loaded: window.gpConfig['ui-knowledgebase']['KB:strapiBaseUrl'] is missing. Ensure config.json is fetched before the KB route renders.`);let n;try{if(n=new URL(t),![`http:`,`https:`].includes(n.protocol)||n.username||n.password||n.search||n.hash||n.pathname!==`/`)throw Error()}catch{throw Error(`KB CMS configuration must be an HTTP(S) origin, without an API path or credentials.`)}return{apiBaseUrl:n.origin,mediaBaseUrl:n.origin,previewDrafts:e?.[`KB:previewDraftContent`]??!1}}var Nt;function R(){return Nt||=jt(At(Mt())),Nt}var Pt=t`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
6
6
|
width: 100%;
|
|
@@ -37,7 +37,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37
37
|
inset 0 0 0 1px rgb(9, 34, 65),
|
|
38
38
|
0 0 0 3px rgba(9, 34, 65, 0.15);
|
|
39
39
|
}
|
|
40
|
-
`;function
|
|
40
|
+
`;function z(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var B=class extends e{constructor(...e){super(...e),this.category=``,this.topic=``,this.items=[],this.onSelected=e=>{let{item:t}=e.detail;this.dispatchEvent(new CustomEvent(`kb-search-select`,{detail:{uid:t.uid},bubbles:!0,composed:!0}))}}static{this.styles=Pt}updated(e){(e.has(`category`)||e.has(`topic`))&&this.load()}async load(){try{let e=await R().getPostLinks({categoryUid:this.category||void 0,topicCode:this.topic||void 0});this.items=e.map(Ft)}catch{this.items=[]}}render(){return n`
|
|
41
41
|
<ix-search-bar
|
|
42
42
|
dropdown
|
|
43
43
|
shape="pill"
|
|
@@ -50,10 +50,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
50
50
|
.searchFields=${[`title`]}
|
|
51
51
|
@onResultSelected=${this.onSelected}
|
|
52
52
|
></ix-search-bar>
|
|
53
|
-
`}};
|
|
53
|
+
`}};z([o({type:String})],B.prototype,`category`,void 0),z([o({type:String})],B.prototype,`topic`,void 0),z([s()],B.prototype,`items`,void 0),B=z([a(`kb-search-bar`)],B);function Ft(e){return{title:e.title,uid:e.uid,icon:e.categoryIcon??``,href:`${m}/details/${e.uid}`}}function It(e){return n`
|
|
54
54
|
<header
|
|
55
55
|
class="relative mb-6 flex min-h-[356px] flex-col justify-end gap-7 overflow-hidden rounded-lg bg-[#092241] px-4 pt-8 pb-6 pt-20
|
|
56
|
-
tablet:min-h-[447px]
|
|
56
|
+
tablet:min-h-[447px]
|
|
57
57
|
laptop:px-[35px] laptop:pb-10 laptop:mb-[48px]
|
|
58
58
|
desktop:min-h-[498px] desktop:px-20 desktop:pt-[147px] desktop:pb-[86px] desktop:mb-[80px] desktop:ml-[-40px]"
|
|
59
59
|
aria-labelledby="kb-landing-heading"
|
|
@@ -68,10 +68,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
68
68
|
<div class="relative flex flex-col gap-4">
|
|
69
69
|
<h1
|
|
70
70
|
id="kb-landing-heading"
|
|
71
|
-
class="font-heading text-2xl leading-8 font-normal text-white
|
|
71
|
+
class="font-heading text-2xl leading-8 font-normal text-white
|
|
72
72
|
tablet:text-5xl tablet:leading-[57px]
|
|
73
73
|
laptop:max-w-[635px]
|
|
74
|
-
|
|
74
|
+
min-[1024px]:max-w-[679px] tracking-normal"
|
|
75
75
|
>
|
|
76
76
|
${e?.heading??`Knowledge Base`}
|
|
77
77
|
</h1>
|
|
@@ -83,17 +83,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
83
83
|
</div>
|
|
84
84
|
<kb-search-bar class="relative max-w-[528px]"></kb-search-bar>
|
|
85
85
|
</header>
|
|
86
|
-
`}function
|
|
86
|
+
`}function Lt(e){let t=e.currentTarget,n=t.querySelector(`.ripple`);if(!n)return;let r=t.getBoundingClientRect(),i=Math.max(r.width,r.height),a=i/2;n.style.width=`${i}px`,n.style.height=`${i}px`,n.style.left=`${e.clientX-r.left-a}px`,n.style.top=`${e.clientY-r.top-a}px`,n.classList.remove(`is-active`),n.offsetWidth,n.classList.add(`is-active`)}function Rt(e){return n`
|
|
87
87
|
<ul
|
|
88
|
-
class="mt-4 flex w-full list-none flex-wrap gap-4 overflow-x-auto p-0
|
|
88
|
+
class="mt-4 flex w-full list-none flex-wrap gap-4 overflow-x-auto p-0 min-[1536px]:gap-6
|
|
89
89
|
max-tablet:flex-nowrap max-tablet:snap-x max-tablet:snap-mandatory max-tablet:[scrollbar-width:none] max-tablet:[&::-webkit-scrollbar]:hidden"
|
|
90
90
|
>
|
|
91
91
|
${e.map(e=>n`
|
|
92
92
|
<li class="relative max-tablet:snap-start">
|
|
93
93
|
<a
|
|
94
|
-
href="${
|
|
95
|
-
class="group desktop:w-[260px] relative flex w-[228px] flex-col overflow-hidden rounded-xl bg-black no-underline shadow focus-visible:outline-2 focus-visible:outline-offset-[-4px] focus-visible:outline-white h-full"
|
|
96
|
-
@mousedown=${
|
|
94
|
+
href="${m}/category/${encodeURIComponent(e.uid)}"
|
|
95
|
+
class="group desktop:w-[260px] relative flex w-[228px] flex-col overflow-hidden rounded-xl bg-black no-underline shadow focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-4px] focus-visible:outline-white h-full"
|
|
96
|
+
@mousedown=${Lt}
|
|
97
97
|
>
|
|
98
98
|
<img class="h-[122px] w-full object-cover" src="${e.image?.url??``}" alt="" />
|
|
99
99
|
<div class="flex flex-col gap-2 bg-black p-4 text-white">
|
|
@@ -115,15 +115,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
115
115
|
</li>
|
|
116
116
|
`)}
|
|
117
117
|
</ul>
|
|
118
|
-
`}function
|
|
118
|
+
`}function zt(e,t=24){return n`
|
|
119
119
|
<h2
|
|
120
120
|
class="font-heading mb-[var(--mb)] text-xl leading-6 font-bold tracking-[0.15px] text-[rgb(9,34,65)] min-[601px]:text-[34px] min-[601px]:leading-10 min-[601px]:tracking-[0.35px]"
|
|
121
121
|
style=${u({"--mb":`${t}px`})}
|
|
122
122
|
>
|
|
123
123
|
${e}
|
|
124
124
|
</h2>
|
|
125
|
-
`}function
|
|
126
|
-
<ul
|
|
125
|
+
`}function Bt(e){let t=e.currentTarget.closest(`li`)?.querySelector(`dialog`);t&&(t.showModal(),t.querySelector(`video`)?.play())}function Vt(e){e.currentTarget.closest(`dialog`)?.close()}function Ht(e){let t=e.currentTarget;e.target===t&&t.close()}function Ut(e){e.currentTarget.querySelector(`video`)?.pause()}function Wt(e){return e.length===0?n`<p class="text-gray-500">Nothing here yet.</p>`:n`
|
|
126
|
+
<ul
|
|
127
|
+
class="list-none p-0 grid tablet:grid-cols-2 gap-6 min-[1536px]:grid-cols-[repeat(2,544px)]"
|
|
128
|
+
>
|
|
127
129
|
${e.map(e=>{let t=n`
|
|
128
130
|
<p
|
|
129
131
|
class="font-body m-0 mb-1 text-xs leading-4 font-normal tracking-[0.4px] text-[rgb(9,34,65)] not-italic"
|
|
@@ -144,8 +146,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
144
146
|
<li class="flex flex-col items-start gap-2">
|
|
145
147
|
<div
|
|
146
148
|
class="w-full cursor-pointer"
|
|
147
|
-
@click=${
|
|
148
|
-
@keydown=${e=>{e.key===`Escape`&&
|
|
149
|
+
@click=${Bt}
|
|
150
|
+
@keydown=${e=>{e.key===`Escape`&&Vt(e)}}
|
|
149
151
|
>
|
|
150
152
|
<button
|
|
151
153
|
type="button"
|
|
@@ -168,18 +170,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
168
170
|
<dialog
|
|
169
171
|
class="m-auto w-[90vw] max-w-[1000px] rounded-xl bg-[rgba(9,34,65)] p-0 backdrop:bg-[rgba(9,34,65)]"
|
|
170
172
|
aria-label="Watch video"
|
|
171
|
-
@click=${
|
|
172
|
-
@close=${
|
|
173
|
+
@click=${Ht}
|
|
174
|
+
@close=${Ut}
|
|
173
175
|
>
|
|
174
176
|
<button
|
|
175
177
|
type="button"
|
|
176
178
|
aria-label="Close video"
|
|
177
179
|
class="fixed top-2 right-4 z-10 cursor-pointer rounded-full border-0 bg-transparent p-2 text-white"
|
|
178
|
-
@click=${
|
|
180
|
+
@click=${Vt}
|
|
179
181
|
>
|
|
180
|
-
<ix-icon
|
|
181
|
-
class="inline-block max-w-4"
|
|
182
|
-
style="--ix-icon-font-size: 1.5rem;"
|
|
182
|
+
<ix-icon class="inline-block max-w-4" style="--ix-icon-font-size: 1.5rem;"
|
|
183
183
|
>close</ix-icon
|
|
184
184
|
>
|
|
185
185
|
</button>
|
|
@@ -201,7 +201,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
201
201
|
</li>
|
|
202
202
|
`:n`
|
|
203
203
|
<li class="flex flex-col items-start gap-2">
|
|
204
|
-
<a class="w-full" href="${
|
|
204
|
+
<a class="w-full" href="${m}/details/${encodeURIComponent(e.uid)}">
|
|
205
205
|
<!-- Sized, positioned ancestor the fill-image span/img need to render. -->
|
|
206
206
|
<div class="relative mb-4 h-[311px] w-full max-h-full cursor-pointer">
|
|
207
207
|
<span
|
|
@@ -219,22 +219,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
219
219
|
</li>
|
|
220
220
|
`})}
|
|
221
221
|
</ul>
|
|
222
|
-
`}function
|
|
222
|
+
`}function Gt(e){return n`
|
|
223
223
|
<ul class="flex flex-wrap gap-x-2 gap-y-3 list-none p-0">
|
|
224
224
|
${e.map(e=>n`<li>
|
|
225
225
|
<a
|
|
226
|
-
class="relative box-border inline-flex h-8 max-w-full items-center justify-center rounded-2xl border-0 bg-[#1456e0]
|
|
227
|
-
p-0 align-middle text-[13px] text-white no-underline select-none transition duration-300 ease-in-out outline-none
|
|
226
|
+
class="relative box-border inline-flex h-8 max-w-full items-center justify-center rounded-2xl border-0 bg-[#1456e0]
|
|
227
|
+
p-0 align-middle text-[13px] text-white no-underline select-none transition duration-300 ease-in-out outline-none
|
|
228
228
|
hover:bg-[rgb(7,20,84)] focus:bg-[rgb(7,20,84)]"
|
|
229
|
-
href="${
|
|
230
|
-
><ix-icon class="ml-[7px] inline-block max-w-[24px] overflow-hidden text-xl w-6 h-6"
|
|
229
|
+
href="${m}/topic/${encodeURIComponent(e.code)}"
|
|
230
|
+
><ix-icon class="ml-[7px] inline-block max-w-[24px] overflow-hidden text-xl w-6 h-6"
|
|
231
|
+
>${e.icon}</ix-icon
|
|
231
232
|
><span class="overflow-hidden pl-1 pr-3 whitespace-nowrap text-ellipsis"
|
|
232
233
|
>${e.name}</span
|
|
233
234
|
></a
|
|
234
235
|
>
|
|
235
236
|
</li>`)}
|
|
236
237
|
</ul>
|
|
237
|
-
`}function
|
|
238
|
+
`}function Kt(e){if(!e)return``;let t=new Date(`${e}T00:00:00`);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(`en-US`,{month:`long`,year:`numeric`}).format(t)}function qt(e){if(!e)return``;let t=new Date(`${e}T00:00:00`);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(`en-US`,{month:`long`,day:`numeric`,year:`numeric`}).format(t)}function Jt(e){return e.length===0?n`<p class="text-gray-500">Nothing here yet.</p>`:n`
|
|
238
239
|
${e[0]?.category?.subtitle?n`<p class="font-body m-0 mb-6 text-sm leading-6 font-normal tracking-[0.25px] text-[rgb(9,34,65)]">${e[0].category.subtitle}</p>`:r}
|
|
239
240
|
<ul class="list-none p-0">
|
|
240
241
|
${e.map(e=>n`
|
|
@@ -243,34 +244,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
243
244
|
datetime="${e.dateAdded??``}"
|
|
244
245
|
class="font-heading m-0 mb-4 block text-sm leading-[18.52px] font-bold tracking-[1.25px] uppercase text-[rgba(9,34,65,0.7)] not-italic"
|
|
245
246
|
>
|
|
246
|
-
${
|
|
247
|
+
${Kt(e.dateAdded)}
|
|
247
248
|
</time>
|
|
248
249
|
<h3
|
|
249
250
|
class="font-heading m-0 mb-1 text-xl leading-6 font-bold tracking-[0.15px] [leading-trim:none]"
|
|
250
251
|
>
|
|
251
|
-
<a href="${
|
|
252
|
+
<a href="${m}/details/${encodeURIComponent(e.uid)}">${e.title}</a>
|
|
252
253
|
</h3>
|
|
253
254
|
${e.abstract?n`<p
|
|
254
255
|
class="font-body mb-1 text-sm leading-6 font-normal tracking-[0.25px] text-[rgba(9,34,65,1)] [leading-trim:none]"
|
|
255
256
|
>
|
|
256
|
-
<a href="${
|
|
257
|
+
<a href="${m}/details/${encodeURIComponent(e.uid)}">${e.abstract}</a>
|
|
257
258
|
</p>`:r}
|
|
258
259
|
<time
|
|
259
260
|
datetime="${e.dateAdded??``}"
|
|
260
261
|
class="font-body m-0 mb-4 block text-xs leading-4 font-normal tracking-[0.4px] text-[rgba(9,34,65,0.6)] [leading-trim:none]"
|
|
261
262
|
>
|
|
262
|
-
${
|
|
263
|
+
${qt(e.dateAdded)}
|
|
263
264
|
</time>
|
|
264
265
|
</li>
|
|
265
266
|
`)}
|
|
266
267
|
</ul>
|
|
267
268
|
<a
|
|
268
|
-
href="${
|
|
269
|
+
href="${m}/category/whats-new"
|
|
269
270
|
class="m-0 block [font-family:inherit] [font-weight:inherit] [font-size:inherit] [line-height:inherit] [letter-spacing:inherit] text-[rgb(20,86,224)] underline decoration-[rgba(20,86,224,0.4)]"
|
|
270
271
|
>View All Release Notes</a
|
|
271
272
|
>
|
|
272
|
-
`}var Lt=i(`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
273
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scroll-snap-strictness:proximity}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-600:oklch(57.7% .245 27.325);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-normal:400;--font-weight-bold:700;--tracking-normal:0em;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-heading:"Red Hat Display", sans-serif;--font-body:"Open Sans", sans-serif;--section-divider-color:#0922411f}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:0}.top-2{top:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.z-10{z-index:10}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.m-0{margin:0}.m-auto{margin:auto}.mx-4{margin-inline:calc(var(--spacing) * 4)}.my-1\\.5{margin-block:calc(var(--spacing) * 1.5)}.my-16{margin-block:calc(var(--spacing) * 16)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mb-1{margin-bottom:var(--spacing)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-\\[var\\(--mb\\)\\]{margin-bottom:var(--mb)}.ml-\\[7px\\]{margin-left:7px}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.aspect-video{aspect-ratio:var(--aspect-video)}.h-0{height:0}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-\\[122px\\]{height:122px}.h-\\[311px\\]{height:311px}.h-auto{height:auto}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-\\[356px\\]{min-height:356px}.min-h-full{min-height:100%}.w-0{width:0}.w-6{width:calc(var(--spacing) * 6)}.w-\\[90vw\\]{width:90vw}.w-\\[228px\\]{width:228px}.w-auto{width:auto}.w-full{width:100%}.max-w-4{max-width:calc(var(--spacing) * 4)}.max-w-\\[24px\\]{max-width:24px}.max-w-\\[528px\\]{max-width:528px}.max-w-\\[544px\\]{max-width:544px}.max-w-\\[1000px\\]{max-width:1000px}.max-w-\\[1614px\\]{max-width:1614px}.max-w-full{max-width:100%}.min-w-full{min-width:100%}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.section-divider{border-style:solid;border-bottom-width:1px;border-color:var(--section-divider-color);padding-bottom:2rem}.border-none{--tw-border-style:none;border-style:none}.border-gray-300{border-color:var(--color-gray-300)}.bg-\\[\\#1456e0\\]{background-color:#1456e0}.bg-\\[\\#092241\\],.bg-\\[rgba\\(9\\,34\\,65\\)\\]{background-color:#092241}.bg-black{background-color:var(--color-black)}.bg-current{background-color:currentColor}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\\/50{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.bg-none{background-image:none}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.object-cover{object-fit:cover}.object-center{object-position:center}.object-left{object-position:left}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-1{padding-block:var(--spacing)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-1{padding-left:var(--spacing)}.align-middle{vertical-align:middle}.\\[font-family\\:inherit\\]{font-family:inherit}.font-body{font-family:var(--font-body)}.font-heading{font-family:var(--font-heading)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\\[font-size\\:inherit\\]{font-size:inherit}.text-\\[13px\\]{font-size:13px}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-8{--tw-leading:calc(var(--spacing) * 8);line-height:calc(var(--spacing) * 8)}.leading-\\[18\\.52px\\]{--tw-leading:18.52px;line-height:18.52px}.\\[line-height\\:inherit\\]{line-height:inherit}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.\\[font-weight\\:inherit\\]{font-weight:inherit}.tracking-\\[0\\.4px\\]{--tw-tracking:.4px;letter-spacing:.4px}.tracking-\\[0\\.15px\\]{--tw-tracking:.15px;letter-spacing:.15px}.tracking-\\[0\\.25px\\]{--tw-tracking:.25px;letter-spacing:.25px}.tracking-\\[1\\.25px\\]{--tw-tracking:1.25px;letter-spacing:1.25px}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.\\[letter-spacing\\:inherit\\]{letter-spacing:inherit}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\\[rgb\\(9\\,34\\,65\\)\\]{color:#092241}.text-\\[rgb\\(20\\,86\\,224\\)\\]{color:#1456e0}.text-\\[rgba\\(9\\,34\\,65\\,0\\.6\\)\\]{color:#09224199}.text-\\[rgba\\(9\\,34\\,65\\,0\\.7\\)\\]{color:#092241b3}.text-\\[rgba\\(9\\,34\\,65\\,1\\)\\]{color:#092241}.text-gray-500{color:var(--color-gray-500)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.decoration-\\[rgba\\(20\\,86\\,224\\,0\\.4\\)\\]{text-decoration-color:#1456e066}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-\\[250ms\\]{--tw-duration:.25s;transition-duration:.25s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[leading-trim\\:none\\]{leading-trim:none}@media (hover:hover){.group-hover\\:opacity-\\[0\\.04\\]:is(:where(.group):hover *){opacity:.04}}.group-focus-visible\\:opacity-\\[0\\.12\\]:is(:where(.group):focus-visible *){opacity:.12}.backdrop\\:bg-\\[rgba\\(9\\,34\\,65\\)\\]::backdrop{background-color:#092241}@media (hover:hover){.hover\\:bg-\\[rgb\\(7\\,20\\,84\\)\\]:hover{background-color:#071454}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}}.focus\\:bg-\\[rgb\\(7\\,20\\,84\\)\\]:focus{background-color:#071454}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-\\[-4px\\]:focus-visible{outline-offset:-4px}.focus-visible\\:outline-white:focus-visible{outline-color:var(--color-white)}@media not all and (width>=600px){.max-tablet\\:snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.max-tablet\\:snap-mandatory{--tw-scroll-snap-strictness:mandatory}.max-tablet\\:snap-start{scroll-snap-align:start}.max-tablet\\:\\[scrollbar-width\\:none\\]{scrollbar-width:none}.max-tablet\\:flex-nowrap{flex-wrap:nowrap}}@media (width>=600px){.tablet\\:mx-0{margin-inline:0}.tablet\\:my-32{margin-block:calc(var(--spacing) * 32)}.tablet\\:min-h-\\[447px\\]{min-height:447px}.tablet\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tablet\\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.tablet\\:leading-\\[57px\\]{--tw-leading:57px;line-height:57px}}@media (width>=601px){.min-\\[601px\\]\\:text-\\[34px\\]{font-size:34px}.min-\\[601px\\]\\:leading-10{--tw-leading:calc(var(--spacing) * 10);line-height:calc(var(--spacing) * 10)}.min-\\[601px\\]\\:tracking-\\[0\\.35px\\]{--tw-tracking:.35px;letter-spacing:.35px}}@media (width>=900px){.laptop\\:mb-\\[48px\\]{margin-bottom:48px}.laptop\\:max-w-\\[635px\\]{max-width:635px}.laptop\\:px-\\[35px\\]{padding-inline:35px}.laptop\\:pb-10{padding-bottom:calc(var(--spacing) * 10)}}@media (width>=1200px){.desktop\\:order-3{order:3}.desktop\\:order-4{order:4}.desktop\\:mb-\\[80px\\]{margin-bottom:80px}.desktop\\:ml-\\[-40px\\]{margin-left:-40px}.desktop\\:min-h-\\[498px\\]{min-height:498px}.desktop\\:w-\\[260px\\]{width:260px}.desktop\\:section-divider{border-style:solid;border-bottom-width:1px;border-color:var(--section-divider-color);padding-bottom:2rem}.desktop\\:border-none{--tw-border-style:none;border-style:none}.desktop\\:px-20{padding-inline:calc(var(--spacing) * 20)}.desktop\\:pt-\\[147px\\]{padding-top:147px}.desktop\\:pb-\\[86px\\]{padding-bottom:86px}}@media (width>=1536px){.xl\\:top-right{width:402px;position:absolute;top:0;right:0}.xl\\:grid-cols-\\[repeat\\(2\\,544px\\)\\]{grid-template-columns:repeat(2,544px)}.xl\\:border-none{--tw-border-style:none;border-style:none}.xl\\:pt-0{padding-top:0}.xl\\:pr-\\[502px\\]{padding-right:502px}}@media (width>=64rem){.lg\\:max-w-\\[679px\\]{max-width:679px}}@media (width>=96rem){.\\32 xl\\:gap-6{gap:calc(var(--spacing) * 6)}}.\\[\\&\\.is-active\\]\\:animate-\\[kb-ripple_600ms_linear\\].is-active{animation:.6s linear kb-ripple}@media not all and (width>=600px){.max-tablet\\:\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}}}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}`),Rt=t`
|
|
273
|
+
`}var V=t` *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.dlr-text-default,:host,:host :root,:root,html{font-family:var(--root-primary-font);font-size:var(--text-default-size);line-height:var(--text-default-line-height);letter-spacing:var(--text-default-letter-spacing);font-weight:var(--text-default-weight);-webkit-text-decoration:var(--text-default-decoration);text-decoration:var(--text-default-decoration);text-transform:var(--text-default-transform)}.dlr-text-heading{font-size:var(--text-heading-size);line-height:var(--text-heading-line-height);letter-spacing:var(--text-heading-letter-spacing);font-weight:var(--text-heading-weight);-webkit-text-decoration:var(--text-heading-decoration);text-decoration:var(--text-heading-decoration);text-transform:var(--text-heading-transform)}.dlr-text-heading,.dlr-text-page-title{font-family:var(--root-secondary-font)}.dlr-text-page-title{font-size:var(--text-page-title-size);line-height:var(--text-page-title-line-height);letter-spacing:var(--text-page-title-letter-spacing);font-weight:var(--text-page-title-weight);-webkit-text-decoration:var(--text-page-title-decoration);text-decoration:var(--text-page-title-decoration);text-transform:var(--text-page-title-transform)}.dlr-text-link{font-family:var(--root-primary-font);font-size:var(--text-default-size);line-height:var(--text-default-line-height);letter-spacing:var(--text-default-letter-spacing);font-weight:var(--text-default-weight);color:var(--cp-dlr-blue-50);-webkit-text-decoration:var(--text-link-decoration);text-decoration:var(--text-link-decoration);text-transform:var(--text-link-transform)}.dlr-text-link:visited{color:var(--cp-neutral-blue-20)}:host{display:block;min-width:0;color:var(--clr-on-surface,#092241);overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-0{left:0}.left-4{left:1rem}.right-4{right:1rem}.top-0{top:0}.top-2{top:.5rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.m-0{margin:0}.m-auto{margin:auto}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1\\.5{margin-top:.375rem;margin-bottom:.375rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-\\[var\\(--mb\\)\\]{margin-bottom:var(--mb)}.ml-\\[7px\\]{margin-left:7px}.mt-4{margin-top:1rem}.mt-\\[188px\\]{margin-top:188px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.h-0{height:0}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[122px\\]{height:122px}.h-\\[311px\\]{height:311px}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[60vh\\]{max-height:60vh}.max-h-full{max-height:100%}.min-h-11{min-height:2.75rem}.min-h-\\[356px\\]{min-height:356px}.min-h-full{min-height:100%}.w-0{width:0}.w-6{width:1.5rem}.w-\\[228px\\]{width:228px}.w-\\[252px\\]{width:252px}.w-\\[90vw\\]{width:90vw}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-4{max-width:1rem}.max-w-\\[1000px\\]{max-width:1000px}.max-w-\\[1614px\\]{max-width:1614px}.max-w-\\[24px\\]{max-width:24px}.max-w-\\[402px\\]{max-width:402px}.max-w-\\[528px\\]{max-width:528px}.max-w-\\[544px\\]{max-width:544px}.max-w-\\[828px\\]{max-width:828px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-y-3{row-gap:.75rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0}.border-none{border-style:none}.border-current{border-color:currentColor}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.bg-\\[\\#092241\\]{--tw-bg-opacity:1;background-color:rgb(9 34 65/var(--tw-bg-opacity,1))}.bg-\\[\\#1456e0\\]{--tw-bg-opacity:1;background-color:rgb(20 86 224/var(--tw-bg-opacity,1))}.bg-\\[rgba\\(9\\2c 34\\2c 65\\)\\]{--tw-bg-opacity:1;background-color:rgba(9,34,65,var(--tw-bg-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-current{background-color:currentColor}.bg-surface-container-lowest{background-color:var(--cp-neutral-blue-100)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\\/50{background-color:hsla(0,0%,100%,.5)}.bg-none{background-image:none}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.object-left{-o-object-position:left;object-position:left}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-1{padding-left:.25rem}.pr-3{padding-right:.75rem}.pt-14{padding-top:3.5rem}.pt-20{padding-top:5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-body{font-family:Open Sans,sans-serif}.font-heading{font-family:Red Hat Display,sans-serif}.\\!text-\\[20px\\]{font-size:20px!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[13px\\]{font-size:13px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.\\!leading-6{line-height:1.5rem!important}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-8{line-height:2rem}.leading-\\[18\\.52px\\]{line-height:18.52px}.tracking-\\[0\\.15px\\]{letter-spacing:.15px}.tracking-\\[0\\.25px\\]{letter-spacing:.25px}.tracking-\\[0\\.4px\\]{letter-spacing:.4px}.tracking-\\[1\\.25px\\]{letter-spacing:1.25px}.tracking-normal{letter-spacing:0}.text-\\[rgb\\(20\\2c 86\\2c 224\\)\\]{--tw-text-opacity:1;color:rgb(20 86 224/var(--tw-text-opacity,1))}.text-\\[rgb\\(9\\2c 34\\2c 65\\)\\]{--tw-text-opacity:1;color:rgb(9 34 65/var(--tw-text-opacity,1))}.text-\\[rgba\\(9\\2c 34\\2c 65\\2c 0\\.6\\)\\]{color:rgba(9,34,65,.6)}.text-\\[rgba\\(9\\2c 34\\2c 65\\2c 0\\.7\\)\\]{color:rgba(9,34,65,.7)}.text-\\[rgba\\(9\\2c 34\\2c 65\\2c 1\\)\\]{color:#092241}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\\/60{color:hsla(0,0%,100%,.6)}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-\\[rgba\\(20\\2c 86\\2c 224\\2c 0\\.4\\)\\]{text-decoration-color:rgba(20,86,224,.4)}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-\\[250ms\\]{transition-duration:.25s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.section-divider{padding-bottom:2rem;border-bottom:1px;border-color:rgba(9,34,65,.12);border-style:solid}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-size\\:inherit\\]{font-size:inherit}.\\[font-weight\\:inherit\\]{font-weight:inherit}.\\[leading-trim\\:none\\]{leading-trim:none}.\\[letter-spacing\\:inherit\\]{letter-spacing:inherit}.\\[line-height\\:inherit\\]{line-height:inherit}.backdrop\\:bg-\\[rgba\\(9\\2c 34\\2c 65\\)\\]::backdrop{--tw-bg-opacity:1;background-color:rgba(9,34,65,var(--tw-bg-opacity,1))}.hover\\:bg-\\[rgb\\(7\\2c 20\\2c 84\\)\\]:hover{--tw-bg-opacity:1;background-color:rgb(7 20 84/var(--tw-bg-opacity,1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.focus\\:not-sr-only:focus{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.focus\\:bg-\\[rgb\\(7\\2c 20\\2c 84\\)\\]:focus{--tw-bg-opacity:1;background-color:rgb(7 20 84/var(--tw-bg-opacity,1))}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:outline-offset-\\[3px\\]:focus{outline-offset:3px}.focus\\:outline-primary:focus{outline-color:var(--cp-dlr-blue-50)}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-\\[-4px\\]:focus-visible{outline-offset:-4px}.focus-visible\\:outline-offset-\\[3px\\]:focus-visible{outline-offset:3px}.focus-visible\\:outline-primary:focus-visible{outline-color:var(--cp-dlr-blue-50)}.focus-visible\\:outline-white:focus-visible{outline-color:#fff}.group:hover .group-hover\\:opacity-\\[0\\.04\\]{opacity:.04}.group:focus-visible .group-focus-visible\\:opacity-\\[0\\.12\\]{opacity:.12}@media not all and (min-width:600px){.max-tablet\\:snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.max-tablet\\:snap-mandatory{--tw-scroll-snap-strictness:mandatory}.max-tablet\\:snap-start{scroll-snap-align:start}.max-tablet\\:flex-nowrap{flex-wrap:nowrap}.max-tablet\\:\\[scrollbar-width\\:none\\]{scrollbar-width:none}}@media (min-width:600px){.tablet\\:mx-0{margin-left:0;margin-right:0}.tablet\\:my-32{margin-top:8rem;margin-bottom:8rem}.tablet\\:min-h-\\[447px\\]{min-height:447px}.tablet\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tablet\\:text-5xl{font-size:3rem;line-height:1}.tablet\\:leading-\\[57px\\]{line-height:57px}}@media (min-width:601px){.min-\\[601px\\]\\:text-\\[34px\\]{font-size:34px}.min-\\[601px\\]\\:leading-10{line-height:2.5rem}.min-\\[601px\\]\\:tracking-\\[0\\.35px\\]{letter-spacing:.35px}}@media (min-width:900px){.laptop\\:mb-\\[48px\\]{margin-bottom:48px}.laptop\\:max-w-\\[635px\\]{max-width:635px}.laptop\\:px-\\[35px\\]{padding-left:35px;padding-right:35px}.laptop\\:pb-10{padding-bottom:2.5rem}.min-\\[900px\\]\\:-top-10{top:-2.5rem}.min-\\[900px\\]\\:left-8{left:2rem}.min-\\[900px\\]\\:\\!mt-8{margin-top:2rem!important}.min-\\[900px\\]\\:ml-8{margin-left:2rem}.min-\\[900px\\]\\:mr-6{margin-right:1.5rem}.min-\\[900px\\]\\:mt-14{margin-top:3.5rem}.min-\\[900px\\]\\:flex-row-reverse{flex-direction:row-reverse}.min-\\[900px\\]\\:pt-0{padding-top:0}.min-\\[900px\\]\\:\\!text-\\[34px\\]{font-size:34px!important}.min-\\[900px\\]\\:\\!leading-10{line-height:2.5rem!important}}@media (min-width:1024px){.min-\\[1024px\\]\\:max-w-\\[679px\\]{max-width:679px}}@media (min-width:1200px){.lg\\:left-9{left:2.25rem}.lg\\:top-0{top:0}.lg\\:ml-\\[46px\\]{margin-left:46px}.lg\\:mr-9{margin-right:2.25rem}.lg\\:mt-4{margin-top:1rem}.lg\\:mt-\\[140px\\]{margin-top:140px}.lg\\:w-1\\/4{width:25%}.lg\\:w-\\[828px\\]{width:828px}.lg\\:min-w-\\[252px\\]{min-width:252px}.lg\\:max-w-\\[828px\\]{max-width:828px}.lg\\:flex-\\[0_1_828px\\]{flex:0 1 828px}.lg\\:shrink{flex-shrink:1}.lg\\:flex-row{flex-direction:row}.desktop\\:order-3{order:3}.desktop\\:order-4{order:4}.desktop\\:mb-\\[80px\\]{margin-bottom:80px}.desktop\\:ml-\\[-40px\\]{margin-left:-40px}.desktop\\:min-h-\\[498px\\]{min-height:498px}.desktop\\:w-\\[260px\\]{width:260px}.desktop\\:border-none{border-style:none}.desktop\\:px-20{padding-left:5rem;padding-right:5rem}.desktop\\:pb-\\[86px\\]{padding-bottom:86px}.desktop\\:pt-\\[147px\\]{padding-top:147px}.desktop\\:section-divider{padding-bottom:2rem;border-bottom:1px;border-color:rgba(9,34,65,.12);border-style:solid}}@media (min-width:1536px){.min-\\[1536px\\]\\:grid-cols-\\[repeat\\(2\\2c 544px\\)\\]{grid-template-columns:repeat(2,544px)}.min-\\[1536px\\]\\:gap-6{gap:1.5rem}.min-\\[1536px\\]\\:border-none{border-style:none}.min-\\[1536px\\]\\:pr-\\[502px\\]{padding-right:502px}.min-\\[1536px\\]\\:pt-0{padding-top:0}.min-\\[1536px\\]\\:top-right{position:absolute;top:0;right:0;width:402px}}.\\[\\&\\.is-active\\]\\:animate-\\[kb-ripple_600ms_linear\\].is-active{animation:kb-ripple .6s linear}@media not all and (min-width:600px){.max-tablet\\:\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}} `,Yt=t`
|
|
274
274
|
:host {
|
|
275
275
|
display: block;
|
|
276
276
|
}
|
|
@@ -294,20 +294,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
294
294
|
grid-template-areas: 'left right';
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
`,
|
|
297
|
+
`,Xt=t`
|
|
298
298
|
@keyframes kb-ripple {
|
|
299
299
|
from {
|
|
300
|
-
|
|
300
|
+
transform: scale(0);
|
|
301
301
|
opacity: 1;
|
|
302
302
|
}
|
|
303
303
|
to {
|
|
304
|
-
|
|
304
|
+
transform: scale(2.5);
|
|
305
305
|
opacity: 0;
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
`,
|
|
309
|
-
These site rules apply to everyone who enters or uses any properties owned or managed by Digital Realty and its affiliates.`,body:
|
|
310
|
-
These site rules apply to everyone who enters or uses any properties owned or managed by Digital Realty and its affiliates
|
|
308
|
+
`,Zt={indexPage:{heading:`Welcome to Knowledge Base!`,description:`Find information about our Portal, Products, Services and so much more on the Knowledge base pages.`,backgroundImage:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fknowledge_base_banner_d4dcd9e2f4.webp&w=1920&q=75`,alternativeText:`Knowledge Base banner`,mime:`image/webp`,name:`knowledge-base-banner.webp`,width:1840,height:514}},categories:[{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`servers.jpg`,mime:`image/jpeg`,name:`servers.jpg`,width:4060,height:2092},behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},{documentId:`ozvhy3lnmkhjg33tf57r0vij`,uid:`documentation`,title:`User Guides`,subtitle:`Find documents that will guide you through our Global Portal functionality here.`,icon:`assignment`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`city.jpg`,mime:`image/jpeg`,name:`city.jpg`,width:3980,height:2944},behavior:`document_card`,order:2,showSortBy:!0,showFilterByTopic:!0},{documentId:`aq1jyyyrwsrh1npo6c8s294f`,uid:`mediaresources`,title:`Media Resources`,subtitle:`The answers to all of your most frequently asked questions.`,icon:`web_asset`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`metro.jpg`,mime:`image/jpeg`,name:`metro.jpg`,width:3840,height:2160},behavior:`video_card`,order:4,showSortBy:!0,showFilterByTopic:!0},{documentId:`pmt6iqnbgmo33sakbl5aj4rl`,uid:`operational-documents`,title:`Operational Documents`,subtitle:`Reference DLR's SOP documents.`,icon:`userguides`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:null,mime:`image/jpeg`,name:`Updated_DLRGlobalPortalLogin.jpg`,width:10003,height:5080},behavior:`document_card`,order:100,showSortBy:!0,showFilterByTopic:!1}],topics:[{documentId:`s629hzyncwphtl3iquv2v95s`,code:`facilityaccess`,name:`Facility Access`,icon:`key`},{documentId:`tqiyw62aqtehuf1njbzzakpx`,code:`usermanagement`,name:`User Management`,icon:`person`},{documentId:`iygzje1mz1fv2fmkh35hxbxo`,code:`rolemanagement`,name:`Role Management`,icon:`book`},{documentId:`yyhu0fen2ru3zqi0xkcnxnux`,code:`servicetickets`,name:`Service Tickets`,icon:`list`},{documentId:`ypucau2kzi95zv38sz9bt18c`,code:`operations`,name:`Operations`,icon:`house`},{documentId:`z7p302fogy2bveaa6qs7oy9g`,code:`reports`,name:`Reports`,icon:`report`}],featured:[{documentId:`emc4t20cdqw2wyyy6xl1c2fb`,uid:`global-portal-welcome-video`,title:`Global Portal Overview Video`,abstract:void 0,body:j(`<p>Welcome to the Global Portal! Discover how our Global Portal streamlines access to key services, integrates seamlessly with backend systems, and empowers you with self-service capabilities designed for scale and ease.</p>`,``),featured:!0,duration:229,dateAdded:`2025-06-11`,publishedAt:`2026-05-08T10:56:59.967Z`,topics:[],category:{documentId:`aq1jyyyrwsrh1npo6c8s294f`,uid:`mediaresources`,title:`Media Resources`,subtitle:`The answers to all of your most frequently asked questions.`,icon:`web_asset`,image:null,behavior:`video_card`,order:4,showSortBy:!0,showFilterByTopic:!0},thumbnail:{url:` https://gp-uat.digitalrealty.com/_next/image?url=%2Fimages%2Fdefault-strapi-image.png&w=1920&q=75`,alternativeText:null,mime:`image/png`,name:`2026-05-08_12-52-26.png`,width:1499,height:851},video:{url:`https://gp-uat.digitalrealty.com/api/files?url=%2Fuploads%2FAN_v6_FULL_36021addbb.mp4`,alternativeText:`Global Portal Overview`,mime:`video/mp4`,name:`AN v9 - Global Portal - FULL.mp4`,width:void 0,height:void 0,formats:{}},documents:[]},{documentId:`ifez9p97ezdtz9lohf9rikvl`,uid:`DLRSiteRules`,title:`Digital Realty Site Rules`,abstract:`This manual is written to provide the highest level of service while minimizing disruption to any stakeholders in our shared environments.
|
|
309
|
+
These site rules apply to everyone who enters or uses any properties owned or managed by Digital Realty and its affiliates.`,body:j(`This manual is written to provide the highest level of service while minimizing disruption to any stakeholders in our shared environments.
|
|
310
|
+
These site rules apply to everyone who enters or uses any properties owned or managed by Digital Realty and its affiliates.`,``),featured:!0,duration:void 0,dateAdded:`2023-02-14`,publishedAt:`2023-04-28T12:49:07.666Z`,topics:[{documentId:`ypucau2kzi95zv38sz9bt18c`,code:`operations`,name:`Operations`,icon:`house`}],category:{documentId:`pmt6iqnbgmo33sakbl5aj4rl`,uid:`operational-documents`,title:`Operational Documents`,subtitle:`Reference DLR's SOP documents.`,icon:`userguides`,image:null,behavior:`document_card`,order:100,showSortBy:!0,showFilterByTopic:!1},thumbnail:{url:`https://gp-uat.digitalrealty.com/_next/image?url=%2Fimages%2Fdefault-strapi-image.png&w=1920&q=75`,alternativeText:null,mime:`image/png`,name:`2026-05-08_12-52-26.png`,width:1499,height:851},video:null,documents:[{url:`http://127.0.0.1:10000/devstoreaccount1/assets/assets/Site_Rules2023_ddc9041213.pdf`,alternativeText:`Digital Realty Site Rules`,mime:`application/pdf`,name:`SiteRules2023.pdf`,width:void 0,height:void 0}]}],whatsNew:[{documentId:`d9i05bkwziza6v654okhyiz1`,uid:`welcome-to-the-global-portal`,title:`Welcome to the Global Portal!`,abstract:`We are delighted to welcome you to Digital Realty's new Global Portal! `,body:j(`<p>Our new Global Portal is your passport to DLR's a single global experience - any product, any service, any time and any where! Using the latest in technology and UX design is the culmination of our new best-in-class customer experience combining existing trusted capabilities along with expanded user management and control functionality which allows you to drive who and how they interact with products and services. The Global Portal introduces a clean and information-rich interface that is context-aware allowing single-click access for the most used and critical functions without leaving the Launchpad. This completely redesigned platform sits at the crossroads of DLR providing endless opportunities to securely integrate with products and service via our Global APIs.</p>`,``),featured:!1,duration:void 0,dateAdded:`2025-06-17`,publishedAt:`2022-08-03T00:38:14.022Z`,topics:[],category:{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:null,behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},thumbnail:null,video:null,documents:[]},{documentId:`d9i05bkwziza6v654okhyiz1`,uid:`welcome-to-the-global-portal`,title:`Physical access requests are here!`,abstract:`Curabitur blandit tempus porttitor. Maecenas sed diam eget risus varius blandit sit amet non magna. Vestibulum id ligula porta felis euismod semper.`,body:j(`<p>Our new Global Portal is your passport to DLR's a single global experience - any product, any service, any time and any where! Using the latest in technology and UX design is the culmination of our new best-in-class customer experience combining existing trusted capabilities along with expanded user management and control functionality which allows you to drive who and how they interact with products and services. The Global Portal introduces a clean and information-rich interface that is context-aware allowing single-click access for the most used and critical functions without leaving the Launchpad. This completely redesigned platform sits at the crossroads of DLR providing endless opportunities to securely integrate with products and service via our Global APIs.</p>`,``),featured:!1,duration:void 0,dateAdded:`2024-04-07`,publishedAt:`2022-08-03T00:38:14.022Z`,topics:[],category:{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:null,behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},thumbnail:null,video:null,documents:[]}]},Qt=class extends e{constructor(...e){super(...e),this.loading=!0,this.error=!1,this.data=null,this.request=0}static{this.styles=[V,Xt,Yt]}connectedCallback(){super.connectedCallback(),this.load()}disconnectedCallback(){super.disconnectedCallback(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1;try{let t=await R().getLanding();e===this.request&&(this.data=t)}catch{e===this.request&&(this.data=Zt)}finally{e===this.request&&(this.loading=!1)}}render(){if(this.loading)return n`<div class="my-16 tablet:my-32">
|
|
311
311
|
<ix-progress
|
|
312
312
|
class="flex justify-center"
|
|
313
313
|
label="Loading Knowledge Base…"
|
|
@@ -324,48 +324,1636 @@ These site rules apply to everyone who enters or uses any properties owned or ma
|
|
|
324
324
|
</button>
|
|
325
325
|
`;let{indexPage:e,categories:t,topics:r,featured:i,whatsNew:a}=this.data;return n`
|
|
326
326
|
<div class="mx-4 tablet:mx-0">
|
|
327
|
-
${
|
|
327
|
+
${It(e)}
|
|
328
328
|
<div class="relative pb-8 max-w-[1614px]">
|
|
329
|
-
<div class="flex flex-col
|
|
329
|
+
<div class="flex flex-col min-[1536px]:pr-[502px]">
|
|
330
330
|
<section class="order-1 section-divider">
|
|
331
|
-
${
|
|
331
|
+
${zt(`Categories`)} ${Rt(t)}
|
|
332
332
|
</section>
|
|
333
333
|
<section class="order-2 section-divider pt-8">
|
|
334
|
-
${
|
|
334
|
+
${zt(`Topics`)} ${Gt(r)}
|
|
335
335
|
</section>
|
|
336
|
-
<section
|
|
337
|
-
|
|
336
|
+
<section
|
|
337
|
+
class="order-4 pt-8 desktop:order-3 desktop:section-divider min-[1536px]:border-none"
|
|
338
|
+
>
|
|
339
|
+
${zt(`Featured Resources`)} ${Wt(i)}
|
|
338
340
|
</section>
|
|
339
341
|
<section
|
|
340
|
-
class="order-3 pt-8
|
|
342
|
+
class="order-3 pt-8 min-[1536px]:pt-0 desktop:order-4 section-divider desktop:border-none min-[1536px]:top-right"
|
|
341
343
|
>
|
|
342
|
-
${
|
|
344
|
+
${zt(`What's New`,8)} ${Jt(a)}
|
|
343
345
|
</section>
|
|
344
346
|
</div>
|
|
345
347
|
</div>
|
|
346
348
|
</div>
|
|
347
|
-
`}};
|
|
349
|
+
`}};z([s()],Qt.prototype,`loading`,void 0),z([s()],Qt.prototype,`error`,void 0),z([s()],Qt.prototype,`data`,void 0),Qt=z([a(`kb-landing-view`)],Qt);var $t=new Intl.Collator(`en`,{sensitivity:`accent`});function en(e,t){return $t.compare(e.title,t.title)||(e.uid<t.uid?-1:+(e.uid>t.uid))}function tn(e){for(let t of e.topics){let e=t.name.trim();if(e)return e}}function nn(e,t=`newest`){return[...e].sort((e,n)=>{if(t===`topic`){let t=tn(e),r=tn(n);return t===void 0&&r!==void 0?1:r===void 0&&t!==void 0?-1:$t.compare(t??``,r??``)||en(e,n)}let r=Date.parse(e.dateAdded??``),i=Date.parse(n.dateAdded??``),a=Number.isFinite(r),o=Number.isFinite(i);return a===o?a&&o&&r!==i?t===`oldest`?r-i:i-r:en(e,n):a?-1:1})}function rn(e){return Number.isInteger(e)&&e>=1&&e<=9999}function an(e){return[...new Set(e.filter(rn))].sort((e,t)=>t-e)}function on(e){if(typeof e!=`string`)return null;let t=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(?:\.\d{1,9})?(Z|[+-]\d{2}:\d{2}))?$/.exec(e);if(!t||t[0]!==e)return null;let[,n,r,i,a,o,s,c]=t,l=Number(n),u=Number(r),d=Number(i),f=[31,l%4==0&&(l%100!=0||l%400==0)?29:28,31,30,31,30,31,31,30,31,30,31];if(!rn(l)||u<1||u>12||d<1||d>f[u-1])return null;if(a===void 0)return l;if(Number(a)>23||Number(o)>59||Number(s)>59||c!==`Z`&&(Number(c.slice(1,3))>23||Number(c.slice(4,6))>59))return null;let p=new Date(e).getUTCFullYear();return rn(p)?p:null}function H(e){return an(e.map(e=>on(e.dateAdded)).filter(e=>e!==null))}var sn=i`<svg
|
|
350
|
+
slot="icon" aria-hidden="true" focusable="false"
|
|
351
|
+
width="20" height="20" viewBox="0 0 24 24" fill="currentColor"
|
|
352
|
+
><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path></svg>`,U=[],cn=!1;function ln(e){e!==U[U.length-1]&&(e===U[U.length-2]?U.pop():U.push(e))}function un(e){let t=e.detail?.location;ln(t?.pathname??window.location.pathname)}function dn(){cn||(cn=!0,ln(window.location.pathname),window.addEventListener(`vaadin-router-location-changed`,un))}function fn(){return U.length>=2?U[U.length-2]:null}function pn(){let e=fn();e&&ie(e)?window.history.back():c.go(m)}var mn=class extends e{static{this.styles=t`
|
|
353
|
+
:host {
|
|
354
|
+
display: inline-block;
|
|
355
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
356
|
+
font-size: var(--text-default-size, 1rem);
|
|
357
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
358
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
359
|
+
font-weight: var(--text-default-weight, normal);
|
|
360
|
+
}
|
|
361
|
+
svg {
|
|
362
|
+
width: 20px;
|
|
363
|
+
height: 20px;
|
|
364
|
+
color: var(--clr-primary, #1456e0);
|
|
365
|
+
}
|
|
366
|
+
.label {
|
|
367
|
+
text-transform: uppercase;
|
|
368
|
+
}
|
|
369
|
+
`}connectedCallback(){super.connectedCallback(),dn()}render(){return n`
|
|
370
|
+
<ix-button appearance="text" has-icon @click=${()=>pn()}>
|
|
371
|
+
${sn}
|
|
372
|
+
<span class="label">Back</span>
|
|
373
|
+
</ix-button>
|
|
374
|
+
`}};mn=z([a(`kb-back-btn`)],mn);var hn=n`
|
|
375
|
+
<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true" focusable="false">
|
|
376
|
+
<path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path>
|
|
377
|
+
</svg>
|
|
378
|
+
`,W=class extends e{constructor(...e){super(...e),this.current=``}static{this.styles=t`
|
|
379
|
+
:host {
|
|
380
|
+
display: block;
|
|
381
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
382
|
+
font-size: var(--text-default-size, 1rem);
|
|
383
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
384
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
385
|
+
font-weight: var(--text-default-weight, normal);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
nav {
|
|
389
|
+
font: inherit;
|
|
390
|
+
color: var(--clr-on-surface-variant, rgba(9, 34, 65, 0.7));
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
ol {
|
|
394
|
+
display: flex;
|
|
395
|
+
align-items: center;
|
|
396
|
+
flex-wrap: wrap;
|
|
397
|
+
margin: 0;
|
|
398
|
+
padding: 0;
|
|
399
|
+
list-style: none;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
a {
|
|
403
|
+
display: inline-flex;
|
|
404
|
+
align-items: center;
|
|
405
|
+
min-height: 44px;
|
|
406
|
+
color: inherit;
|
|
407
|
+
text-decoration: none;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.current {
|
|
411
|
+
color: inherit;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.sep {
|
|
415
|
+
display: inline-flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
margin: 0 12.5px;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.sep svg {
|
|
421
|
+
width: 16px;
|
|
422
|
+
height: 16px;
|
|
423
|
+
fill: currentColor;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
a:focus-visible {
|
|
427
|
+
outline: 2px solid var(--clr-primary, #1456e0);
|
|
428
|
+
outline-offset: 3px;
|
|
429
|
+
}
|
|
430
|
+
`}render(){return n`
|
|
431
|
+
<nav aria-label="breadcrumb">
|
|
432
|
+
<ol>
|
|
433
|
+
<li><a href=${m}>Knowledge Base</a></li>
|
|
434
|
+
${this.current?n`
|
|
435
|
+
<li class="sep" aria-hidden="true">${hn}</li>
|
|
436
|
+
<li><span class="current" aria-current="page">${this.current}</span></li>
|
|
437
|
+
`:r}
|
|
438
|
+
</ol>
|
|
439
|
+
</nav>
|
|
440
|
+
`}};z([o({type:String})],W.prototype,`current`,void 0),W=z([a(`kb-breadcrumb`)],W);function gn(e){let t=[`mediaresources`,`operational-documents`,`documentation`,`whats-new`],n=e=>{let n=t.indexOf(e);return n<0?t.length:n};return[...e].sort((e,t)=>n(e.uid)-n(t.uid))}var G=class extends e{constructor(...e){super(...e),this.categories=[],this.currentUid=``,this.compact=!1}static{this.styles=t`
|
|
441
|
+
:host {
|
|
442
|
+
display: block;
|
|
443
|
+
min-inline-size: 0;
|
|
444
|
+
max-inline-size: 100%;
|
|
445
|
+
color: var(--clr-on-surface, #092241);
|
|
446
|
+
font-family: var(--root-secondary-font, 'Red Hat Display', sans-serif);
|
|
447
|
+
font-size: 14px;
|
|
448
|
+
line-height: 18.52px;
|
|
449
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
450
|
+
font-weight: var(--text-heading-weight, 700);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
nav {
|
|
454
|
+
padding: 0;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
:host([compact]) {
|
|
458
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
459
|
+
font-size: var(--text-default-size, 1rem);
|
|
460
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
461
|
+
font-weight: var(--text-default-weight, normal);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
:host([compact]) a {
|
|
465
|
+
align-items: center;
|
|
466
|
+
min-block-size: 44px;
|
|
467
|
+
padding: 0 16px;
|
|
468
|
+
text-transform: none;
|
|
469
|
+
justify-content: flex-start;
|
|
470
|
+
text-align: left;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
ul {
|
|
474
|
+
display: grid;
|
|
475
|
+
gap: 0;
|
|
476
|
+
margin: 0;
|
|
477
|
+
padding: 0;
|
|
478
|
+
list-style: none;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
li {
|
|
482
|
+
min-inline-size: 0;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
a {
|
|
486
|
+
box-sizing: border-box;
|
|
487
|
+
display: flex;
|
|
488
|
+
align-items: flex-start;
|
|
489
|
+
min-block-size: 31.52px;
|
|
490
|
+
padding: 0;
|
|
491
|
+
text-transform: uppercase;
|
|
492
|
+
border-radius: 4px;
|
|
493
|
+
color: var(--clr-on-surface-variant, rgba(9, 34, 65, 0.7));
|
|
494
|
+
text-decoration: none;
|
|
495
|
+
overflow-wrap: anywhere;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
a:hover {
|
|
499
|
+
text-decoration: underline;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
a[aria-current='page'] {
|
|
503
|
+
color: var(--clr-primary, #1456e0);
|
|
504
|
+
font-weight: 700;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
@media (min-width: 1200px) {
|
|
508
|
+
a {
|
|
509
|
+
justify-content: flex-end;
|
|
510
|
+
text-align: right;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
a:focus-visible {
|
|
515
|
+
outline: 2px solid var(--clr-primary, #1456e0);
|
|
516
|
+
outline-offset: 2px;
|
|
517
|
+
text-decoration: underline;
|
|
518
|
+
}
|
|
519
|
+
`}render(){return this.categories.length===0?r:n`
|
|
520
|
+
<nav aria-label="Knowledge Base categories">
|
|
521
|
+
<ul>
|
|
522
|
+
${this.categories.map(e=>n`
|
|
523
|
+
<li>
|
|
524
|
+
<a
|
|
525
|
+
href=${`${m}/category/${encodeURIComponent(e.uid)}`}
|
|
526
|
+
aria-current=${e.uid===this.currentUid?`page`:r}
|
|
527
|
+
>${e.title}</a
|
|
528
|
+
>
|
|
529
|
+
</li>
|
|
530
|
+
`)}
|
|
531
|
+
</ul>
|
|
532
|
+
</nav>
|
|
533
|
+
`}};z([o({attribute:!1})],G.prototype,`categories`,void 0),z([o({type:String,attribute:`current-uid`})],G.prototype,`currentUid`,void 0),z([o({type:Boolean,reflect:!0})],G.prototype,`compact`,void 0),G=z([a(`kb-category-nav`)],G);var K=class extends e{constructor(...e){super(...e),this.count=0,this.value=`newest`}static{this.styles=t`
|
|
534
|
+
:host {
|
|
535
|
+
display: block;
|
|
536
|
+
color: var(--clr-on-surface, #092241);
|
|
537
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
538
|
+
font-size: var(--text-default-size, 1rem);
|
|
539
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
540
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
541
|
+
font-weight: var(--text-default-weight, normal);
|
|
542
|
+
}
|
|
543
|
+
.header {
|
|
544
|
+
display: flex;
|
|
545
|
+
flex-wrap: wrap;
|
|
546
|
+
align-items: center;
|
|
547
|
+
justify-content: space-between;
|
|
548
|
+
gap: 0.75rem 1rem;
|
|
549
|
+
}
|
|
550
|
+
[role='status'] {
|
|
551
|
+
font-family: var(
|
|
552
|
+
--text-page-title-font,
|
|
553
|
+
var(--root-secondary-font, 'Red Hat Display', sans-serif)
|
|
554
|
+
);
|
|
555
|
+
font-size: 20px;
|
|
556
|
+
line-height: 24px;
|
|
557
|
+
font-weight: var(--text-heading-weight, 700);
|
|
558
|
+
}
|
|
559
|
+
.sort {
|
|
560
|
+
display: flex;
|
|
561
|
+
flex-wrap: wrap;
|
|
562
|
+
align-items: center;
|
|
563
|
+
gap: 0.5rem;
|
|
564
|
+
min-width: 0;
|
|
565
|
+
}
|
|
566
|
+
.select-frame {
|
|
567
|
+
position: relative;
|
|
568
|
+
max-width: 100%;
|
|
569
|
+
}
|
|
570
|
+
/* The white outlined face is compact; the native select still owns a 48px
|
|
571
|
+
target and all platform keyboard/option semantics above that face. */
|
|
572
|
+
.select-frame::before {
|
|
573
|
+
content: '';
|
|
574
|
+
position: absolute;
|
|
575
|
+
inset-inline: 0;
|
|
576
|
+
top: 50%;
|
|
577
|
+
transform: translateY(-50%);
|
|
578
|
+
height: 28px;
|
|
579
|
+
box-sizing: border-box;
|
|
580
|
+
border: 1px solid rgba(9, 34, 65, 0.12);
|
|
581
|
+
border-radius: 3px;
|
|
582
|
+
background: var(--clr-surface-container-lowest, #fff);
|
|
583
|
+
pointer-events: none;
|
|
584
|
+
}
|
|
585
|
+
select {
|
|
586
|
+
position: relative;
|
|
587
|
+
box-sizing: border-box;
|
|
588
|
+
width: 132px;
|
|
589
|
+
max-width: 100%;
|
|
590
|
+
min-height: 48px;
|
|
591
|
+
padding: 0 28px 0 8px;
|
|
592
|
+
border: 0;
|
|
593
|
+
border-radius: 3px;
|
|
594
|
+
appearance: none;
|
|
595
|
+
color: inherit;
|
|
596
|
+
background: transparent;
|
|
597
|
+
font: inherit;
|
|
598
|
+
font-weight: 400;
|
|
599
|
+
cursor: pointer;
|
|
600
|
+
}
|
|
601
|
+
.chevron {
|
|
602
|
+
position: absolute;
|
|
603
|
+
inset-inline-end: 4px;
|
|
604
|
+
top: 50%;
|
|
605
|
+
transform: translateY(-50%);
|
|
606
|
+
pointer-events: none;
|
|
607
|
+
}
|
|
608
|
+
@media (max-width: 899px) {
|
|
609
|
+
label {
|
|
610
|
+
position: absolute;
|
|
611
|
+
width: 1px;
|
|
612
|
+
height: 1px;
|
|
613
|
+
padding: 0;
|
|
614
|
+
margin: -1px;
|
|
615
|
+
overflow: hidden;
|
|
616
|
+
clip: rect(0, 0, 0, 0);
|
|
617
|
+
white-space: nowrap;
|
|
618
|
+
border: 0;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
select:focus-visible {
|
|
622
|
+
outline: 2px solid currentColor;
|
|
623
|
+
outline-offset: 3px;
|
|
624
|
+
}
|
|
625
|
+
`}onChange(e){e.stopPropagation();let t=e.currentTarget,n=t.value;(n===`newest`||n===`oldest`||n===`topic`)&&this.dispatchEvent(new CustomEvent(`kb-sort-change`,{detail:{value:n},bubbles:!0,composed:!0})),t.value=this.value}render(){return n`
|
|
626
|
+
<div class="header">
|
|
627
|
+
<span role="status" aria-live="polite" aria-atomic="true"
|
|
628
|
+
>${this.count} ${this.count===1?`Tutorial`:`Tutorials`}</span
|
|
629
|
+
>
|
|
630
|
+
<div class="sort">
|
|
631
|
+
<label for="sort">Sort by</label>
|
|
632
|
+
<div class="select-frame">
|
|
633
|
+
<select id="sort" .value=${f(this.value)} @change=${this.onChange}>
|
|
634
|
+
<option value="newest">Newest First</option>
|
|
635
|
+
<option value="oldest">Oldest First</option>
|
|
636
|
+
<option value="topic">Topic</option>
|
|
637
|
+
</select>
|
|
638
|
+
<svg
|
|
639
|
+
class="chevron"
|
|
640
|
+
width="24"
|
|
641
|
+
height="24"
|
|
642
|
+
viewBox="0 0 24 24"
|
|
643
|
+
fill="currentColor"
|
|
644
|
+
aria-hidden="true"
|
|
645
|
+
focusable="false"
|
|
646
|
+
>
|
|
647
|
+
<path d="M7 10l5 5 5-5z"></path>
|
|
648
|
+
</svg>
|
|
649
|
+
</div>
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
`}};z([o({type:Number})],K.prototype,`count`,void 0),z([o({type:String})],K.prototype,`value`,void 0),K=z([a(`kb-sort-control`)],K);function _n(e){return n`<svg
|
|
653
|
+
class="topic-icon"
|
|
654
|
+
viewBox="0 0 24 24"
|
|
655
|
+
width="20"
|
|
656
|
+
height="20"
|
|
657
|
+
aria-hidden="true"
|
|
658
|
+
focusable="false"
|
|
659
|
+
fill="none"
|
|
660
|
+
stroke="currentColor"
|
|
661
|
+
stroke-width="1.5"
|
|
662
|
+
stroke-linecap="round"
|
|
663
|
+
stroke-linejoin="round"
|
|
664
|
+
>
|
|
665
|
+
<path d=${e===`book`?`M12 5C9 3 5 3 2 4v15c3-1 7-1 10 1 3-2 7-2 10-1V4c-3-1-7-1-10 1Zm0 0v15`:e===`newspaper`?`M4 3h16v18H4V3Zm3 4h4v4H7V7Zm7 0h3m-3 4h3M7 15h10M7 18h10`:`M3 3h8l10 10-8 8L3 11V3Zm4 4h.01`}></path>
|
|
666
|
+
</svg>`}var q=class extends e{constructor(...e){super(...e),this.topics=[],this.selectedCode=``,this.canScrollBack=!1,this.canScrollForward=!1,this.measureOverflow=()=>{let e=this.viewport,t=e?Math.max(0,e.scrollWidth-e.clientWidth):0,n=e?Math.max(0,Math.min(t,e.scrollLeft)):0,r=t>1&&n>1,i=t>1&&n<t-1,a=this.shadowRoot?.activeElement;a?.matches(`.scroll-control`)&&(!r&&a.getAttribute(`aria-label`)===`Scroll topics left`||!i&&a.getAttribute(`aria-label`)===`Scroll topics right`)&&e?.focus({preventScroll:!0}),this.canScrollBack=r,this.canScrollForward=i}}static{this.styles=t`
|
|
667
|
+
:host {
|
|
668
|
+
display: block;
|
|
669
|
+
min-width: 0;
|
|
670
|
+
max-width: 100%;
|
|
671
|
+
color: var(--clr-on-surface, #092241);
|
|
672
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
673
|
+
font-size: var(--text-default-size, 1rem);
|
|
674
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
675
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
676
|
+
font-weight: var(--text-default-weight, normal);
|
|
677
|
+
}
|
|
678
|
+
.filter {
|
|
679
|
+
display: grid;
|
|
680
|
+
grid-template-columns: 30px minmax(0, 1fr) 30px;
|
|
681
|
+
align-items: center;
|
|
682
|
+
gap: 6px;
|
|
683
|
+
min-width: 0;
|
|
684
|
+
}
|
|
685
|
+
.viewport {
|
|
686
|
+
flex: 1;
|
|
687
|
+
min-width: 0;
|
|
688
|
+
overflow-x: auto;
|
|
689
|
+
scrollbar-width: none;
|
|
690
|
+
overscroll-behavior-x: contain;
|
|
691
|
+
scroll-padding-inline: 0.25rem;
|
|
692
|
+
}
|
|
693
|
+
.viewport::-webkit-scrollbar {
|
|
694
|
+
display: none;
|
|
695
|
+
}
|
|
696
|
+
.topics {
|
|
697
|
+
display: flex;
|
|
698
|
+
gap: 0.5rem;
|
|
699
|
+
/* Keep a definite viewport-sized content box so each chip's percentage
|
|
700
|
+
limit resolves, while the nonshrinking children still scroll as a row. */
|
|
701
|
+
box-sizing: border-box;
|
|
702
|
+
padding: 0.25rem;
|
|
703
|
+
}
|
|
704
|
+
button {
|
|
705
|
+
flex: none;
|
|
706
|
+
min-width: 2.75rem;
|
|
707
|
+
min-height: 2.75rem;
|
|
708
|
+
border: 1px solid var(--clr-form-outline, rgba(9, 34, 65, 0.5));
|
|
709
|
+
border-radius: 1.5rem;
|
|
710
|
+
padding: 0.5rem 0.875rem;
|
|
711
|
+
background: var(--clr-surface-container-lowest, #fff);
|
|
712
|
+
color: inherit;
|
|
713
|
+
font: inherit;
|
|
714
|
+
cursor: pointer;
|
|
715
|
+
}
|
|
716
|
+
.chip {
|
|
717
|
+
display: inline-flex;
|
|
718
|
+
align-items: center;
|
|
719
|
+
gap: 0.5rem;
|
|
720
|
+
box-sizing: border-box;
|
|
721
|
+
max-width: 100%;
|
|
722
|
+
min-height: 44px;
|
|
723
|
+
padding: 0 12px;
|
|
724
|
+
border: 0;
|
|
725
|
+
border-block: 6px solid transparent;
|
|
726
|
+
border-radius: 22px;
|
|
727
|
+
background: var(--clr-primary, #1456e0);
|
|
728
|
+
background-clip: padding-box;
|
|
729
|
+
color: var(--clr-on-primary, #fff);
|
|
730
|
+
line-height: 20px;
|
|
731
|
+
font-weight: 400;
|
|
732
|
+
}
|
|
733
|
+
.chip span {
|
|
734
|
+
min-width: 0;
|
|
735
|
+
white-space: nowrap;
|
|
736
|
+
overflow: hidden;
|
|
737
|
+
text-overflow: ellipsis;
|
|
738
|
+
}
|
|
739
|
+
.topic-icon {
|
|
740
|
+
flex: none;
|
|
741
|
+
}
|
|
742
|
+
.chip[aria-pressed='true'] {
|
|
743
|
+
background-color: var(--clr-primary, #1456e0);
|
|
744
|
+
font-weight: 400;
|
|
745
|
+
}
|
|
746
|
+
.chip:hover,
|
|
747
|
+
.chip[aria-pressed='true']:hover {
|
|
748
|
+
background-color: #071454;
|
|
749
|
+
}
|
|
750
|
+
.selected-icon {
|
|
751
|
+
flex: none;
|
|
752
|
+
color: rgba(255, 255, 255, 0.7);
|
|
753
|
+
}
|
|
754
|
+
button:focus-visible,
|
|
755
|
+
.viewport:focus-visible {
|
|
756
|
+
outline: 2px solid var(--clr-primary, #1456e0);
|
|
757
|
+
outline-offset: 2px;
|
|
758
|
+
}
|
|
759
|
+
button:disabled {
|
|
760
|
+
opacity: 0.5;
|
|
761
|
+
cursor: default;
|
|
762
|
+
}
|
|
763
|
+
.scroll-control,
|
|
764
|
+
.scroll-control[hidden] {
|
|
765
|
+
display: flex;
|
|
766
|
+
align-items: center;
|
|
767
|
+
justify-content: center;
|
|
768
|
+
min-width: 30px;
|
|
769
|
+
min-height: 28px;
|
|
770
|
+
width: 30px;
|
|
771
|
+
padding: 2px;
|
|
772
|
+
border: 0;
|
|
773
|
+
background: transparent;
|
|
774
|
+
color: rgba(0, 0, 0, 0.54);
|
|
775
|
+
}
|
|
776
|
+
.scroll-control[hidden] {
|
|
777
|
+
visibility: hidden;
|
|
778
|
+
}
|
|
779
|
+
.scroll-control:hover {
|
|
780
|
+
background: rgba(0, 0, 0, 0.04);
|
|
781
|
+
}
|
|
782
|
+
@media (min-width: 1200px) {
|
|
783
|
+
.filter {
|
|
784
|
+
width: calc(100% + 72px);
|
|
785
|
+
margin-inline-start: -36px;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
@media (max-width: 599.95px) {
|
|
789
|
+
.filter {
|
|
790
|
+
grid-template-columns: minmax(0, 1fr);
|
|
791
|
+
}
|
|
792
|
+
.scroll-control,
|
|
793
|
+
.scroll-control[hidden] {
|
|
794
|
+
display: none;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
@media (prefers-reduced-motion: reduce) {
|
|
798
|
+
.viewport {
|
|
799
|
+
scroll-behavior: auto;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
@media (forced-colors: active) {
|
|
803
|
+
.chip[aria-pressed='true'] {
|
|
804
|
+
outline: 2px solid Highlight;
|
|
805
|
+
outline-offset: -4px;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
`}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){this.releaseViewport(),super.disconnectedCallback()}updated(){if(!this.isConnected)return;let e=this.renderRoot.querySelector(`.viewport`)??void 0;e!==this.viewport&&(this.releaseViewport(),this.viewport=e,e&&(e.addEventListener(`scroll`,this.measureOverflow,{passive:!0}),window.addEventListener(`resize`,this.measureOverflow),typeof ResizeObserver<`u`&&(this.observer=new ResizeObserver(this.measureOverflow),this.observer.observe(e),this.observer.observe(e.querySelector(`.topics`))))),this.measureOverflow()}releaseViewport(){this.observer?.disconnect(),this.observer=void 0,this.viewport?.removeEventListener(`scroll`,this.measureOverflow),window.removeEventListener(`resize`,this.measureOverflow),this.viewport=void 0}scrollTopics(e){if(this.measureOverflow(),e<0?!this.canScrollBack:!this.canScrollForward)return;let t=this.viewport;if(!t)return;let n=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!0;t.scrollBy({left:e*100,behavior:n?`auto`:`smooth`})}revealFocusedChip(e){let t=e.target,n=this.viewport;if(!n||!t.classList.contains(`chip`))return;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.left<r.left?i.left-r.left-4:i.right>r.right?i.right-r.right+4:0;a&&n.scrollBy({left:a,behavior:`auto`})}select(e){this.dispatchEvent(new CustomEvent(`kb-topic-change`,{detail:{code:e===this.selectedCode?``:e},bubbles:!0,composed:!0}))}render(){let e=new Set,t=this.topics.filter(t=>typeof t?.code!=`string`||!t.code.trim()||e.has(t.code)?!1:(e.add(t.code),!0));return t.length?n`
|
|
809
|
+
<div class="filter" dir="ltr" role="group" aria-label="Filter by topic">
|
|
810
|
+
<button
|
|
811
|
+
class="scroll-control"
|
|
812
|
+
type="button"
|
|
813
|
+
aria-label="Scroll topics left"
|
|
814
|
+
aria-controls="topic-viewport"
|
|
815
|
+
?hidden=${!this.canScrollBack}
|
|
816
|
+
?disabled=${!this.canScrollBack}
|
|
817
|
+
@click=${()=>this.scrollTopics(-1)}
|
|
818
|
+
>
|
|
819
|
+
<svg
|
|
820
|
+
width="24"
|
|
821
|
+
height="24"
|
|
822
|
+
viewBox="0 0 24 24"
|
|
823
|
+
aria-hidden="true"
|
|
824
|
+
focusable="false"
|
|
825
|
+
fill="currentColor"
|
|
826
|
+
>
|
|
827
|
+
<path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path>
|
|
828
|
+
</svg>
|
|
829
|
+
</button>
|
|
830
|
+
<div
|
|
831
|
+
id="topic-viewport"
|
|
832
|
+
class="viewport"
|
|
833
|
+
dir="ltr"
|
|
834
|
+
tabindex="0"
|
|
835
|
+
role="group"
|
|
836
|
+
aria-label="Topics"
|
|
837
|
+
@focusin=${this.revealFocusedChip}
|
|
838
|
+
>
|
|
839
|
+
<div class="topics">
|
|
840
|
+
${d(t,e=>e.code,e=>n`
|
|
841
|
+
<button
|
|
842
|
+
class="chip"
|
|
843
|
+
type="button"
|
|
844
|
+
title=${e.name?.trim()?e.name:e.code}
|
|
845
|
+
dir="auto"
|
|
846
|
+
data-code=${e.code}
|
|
847
|
+
aria-pressed=${String(this.selectedCode===e.code)}
|
|
848
|
+
@click=${()=>this.select(e.code)}
|
|
849
|
+
>
|
|
850
|
+
${_n(e.icon)}
|
|
851
|
+
<span>${e.name?.trim()?e.name:e.code}</span>
|
|
852
|
+
${this.selectedCode===e.code?n`<svg class="selected-icon" aria-hidden="true" focusable="false" width="22" height="22" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"></path></svg>`:r}
|
|
853
|
+
</button>
|
|
854
|
+
`)}
|
|
855
|
+
</div>
|
|
856
|
+
</div>
|
|
857
|
+
<button
|
|
858
|
+
class="scroll-control"
|
|
859
|
+
type="button"
|
|
860
|
+
aria-label="Scroll topics right"
|
|
861
|
+
aria-controls="topic-viewport"
|
|
862
|
+
?hidden=${!this.canScrollForward}
|
|
863
|
+
?disabled=${!this.canScrollForward}
|
|
864
|
+
@click=${()=>this.scrollTopics(1)}
|
|
865
|
+
>
|
|
866
|
+
<svg
|
|
867
|
+
width="24"
|
|
868
|
+
height="24"
|
|
869
|
+
viewBox="0 0 24 24"
|
|
870
|
+
aria-hidden="true"
|
|
871
|
+
focusable="false"
|
|
872
|
+
fill="currentColor"
|
|
873
|
+
>
|
|
874
|
+
<path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path>
|
|
875
|
+
</svg>
|
|
876
|
+
</button>
|
|
877
|
+
</div>
|
|
878
|
+
`:r}};z([o({attribute:!1})],q.prototype,`topics`,void 0),z([o({type:String,attribute:`selected-code`})],q.prototype,`selectedCode`,void 0),z([s()],q.prototype,`canScrollBack`,void 0),z([s()],q.prototype,`canScrollForward`,void 0),q=z([a(`kb-topic-filter`)],q);var vn=class extends e{constructor(...e){super(...e),this.years=[],this.selectedYear=null}static{this.styles=t`
|
|
879
|
+
:host {
|
|
880
|
+
display: block;
|
|
881
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
882
|
+
font-size: var(--text-default-size, 1rem);
|
|
883
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
884
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
885
|
+
font-weight: var(--text-default-weight, normal);
|
|
886
|
+
}
|
|
887
|
+
.years {
|
|
888
|
+
display: flex;
|
|
889
|
+
flex-wrap: wrap;
|
|
890
|
+
gap: 0.5rem;
|
|
891
|
+
padding: 0.25rem;
|
|
892
|
+
}
|
|
893
|
+
button {
|
|
894
|
+
min-width: 3rem;
|
|
895
|
+
min-height: 2.75rem;
|
|
896
|
+
padding: 0 16px;
|
|
897
|
+
border: 0;
|
|
898
|
+
border-block: 6px solid transparent;
|
|
899
|
+
border-radius: 999px;
|
|
900
|
+
background: var(--clr-primary, #1456e0);
|
|
901
|
+
background-clip: padding-box;
|
|
902
|
+
color: var(--clr-on-primary, #fff);
|
|
903
|
+
font: inherit;
|
|
904
|
+
line-height: 20px;
|
|
905
|
+
display: inline-flex;
|
|
906
|
+
align-items: center;
|
|
907
|
+
gap: 8px;
|
|
908
|
+
cursor: pointer;
|
|
909
|
+
}
|
|
910
|
+
button[aria-pressed='true'] {
|
|
911
|
+
background-color: var(--clr-primary, #1456e0);
|
|
912
|
+
font-weight: 700;
|
|
913
|
+
}
|
|
914
|
+
button:hover {
|
|
915
|
+
text-decoration: underline;
|
|
916
|
+
}
|
|
917
|
+
button:focus-visible {
|
|
918
|
+
outline: 3px solid var(--clr-primary, #1456e0);
|
|
919
|
+
outline-offset: 3px;
|
|
920
|
+
}
|
|
921
|
+
@media (forced-colors: active) {
|
|
922
|
+
button[aria-pressed='true'] {
|
|
923
|
+
border-color: Highlight;
|
|
924
|
+
}
|
|
925
|
+
button:focus-visible {
|
|
926
|
+
outline-color: Highlight;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
`}selectYear(e){an(this.years).includes(e)&&this.dispatchEvent(new CustomEvent(`kb-year-change`,{detail:{year:e},bubbles:!0,composed:!0}))}render(){let e=an(this.years);return e.length?n`
|
|
930
|
+
<div class="years" role="group" aria-label="Filter release notes by year">
|
|
931
|
+
${d(e,e=>e,e=>n`
|
|
932
|
+
<button
|
|
933
|
+
type="button"
|
|
934
|
+
aria-pressed=${this.selectedYear===e?`true`:`false`}
|
|
935
|
+
@click=${()=>this.selectYear(e)}
|
|
936
|
+
>
|
|
937
|
+
${this.selectedYear===e?n`<svg aria-hidden="true" focusable="false" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m5 12 4 4L19 6"></path></svg>`:r}
|
|
938
|
+
${e}
|
|
939
|
+
</button>
|
|
940
|
+
`)}
|
|
941
|
+
</div>
|
|
942
|
+
`:r}};z([o({attribute:!1})],vn.prototype,`years`,void 0),z([o({attribute:!1})],vn.prototype,`selectedYear`,void 0),vn=z([a(`kb-whats-new-year-filter`)],vn);function yn(e){for(let t of[e.dateAdded,e.publishedAt]){if(!t)continue;let e=new Date(t);if(Number.isFinite(e.getTime()))return e}}var bn=class extends e{constructor(...e){super(...e),this.post=null}static{this.styles=t`
|
|
943
|
+
:host {
|
|
944
|
+
display: block;
|
|
945
|
+
min-inline-size: 0;
|
|
946
|
+
color: var(--clr-on-surface, #092241);
|
|
947
|
+
overflow-wrap: anywhere;
|
|
948
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
949
|
+
font-size: var(--text-default-size, 1rem);
|
|
950
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
951
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
952
|
+
font-weight: var(--text-default-weight, normal);
|
|
953
|
+
}
|
|
954
|
+
article {
|
|
955
|
+
display: grid;
|
|
956
|
+
grid-template-columns: 20px minmax(0, 1fr);
|
|
957
|
+
column-gap: 20px;
|
|
958
|
+
padding-block: 16px 24px;
|
|
959
|
+
padding-inline: 16px 24px;
|
|
960
|
+
border: 0;
|
|
961
|
+
/* Match the shared Tailwind shadow-lg elevation, without an inset outline. */
|
|
962
|
+
box-shadow:
|
|
963
|
+
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
964
|
+
0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
965
|
+
border-radius: 12px;
|
|
966
|
+
background: var(--clr-surface-container-lowest, #fff);
|
|
967
|
+
}
|
|
968
|
+
.content {
|
|
969
|
+
min-inline-size: 0;
|
|
970
|
+
}
|
|
971
|
+
h2 {
|
|
972
|
+
margin: 0 0 1rem;
|
|
973
|
+
font-family: var(
|
|
974
|
+
--text-heading-font,
|
|
975
|
+
var(--root-secondary-font, 'Red Hat Display', sans-serif)
|
|
976
|
+
);
|
|
977
|
+
font-size: 20px;
|
|
978
|
+
line-height: 24px;
|
|
979
|
+
letter-spacing: var(--text-heading-letter-spacing, 0.0075em);
|
|
980
|
+
font-weight: var(--text-heading-weight, bold);
|
|
981
|
+
}
|
|
982
|
+
a {
|
|
983
|
+
color: inherit;
|
|
984
|
+
text-underline-offset: 0.2em;
|
|
985
|
+
}
|
|
986
|
+
h2 a {
|
|
987
|
+
text-decoration: none;
|
|
988
|
+
}
|
|
989
|
+
h2 a:hover,
|
|
990
|
+
h2 a:focus-visible {
|
|
991
|
+
text-decoration: underline;
|
|
992
|
+
}
|
|
993
|
+
a:focus-visible {
|
|
994
|
+
outline: 2px solid var(--clr-primary, #1456e0);
|
|
995
|
+
outline-offset: 3px;
|
|
996
|
+
}
|
|
997
|
+
.metadata {
|
|
998
|
+
display: flex;
|
|
999
|
+
align-items: center;
|
|
1000
|
+
gap: 8px;
|
|
1001
|
+
margin-block-end: 8px;
|
|
1002
|
+
font-size: 14px;
|
|
1003
|
+
line-height: 24px;
|
|
1004
|
+
}
|
|
1005
|
+
.chain-icon {
|
|
1006
|
+
margin-block-start: 2px;
|
|
1007
|
+
color: var(--clr-info, var(--cp-info-50, var(--clr-primary, currentColor)));
|
|
1008
|
+
}
|
|
1009
|
+
.topics {
|
|
1010
|
+
display: flex;
|
|
1011
|
+
flex-wrap: wrap;
|
|
1012
|
+
gap: 0.5rem;
|
|
1013
|
+
margin: 0;
|
|
1014
|
+
padding: 0;
|
|
1015
|
+
list-style: none;
|
|
1016
|
+
}
|
|
1017
|
+
.topics li {
|
|
1018
|
+
padding: 0;
|
|
1019
|
+
font-size: var(--text-small-size, 0.875rem);
|
|
1020
|
+
line-height: var(--text-small-line-height, 1.42857143em);
|
|
1021
|
+
letter-spacing: var(--text-small-letter-spacing, 0.0275em);
|
|
1022
|
+
}
|
|
1023
|
+
.body {
|
|
1024
|
+
font-size: 14px;
|
|
1025
|
+
line-height: 24px;
|
|
1026
|
+
}
|
|
1027
|
+
.body img,
|
|
1028
|
+
.body video,
|
|
1029
|
+
.body audio {
|
|
1030
|
+
max-inline-size: 100%;
|
|
1031
|
+
block-size: auto;
|
|
1032
|
+
}
|
|
1033
|
+
.body table {
|
|
1034
|
+
display: block;
|
|
1035
|
+
max-inline-size: 100%;
|
|
1036
|
+
overflow: auto;
|
|
1037
|
+
}
|
|
1038
|
+
.body pre {
|
|
1039
|
+
white-space: pre-wrap;
|
|
1040
|
+
}
|
|
1041
|
+
time {
|
|
1042
|
+
display: block;
|
|
1043
|
+
margin-block: 0 1rem;
|
|
1044
|
+
font-size: var(--text-small-size, 0.875rem);
|
|
1045
|
+
line-height: var(--text-small-line-height, 1.42857143em);
|
|
1046
|
+
letter-spacing: var(--text-small-letter-spacing, 0.0275em);
|
|
1047
|
+
}
|
|
1048
|
+
@media (forced-colors: active) {
|
|
1049
|
+
article {
|
|
1050
|
+
border: 1px solid CanvasText;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
`}render(){let e=this.post;if(!e)return r;let t=yn(e),i=e.topics.filter(e=>e.name.trim());return n`
|
|
1054
|
+
<article aria-labelledby="post-title">
|
|
1055
|
+
<svg
|
|
1056
|
+
class="chain-icon"
|
|
1057
|
+
aria-hidden="true"
|
|
1058
|
+
focusable="false"
|
|
1059
|
+
width="20"
|
|
1060
|
+
height="20"
|
|
1061
|
+
viewBox="0 0 24 24"
|
|
1062
|
+
fill="none"
|
|
1063
|
+
stroke="currentColor"
|
|
1064
|
+
stroke-width="2"
|
|
1065
|
+
>
|
|
1066
|
+
<path d="M10 7H7a5 5 0 0 0 0 10h3m4-10h3a5 5 0 0 1 0 10h-3m-6-5h8"></path>
|
|
1067
|
+
</svg>
|
|
1068
|
+
<div class="content">
|
|
1069
|
+
<div class="metadata">
|
|
1070
|
+
${i.length?n`<ul class="topics" aria-label="Topics">
|
|
1071
|
+
${i.map(e=>n`<li>${e.name}</li>`)}
|
|
1072
|
+
</ul>`:n`<span class="no-topics">No topics</span>`}
|
|
1073
|
+
</div>
|
|
1074
|
+
<h2 id="post-title">
|
|
1075
|
+
<a href=${`${m}/details/${encodeURIComponent(e.uid)}`}
|
|
1076
|
+
>${e.title||`Untitled article`}</a
|
|
1077
|
+
>
|
|
1078
|
+
</h2>
|
|
1079
|
+
${t?n`<time datetime=${t.toISOString()}
|
|
1080
|
+
>${t.toLocaleDateString(`en`,{year:`numeric`,month:`short`,day:`numeric`,timeZone:`UTC`})}</time
|
|
1081
|
+
>`:r}
|
|
1082
|
+
<div class="body">${e.body}</div>
|
|
1083
|
+
</div>
|
|
1084
|
+
</article>
|
|
1085
|
+
`}};z([o({attribute:!1})],bn.prototype,`post`,void 0),bn=z([a(`kb-post-text`)],bn);function xn(e){if(e)try{let t=new URL(e);return(t.protocol===`https:`||t.protocol===`http:`)&&!t.username&&!t.password?t.href:void 0}catch{return}}var Sn=class extends e{constructor(...e){super(...e),this.post=null}static{this.styles=t`
|
|
348
1086
|
:host {
|
|
349
1087
|
display: block;
|
|
350
|
-
|
|
1088
|
+
min-inline-size: 0;
|
|
1089
|
+
color: var(--clr-on-surface, #092241);
|
|
1090
|
+
overflow-wrap: anywhere;
|
|
1091
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
1092
|
+
font-size: var(--text-default-size, 1rem);
|
|
1093
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
1094
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
1095
|
+
font-weight: var(--text-default-weight, normal);
|
|
1096
|
+
}
|
|
1097
|
+
article {
|
|
1098
|
+
position: relative;
|
|
1099
|
+
display: grid;
|
|
1100
|
+
grid-template-columns: 20px minmax(0, 1fr);
|
|
1101
|
+
column-gap: 20px;
|
|
1102
|
+
padding-block: 16px 24px;
|
|
1103
|
+
padding-inline: 16px 24px;
|
|
1104
|
+
border: 0;
|
|
1105
|
+
/* Match the shared Tailwind shadow-lg elevation, without an inset outline. */
|
|
1106
|
+
box-shadow:
|
|
1107
|
+
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
1108
|
+
0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
1109
|
+
border-radius: 12px;
|
|
1110
|
+
background: var(--clr-surface-container-lowest, #fff);
|
|
1111
|
+
}
|
|
1112
|
+
.content {
|
|
1113
|
+
min-inline-size: 0;
|
|
1114
|
+
}
|
|
1115
|
+
h2 {
|
|
1116
|
+
margin: 0 0 1rem;
|
|
1117
|
+
font-family: var(
|
|
1118
|
+
--text-heading-font,
|
|
1119
|
+
var(--root-secondary-font, 'Red Hat Display', sans-serif)
|
|
1120
|
+
);
|
|
1121
|
+
font-size: 20px;
|
|
1122
|
+
line-height: 24px;
|
|
1123
|
+
letter-spacing: var(--text-heading-letter-spacing, 0.0075em);
|
|
1124
|
+
font-weight: var(--text-heading-weight, bold);
|
|
1125
|
+
}
|
|
1126
|
+
a {
|
|
1127
|
+
color: inherit;
|
|
1128
|
+
text-underline-offset: 0.2em;
|
|
1129
|
+
}
|
|
1130
|
+
h2 a {
|
|
1131
|
+
text-decoration: none;
|
|
1132
|
+
}
|
|
1133
|
+
/* Stretch only the primary anchor; sanitized body controls remain independent. */
|
|
1134
|
+
.primary-document::after {
|
|
1135
|
+
content: '';
|
|
1136
|
+
position: absolute;
|
|
1137
|
+
inset: 0;
|
|
1138
|
+
border-radius: 12px;
|
|
1139
|
+
}
|
|
1140
|
+
.primary-document:focus-visible::after {
|
|
1141
|
+
outline: 2px solid var(--clr-primary, #1456e0);
|
|
1142
|
+
outline-offset: 3px;
|
|
1143
|
+
}
|
|
1144
|
+
.body a,
|
|
1145
|
+
.body button,
|
|
1146
|
+
.body input,
|
|
1147
|
+
.body select,
|
|
1148
|
+
.body textarea,
|
|
1149
|
+
.body [tabindex],
|
|
1150
|
+
.body details,
|
|
1151
|
+
.body summary,
|
|
1152
|
+
.body audio[controls],
|
|
1153
|
+
.body video[controls],
|
|
1154
|
+
.documents a {
|
|
1155
|
+
position: relative;
|
|
1156
|
+
z-index: 1;
|
|
1157
|
+
}
|
|
1158
|
+
h2 a:hover,
|
|
1159
|
+
h2 a:focus-visible {
|
|
1160
|
+
text-decoration: underline;
|
|
1161
|
+
}
|
|
1162
|
+
a:focus-visible {
|
|
1163
|
+
outline: 2px solid var(--clr-primary, #1456e0);
|
|
1164
|
+
outline-offset: 3px;
|
|
1165
|
+
}
|
|
1166
|
+
.metadata {
|
|
1167
|
+
display: flex;
|
|
1168
|
+
align-items: center;
|
|
1169
|
+
gap: 8px;
|
|
1170
|
+
margin-block-end: 8px;
|
|
1171
|
+
font-size: 14px;
|
|
1172
|
+
line-height: 24px;
|
|
1173
|
+
}
|
|
1174
|
+
.chain-icon {
|
|
1175
|
+
margin-block-start: 2px;
|
|
1176
|
+
color: var(--clr-info, var(--cp-info-50, var(--clr-primary, currentColor)));
|
|
1177
|
+
}
|
|
1178
|
+
.topics {
|
|
1179
|
+
display: flex;
|
|
1180
|
+
flex-wrap: wrap;
|
|
1181
|
+
gap: 0.5rem;
|
|
1182
|
+
margin: 0;
|
|
1183
|
+
padding: 0;
|
|
1184
|
+
list-style: none;
|
|
1185
|
+
}
|
|
1186
|
+
.topics li {
|
|
1187
|
+
padding: 0;
|
|
1188
|
+
font-size: var(--text-small-size, 0.875rem);
|
|
1189
|
+
line-height: var(--text-small-line-height, 1.42857143em);
|
|
1190
|
+
letter-spacing: var(--text-small-letter-spacing, 0.0275em);
|
|
1191
|
+
}
|
|
1192
|
+
.body {
|
|
1193
|
+
font-size: 14px;
|
|
1194
|
+
line-height: 24px;
|
|
1195
|
+
}
|
|
1196
|
+
.body img,
|
|
1197
|
+
.body video,
|
|
1198
|
+
.body audio {
|
|
1199
|
+
max-inline-size: 100%;
|
|
1200
|
+
block-size: auto;
|
|
1201
|
+
}
|
|
1202
|
+
.body table {
|
|
1203
|
+
display: block;
|
|
1204
|
+
max-inline-size: 100%;
|
|
1205
|
+
overflow: auto;
|
|
1206
|
+
}
|
|
1207
|
+
.body pre {
|
|
1208
|
+
white-space: pre-wrap;
|
|
1209
|
+
}
|
|
1210
|
+
.documents {
|
|
1211
|
+
padding-inline-start: 1.25rem;
|
|
1212
|
+
margin-block: 1rem 0;
|
|
1213
|
+
}
|
|
1214
|
+
.documents li {
|
|
1215
|
+
margin-block: 0.5rem;
|
|
1216
|
+
}
|
|
1217
|
+
.documents a {
|
|
1218
|
+
display: inline-block;
|
|
1219
|
+
padding-block: 0.25rem;
|
|
351
1220
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
1221
|
+
@media (forced-colors: active) {
|
|
1222
|
+
article {
|
|
1223
|
+
border: 1px solid CanvasText;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
`}render(){let e=this.post;if(!e)return r;let t=e.topics.filter(e=>e.name.trim()),i=e.documents.flatMap((e,t)=>{let n=xn(e.url);return n?[{href:n,label:e.name?.trim()||`Document ${t+1}`}]:[]}),a=i.length===1?i[0]:void 0;return n`
|
|
1227
|
+
<article aria-labelledby="post-title">
|
|
1228
|
+
<svg
|
|
1229
|
+
class="chain-icon"
|
|
1230
|
+
aria-hidden="true"
|
|
1231
|
+
focusable="false"
|
|
1232
|
+
width="20"
|
|
1233
|
+
height="20"
|
|
1234
|
+
viewBox="0 0 24 24"
|
|
1235
|
+
fill="none"
|
|
1236
|
+
stroke="currentColor"
|
|
1237
|
+
stroke-width="2"
|
|
1238
|
+
>
|
|
1239
|
+
<path d="M10 7H7a5 5 0 0 0 0 10h3m4-10h3a5 5 0 0 1 0 10h-3m-6-5h8"></path>
|
|
1240
|
+
</svg>
|
|
1241
|
+
<div class="content">
|
|
1242
|
+
<div class="metadata">
|
|
1243
|
+
${t.length?n`<ul class="topics" aria-label="Topics">
|
|
1244
|
+
${t.map(e=>n`<li>${e.name}</li>`)}
|
|
1245
|
+
</ul>`:n`<span class="no-topics">No topics</span>`}
|
|
1246
|
+
</div>
|
|
1247
|
+
<h2 id="post-title">
|
|
1248
|
+
<a
|
|
1249
|
+
href=${a?.href??`${m}/details/${encodeURIComponent(e.uid)}`}
|
|
1250
|
+
class=${a?`primary-document`:r}
|
|
1251
|
+
target=${a?`_blank`:r}
|
|
1252
|
+
rel=${a?`noopener noreferrer`:r}
|
|
1253
|
+
>${e.title||`Untitled article`}</a
|
|
1254
|
+
>
|
|
1255
|
+
</h2>
|
|
1256
|
+
<div class="body">${e.body}</div>
|
|
1257
|
+
${i.length>1?n`<ul class="documents" aria-label="Documents">
|
|
1258
|
+
${i.map(e=>n`<li><a href=${e.href} target="_blank" rel="noopener noreferrer">${e.label}</a></li>`)}
|
|
1259
|
+
</ul>`:r}
|
|
1260
|
+
</div>
|
|
1261
|
+
</article>
|
|
1262
|
+
`}};z([o({attribute:!1})],Sn.prototype,`post`,void 0),Sn=z([a(`kb-post-document-card`)],Sn);function Cn(e){if(e<=0)return 0;let t=e/36;return Math.round(10*(4+15*t**.25+t/5))}var wn=0,J=class extends e{constructor(...e){super(...e),this.post=null,this.expanded=!1,this.retaining=!1,this.fromHeight=0,this.motionPreference=()=>{this.reduceMotion?.matches&&(this.cancelMotion(),this.retaining=!1)},this.buttonId=`kb-accordion-button-${++wn}`,this.panelId=`${this.buttonId}-panel`}connectedCallback(){super.connectedCallback(),this.reduceMotion=window.matchMedia?.(`(prefers-reduced-motion: reduce)`),this.reduceMotion?.addEventListener?.(`change`,this.motionPreference)}disconnectedCallback(){this.cancelMotion(),this.retaining=!1,this.reduceMotion?.removeEventListener?.(`change`,this.motionPreference),super.disconnectedCallback()}cancelMotion(){this.motionTimer!==void 0&&clearTimeout(this.motionTimer),this.motionTimer=void 0,this.motion&&(this.motion.onfinish=null,this.motion.cancel()),this.motion=void 0}willUpdate(e){if(!e.has(`expanded`)&&!e.has(`post`))return;let t=this.shadowRoot?.querySelector(`.panel`);this.fromHeight=t?.getBoundingClientRect().height??0,this.cancelMotion(),this.retaining=this.hasUpdated&&!e.has(`post`)&&!!t?.animate&&!this.reduceMotion?.matches,!this.expanded&&t?.contains(this.shadowRoot?.activeElement??null)&&this.shadowRoot?.querySelector(`button`)?.focus()}updated(e){if(!this.retaining||!e.has(`expanded`)||!this.isConnected)return;let t=this.shadowRoot.querySelector(`.panel`),n=this.shadowRoot.querySelector(`.panel-content`);if(!t||!n){this.retaining=!1;return}let r=n.getBoundingClientRect().height,i=Cn(r),a=this.expanded?r:0;if(!i||this.fromHeight===a){this.retaining=!1;return}let o=t.animate([{height:`${this.fromHeight}px`},{height:`${a}px`}],{duration:i,easing:`cubic-bezier(0.4, 0, 0.2, 1)`});this.motion=o;let s=()=>{this.motion===o&&(this.cancelMotion(),this.retaining=!1)};o.onfinish=s,this.motionTimer=setTimeout(s,i+60)}static{this.styles=t`
|
|
356
1263
|
:host {
|
|
357
1264
|
display: block;
|
|
358
|
-
|
|
1265
|
+
color: var(--clr-on-surface, #092241);
|
|
1266
|
+
overflow-wrap: anywhere;
|
|
1267
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
1268
|
+
font-size: var(--text-default-size, 1rem);
|
|
1269
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
1270
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
1271
|
+
font-weight: var(--text-default-weight, normal);
|
|
1272
|
+
}
|
|
1273
|
+
article {
|
|
1274
|
+
border-radius: 12px;
|
|
1275
|
+
background: var(--clr-surface-container-lowest, #fff);
|
|
1276
|
+
box-shadow:
|
|
1277
|
+
0 12px 20px -12px rgba(0, 0, 0, 0.12),
|
|
1278
|
+
inset 0 0 0 1px var(--clr-outline, #0922411f);
|
|
1279
|
+
}
|
|
1280
|
+
h2 {
|
|
1281
|
+
margin: 0;
|
|
1282
|
+
font-family: var(
|
|
1283
|
+
--text-heading-font,
|
|
1284
|
+
var(--root-secondary-font, 'Red Hat Display', sans-serif)
|
|
1285
|
+
);
|
|
1286
|
+
font-size: 20px;
|
|
1287
|
+
line-height: 24px;
|
|
1288
|
+
letter-spacing: var(--text-heading-letter-spacing, 0.0075em);
|
|
1289
|
+
font-weight: var(--text-heading-weight, bold);
|
|
1290
|
+
}
|
|
1291
|
+
button {
|
|
1292
|
+
display: flex;
|
|
1293
|
+
align-items: center;
|
|
1294
|
+
justify-content: space-between;
|
|
1295
|
+
gap: 1rem;
|
|
1296
|
+
width: 100%;
|
|
1297
|
+
box-sizing: border-box;
|
|
1298
|
+
min-height: 72px;
|
|
1299
|
+
padding: 24px;
|
|
1300
|
+
border: 0;
|
|
1301
|
+
background: transparent;
|
|
1302
|
+
color: inherit;
|
|
1303
|
+
font: inherit;
|
|
1304
|
+
font-weight: 700;
|
|
1305
|
+
text-align: left;
|
|
1306
|
+
cursor: pointer;
|
|
359
1307
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
1308
|
+
button:hover .title {
|
|
1309
|
+
text-decoration: underline;
|
|
1310
|
+
}
|
|
1311
|
+
button:focus-visible {
|
|
1312
|
+
outline: 3px solid var(--clr-primary, #1456e0);
|
|
1313
|
+
outline-offset: -3px;
|
|
1314
|
+
}
|
|
1315
|
+
.indicator {
|
|
1316
|
+
flex: none;
|
|
1317
|
+
width: 24px;
|
|
1318
|
+
height: 24px;
|
|
1319
|
+
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
1320
|
+
}
|
|
1321
|
+
button[aria-expanded='true'] .indicator {
|
|
1322
|
+
transform: rotate(180deg);
|
|
1323
|
+
}
|
|
1324
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1325
|
+
.indicator {
|
|
1326
|
+
transition: none;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
.panel {
|
|
1330
|
+
overflow: hidden;
|
|
1331
|
+
}
|
|
1332
|
+
.panel-content {
|
|
1333
|
+
display: flow-root;
|
|
1334
|
+
padding: 0 24px 24px;
|
|
1335
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
1336
|
+
}
|
|
1337
|
+
.panel[hidden] {
|
|
1338
|
+
display: none;
|
|
1339
|
+
}
|
|
1340
|
+
.panel img,
|
|
1341
|
+
.panel video {
|
|
1342
|
+
max-width: 100%;
|
|
1343
|
+
height: auto;
|
|
1344
|
+
}
|
|
1345
|
+
.panel table {
|
|
1346
|
+
display: block;
|
|
1347
|
+
max-width: 100%;
|
|
1348
|
+
overflow: auto;
|
|
1349
|
+
}
|
|
1350
|
+
.panel a {
|
|
1351
|
+
color: var(--clr-primary, #1456e0);
|
|
1352
|
+
text-decoration: underline;
|
|
1353
|
+
}
|
|
1354
|
+
.panel a:focus-visible {
|
|
1355
|
+
outline: 3px solid var(--clr-primary, #1456e0);
|
|
1356
|
+
outline-offset: 2px;
|
|
1357
|
+
}
|
|
1358
|
+
@media (forced-colors: active) {
|
|
1359
|
+
article {
|
|
1360
|
+
border: 1px solid CanvasText;
|
|
1361
|
+
}
|
|
1362
|
+
button:focus-visible,
|
|
1363
|
+
.panel a:focus-visible {
|
|
1364
|
+
outline-color: Highlight;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
`}toggle(e){this.post===e&&this.dispatchEvent(new CustomEvent(`kb-accordion-toggle`,{detail:{uid:e.uid,expanded:!this.expanded},bubbles:!0,composed:!0}))}render(){let e=this.post;return e?n`
|
|
1368
|
+
<article>
|
|
1369
|
+
<h2>
|
|
1370
|
+
<button
|
|
1371
|
+
id=${this.buttonId}
|
|
1372
|
+
type="button"
|
|
1373
|
+
aria-expanded=${this.expanded?`true`:`false`}
|
|
1374
|
+
aria-controls=${this.panelId}
|
|
1375
|
+
@click=${()=>this.toggle(e)}
|
|
1376
|
+
>
|
|
1377
|
+
<span class="title">${e.title}</span>
|
|
1378
|
+
<svg
|
|
1379
|
+
class="indicator"
|
|
1380
|
+
aria-hidden="true"
|
|
1381
|
+
focusable="false"
|
|
1382
|
+
viewBox="0 0 24 24"
|
|
1383
|
+
fill="none"
|
|
1384
|
+
stroke="currentColor"
|
|
1385
|
+
stroke-width="2"
|
|
1386
|
+
>
|
|
1387
|
+
<path d="m6 9 6 6 6-6"></path>
|
|
1388
|
+
</svg>
|
|
1389
|
+
</button>
|
|
1390
|
+
</h2>
|
|
1391
|
+
<div
|
|
1392
|
+
class="panel"
|
|
1393
|
+
id=${this.panelId}
|
|
1394
|
+
role="region"
|
|
1395
|
+
aria-labelledby=${this.buttonId}
|
|
1396
|
+
?hidden=${!this.expanded&&!this.retaining}
|
|
1397
|
+
?inert=${!this.expanded}
|
|
1398
|
+
aria-hidden=${this.expanded?`false`:`true`}
|
|
1399
|
+
>
|
|
1400
|
+
<div class="panel-content">${this.expanded||this.retaining?e.body:r}</div>
|
|
1401
|
+
</div>
|
|
1402
|
+
</article>
|
|
1403
|
+
`:r}};z([o({attribute:!1})],J.prototype,`post`,void 0),z([o({type:Boolean})],J.prototype,`expanded`,void 0),z([s()],J.prototype,`retaining`,void 0),J=z([a(`kb-post-accordion`)],J);var Tn=t`
|
|
1404
|
+
.sr-only {
|
|
1405
|
+
position: absolute;
|
|
1406
|
+
width: 1px;
|
|
1407
|
+
height: 1px;
|
|
1408
|
+
padding: 0;
|
|
1409
|
+
margin: -1px;
|
|
1410
|
+
overflow: hidden;
|
|
1411
|
+
clip: rect(0, 0, 0, 0);
|
|
1412
|
+
clip-path: inset(50%);
|
|
1413
|
+
white-space: nowrap;
|
|
1414
|
+
border: 0;
|
|
1415
|
+
}
|
|
1416
|
+
`;function Y(e,t){if(e?.url&&!(e.mime&&(t===`captions`?e.mime!==`text/vtt`:!e.mime.startsWith(`${t}/`))))try{let t=new URL(e.url);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password?t.href:void 0}catch{return}}function En(e){if(e===void 0||!Number.isFinite(e)||e<0||e>2**53-1)return;let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,`0`);return{text:n?`${n}:${a(r)}:${a(i)}`:`${r}:${a(i)}`,label:`Duration: ${n?`${n} hours, `:``}${r} minutes, ${i} seconds`}}var X=class extends e{constructor(...e){super(...e),this.post=null,this.expanded=!1,this.playbackMessage=``,this.captionMessage=``,this.generation=0,this.onRouteChange=()=>{++this.generation,this.stopPlayer()}}static{this.styles=t`
|
|
1417
|
+
${Tn}
|
|
364
1418
|
:host {
|
|
365
1419
|
display: block;
|
|
366
|
-
|
|
1420
|
+
min-width: 0;
|
|
1421
|
+
color: var(--clr-on-surface, #092241);
|
|
1422
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
1423
|
+
font-size: var(--text-default-size, 1rem);
|
|
1424
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
1425
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
1426
|
+
font-weight: var(--text-default-weight, normal);
|
|
1427
|
+
}
|
|
1428
|
+
article {
|
|
1429
|
+
display: grid;
|
|
1430
|
+
grid-template-columns: 48px minmax(0, 1fr);
|
|
1431
|
+
gap: 12px;
|
|
1432
|
+
padding: 12px 24px 12px 12px;
|
|
1433
|
+
border-radius: 12px;
|
|
1434
|
+
box-shadow:
|
|
1435
|
+
0 12px 20px -12px rgba(0, 0, 0, 0.12),
|
|
1436
|
+
inset 0 0 0 1px var(--clr-outline, #0922411f);
|
|
1437
|
+
background: var(--clr-surface-container-lowest, #fff);
|
|
1438
|
+
overflow-wrap: anywhere;
|
|
1439
|
+
}
|
|
1440
|
+
.summary {
|
|
1441
|
+
min-width: 0;
|
|
1442
|
+
}
|
|
1443
|
+
h2,
|
|
1444
|
+
h3 {
|
|
1445
|
+
margin: 8px 0;
|
|
1446
|
+
font-family: var(
|
|
1447
|
+
--text-heading-font,
|
|
1448
|
+
var(--root-secondary-font, 'Red Hat Display', sans-serif)
|
|
1449
|
+
);
|
|
1450
|
+
font-size: 20px;
|
|
1451
|
+
line-height: 24px;
|
|
1452
|
+
letter-spacing: var(--text-heading-letter-spacing, 0.0075em);
|
|
1453
|
+
font-weight: var(--text-heading-weight, 700);
|
|
1454
|
+
}
|
|
1455
|
+
a {
|
|
1456
|
+
color: inherit;
|
|
1457
|
+
}
|
|
1458
|
+
button {
|
|
1459
|
+
box-sizing: border-box;
|
|
1460
|
+
font: inherit;
|
|
1461
|
+
color: inherit;
|
|
1462
|
+
cursor: pointer;
|
|
1463
|
+
min-height: 44px;
|
|
1464
|
+
min-width: 44px;
|
|
1465
|
+
}
|
|
1466
|
+
.play {
|
|
1467
|
+
position: relative;
|
|
1468
|
+
display: block;
|
|
1469
|
+
width: 48px;
|
|
1470
|
+
height: 48px;
|
|
1471
|
+
padding: 0;
|
|
1472
|
+
border: 0;
|
|
1473
|
+
border-radius: 4px;
|
|
1474
|
+
background: var(--clr-secondary, #092241);
|
|
1475
|
+
}
|
|
1476
|
+
.play img {
|
|
1477
|
+
display: block;
|
|
1478
|
+
width: 100%;
|
|
1479
|
+
height: 100%;
|
|
1480
|
+
object-fit: cover;
|
|
1481
|
+
border-radius: 4px;
|
|
1482
|
+
}
|
|
1483
|
+
.play-icon {
|
|
1484
|
+
position: absolute;
|
|
1485
|
+
inset: 50% auto auto 50%;
|
|
1486
|
+
transform: translate(-50%, -50%);
|
|
1487
|
+
width: 46px;
|
|
1488
|
+
height: 46px;
|
|
1489
|
+
color: var(--clr-on-secondary, #fff);
|
|
1490
|
+
}
|
|
1491
|
+
.metadata,
|
|
1492
|
+
.topics {
|
|
1493
|
+
display: flex;
|
|
1494
|
+
flex-wrap: wrap;
|
|
1495
|
+
align-items: center;
|
|
1496
|
+
gap: 8px;
|
|
1497
|
+
font-size: 14px;
|
|
1498
|
+
line-height: 24px;
|
|
1499
|
+
}
|
|
1500
|
+
.duration {
|
|
1501
|
+
margin-inline-start: auto;
|
|
1502
|
+
white-space: nowrap;
|
|
1503
|
+
font-size: 10px;
|
|
1504
|
+
line-height: 16px;
|
|
1505
|
+
font-weight: 700;
|
|
1506
|
+
}
|
|
1507
|
+
.topics {
|
|
1508
|
+
list-style: none;
|
|
1509
|
+
padding: 0;
|
|
1510
|
+
margin: 0;
|
|
1511
|
+
}
|
|
1512
|
+
.body {
|
|
1513
|
+
font-size: 14px;
|
|
1514
|
+
line-height: 24px;
|
|
1515
|
+
}
|
|
1516
|
+
.body > :first-child {
|
|
1517
|
+
margin-top: 0;
|
|
367
1518
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
1519
|
+
.body > :last-child {
|
|
1520
|
+
margin-bottom: 0;
|
|
1521
|
+
}
|
|
1522
|
+
.body img,
|
|
1523
|
+
.body video,
|
|
1524
|
+
video {
|
|
1525
|
+
max-width: 100%;
|
|
1526
|
+
height: auto;
|
|
1527
|
+
}
|
|
1528
|
+
.body table {
|
|
1529
|
+
display: block;
|
|
1530
|
+
max-width: 100%;
|
|
1531
|
+
overflow-x: auto;
|
|
1532
|
+
}
|
|
1533
|
+
.body pre {
|
|
1534
|
+
white-space: pre-wrap;
|
|
1535
|
+
overflow-wrap: anywhere;
|
|
1536
|
+
}
|
|
1537
|
+
@media (max-width: 899px) {
|
|
1538
|
+
.summary h2 {
|
|
1539
|
+
white-space: nowrap;
|
|
1540
|
+
overflow: hidden;
|
|
1541
|
+
text-overflow: ellipsis;
|
|
1542
|
+
}
|
|
1543
|
+
.summary .body {
|
|
1544
|
+
display: -webkit-box;
|
|
1545
|
+
-webkit-box-orient: vertical;
|
|
1546
|
+
-webkit-line-clamp: 5;
|
|
1547
|
+
overflow: hidden;
|
|
1548
|
+
}
|
|
1549
|
+
/* Reveal before any descendant link can remain focused behind clipping. */
|
|
1550
|
+
.summary:focus-within h2 {
|
|
1551
|
+
white-space: normal;
|
|
1552
|
+
overflow: visible;
|
|
1553
|
+
}
|
|
1554
|
+
.summary:focus-within .body {
|
|
1555
|
+
display: block;
|
|
1556
|
+
-webkit-line-clamp: unset;
|
|
1557
|
+
overflow: visible;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
@media (min-width: 900px) {
|
|
1561
|
+
article {
|
|
1562
|
+
grid-template-columns: 224px minmax(0, 1fr);
|
|
1563
|
+
gap: 24px;
|
|
1564
|
+
}
|
|
1565
|
+
.play {
|
|
1566
|
+
width: 224px;
|
|
1567
|
+
height: 140px;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
dialog {
|
|
1571
|
+
position: fixed;
|
|
1572
|
+
inset: 0;
|
|
1573
|
+
box-sizing: border-box;
|
|
1574
|
+
width: 100%;
|
|
1575
|
+
max-width: none;
|
|
1576
|
+
height: 100dvh;
|
|
1577
|
+
max-height: none;
|
|
1578
|
+
margin: 0;
|
|
1579
|
+
border: 0;
|
|
1580
|
+
padding: 72px 24px 24px;
|
|
1581
|
+
background: var(--clr-secondary, #092241);
|
|
1582
|
+
color: var(--clr-on-secondary, #fff);
|
|
1583
|
+
overflow: auto;
|
|
1584
|
+
}
|
|
1585
|
+
dialog::backdrop {
|
|
1586
|
+
background: var(--clr-secondary, #092241);
|
|
1587
|
+
}
|
|
1588
|
+
dialog[open] {
|
|
1589
|
+
display: flex;
|
|
1590
|
+
justify-content: center;
|
|
1591
|
+
}
|
|
1592
|
+
.modal-content {
|
|
1593
|
+
width: 100%;
|
|
1594
|
+
max-width: 1000px;
|
|
1595
|
+
min-width: 0;
|
|
1596
|
+
margin-block: auto;
|
|
1597
|
+
}
|
|
1598
|
+
.player video {
|
|
1599
|
+
display: block;
|
|
1600
|
+
width: 100%;
|
|
1601
|
+
aspect-ratio: 16 / 9;
|
|
1602
|
+
}
|
|
1603
|
+
.player h3 {
|
|
1604
|
+
margin: 24px 0 16px;
|
|
1605
|
+
}
|
|
1606
|
+
.close {
|
|
1607
|
+
position: fixed;
|
|
1608
|
+
top: 16px;
|
|
1609
|
+
right: 16px;
|
|
1610
|
+
width: 48px;
|
|
1611
|
+
height: 48px;
|
|
1612
|
+
padding: 12px;
|
|
1613
|
+
border: 0;
|
|
1614
|
+
border-radius: 50%;
|
|
1615
|
+
background: transparent;
|
|
1616
|
+
color: inherit;
|
|
1617
|
+
}
|
|
1618
|
+
.close svg {
|
|
1619
|
+
display: block;
|
|
1620
|
+
width: 24px;
|
|
1621
|
+
height: 24px;
|
|
1622
|
+
}
|
|
1623
|
+
:is(a, button, video):focus-visible {
|
|
1624
|
+
outline: 2px solid var(--clr-primary, #1456e0);
|
|
1625
|
+
outline-offset: 3px;
|
|
1626
|
+
}
|
|
1627
|
+
dialog :is(a, button, video):focus-visible {
|
|
1628
|
+
outline-color: currentColor;
|
|
1629
|
+
}
|
|
1630
|
+
@media (forced-colors: active) {
|
|
1631
|
+
article {
|
|
1632
|
+
border: 1px solid CanvasText;
|
|
1633
|
+
}
|
|
1634
|
+
.play-icon {
|
|
1635
|
+
color: Canvas;
|
|
1636
|
+
}
|
|
1637
|
+
:is(a, button, video):focus-visible {
|
|
1638
|
+
outline-color: Highlight;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
`}connectedCallback(){super.connectedCallback(),window.addEventListener(`vaadin-router-location-changed`,this.onRouteChange)}willUpdate(e){e.has(`post`)&&(++this.generation,this.stopPlayer())}disconnectedCallback(){window.removeEventListener(`vaadin-router-location-changed`,this.onRouteChange),++this.generation,this.stopPlayer(),super.disconnectedCallback()}stopPlayer(){let e=this.renderRoot?.querySelector(`dialog`);if(!this.expanded&&!this.activeVideo&&!e?.open)return!1;this.generation++;let t=this.activeVideo??this.renderRoot?.querySelector(`.player video`);if(this.activeVideo=void 0,this.expanded=!1,t&&(t.pause(),t.removeAttribute(`src`),t.querySelectorAll(`track`).forEach(e=>e.removeAttribute(`src`)),t.load()),this.playbackMessage=``,this.captionMessage=``,e?.open){let t=this.focusedElement(),n=t instanceof HTMLElement&&!e.contains(t);e.close(),n&&t.isConnected&&this.focusedElement()!==t&&t.focus()}return!0}async openPlayer(){if(!this.isConnected||!Y(this.post?.video,`video`))return;this.playbackMessage=``;let e=++this.generation,t=this.post;if(this.expanded=!0,await this.updateComplete,!this.isConnected||!this.expanded||this.post!==t||e!==this.generation)return;let n=this.renderRoot.querySelector(`dialog`),r=this.renderRoot.querySelector(`.player video`);if(n&&r){this.activeVideo=r,n.open||n.showModal(),r.focus();try{await r.play()}catch{this.isConnected&&this.expanded&&e===this.generation&&(this.playbackMessage=`Use the player controls to start playback. If the video cannot load, try again later.`)}}}focusedElement(){let e=this.ownerDocument.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}async closePlayer(){if(!this.stopPlayer())return;let e=this.generation,t=this.post;await this.updateComplete;let n=this.renderRoot.querySelector(`.play`),r=this.focusedElement();this.isConnected&&this.post===t&&e===this.generation&&(!r||r===this.ownerDocument.body||r===this||r===n)&&n?.focus()}render(){let e=this.post;if(!e)return r;let t=e.title||`Video`,i=Y(e.video,`video`),a=Y(e.thumbnail,`image`),o=Y(e.captions,`captions`),s=En(e.duration),c=o&&new URL(o).origin!==new URL(this.ownerDocument.baseURI).origin;return n` <article>
|
|
1642
|
+
${i?n`<button
|
|
1643
|
+
class="play"
|
|
1644
|
+
type="button"
|
|
1645
|
+
aria-label=${`Play video: ${t}`}
|
|
1646
|
+
aria-expanded=${String(this.expanded)}
|
|
1647
|
+
aria-haspopup="dialog"
|
|
1648
|
+
aria-controls="video-player"
|
|
1649
|
+
@click=${this.openPlayer}
|
|
1650
|
+
>
|
|
1651
|
+
${a?n`<img src=${a} alt="" loading="lazy" decoding="async" />`:r}
|
|
1652
|
+
<svg class="play-icon" aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1653
|
+
<circle cx="12" cy="12" r="10" fill="currentColor"></circle>
|
|
1654
|
+
<path d="m10 7 7 5-7 5z" fill="var(--clr-secondary, #092241)"></path>
|
|
1655
|
+
</svg>
|
|
1656
|
+
</button>`:n`<p>Video unavailable</p>`}
|
|
1657
|
+
<div class="summary">
|
|
1658
|
+
<div class="metadata">
|
|
1659
|
+
${e.topics.length?n`<ul class="topics" aria-label="Topics">
|
|
1660
|
+
${e.topics.map(e=>n`<li>${e.name||e.code}</li>`)}
|
|
1661
|
+
</ul>`:n`<span>No topics</span>`}
|
|
1662
|
+
${s?n`<span class="duration"><span class="sr-only">${s.label}</span><span aria-hidden="true">${s.text}</span></span>`:r}
|
|
1663
|
+
</div>
|
|
1664
|
+
<h2><a href=${`${m}/details/${encodeURIComponent(e.uid)}`}>${t}</a></h2>
|
|
1665
|
+
<div class="body">${e.body}</div>
|
|
1666
|
+
</div>
|
|
1667
|
+
</article>
|
|
1668
|
+
<dialog
|
|
1669
|
+
id="video-player"
|
|
1670
|
+
class="player"
|
|
1671
|
+
aria-label="Watch video"
|
|
1672
|
+
@cancel=${e=>{e.preventDefault(),this.closePlayer()}}
|
|
1673
|
+
@close=${e=>{e.currentTarget.open||this.closePlayer()}}
|
|
1674
|
+
@click=${e=>{e.target===e.currentTarget&&this.closePlayer()}}
|
|
1675
|
+
>
|
|
1676
|
+
${this.expanded&&i?n`<div class="modal-content">
|
|
1677
|
+
<video
|
|
1678
|
+
controls
|
|
1679
|
+
tabindex="0"
|
|
1680
|
+
preload="metadata"
|
|
1681
|
+
aria-label=${t}
|
|
1682
|
+
crossorigin=${p(c?`anonymous`:void 0)}
|
|
1683
|
+
src=${i}
|
|
1684
|
+
poster=${p(a)}
|
|
1685
|
+
@error=${()=>{this.playbackMessage=`Video could not be loaded. Try again later.`}}
|
|
1686
|
+
>
|
|
1687
|
+
${o?n`<track
|
|
1688
|
+
kind="captions"
|
|
1689
|
+
src=${o}
|
|
1690
|
+
label="Captions (language unspecified)"
|
|
1691
|
+
default
|
|
1692
|
+
@error=${()=>{this.captionMessage=`Captions could not be loaded. They may require media-server CORS configuration.`}}
|
|
1693
|
+
/>`:r}
|
|
1694
|
+
</video>
|
|
1695
|
+
<h3>${t}</h3>
|
|
1696
|
+
<div class="body">${e.body}</div>
|
|
1697
|
+
${o?r:n`<p>Captions are not provided for this video.</p>`}
|
|
1698
|
+
<p role="status">${this.playbackMessage} ${this.captionMessage}</p>
|
|
1699
|
+
<button
|
|
1700
|
+
class="close"
|
|
1701
|
+
type="button"
|
|
1702
|
+
aria-label="Close video"
|
|
1703
|
+
@click=${this.closePlayer}
|
|
1704
|
+
>
|
|
1705
|
+
<svg
|
|
1706
|
+
aria-hidden="true"
|
|
1707
|
+
focusable="false"
|
|
1708
|
+
viewBox="0 0 24 24"
|
|
1709
|
+
fill="none"
|
|
1710
|
+
stroke="currentColor"
|
|
1711
|
+
stroke-width="2"
|
|
1712
|
+
>
|
|
1713
|
+
<path d="m6 6 12 12M6 18 18 6"></path>
|
|
1714
|
+
</svg>
|
|
1715
|
+
</button>
|
|
1716
|
+
</div>`:r}
|
|
1717
|
+
</dialog>`}};z([o({attribute:!1})],X.prototype,`post`,void 0),z([s()],X.prototype,`expanded`,void 0),z([s()],X.prototype,`playbackMessage`,void 0),z([s()],X.prototype,`captionMessage`,void 0),X=z([a(`kb-post-video-card`)],X);var Z=class extends e{constructor(...e){super(...e),this.uid=``,this.loading=!0,this.error=!1,this.data=null,this.categories=[],this.categoriesLoading=!0,this.categoriesError=!1,this.topic=``,this.sort=`newest`,this.year=null,this.expandedUid=null,this.wide=!1,this.navigationOpen=!1,this.resizeNavigation=()=>{let e=this.shadowRoot?.activeElement,t=e?.closest(`[data-navigation]`)||e?.id===`category-disclosure`;this.wide=this.media?.matches??!1,this.navigationOpen=!1,t&&this.updateComplete.then(()=>this.focusHeading())},this.outsideNavigation=e=>{let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`);(!n||!t.includes(n))&&(!r||!t.includes(r))&&this.closeNavigation(!0)},this.navigationFocus=e=>{let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`);(!n||!t.includes(n))&&(!r||!t.includes(r))&&this.closeNavigation()},this.request=0,this.categoriesRequest=0,this.initialOpenVersion=0}static{this.styles=[V]}connectedCallback(){super.connectedCallback(),this.media=window.matchMedia?.(`(min-width: 900px)`),this.wide=this.media?.matches??!1,this.media?.addEventListener(`change`,this.resizeNavigation),document.addEventListener(`pointerdown`,this.outsideNavigation),this.renderRoot.addEventListener(`focusin`,this.navigationFocus),document.addEventListener(`focusin`,this.navigationFocus)}focusHeading(){this.shadowRoot?.querySelector(`#category-heading`)?.focus()}closeNavigation(e=!1){this.navigationOpen&&=(e&&this.shadowRoot?.activeElement?.closest(`[data-navigation]`)&&this.shadowRoot.querySelector(`#category-disclosure`)?.focus(),!1)}navigationKey(e){let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`),i=n&&t.includes(n)||r&&t.includes(r);e.key===`Escape`&&this.navigationOpen&&i&&(e.preventDefault(),this.shadowRoot?.querySelector(`#category-disclosure`)?.focus(),this.closeNavigation())}cancelInitialOpen(){++this.initialOpenVersion,this.initialOpenFrame!==void 0&&cancelAnimationFrame(this.initialOpenFrame),this.initialOpenFrame=void 0}async openInitialMonth(e){let t=this.initialOpenVersion,n=this.firstAccordion(this.visiblePosts());if(!n)return;await this.updateComplete;let r=()=>this.isConnected&&e===this.request&&t===this.initialOpenVersion;r()&&(this.initialOpenFrame=requestAnimationFrame(()=>{r()&&(this.initialOpenFrame=requestAnimationFrame(()=>{r()&&(this.initialOpenFrame=void 0,this.expandedUid===null&&(this.expandedUid=n))}))}))}onAfterEnter(e){this.focusBeforePageChange(),this.closeNavigation(!0),this.uid=String(e.params.uid??``),this.topic=``,this.sort=`newest`,this.year=null,this.expandedUid=null,this.load(),this.loadCategories()}disconnectedCallback(){this.media?.removeEventListener(`change`,this.resizeNavigation),document.removeEventListener(`pointerdown`,this.outsideNavigation),this.renderRoot.removeEventListener(`focusin`,this.navigationFocus),document.removeEventListener(`focusin`,this.navigationFocus),super.disconnectedCallback(),this.cancelInitialOpen(),++this.request,++this.categoriesRequest}focusBeforePageChange(){let e=this.shadowRoot?.activeElement;e&&e.id!==`category-heading`&&(e.closest(`[data-content]`)||e.closest(`[data-navigation]`))&&this.shadowRoot?.querySelector(`#category-heading`)?.focus()}async load(){this.cancelInitialOpen(),this.focusBeforePageChange();let e=++this.request;this.loading=!0,this.error=!1,this.data=null;try{let t=this.uid?await R().getCategory(this.uid):null;if(e!==this.request)return;this.data=t,this.year=this.uid===`whats-new`?H(t?.posts??[])[0]??null:null,this.expandedUid=this.uid===`whats-new`?null:this.firstAccordion(this.visiblePosts())}catch{e===this.request&&(this.error=!0)}finally{e===this.request&&(this.loading=!1)}e===this.request&&!this.error&&this.uid===`whats-new`&&this.openInitialMonth(e)}async loadCategories(){this.shadowRoot?.activeElement?.closest(`[data-navigation]`)&&this.shadowRoot.querySelector(`#category-heading`)?.focus();let e=++this.categoriesRequest;this.categoriesLoading=!0,this.categoriesError=!1,this.categories=[];try{let t=await R().getCategories();e===this.categoriesRequest&&(this.categories=gn(t))}catch{e===this.categoriesRequest&&(this.categoriesError=!0)}finally{e===this.categoriesRequest&&(this.categoriesLoading=!1)}}behavior(e){return e.behavior??this.data?.category?.behavior??`text`}visiblePosts(e=this.topic,t=this.year){let n=this.data?.category,r=(this.data?.posts??[]).filter(r=>(!n?.showFilterByTopic||!e||r.topics.some(t=>t.code===e))&&(this.uid!==`whats-new`||t===null||on(r.dateAdded)===t));return n?.showSortBy?nn(r,this.sort):r}firstAccordion(e){return e.find(e=>this.behavior(e)===`accordion`)?.uid??null}focusBeforePostsChange(e,t){let n=this.shadowRoot?.activeElement,r=n?.closest(`[data-post]`);n&&r&&(e.some(e=>e.uid===r.dataset.post)?n.localName===`kb-post-accordion`&&r.dataset.post!==t&&(n.shadowRoot?.activeElement)?.closest(`[role="region"]`)&&n.shadowRoot?.querySelector(`button`)?.focus():this.shadowRoot?.querySelector(`#posts-heading`)?.focus())}filter(e,t){this.cancelInitialOpen();let n=this.visiblePosts(),r=this.visiblePosts(e,t),i=n.length===r.length&&n.every(e=>r.includes(e))?this.expandedUid:this.firstAccordion(r);this.focusBeforePostsChange(r,i),this.topic=e,this.year=t,this.expandedUid=i}onTopicChange(e){if(!this.data?.category?.showFilterByTopic)return;let t=e.detail.code;(!t||this.data.posts.some(e=>e.topics.some(e=>e.code===t)))&&this.filter(t,this.year)}onYearChange(e){let t=e.detail.year;this.uid===`whats-new`&&H(this.data?.posts??[]).includes(t)&&this.filter(this.topic,t)}onSortChange(e){let t=e.detail.value;this.data?.category?.showSortBy&&[`newest`,`oldest`,`topic`].includes(t)&&(this.cancelInitialOpen(),this.sort=t)}onAccordionToggle(e){let{uid:t,expanded:n}=e.detail,r=this.visiblePosts();if(!r.some(e=>e.uid===t&&this.behavior(e)===`accordion`))return;this.cancelInitialOpen();let i=n?t:null;this.focusBeforePostsChange(r,i),this.expandedUid=i}renderPost(e){switch(this.behavior(e)){case`document_card`:return n`<kb-post-document-card .post=${e}></kb-post-document-card>`;case`video_card`:return n`<kb-post-video-card .post=${e}></kb-post-video-card>`;case`accordion`:return n`<kb-post-accordion
|
|
1718
|
+
.post=${e}
|
|
1719
|
+
.expanded=${this.expandedUid===e.uid}
|
|
1720
|
+
@kb-accordion-toggle=${this.onAccordionToggle}
|
|
1721
|
+
></kb-post-accordion>`;default:return n`<kb-post-text .post=${e}></kb-post-text>`}}renderContent(){if(this.loading)return n`<p role="status">Loading category…</p>`;if(this.error)return n`<p role="alert">Couldn't load this category.</p>
|
|
1722
|
+
<button
|
|
1723
|
+
class="min-h-11 rounded border border-current px-4 py-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary"
|
|
1724
|
+
data-retry-category
|
|
1725
|
+
@click=${()=>void this.load()}
|
|
1726
|
+
>
|
|
1727
|
+
Retry category
|
|
1728
|
+
</button>`;if(!this.data?.category)return n`<p>This category is unavailable.</p>`;let{category:e,posts:t}=this.data,i=new Map;for(let e of t.flatMap(e=>e.topics))e.code.trim()&&!i.has(e.code)&&i.set(e.code,e);let a=[...i.values()],o=this.uid===`whats-new`?H(t):[],s=this.visiblePosts();return n`
|
|
1729
|
+
<kb-search-bar class="min-[900px]:!mt-8" .category=${this.uid}></kb-search-bar>
|
|
1730
|
+
${e.subtitle?n`<p>${e.subtitle}</p>`:r}
|
|
1731
|
+
${o.length?n`<kb-whats-new-year-filter .years=${o} .selectedYear=${this.year} @kb-year-change=${this.onYearChange}></kb-whats-new-year-filter>`:r}
|
|
1732
|
+
${e.showFilterByTopic?n`<kb-topic-filter .topics=${a} .selectedCode=${this.topic} @kb-topic-change=${this.onTopicChange}></kb-topic-filter>`:r}
|
|
1733
|
+
<h2
|
|
1734
|
+
id="posts-heading"
|
|
1735
|
+
class="sr-only focus:not-sr-only dlr-text-heading focus:outline focus:outline-2 focus:outline-offset-[3px] focus:outline-primary"
|
|
1736
|
+
tabindex="-1"
|
|
1737
|
+
>
|
|
1738
|
+
Articles
|
|
1739
|
+
</h2>
|
|
1740
|
+
${e.showSortBy?n`<kb-sort-control .count=${s.length} .value=${this.sort} @kb-sort-change=${this.onSortChange}></kb-sort-control>`:n`<p class="sr-only" role="status" aria-live="polite" aria-atomic="true">${s.length} ${s.length===1?`Tutorial`:`Tutorials`}</p>`}
|
|
1741
|
+
${s.length?n`<ul class="grid grid-cols-1 gap-4 min-w-0" aria-labelledby="posts-heading">
|
|
1742
|
+
${d(s,e=>`${this.uid}:${e.documentId||e.uid}`,e=>n`<li class="min-w-0" data-post=${e.uid}>${this.renderPost(e)}</li>`)}
|
|
1743
|
+
</ul>`:n`<p>${t.length?`No posts match these filters.`:`No posts.`}</p>`}
|
|
1744
|
+
`}render(){let e=this.data?.category?.title??(this.loading?`Knowledge Base`:this.error?`Category unavailable`:`Category not found`),t=n` ${this.categoriesLoading?n`<p role="status">Loading categories…</p>`:this.categoriesError?n`<p role="alert">Couldn't load categories.</p>
|
|
1745
|
+
<button
|
|
1746
|
+
class="min-h-11 px-4"
|
|
1747
|
+
data-retry-categories
|
|
1748
|
+
@click=${()=>void this.loadCategories()}
|
|
1749
|
+
>
|
|
1750
|
+
Retry categories
|
|
1751
|
+
</button>`:n`<kb-category-nav
|
|
1752
|
+
.categories=${this.categories}
|
|
1753
|
+
.currentUid=${this.uid}
|
|
1754
|
+
.compact=${!this.wide}
|
|
1755
|
+
></kb-category-nav>`}`;return n`<div class="relative mt-4 min-[900px]:mt-14 lg:mt-4" @keydown=${this.navigationKey}>
|
|
1756
|
+
<div class="absolute left-4 top-0 min-[900px]:left-8 min-[900px]:-top-10 lg:left-9 lg:top-0">
|
|
1757
|
+
<kb-back-btn></kb-back-btn>
|
|
1758
|
+
</div>
|
|
1759
|
+
<div class="flex flex-col min-[900px]:flex-row-reverse lg:flex-row">
|
|
1760
|
+
${this.wide?n`<aside data-navigation class="min-w-0 shrink-0 w-[252px] mt-[188px] lg:w-1/4 lg:shrink lg:min-w-[252px] lg:mt-[140px]">${t}</aside>`:r}
|
|
1761
|
+
<section
|
|
1762
|
+
data-content
|
|
1763
|
+
class="min-w-0 flex-1 mx-4 pt-14 space-y-6 min-[900px]:ml-8 min-[900px]:mr-6 min-[900px]:pt-0 lg:ml-[46px] lg:mr-9 lg:w-[828px] lg:flex-[0_1_828px] lg:max-w-[828px]"
|
|
1764
|
+
aria-labelledby="category-heading"
|
|
1765
|
+
aria-busy=${String(this.loading)}
|
|
1766
|
+
>
|
|
1767
|
+
<kb-breadcrumb .current=${this.data?.category?.title??``}></kb-breadcrumb>
|
|
1768
|
+
<div class="relative" data-category-heading>
|
|
1769
|
+
<h1
|
|
1770
|
+
id="category-heading"
|
|
1771
|
+
tabindex="-1"
|
|
1772
|
+
class="dlr-text-page-title !text-[20px] !leading-6 min-[900px]:!text-[34px] min-[900px]:!leading-10 focus:outline focus:outline-2 focus:outline-offset-[3px] focus:outline-primary"
|
|
1773
|
+
>
|
|
1774
|
+
${this.wide?e:n`<button
|
|
1775
|
+
id="category-disclosure"
|
|
1776
|
+
class="flex min-h-11 items-center gap-2 text-left focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary"
|
|
1777
|
+
aria-expanded=${String(this.navigationOpen)}
|
|
1778
|
+
aria-controls="category-navigation"
|
|
1779
|
+
@click=${()=>{this.navigationOpen=!this.navigationOpen}}
|
|
1780
|
+
>
|
|
1781
|
+
${e}<svg
|
|
1782
|
+
aria-hidden="true"
|
|
1783
|
+
focusable="false"
|
|
1784
|
+
width="20"
|
|
1785
|
+
height="20"
|
|
1786
|
+
viewBox="0 0 24 24"
|
|
1787
|
+
fill="none"
|
|
1788
|
+
stroke="currentColor"
|
|
1789
|
+
>
|
|
1790
|
+
<path d=${this.navigationOpen?`m6 15 6-6 6 6`:`m6 9 6 6 6-6`}></path>
|
|
1791
|
+
</svg>
|
|
1792
|
+
</button>`}
|
|
1793
|
+
</h1>
|
|
1794
|
+
${this.wide?r:n`<div id="category-navigation" data-navigation class="absolute left-0 top-full z-20 w-full max-w-[402px] max-h-[60vh] overflow-y-auto rounded-xl bg-surface-container-lowest shadow-lg px-1 py-2" ?hidden=${!this.navigationOpen}>${t}</div>`}
|
|
1795
|
+
</div>
|
|
1796
|
+
${this.renderContent()}
|
|
1797
|
+
</section>
|
|
1798
|
+
</div>
|
|
1799
|
+
</div>`}};z([s()],Z.prototype,`uid`,void 0),z([s()],Z.prototype,`loading`,void 0),z([s()],Z.prototype,`error`,void 0),z([s()],Z.prototype,`data`,void 0),z([s()],Z.prototype,`categories`,void 0),z([s()],Z.prototype,`categoriesLoading`,void 0),z([s()],Z.prototype,`categoriesError`,void 0),z([s()],Z.prototype,`topic`,void 0),z([s()],Z.prototype,`sort`,void 0),z([s()],Z.prototype,`year`,void 0),z([s()],Z.prototype,`expandedUid`,void 0),z([s()],Z.prototype,`wide`,void 0),z([s()],Z.prototype,`navigationOpen`,void 0),Z=z([a(`kb-category-view`)],Z);var Q=class extends e{constructor(...e){super(...e),this.code=``,this.loading=!0,this.error=!1,this.data=null,this.expandedUid=null,this.request=0}static{this.styles=[V]}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.code&&this.load()}onAfterEnter(e){this.code=String(e.params.code??``),this.load()}disconnectedCallback(){super.disconnectedCallback(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1,this.data=null,this.expandedUid=null;let t=()=>e===this.request;try{let e=this.code?await R().getTopic(this.code):null;t()&&(this.data=e)}catch{t()&&(this.error=!0)}finally{t()&&(this.loading=!1)}}behavior(e){return e.behavior??e.category?.behavior??`text`}onAccordionToggle(e){let{uid:t,expanded:n}=e.detail;this.data?.posts.some(e=>e.uid===t&&this.behavior(e)===`accordion`)&&(this.expandedUid=n?t:null)}renderPost(e){switch(this.behavior(e)){case`document_card`:return n`<kb-post-document-card .post=${e}></kb-post-document-card>`;case`video_card`:return n`<kb-post-video-card .post=${e}></kb-post-video-card>`;case`accordion`:return n`<kb-post-accordion
|
|
1800
|
+
.post=${e}
|
|
1801
|
+
.expanded=${this.expandedUid===e.uid}
|
|
1802
|
+
@kb-accordion-toggle=${this.onAccordionToggle}
|
|
1803
|
+
></kb-post-accordion>`;default:return n`<kb-post-text .post=${e}></kb-post-text>`}}render(){return n`<section
|
|
1804
|
+
class="max-w-[828px] mx-auto p-4 space-y-6 min-w-0"
|
|
1805
|
+
aria-label="Knowledge Base topic"
|
|
1806
|
+
aria-busy=${String(this.loading)}
|
|
1807
|
+
>
|
|
1808
|
+
<kb-back-btn></kb-back-btn>
|
|
1809
|
+
<kb-breadcrumb .current=${this.data?.topic?.name??``}></kb-breadcrumb>
|
|
1810
|
+
${this.renderContent()}
|
|
1811
|
+
</section>`}renderContent(){return this.loading?n`<p role="status">Loading topic…</p>`:this.error?n`<p role="alert">Couldn't load this topic.</p>
|
|
1812
|
+
<button
|
|
1813
|
+
class="min-h-11 rounded border border-current px-4 py-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary"
|
|
1814
|
+
data-retry-topic
|
|
1815
|
+
@click=${()=>void this.load()}
|
|
1816
|
+
>
|
|
1817
|
+
Retry
|
|
1818
|
+
</button>`:this.data?.topic?n`
|
|
1819
|
+
<h1 id="topic-heading" class="dlr-text-page-title">${this.data.topic.name}</h1>
|
|
1820
|
+
<kb-search-bar .topic=${this.code}></kb-search-bar>
|
|
1821
|
+
${this.data.posts.length?n`<ul
|
|
1822
|
+
data-posts
|
|
1823
|
+
class="grid grid-cols-1 gap-4 min-w-0 list-none p-0"
|
|
1824
|
+
aria-labelledby="topic-heading"
|
|
1825
|
+
>
|
|
1826
|
+
${d(this.data.posts,e=>`${this.code}:${e.documentId||e.uid}`,e=>n`<li class="min-w-0" data-post=${e.uid}>${this.renderPost(e)}</li>`)}
|
|
1827
|
+
</ul>`:n`<p role="status">No posts in this topic yet.</p>`}
|
|
1828
|
+
`:n`<h1 id="topic-heading" class="dlr-text-page-title">Topic not found</h1>
|
|
1829
|
+
<p>This topic is unavailable.</p>`}};z([s()],Q.prototype,`code`,void 0),z([s()],Q.prototype,`loading`,void 0),z([s()],Q.prototype,`error`,void 0),z([s()],Q.prototype,`data`,void 0),z([s()],Q.prototype,`expandedUid`,void 0),Q=z([a(`kb-topic-view`)],Q);function $(e){if(e)try{let t=new URL(e);return(t.protocol===`https:`||t.protocol===`http:`)&&!t.username&&!t.password?t.href:void 0}catch{return}}function Dn(e,t=``){let i=$(e?.url);return!i||e?.mime&&!e.mime.startsWith(`image/`)?r:n`<img
|
|
1830
|
+
src=${i}
|
|
1831
|
+
alt=${e?.alternativeText??t}
|
|
1832
|
+
loading="lazy"
|
|
1833
|
+
decoding="async"
|
|
1834
|
+
/>`}var On=class extends e{constructor(...e){super(...e),this.post=null,this.preview=!1,this.showTitle=!0}static{this.styles=t`
|
|
1835
|
+
:host {
|
|
1836
|
+
display: block;
|
|
1837
|
+
color: var(--clr-on-surface, #092241);
|
|
1838
|
+
overflow-wrap: anywhere;
|
|
1839
|
+
font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
|
|
1840
|
+
font-size: var(--text-default-size, 1rem);
|
|
1841
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
1842
|
+
letter-spacing: var(--text-default-letter-spacing, 0.0275em);
|
|
1843
|
+
font-weight: var(--text-default-weight, normal);
|
|
1844
|
+
}
|
|
1845
|
+
article {
|
|
1846
|
+
padding: 1rem 0;
|
|
1847
|
+
}
|
|
1848
|
+
h2 {
|
|
1849
|
+
margin: 0 0 0.5rem;
|
|
1850
|
+
font-family: var(
|
|
1851
|
+
--text-heading-font,
|
|
1852
|
+
var(--root-secondary-font, 'Red Hat Display', sans-serif)
|
|
1853
|
+
);
|
|
1854
|
+
font-size: var(--text-heading-size, 1.25rem);
|
|
1855
|
+
line-height: var(--text-heading-line-height, 1.2em);
|
|
1856
|
+
letter-spacing: var(--text-heading-letter-spacing, 0.0075em);
|
|
1857
|
+
font-weight: var(--text-heading-weight, bold);
|
|
1858
|
+
}
|
|
1859
|
+
a {
|
|
1860
|
+
color: inherit;
|
|
1861
|
+
}
|
|
1862
|
+
.metadata {
|
|
1863
|
+
display: flex;
|
|
1864
|
+
flex-wrap: wrap;
|
|
1865
|
+
gap: 0.5rem 1rem;
|
|
1866
|
+
margin: 0.5rem 0 1rem;
|
|
1867
|
+
}
|
|
1868
|
+
.topics {
|
|
1869
|
+
display: flex;
|
|
1870
|
+
flex-wrap: wrap;
|
|
1871
|
+
gap: 0.5rem;
|
|
1872
|
+
}
|
|
1873
|
+
.body {
|
|
1874
|
+
line-height: var(--text-default-line-height, 1.75em);
|
|
1875
|
+
}
|
|
1876
|
+
img,
|
|
1877
|
+
video,
|
|
1878
|
+
.body img {
|
|
1879
|
+
display: block;
|
|
1880
|
+
max-width: 100%;
|
|
1881
|
+
height: auto;
|
|
1882
|
+
}
|
|
1883
|
+
img,
|
|
1884
|
+
video {
|
|
1885
|
+
max-height: 28rem;
|
|
1886
|
+
margin: 0.75rem 0;
|
|
1887
|
+
}
|
|
1888
|
+
.body table {
|
|
1889
|
+
display: block;
|
|
1890
|
+
max-width: 100%;
|
|
1891
|
+
overflow: auto;
|
|
1892
|
+
}
|
|
1893
|
+
summary {
|
|
1894
|
+
cursor: pointer;
|
|
1895
|
+
font-weight: 600;
|
|
1896
|
+
padding: 0.75rem 0;
|
|
1897
|
+
}
|
|
1898
|
+
.documents {
|
|
1899
|
+
padding-left: 1.25rem;
|
|
1900
|
+
}
|
|
1901
|
+
.documents li {
|
|
1902
|
+
margin: 0.5rem 0;
|
|
1903
|
+
}
|
|
1904
|
+
`}render(){let e=this.post;if(!e)return r;let t=`${m}/details/${encodeURIComponent(e.uid)}`,i=n`
|
|
1905
|
+
${this.metadata(e)} ${Dn(e.thumbnail)}
|
|
1906
|
+
${e.abstract?n`<p>${e.abstract}</p>`:r}
|
|
1907
|
+
${this.preview?r:n`<div class="body">${e.body}</div>
|
|
1908
|
+
${this.media(e)}`}
|
|
1909
|
+
`;return!this.preview&&this.showTitle&&e.behavior===`accordion`?n`<article>
|
|
1910
|
+
<details>
|
|
1911
|
+
<summary>${e.title}</summary>
|
|
1912
|
+
<a href=${t}>Open article</a>
|
|
1913
|
+
${i}
|
|
1914
|
+
</details>
|
|
1915
|
+
</article>`:n`<article>
|
|
1916
|
+
${this.showTitle?n`<h2><a href=${t}>${e.title}</a></h2>`:r} ${i}
|
|
1917
|
+
</article>`}metadata(e){let t=e.dateAdded||e.publishedAt,i=t?new Date(t):null,a=i&&!Number.isNaN(i.getTime())?i:null;return n`<div class="metadata">
|
|
1918
|
+
${a?n`<time datetime=${a.toISOString()}>${a.toLocaleDateString(void 0,{year:`numeric`,month:`short`,day:`numeric`})}</time>`:r}
|
|
1919
|
+
<span class="topics"
|
|
1920
|
+
>${e.topics.map(e=>n`<a href=${`${m}/topic/${encodeURIComponent(e.code)}`}>${e.name}</a>`)}</span
|
|
1921
|
+
>
|
|
1922
|
+
</div>`}media(e){let t=$(e.video?.url),i=$(e.captions?.url),a=$(e.thumbnail?.url),o=i&&new URL(i).origin!==new URL(this.ownerDocument.baseURI).origin;return n`
|
|
1923
|
+
${t&&(!e.video?.mime||e.video.mime.startsWith(`video/`))?n` <video
|
|
1924
|
+
controls
|
|
1925
|
+
preload="metadata"
|
|
1926
|
+
crossorigin=${p(o?`anonymous`:void 0)}
|
|
1927
|
+
src=${t}
|
|
1928
|
+
poster=${p(a)}
|
|
1929
|
+
aria-label=${e.title}
|
|
1930
|
+
>
|
|
1931
|
+
${i?n`<track kind="captions" src=${i} label="Captions" />`:r}
|
|
1932
|
+
<a href=${t} target="_blank" rel="noopener noreferrer">Download video</a>
|
|
1933
|
+
</video>`:r}
|
|
1934
|
+
${e.documents.length?n`<ul class="documents" aria-label="Documents">
|
|
1935
|
+
${e.documents.map(e=>{let t=$(e.url);return t?n`<li>
|
|
1936
|
+
<a href=${t} download target="_blank" rel="noopener noreferrer"
|
|
1937
|
+
>${e.name||`Download document`}</a
|
|
1938
|
+
>
|
|
1939
|
+
</li>`:r})}
|
|
1940
|
+
</ul>`:r}
|
|
1941
|
+
`}};z([o({attribute:!1})],On.prototype,`post`,void 0),z([o({type:Boolean})],On.prototype,`preview`,void 0),z([o({type:Boolean,attribute:`show-title`})],On.prototype,`showTitle`,void 0),On=z([a(`kb-post-content`)],On);var kn=class extends e{constructor(...e){super(...e),this.uid=``,this.loading=!0,this.error=!1,this.post=null,this.request=0}static{this.styles=[V]}onAfterEnter(e){this.uid=String(e.params.uid??``),this.load()}disconnectedCallback(){super.disconnectedCallback(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1,this.post=null;try{let t=this.uid?await R().getPost(this.uid):null;e===this.request&&(this.post=t)}catch{e===this.request&&(this.error=!0)}finally{e===this.request&&(this.loading=!1)}}render(){return n`<div class="p-4 space-y-4">${this.renderContent()}</div>`}renderContent(){let e=n`<a
|
|
1942
|
+
class="dlr-text-link inline-flex min-h-11 items-center focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary"
|
|
1943
|
+
href=${m}
|
|
1944
|
+
>← Knowledge Base</a
|
|
1945
|
+
>`;return this.loading?n`${e}
|
|
1946
|
+
<p role="status">Loading article…</p>`:this.error?n`${e}
|
|
1947
|
+
<p role="alert">Couldn't load this article.</p>
|
|
1948
|
+
<button
|
|
1949
|
+
class="min-h-11 rounded border border-current px-4 py-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary"
|
|
1950
|
+
@click=${()=>void this.load()}
|
|
1951
|
+
>
|
|
1952
|
+
Retry
|
|
1953
|
+
</button>`:this.post?n`
|
|
1954
|
+
${e}
|
|
1955
|
+
<h1 class="dlr-text-page-title">${this.post.title}</h1>
|
|
1956
|
+
<kb-post-content .post=${this.post} .showTitle=${!1}></kb-post-content>
|
|
1957
|
+
`:n`${e}
|
|
1958
|
+
<h1 class="dlr-text-page-title">Article not found</h1>
|
|
1959
|
+
<p>This article is unavailable.</p>`}};z([s()],kn.prototype,`uid`,void 0),z([s()],kn.prototype,`loading`,void 0),z([s()],kn.prototype,`error`,void 0),z([s()],kn.prototype,`post`,void 0),kn=z([a(`kb-details-view`)],kn);var An={Landing:`kb-landing`,Category:`kb-category`,Topic:`kb-topic`,Details:`kb-details`},jn=[{path:m,children:[{name:An.Landing,path:`/`,component:`kb-landing-view`},{name:An.Category,path:`/category/:uid`,component:`kb-category-view`},{name:An.Topic,path:`/topic/:code`,component:`kb-topic-view`},{name:An.Details,path:`/details/:uid`,component:`kb-details-view`}]},{path:`(.*)`,component:`no-elem`}],Mn=class extends e{constructor(...e){super(...e),this.baseUrl=`/`,this.active=!1,this.outlet=document.createElement(`main`),this.onLocationChanged=e=>{let{router:t,location:n}=e.detail;t===ne()&&(this.active=ie(n.pathname))}}connectedCallback(){super.connectedCallback(),window.addEventListener(`vaadin-router-location-changed`,this.onLocationChanged),te(this.outlet,this.baseUrl,jn),this.dispatchEvent(new CustomEvent(`mfe-loaded`,{detail:{routes:jn}}))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(`vaadin-router-location-changed`,this.onLocationChanged),re(),this.active=!1}render(){return this.active?n`${this.outlet}`:r}};z([o({type:String})],Mn.prototype,`baseUrl`,void 0),z([s()],Mn.prototype,`active`,void 0),Mn=z([a(`ui-knowledgebase`)],Mn);export{Mn as UiKnowledgebase};
|