@skedulo/breeze-ui 1.16.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +29 -0
- package/dist/lib/cjs/breeze-ui.js +8 -8
- package/dist/lib/es/breeze-ui.js +42 -37
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/form-elements/input-select-base.d.ts +1 -1
- package/dist/types/components/form-elements/input-select-base.d.ts.map +1 -1
- package/dist/types/components/form-elements/input-select.d.ts.map +1 -1
- package/dist/types/components/form-elements/labeled-input.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/uid.d.ts +2 -0
- package/dist/types/utils/uid.d.ts.map +1 -0
- package/package.json +2 -3
|
@@ -20624,6 +20624,14 @@
|
|
|
20624
20624
|
"name": "*",
|
|
20625
20625
|
"package": "./lit-utils"
|
|
20626
20626
|
}
|
|
20627
|
+
},
|
|
20628
|
+
{
|
|
20629
|
+
"kind": "js",
|
|
20630
|
+
"name": "*",
|
|
20631
|
+
"declaration": {
|
|
20632
|
+
"name": "*",
|
|
20633
|
+
"package": "./uid"
|
|
20634
|
+
}
|
|
20627
20635
|
}
|
|
20628
20636
|
]
|
|
20629
20637
|
},
|
|
@@ -20938,6 +20946,27 @@
|
|
|
20938
20946
|
}
|
|
20939
20947
|
]
|
|
20940
20948
|
},
|
|
20949
|
+
{
|
|
20950
|
+
"kind": "javascript-module",
|
|
20951
|
+
"path": "src/utils/uid.ts",
|
|
20952
|
+
"declarations": [
|
|
20953
|
+
{
|
|
20954
|
+
"kind": "variable",
|
|
20955
|
+
"name": "uid",
|
|
20956
|
+
"default": "function () {\n return Date.now().toString(36) + Math.random().toString(36).substring(2)\n}"
|
|
20957
|
+
}
|
|
20958
|
+
],
|
|
20959
|
+
"exports": [
|
|
20960
|
+
{
|
|
20961
|
+
"kind": "js",
|
|
20962
|
+
"name": "uid",
|
|
20963
|
+
"declaration": {
|
|
20964
|
+
"name": "uid",
|
|
20965
|
+
"module": "src/utils/uid.ts"
|
|
20966
|
+
}
|
|
20967
|
+
}
|
|
20968
|
+
]
|
|
20969
|
+
},
|
|
20941
20970
|
{
|
|
20942
20971
|
"kind": "javascript-module",
|
|
20943
20972
|
"path": "src/components/date-time-range/date-time-range.const.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/function Oh(o,t,n){let l,c=o;return typeof o=="object"?(c=o.slot,l=o):l={flatten:t},n?Jo({slot:c,flatten:t,selector:n}):ld({descriptor:g=>({get(){var h,w;const z="slot"+(c?`[name=${c}]`:":not([name])"),S=(h=this.renderRoot)===null||h===void 0?void 0:h.querySelector(z);return(w=S==null?void 0:S.assignedNodes(l))!==null&&w!==void 0?w:[]},enumerable:!0,configurable:!0})})}function lh(o,t){if(o){if(o instanceof t)return o;if(o instanceof ShadowRoot)return lh(o.host,t);if("parentNode"in o)return lh(o.parentElement||o.parentNode,t)}return null}const ze=o=>`brz-${o.toLowerCase()}`,ee=o=>customElements.get(o)?(console.warn(`Breeze UI 💨 :: ${o} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...t)=>{}):Wu(o);var Av=Object.defineProperty,$v=Object.getOwnPropertyDescriptor,Eh=(o,t,n,l)=>{for(var c=l>1?void 0:l?$v(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Av(t,n,c),c};const R5=ze("fade-in-out");exports.FadeInOut=class extends We{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(t){t.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?G``:G`<slot></slot>`}};exports.FadeInOut.styles=le`
|
|
65
|
+
*/function Oh(o,t,n){let l,c=o;return typeof o=="object"?(c=o.slot,l=o):l={flatten:t},n?Jo({slot:c,flatten:t,selector:n}):ld({descriptor:g=>({get(){var h,w;const z="slot"+(c?`[name=${c}]`:":not([name])"),S=(h=this.renderRoot)===null||h===void 0?void 0:h.querySelector(z);return(w=S==null?void 0:S.assignedNodes(l))!==null&&w!==void 0?w:[]},enumerable:!0,configurable:!0})})}function lh(o,t){if(o){if(o instanceof t)return o;if(o instanceof ShadowRoot)return lh(o.host,t);if("parentNode"in o)return lh(o.parentElement||o.parentNode,t)}return null}const ze=o=>`brz-${o.toLowerCase()}`,ee=o=>customElements.get(o)?(console.warn(`Breeze UI 💨 :: ${o} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...t)=>{}):Wu(o),uh=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var Av=Object.defineProperty,$v=Object.getOwnPropertyDescriptor,Eh=(o,t,n,l)=>{for(var c=l>1?void 0:l?$v(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Av(t,n,c),c};const R5=ze("fade-in-out");exports.FadeInOut=class extends We{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(t){t.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?G``:G`<slot></slot>`}};exports.FadeInOut.styles=le`
|
|
66
66
|
:host {
|
|
67
67
|
opacity: 0;
|
|
68
68
|
animation: fade-in 0.3s ease;
|
|
@@ -132,11 +132,11 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
${Ys(o)}
|
|
135
|
-
`;var En="top",hi="bottom",pi="right",In="left",fd="auto",Zu=[En,hi,pi,In],d1="start",Ru="end",Pv="clippingParents",B5="viewport",Cu="popper",Dv="reference",gp=Zu.reduce(function(o,t){return o.concat([t+"-"+d1,t+"-"+Ru])},[]),V5=[].concat(Zu,[fd]).reduce(function(o,t){return o.concat([t,t+"-"+d1,t+"-"+Ru])},[]),Nv="beforeRead",Rv="read",Hv="afterRead",Fv="beforeMain",Bv="main",Vv="afterMain",Wv="beforeWrite",Zv="write",Uv="afterWrite",
|
|
135
|
+
`;var En="top",hi="bottom",pi="right",In="left",fd="auto",Zu=[En,hi,pi,In],d1="start",Ru="end",Pv="clippingParents",B5="viewport",Cu="popper",Dv="reference",gp=Zu.reduce(function(o,t){return o.concat([t+"-"+d1,t+"-"+Ru])},[]),V5=[].concat(Zu,[fd]).reduce(function(o,t){return o.concat([t,t+"-"+d1,t+"-"+Ru])},[]),Nv="beforeRead",Rv="read",Hv="afterRead",Fv="beforeMain",Bv="main",Vv="afterMain",Wv="beforeWrite",Zv="write",Uv="afterWrite",ch=[Nv,Rv,Hv,Fv,Bv,Vv,Wv,Zv,Uv];function vo(o){return o?(o.nodeName||"").toLowerCase():null}function gi(o){if(o==null)return window;if(o.toString()!=="[object Window]"){var t=o.ownerDocument;return t&&t.defaultView||window}return o}function Xs(o){var t=gi(o).Element;return o instanceof t||o instanceof Element}function Kn(o){var t=gi(o).HTMLElement;return o instanceof t||o instanceof HTMLElement}function Ih(o){if(typeof ShadowRoot=="undefined")return!1;var t=gi(o).ShadowRoot;return o instanceof t||o instanceof ShadowRoot}function Gv(o){var t=o.state;Object.keys(t.elements).forEach(function(n){var l=t.styles[n]||{},c=t.attributes[n]||{},g=t.elements[n];!Kn(g)||!vo(g)||(Object.assign(g.style,l),Object.keys(c).forEach(function(h){var w=c[h];w===!1?g.removeAttribute(h):g.setAttribute(h,w===!0?"":w)}))})}function qv(o){var t=o.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(l){var c=t.elements[l],g=t.attributes[l]||{},h=Object.keys(t.styles.hasOwnProperty(l)?t.styles[l]:n[l]),w=h.reduce(function(z,S){return z[S]="",z},{});!Kn(c)||!vo(c)||(Object.assign(c.style,w),Object.keys(g).forEach(function(z){c.removeAttribute(z)}))})}}const jv={name:"applyStyles",enabled:!0,phase:"write",fn:Gv,effect:qv,requires:["computeStyles"]};function Di(o){return o.split("-")[0]}var Us=Math.max,Z0=Math.min,f1=Math.round;function dh(){var o=navigator.userAgentData;return o!=null&&o.brands?o.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function W5(){return!/^((?!chrome|android).)*safari/i.test(dh())}function h1(o,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var l=o.getBoundingClientRect(),c=1,g=1;t&&Kn(o)&&(c=o.offsetWidth>0&&f1(l.width)/o.offsetWidth||1,g=o.offsetHeight>0&&f1(l.height)/o.offsetHeight||1);var h=Xs(o)?gi(o):window,w=h.visualViewport,z=!W5()&&n,S=(l.left+(z&&w?w.offsetLeft:0))/c,E=(l.top+(z&&w?w.offsetTop:0))/g,D=l.width/c,B=l.height/g;return{width:D,height:B,top:E,right:S+D,bottom:E+B,left:S,x:S,y:E}}function Ah(o){var t=h1(o),n=o.offsetWidth,l=o.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:o.offsetLeft,y:o.offsetTop,width:n,height:l}}function Z5(o,t){var n=t.getRootNode&&t.getRootNode();if(o.contains(t))return!0;if(n&&Ih(n)){var l=t;do{if(l&&o.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Ni(o){return gi(o).getComputedStyle(o)}function Kv(o){return["table","td","th"].indexOf(vo(o))>=0}function Ga(o){return((Xs(o)?o.ownerDocument:o.document)||window.document).documentElement}function hd(o){return vo(o)==="html"?o:o.assignedSlot||o.parentNode||(Ih(o)?o.host:null)||Ga(o)}function vp(o){return!Kn(o)||Ni(o).position==="fixed"?null:o.offsetParent}function Yv(o){var t=/firefox/i.test(dh()),n=/Trident/i.test(dh());if(n&&Kn(o)){var l=Ni(o);if(l.position==="fixed")return null}var c=hd(o);for(Ih(c)&&(c=c.host);Kn(c)&&["html","body"].indexOf(vo(c))<0;){var g=Ni(c);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||t&&g.willChange==="filter"||t&&g.filter&&g.filter!=="none")return c;c=c.parentNode}return null}function Uu(o){for(var t=gi(o),n=vp(o);n&&Kv(n)&&Ni(n).position==="static";)n=vp(n);return n&&(vo(n)==="html"||vo(n)==="body"&&Ni(n).position==="static")?t:n||Yv(o)||t}function $h(o){return["top","bottom"].indexOf(o)>=0?"x":"y"}function ku(o,t,n){return Us(o,Z0(t,n))}function Xv(o,t,n){var l=ku(o,t,n);return l>n?n:l}function U5(){return{top:0,right:0,bottom:0,left:0}}function G5(o){return Object.assign({},U5(),o)}function q5(o,t){return t.reduce(function(n,l){return n[l]=o,n},{})}var Jv=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,G5(typeof t!="number"?t:q5(t,Zu))};function Qv(o){var t,n=o.state,l=o.name,c=o.options,g=n.elements.arrow,h=n.modifiersData.popperOffsets,w=Di(n.placement),z=$h(w),S=[In,pi].indexOf(w)>=0,E=S?"height":"width";if(!(!g||!h)){var D=Jv(c.padding,n),B=Ah(g),H=z==="y"?En:In,J=z==="y"?hi:pi,pe=n.rects.reference[E]+n.rects.reference[z]-h[z]-n.rects.popper[E],ge=h[z]-n.rects.reference[z],Te=Uu(g),Ie=Te?z==="y"?Te.clientHeight||0:Te.clientWidth||0:0,be=pe/2-ge/2,ve=D[H],ke=Ie-B[E]-D[J],$e=Ie/2-B[E]/2+be,De=ku(ve,$e,ke),je=z;n.modifiersData[l]=(t={},t[je]=De,t.centerOffset=De-$e,t)}}function eb(o){var t=o.state,n=o.options,l=n.element,c=l===void 0?"[data-popper-arrow]":l;if(c!=null&&!(typeof c=="string"&&(c=t.elements.popper.querySelector(c),!c))){if({}.NODE_ENV!=="production"&&(Kn(c)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Z5(t.elements.popper,c)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=c}}const tb={name:"arrow",enabled:!0,phase:"main",fn:Qv,effect:eb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function p1(o){return o.split("-")[1]}var rb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nb(o){var t=o.x,n=o.y,l=window,c=l.devicePixelRatio||1;return{x:f1(t*c)/c||0,y:f1(n*c)/c||0}}function bp(o){var t,n=o.popper,l=o.popperRect,c=o.placement,g=o.variation,h=o.offsets,w=o.position,z=o.gpuAcceleration,S=o.adaptive,E=o.roundOffsets,D=o.isFixed,B=h.x,H=B===void 0?0:B,J=h.y,pe=J===void 0?0:J,ge=typeof E=="function"?E({x:H,y:pe}):{x:H,y:pe};H=ge.x,pe=ge.y;var Te=h.hasOwnProperty("x"),Ie=h.hasOwnProperty("y"),be=In,ve=En,ke=window;if(S){var $e=Uu(n),De="clientHeight",je="clientWidth";if($e===gi(n)&&($e=Ga(n),Ni($e).position!=="static"&&w==="absolute"&&(De="scrollHeight",je="scrollWidth")),$e=$e,c===En||(c===In||c===pi)&&g===Ru){ve=hi;var Ye=D&&$e===ke&&ke.visualViewport?ke.visualViewport.height:$e[De];pe-=Ye-l.height,pe*=z?1:-1}if(c===In||(c===En||c===hi)&&g===Ru){be=pi;var Ce=D&&$e===ke&&ke.visualViewport?ke.visualViewport.width:$e[je];H-=Ce-l.width,H*=z?1:-1}}var ue=Object.assign({position:w},S&&rb),Q=E===!0?nb({x:H,y:pe}):{x:H,y:pe};if(H=Q.x,pe=Q.y,z){var $;return Object.assign({},ue,($={},$[ve]=Ie?"0":"",$[be]=Te?"0":"",$.transform=(ke.devicePixelRatio||1)<=1?"translate("+H+"px, "+pe+"px)":"translate3d("+H+"px, "+pe+"px, 0)",$))}return Object.assign({},ue,(t={},t[ve]=Ie?pe+"px":"",t[be]=Te?H+"px":"",t.transform="",t))}function ib(o){var t=o.state,n=o.options,l=n.gpuAcceleration,c=l===void 0?!0:l,g=n.adaptive,h=g===void 0?!0:g,w=n.roundOffsets,z=w===void 0?!0:w;if({}.NODE_ENV!=="production"){var S=Ni(t.elements.popper).transitionProperty||"";h&&["transform","top","right","bottom","left"].some(function(D){return S.indexOf(D)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
136
136
|
|
|
137
137
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
138
138
|
|
|
139
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var E={placement:Di(t.placement),variation:p1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bp(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:z})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bp(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:z})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ob={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ib,data:{}};var L0={passive:!0};function ab(o){var t=o.state,n=o.instance,l=o.options,c=l.scroll,g=c===void 0?!0:c,h=l.resize,w=h===void 0?!0:h,z=gi(t.elements.popper),S=[].concat(t.scrollParents.reference,t.scrollParents.popper);return g&&S.forEach(function(E){E.addEventListener("scroll",n.update,L0)}),w&&z.addEventListener("resize",n.update,L0),function(){g&&S.forEach(function(E){E.removeEventListener("scroll",n.update,L0)}),w&&z.removeEventListener("resize",n.update,L0)}}const sb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ab,data:{}};var lb={left:"right",right:"left",bottom:"top",top:"bottom"};function P0(o){return o.replace(/left|right|bottom|top/g,function(t){return lb[t]})}var ub={start:"end",end:"start"};function mp(o){return o.replace(/start|end/g,function(t){return ub[t]})}function Ph(o){var t=gi(o),n=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:n,scrollTop:l}}function Dh(o){return h1(Ga(o)).left+Ph(o).scrollLeft}function cb(o,t){var n=gi(o),l=Ga(o),c=n.visualViewport,g=l.clientWidth,h=l.clientHeight,w=0,z=0;if(c){g=c.width,h=c.height;var S=W5();(S||!S&&t==="fixed")&&(w=c.offsetLeft,z=c.offsetTop)}return{width:g,height:h,x:w+Dh(o),y:z}}function db(o){var t,n=Ga(o),l=Ph(o),c=(t=o.ownerDocument)==null?void 0:t.body,g=Us(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=Us(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),w=-l.scrollLeft+Dh(o),z=-l.scrollTop;return Ni(c||n).direction==="rtl"&&(w+=Us(n.clientWidth,c?c.clientWidth:0)-g),{width:g,height:h,x:w,y:z}}function Nh(o){var t=Ni(o),n=t.overflow,l=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+l)}function j5(o){return["html","body","#document"].indexOf(vo(o))>=0?o.ownerDocument.body:Kn(o)&&Nh(o)?o:j5(hd(o))}function Ou(o,t){var n;t===void 0&&(t=[]);var l=j5(o),c=l===((n=o.ownerDocument)==null?void 0:n.body),g=gi(l),h=c?[g].concat(g.visualViewport||[],Nh(l)?l:[]):l,w=t.concat(h);return c?w:w.concat(Ou(hd(h)))}function dh(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function fb(o,t){var n=h1(o,!1,t==="fixed");return n.top=n.top+o.clientTop,n.left=n.left+o.clientLeft,n.bottom=n.top+o.clientHeight,n.right=n.left+o.clientWidth,n.width=o.clientWidth,n.height=o.clientHeight,n.x=n.left,n.y=n.top,n}function yp(o,t,n){return t===B5?dh(cb(o,n)):Xs(t)?fb(t,n):dh(db(Ga(o)))}function hb(o){var t=Ou(hd(o)),n=["absolute","fixed"].indexOf(Ni(o).position)>=0,l=n&&Kn(o)?Uu(o):o;return Xs(l)?t.filter(function(c){return Xs(c)&&Z5(c,l)&&vo(c)!=="body"}):[]}function pb(o,t,n,l){var c=t==="clippingParents"?hb(o):[].concat(t),g=[].concat(c,[n]),h=g[0],w=g.reduce(function(z,S){var E=yp(o,S,l);return z.top=Us(E.top,z.top),z.right=Z0(E.right,z.right),z.bottom=Z0(E.bottom,z.bottom),z.left=Us(E.left,z.left),z},yp(o,h,l));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}function K5(o){var t=o.reference,n=o.element,l=o.placement,c=l?Di(l):null,g=l?p1(l):null,h=t.x+t.width/2-n.width/2,w=t.y+t.height/2-n.height/2,z;switch(c){case En:z={x:h,y:t.y-n.height};break;case hi:z={x:h,y:t.y+t.height};break;case pi:z={x:t.x+t.width,y:w};break;case In:z={x:t.x-n.width,y:w};break;default:z={x:t.x,y:t.y}}var S=c?$h(c):null;if(S!=null){var E=S==="y"?"height":"width";switch(g){case d1:z[S]=z[S]-(t[E]/2-n[E]/2);break;case Ru:z[S]=z[S]+(t[E]/2-n[E]/2);break}}return z}function Hu(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=l===void 0?o.placement:l,g=n.strategy,h=g===void 0?o.strategy:g,w=n.boundary,z=w===void 0?Pv:w,S=n.rootBoundary,E=S===void 0?B5:S,D=n.elementContext,B=D===void 0?Cu:D,H=n.altBoundary,J=H===void 0?!1:H,pe=n.padding,ge=pe===void 0?0:pe,Te=G5(typeof ge!="number"?ge:q5(ge,Zu)),Ie=B===Cu?Dv:Cu,be=o.rects.popper,ve=o.elements[J?Ie:B],ke=pb(Xs(ve)?ve:ve.contextElement||Ga(o.elements.popper),z,E,h),$e=h1(o.elements.reference),De=K5({reference:$e,element:be,strategy:"absolute",placement:c}),je=dh(Object.assign({},be,De)),Ye=B===Cu?je:$e,Ce={top:ke.top-Ye.top+Te.top,bottom:Ye.bottom-ke.bottom+Te.bottom,left:ke.left-Ye.left+Te.left,right:Ye.right-ke.right+Te.right},ue=o.modifiersData.offset;if(B===Cu&&ue){var Q=ue[c];Object.keys(Ce).forEach(function($){var k=[pi,hi].indexOf($)>=0?1:-1,O=[En,hi].indexOf($)>=0?"y":"x";Ce[$]+=Q[O]*k})}return Ce}function gb(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=n.boundary,g=n.rootBoundary,h=n.padding,w=n.flipVariations,z=n.allowedAutoPlacements,S=z===void 0?V5:z,E=p1(l),D=E?w?gp:gp.filter(function(J){return p1(J)===E}):Zu,B=D.filter(function(J){return S.indexOf(J)>=0});B.length===0&&(B=D,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var H=B.reduce(function(J,pe){return J[pe]=Hu(o,{placement:pe,boundary:c,rootBoundary:g,padding:h})[Di(pe)],J},{});return Object.keys(H).sort(function(J,pe){return H[J]-H[pe]})}function vb(o){if(Di(o)===fd)return[];var t=P0(o);return[mp(o),t,mp(t)]}function bb(o){var t=o.state,n=o.options,l=o.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!0:h,z=n.fallbackPlacements,S=n.padding,E=n.boundary,D=n.rootBoundary,B=n.altBoundary,H=n.flipVariations,J=H===void 0?!0:H,pe=n.allowedAutoPlacements,ge=t.options.placement,Te=Di(ge),Ie=Te===ge,be=z||(Ie||!J?[P0(ge)]:vb(ge)),ve=[ge].concat(be).reduce(function(zt,rt){return zt.concat(Di(rt)===fd?gb(t,{placement:rt,boundary:E,rootBoundary:D,padding:S,flipVariations:J,allowedAutoPlacements:pe}):rt)},[]),ke=t.rects.reference,$e=t.rects.popper,De=new Map,je=!0,Ye=ve[0],Ce=0;Ce<ve.length;Ce++){var ue=ve[Ce],Q=Di(ue),$=p1(ue)===d1,k=[En,hi].indexOf(Q)>=0,O=k?"width":"height",X=Hu(t,{placement:ue,boundary:E,rootBoundary:D,altBoundary:B,padding:S}),ce=k?$?pi:In:$?hi:En;ke[O]>$e[O]&&(ce=P0(ce));var Ae=P0(ce),et=[];if(g&&et.push(X[Q]<=0),w&&et.push(X[ce]<=0,X[Ae]<=0),et.every(function(zt){return zt})){Ye=ue,je=!1;break}De.set(ue,et)}if(je)for(var pt=J?3:1,Ct=function(rt){var Le=ve.find(function(Ne){var Ge=De.get(Ne);if(Ge)return Ge.slice(0,rt).every(function(st){return st})});if(Le)return Ye=Le,"break"},or=pt;or>0;or--){var Tt=Ct(or);if(Tt==="break")break}t.placement!==Ye&&(t.modifiersData[l]._skip=!0,t.placement=Ye,t.reset=!0)}}const mb={name:"flip",enabled:!0,phase:"main",fn:bb,requiresIfExists:["offset"],data:{_skip:!1}};function Cp(o,t,n){return n===void 0&&(n={x:0,y:0}),{top:o.top-t.height-n.y,right:o.right-t.width+n.x,bottom:o.bottom-t.height+n.y,left:o.left-t.width-n.x}}function wp(o){return[En,pi,hi,In].some(function(t){return o[t]>=0})}function yb(o){var t=o.state,n=o.name,l=t.rects.reference,c=t.rects.popper,g=t.modifiersData.preventOverflow,h=Hu(t,{elementContext:"reference"}),w=Hu(t,{altBoundary:!0}),z=Cp(h,l),S=Cp(w,c,g),E=wp(z),D=wp(S);t.modifiersData[n]={referenceClippingOffsets:z,popperEscapeOffsets:S,isReferenceHidden:E,hasPopperEscaped:D},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":D})}const Cb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yb};function wb(o,t,n){var l=Di(o),c=[In,En].indexOf(l)>=0?-1:1,g=typeof n=="function"?n(Object.assign({},t,{placement:o})):n,h=g[0],w=g[1];return h=h||0,w=(w||0)*c,[In,pi].indexOf(l)>=0?{x:w,y:h}:{x:h,y:w}}function xb(o){var t=o.state,n=o.options,l=o.name,c=n.offset,g=c===void 0?[0,0]:c,h=V5.reduce(function(E,D){return E[D]=wb(D,t.rects,g),E},{}),w=h[t.placement],z=w.x,S=w.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=z,t.modifiersData.popperOffsets.y+=S),t.modifiersData[l]=h}const zb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xb};function Lb(o){var t=o.state,n=o.name;t.modifiersData[n]=K5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Sb={name:"popperOffsets",enabled:!0,phase:"read",fn:Lb,data:{}};function Mb(o){return o==="x"?"y":"x"}function _b(o){var t=o.state,n=o.options,l=o.name,c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!1:h,z=n.boundary,S=n.rootBoundary,E=n.altBoundary,D=n.padding,B=n.tether,H=B===void 0?!0:B,J=n.tetherOffset,pe=J===void 0?0:J,ge=Hu(t,{boundary:z,rootBoundary:S,padding:D,altBoundary:E}),Te=Di(t.placement),Ie=p1(t.placement),be=!Ie,ve=$h(Te),ke=Mb(ve),$e=t.modifiersData.popperOffsets,De=t.rects.reference,je=t.rects.popper,Ye=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,Ce=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if($e){if(g){var $,k=ve==="y"?En:In,O=ve==="y"?hi:pi,X=ve==="y"?"height":"width",ce=$e[ve],Ae=ce+ge[k],et=ce-ge[O],pt=H?-je[X]/2:0,Ct=Ie===d1?De[X]:je[X],or=Ie===d1?-je[X]:-De[X],Tt=t.elements.arrow,zt=H&&Tt?Ah(Tt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U5(),Le=rt[k],Ne=rt[O],Ge=ku(0,De[X],zt[X]),st=be?De[X]/2-pt-Ge-Le-Ce.mainAxis:Ct-Ge-Le-Ce.mainAxis,lt=be?-De[X]/2+pt+Ge+Ne+Ce.mainAxis:or+Ge+Ne+Ce.mainAxis,Ue=t.elements.arrow&&Uu(t.elements.arrow),Zt=Ue?ve==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,Gr=($=ue==null?void 0:ue[ve])!=null?$:0,tr=ce+st-Gr-Zt,Qe=ce+lt-Gr,bt=ku(H?Z0(Ae,tr):Ae,ce,H?Us(et,Qe):et);$e[ve]=bt,Q[ve]=bt-ce}if(w){var Et,Pr=ve==="x"?En:In,en=ve==="x"?hi:pi,ar=$e[ke],it=ke==="y"?"height":"width",U=ar+ge[Pr],se=ar-ge[en],Y=[En,In].indexOf(Te)!==-1,tt=(Et=ue==null?void 0:ue[ke])!=null?Et:0,sr=Y?U:ar-De[it]-je[it]-tt+Ce.altAxis,Lr=Y?ar+De[it]+je[it]-tt-Ce.altAxis:se,Pn=H&&Y?Xv(sr,ar,Lr):ku(H?sr:U,ar,H?Lr:se);$e[ke]=Pn,Q[ke]=Pn-ar}t.modifiersData[l]=Q}}const Tb={name:"preventOverflow",enabled:!0,phase:"main",fn:_b,requiresIfExists:["offset"]};function kb(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function Ob(o){return o===gi(o)||!Kn(o)?Ph(o):kb(o)}function Eb(o){var t=o.getBoundingClientRect(),n=f1(t.width)/o.offsetWidth||1,l=f1(t.height)/o.offsetHeight||1;return n!==1||l!==1}function Ib(o,t,n){n===void 0&&(n=!1);var l=Kn(t),c=Kn(t)&&Eb(t),g=Ga(t),h=h1(o,c,n),w={scrollLeft:0,scrollTop:0},z={x:0,y:0};return(l||!l&&!n)&&((vo(t)!=="body"||Nh(g))&&(w=Ob(t)),Kn(t)?(z=h1(t,!0),z.x+=t.clientLeft,z.y+=t.clientTop):g&&(z.x=Dh(g))),{x:h.left+w.scrollLeft-z.x,y:h.top+w.scrollTop-z.y,width:h.width,height:h.height}}function Ab(o){var t=new Map,n=new Set,l=[];o.forEach(function(g){t.set(g.name,g)});function c(g){n.add(g.name);var h=[].concat(g.requires||[],g.requiresIfExists||[]);h.forEach(function(w){if(!n.has(w)){var z=t.get(w);z&&c(z)}}),l.push(g)}return o.forEach(function(g){n.has(g.name)||c(g)}),l}function $b(o){var t=Ab(o);return uh.reduce(function(n,l){return n.concat(t.filter(function(c){return c.phase===l}))},[])}function Pb(o){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(o())})})),t}}function Ha(o){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return[].concat(n).reduce(function(c,g){return c.replace(/%s/,g)},o)}var Ds='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Db='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',xp=["name","enabled","phase","fn","effect","requires","options"];function Nb(o){o.forEach(function(t){[].concat(Object.keys(t),xp).filter(function(n,l,c){return c.indexOf(n)===l}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Ha(Ds,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Ha(Ds,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":uh.indexOf(t.phase)<0&&console.error(Ha(Ds,t.name,'"phase"',"either "+uh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Ha(Ds,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Ha(Ds,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Ha(Ds,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Ha(Ds,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+xp.map(function(l){return'"'+l+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(l){o.find(function(c){return c.name===l})==null&&console.error(Ha(Db,String(t.name),l,l))})})})}function Rb(o,t){var n=new Set;return o.filter(function(l){var c=t(l);if(!n.has(c))return n.add(c),!0})}function Hb(o){var t=o.reduce(function(n,l){var c=n[l.name];return n[l.name]=c?Object.assign({},c,l,{options:Object.assign({},c.options,l.options),data:Object.assign({},c.data,l.data)}):l,n},{});return Object.keys(t).map(function(n){return t[n]})}var zp="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Fb="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Lp={placement:"bottom",modifiers:[],strategy:"absolute"};function Sp(){for(var o=arguments.length,t=new Array(o),n=0;n<o;n++)t[n]=arguments[n];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Bb(o){o===void 0&&(o={});var t=o,n=t.defaultModifiers,l=n===void 0?[]:n,c=t.defaultOptions,g=c===void 0?Lp:c;return function(w,z,S){S===void 0&&(S=g);var E={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lp,g),modifiersData:{},elements:{reference:w,popper:z},attributes:{},styles:{}},D=[],B=!1,H={state:E,setOptions:function(Te){var Ie=typeof Te=="function"?Te(E.options):Te;pe(),E.options=Object.assign({},g,E.options,Ie),E.scrollParents={reference:Xs(w)?Ou(w):w.contextElement?Ou(w.contextElement):[],popper:Ou(z)};var be=$b(Hb([].concat(l,E.options.modifiers)));if(E.orderedModifiers=be.filter(function(ue){return ue.enabled}),{}.NODE_ENV!=="production"){var ve=Rb([].concat(be,E.options.modifiers),function(ue){var Q=ue.name;return Q});if(Nb(ve),Di(E.options.placement)===fd){var ke=E.orderedModifiers.find(function(ue){var Q=ue.name;return Q==="flip"});ke||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=Ni(z),De=$e.marginTop,je=$e.marginRight,Ye=$e.marginBottom,Ce=$e.marginLeft;[De,je,Ye,Ce].some(function(ue){return parseFloat(ue)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return J(),H.update()},forceUpdate:function(){if(!B){var Te=E.elements,Ie=Te.reference,be=Te.popper;if(!Sp(Ie,be)){({}).NODE_ENV!=="production"&&console.error(zp);return}E.rects={reference:Ib(Ie,Uu(be),E.options.strategy==="fixed"),popper:Ah(be)},E.reset=!1,E.placement=E.options.placement,E.orderedModifiers.forEach(function(ue){return E.modifiersData[ue.name]=Object.assign({},ue.data)});for(var ve=0,ke=0;ke<E.orderedModifiers.length;ke++){if({}.NODE_ENV!=="production"&&(ve+=1,ve>100)){console.error(Fb);break}if(E.reset===!0){E.reset=!1,ke=-1;continue}var $e=E.orderedModifiers[ke],De=$e.fn,je=$e.options,Ye=je===void 0?{}:je,Ce=$e.name;typeof De=="function"&&(E=De({state:E,options:Ye,name:Ce,instance:H})||E)}}},update:Pb(function(){return new Promise(function(ge){H.forceUpdate(),ge(E)})}),destroy:function(){pe(),B=!0}};if(!Sp(w,z))return{}.NODE_ENV!=="production"&&console.error(zp),H;H.setOptions(S).then(function(ge){!B&&S.onFirstUpdate&&S.onFirstUpdate(ge)});function J(){E.orderedModifiers.forEach(function(ge){var Te=ge.name,Ie=ge.options,be=Ie===void 0?{}:Ie,ve=ge.effect;if(typeof ve=="function"){var ke=ve({state:E,name:Te,instance:H,options:be}),$e=function(){};D.push(ke||$e)}})}function pe(){D.forEach(function(ge){return ge()}),D=[]}return H}}var Vb=[sb,Sb,ob,jv,zb,mb,Tb,tb,Cb],Wb=Bb({defaultModifiers:Vb}),Zb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Qr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ub(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Zb(t,n,c),c};let Gb=0;const Rh=ze("popover"),Y5=ze("pure-popover"),X5=["click","hover","focus"],[U0,fh,Bs]=X5,Hh=["dialog","tooltip","menu"],[qb]=Hh;class J5 extends CustomEvent{constructor(t){super(`${Rh}-${t}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends We{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=qb,this.disabled=!1,this.popoverId=`popover-${++Gb}`,this.delayTimeout=0}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.popperInstance)==null||t.destroy()}updatePosition(){var t;(t=this.popperInstance)==null||t.update()}async updated(t){super.updated(t),this.popperInstance=this.popperInstance||Wb(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){this.popperInstance&&await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return t==null?void 0:t.assignedElements({flatten:!0})[0]}get contentElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return t==null?void 0:t.assignedNodes({flatten:!0})[0]}get popoverElement(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector(".popover-container")}emit(t){this.dispatchEvent(new J5(t))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return G`
|
|
139
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var E={placement:Di(t.placement),variation:p1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bp(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:z})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bp(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:z})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ob={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ib,data:{}};var L0={passive:!0};function ab(o){var t=o.state,n=o.instance,l=o.options,c=l.scroll,g=c===void 0?!0:c,h=l.resize,w=h===void 0?!0:h,z=gi(t.elements.popper),S=[].concat(t.scrollParents.reference,t.scrollParents.popper);return g&&S.forEach(function(E){E.addEventListener("scroll",n.update,L0)}),w&&z.addEventListener("resize",n.update,L0),function(){g&&S.forEach(function(E){E.removeEventListener("scroll",n.update,L0)}),w&&z.removeEventListener("resize",n.update,L0)}}const sb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ab,data:{}};var lb={left:"right",right:"left",bottom:"top",top:"bottom"};function P0(o){return o.replace(/left|right|bottom|top/g,function(t){return lb[t]})}var ub={start:"end",end:"start"};function mp(o){return o.replace(/start|end/g,function(t){return ub[t]})}function Ph(o){var t=gi(o),n=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:n,scrollTop:l}}function Dh(o){return h1(Ga(o)).left+Ph(o).scrollLeft}function cb(o,t){var n=gi(o),l=Ga(o),c=n.visualViewport,g=l.clientWidth,h=l.clientHeight,w=0,z=0;if(c){g=c.width,h=c.height;var S=W5();(S||!S&&t==="fixed")&&(w=c.offsetLeft,z=c.offsetTop)}return{width:g,height:h,x:w+Dh(o),y:z}}function db(o){var t,n=Ga(o),l=Ph(o),c=(t=o.ownerDocument)==null?void 0:t.body,g=Us(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=Us(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),w=-l.scrollLeft+Dh(o),z=-l.scrollTop;return Ni(c||n).direction==="rtl"&&(w+=Us(n.clientWidth,c?c.clientWidth:0)-g),{width:g,height:h,x:w,y:z}}function Nh(o){var t=Ni(o),n=t.overflow,l=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+l)}function j5(o){return["html","body","#document"].indexOf(vo(o))>=0?o.ownerDocument.body:Kn(o)&&Nh(o)?o:j5(hd(o))}function Ou(o,t){var n;t===void 0&&(t=[]);var l=j5(o),c=l===((n=o.ownerDocument)==null?void 0:n.body),g=gi(l),h=c?[g].concat(g.visualViewport||[],Nh(l)?l:[]):l,w=t.concat(h);return c?w:w.concat(Ou(hd(h)))}function fh(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function fb(o,t){var n=h1(o,!1,t==="fixed");return n.top=n.top+o.clientTop,n.left=n.left+o.clientLeft,n.bottom=n.top+o.clientHeight,n.right=n.left+o.clientWidth,n.width=o.clientWidth,n.height=o.clientHeight,n.x=n.left,n.y=n.top,n}function yp(o,t,n){return t===B5?fh(cb(o,n)):Xs(t)?fb(t,n):fh(db(Ga(o)))}function hb(o){var t=Ou(hd(o)),n=["absolute","fixed"].indexOf(Ni(o).position)>=0,l=n&&Kn(o)?Uu(o):o;return Xs(l)?t.filter(function(c){return Xs(c)&&Z5(c,l)&&vo(c)!=="body"}):[]}function pb(o,t,n,l){var c=t==="clippingParents"?hb(o):[].concat(t),g=[].concat(c,[n]),h=g[0],w=g.reduce(function(z,S){var E=yp(o,S,l);return z.top=Us(E.top,z.top),z.right=Z0(E.right,z.right),z.bottom=Z0(E.bottom,z.bottom),z.left=Us(E.left,z.left),z},yp(o,h,l));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}function K5(o){var t=o.reference,n=o.element,l=o.placement,c=l?Di(l):null,g=l?p1(l):null,h=t.x+t.width/2-n.width/2,w=t.y+t.height/2-n.height/2,z;switch(c){case En:z={x:h,y:t.y-n.height};break;case hi:z={x:h,y:t.y+t.height};break;case pi:z={x:t.x+t.width,y:w};break;case In:z={x:t.x-n.width,y:w};break;default:z={x:t.x,y:t.y}}var S=c?$h(c):null;if(S!=null){var E=S==="y"?"height":"width";switch(g){case d1:z[S]=z[S]-(t[E]/2-n[E]/2);break;case Ru:z[S]=z[S]+(t[E]/2-n[E]/2);break}}return z}function Hu(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=l===void 0?o.placement:l,g=n.strategy,h=g===void 0?o.strategy:g,w=n.boundary,z=w===void 0?Pv:w,S=n.rootBoundary,E=S===void 0?B5:S,D=n.elementContext,B=D===void 0?Cu:D,H=n.altBoundary,J=H===void 0?!1:H,pe=n.padding,ge=pe===void 0?0:pe,Te=G5(typeof ge!="number"?ge:q5(ge,Zu)),Ie=B===Cu?Dv:Cu,be=o.rects.popper,ve=o.elements[J?Ie:B],ke=pb(Xs(ve)?ve:ve.contextElement||Ga(o.elements.popper),z,E,h),$e=h1(o.elements.reference),De=K5({reference:$e,element:be,strategy:"absolute",placement:c}),je=fh(Object.assign({},be,De)),Ye=B===Cu?je:$e,Ce={top:ke.top-Ye.top+Te.top,bottom:Ye.bottom-ke.bottom+Te.bottom,left:ke.left-Ye.left+Te.left,right:Ye.right-ke.right+Te.right},ue=o.modifiersData.offset;if(B===Cu&&ue){var Q=ue[c];Object.keys(Ce).forEach(function($){var k=[pi,hi].indexOf($)>=0?1:-1,O=[En,hi].indexOf($)>=0?"y":"x";Ce[$]+=Q[O]*k})}return Ce}function gb(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=n.boundary,g=n.rootBoundary,h=n.padding,w=n.flipVariations,z=n.allowedAutoPlacements,S=z===void 0?V5:z,E=p1(l),D=E?w?gp:gp.filter(function(J){return p1(J)===E}):Zu,B=D.filter(function(J){return S.indexOf(J)>=0});B.length===0&&(B=D,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var H=B.reduce(function(J,pe){return J[pe]=Hu(o,{placement:pe,boundary:c,rootBoundary:g,padding:h})[Di(pe)],J},{});return Object.keys(H).sort(function(J,pe){return H[J]-H[pe]})}function vb(o){if(Di(o)===fd)return[];var t=P0(o);return[mp(o),t,mp(t)]}function bb(o){var t=o.state,n=o.options,l=o.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!0:h,z=n.fallbackPlacements,S=n.padding,E=n.boundary,D=n.rootBoundary,B=n.altBoundary,H=n.flipVariations,J=H===void 0?!0:H,pe=n.allowedAutoPlacements,ge=t.options.placement,Te=Di(ge),Ie=Te===ge,be=z||(Ie||!J?[P0(ge)]:vb(ge)),ve=[ge].concat(be).reduce(function(zt,rt){return zt.concat(Di(rt)===fd?gb(t,{placement:rt,boundary:E,rootBoundary:D,padding:S,flipVariations:J,allowedAutoPlacements:pe}):rt)},[]),ke=t.rects.reference,$e=t.rects.popper,De=new Map,je=!0,Ye=ve[0],Ce=0;Ce<ve.length;Ce++){var ue=ve[Ce],Q=Di(ue),$=p1(ue)===d1,k=[En,hi].indexOf(Q)>=0,O=k?"width":"height",X=Hu(t,{placement:ue,boundary:E,rootBoundary:D,altBoundary:B,padding:S}),ce=k?$?pi:In:$?hi:En;ke[O]>$e[O]&&(ce=P0(ce));var Ae=P0(ce),et=[];if(g&&et.push(X[Q]<=0),w&&et.push(X[ce]<=0,X[Ae]<=0),et.every(function(zt){return zt})){Ye=ue,je=!1;break}De.set(ue,et)}if(je)for(var pt=J?3:1,Ct=function(rt){var Le=ve.find(function(Ne){var Ge=De.get(Ne);if(Ge)return Ge.slice(0,rt).every(function(st){return st})});if(Le)return Ye=Le,"break"},or=pt;or>0;or--){var Tt=Ct(or);if(Tt==="break")break}t.placement!==Ye&&(t.modifiersData[l]._skip=!0,t.placement=Ye,t.reset=!0)}}const mb={name:"flip",enabled:!0,phase:"main",fn:bb,requiresIfExists:["offset"],data:{_skip:!1}};function Cp(o,t,n){return n===void 0&&(n={x:0,y:0}),{top:o.top-t.height-n.y,right:o.right-t.width+n.x,bottom:o.bottom-t.height+n.y,left:o.left-t.width-n.x}}function wp(o){return[En,pi,hi,In].some(function(t){return o[t]>=0})}function yb(o){var t=o.state,n=o.name,l=t.rects.reference,c=t.rects.popper,g=t.modifiersData.preventOverflow,h=Hu(t,{elementContext:"reference"}),w=Hu(t,{altBoundary:!0}),z=Cp(h,l),S=Cp(w,c,g),E=wp(z),D=wp(S);t.modifiersData[n]={referenceClippingOffsets:z,popperEscapeOffsets:S,isReferenceHidden:E,hasPopperEscaped:D},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":D})}const Cb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yb};function wb(o,t,n){var l=Di(o),c=[In,En].indexOf(l)>=0?-1:1,g=typeof n=="function"?n(Object.assign({},t,{placement:o})):n,h=g[0],w=g[1];return h=h||0,w=(w||0)*c,[In,pi].indexOf(l)>=0?{x:w,y:h}:{x:h,y:w}}function xb(o){var t=o.state,n=o.options,l=o.name,c=n.offset,g=c===void 0?[0,0]:c,h=V5.reduce(function(E,D){return E[D]=wb(D,t.rects,g),E},{}),w=h[t.placement],z=w.x,S=w.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=z,t.modifiersData.popperOffsets.y+=S),t.modifiersData[l]=h}const zb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xb};function Lb(o){var t=o.state,n=o.name;t.modifiersData[n]=K5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Sb={name:"popperOffsets",enabled:!0,phase:"read",fn:Lb,data:{}};function Mb(o){return o==="x"?"y":"x"}function _b(o){var t=o.state,n=o.options,l=o.name,c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,w=h===void 0?!1:h,z=n.boundary,S=n.rootBoundary,E=n.altBoundary,D=n.padding,B=n.tether,H=B===void 0?!0:B,J=n.tetherOffset,pe=J===void 0?0:J,ge=Hu(t,{boundary:z,rootBoundary:S,padding:D,altBoundary:E}),Te=Di(t.placement),Ie=p1(t.placement),be=!Ie,ve=$h(Te),ke=Mb(ve),$e=t.modifiersData.popperOffsets,De=t.rects.reference,je=t.rects.popper,Ye=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,Ce=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),ue=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if($e){if(g){var $,k=ve==="y"?En:In,O=ve==="y"?hi:pi,X=ve==="y"?"height":"width",ce=$e[ve],Ae=ce+ge[k],et=ce-ge[O],pt=H?-je[X]/2:0,Ct=Ie===d1?De[X]:je[X],or=Ie===d1?-je[X]:-De[X],Tt=t.elements.arrow,zt=H&&Tt?Ah(Tt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U5(),Le=rt[k],Ne=rt[O],Ge=ku(0,De[X],zt[X]),st=be?De[X]/2-pt-Ge-Le-Ce.mainAxis:Ct-Ge-Le-Ce.mainAxis,lt=be?-De[X]/2+pt+Ge+Ne+Ce.mainAxis:or+Ge+Ne+Ce.mainAxis,Ue=t.elements.arrow&&Uu(t.elements.arrow),Zt=Ue?ve==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,Gr=($=ue==null?void 0:ue[ve])!=null?$:0,tr=ce+st-Gr-Zt,Qe=ce+lt-Gr,bt=ku(H?Z0(Ae,tr):Ae,ce,H?Us(et,Qe):et);$e[ve]=bt,Q[ve]=bt-ce}if(w){var Et,Pr=ve==="x"?En:In,en=ve==="x"?hi:pi,ar=$e[ke],it=ke==="y"?"height":"width",U=ar+ge[Pr],se=ar-ge[en],Y=[En,In].indexOf(Te)!==-1,tt=(Et=ue==null?void 0:ue[ke])!=null?Et:0,sr=Y?U:ar-De[it]-je[it]-tt+Ce.altAxis,Lr=Y?ar+De[it]+je[it]-tt-Ce.altAxis:se,Pn=H&&Y?Xv(sr,ar,Lr):ku(H?sr:U,ar,H?Lr:se);$e[ke]=Pn,Q[ke]=Pn-ar}t.modifiersData[l]=Q}}const Tb={name:"preventOverflow",enabled:!0,phase:"main",fn:_b,requiresIfExists:["offset"]};function kb(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function Ob(o){return o===gi(o)||!Kn(o)?Ph(o):kb(o)}function Eb(o){var t=o.getBoundingClientRect(),n=f1(t.width)/o.offsetWidth||1,l=f1(t.height)/o.offsetHeight||1;return n!==1||l!==1}function Ib(o,t,n){n===void 0&&(n=!1);var l=Kn(t),c=Kn(t)&&Eb(t),g=Ga(t),h=h1(o,c,n),w={scrollLeft:0,scrollTop:0},z={x:0,y:0};return(l||!l&&!n)&&((vo(t)!=="body"||Nh(g))&&(w=Ob(t)),Kn(t)?(z=h1(t,!0),z.x+=t.clientLeft,z.y+=t.clientTop):g&&(z.x=Dh(g))),{x:h.left+w.scrollLeft-z.x,y:h.top+w.scrollTop-z.y,width:h.width,height:h.height}}function Ab(o){var t=new Map,n=new Set,l=[];o.forEach(function(g){t.set(g.name,g)});function c(g){n.add(g.name);var h=[].concat(g.requires||[],g.requiresIfExists||[]);h.forEach(function(w){if(!n.has(w)){var z=t.get(w);z&&c(z)}}),l.push(g)}return o.forEach(function(g){n.has(g.name)||c(g)}),l}function $b(o){var t=Ab(o);return ch.reduce(function(n,l){return n.concat(t.filter(function(c){return c.phase===l}))},[])}function Pb(o){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(o())})})),t}}function Ha(o){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return[].concat(n).reduce(function(c,g){return c.replace(/%s/,g)},o)}var Ds='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Db='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',xp=["name","enabled","phase","fn","effect","requires","options"];function Nb(o){o.forEach(function(t){[].concat(Object.keys(t),xp).filter(function(n,l,c){return c.indexOf(n)===l}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Ha(Ds,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Ha(Ds,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":ch.indexOf(t.phase)<0&&console.error(Ha(Ds,t.name,'"phase"',"either "+ch.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Ha(Ds,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Ha(Ds,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Ha(Ds,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Ha(Ds,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+xp.map(function(l){return'"'+l+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(l){o.find(function(c){return c.name===l})==null&&console.error(Ha(Db,String(t.name),l,l))})})})}function Rb(o,t){var n=new Set;return o.filter(function(l){var c=t(l);if(!n.has(c))return n.add(c),!0})}function Hb(o){var t=o.reduce(function(n,l){var c=n[l.name];return n[l.name]=c?Object.assign({},c,l,{options:Object.assign({},c.options,l.options),data:Object.assign({},c.data,l.data)}):l,n},{});return Object.keys(t).map(function(n){return t[n]})}var zp="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Fb="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Lp={placement:"bottom",modifiers:[],strategy:"absolute"};function Sp(){for(var o=arguments.length,t=new Array(o),n=0;n<o;n++)t[n]=arguments[n];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Bb(o){o===void 0&&(o={});var t=o,n=t.defaultModifiers,l=n===void 0?[]:n,c=t.defaultOptions,g=c===void 0?Lp:c;return function(w,z,S){S===void 0&&(S=g);var E={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lp,g),modifiersData:{},elements:{reference:w,popper:z},attributes:{},styles:{}},D=[],B=!1,H={state:E,setOptions:function(Te){var Ie=typeof Te=="function"?Te(E.options):Te;pe(),E.options=Object.assign({},g,E.options,Ie),E.scrollParents={reference:Xs(w)?Ou(w):w.contextElement?Ou(w.contextElement):[],popper:Ou(z)};var be=$b(Hb([].concat(l,E.options.modifiers)));if(E.orderedModifiers=be.filter(function(ue){return ue.enabled}),{}.NODE_ENV!=="production"){var ve=Rb([].concat(be,E.options.modifiers),function(ue){var Q=ue.name;return Q});if(Nb(ve),Di(E.options.placement)===fd){var ke=E.orderedModifiers.find(function(ue){var Q=ue.name;return Q==="flip"});ke||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=Ni(z),De=$e.marginTop,je=$e.marginRight,Ye=$e.marginBottom,Ce=$e.marginLeft;[De,je,Ye,Ce].some(function(ue){return parseFloat(ue)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return J(),H.update()},forceUpdate:function(){if(!B){var Te=E.elements,Ie=Te.reference,be=Te.popper;if(!Sp(Ie,be)){({}).NODE_ENV!=="production"&&console.error(zp);return}E.rects={reference:Ib(Ie,Uu(be),E.options.strategy==="fixed"),popper:Ah(be)},E.reset=!1,E.placement=E.options.placement,E.orderedModifiers.forEach(function(ue){return E.modifiersData[ue.name]=Object.assign({},ue.data)});for(var ve=0,ke=0;ke<E.orderedModifiers.length;ke++){if({}.NODE_ENV!=="production"&&(ve+=1,ve>100)){console.error(Fb);break}if(E.reset===!0){E.reset=!1,ke=-1;continue}var $e=E.orderedModifiers[ke],De=$e.fn,je=$e.options,Ye=je===void 0?{}:je,Ce=$e.name;typeof De=="function"&&(E=De({state:E,options:Ye,name:Ce,instance:H})||E)}}},update:Pb(function(){return new Promise(function(ge){H.forceUpdate(),ge(E)})}),destroy:function(){pe(),B=!0}};if(!Sp(w,z))return{}.NODE_ENV!=="production"&&console.error(zp),H;H.setOptions(S).then(function(ge){!B&&S.onFirstUpdate&&S.onFirstUpdate(ge)});function J(){E.orderedModifiers.forEach(function(ge){var Te=ge.name,Ie=ge.options,be=Ie===void 0?{}:Ie,ve=ge.effect;if(typeof ve=="function"){var ke=ve({state:E,name:Te,instance:H,options:be}),$e=function(){};D.push(ke||$e)}})}function pe(){D.forEach(function(ge){return ge()}),D=[]}return H}}var Vb=[sb,Sb,ob,jv,zb,mb,Tb,tb,Cb],Wb=Bb({defaultModifiers:Vb}),Zb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Qr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ub(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Zb(t,n,c),c};let Gb=0;const Rh=ze("popover"),Y5=ze("pure-popover"),X5=["click","hover","focus"],[U0,hh,Bs]=X5,Hh=["dialog","tooltip","menu"],[qb]=Hh;class J5 extends CustomEvent{constructor(t){super(`${Rh}-${t}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends We{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=qb,this.disabled=!1,this.popoverId=`popover-${++Gb}`,this.delayTimeout=0}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.popperInstance)==null||t.destroy()}updatePosition(){var t;(t=this.popperInstance)==null||t.update()}async updated(t){super.updated(t),this.popperInstance=this.popperInstance||Wb(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){this.popperInstance&&await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return t==null?void 0:t.assignedElements({flatten:!0})[0]}get contentElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return t==null?void 0:t.assignedNodes({flatten:!0})[0]}get popoverElement(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector(".popover-container")}emit(t){this.dispatchEvent(new J5(t))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return G`
|
|
140
140
|
<slot></slot>
|
|
141
141
|
|
|
142
142
|
<brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
.popover-container {
|
|
156
156
|
z-index: var(--brz-z-index-dialog);
|
|
157
157
|
}
|
|
158
|
-
`;Qr([N({type:Number})],exports.PurePopover.prototype,"distance",2);Qr([N({type:Number})],exports.PurePopover.prototype,"skidding",2);Qr([N({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Qr([N({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Qr([N({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Qr([N({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Qr([N({type:String})],exports.PurePopover.prototype,"placement",2);Qr([N({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Qr([N({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Qr([Re()],exports.PurePopover.prototype,"popoverId",2);Qr([Re()],exports.PurePopover.prototype,"popperInstance",2);Qr([Re()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Qr([ee(Y5)],exports.PurePopover);const G0=["blur","mouseenter","mouseleave","keydown",U0,Bs],[Gf,jb,Kb,Yb]=G0;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[U0]:this.handleClick,[Bs]:this.handleFocus,[Gf]:this.handleBlur,[jb]:this.handleMouseEnter,[Kb]:this.handleMouseLeave,[Yb]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){G0.forEach(t=>this.addEventListener(t,this.listenableEventHandlers[t],{capture:[Bs,Gf].includes(t)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){G0.forEach(t=>this.removeEventListener(t,this.listenableEventHandlers[t],{capture:[Bs,Gf].includes(t)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(t){return this.triggers.includes(t)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(t){!this.isOpen||this.contains(t.target)||this.hasPointer||await this.close()}async handleClick(t){var n;if(!(this.isOpen&&((n=this.contentElement)!=null&&n.contains(t.target)))){if(!this.hasTrigger(U0))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(Bs)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Bs)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(
|
|
158
|
+
`;Qr([N({type:Number})],exports.PurePopover.prototype,"distance",2);Qr([N({type:Number})],exports.PurePopover.prototype,"skidding",2);Qr([N({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Qr([N({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Qr([N({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Qr([N({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Qr([N({type:String})],exports.PurePopover.prototype,"placement",2);Qr([N({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Qr([N({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Qr([Re()],exports.PurePopover.prototype,"popoverId",2);Qr([Re()],exports.PurePopover.prototype,"popperInstance",2);Qr([Re()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Qr([ee(Y5)],exports.PurePopover);const G0=["blur","mouseenter","mouseleave","keydown",U0,Bs],[Gf,jb,Kb,Yb]=G0;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[U0]:this.handleClick,[Bs]:this.handleFocus,[Gf]:this.handleBlur,[jb]:this.handleMouseEnter,[Kb]:this.handleMouseLeave,[Yb]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){G0.forEach(t=>this.addEventListener(t,this.listenableEventHandlers[t],{capture:[Bs,Gf].includes(t)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){G0.forEach(t=>this.removeEventListener(t,this.listenableEventHandlers[t],{capture:[Bs,Gf].includes(t)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(t){return this.triggers.includes(t)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(t){!this.isOpen||this.contains(t.target)||this.hasPointer||await this.close()}async handleClick(t){var n;if(!(this.isOpen&&((n=this.contentElement)!=null&&n.contains(t.target)))){if(!this.hasTrigger(U0))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(Bs)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Bs)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(hh)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(hh)||this.hasFocus)&&await this.close()}async handleKeyDown(t){t.stopPropagation(),["Escape","Esc"].includes(t.key)&&await this.close()}};Qr([N({type:String})],exports.Popover.prototype,"trigger",2);Qr([Re()],exports.Popover.prototype,"hasFocus",2);Qr([Re()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Qr([ee(Rh)],exports.Popover);var Xb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,Qo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Jb(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Xb(t,n,c),c};const Q5=ze("tooltip"),[,Qb]=Hh;var e6=(o=>(o[o.dark=0]="dark",o[o.light=1]="light",o))(e6||{});exports.Tooltip=class extends We{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return G`
|
|
159
159
|
<brz-popover
|
|
160
160
|
.popoverRole=${Qb}
|
|
161
161
|
.distance=${8}
|
|
@@ -1710,7 +1710,7 @@ __p += '`),xt&&(fe+=`' +
|
|
|
1710
1710
|
function print() { __p += __j.call(arguments, '') }
|
|
1711
1711
|
`:`;
|
|
1712
1712
|
`)+fe+`return __p
|
|
1713
|
-
}`;var ht=W2(function(){return kt(_,Be+"return "+fe).apply(n,P)});if(ht.source=fe,Lf(ht))throw ht;return ht}function bg(i){return Rt(i).toLowerCase()}function mg(i){return Rt(i).toUpperCase()}function yg(i,u,f){if(i=Rt(i),i&&(f||u===n))return us(i);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=xn(u),_=ji(b,L),P=ml(b,L)+1;return po(b,_,P).join("")}function Cg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.slice(0,wl(i)+1);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ml(b,xn(u))+1;return po(b,0,L).join("")}function wg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.replace(zo,"");if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ji(b,xn(u));return po(b,L).join("")}function xg(i,u){var f=Ce,b=ue;if(er(u)){var L="separator"in u?u.separator:L;f="length"in u?ft(u.length):f,b="omission"in u?Rr(u.omission):b}i=Rt(i);var _=i.length;if(Vn(i)){var P=xn(i);_=P.length}if(f>=_)return i;var R=f-ko(b);if(R<1)return b;var Z=P?po(P,0,R).join(""):i.slice(0,R);if(L===n)return Z+b;if(P&&(R+=Z.length-R),Sf(L)){if(i.slice(R).search(L)){var ie,oe=Z;for(L.global||(L=Xi(L.source,Rt(Lo.exec(L))+"g")),L.lastIndex=0;ie=L.exec(oe);)var fe=ie.index;Z=Z.slice(0,fe===n?R:fe)}}else if(i.indexOf(Rr(L),R)!=R){var Me=Z.lastIndexOf(L);Me>-1&&(Z=Z.slice(0,Me))}return Z+b}function zg(i){return i=Rt(i),i&&aa.test(i)?i.replace(Nn,xl):i}var Lg=Ea(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),Tf=l0("toUpperCase");function V2(i,u,f){return i=Rt(i),u=f?n:u,u===n?ei(i)?Wn(i):mc(i):i.match(u)||[]}var W2=dt(function(i,u){try{return fn(i,n,u)}catch(f){return Lf(f)?f:new nt(f)}}),Sg=_i(function(i,u){return wn(u,function(f){f=$t(f),ai(i,f,xf(i[f],i))}),i});function Mg(i){var u=i==null?0:i.length,f=Ze();return i=u?At(i,function(b){if(typeof b[1]!="function")throw new on(h);return[f(b[0]),b[1]]}):[],dt(function(b){for(var L=-1;++L<u;){var _=i[L];if(fn(_[0],this,b))return fn(_[1],this,b)}})}function _g(i){return Hc(Jr(i,D))}function kf(i){return function(){return i}}function Tg(i,u){return i==null||i!==i?u:i}var kg=u0(),Og=u0(!0);function kn(i){return i}function Of(i){return qc(typeof i=="function"?i:Jr(i,D))}function Eg(i){return jc(Jr(i,D))}function Ig(i,u){return Q1(i,Jr(u,D))}var Ag=dt(function(i,u){return function(f){return xa(f,i,u)}}),$g=dt(function(i,u){return function(f){return xa(i,f,u)}});function Ef(i,u,f){var b=Zr(u),L=ws(u,b);f==null&&!(er(u)&&(L.length||!b.length))&&(f=u,u=i,i=this,L=ws(u,Zr(u)));var _=!(er(f)&&"chain"in f)||!!f.chain,P=Uo(i);return wn(L,function(R){var Z=u[R];i[R]=Z,P&&(i.prototype[R]=function(){var ie=this.__chain__;if(_||ie){var oe=i(this.__wrapped__),fe=oe.__actions__=yr(this.__actions__);return fe.push({func:Z,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return Z.apply(i,qi([this.value()],arguments))})}),i}function Pg(){return Ut._===this&&(Ut._=kc),this}function If(){}function Dg(i){return i=ft(i),dt(function(u){return Kc(u,i)})}var Ng=Aa(At),Rg=Aa(E1),Hg=Aa(Mo);function Z2(i){return C(i)?$1($t(i)):hf(i)}function Fg(i){return function(u){return i==null?n:uo(i,u)}}var Bg=c0(),Vg=c0(!0);function Af(){return[]}function $f(){return!1}function Wg(){return{}}function Zg(){return""}function Ug(){return!0}function Gg(i,u){if(i=ft(i),i<1||i>Ae)return[];var f=Ct,b=Tr(i,Ct);u=Ze(u),i-=Ct;for(var L=To(b,u);++f<i;)u(f);return L}function qg(i){return ct(i)?At(i,$t):Gn(i)?[i]:yr(cr(Rt(i)))}function jg(i){var u=++Qi;return Rt(i)+u}var Kg=Ts(function(i,u){return i+u},0),Yg=ks("ceil"),Xg=Ts(function(i,u){return i/u},1),Jg=ks("floor");function Qg(i){return i&&i.length?Cs(i,kn,Pl):n}function ev(i,u){return i&&i.length?Cs(i,Ze(u,2),Pl):n}function tv(i){return A1(i,kn)}function rv(i,u){return A1(i,Ze(u,2))}function nv(i){return i&&i.length?Cs(i,kn,fo):n}function iv(i,u){return i&&i.length?Cs(i,Ze(u,2),fo):n}var ov=Ts(function(i,u){return i*u},1),av=ks("round"),sv=Ts(function(i,u){return i-u},0);function lv(i){return i&&i.length?N1(i,kn):0}function uv(i,u){return i&&i.length?N1(i,Ze(u,2)):0}return M.after=E9,M.ary=w2,M.assign=m8,M.assignIn=P2,M.assignInWith=z0,M.assignWith=y8,M.at=C8,M.before=x2,M.bind=xf,M.bindAll=Sg,M.bindKey=z2,M.castArray=W9,M.chain=m2,M.chunk=Da,M.compact=go,M.concat=Ar,M.cond=Mg,M.conforms=_g,M.constant=kf,M.countBy=l9,M.create=w8,M.curry=L2,M.curryRight=S2,M.debounce=M2,M.defaults=x8,M.defaultsDeep=z8,M.defer=I9,M.delay=A9,M.difference=si,M.differenceBy=dr,M.differenceWith=gu,M.drop=Ti,M.dropRight=Wo,M.dropRightWhile=Zo,M.dropWhile=Wr,M.fill=Na,M.filter=c9,M.flatMap=h9,M.flatMapDeep=p9,M.flatMapDepth=g9,M.flatten=p2,M.flattenDeep=u7,M.flattenDepth=c7,M.flip=$9,M.flow=kg,M.flowRight=Og,M.fromPairs=d7,M.functions=O8,M.functionsIn=E8,M.groupBy=v9,M.initial=h7,M.intersection=p7,M.intersectionBy=g7,M.intersectionWith=v7,M.invert=A8,M.invertBy=$8,M.invokeMap=m9,M.iteratee=Of,M.keyBy=y9,M.keys=Zr,M.keysIn=Tn,M.map=b0,M.mapKeys=D8,M.mapValues=N8,M.matches=Eg,M.matchesProperty=Ig,M.memoize=y0,M.merge=R8,M.mergeWith=D2,M.method=Ag,M.methodOf=$g,M.mixin=Ef,M.negate=C0,M.nthArg=Dg,M.omit=H8,M.omitBy=F8,M.once=P9,M.orderBy=C9,M.over=Ng,M.overArgs=D9,M.overEvery=Rg,M.overSome=Hg,M.partial=zf,M.partialRight=_2,M.partition=w9,M.pick=B8,M.pickBy=N2,M.property=Z2,M.propertyOf=Fg,M.pull=C7,M.pullAll=v2,M.pullAllBy=w7,M.pullAllWith=x7,M.pullAt=z7,M.range=Bg,M.rangeRight=Vg,M.rearg=N9,M.reject=L9,M.remove=L7,M.rest=R9,M.reverse=Cf,M.sampleSize=M9,M.set=W8,M.setWith=Z8,M.shuffle=_9,M.slice=S7,M.sortBy=O9,M.sortedUniq=I7,M.sortedUniqBy=A7,M.split=hg,M.spread=H9,M.tail=$7,M.take=P7,M.takeRight=D7,M.takeRightWhile=N7,M.takeWhile=R7,M.tap=Q7,M.throttle=F9,M.thru=v0,M.toArray=I2,M.toPairs=R2,M.toPairsIn=H2,M.toPath=qg,M.toPlainObject=$2,M.transform=U8,M.unary=B9,M.union=H7,M.unionBy=F7,M.unionWith=B7,M.uniq=V7,M.uniqBy=W7,M.uniqWith=Z7,M.unset=G8,M.unzip=wf,M.unzipWith=b2,M.update=q8,M.updateWith=j8,M.values=e1,M.valuesIn=K8,M.without=U7,M.words=V2,M.wrap=V9,M.xor=G7,M.xorBy=q7,M.xorWith=j7,M.zip=K7,M.zipObject=Y7,M.zipObjectDeep=X7,M.zipWith=J7,M.entries=R2,M.entriesIn=H2,M.extend=P2,M.extendWith=z0,Ef(M,M),M.add=Kg,M.attempt=W2,M.camelCase=Q8,M.capitalize=F2,M.ceil=Yg,M.clamp=Y8,M.clone=Z9,M.cloneDeep=G9,M.cloneDeepWith=q9,M.cloneWith=U9,M.conformsTo=j9,M.deburr=B2,M.defaultTo=Tg,M.divide=Xg,M.endsWith=eg,M.eq=ki,M.escape=tg,M.escapeRegExp=rg,M.every=u9,M.find=d9,M.findIndex=Jl,M.findKey=L8,M.findLast=f9,M.findLastIndex=h2,M.findLastKey=S8,M.floor=Jg,M.forEach=y2,M.forEachRight=C2,M.forIn=M8,M.forInRight=_8,M.forOwn=T8,M.forOwnRight=k8,M.get=Mf,M.gt=K9,M.gte=Y9,M.has=I8,M.hasIn=_f,M.head=g2,M.identity=kn,M.includes=b9,M.indexOf=f7,M.inRange=X8,M.invoke=P8,M.isArguments=As,M.isArray=ct,M.isArrayBuffer=X9,M.isArrayLike=_n,M.isArrayLikeObject=fr,M.isBoolean=J9,M.isBuffer=Ra,M.isDate=Q9,M.isElement=e8,M.isEmpty=t8,M.isEqual=r8,M.isEqualWith=n8,M.isError=Lf,M.isFinite=i8,M.isFunction=Uo,M.isInteger=T2,M.isLength=w0,M.isMap=k2,M.isMatch=o8,M.isMatchWith=a8,M.isNaN=s8,M.isNative=l8,M.isNil=c8,M.isNull=u8,M.isNumber=O2,M.isObject=er,M.isObjectLike=nr,M.isPlainObject=vu,M.isRegExp=Sf,M.isSafeInteger=d8,M.isSet=E2,M.isString=x0,M.isSymbol=Gn,M.isTypedArray=Ql,M.isUndefined=f8,M.isWeakMap=h8,M.isWeakSet=p8,M.join=b7,M.kebabCase=ng,M.last=li,M.lastIndexOf=m7,M.lowerCase=ig,M.lowerFirst=og,M.lt=g8,M.lte=v8,M.max=Qg,M.maxBy=ev,M.mean=tv,M.meanBy=rv,M.min=nv,M.minBy=iv,M.stubArray=Af,M.stubFalse=$f,M.stubObject=Wg,M.stubString=Zg,M.stubTrue=Ug,M.multiply=ov,M.nth=y7,M.noConflict=Pg,M.noop=If,M.now=m0,M.pad=ag,M.padEnd=sg,M.padStart=lg,M.parseInt=ug,M.random=J8,M.reduce=x9,M.reduceRight=z9,M.repeat=cg,M.replace=dg,M.result=V8,M.round=av,M.runInContext=W,M.sample=S9,M.size=T9,M.snakeCase=fg,M.some=k9,M.sortedIndex=M7,M.sortedIndexBy=_7,M.sortedIndexOf=T7,M.sortedLastIndex=k7,M.sortedLastIndexBy=O7,M.sortedLastIndexOf=E7,M.startCase=pg,M.startsWith=gg,M.subtract=sv,M.sum=lv,M.sumBy=uv,M.template=vg,M.times=Gg,M.toFinite=Go,M.toInteger=ft,M.toLength=A2,M.toLower=bg,M.toNumber=ui,M.toSafeInteger=b8,M.toString=Rt,M.toUpper=mg,M.trim=yg,M.trimEnd=Cg,M.trimStart=wg,M.truncate=xg,M.unescape=zg,M.uniqueId=jg,M.upperCase=Lg,M.upperFirst=Tf,M.each=y2,M.eachRight=C2,M.first=g2,Ef(M,function(){var i={};return gn(M,function(u,f){ot.call(M.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),M.VERSION=l,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){M[i].placeholder=M}),wn(["drop","take"],function(i,u){vt.prototype[i]=function(f){f=f===n?1:Gt(ft(f),0);var b=this.__filtered__&&!u?new vt(this):this.clone();return b.__filtered__?b.__takeCount__=Tr(f,b.__takeCount__):b.__views__.push({size:Tr(f,Ct),type:i+(b.__dir__<0?"Right":"")}),b},vt.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),wn(["filter","map","takeWhile"],function(i,u){var f=u+1,b=f==k||f==X;vt.prototype[i]=function(L){var _=this.clone();return _.__iteratees__.push({iteratee:Ze(L,3),type:f}),_.__filtered__=_.__filtered__||b,_}}),wn(["head","last"],function(i,u){var f="take"+(u?"Right":"");vt.prototype[i]=function(){return this[f](1).value()[0]}}),wn(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(kn)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=dt(function(i,u){return typeof i=="function"?new vt(this):this.map(function(f){return xa(f,i,u)})}),vt.prototype.reject=function(i){return this.filter(C0(Ze(i)))},vt.prototype.slice=function(i,u){i=ft(i);var f=this;return f.__filtered__&&(i>0||u<0)?new vt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ft(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(Ct)},gn(vt.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),L=M[b?"take"+(u=="last"?"Right":""):u],_=b||/^find/.test(u);L&&(M.prototype[u]=function(){var P=this.__wrapped__,R=b?[1]:arguments,Z=P instanceof vt,ie=R[0],oe=Z||ct(P),fe=function(mt){var xt=L.apply(M,qi([mt],R));return b&&Me?xt[0]:xt};oe&&f&&typeof ie=="function"&&ie.length!=1&&(Z=oe=!1);var Me=this.__chain__,Be=!!this.__actions__.length,Xe=_&&!Me,ht=Z&&!Be;if(!_&&oe){P=ht?P:new vt(this);var Je=i.apply(P,R);return Je.__actions__.push({func:v0,args:[fe],thisArg:n}),new Xr(Je,Me)}return Xe&&ht?i.apply(this,R):(Je=this.thru(fe),Xe?b?Je.value()[0]:Je.value():Je)})}),wn(["pop","push","shift","sort","splice","unshift"],function(i){var u=ha[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",b=/^(?:pop|shift)$/.test(i);M.prototype[i]=function(){var L=arguments;if(b&&!this.__chain__){var _=this.value();return u.apply(ct(_)?_:[],L)}return this[f](function(P){return u.apply(ct(P)?P:[],L)})}}),gn(vt.prototype,function(i,u){var f=M[u];if(f){var b=f.name+"";ot.call(ya,b)||(ya[b]=[]),ya[b].push({name:u,func:f})}}),ya[_s(n,Te).name]=[{name:"wrapper",func:n}],vt.prototype.clone=nf,vt.prototype.reverse=of,vt.prototype.value=F1,M.prototype.at=e9,M.prototype.chain=t9,M.prototype.commit=r9,M.prototype.next=n9,M.prototype.plant=o9,M.prototype.reverse=a9,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=s9,M.prototype.first=M.prototype.head,eo&&(M.prototype[eo]=i9),M},Yi=_c();Kr?((Kr.exports=Yi)._=Yi,os._=Yi):Ut._=Yi}).call(o1)})(j0,j0.exports);var Uh=j0.exports;const $m=v6(Uh),Pm=cv({__proto__:null,default:$m},[Uh]);let hh=(o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");/**
|
|
1713
|
+
}`;var ht=W2(function(){return kt(_,Be+"return "+fe).apply(n,P)});if(ht.source=fe,Lf(ht))throw ht;return ht}function bg(i){return Rt(i).toLowerCase()}function mg(i){return Rt(i).toUpperCase()}function yg(i,u,f){if(i=Rt(i),i&&(f||u===n))return us(i);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=xn(u),_=ji(b,L),P=ml(b,L)+1;return po(b,_,P).join("")}function Cg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.slice(0,wl(i)+1);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ml(b,xn(u))+1;return po(b,0,L).join("")}function wg(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.replace(zo,"");if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ji(b,xn(u));return po(b,L).join("")}function xg(i,u){var f=Ce,b=ue;if(er(u)){var L="separator"in u?u.separator:L;f="length"in u?ft(u.length):f,b="omission"in u?Rr(u.omission):b}i=Rt(i);var _=i.length;if(Vn(i)){var P=xn(i);_=P.length}if(f>=_)return i;var R=f-ko(b);if(R<1)return b;var Z=P?po(P,0,R).join(""):i.slice(0,R);if(L===n)return Z+b;if(P&&(R+=Z.length-R),Sf(L)){if(i.slice(R).search(L)){var ie,oe=Z;for(L.global||(L=Xi(L.source,Rt(Lo.exec(L))+"g")),L.lastIndex=0;ie=L.exec(oe);)var fe=ie.index;Z=Z.slice(0,fe===n?R:fe)}}else if(i.indexOf(Rr(L),R)!=R){var Me=Z.lastIndexOf(L);Me>-1&&(Z=Z.slice(0,Me))}return Z+b}function zg(i){return i=Rt(i),i&&aa.test(i)?i.replace(Nn,xl):i}var Lg=Ea(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),Tf=l0("toUpperCase");function V2(i,u,f){return i=Rt(i),u=f?n:u,u===n?ei(i)?Wn(i):mc(i):i.match(u)||[]}var W2=dt(function(i,u){try{return fn(i,n,u)}catch(f){return Lf(f)?f:new nt(f)}}),Sg=_i(function(i,u){return wn(u,function(f){f=$t(f),ai(i,f,xf(i[f],i))}),i});function Mg(i){var u=i==null?0:i.length,f=Ze();return i=u?At(i,function(b){if(typeof b[1]!="function")throw new on(h);return[f(b[0]),b[1]]}):[],dt(function(b){for(var L=-1;++L<u;){var _=i[L];if(fn(_[0],this,b))return fn(_[1],this,b)}})}function _g(i){return Hc(Jr(i,D))}function kf(i){return function(){return i}}function Tg(i,u){return i==null||i!==i?u:i}var kg=u0(),Og=u0(!0);function kn(i){return i}function Of(i){return qc(typeof i=="function"?i:Jr(i,D))}function Eg(i){return jc(Jr(i,D))}function Ig(i,u){return Q1(i,Jr(u,D))}var Ag=dt(function(i,u){return function(f){return xa(f,i,u)}}),$g=dt(function(i,u){return function(f){return xa(i,f,u)}});function Ef(i,u,f){var b=Zr(u),L=ws(u,b);f==null&&!(er(u)&&(L.length||!b.length))&&(f=u,u=i,i=this,L=ws(u,Zr(u)));var _=!(er(f)&&"chain"in f)||!!f.chain,P=Uo(i);return wn(L,function(R){var Z=u[R];i[R]=Z,P&&(i.prototype[R]=function(){var ie=this.__chain__;if(_||ie){var oe=i(this.__wrapped__),fe=oe.__actions__=yr(this.__actions__);return fe.push({func:Z,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return Z.apply(i,qi([this.value()],arguments))})}),i}function Pg(){return Ut._===this&&(Ut._=kc),this}function If(){}function Dg(i){return i=ft(i),dt(function(u){return Kc(u,i)})}var Ng=Aa(At),Rg=Aa(E1),Hg=Aa(Mo);function Z2(i){return C(i)?$1($t(i)):hf(i)}function Fg(i){return function(u){return i==null?n:uo(i,u)}}var Bg=c0(),Vg=c0(!0);function Af(){return[]}function $f(){return!1}function Wg(){return{}}function Zg(){return""}function Ug(){return!0}function Gg(i,u){if(i=ft(i),i<1||i>Ae)return[];var f=Ct,b=Tr(i,Ct);u=Ze(u),i-=Ct;for(var L=To(b,u);++f<i;)u(f);return L}function qg(i){return ct(i)?At(i,$t):Gn(i)?[i]:yr(cr(Rt(i)))}function jg(i){var u=++Qi;return Rt(i)+u}var Kg=Ts(function(i,u){return i+u},0),Yg=ks("ceil"),Xg=Ts(function(i,u){return i/u},1),Jg=ks("floor");function Qg(i){return i&&i.length?Cs(i,kn,Pl):n}function ev(i,u){return i&&i.length?Cs(i,Ze(u,2),Pl):n}function tv(i){return A1(i,kn)}function rv(i,u){return A1(i,Ze(u,2))}function nv(i){return i&&i.length?Cs(i,kn,fo):n}function iv(i,u){return i&&i.length?Cs(i,Ze(u,2),fo):n}var ov=Ts(function(i,u){return i*u},1),av=ks("round"),sv=Ts(function(i,u){return i-u},0);function lv(i){return i&&i.length?N1(i,kn):0}function uv(i,u){return i&&i.length?N1(i,Ze(u,2)):0}return M.after=E9,M.ary=w2,M.assign=m8,M.assignIn=P2,M.assignInWith=z0,M.assignWith=y8,M.at=C8,M.before=x2,M.bind=xf,M.bindAll=Sg,M.bindKey=z2,M.castArray=W9,M.chain=m2,M.chunk=Da,M.compact=go,M.concat=Ar,M.cond=Mg,M.conforms=_g,M.constant=kf,M.countBy=l9,M.create=w8,M.curry=L2,M.curryRight=S2,M.debounce=M2,M.defaults=x8,M.defaultsDeep=z8,M.defer=I9,M.delay=A9,M.difference=si,M.differenceBy=dr,M.differenceWith=gu,M.drop=Ti,M.dropRight=Wo,M.dropRightWhile=Zo,M.dropWhile=Wr,M.fill=Na,M.filter=c9,M.flatMap=h9,M.flatMapDeep=p9,M.flatMapDepth=g9,M.flatten=p2,M.flattenDeep=u7,M.flattenDepth=c7,M.flip=$9,M.flow=kg,M.flowRight=Og,M.fromPairs=d7,M.functions=O8,M.functionsIn=E8,M.groupBy=v9,M.initial=h7,M.intersection=p7,M.intersectionBy=g7,M.intersectionWith=v7,M.invert=A8,M.invertBy=$8,M.invokeMap=m9,M.iteratee=Of,M.keyBy=y9,M.keys=Zr,M.keysIn=Tn,M.map=b0,M.mapKeys=D8,M.mapValues=N8,M.matches=Eg,M.matchesProperty=Ig,M.memoize=y0,M.merge=R8,M.mergeWith=D2,M.method=Ag,M.methodOf=$g,M.mixin=Ef,M.negate=C0,M.nthArg=Dg,M.omit=H8,M.omitBy=F8,M.once=P9,M.orderBy=C9,M.over=Ng,M.overArgs=D9,M.overEvery=Rg,M.overSome=Hg,M.partial=zf,M.partialRight=_2,M.partition=w9,M.pick=B8,M.pickBy=N2,M.property=Z2,M.propertyOf=Fg,M.pull=C7,M.pullAll=v2,M.pullAllBy=w7,M.pullAllWith=x7,M.pullAt=z7,M.range=Bg,M.rangeRight=Vg,M.rearg=N9,M.reject=L9,M.remove=L7,M.rest=R9,M.reverse=Cf,M.sampleSize=M9,M.set=W8,M.setWith=Z8,M.shuffle=_9,M.slice=S7,M.sortBy=O9,M.sortedUniq=I7,M.sortedUniqBy=A7,M.split=hg,M.spread=H9,M.tail=$7,M.take=P7,M.takeRight=D7,M.takeRightWhile=N7,M.takeWhile=R7,M.tap=Q7,M.throttle=F9,M.thru=v0,M.toArray=I2,M.toPairs=R2,M.toPairsIn=H2,M.toPath=qg,M.toPlainObject=$2,M.transform=U8,M.unary=B9,M.union=H7,M.unionBy=F7,M.unionWith=B7,M.uniq=V7,M.uniqBy=W7,M.uniqWith=Z7,M.unset=G8,M.unzip=wf,M.unzipWith=b2,M.update=q8,M.updateWith=j8,M.values=e1,M.valuesIn=K8,M.without=U7,M.words=V2,M.wrap=V9,M.xor=G7,M.xorBy=q7,M.xorWith=j7,M.zip=K7,M.zipObject=Y7,M.zipObjectDeep=X7,M.zipWith=J7,M.entries=R2,M.entriesIn=H2,M.extend=P2,M.extendWith=z0,Ef(M,M),M.add=Kg,M.attempt=W2,M.camelCase=Q8,M.capitalize=F2,M.ceil=Yg,M.clamp=Y8,M.clone=Z9,M.cloneDeep=G9,M.cloneDeepWith=q9,M.cloneWith=U9,M.conformsTo=j9,M.deburr=B2,M.defaultTo=Tg,M.divide=Xg,M.endsWith=eg,M.eq=ki,M.escape=tg,M.escapeRegExp=rg,M.every=u9,M.find=d9,M.findIndex=Jl,M.findKey=L8,M.findLast=f9,M.findLastIndex=h2,M.findLastKey=S8,M.floor=Jg,M.forEach=y2,M.forEachRight=C2,M.forIn=M8,M.forInRight=_8,M.forOwn=T8,M.forOwnRight=k8,M.get=Mf,M.gt=K9,M.gte=Y9,M.has=I8,M.hasIn=_f,M.head=g2,M.identity=kn,M.includes=b9,M.indexOf=f7,M.inRange=X8,M.invoke=P8,M.isArguments=As,M.isArray=ct,M.isArrayBuffer=X9,M.isArrayLike=_n,M.isArrayLikeObject=fr,M.isBoolean=J9,M.isBuffer=Ra,M.isDate=Q9,M.isElement=e8,M.isEmpty=t8,M.isEqual=r8,M.isEqualWith=n8,M.isError=Lf,M.isFinite=i8,M.isFunction=Uo,M.isInteger=T2,M.isLength=w0,M.isMap=k2,M.isMatch=o8,M.isMatchWith=a8,M.isNaN=s8,M.isNative=l8,M.isNil=c8,M.isNull=u8,M.isNumber=O2,M.isObject=er,M.isObjectLike=nr,M.isPlainObject=vu,M.isRegExp=Sf,M.isSafeInteger=d8,M.isSet=E2,M.isString=x0,M.isSymbol=Gn,M.isTypedArray=Ql,M.isUndefined=f8,M.isWeakMap=h8,M.isWeakSet=p8,M.join=b7,M.kebabCase=ng,M.last=li,M.lastIndexOf=m7,M.lowerCase=ig,M.lowerFirst=og,M.lt=g8,M.lte=v8,M.max=Qg,M.maxBy=ev,M.mean=tv,M.meanBy=rv,M.min=nv,M.minBy=iv,M.stubArray=Af,M.stubFalse=$f,M.stubObject=Wg,M.stubString=Zg,M.stubTrue=Ug,M.multiply=ov,M.nth=y7,M.noConflict=Pg,M.noop=If,M.now=m0,M.pad=ag,M.padEnd=sg,M.padStart=lg,M.parseInt=ug,M.random=J8,M.reduce=x9,M.reduceRight=z9,M.repeat=cg,M.replace=dg,M.result=V8,M.round=av,M.runInContext=W,M.sample=S9,M.size=T9,M.snakeCase=fg,M.some=k9,M.sortedIndex=M7,M.sortedIndexBy=_7,M.sortedIndexOf=T7,M.sortedLastIndex=k7,M.sortedLastIndexBy=O7,M.sortedLastIndexOf=E7,M.startCase=pg,M.startsWith=gg,M.subtract=sv,M.sum=lv,M.sumBy=uv,M.template=vg,M.times=Gg,M.toFinite=Go,M.toInteger=ft,M.toLength=A2,M.toLower=bg,M.toNumber=ui,M.toSafeInteger=b8,M.toString=Rt,M.toUpper=mg,M.trim=yg,M.trimEnd=Cg,M.trimStart=wg,M.truncate=xg,M.unescape=zg,M.uniqueId=jg,M.upperCase=Lg,M.upperFirst=Tf,M.each=y2,M.eachRight=C2,M.first=g2,Ef(M,function(){var i={};return gn(M,function(u,f){ot.call(M.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),M.VERSION=l,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){M[i].placeholder=M}),wn(["drop","take"],function(i,u){vt.prototype[i]=function(f){f=f===n?1:Gt(ft(f),0);var b=this.__filtered__&&!u?new vt(this):this.clone();return b.__filtered__?b.__takeCount__=Tr(f,b.__takeCount__):b.__views__.push({size:Tr(f,Ct),type:i+(b.__dir__<0?"Right":"")}),b},vt.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),wn(["filter","map","takeWhile"],function(i,u){var f=u+1,b=f==k||f==X;vt.prototype[i]=function(L){var _=this.clone();return _.__iteratees__.push({iteratee:Ze(L,3),type:f}),_.__filtered__=_.__filtered__||b,_}}),wn(["head","last"],function(i,u){var f="take"+(u?"Right":"");vt.prototype[i]=function(){return this[f](1).value()[0]}}),wn(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(kn)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=dt(function(i,u){return typeof i=="function"?new vt(this):this.map(function(f){return xa(f,i,u)})}),vt.prototype.reject=function(i){return this.filter(C0(Ze(i)))},vt.prototype.slice=function(i,u){i=ft(i);var f=this;return f.__filtered__&&(i>0||u<0)?new vt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ft(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(Ct)},gn(vt.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),L=M[b?"take"+(u=="last"?"Right":""):u],_=b||/^find/.test(u);L&&(M.prototype[u]=function(){var P=this.__wrapped__,R=b?[1]:arguments,Z=P instanceof vt,ie=R[0],oe=Z||ct(P),fe=function(mt){var xt=L.apply(M,qi([mt],R));return b&&Me?xt[0]:xt};oe&&f&&typeof ie=="function"&&ie.length!=1&&(Z=oe=!1);var Me=this.__chain__,Be=!!this.__actions__.length,Xe=_&&!Me,ht=Z&&!Be;if(!_&&oe){P=ht?P:new vt(this);var Je=i.apply(P,R);return Je.__actions__.push({func:v0,args:[fe],thisArg:n}),new Xr(Je,Me)}return Xe&&ht?i.apply(this,R):(Je=this.thru(fe),Xe?b?Je.value()[0]:Je.value():Je)})}),wn(["pop","push","shift","sort","splice","unshift"],function(i){var u=ha[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",b=/^(?:pop|shift)$/.test(i);M.prototype[i]=function(){var L=arguments;if(b&&!this.__chain__){var _=this.value();return u.apply(ct(_)?_:[],L)}return this[f](function(P){return u.apply(ct(P)?P:[],L)})}}),gn(vt.prototype,function(i,u){var f=M[u];if(f){var b=f.name+"";ot.call(ya,b)||(ya[b]=[]),ya[b].push({name:u,func:f})}}),ya[_s(n,Te).name]=[{name:"wrapper",func:n}],vt.prototype.clone=nf,vt.prototype.reverse=of,vt.prototype.value=F1,M.prototype.at=e9,M.prototype.chain=t9,M.prototype.commit=r9,M.prototype.next=n9,M.prototype.plant=o9,M.prototype.reverse=a9,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=s9,M.prototype.first=M.prototype.head,eo&&(M.prototype[eo]=i9),M},Yi=_c();Kr?((Kr.exports=Yi)._=Yi,os._=Yi):Ut._=Yi}).call(o1)})(j0,j0.exports);var Uh=j0.exports;const $m=v6(Uh),Pm=cv({__proto__:null,default:$m},[Uh]);/**
|
|
1714
1714
|
* @license
|
|
1715
1715
|
* Copyright 2020 Google LLC
|
|
1716
1716
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2055,7 +2055,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2055
2055
|
class="trailing"
|
|
2056
2056
|
></brz-icon>`:null}
|
|
2057
2057
|
</div>
|
|
2058
|
-
`}}yn.styles=[...exports.LabeledInput.styles,py];gd([N({type:Boolean,reflect:!0})],yn.prototype,"readonly",2);gd([N({type:String,reflect:!0})],yn.prototype,"placeholder",2);gd([N({type:String,reflect:!0,attribute:"leading-icon"})],yn.prototype,"leadingIcon",2);gd([N({type:String,reflect:!0,attribute:"trailing-icon"})],yn.prototype,"trailingIcon",2);var gy=Object.defineProperty,vy=Object.getOwnPropertyDescriptor,bi=(o,t,n,l)=>{for(var c=l>1?void 0:l?vy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&gy(t,n,c),c};const Fu="searchMessage";class zr extends yn{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(t=>({...t,id:`option-${
|
|
2058
|
+
`}}yn.styles=[...exports.LabeledInput.styles,py];gd([N({type:Boolean,reflect:!0})],yn.prototype,"readonly",2);gd([N({type:String,reflect:!0})],yn.prototype,"placeholder",2);gd([N({type:String,reflect:!0,attribute:"leading-icon"})],yn.prototype,"leadingIcon",2);gd([N({type:String,reflect:!0,attribute:"trailing-icon"})],yn.prototype,"trailingIcon",2);var gy=Object.defineProperty,vy=Object.getOwnPropertyDescriptor,bi=(o,t,n,l)=>{for(var c=l>1?void 0:l?vy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&gy(t,n,c),c};const Fu="searchMessage";class zr extends yn{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(t=>({...t,id:`option-${uh()}`}))]:[]}updated(t){super.updated(t),t.has("options")&&this.setInnerOptions(),t.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(t){var n,l;return t?t instanceof exports.MenuItem?(l=(n=t.textContent)==null?void 0:n.trim())!=null?l:"":t.label:""}handleKeyDown(t){["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.dropdown.open())}handleKeyUp(t){t.key===" "&&this.canSearch&&(t.preventDefault(),this.dropdown.open())}get defaultSlot(){var t,n;return(n=(t=this.renderRoot)==null?void 0:t.querySelector("slot:not([name])"))==null?void 0:n.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var t;return this.isDataDriven?(t=this.virtualListElement)==null?void 0:t.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Gh)}get optionElements(){var n,l,c;const t=(n=this.optionElementsRenderRoot)!=null&&n.querySelectorAll(Y0).length?(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll(Y0):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(t!=null?t:[])}setValue(t){this.value=t,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(t){this.isMenuOpen&&t.stopPropagation()}renderInput(){this.updateComplete.then(()=>{var n;(n=this.dropdown)==null||n.updatePosition()});const t=Array.from(this.children).some(n=>n instanceof HTMLElement&&n.tagName==="BRZ-MENU-ITEM");return this.isReadonlyOrDisabled||this.innerOptions.length===0&&!t?this.renderReferenceElement():G`
|
|
2059
2059
|
<brz-dropdown-menu
|
|
2060
2060
|
@brz-menu-select=${this.handleSelect}
|
|
2061
2061
|
@brz-menu-item-select=${this.handleItemSelect}
|
|
@@ -3178,7 +3178,7 @@ ${this.value}</textarea
|
|
|
3178
3178
|
`}renderDropdownContent(){return G`
|
|
3179
3179
|
${!this.controlled&&!this.hasQueryResults?this.renderSearchMessage():null}
|
|
3180
3180
|
${this.isDataDriven?this.renderOptionsData():G` <slot slot="options"></slot> `}
|
|
3181
|
-
`}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const t=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(l=>{var g;if("id"in l&&l.id===Fu)return;if(!t||t===((g=this.valueLabel)==null?void 0:g.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(l);c&&(this.hasResults=!0),l.hidden=!c})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${
|
|
3181
|
+
`}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const t=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(l=>{var g;if("id"in l&&l.id===Fu)return;if(!t||t===((g=this.valueLabel)==null?void 0:g.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(l);c&&(this.hasResults=!0),l.hidden=!c})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${uh()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(t=>({...t,id:`option-${uh()}`}))]:[]}disconnectedCallback(){var t;(t=this.selectedOptionObserver)==null||t.disconnect(),super.disconnectedCallback()}findItem(t){var n;return((n=this.getItems())==null?void 0:n[0])instanceof exports.MenuItem?this.optionElements.find(l=>l.value===t):this.innerOptions.find(l=>l.value===t)}syncValueLabel(t){var l;(l=this.selectedOptionObserver)==null||l.disconnect();const n=this.findItem(t);this.valueLabel=this.getItemLabel(n),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&n instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(n),this.resetSearch()}),this.selectedOptionObserver.observe(n,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...zr.styles,le`
|
|
3182
3182
|
input {
|
|
3183
3183
|
text-overflow: ellipsis;
|
|
3184
3184
|
}
|
|
@@ -5311,4 +5311,4 @@ ${this.value}</textarea
|
|
|
5311
5311
|
:host([has-border]) .container {
|
|
5312
5312
|
border: 1px solid var(--brz-color-neutral-300);
|
|
5313
5313
|
}
|
|
5314
|
-
`;f2([N({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);f2([N({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=f2([ee(i7)],exports.Paper);var WL=Object.defineProperty,ZL=Object.getOwnPropertyDescriptor,He=(o,t,n,l)=>{for(var c=l>1?void 0:l?ZL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&WL(t,n,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=He([ee("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=He([ee("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=He([ee("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=He([ee("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=He([ee("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=He([ee("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=He([ee("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=He([ee("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=He([ee("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=He([ee("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=He([ee("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=He([ee("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=He([ee("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=He([ee("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=He([ee("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=He([ee("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=He([ee("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=He([ee("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=He([ee("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=He([ee("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=He([ee("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=He([ee("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=He([ee("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=He([ee("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=He([ee("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=He([ee("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=He([ee("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=He([ee("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=He([ee("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=He([ee("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=He([ee("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=He([ee("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=He([ee("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=He([ee("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=He([ee("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=He([ee("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=He([ee("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=He([ee("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=He([ee("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=He([ee("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=He([ee("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=He([ee("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=He([ee("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=He([ee("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=He([ee("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=He([ee("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=He([ee("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=He([ee("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends K0{};exports.LegacyInputGuide=He([ee("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=He([ee("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=He([ee("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=He([ee("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=He([ee("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=He([ee("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=He([ee("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=He([ee("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=He([ee("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=He([ee("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=He([ee("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=He([ee("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=He([ee("sp-labeled-input")],exports.LegacyLabeledInput);const Lh="a",o7="ccc d LLL",a7="ccc LLL d",s7="ZZZZ",l7=ze("date-time-range");var UL=Object.defineProperty,GL=Object.getOwnPropertyDescriptor,x1=(o,t,n,l)=>{for(var c=l>1?void 0:l?GL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&UL(t,n,c),c};const f5=(o,t)=>{const{dateFormat:n,year:l,minutes:c,ampm:g,timezone:h=""}=t,z=`${n?`${n}${l}, `:""}${c}${g}${h}`;return o.toFormat(z)},h5=o=>o.minute===0?"h":"h:mm",p5=(o,t)=>o.year!==t.year?" yyyy":"";exports.DateTimeRange=class extends We{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const t=l5(at.fromISO(this.start),this.timezone),n=l5(at.fromISO(this.end),this.timezone),l=this.dateFormat==="DayMonthYear"?o7:a7,c={minutes:h5(t),year:p5(t,n),dateFormat:l,ampm:t.hasSame(n,"day")&&Vx(t,n)?"":Lh},g={minutes:h5(n),year:p5(n,t),dateFormat:t.hasSame(n,"day")?"":l,ampm:Lh,timezone:this.hideTimezone?"":` (${s7})`},h=u5(f5(t,c)),w=u5(f5(n,g));return`${h} - ${w}`}render(){return G`<span>${this.generateContent()}</span>`}};x1([N({type:String})],exports.DateTimeRange.prototype,"start",2);x1([N({type:String})],exports.DateTimeRange.prototype,"end",2);x1([N({type:String})],exports.DateTimeRange.prototype,"timezone",2);x1([N({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);x1([N({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=x1([ee(l7)],exports.DateTimeRange);exports.ACTION_BAR=H6;exports.ALERT=V3;exports.AM_PM_FORMAT=Lh;exports.AVATAR=t6;exports.AVATAR_GROUP=r6;exports.AlertEvent=W3;exports.AvatarSize=q0;exports.AvatarTheme=n6;exports.BADGE=D3;exports.BADGE_CHARACTER_LIMIT_DEFAULT=R3;exports.BADGE_NUMBER_LIMIT_DEFAULT=H3;exports.BASIC_PAGINATION=u2;exports.BUTTON=Zh;exports.BUTTON_GROUP=h6;exports.BadgeTheme=N3;exports.BasicPaginationEvent=F3;exports.ButtonEvent=p6;exports.CARD=Q3;exports.CARD_FOOTER=t7;exports.CARD_HEADER=e7;exports.CARD_SECTION_HEADER=r7;exports.COLUMN=c6;exports.COMBO_BOX=k6;exports.COMBO_BOX_OPTION=O6;exports.CONFIRMATION_DIALOG=Z6;exports.ConfirmationDialogCancel=U6;exports.ConfirmationDialogConfirm=G6;exports.DATE_TIME_RANGE=l7;exports.DAY_MONTH_YEAR_FORMAT=o7;exports.DROPDOWN_BUTTON=q6;exports.DROPDOWN_MENU=g6;exports.DeleteLozengeEvent=a4;exports.FADE_IN_OUT=R5;exports.FOOTER=j3;exports.GLOBAL_STYLES=J3;exports.GRID=Y3;exports.GRID_ITEM=X3;exports.HEADER=U3;exports.HEADER_FOOTER_PAGE=G3;exports.HEADING=v3;exports.ICON=a6;exports.ILLUSTRATION=Z3;exports.INLINE_EDIT_CONTROLS=m3;exports.INLINE_EDIT_FIELD=b3;exports.INLINE_EDIT_GROUP=i2;exports.INPUT_CHECKBOX=j6;exports.INPUT_CODE=n4;exports.INPUT_ERROR=w6;exports.INPUT_LABEL=z6;exports.INPUT_MULTISELECT=s4;exports.INPUT_NUMBER=X6;exports.INPUT_RADIO_GROUP=e4;exports.INPUT_RADIO_OPTION=t4;exports.INPUT_SELECT=i4;exports.INPUT_TEXT=K6;exports.INPUT_TEXTAREA=Y6;exports.INPUT_TIME=u3;exports.InlineEditControlsCancelEvent=C3;exports.InlineEditControlsSaveEvent=w3;exports.InlineEditFieldBroadcastEvent=x3;exports.InlineEditFieldModeChangeEvent=z3;exports.InlineEditGroupModeChangeEvent=L3;exports.InputBase=$n;exports.InputSelectBase=zr;exports.InputSelectQueryChangeEvent=jh;exports.LABELED_INPUT=x6;exports.LINK=s6;exports.LINK_BUTTON=l6;exports.LOADING_SPINNER=f6;exports.LOZENGE=o4;exports.MENU=S6;exports.MENU_ITEM=Y0;exports.MODAL=N6;exports.MODAL_BODY=B6;exports.MODAL_FOOTER=V6;exports.MODAL_HEADER=F6;exports.MONTH_DAY_YEAR_FORMAT=a7;exports.MenuBlurEvent=M6;exports.MenuItemSelectEvent=L6;exports.MenuSelectEvent=_6;exports.ModalCloseEvent=Kh;exports.PAGE_HEADER=K3;exports.PAGINATION=c2;exports.PAPER=i7;exports.POPOVER=Rh;exports.POPOVER_LISTENABLE_EVENT_TYPES=G0;exports.POPOVER_ROLES=Hh;exports.POPOVER_TRIGGERS=X5;exports.PURE_POPOVER=Y5;exports.PaginationEvent=B3;exports.PopoverEvent=J5;exports.RECORD_FIELD=y6;exports.RECORD_FIELD_LABEL=C6;exports.RECORD_ROW=k3;exports.RECORD_ROW_LABEL=O3;exports.RESPONSIVE_COLUMNS=q3;exports.ROW=u6;exports.SEARCH_MESSAGE_ID=Fu;exports.SELECT_ALL_ID=$i;exports.SIDE_NAVIGATION=_3;exports.SIDE_NAVIGATION_ITEM=M3;exports.SPACING_BASE=Fh;exports.SPLIT_ROW=R6;exports.TAB=A3;exports.TABS=P3;exports.TAB_BAR=$3;exports.TAB_PANEL=E3;exports.TIMEZONE_FORMAT=s7;exports.TIME_FORMAT=c3;exports.TIME_REGEX_12H=h3;exports.TIME_REGEX_24H=f3;exports.TIME_REGEX_LOOSE=d3;exports.TOGGLE_SWITCH=g3;exports.TOOLTIP=Q5;exports.TabDeselectedEvent=I3;exports.TabSelectedEvent=Ld;exports.TooltipTheme=e6;exports.VIRTUAL_LIST=Gh;exports.VirtualListUpdateEvent=m6;exports.alertTypes=Wz;exports.buttonTypes=km;exports.click=U0;exports.columnSpans=Ad;exports.dropdownMenuSizes=Am;exports.focus=Bs;exports.hover=fh;exports.iconNames=pm;exports.icons=Bh;exports.illustrationNames=Zz;exports.illustrations=d2;exports.inlineEditControlsModes=y3;exports.inlineEditModes=tz;exports.inputSizes=Um;exports.labelPositions=Gm;exports.linkButtonElementTypes=ym;exports.linkTypes=xm;exports.lozengeColors=RC;exports.lozengeSizes=FC;exports.lozengeThemes=HC;exports.modalSizes=Jy;exports.radioLayouts=xC;exports.resetLinkStyle=Wh;exports.spacing=i6;exports.spacingLevels=Gu;exports.syntaxes=IC;exports.timeSuffixes=Gx;exports.transformIcon=o6;
|
|
5314
|
+
`;f2([N({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);f2([N({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=f2([ee(i7)],exports.Paper);var WL=Object.defineProperty,ZL=Object.getOwnPropertyDescriptor,He=(o,t,n,l)=>{for(var c=l>1?void 0:l?ZL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&WL(t,n,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=He([ee("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=He([ee("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=He([ee("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=He([ee("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=He([ee("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=He([ee("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=He([ee("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=He([ee("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=He([ee("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=He([ee("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=He([ee("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=He([ee("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=He([ee("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=He([ee("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=He([ee("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=He([ee("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=He([ee("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=He([ee("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=He([ee("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=He([ee("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=He([ee("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=He([ee("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=He([ee("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=He([ee("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=He([ee("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=He([ee("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=He([ee("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=He([ee("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=He([ee("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=He([ee("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=He([ee("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=He([ee("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=He([ee("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=He([ee("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=He([ee("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=He([ee("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=He([ee("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=He([ee("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=He([ee("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=He([ee("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=He([ee("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=He([ee("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=He([ee("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=He([ee("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=He([ee("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=He([ee("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=He([ee("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=He([ee("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends K0{};exports.LegacyInputGuide=He([ee("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=He([ee("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=He([ee("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=He([ee("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=He([ee("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=He([ee("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=He([ee("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=He([ee("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=He([ee("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=He([ee("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=He([ee("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=He([ee("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=He([ee("sp-labeled-input")],exports.LegacyLabeledInput);const Lh="a",o7="ccc d LLL",a7="ccc LLL d",s7="ZZZZ",l7=ze("date-time-range");var UL=Object.defineProperty,GL=Object.getOwnPropertyDescriptor,x1=(o,t,n,l)=>{for(var c=l>1?void 0:l?GL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&UL(t,n,c),c};const f5=(o,t)=>{const{dateFormat:n,year:l,minutes:c,ampm:g,timezone:h=""}=t,z=`${n?`${n}${l}, `:""}${c}${g}${h}`;return o.toFormat(z)},h5=o=>o.minute===0?"h":"h:mm",p5=(o,t)=>o.year!==t.year?" yyyy":"";exports.DateTimeRange=class extends We{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const t=l5(at.fromISO(this.start),this.timezone),n=l5(at.fromISO(this.end),this.timezone),l=this.dateFormat==="DayMonthYear"?o7:a7,c={minutes:h5(t),year:p5(t,n),dateFormat:l,ampm:t.hasSame(n,"day")&&Vx(t,n)?"":Lh},g={minutes:h5(n),year:p5(n,t),dateFormat:t.hasSame(n,"day")?"":l,ampm:Lh,timezone:this.hideTimezone?"":` (${s7})`},h=u5(f5(t,c)),w=u5(f5(n,g));return`${h} - ${w}`}render(){return G`<span>${this.generateContent()}</span>`}};x1([N({type:String})],exports.DateTimeRange.prototype,"start",2);x1([N({type:String})],exports.DateTimeRange.prototype,"end",2);x1([N({type:String})],exports.DateTimeRange.prototype,"timezone",2);x1([N({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);x1([N({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=x1([ee(l7)],exports.DateTimeRange);exports.ACTION_BAR=H6;exports.ALERT=V3;exports.AM_PM_FORMAT=Lh;exports.AVATAR=t6;exports.AVATAR_GROUP=r6;exports.AlertEvent=W3;exports.AvatarSize=q0;exports.AvatarTheme=n6;exports.BADGE=D3;exports.BADGE_CHARACTER_LIMIT_DEFAULT=R3;exports.BADGE_NUMBER_LIMIT_DEFAULT=H3;exports.BASIC_PAGINATION=u2;exports.BUTTON=Zh;exports.BUTTON_GROUP=h6;exports.BadgeTheme=N3;exports.BasicPaginationEvent=F3;exports.ButtonEvent=p6;exports.CARD=Q3;exports.CARD_FOOTER=t7;exports.CARD_HEADER=e7;exports.CARD_SECTION_HEADER=r7;exports.COLUMN=c6;exports.COMBO_BOX=k6;exports.COMBO_BOX_OPTION=O6;exports.CONFIRMATION_DIALOG=Z6;exports.ConfirmationDialogCancel=U6;exports.ConfirmationDialogConfirm=G6;exports.DATE_TIME_RANGE=l7;exports.DAY_MONTH_YEAR_FORMAT=o7;exports.DROPDOWN_BUTTON=q6;exports.DROPDOWN_MENU=g6;exports.DeleteLozengeEvent=a4;exports.FADE_IN_OUT=R5;exports.FOOTER=j3;exports.GLOBAL_STYLES=J3;exports.GRID=Y3;exports.GRID_ITEM=X3;exports.HEADER=U3;exports.HEADER_FOOTER_PAGE=G3;exports.HEADING=v3;exports.ICON=a6;exports.ILLUSTRATION=Z3;exports.INLINE_EDIT_CONTROLS=m3;exports.INLINE_EDIT_FIELD=b3;exports.INLINE_EDIT_GROUP=i2;exports.INPUT_CHECKBOX=j6;exports.INPUT_CODE=n4;exports.INPUT_ERROR=w6;exports.INPUT_LABEL=z6;exports.INPUT_MULTISELECT=s4;exports.INPUT_NUMBER=X6;exports.INPUT_RADIO_GROUP=e4;exports.INPUT_RADIO_OPTION=t4;exports.INPUT_SELECT=i4;exports.INPUT_TEXT=K6;exports.INPUT_TEXTAREA=Y6;exports.INPUT_TIME=u3;exports.InlineEditControlsCancelEvent=C3;exports.InlineEditControlsSaveEvent=w3;exports.InlineEditFieldBroadcastEvent=x3;exports.InlineEditFieldModeChangeEvent=z3;exports.InlineEditGroupModeChangeEvent=L3;exports.InputBase=$n;exports.InputSelectBase=zr;exports.InputSelectQueryChangeEvent=jh;exports.LABELED_INPUT=x6;exports.LINK=s6;exports.LINK_BUTTON=l6;exports.LOADING_SPINNER=f6;exports.LOZENGE=o4;exports.MENU=S6;exports.MENU_ITEM=Y0;exports.MODAL=N6;exports.MODAL_BODY=B6;exports.MODAL_FOOTER=V6;exports.MODAL_HEADER=F6;exports.MONTH_DAY_YEAR_FORMAT=a7;exports.MenuBlurEvent=M6;exports.MenuItemSelectEvent=L6;exports.MenuSelectEvent=_6;exports.ModalCloseEvent=Kh;exports.PAGE_HEADER=K3;exports.PAGINATION=c2;exports.PAPER=i7;exports.POPOVER=Rh;exports.POPOVER_LISTENABLE_EVENT_TYPES=G0;exports.POPOVER_ROLES=Hh;exports.POPOVER_TRIGGERS=X5;exports.PURE_POPOVER=Y5;exports.PaginationEvent=B3;exports.PopoverEvent=J5;exports.RECORD_FIELD=y6;exports.RECORD_FIELD_LABEL=C6;exports.RECORD_ROW=k3;exports.RECORD_ROW_LABEL=O3;exports.RESPONSIVE_COLUMNS=q3;exports.ROW=u6;exports.SEARCH_MESSAGE_ID=Fu;exports.SELECT_ALL_ID=$i;exports.SIDE_NAVIGATION=_3;exports.SIDE_NAVIGATION_ITEM=M3;exports.SPACING_BASE=Fh;exports.SPLIT_ROW=R6;exports.TAB=A3;exports.TABS=P3;exports.TAB_BAR=$3;exports.TAB_PANEL=E3;exports.TIMEZONE_FORMAT=s7;exports.TIME_FORMAT=c3;exports.TIME_REGEX_12H=h3;exports.TIME_REGEX_24H=f3;exports.TIME_REGEX_LOOSE=d3;exports.TOGGLE_SWITCH=g3;exports.TOOLTIP=Q5;exports.TabDeselectedEvent=I3;exports.TabSelectedEvent=Ld;exports.TooltipTheme=e6;exports.VIRTUAL_LIST=Gh;exports.VirtualListUpdateEvent=m6;exports.alertTypes=Wz;exports.buttonTypes=km;exports.click=U0;exports.columnSpans=Ad;exports.dropdownMenuSizes=Am;exports.focus=Bs;exports.hover=hh;exports.iconNames=pm;exports.icons=Bh;exports.illustrationNames=Zz;exports.illustrations=d2;exports.inlineEditControlsModes=y3;exports.inlineEditModes=tz;exports.inputSizes=Um;exports.labelPositions=Gm;exports.linkButtonElementTypes=ym;exports.linkTypes=xm;exports.lozengeColors=RC;exports.lozengeSizes=FC;exports.lozengeThemes=HC;exports.modalSizes=Jy;exports.radioLayouts=xC;exports.resetLinkStyle=Wh;exports.spacing=i6;exports.spacingLevels=Gu;exports.syntaxes=IC;exports.timeSuffixes=Gx;exports.transformIcon=o6;
|