PageSourceSearch

https://www.wald-michelbach.de/:res/modules/common/common/framewor…/duetDatepicker.system.js?fp=9900a9e1ddd2

js wald-michelbach.de collected 2026-09-24 10:14:16 UTC 39,768 bytes, 2 lines download raw bytes

1System.register([],(function(){"use strict";return{execute:function(){!function(){const e=!0,t=!0,a=!0,o=!1,n=!1;let s,i,r,l=!1,d=!1,c=!1,u=!1,h=null,p=!1;const $="http://www.w3.org/1999/xlink",f={},m=e=>"object"===(e=typeof e)||"function"===e;const g=(e,t,...a)=>{let o=null,n=null,s=null,i=!1,r=!1;const l=[],d=t=>{for(let a=0;a<t.length;a++)o=t[a],Array.isArray(o)?d(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!m(o))&&(o=String(o)),i&&r?l[l.length-1].$text$+=o:l.push(i?y(null,o):o),r=i)};if(d(a),t){t.key&&(n=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,v);const c=y(e,null);return c.$attrs$=t,l.length>0&&(c.$children$=l),c.$key$=n,c.$name$=s,c},y=(e,t)=>{const a={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return a},b={},v={forEach:(e,t)=>e.map(_).forEach(t),map:(e,t)=>e.map(_).map(t).map(w)},_=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),w=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),g(e.vtag,t,...e.vchildren||[])}const t=y(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},x=(e,t,a)=>{const o=e;return{emit:e=>D(o,t,{bubbles:!!(4&a),composed:!!(2&a),cancelable:!!(1&a),detail:e})}},D=(e,t,a)=>{const o=ge.ce(t,a);return e.dispatchEvent(o),o},k=new WeakMap,S=e=>{const t=e.$cmpMeta$,a=e.$hostElement$,o=t.$flags$,n=(t.$tagName$,()=>{}),s=((e,t,a,o)=>{var n;let s=N(t,a);const i=pe.get(s);if(e=11===e.nodeType?e:me,i)if("string"==typeof i){e=e.head||e;let t,a=k.get(e);if(a||k.set(e,a=new Set),!a.has(s)){{t=me.createElement("style"),t.innerHTML=i;const a=null!==(n=ge.$nonce$)&&void 0!==n?n:function(e){var t,a,o;return null!==(o=null===(a=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===a?void 0:a.getAttribute("content"))&&void 0!==o?o:void 0}(me);null!=a&&t.setAttribute("nonce",a),e.insertBefore(t,e.querySelector("link"))}a&&a.add(s)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return s})(a.shadowRoot?a.shadowRoot:a.getRootNode(),t,e.$modeName$);10&o&&(a["s-sc"]=s,a.classList.add(s+"-h"),2&o&&a.classList.add(s+"-s")),n()},N=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),F=(e,t,a,o,n,s)=>{if(a!==o){let i=ue(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,n=C(a),s=C(o);t.remove(...n.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!n.includes(e))))}else if("style"===t){for(const t in a)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)a&&o[t]===a[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(e.__lookupSetter__(t)||"o"!==t[0]||"n"!==t[1]){const l=m(o);if((i||l&&null!==o)&&!n)try{if(e.tagName.includes("-"))e[t]=o;else{const n=null==o?"":o;"list"===t?i=!1:null!=a&&e[t]==n||(e[t]=n)}}catch(e){}let d=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,d=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(d?e.removeAttributeNS($,t):e.removeAttribute(t)):(!i||4&s||n)&&!l&&(o=!0===o?"":o,d?e.
vendor: 4,538 bytes, line 1
1setAttributeNS($,t,o):e.setAttribute(t,o))}else t="-"===t[2]?t.slice(3):ue(fe,r)?r.slice(2):r[2]+t.slice(3),a&&ge.rel(e,t,a,!1),o&&ge.ael(e,t,o,!1)}},M=/\s/,C=e=>e?e.split(M):[],T=(e,t,a,o)=>{const n=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||f,i=t.$attrs$||f;for(o in s)o in i||F(n,o,s[o],void 0,a,t.$flags$);for(o in i)F(n,o,s[o],i[o],a,t.$flags$)},L=(e,t,a,o)=>{const n=t.$children$[a];let d,h,p,$=0;if(l||(c=!0,"slot"===n.$tag$&&(s&&o.classList.add(s+"-s"),n.$flags$|=n.$children$?2:1)),null!==n.$text$)d=n.$elm$=me.createTextNode(n.$text$);else if(1&n.$flags$)d=n.$elm$=me.createTextNode("");else{if(u||(u="svg"===n.$tag$),d=n.$elm$=me.createElementNS(u?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&n.$flags$?"slot-fb":n.$tag$),u&&"foreignObject"===n.$tag$&&(u=!1),T(null,n,u),null!=s&&d["s-si"]!==s&&d.classList.add(d["s-si"]=s),n.$children$)for($=0;$<n.$children$.length;++$)h=L(e,n,$,d),h&&d.appendChild(h);"svg"===n.$tag$?u=!1:"foreignObject"===d.tagName&&(u=!0)}return d["s-hn"]=r,3&n.$flags$&&(d["s-sr"]=!0,d["s-cr"]=i,d["s-sn"]=n.$name$||"",p=e&&e.$children$&&e.$children$[a],p&&p.$tag$===n.$tag$&&e.$elm$&&z(e.$elm$,!1)),d},z=(e,t)=>{ge.$flags$|=1;const a=e.childNodes;for(let e=a.length-1;e>=0;e--){const o=a[e];o["s-hn"]!==r&&o["s-ol"]&&(E(o).insertBefore(o,I(o)),o["s-ol"].remove(),o["s-ol"]=void 0,c=!0),t&&z(o,t)}ge.$flags$&=-2},R=(e,t,a,o,n,s)=>{let i,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===r&&(l=l.shadowRoot);n<=s;++n)o[n]&&(i=L(null,a,n,e),i&&(o[n].$elm$=i,l.insertBefore(i,I(t))))},A=(e,t,a,o,n)=>{for(;t<=a;++t)(o=e[t])&&(n=o.$elm$,q(o),d=!0,n["s-ol"]?n["s-ol"].remove():z(n,!0),n.remove())},Y=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),I=e=>e&&e["s-ol"]||e,E=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,O=(e,t)=>{const a=t.$elm$=e.$elm$,o=e.$children$,n=t.$children$,s=t.$tag$,i=t.$text$;let r;null===i?(u="svg"===s||"foreignObject"!==s&&u,"slot"===s||T(e,t,u),null!==o&&null!==n?((e,t,a,o)=>{let n,s,i=0,r=0,l=0,d=0,c=t.length-1,u=t[0],h=t[c],p=o.length-1,$=o[0],f=o[p];for(;i<=c&&r<=p;)if(null==u)u=t[++i];else if(null==h)h=t[--c];else if(null==$)$=o[++r];else if(null==f)f=o[--p];else if(Y(u,$))O(u,$),u=t[++i],$=o[++r];else if(Y(h,f))O(h,f),h=t[--c],f=o[--p];else if(Y(u,f))"slot"!==u.$tag$&&"slot"!==f.$tag$||z(u.$elm$.parentNode,!1),O(u,f),e.insertBefore(u.$elm$,h.$elm$.nextSibling),u=t[++i],f=o[--p];else if(Y(h,$))"slot"!==u.$tag$&&"slot"!==f.$tag$||z(h.$elm$.parentNode,!1),O(h,$),e.insertBefore(h.$elm$,u.$elm$),h=t[--c],$=o[++r];else{for(l=-1,d=i;d<=c;++d)if(t[d]&&null!==t[d].$key$&&t[d].$key$===$.$key$){l=d;break}l>=0?(s=t[l],s.$tag$!==$.$tag$?n=L(t&&t[r],a,l,e):(O(s,$),t[l]=void 0,n=s.$elm$),$=o[++r]):(n=L(t&&t[r],a,r,e),$=o[++r]),n&&E(u.$elm$).insertBefore(n,I(u.$elm$))}i>c?R(e,null==o[p+1]?null:o[p+1].$elm$,a,o,r,p):r>p&&A(t,i,c)})(a,o,t,n):null!==n?(null!==e.$text$&&(a.textContent=""),R(a,null,t,n,0,n.length-1)):null!==o&&A(o,0,o.length-1),u&&"svg"===s&&(u=!1)):(r=a["s-cr"])?r.parentNode.textContent=i:e.$text$!==i&&(a.data=i)},B=e=>{const t=e.childNodes;let a,o,n,s,i,r;for(o=0,n=t.length;o<n;o++)if(a=t[o],1===a.nodeType){if(a["s-sr"])for(i=a["s-sn"],a.hidden=!1,s=0;s<n;s++)if(r=t[s].nodeType,t[s]["s-hn"]!==a["s-hn"]||""!==i){if(1===r&&i===t[s].getAttribute("slot")){a.hidden=!0;break}}else if(1===r||3===r&&""!==t[s].textContent.trim()){a.hidden=!0;break}B(a)}},j=[],P=e=>{let t,a,o,n,s,i,r=0;const l=e.childNodes,c=l.length;for(;r<c;r++){if(t=l[r],t["s-sr"]&&(a=t["s-cr"])&&a.parentNode)for(o=a.parentNode.childNodes,n=t["s-sn"],i=o.length-1;i>=0;i--)a=o[i],a["s-cn"]||a["s-nr"]||a["s-hn"]===t["s-hn"]||(W(a,n)?(s=j.find((e=>e.$nodeToRelocate$===a)),d=!0,a["s-sn"]=a["s-sn"]||n,s?s.$slotRefNode$=t:j.push({$slotRefNode$:t,$nodeToRelocate$:a}),a["s-sr"]&&j.map((e=>{W(e.$nodeToRelocate$,a["s-sn"])&&(s=j.find((e=>e.$nodeToRelocate$===a)),s&&!e.$slotRefNode$&&(e.$slotRefNode$=s.$slotRefNode$))}))):j.some((e=>e.$nodeToRelocate$===a))||j.push({$nodeToRelocate$:a}));1===t.nodeType&&P(t)}},W=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,q=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(q)},K=(e,t)=>{const a=e.$hostElement$,o=e.$cmpMeta$,n=e.$vnode$||y(null,null),u=(h=t)&&h.$tag$===b?t:g(null,null,t);var h;if(r=a.tagName,o.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},o.$attrsToReflect$.map((([e,t])=>u.$attrs$[t]=a[e]))),u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=n.$elm$=
1a.shadowRoot||a,s=a["s-sc"],i=a["s-cr"],l=0!=(1&o.$flags$),d=!1,O(n,u),ge.$flags$|=1,c){let e,t,a,o,n,s;P(u.$elm$);let i=0;for(;i<j.length;i++)e=j[i],t=e.$nodeToRelocate$,t["s-ol"]||(a=me.createTextNode(""),a["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=a,t));for(i=0;i<j.length;i++)if(e=j[i],t=e.$nodeToRelocate$,e.$slotRefNode$){for(o=e.$slotRefNode$.parentNode,n=e.$slotRefNode$.nextSibling,a=t["s-ol"];a=a.previousSibling;)if(s=a["s-nr"],s&&s["s-sn"]===t["s-sn"]&&o===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){n=s;break}(!n&&o!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),o.insertBefore(t,n))}else 1===t.nodeType&&(t.hidden=!0)}d&&B(u.$elm$),ge.$flags$&=-2,j.length=0},V=(e,t)=>{e.$flags$|=16,e.$ancestorComponent$;return Se((()=>H(e,t)))},H=(e,t)=>{const a=e.$hostElement$,o=(e.$cmpMeta$.$tagName$,()=>{}),n=a;let s;return s=Z(n,t?"componentWillLoad":"componentWillUpdate"),s=G(s,(()=>Z(n,"componentWillRender"))),o(),G(s,(()=>J(e,n,t)))},J=async(e,t,a)=>{const o=e.$hostElement$,n=(e.$cmpMeta$.$tagName$,()=>{});o["s-rc"],a&&S(e);const s=(e.$cmpMeta$.$tagName$,()=>{});X(e,t),s(),n(),U(e)},X=(n,s,i)=>{try{h=s,s=s.render&&s.render(),n.$flags$&=-17,n.$flags$|=2,(e||t)&&(a||t)&&(o||K(n,s))}catch(e){he(e,n.$hostElement$)}return h=null,null},U=e=>{e.$cmpMeta$.$tagName$;const t=()=>{},a=e.$hostElement$;e.$ancestorComponent$,Z(a,"componentDidRender"),64&e.$flags$?(Z(a,"componentDidUpdate"),t()):(e.$flags$|=64,Z(a,"componentDidLoad"),t())},Z=(e,t,a)=>{if(e&&e[t])try{return e[t](a)}catch(e){he(e)}},G=(e,t)=>e&&e.then?e.then(t):t(),Q=(e,t,a,o)=>{const n=de(e),s=e,i=n.$instanceValues$.get(t),r=n.$flags$,l=s;var d,c;d=a,c=o.$members$[t][0],a=null==d||m(d)?d:4&c?"false"!==d&&(""===d||!!d):2&c?parseFloat(d):1&c?String(d):d;const u=Number.isNaN(i)&&Number.isNaN(a);if(a!==i&&!u){if(n.$instanceValues$.set(t,a),o.$watchers$&&128&r){const e=o.$watchers$[t];e&&e.map((e=>{try{l[e](a,i,t)}catch(e){he(e,s)}}))}if(2==(18&r)){if(l.componentShouldUpdate&&!1===l.componentShouldUpdate(a,i,t))return;V(n,!1)}}},ee=(e,t,a)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const a=Object.entries(t.$members$),o=e.prototype;a.map((([e,[a]])=>{(31&a||32&a)&&Object.defineProperty(o,e,{get(){return t=e,de(this).$instanceValues$.get(t);var t},set(a){Q(this,e,a,t)},configurable:!0,enumerable:!0})}));{const n=new Map;o.attributeChangedCallback=function(e,t,a){ge.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))a=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==a)return;this[t]=(null!==a||"boolean"!=typeof this[t])&&a}))},e.observedAttributes=a.filter((([e,t])=>15&t[0])).map((([e,a])=>{const o=a[1]||e;return n.set(o,e),512&a[0]&&t.$attrsToReflect$.push([e,o]),o}))}}return e},te=async(e,t,a,o,n)=>{if(0==(32&t.$flags$)&&(n=e.constructor,t.$flags$|=32,customElements.whenDefined(a.$tagName$).then((()=>t.$flags$|=128)),n.style)){let o=n.style;"string"!=typeof o&&(o=o[t.$modeName$=(e=>$e.map((t=>t(e))).find((e=>!!e)))(e)]);const s=N(a,t.$modeName$);if(!pe.has(s)){const e=(a.$tagName$,()=>{});((e,t,a)=>{let o=pe.get(e);be&&a?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,pe.set(e,o)})(s,o,!!(1&a.$flags$)),e()}}t.$ancestorComponent$;V(t,!0)},ae=e=>{const t=e["s-cr"]=me.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},oe=(e,t)=>{const a={$flags$:t[0],$tagName$:t[1]};a.$members$=t[2],a.$listeners$=t[3],a.$watchers$=e.$watchers$,a.$attrsToReflect$=[];const o=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){ce(this,a)},connectedCallback(){(e=>{if(0==(1&ge.$flags$)){const t=de(e),a=t.$cmpMeta$,o=(a.$tagName$,()=>{});1&t.$flags$?(ne(e,t,a.$listeners$),t.$lazyInstance$):(t.$flags$|=1,12&a.$flags$&&ae(e),a.$members$&&Object.entries(a.$members$).map((([t,[a]])=>{if(31&a&&e.hasOwnProperty(t)){const a=e[t];delete e[t],e[t]=a}})),te(e,t,a)),o()}})(this),o&&o.call(this)},disconnectedCallback(){(e=>{if(0==(1&ge.$flags$)){const t=de(e);t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0)}})(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(16&a.$flags$)})}}),e.is=a.$tagName$,ee(e,a)},ne=(e,t,a,o)=>{a&&a.map((([a,o,n])=>{const s=ie(e,a),i=se(t,n),r=re(a);ge.ael(s,o,i,r),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>ge.rel(s,o,i,r)))}))},se=(e,t)=>a=>{try{n||e.$hostElement$[t](a)}catch(e){he(e)}},ie=(e,t)=>4&t?me:8&t?fe:16&t?me.body:e,re=e=>ye?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e),le=new WeakMap,de=e=>le.get(e),ce=(e,t)=>{const a={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return ne(e,a,t.$listeners$),le.set(e,a)},ue=(e,t)=>
1t in e,he=(e,t)=>(0,console.error)(e,t),pe=new Map,$e=[],fe="undefined"!=typeof window?window:{},me=fe.document||{head:{}};fe.HTMLElement;const ge={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,a,o)=>e.addEventListener(t,a,o),rel:(e,t,a,o)=>e.removeEventListener(t,a,o),ce:(e,t)=>new CustomEvent(e,t)},ye=(()=>{let e=!1;try{me.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),be=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ve=[],_e=[],we=(e,t)=>a=>{e.push(a),p||(p=!0,t&&4&ge.$flags$?ke(De):ge.raf(De))},xe=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){he(e)}e.length=0},De=()=>{xe(ve),xe(_e),(p=ve.length>0)&&ge.raf(De)},ke=e=>{return Promise.resolve(t).then(e);var t},Se=we(_e,!0),Ne=/^(\d{4})-(\d{2})-(\d{2})$/;var Fe;function Me(e,t,a){var o=parseInt(a,10),n=parseInt(t,10),s=parseInt(e,10);if(Number.isInteger(s)&&Number.isInteger(n)&&Number.isInteger(o)&&n>0&&n<=12&&o>0&&o<=31&&s>0)return new Date(s,n-1,o)}function Ce(e){if(!e)return;const t=e.match(Ne);return t?Me(t[1],t[2],t[3]):void 0}function Te(e){if(!e)return"";var t=e.getDate().toString(10),a=(e.getMonth()+1).toString(10),o=e.getFullYear().toString(10);return e.getDate()<10&&(t=`0${t}`),e.getMonth()<9&&(a=`0${a}`),`${o}-${a}-${t}`}function Le(e,t){return null!=e&&null!=t&&(ze(e,t)&&e.getDate()===t.getDate())}function ze(e,t){return null!=e&&null!=t&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())}function Re(e,t){var a=new Date(e);return a.setDate(a.getDate()+t),a}function Ae(e,t=Fe.Monday){var a=new Date(e),o=a.getDay(),n=(o<t?7:0)+o-t;return a.setDate(a.getDate()-n),a}function Ye(e,t=Fe.Monday){var a=new Date(e),o=a.getDay(),n=6+(o<t?-7:0)-(o-t);return a.setDate(a.getDate()+n),a}function Ie(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Ee(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function Oe(e,t){const a=new Date(e);return a.setMonth(t),a}function Be(e,t){const a=new Date(e);return a.setFullYear(t),a}function je(e,t,a){return Pe(e,t,a)===e}function Pe(e,t,a){const o=e.getTime();return t&&t instanceof Date&&o<t.getTime()?t:a&&a instanceof Date&&o>a.getTime()?a:e}function We(e,t=Fe.Monday){return function(e,t){const a=[];let o=e;for(;!Le(o,t);)a.push(o),o=Re(o,1);return a.push(o),a}(Ae(Ie(e),t),Ye(Ee(e),t))}function qe(){return Math.random().toString(16).slice(-4)}function Ke(e){return`${e}-${qe()}${qe()}-${qe()}-${qe()}-${qe()}-${qe()}${qe()}${qe()}`}!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(Fe||(Fe={}));const Ve=({onClick:e,dateFormatter:t,localization:a,name:o,formattedValue:n,valueAsDate:s,value:i,identifier:r,disabled:l,required:d,role:c,buttonRef:u,inputRef:h,onInput:p,onBlur:$,onFocus:f})=>g("div",{class:"duet-date__input-wrapper"},g("input",{class:"duet-date__input",value:n,placeholder:a.placeholder,id:r,disabled:l,role:c,required:!!d||void 0,"aria-autocomplete":"none",onInput:p,onFocus:f,onBlur:$,autoComplete:"off",ref:h}),g("input",{type:"hidden",name:o,value:i}),g("button",{class:"duet-date__toggle",onClick:e,disabled:l,ref:u,type:"button"},g("span",{class:"duet-date__toggle-icon"},g("svg",{"aria-hidden":"true",height:"24",viewBox:"0 0 21 21",width:"24",xmlns:"http://www.w3.org/2000/svg"},g("g",{fill:"none","fill-rule":"evenodd",transform:"translate(2 2)"},g("path",{d:"m2.5.5h12c1.1045695 0 2 .8954305 2 2v12c0 1.1045695-.8954305 2-2 2h-12c-1.1045695 0-2-.8954305-2-2v-12c0-1.1045695.8954305-2 2-2z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),g("path",{d:"m.5 4.5h16",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"}),g("g",{fill:"currentColor"},g("circle",{cx:"8.5",cy:"8.5",r:"1"}),g("circle",{cx:"4.5",cy:"8.5",r:"1"}),g("circle",{cx:"12.5",cy:"8.5",r:"1"}),g("circle",{cx:"8.5",cy:"12.5",r:"1"}),g("circle",{cx:"4.5",cy:"12.5",r:"1"}),g("circle",{cx:"12.5",cy:"12.5",r:"1"}))))),g("span",{class:"duet-date__vhidden"},a.buttonLabel,s&&g("span",null,", ",a.selectedDateMessage," ",t.format(s))))),He=({focusedDay:e,today:t,day:a,onDaySelect:o,onKeyboardNavigation:n,focusedDayRef:s,disabled:i,inRange:r,isSelected:l,dateFormatter:d})=>{const c=Le(a,t),u=ze(a,e),h=Le(a,e),p=!r;return g("button",{class:{"duet-date__day":!0,"is-outside":p,"is-today":c,"is-month":u,"is-disabled":i},tabIndex:h?0:-1,onClick:function(e){o(e,a)},onKeyDown:n,"aria-disabled":i?"true":void 0,disabled:p,type:"button","aria-pressed":l?"true":"false",ref:e=>{h&&e&&s&&s(e)}},g("span",{"aria-hidden":"true"},a.getDate()),g("span",{class:"duet-date__vhidden"},d.format(a)))};const Je=({selectedDate:e,focusedDate:t,labelledById:a,localization:o,firstDayOfWeek:n,min:s,max:i,dateFormatter:r,isDateDisabled:l,onDateSelect:d,onKeyboardNavigation:c,focusedDayRef:u})=>{const h=new Date,p=We(t,n);return g("table",{class:"duet-date__table","aria-labelledby":a},g("thead",null,g("tr",null,($=o.dayNames,f=n,m=e=>g("th",{class:"duet-date__table-header",scope:"col"},g("span",{"aria-hidden":"true"},e.substr(0,2)),g("span",{class:"duet-date__vhidden"},e)),$.map(((e,t)=>{const a=(t+f)%$.length;return m($[a])}))))),g("tbody",null,function(e,t){const a=[];for(let o=0;o<e.length;o+=t)a.push(e.slice(o,o+t));return a}(p,7).map((a=>g("tr",{class:"duet-date__row"},a.map((a=>g("td",{class:"duet-date__cell"},g(He,{day:a,today:h,focusedDay:t,isSelected:Le(a,e),disabled:l(a),inRange:je(a,s,i),onDaySelect:d,dateFormatter:r,onKeyboardNavigation:c,focusedDayRef:u})))))))));var $,f,m}
vendor: 18,721 bytes, line 1
1,Xe={buttonLabel:"Choose date",placeholder:"YYYY-MM-DD",selectedDateMessage:"Selected date is",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",calendarHeading:"Choose a date",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],locale:"en-GB"},Ue={parse:Ce,format:Te};const Ze=9,Ge=27,Qe=33,et=34,tt=35,at=36,ot=37,nt=38,st=39,it=40;const rt=/[^0-9\.\/\-]+/g,lt=oe(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.duetChange=x(this,"duetChange",7),this.duetBlur=x(this,"duetBlur",7),this.duetFocus=x(this,"duetFocus",7),this.duetOpen=x(this,"duetOpen",7),this.duetClose=x(this,"duetClose",7),this.monthSelectId=Ke("DuetDateMonth"),this.yearSelectId=Ke("DuetDateYear"),this.dialogLabelId=Ke("DuetDateLabel"),this.initialTouchX=null,this.initialTouchY=null,this.activeFocus=!1,this.focusedDay=new Date,this.open=!1,this.name="date",this.identifier="",this.disabled=!1,this.direction="right",this.required=!1,this.value="",this.min="",this.max="",this.firstDayOfWeek=Fe.Monday,this.localization=Xe,this.dateAdapter=Ue,this.isDateDisabled=()=>!1,this.enableActiveFocus=()=>{this.activeFocus=!0},this.disableActiveFocus=()=>{this.activeFocus=!1},this.toggleOpen=e=>{e.preventDefault(),this.open?this.hide(!1):this.show()},this.handleEscKey=e=>{e.keyCode===Ge&&this.hide()},this.handleBlur=e=>{e.stopPropagation(),this.duetBlur.emit({component:"duet-date-picker"})},this.handleFocus=e=>{e.stopPropagation(),this.duetFocus.emit({component:"duet-date-picker"})},this.handleTouchStart=e=>{const t=e.changedTouches[0];this.initialTouchX=t.pageX,this.initialTouchY=t.pageY},this.handleTouchMove=e=>{e.preventDefault()},this.handleTouchEnd=e=>{const t=e.changedTouches[0],a=t.pageX-this.initialTouchX,o=t.pageY-this.initialTouchY,n=Math.abs(a)>=70&&Math.abs(o)<=70,s=Math.abs(o)>=70&&Math.abs(a)<=70&&o>0;n?this.addMonths(a<0?1:-1):s&&(this.hide(!1),e.preventDefault()),this.initialTouchY=null,this.initialTouchX=null},this.handleNextMonthClick=e=>{e.preventDefault(),this.addMonths(1)},this.handlePreviousMonthClick=e=>{e.preventDefault(),this.addMonths(-1)},this.handleFirstFocusableKeydown=e=>{e.keyCode===Ze&&e.shiftKey&&(this.focusedDayNode.focus(),e.preventDefault())},this.handleKeyboardNavigation=e=>{if(e.keyCode===Ze&&!e.shiftKey)return e.preventDefault(),void this.firstFocusableElement.focus();var t=!0;switch(e.keyCode){case st:this.addDays(1);break;case ot:this.addDays(-1);break;case it:this.addDays(7);break;case nt:this.addDays(-7);break;case Qe:e.shiftKey?this.addYears(-1):this.addMonths(-1);break;case et:e.shiftKey?this.addYears(1):this.addMonths(1);break;case at:this.startOfWeek();break;case tt:this.endOfWeek();break;default:t=!1}t&&(e.preventDefault(),this.enableActiveFocus())},this.handleDaySelect=(e,t)=>{const a=je(t,Ce(this.min),Ce(this.max)),o=!this.isDateDisabled(t);a&&o?(this.setValue(t),this.hide()):this.setFocusedDay(t)},this.handleMonthSelect=e=>{this.setMonth(parseInt(e.target.value,10))},this.handleYearSelect=e=>{this.setYear(parseInt(e.target.value,10))},this.handleInputChange=()=>{const e=this.datePickerInput;!function(e,t){const a=e.value,o=e.selectionStart,n=a.slice(0,o),s=a.slice(o,a.length),i=n.replace(t,""),r=i+s.replace(t,""),l=i.length;e.value=r,e.selectionStart=e.selectionEnd=l}(e,rt);const t=this.dateAdapter.parse(e.value,Me);(t||""===e.value)&&this.setValue(t)},this.processFocusedDayNode=e=>{this.focusedDayNode=e,this.activeFocus&&this.open&&setTimeout((()=>e.focus()),0)}}connectedCallback(){this.createDateFormatters()}createDateFormatters(){this.dateFormatShort=new Intl.DateTimeFormat(this.localization.locale,{day:"numeric",month:"long"}),this.dateFormatLong=new Intl.DateTimeFormat(this.localization.locale,{day:"numeric",month:"long",year:"numeric"})}handleDocumentClick(e){if(!this.open)return;e.composedPath().every((e=>e!==this.dialogWrapperNode&&e!==this.datePickerButton))&&this.hide(!1)}async setFocus(){return this.datePickerInput.focus()}async show(){this.open=!0,this.duetOpen.emit({component:"duet-date-picker"}),this.setFocusedDay(Ce(this.value)||new Date),clearTimeout(this.focusTimeoutId),this.focusTimeoutId=setTimeout((()=>this.monthSelectNode.focus()),300)}async hide(e=!0){this.open=!1,this.duetClose.emit({component:"duet-date-picker"}),clearTimeout(this.focusTimeoutId),e&&setTimeout((()=>this.datePickerButton.focus()),500)}addDays(e){this.setFocusedDay(Re(this.focusedDay,e))}addMonths(e){this.setMonth(this.focusedDay.getMonth()+e)}addYears(e){this.setYear(this.focusedDay.getFullYear()+e)}startOfWeek(){this.setFocusedDay(Ae(this.focusedDay,this.firstDayOfWeek))}endOfWeek(){this.setFocusedDay(Ye(this.focusedDay,this.firstDayOfWeek))}setMonth(e){const t=Oe(Ie(this.focusedDay),e),a=Ee(t),o=Oe(this.focusedDay,e);this.setFocusedDay(Pe(o,t,a))}setYear(e){const t=Be(Ie(this.focusedDay),e),a=Ee(t),o=Be(this.focusedDay,e);this.setFocusedDay(Pe(o,t,a))}setFocusedDay(e){this.focusedDay=Pe(e,Ce(this.min),Ce(this.max))}setValue(e){this.value=Te(e),this.duetChange.emit({component:"duet-date-picker",value:this.value,valueAsDate:e})}render(){const e=Ce(this.value),t=e&&this.dateAdapter.format(e),a=(e||this.focusedDay).getFullYear(),o=this.focusedDay.getMonth(),n=this.focusedDay.getFullYear(),s=Ce(this.min),i=Ce(this.max),r=null!=s&&s.getMonth()===o&&s.getFullYear()===n,l=null!=i&&i.getMonth()===o&&i.getFullYear()===n,d=s?s.getFullYear():a-10,c=i?i.getFullYear():a+10;return g(b,null,g("div",{class:"duet-date"},g(Ve,{dateFormatter:this.dateFormatLong,value:this.value,valueAsDate:e,formattedValue:t,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,role:this.role,required:this.required,identifier:this.identifier,localization:this.localization,buttonRef:e=>this.datePickerButton=e,inputRef:e=>this.datePickerInput=e}),g("div",{class:{"duet-date__dialog":!0,"is-left":"left"===this.direction,"is-active":this.open},role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-labelledby":this.dialogLabelId,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},g("div",{class:"duet-date__dialog-content",onKeyDown:this.handleEscKey,ref:e=>this.dialogWrapperNode=e},g("div",{class:"duet-date__mobile",onFocusin:this.disableActiveFocus},g("label",{class:"duet-date__mobile-heading"},this.localization.calendarHeading),g("button",{class:"duet-date__close",ref:e=>this.firstFocusableElement=e,onKeyDown:this.handleFirstFocusableKeydown,onClick:()=>this.hide(),type:"button"},g("svg",{"aria-hidden":"true",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},g("path",{d:"M0 0h24v24H0V0z",fill:"none"}),g("path",{d:"M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"})),g("span",{class:"duet-date__vhidden"},this.localization.closeLabel))),g("div",{class:"duet-date__header",onFocusin:this.disableActiveFocus},g("div",null,g("h2",{id:this.dialogLabelId,class:"duet-date__vhidden","aria-live":"polite","aria-atomic":"true"},this.localization.monthNames[o]," ",this.focusedDay.getFullYear()),g("label",{htmlFor:this.monthSelectId,class:"duet-date__vhidden"},this.localization.monthSelectLabel),g("div",{class:"duet-date__select"},g("select",{id:this.monthSelectId,class:"duet-date__select--month",ref:e=>this.monthSelectNode=e,onChange:this.handleMonthSelect},this.localization.monthNames.map(((e,t)=>g("option",{key:e,value:t,selected:t===o,disabled:!je(new Date(n,t,1),s?Ie(s):null,i?Ee(i):null)},e)))),g("div",{class:"duet-date__select-label","aria-hidden":"true"},g("span",null,this.localization.monthNamesShort[o]),g("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},g("path",{d:"M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"})))),g("label",{htmlFor:this.yearSelectId,class:"duet-date__vhidden"},this.localization.yearSelectLabel),g("div",{class:"duet-date__select"},g("select",{id:this.yearSelectId,class:"duet-date__select--year",onChange:this.handleYearSelect},function(e,t){for(var a=[],o=e;o<=t;o++)a.push(o);return a}(d,c).map((e=>g("option",{key:e,selected:e===n},e)))),g("div",{class:"duet-date__select-label","aria-hidden":"true"},g("span",null,this.focusedDay.getFullYear()),g("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},g("path",{d:"M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"}))))),g("div",{class:"duet-date__nav"},g("button",{class:"duet-date__prev",onClick:this.handlePreviousMonthClick,disabled:r,type:"button"},g("svg",{"aria-hidden":"true",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 24 24"},g("path",{d:"M14.71 15.88L10.83 12l3.88-3.88c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42z"})),g("span",{class:"duet-date__vhidden"},this.localization.prevMonthLabel)),g("button",{class:"duet-date__next",onClick:this.handleNextMonthClick,disabled:l,type:"button"},g("svg",{"aria-hidden":"true",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 24 24"},g("path",{d:"M9.29 15.88L13.17 12 9.29 8.12c-.39-.39-.39-1.02 0-1.41.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42z"})),g("span",{class:"duet-date__vhidden"},this.localization.nextMonthLabel)))),g(Je,{dateFormatter:this.dateFormatShort,selectedDate:e,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,localization:this.localization,firstDayOfWeek:this.firstDayOfWeek,focusedDayRef:this.processFocusedDayNode,min:s,max:i,isDateDisabled:this.isDateDisabled})))))}get element(){return this}static get watchers(){return{localization:["createDateFormatters"]}}static get style(){return'.duet-date *,.duet-date *::before,.duet-date *::after{box-sizing:border-box;margin:0;width:auto}.duet-date{box-sizing:border-box;color:var(--duet-color-text);display:block;font-family:var(--duet-font);margin:0;position:relative;text-align:left;width:100%}.duet-date__input{-webkit-appearance:none;appearance:none;background:var(--duet-color-surface);border:1px solid var(--duet-color-border, var(--duet-color-text));border-radius:var(--duet-radius);color:var(--duet-color-text);float:none;font-family:var(--duet-font);font-size:100%;line-height:normal;padding:14px 60px 14px 14px;width:100%}.duet-date__input:focus{border-color:var(--duet-color-primary);box-shadow:0 0 0 1px var(--duet-color-primary);outline:0}.duet-date__input::-webkit-input-placeholder{color:var(--duet-color-placeholder);opacity:1}.duet-date__input:-moz-placeholder{color:var(--duet-color-placeholder);opacity:1}.duet-date__input:-ms-input-placeholder{color:var(--duet-color-placeholder)}.duet-date__input-wrapper{position:relative;width:100%}.duet-date__toggle{-moz-appearance:none;-webkit-appearance:none;-webkit-user-select:none;align-items:center;appearance:none;background:var(--duet-color-button);border:0;border-radius:0;border-bottom-right-radius:var(--duet-radius);border-top-right-radius:var(--duet-radius);box-shadow:inset 1px 0 0 rgba(0, 0, 0, 0.1);color:var(--duet-color-text);cursor:pointer;display:flex;height:calc(100% - 2px);justify-content:center;padding:0;position:absolute;right:1px;top:1px;user-select:none;width:48px;z-index:2}.duet-date__toggle:focus{box-shadow:0 0 0 2px var(--duet-color-primary);outline:0}.duet-date__toggle-icon{display:flex;flex-basis:100%;justify-content:center;align-items:center}.duet-date__dialog{display:flex;left:0;min-width:320px;opacity:0;position:absolute;top:100%;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;visibility:hidden;width:100%;will-change:transform, opacity, visibility;z-index:var(--duet-z-index)}@media (max-width: 35.9375em){.duet-date__dialog{background:var(--duet-color-overlay);bottom:0;position:fixed;right:0;top:0;transform:translateZ(0);transform-origin:bottom center}}.duet-date__dialog.is-left{left:auto;right:0;width:auto}.duet-date__dialog.is-active{opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.duet-date__dialog-content{background:var(--duet-color-surface);border:1px solid rgba(0, 0, 0, 0.1);border-radius:var(--duet-radius);box-shadow:0 4px 10px 0 rgba(0, 0, 0, 0.1);margin-left:auto;margin-top:8px;max-width:310px;min-width:290px;padding:16px 16px 20px;position:relative;transform:none;width:100%;z-index:var(--duet-z-index)}@media (max-width: 35.9375em){.duet-date__dialog-content{border:0;border-radius:0;border-top-left-radius:var(--duet-radius);border-top-right-radius:var(--duet-radius);bottom:0;left:0;margin:0;max-width:none;min-height:26em;opacity:0;padding:0 8% 20px;position:absolute;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;visibility:hidden;will-change:transform, opacity, visibility}.is-active .duet-date__dialog-content{opacity:1;transform:translateZ(0) translateY(0);visibility:visible}}.duet-date__table{border-collapse:collapse;border-spacing:0;color:var(--duet-color-text);font-size:1rem;font-weight:var(--duet-font-normal);line-height:1.25;text-align:center;width:100%}.duet-date__table-header{font-size:0.75rem;font-weight:var(--duet-font-bold);letter-spacing:1px;line-height:1.25;padding-bottom:8px;text-decoration:none;text-transform:uppercase}.duet-date__cell{text-align:center}.duet-date__day{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;color:var(--duet-color-text);cursor:pointer;display:inline-block;font-family:var(--duet-font);font-size:0.875rem;font-variant-numeric:tabular-nums;font-weight:var(--duet-font-normal);height:36px;line-height:1.25;padding:0 0 1px;position:relative;text-align:center;vertical-align:middle;width:36px;z-index:1}.duet-date__day.is-today{box-shadow:0 0 0 1px var(--duet-color-primary);position:relative;z-index:200}.duet-date__day:hover::before,.duet-date__day.is-today::before{background:var(--duet-color-primary);border-radius:50%;bottom:0;content:"";left:0;opacity:0.06;position:absolute;right:0;top:0}.duet-date__day[aria-pressed=true],.duet-date__day:focus{background:var(--duet-color-primary);box-shadow:none;color:var(--duet-color-text-active);outline:0}.duet-date__day:active{background:var(--duet-color-primary);box-shadow:0 0 5px var(--duet-color-primary);color:var(--duet-color-text-active);z-index:200}.duet-date__day:focus{box-shadow:0 0 5px var(--duet-color-primary);z-index:200}.duet-date__day:not(.is-month){box-shadow:none}.duet-date__day:not(.is-month),.duet-date__day[aria-disabled=true]{background:transparent;color:var(--duet-color-text);cursor:default;opacity:0.5}.duet-date__day[aria-disabled=true].is-today{box-shadow:0 0 0 1px var(--duet-color-primary)}.duet-date__day[aria-disabled=true].is-today:focus{box-shadow:0 0 5px var(--duet-color-primary);background:var(--duet-color-primary);color:var(--duet-color-text-active)}.duet-date__day[aria-disabled=true]:not(.is-today)::before{display:none}.duet-date__day.is-outside{background:var(--duet-color-button);box-shadow:none;color:var(--duet-color-text);cursor:default;opacity:0.6;pointer-events:none}.duet-date__day.is-outside::before{display:none}.duet-date__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px;width:100%}.duet-date__nav{white-space:nowrap}.duet-date__prev,.duet-date__next{-moz-appearance:none;-webkit-appearance:none;align-items:center;appearance:none;background:var(--duet-color-button);border:0;border-radius:50%;color:var(--duet-color-text);cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;padding:0;transition:background-color 300ms ease;width:32px}@media (max-width: 35.9375em){.duet-date__prev,.duet-date__next{height:40px;width:40px}}.duet-date__prev:focus,.duet-date__next:focus{box-shadow:0 0 0 2px var(--duet-color-primary);outline:0}.duet-date__prev:active:focus,.duet-date__next:active:focus{box-shadow:none}.duet-date__prev:disabled,.duet-date__next:disabled{cursor:default;opacity:0.5}.duet-date__prev svg,.duet-date__next svg{margin:0 auto}.duet-date__select{display:inline-flex;margin-top:4px;position:relative}.duet-date__select span{margin-right:4px}.duet-date__select select{cursor:pointer;font-size:1rem;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:2}.duet-date__select select:focus+.duet-date__select-label{box-shadow:0 0 0 2px var(--duet-color-primary)}.duet-date__select-label{align-items:center;border-radius:var(--duet-radius);color:var(--duet-color-text);display:flex;font-size:1.25rem;font-weight:var(--duet-font-bold);line-height:1.25;padding:0 4px 0 8px;pointer-events:none;position:relative;width:100%;z-index:1}.duet-date__select-label svg{width:16px;height:16px}.duet-date__mobile{align-items:center;border-bottom:1px solid rgba(0, 0, 0, 0.12);display:flex;justify-content:space-between;margin-bottom:20px;margin-left:-10%;overflow:hidden;padding:12px 20px;position:relative;text-overflow:ellipsis;white-space:nowrap;width:120%}@media (min-width: 36em){.duet-date__mobile{border:0;margin:0;overflow:visible;padding:0;position:absolute;right:-8px;top:-8px;width:auto}}.duet-date__mobile-heading{display:inline-block;font-weight:var(--duet-font-bold);max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date__mobile-heading{display:none}}.duet-date__close{-webkit-appearance:none;align-items:center;appearance:none;background:var(--duet-color-button);border:0;border-radius:50%;color:var(--duet-color-text);cursor:pointer;display:flex;height:24px;justify-content:center;padding:0;width:24px}@media (min-width: 36em){.duet-date__close{opacity:0}
1}.duet-date__close:focus{box-shadow:0 0 0 2px var(--duet-color-primary);outline:none}@media (min-width: 36em){.duet-date__close:focus{opacity:1}}.duet-date__close svg{margin:0 auto}.duet-date__vhidden{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;top:0;width:1px}'}},[0,"duet-date-picker",{name:[1],identifier:[1],disabled:[516],role:[1],direction:[1],required:[4],value:[1537],min:[1],max:[1],firstDayOfWeek:[2,"first-day-of-week"],localization:[16],dateAdapter:[16],isDateDisabled:[16],activeFocus:[32],focusedDay:[32],open:[32]},[[6,"click","handleDocumentClick"]]]),dt=async e=>{for(;null===e();)await new Promise((e=>requestAnimationFrame(e)));return e()};function ct(){return Math.random().toString(16).slice(-4)}customElements.define("duet-date-picker",class extends lt{constructor(){super(),this.attachShadow({mode:"open"})}loadStylesheet(){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.onload=()=>{this.removeAttribute("style")},e.setAttribute("href",`${ionasInfo.context}/:web-components/duetDatepickerStyles.css`),this.shadowRoot.appendChild(e)}connectedCallback(){if(super.connectedCallback(),this.style.display="none",this.loadStylesheet(),this.isConnected){const e=this.getAttribute("identifier"),t=`${"dialog"}-${ct()}${ct()}-${ct()}-${ct()}-${ct()}-${ct()}${ct()}${ct()}`,a=document.querySelector(`[for="${e}"]`);dt((()=>this.shadowRoot.querySelector("style"))).then((e=>e.remove())),dt((()=>this.shadowRoot.querySelector(".duet-date__input"))).then((e=>{if(e.setAttribute("part","duet-date__input"),a){const t=a.cloneNode(!0);t.classList.add("sr-only"),e.before(t),a.addEventListener("click",this.onLabelClick.bind(this)),a.setAttribute("aria-hidden","true"),a.removeAttribute("for")}})),dt((()=>this.shadowRoot.querySelector(".duet-date"))).then((e=>e.setAttribute("part","duet-date"))),dt((()=>this.shadowRoot.querySelector(".duet-date__input-wrapper"))).then((e=>e.setAttribute("part","duet-date__input-wrapper"))),dt((()=>this.shadowRoot.querySelector(".duet-date__dialog"))).then((e=>{e.setAttribute("id",t)})),dt((()=>this.shadowRoot.querySelector(".duet-date__toggle"))).then((e=>{e.setAttribute("part","duet-date__toggle"),e.setAttribute("aria-controls",t),e.setAttribute("aria-haspopup","dialog")})),dt((()=>this.shadowRoot.querySelector(".duet-date__toggle-icon"))).then((e=>{e.setAttribute("part","duet-date__toggle-icon"),e.setAttribute("aria-hidden","true")})),dt((()=>this.shadowRoot.querySelector(".duet-date__toggle-icon svg"))).then((e=>e.setAttribute("part","duet-date__toggle-icon-default-svg")))}}onLabelClick(e){this.shadowRoot.querySelector(".duet-date__input").focus()}})}()}}}));
2//# sourceMappingURL=duetDatepicker.system.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.