@supersoniks/concorde 2.0.5 → 2.0.6

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.
@@ -1,4 +1,4 @@
1
- !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t,e;let s=class t{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce(((t,e)=>{const s=e.indexOf("=");return t[e.substring(0,s).trim()]=e.substring(s+1),t}),{})}static everyAncestors(t,e){for(;t;){if(!e(t))return;t=t.parentNode||t.host}}static getAncestorAttributeValue(t,e){if(!t)return null;for(;!("hasAttribute"in t)||!t.hasAttribute(e);){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return"hasAttribute"in t?t.getAttribute(e):null}static getApiConfiguration(e){const s=t.getAncestorAttributeValue(e,"token"),i=null!=t.getAncestorAttributeValue(e,"addHTTPResponse"),r=t.getAncestorAttributeValue(e,"serviceURL");let o=null,n=null;const a=t.getAncestorAttributeValue(e,"tokenProvider"),l=t.getAncestorAttributeValue(e,"eventsApiToken");s||(o=t.getAncestorAttributeValue(e,"userName"),n=t.getAncestorAttributeValue(e,"password"));return{serviceURL:r,token:s,userName:o,password:n,authToken:l,tokenProvider:a,addHTTPResponse:i,credentials:t.getAncestorAttributeValue(e,"credentials")||void 0,cache:e.getAttribute("cache"),blockUntilDone:e.hasAttribute("blockUntilDone")}}static getClosestElement(t,e){for(;!t.nodeName||t.nodeName.toLowerCase()!==e;){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return t.nodeName?t:null}static getClosestForm(e){return t.getClosestElement(e,"form")}static async loadJS(t){return new Promise((async e=>{const s=document.createElement("script");s.src=t,s.onload=()=>e(!0),s.onerror=()=>e(!0),document.head.appendChild(s)}))}static async loadCSS(t){return new Promise((async e=>{const s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=t,s.onload=()=>e(!0),s.onerror=()=>e(!0),document.head.appendChild(s)}))}},i=class{static ucFirst(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,e="",i="long"){e||(e=s.getLanguage());function r(t,e,s){return Intl.NumberFormat(t,{style:"unit",unit:e,unitDisplay:s}).format}const[o,n]=(a=t,l=60,[Math.floor(a/l),a%l]);var a,l;const c=[];return o&&c.push(r(e,"hour",i)(o)),n&&c.push(r(e,"minute",i)(n)),new Intl.ListFormat(e,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch(e){return""}}};function r(t){return"object"==typeof t&&null!=t}const o=class t{constructor(t,e){for(this._proxies_=new Map,this._is_savable_=!1,this._invalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=e||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t of this._proxies_.values())t.delete();this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),t.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach((t=>t())),this._is_savable_&&!l.changed){l.changed=!0,l.saveId++;const t=l.saveId;setTimeout((()=>l.getInstance().saveToLocalStorage(t)),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const e=this._assignmentId_;if(await(async()=>new Promise((t=>{window.queueMicrotask((()=>t(null)))})))(),e!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach((t=>t(s))),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach((t=>t()))}_publishDynamicFilling_(t,e){this._fillListeners_.forEach((s=>{s[t]!==e&&(s[t]=e)})),this._publishTemplateFilling_(t,e)}_publishTemplateFilling_(t,e){this._templateFillListeners_.forEach((s=>{const i=Object.getOwnPropertyDescriptor(s,t);(!i||i.set||i.writable)&&(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),void 0!==s[t]&&s[t]!==e&&(s[t]=e))}))}onAssign(t,e=!0){"function"==typeof t&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),e&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){"function"==typeof t&&this._invalidateListeners_.add(t)}offInvalidate(t){"function"==typeof t&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onInternalMutation(t){"function"==typeof t&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){"function"==typeof t&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),"object"==typeof this._value_)for(const e in this._value_){let s=e;const i=this._value_[e];t.propertyMap&&t.propertyMap[e]&&(s=t.propertyMap[e]),void 0!==t[e]&&t[e]!==i&&(t[s]=i)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const e in this._value_){const s=this._value_[e];t[e]!==s&&(t[e]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,e=!1){var s;if(this._value_===t)return!0;if(this._value_&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;this._value_=r(t)?t:{__value:t},this._cachedGet_=void 0;if(Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(e),!0;for(const r in this._value_)void 0===this._value_[r]&&delete this._value_[r];if(this._proxies_.forEach(((t,e)=>{void 0===this._value_[e]&&"_parent_"!=e&&i[e]&&(this._value_[e]=null)})),await this._publishAssignement_(),r(this._value_))for(const o in this._value_){const e=t[o],i=r(e)?e:{__value:e};this._proxies_.has(o)?(await(null==(s=this._proxies_.get(o))?void 0:s.set(i,!0)),this._publishDynamicFilling_(o,e)):this._publishDynamicFilling_(o,e)}return!0}get(){if(void 0!==this._cachedGet_)return this._cachedGet_;if(l.modifiedCollectore.length>0&&l.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=null!=t?t:null}return this._cachedGet_=this._value_}get $tag(){this._instanceCounter_||(t.instancesCounter++,this._instanceCounter_=t.instancesCounter),t.instances.set(this._instanceCounter_,this);return'<reactive-publisher-proxy publisher="'+this._instanceCounter_+'"></reactive-publisher-proxy>'}};o.instances=new Map,o.instancesCounter=0;let n=o;const a=class t{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],null!=t.instance)throw"Singleton / use getInstance";t.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise((t=>{(async()=>{try{let s=localStorage.getItem("publisher-proxies-data"),i=null;if(s&&(i=await this.decompress(s,"gzip")),i)try{this.localStorageData=JSON.parse(i)}catch(e){this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem("publisher-proxies-data",s),this.localStorageData={};const r=(new Date).getTime()-432e5;for(const t in this.localStorageData){this.localStorageData[t].lastModifiationMS<r&&delete this.localStorageData[t]}t(!0)}catch(e){window.requestAnimationFrame((()=>{t(!1)})),console.log("no publisher cache in this browser")}})()}))}static getInstance(){return null==t.instance?new t:t.instance}static get(e,s){return t.getInstance().get(e,s)}static collectModifiedPublisher(){t.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return t.modifiedCollectore.shift()}static delete(e){return!!e&&t.getInstance().delete(e)}async setLocalData(t,e){var i;await this.isLocalStrorageReady,t.set((null==(i=this.localStorageData[e+"¤lang_"+s.getLanguage()])?void 0:i.data)||t.get())}get(t,e){const s="enabled"===(null==e?void 0:e.localStorageMode);if(!this.publishers.has(t)){const e=new h({});this.set(t,e)}const i=this.publishers.get(t);return s&&-1===this.initialisedData.indexOf(t)&&(i._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(i,t)),this.publishers.get(t)}set(t,e){this.publishers.set(t,e)}delete(t){return!!this.publishers.has(t)&&(this.publishers.delete(t),!0)}async saveToLocalStorage(e=0){if(e===t.saveId||e%10==0)try{if(!t.changed||t.saving)return;t.saving=!0,t.changed=!1;const e=Array.from(this.publishers.keys());let i=!1;for(const t of e){const e=this.publishers.get(t);if(!(null==e?void 0:e._is_savable_))continue;const r=null==e?void 0:e.get();r&&(this.localStorageData[t+"¤lang_"+s.getLanguage()]={lastModifiationMS:(new Date).getTime(),data:r},i=!0)}if(i){const t=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem("publisher-proxies-data",t)}if(t.saving=!1,t.changed){t.saveId++;const e=t.saveId;setTimeout((()=>this.saveToLocalStorage(e)),1e3)}}catch(i){t.saving=!1}}async compress(t,e){const s=(new TextEncoder).encode(t),i=new window.CompressionStream(e),r=i.writable.getWriter();r.write(s),r.close();const o=await new Response(i.readable).arrayBuffer(),n=new Uint8Array(o);let a="";for(let l=0;l<n.length;l++)a+=String.fromCharCode(n[l]);return btoa(a)}async decompress(t,e){const s=atob(t),i=Uint8Array.from(s,(t=>t.charCodeAt(0))).buffer,r=new window.DecompressionStream(e),o=r.writable.getWriter();o.write(i),o.close();const n=await new Response(r.readable).arrayBuffer();return(new TextDecoder).decode(n)}};a.buildDate="Thu Apr 04 2024 11:34:32 GMT+0200 (Central European Summer Time)",a.changed=!1,a.saving=!1,a.saveId=0,a.instance=null,a.modifiedCollectore=[];let l=a;const c=new Set(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_is_savable_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class h extends n{constructor(t,e=null){super(t,e);const s=new Proxy(this,{get:function(t,e){if(e==Symbol.toPrimitive)return()=>s.get();if(c.has(e))return t[e];if(!t._proxies_.has(e)){const i=t._value_[e],o=new h(r(i)?i:{__value:i},t);o._proxies_.set("_parent_",s),t._proxies_.set(e,o)}return t._proxies_.get(e)},set:function(t,e,i){var o;if("_value_"==e)return t._value_=i,!0;if("_cachedGet_"==e)return t._cachedGet_=i,!0;if("_assignmentId_"==e)return t._assignmentId_=i,!0;if("_is_savable_"==e)return t._is_savable_=i,!0;if("_instanceCounter_"==e)return t._instanceCounter_=i,!0;if(!t._proxies_.has(e)){const i=new h({},t);i._proxies_.set("_parent_",s),t._proxies_.set(e,i)}return t._value_[e]!==i&&(t._value_[e]=i,t._publishDynamicFilling_(e,i),null==(o=t._proxies_.get(e))||o.set(r(i)?i:{__value:i})),!0},deleteProperty:function(t,e){var s;return t._publishDynamicFilling_(e,null),null==(s=t._proxies_.get(e))||s.set(null),delete t._value_[e]},has:function(t,e){return e in t._value_&&"_lockInternalMutationPublishing_"!=e},defineProperty:function(t,e,s){return s&&"value"in s&&(t._value_[e]=s.value),!0},getOwnPropertyDescriptor:function(t,e){return{enumerable:!0,configurable:!0}},ownKeys:function(t){return t._value_.__value?Object.keys(t._value_.__value):Object.keys(t._value_)}});return s}toString(){return"hey"}valueOf(){return 2}getProperty(t,e){return t[e]}}"undefined"!=typeof module&&(module.exports={Publisher:h,PublisherManager:l});class d extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=n.instances.get(parseInt(this.publisherId)),null==(t=this.publisher)||t.onAssign(this.onAssign)}disconnectedCallback(){var t;null==(t=this.publisher)||t.offAssign(this.onAssign)}}customElements.define("reactive-publisher-proxy",d);const p=class t{static disable(){this.enabled&&(this.enabled=!1,Array.from(t.observedElements.keys()).forEach((e=>t.unObserve(e))))}static observe(e){if(!e)return;if(!t.enabled)return;if(t.observedElements.has(e))return;const s=new MutationObserver(t.onMutation),i={childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-bind"]};s.observe(e,i),e.querySelectorAll("[data-bind]").forEach((e=>t.addPublisherListeners(e))),t.observedElements.set(e,s)}static unObserve(e){if(!e)return;const s=this.observedElements.get(e);s&&(s.disconnect(),e.querySelectorAll("[data-bind]").forEach((e=>t.removePublisherListeners(e))))}static onAdded(e){e.hasAttribute&&e.hasAttribute("data-bind")&&t.addPublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach((e=>t.addPublisherListeners(e))):e.childNodes.forEach((e=>t.onAdded(e)))}static onRemoved(e){e.hasAttribute&&e.hasAttribute("data-bind")&&t.removePublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach((e=>t.removePublisherListeners(e))):e.childNodes.forEach((e=>t.onRemoved(e)))}static onMutation(e){for(const s of e)switch(s.type){case"attributes":t.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach((e=>{t.onAdded(e)})),s.removedNodes.forEach((e=>{t.onRemoved(e)}))}}static removePublisherListeners(e){const s=t.publisherListeners.get(e);s&&(t.publisherListeners.delete(e),s.forEach((t=>{var e;null==(e=t.publisher)||e.offAssign(t.onAssign)})))}static getVariablesDescriptor(t){let e=t.match(/(\$(?:\w+\\?\.?)+)/g);return e=e?e.map((t=>t.replace("$",""))):[t],e=e.filter((t=>t.length>0)),{expression:t.replace("\\",""),variables:e.map((t=>t.split(/\b\.\b/).map((t=>t.replace("\\","")))))}}static getDataBindItems(e){return"attributes"in e?Array.from(e.attributes).filter((t=>0==t.name.indexOf("::"))).map((e=>({propertyToUpdate:e.name.substring(2).replace(/-((html)|\w)/g,(t=>t.substring(1).toUpperCase())),bindedVariablesDescriptor:t.getVariablesDescriptor(e.value)}))):[]}static getSubPublisher(t,e){if(!e)return t;for(const s of e)if("_self_"!=s){if(!t)return null;t=t[s]}return t}static addPublisherListeners(e){t.removePublisherListeners(e);const r=s.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!r)return;const o=l.getInstance().get(r),n=t.getDataBindItems(e),a=[];n.forEach((s=>{const r=s.bindedVariablesDescriptor,n=s.propertyToUpdate;for(const l of r.variables){const s=l;let c=o;c=t.getSubPublisher(o,s);const h=e,d={publisher:c,onAssign:()=>{const e=r.variables.map((e=>{var s;return null==(s=t.getSubPublisher(o,e))?void 0:s.get()}));let s=r.expression,a=!1;if(1==e.length&&r.variables[0].join(".")==s.substring(1)){let t=e[0];return null===t&&(t=""),void(h[n]=t)}for(let t=0;t<e.length;t++){let i=e[t];const o=r.variables[t];null===i&&(a=!0,i=void 0),s=s.replace("$"+o.join("."),i)}if(-1!=s.indexOf("|")){const t=s.indexOf("|");if(0==t)s=i.js(s.substring(1));else{const e=s.substring(0,t),r=s.substring(t+1),o=i[e];s=a?"":o?o(r):s}}else s=a?"":s;h[n]=s}};null==c||c.onAssign(d.onAssign),a.push(d)}})),t.publisherListeners.set(e,a)}};p.observedElements=new Map,p.enabled=!0,p.publisherListeners=new Map;let u=p;u.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=u);let g=class t{static shallowEqual(t,e,s=!0){const i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length&&s)return!1;for(const o of i){const i=t[o],r=e[o];if(s?i!==r:i!=r)return!1}return!0}static deepEqual(e,s,i=!0){const r=Object.keys(e),o=Object.keys(s);if(r.length!==o.length&&i)return!1;for(const n of r){const r=e[n],o=s[n],a=t.isObject(r)&&t.isObject(o),l=i?r!==o:r!=o;if(a&&!t.deepEqual(r,o)||!a&&l)return!1}return!0}static isObject(t){return null!=t&&"object"==typeof t}static isUndefindOrNull(t){return null==t}static isEmpty(e){return!!t.isUndefindOrNull(e)||0===Object.keys(e).length}static traverse(e,s,i=!1){for(const r of s){const s=e[r];if(void 0===s)return;e=i&&t.isObject(s)?Object.assign(Array.isArray(s)?[]:{},e,s):e[r]}return e}static getURLSearchArray(e,s=""){let i=[];for(let r in e){const o=e[r];s&&(r=s+"["+r+"]"),t.isObject(o)?i=[...i,...this.getURLSearchArray(o,r)]:i.push(`${r}=${o}`)}return i}static getURLSearchString(e){return t.getURLSearchArray(e,"").join("&")}};
1
+ !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t,e;let s=class t{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce(((t,e)=>{const s=e.indexOf("=");return t[e.substring(0,s).trim()]=e.substring(s+1),t}),{})}static everyAncestors(t,e){for(;t;){if(!e(t))return;t=t.parentNode||t.host}}static getAncestorAttributeValue(t,e){if(!t)return null;for(;!("hasAttribute"in t)||!t.hasAttribute(e);){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return"hasAttribute"in t?t.getAttribute(e):null}static getApiConfiguration(e){const s=t.getAncestorAttributeValue(e,"token"),i=null!=t.getAncestorAttributeValue(e,"addHTTPResponse"),r=t.getAncestorAttributeValue(e,"serviceURL");let o=null,n=null;const a=t.getAncestorAttributeValue(e,"tokenProvider"),l=t.getAncestorAttributeValue(e,"eventsApiToken");s||(o=t.getAncestorAttributeValue(e,"userName"),n=t.getAncestorAttributeValue(e,"password"));return{serviceURL:r,token:s,userName:o,password:n,authToken:l,tokenProvider:a,addHTTPResponse:i,credentials:t.getAncestorAttributeValue(e,"credentials")||void 0,cache:e.getAttribute("cache"),blockUntilDone:e.hasAttribute("blockUntilDone")}}static getClosestElement(t,e){for(;!t.nodeName||t.nodeName.toLowerCase()!==e;){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return t.nodeName?t:null}static getClosestForm(e){return t.getClosestElement(e,"form")}static async loadJS(t){return new Promise((async e=>{const s=document.createElement("script");s.src=t,s.onload=()=>e(!0),s.onerror=()=>e(!0),document.head.appendChild(s)}))}static async loadCSS(t){return new Promise((async e=>{const s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=t,s.onload=()=>e(!0),s.onerror=()=>e(!0),document.head.appendChild(s)}))}},i=class{static ucFirst(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,e="",i="long"){e||(e=s.getLanguage());function r(t,e,s){return Intl.NumberFormat(t,{style:"unit",unit:e,unitDisplay:s}).format}const[o,n]=(a=t,l=60,[Math.floor(a/l),a%l]);var a,l;const c=[];return o&&c.push(r(e,"hour",i)(o)),n&&c.push(r(e,"minute",i)(n)),new Intl.ListFormat(e,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch(e){return""}}};function r(t){return"object"==typeof t&&null!=t}const o=class t{constructor(t,e){for(this._proxies_=new Map,this._is_savable_=!1,this._invalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=e||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t of this._proxies_.values())t.delete();this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),t.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach((t=>t())),this._is_savable_&&!l.changed){l.changed=!0,l.saveId++;const t=l.saveId;setTimeout((()=>l.getInstance().saveToLocalStorage(t)),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const e=this._assignmentId_;if(await(async()=>new Promise((t=>{window.queueMicrotask((()=>t(null)))})))(),e!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach((t=>t(s))),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach((t=>t()))}_publishDynamicFilling_(t,e){this._fillListeners_.forEach((s=>{s[t]!==e&&(s[t]=e)})),this._publishTemplateFilling_(t,e)}_publishTemplateFilling_(t,e){this._templateFillListeners_.forEach((s=>{const i=Object.getOwnPropertyDescriptor(s,t);(!i||i.set||i.writable)&&(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),void 0!==s[t]&&s[t]!==e&&(s[t]=e))}))}onAssign(t,e=!0){"function"==typeof t&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),e&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){"function"==typeof t&&this._invalidateListeners_.add(t)}offInvalidate(t){"function"==typeof t&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onInternalMutation(t){"function"==typeof t&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){"function"==typeof t&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),"object"==typeof this._value_)for(const e in this._value_){let s=e;const i=this._value_[e];t.propertyMap&&t.propertyMap[e]&&(s=t.propertyMap[e]),void 0!==t[e]&&t[e]!==i&&(t[s]=i)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const e in this._value_){const s=this._value_[e];t[e]!==s&&(t[e]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,e=!1){var s;if(this._value_===t)return!0;if(this._value_&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;this._value_=r(t)?t:{__value:t},this._cachedGet_=void 0;if(Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(e),!0;for(const r in this._value_)void 0===this._value_[r]&&delete this._value_[r];if(this._proxies_.forEach(((t,e)=>{void 0===this._value_[e]&&"_parent_"!=e&&i[e]&&(this._value_[e]=null)})),await this._publishAssignement_(),r(this._value_))for(const o in this._value_){const e=t[o],i=r(e)?e:{__value:e};this._proxies_.has(o)?(await(null==(s=this._proxies_.get(o))?void 0:s.set(i,!0)),this._publishDynamicFilling_(o,e)):this._publishDynamicFilling_(o,e)}return!0}get(){if(void 0!==this._cachedGet_)return this._cachedGet_;if(l.modifiedCollectore.length>0&&l.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=null!=t?t:null}return this._cachedGet_=this._value_}get $tag(){this._instanceCounter_||(t.instancesCounter++,this._instanceCounter_=t.instancesCounter),t.instances.set(this._instanceCounter_,this);return'<reactive-publisher-proxy publisher="'+this._instanceCounter_+'"></reactive-publisher-proxy>'}};o.instances=new Map,o.instancesCounter=0;let n=o;const a=class t{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],null!=t.instance)throw"Singleton / use getInstance";t.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise((t=>{(async()=>{try{let s=localStorage.getItem("publisher-proxies-data"),i=null;if(s&&(i=await this.decompress(s,"gzip")),i)try{this.localStorageData=JSON.parse(i)}catch(e){this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem("publisher-proxies-data",s),this.localStorageData={};const r=(new Date).getTime()-432e5;for(const t in this.localStorageData){this.localStorageData[t].lastModifiationMS<r&&delete this.localStorageData[t]}t(!0)}catch(e){window.requestAnimationFrame((()=>{t(!1)})),console.log("no publisher cache in this browser")}})()}))}static getInstance(){return null==t.instance?new t:t.instance}static get(e,s){return t.getInstance().get(e,s)}static collectModifiedPublisher(){t.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return t.modifiedCollectore.shift()}static delete(e){return!!e&&t.getInstance().delete(e)}async setLocalData(t,e){var i;await this.isLocalStrorageReady,t.set((null==(i=this.localStorageData[e+"¤lang_"+s.getLanguage()])?void 0:i.data)||t.get())}get(t,e){const s="enabled"===(null==e?void 0:e.localStorageMode);if(!this.publishers.has(t)){const e=new h({});this.set(t,e)}const i=this.publishers.get(t);return s&&-1===this.initialisedData.indexOf(t)&&(i._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(i,t)),this.publishers.get(t)}set(t,e){this.publishers.set(t,e)}delete(t){return!!this.publishers.has(t)&&(this.publishers.delete(t),!0)}async saveToLocalStorage(e=0){if(e===t.saveId||e%10==0)try{if(!t.changed||t.saving)return;t.saving=!0,t.changed=!1;const e=Array.from(this.publishers.keys());let i=!1;for(const t of e){const e=this.publishers.get(t);if(!(null==e?void 0:e._is_savable_))continue;const r=null==e?void 0:e.get();r&&(this.localStorageData[t+"¤lang_"+s.getLanguage()]={lastModifiationMS:(new Date).getTime(),data:r},i=!0)}if(i){const t=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem("publisher-proxies-data",t)}if(t.saving=!1,t.changed){t.saveId++;const e=t.saveId;setTimeout((()=>this.saveToLocalStorage(e)),1e3)}}catch(i){t.saving=!1}}async compress(t,e){const s=(new TextEncoder).encode(t),i=new window.CompressionStream(e),r=i.writable.getWriter();r.write(s),r.close();const o=await new Response(i.readable).arrayBuffer(),n=new Uint8Array(o);let a="";for(let l=0;l<n.length;l++)a+=String.fromCharCode(n[l]);return btoa(a)}async decompress(t,e){const s=atob(t),i=Uint8Array.from(s,(t=>t.charCodeAt(0))).buffer,r=new window.DecompressionStream(e),o=r.writable.getWriter();o.write(i),o.close();const n=await new Response(r.readable).arrayBuffer();return(new TextDecoder).decode(n)}};a.buildDate="Thu Apr 04 2024 13:07:46 GMT+0200 (Central European Summer Time)",a.changed=!1,a.saving=!1,a.saveId=0,a.instance=null,a.modifiedCollectore=[];let l=a;const c=new Set(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_is_savable_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_"]);class h extends n{constructor(t,e=null){super(t,e);const s=new Proxy(this,{get:function(t,e){if(e==Symbol.toPrimitive)return()=>s.get();if(c.has(e))return t[e];if(!t._proxies_.has(e)){const i=t._value_[e],o=new h(r(i)?i:{__value:i},t);o._proxies_.set("_parent_",s),t._proxies_.set(e,o)}return t._proxies_.get(e)},set:function(t,e,i){var o;if("_value_"==e)return t._value_=i,!0;if("_cachedGet_"==e)return t._cachedGet_=i,!0;if("_assignmentId_"==e)return t._assignmentId_=i,!0;if("_is_savable_"==e)return t._is_savable_=i,!0;if("_instanceCounter_"==e)return t._instanceCounter_=i,!0;if(!t._proxies_.has(e)){const i=new h({},t);i._proxies_.set("_parent_",s),t._proxies_.set(e,i)}return t._value_[e]!==i&&(t._value_[e]=i,t._publishDynamicFilling_(e,i),null==(o=t._proxies_.get(e))||o.set(r(i)?i:{__value:i})),!0},deleteProperty:function(t,e){var s;return t._publishDynamicFilling_(e,null),null==(s=t._proxies_.get(e))||s.set(null),delete t._value_[e]},has:function(t,e){return e in t._value_&&"_lockInternalMutationPublishing_"!=e},defineProperty:function(t,e,s){return s&&"value"in s&&(t._value_[e]=s.value),!0},getOwnPropertyDescriptor:function(t,e){return{enumerable:!0,configurable:!0}},ownKeys:function(t){return t._value_.__value?Object.keys(t._value_.__value):Object.keys(t._value_)}});return s}toString(){return"hey"}valueOf(){return 2}getProperty(t,e){return t[e]}}"undefined"!=typeof module&&(module.exports={Publisher:h,PublisherManager:l});class d extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=n.instances.get(parseInt(this.publisherId)),null==(t=this.publisher)||t.onAssign(this.onAssign)}disconnectedCallback(){var t;null==(t=this.publisher)||t.offAssign(this.onAssign)}}customElements.define("reactive-publisher-proxy",d);const p=class t{static disable(){this.enabled&&(this.enabled=!1,Array.from(t.observedElements.keys()).forEach((e=>t.unObserve(e))))}static observe(e){if(!e)return;if(!t.enabled)return;if(t.observedElements.has(e))return;const s=new MutationObserver(t.onMutation),i={childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-bind"]};s.observe(e,i),e.querySelectorAll("[data-bind]").forEach((e=>t.addPublisherListeners(e))),t.observedElements.set(e,s)}static unObserve(e){if(!e)return;const s=this.observedElements.get(e);s&&(s.disconnect(),e.querySelectorAll("[data-bind]").forEach((e=>t.removePublisherListeners(e))))}static onAdded(e){e.hasAttribute&&e.hasAttribute("data-bind")&&t.addPublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach((e=>t.addPublisherListeners(e))):e.childNodes.forEach((e=>t.onAdded(e)))}static onRemoved(e){e.hasAttribute&&e.hasAttribute("data-bind")&&t.removePublisherListeners(e),e.querySelectorAll?e.querySelectorAll("[data-bind]").forEach((e=>t.removePublisherListeners(e))):e.childNodes.forEach((e=>t.onRemoved(e)))}static onMutation(e){for(const s of e)switch(s.type){case"attributes":t.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach((e=>{t.onAdded(e)})),s.removedNodes.forEach((e=>{t.onRemoved(e)}))}}static removePublisherListeners(e){const s=t.publisherListeners.get(e);s&&(t.publisherListeners.delete(e),s.forEach((t=>{var e;null==(e=t.publisher)||e.offAssign(t.onAssign)})))}static getVariablesDescriptor(t){let e=t.match(/(\$(?:\w+\\?\.?)+)/g);return e=e?e.map((t=>t.replace("$",""))):[t],e=e.filter((t=>t.length>0)),{expression:t.replace("\\",""),variables:e.map((t=>t.split(/\b\.\b/).map((t=>t.replace("\\","")))))}}static getDataBindItems(e){return"attributes"in e?Array.from(e.attributes).filter((t=>0==t.name.indexOf("::"))).map((e=>({propertyToUpdate:e.name.substring(2).replace(/-((html)|\w)/g,(t=>t.substring(1).toUpperCase())),bindedVariablesDescriptor:t.getVariablesDescriptor(e.value)}))):[]}static getSubPublisher(t,e){if(!e)return t;for(const s of e)if("_self_"!=s){if(!t)return null;t=t[s]}return t}static addPublisherListeners(e){t.removePublisherListeners(e);const r=s.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!r)return;const o=l.getInstance().get(r),n=t.getDataBindItems(e),a=[];n.forEach((s=>{const r=s.bindedVariablesDescriptor,n=s.propertyToUpdate;for(const l of r.variables){const s=l;let c=o;c=t.getSubPublisher(o,s);const h=e,d={publisher:c,onAssign:()=>{const e=r.variables.map((e=>{var s;return null==(s=t.getSubPublisher(o,e))?void 0:s.get()}));let s=r.expression,a=!1;if(1==e.length&&r.variables[0].join(".")==s.substring(1)){let t=e[0];return null===t&&(t=""),void(h[n]=t)}for(let t=0;t<e.length;t++){let i=e[t];const o=r.variables[t];null===i&&(a=!0,i=void 0),s=s.replace("$"+o.join("."),i)}if(-1!=s.indexOf("|")){const t=s.indexOf("|");if(0==t)s=i.js(s.substring(1));else{const e=s.substring(0,t),r=s.substring(t+1),o=i[e];s=a?"":o?o(r):s}}else s=a?"":s;h[n]=s}};null==c||c.onAssign(d.onAssign),a.push(d)}})),t.publisherListeners.set(e,a)}};p.observedElements=new Map,p.enabled=!0,p.publisherListeners=new Map;let u=p;u.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=u);let g=class t{static shallowEqual(t,e,s=!0){const i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length&&s)return!1;for(const o of i){const i=t[o],r=e[o];if(s?i!==r:i!=r)return!1}return!0}static deepEqual(e,s,i=!0){const r=Object.keys(e),o=Object.keys(s);if(r.length!==o.length&&i)return!1;for(const n of r){const r=e[n],o=s[n],a=t.isObject(r)&&t.isObject(o),l=i?r!==o:r!=o;if(a&&!t.deepEqual(r,o)||!a&&l)return!1}return!0}static isObject(t){return null!=t&&"object"==typeof t}static isUndefindOrNull(t){return null==t}static isEmpty(e){return!!t.isUndefindOrNull(e)||0===Object.keys(e).length}static traverse(e,s,i=!1){for(const r of s){const s=e[r];if(void 0===s)return;e=i&&t.isObject(s)?Object.assign(Array.isArray(s)?[]:{},e,s):e[r]}return e}static getURLSearchArray(e,s=""){let i=[];for(let r in e){const o=e[r];s&&(r=s+"["+r+"]"),t.isObject(o)?i=[...i,...this.getURLSearchArray(o,r)]:i.push(`${r}=${o}`)}return i}static getURLSearchString(e){return t.getURLSearchArray(e,"").join("&")}};
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -74,7 +74,7 @@ const z={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:I},R=(t=z,e,
74
74
  * @license
75
75
  * Copyright 2018 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
- */const we="important",xe=" !"+we,_e=Rt(class extends Ft{constructor(t){var e;if(super(t),t.type!==Nt||"style"!==t.name||(null==(e=t.strings)?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const i of this.ut)null==e[i]&&(this.ut.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in e){const t=e[i];if(null!=t){this.ut.add(i);const e="string"==typeof t&&t.endsWith(xe);i.includes("-")||e?s.setProperty(i,e?t.slice(0,-11):t,e?we:""):s[i]=t}}return ut}});var ke=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,Pe=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ae(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ke(e,s,o),o};const Ce=new Map,Se=t=>{class e extends t{constructor(...t){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=t=>{this.setValueFromPublisher(t)},this.onFormValueAssign=async t=>{this.setFormValueFromPublisher(t)},this.onFormDataInValidate=()=>{const t=this.getFormPublisher();t&&t.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(t){this.hasAttribute("name")&&!this.forceAutoFill&&(t=this.getAttribute("name")),this._name=t,this.requestUpdate()}validateFormElement(){}updateDataValue(){const t=this.getAttribute("name");if(t){const e=this.getFormPublisher();e&&(e[t]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(e[t].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?l.get(this.formDataProvider):null}getValueForFormPublisher(){return this.value}setValueFromPublisher(t){this.value=t}setFormValueFromPublisher(t){this.value=t}get value(){return this._value}set value(t){null==t&&(t=""),g.isObject(t)&&Object.prototype.hasOwnProperty.call(t,"__value")&&null==t._value&&(t=""),this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}initPublisher(){let t=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&t[this._name].get()?t[this._name].get():this.getAttribute("value");this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign),this._name&&t&&t[this._name].offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&this.publisher[this._name].onAssign(this.onValueAssign),t=this.getFormPublisher(),this._name&&t&&(t[this._name].onAssign(this.onFormValueAssign),t.onInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(t){this.value=t.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const t=this.getAncestorAttributeValue("data-keyboard-nav");if(!t)return;const e=t.split(" "),s=e[0];if(!s)return;for(const r of e){Ce.has(r)||Ce.set(r,[]);const t=Ce.get(r);-1==(null==t?void 0:t.indexOf(this))&&t.push(this)}const i=Ce.get(s);this.addEventListener("keydown",(t=>{var e;const s=t;if(!["ArrowDown","ArrowUp"].includes(s.key))return;const r="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",o=null==i?void 0:i.filter((t=>{var e;const s=null==(e=t.shadowRoot)?void 0:e.querySelector(r);if(!s)return!1;const i=window.getComputedStyle(s);return"none"!==i.display&&""!==i.display&&"none"!=i.pointerEvents&&"hidden"!==i.visibility&&s.getBoundingClientRect().width>0}));let n=null;if("ArrowDown"==s.key&&o){const t=o.indexOf(this);n=t==o.length-1?o[0]:o[t+1]}else if("ArrowUp"==s.key&&o){const t=o.indexOf(this);n=0==t?o[o.length-1]:o[t-1]}const a=null==(e=null==n?void 0:n.shadowRoot)?void 0:e.querySelector(r);a&&a.focus&&(a.focus(),t.preventDefault(),t.stopPropagation())}))}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);const t=this.getFormPublisher();this._name&&t&&(t[this._name].offAssign(this.onFormValueAssign),t.offInvalidate(this.onFormDataInValidate))}}return Pe([F({type:Boolean,reflect:!0})],e.prototype,"touched",2),Pe([F({type:Boolean})],e.prototype,"error",2),Pe([F({type:Boolean})],e.prototype,"autofocus",2),Pe([F({type:Boolean})],e.prototype,"required",2),Pe([F({type:Boolean})],e.prototype,"forceAutoFill",2),Pe([F({type:Boolean})],e.prototype,"disabled",2),Pe([F({type:String,attribute:"data-aria-label"})],e.prototype,"ariaLabel",2),Pe([F({type:String,attribute:"data-aria-labelledby"})],e.prototype,"ariaLabelledby",2),Pe([F()],e.prototype,"name",1),Pe([F()],e.prototype,"value",1),e};const $e=class{static async queueTaskPromise(){return new Promise((t=>{window.queueMicrotask((()=>t(null)))}))}static async delayPromise(t){return new Promise((e=>{setTimeout(e,t)}))}},Oe=class t{static areEqual(t,e){return t.length===e.length&&t.every(((t,s)=>t===e[s]))}static from2d(t){return{to1D:()=>{let e=[];return t.forEach((t=>e=e.concat(t))),this.from(e)}}}static from(e){return{get:()=>e||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:t=>{if(e.length<1)return!0;const s=(e[0]||{})[t];return e.every((e=>(e||{})[t]==s))}})})}),value:()=>({forKey:s=>t.from(e.map((t=>t[s])))}),copy:()=>({fromKey:t=>({toKey:s=>{e.forEach((e=>{e[s]=Array.isArray(e[t])?[...e[t]]:"object"==typeof e[t]&&null!=e[t]?{...e[t]}:e[t]}))}})})}),map:s=>t.from(e.map(s)),filter:s=>t.from(e.filter(s)),find:t=>e.find(t),some:t=>e.some(t),every:t=>e.every(t),group:()=>({byKey:s=>{const i=[],r=new Map;for(const t of e){const e=t[s];if(!r.has(e)){const t=i.length;r.set(e,t);const o={items:[]};o[s]=e,i.push(o)}i[r.get(e)].items.push(t)}return t.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(e.map((t=>t[s])))];return t.from(i.map((t=>e.find((e=>e[s]==t)))))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>t.from(e.filter((t=>{return s.every((e=t,r=i,t=>e[r]!=t[r]));var e,r})))})})})}}},De=u,Le=i,Ee=s,je=ye,Me=g,Ie=h,Te=l,Ne=Jt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:$e,Arrays:Oe,DataBindObserver:De,Format:Le,HTML:Ee,LocationHandler:je,Objects:Me,PublisherProxy:Ie,PublisherManager:Te,api:Ne};var ze=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,Fe=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Re(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ze(e,s,o),o};const Ue=t=>{class e extends t{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,this._checked=null,this.updateAllChecked=()=>{const t=this.getAttribute("name"),e=this.getCheckAllPublisher(),s=this.getFormPublisher();if((null==e?void 0:e.hasCheckAll.get())&&!this.checksAll()&&e&&s&&t){if(!s[this.name].get().length)return void(e.checkMode="noneChecked");null===this.checked?e.checkMode="someUnchecked":"noneChecked"!=e.checkMode.get()&&null!=e.checkMode.get()||(e.checkMode="someUnchecked");const i=s[t].get(),r=e.values.get();if(r&&r.length){let t=r.length;for(const e of r)-1==i.indexOf(e)&&(t-=1);t==r.length&&(e.checkMode="allChecked"),0==t&&(e.checkMode="noneChecked")}-1==r.indexOf(this.value)&&(this.checked=null)}},this.onChecksAllRequest=t=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),"allChecked"==t&&(this.checked=!0,this.setAttribute("allChecked","")),"noneChecked"==t&&(this.checked=null),"someUnchecked"==t&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(t){if(this.value==t)return;if(this.hasAttribute("value")&&!this.forceAutoFill&&(t=this.getAttribute("value")),this._value==t)return;if(null==t)return;if(this._value=t,!this.value)return;const e=this.getFormPublisher();if(e&&this.name){let s=e[this.name].get();(this.radio||this.unique)&&(this.checked=s==t||null),Array.isArray(s)||(s=[]),-1!=s.indexOf(t)&&(this.checked=!0)}1==this.checked&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(t){if(this.setCheckedValue(t),this.checksAll()){const t=this.getCheckAllPublisher();if(t)if(!0===this.checked)t.checkMode="allChecked";else if(null===this.checked){t.checkMode="noneChecked";const e=this.getFormPublisher();e&&(e[this.name]=[])}}this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;const s=this.getFormPublisher();if(s){const t=s[this.name].get();if((this.unique||this.radio)&&null!==t&&t.toString().length>0)return;s.isFormValid=!1,e.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(t){this._checked!=t&&(this._checked=t,this.updateDataValue(),this.requestUpdate(),setTimeout((()=>this.updateAllChecked()),1))}handleChange(){const t=!0!==this.checked||(!!this.radio||null);this.checked=t;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){const t=this.getFormPublisher();if(!t)return null;let e=t[this.name].get();if(this.radio)return!0===this.checked&&null!=this.value?this.value:e;if(this.unique)return!0===this.checked&&null!=this.value?this.value:null;Array.isArray(e)||(e=[]),e=e.slice(0);const s=e.indexOf(this.value);return!0!==this.checked||-1!==s||this.checksAll()||e.push(this.value),null===this.checked&&-1!==s&&e.splice(s,1),e}setFormValueFromPublisher(t){this.unique||this.radio?this.checked=this.value==t||null:(Array.isArray(t)||(t=[]),this.checksAll()||(this.checked=-1!==t.indexOf(this.value)||null))}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const t=this.formDataProvider,e=this.getAttribute("name");return t&&e?Te.get(t+"/"+e+"/_available_values_"):null}disconnectedCallback(){super.disconnectedCallback();const t=this.getCheckAllPublisher();if(t&&(t.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=t.values.get().slice(0),s=e.indexOf(this.value);-1!=s&&(e.splice(s,1),t.values=e)}setTimeout((()=>this.updateAllChecked()),1)}connectedCallback(){super.connectedCallback();const t=this.getFormPublisher();if(t&&this.name){const e=t[this.name].get();e&&Array.isArray(e)&&-1!==e.indexOf(this.value)&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(this.publisher&&!1===this.publisher.get().checked||setTimeout((()=>this.checked=!0),1))}}return Fe([F()],e.prototype,"value",1),Fe([F()],e.prototype,"forceAutoFill",2),Fe([F({type:Boolean})],e.prototype,"unique",2),Fe([F({type:Boolean})],e.prototype,"radio",2),Fe([F({type:Boolean})],e.prototype,"unCheckOnDisconnect",2),Fe([F()],e.prototype,"checked",1),e},Ve=t=>t??gt,Be=x`
77
+ */const we="important",xe=" !"+we,_e=Rt(class extends Ft{constructor(t){var e;if(super(t),t.type!==Nt||"style"!==t.name||(null==(e=t.strings)?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const i of this.ut)null==e[i]&&(this.ut.delete(i),i.includes("-")?s.removeProperty(i):s[i]=null);for(const i in e){const t=e[i];if(null!=t){this.ut.add(i);const e="string"==typeof t&&t.endsWith(xe);i.includes("-")||e?s.setProperty(i,e?t.slice(0,-11):t,e?we:""):s[i]=t}}return ut}});var ke=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,Pe=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ae(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ke(e,s,o),o};const Ce=new Map,Se=t=>{class e extends t{constructor(...t){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=t=>{this.setValueFromPublisher(t)},this.onFormValueAssign=async t=>{this.setFormValueFromPublisher(t)},this.onFormDataInValidate=()=>{const t=this.getFormPublisher();t&&t.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(t){this.hasAttribute("name")&&!this.forceAutoFill&&(t=this.getAttribute("name")),this._name=t,this.requestUpdate()}validateFormElement(){}updateDataValue(){const t=this.getAttribute("name");if(t){const e=this.getFormPublisher();e&&(e[t]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(e[t].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?l.get(this.formDataProvider):null}getValueForFormPublisher(){return this.value}setValueFromPublisher(t){this.value=t}setFormValueFromPublisher(t){this.value=t}get value(){return this._value}set value(t){null==t&&(t=""),g.isObject(t)&&Object.prototype.hasOwnProperty.call(t,"__value")&&null==t._value&&(t=""),this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}initPublisher(){let t=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&t[this._name].get()?t[this._name].get():this.getAttribute("value");this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign),this._name&&t&&t[this._name].offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&this.publisher[this._name].onAssign(this.onValueAssign),t=this.getFormPublisher(),this._name&&t&&(t[this._name].onAssign(this.onFormValueAssign),t.onInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(t){this.value=t.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const t=this.getAncestorAttributeValue("data-keyboard-nav");if(!t)return;const e=t.split(" "),s=e[0];if(!s)return;for(const r of e){Ce.has(r)||Ce.set(r,[]);const t=Ce.get(r);-1==(null==t?void 0:t.indexOf(this))&&t.push(this)}const i=Ce.get(s);this.addEventListener("keydown",(t=>{var e;const s=t;if(!["ArrowDown","ArrowUp"].includes(s.key))return;const r="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",o=null==i?void 0:i.filter((t=>{var e;const s=null==(e=t.shadowRoot)?void 0:e.querySelector(r);if(!s)return!1;const i=window.getComputedStyle(s);return"none"!==i.display&&""!==i.display&&"none"!=i.pointerEvents&&"hidden"!==i.visibility&&s.getBoundingClientRect().width>0}));let n=null;if("ArrowDown"==s.key&&o){const t=o.indexOf(this);n=t==o.length-1?o[0]:o[t+1]}else if("ArrowUp"==s.key&&o){const t=o.indexOf(this);n=0==t?o[o.length-1]:o[t-1]}const a=null==(e=null==n?void 0:n.shadowRoot)?void 0:e.querySelector(r);a&&a.focus&&(a.focus(),t.preventDefault(),t.stopPropagation())}))}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);const t=this.getFormPublisher();this._name&&t&&(t[this._name].offAssign(this.onFormValueAssign),t.offInvalidate(this.onFormDataInValidate))}}return Pe([F({type:Boolean,reflect:!0})],e.prototype,"touched",2),Pe([F({type:Boolean})],e.prototype,"error",2),Pe([F({type:Boolean})],e.prototype,"autofocus",2),Pe([F({type:Boolean})],e.prototype,"required",2),Pe([F({type:Boolean})],e.prototype,"forceAutoFill",2),Pe([F({type:Boolean})],e.prototype,"disabled",2),Pe([F({type:String,attribute:"data-aria-label"})],e.prototype,"ariaLabel",2),Pe([F({type:String,attribute:"data-aria-labelledby"})],e.prototype,"ariaLabelledby",2),Pe([F()],e.prototype,"name",1),Pe([F()],e.prototype,"value",1),e};var $e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Oe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var De,Le,Ee,je,Me={exports:{}};De=Me,je=[].slice,Le=$e,Ee=function(){var t,e,s,i,r,o,n,a,l,c,h,d,p,u,g;return l=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},n=function(t,e){var s,i,r;for(r=[],s=-1,i=t.length;++s<i;)r=r.concat(e(t[s]));return r},u=function(t,e){var s,i,r;for(r="",s=-1,i=t.length;++s<i;)r+=e(t[s]);return r},p=function(t){return new RegExp(t.toString()+"|").exec("").length-1},h=function(t,e){var s,i,r,o,n;for(o={},s=-1,r=t.length;++s<r;)i=t[s],null!=(n=e[s])&&(null!=o[i]?(Array.isArray(o[i])||(o[i]=[o[i]]),o[i].push(n)):o[i]=n);return o},(t={}).Result=function(t,e){this.value=t,this.rest=e},t.Tagged=function(t,e){this.tag=t,this.value=e},t.tag=function(e,s){return function(i){var r,o;if(null!=(r=s(i)))return o=new t.Tagged(e,r.value),new t.Result(o,r.rest)}},t.regex=function(e){return function(s){var i,r;if(null!=(i=e.exec(s)))return r=i[0],new t.Result(r,s.slice(r.length))}},t.sequence=function(){var e;return e=1<=arguments.length?je.call(arguments,0):[],function(s){var i,r,o,n,a;for(i=-1,r=e.length,a=[],o=s;++i<r;){if(null==(n=(0,e[i])(o)))return;a.push(n.value),o=n.rest}return new t.Result(a,o)}},t.pick=function(){var e,s;return e=arguments[0],s=2<=arguments.length?je.call(arguments,1):[],function(i){var r,o;if(null!=(o=t.sequence.apply(t,s)(i)))return r=o.value,o.value=r[e],o}},t.string=function(e){var s;return s=e.length,function(i){if(i.slice(0,s)===e)return new t.Result(e,i.slice(s))}},t.lazy=function(t){var e;return e=null,function(s){return null==e&&(e=t()),e(s)}},t.baseMany=function(e,s,i,r,o){var n,a,l;for(a=o,l=i?"":[];(null==s||null==s(a))&&null!=(n=e(a));)i?l+=n.value:l.push(n.value),a=n.rest;if(!r||0!==l.length)return new t.Result(l,a)},t.many1=function(e){return function(s){return t.baseMany(e,null,!1,!0,s)}},t.concatMany1Till=function(e,s){return function(i){return t.baseMany(e,s,!0,!0,i)}},t.firstChoice=function(){var t;return t=1<=arguments.length?je.call(arguments,0):[],function(e){var s,i,r;for(s=-1,i=t.length;++s<i;)if(null!=(r=(0,t[s])(e)))return r}},d=function(e){var s;return(s={}).wildcard=t.tag("wildcard",t.string(e.wildcardChar)),s.optional=t.tag("optional",t.pick(1,t.string(e.optionalSegmentStartChar),t.lazy((function(){return s.pattern})),t.string(e.optionalSegmentEndChar))),s.name=t.regex(new RegExp("^["+e.segmentNameCharset+"]+")),s.named=t.tag("named",t.pick(1,t.string(e.segmentNameStartChar),t.lazy((function(){return s.name})))),s.escapedChar=t.pick(1,t.string(e.escapeChar),t.regex(/^./)),s.static=t.tag("static",t.concatMany1Till(t.firstChoice(t.lazy((function(){return s.escapedChar})),t.regex(/^./)),t.firstChoice(t.string(e.segmentNameStartChar),t.string(e.optionalSegmentStartChar),t.string(e.optionalSegmentEndChar),s.wildcard))),s.token=t.lazy((function(){return t.firstChoice(s.wildcard,s.optional,s.named,s.static)})),s.pattern=t.many1(t.lazy((function(){return s.token}))),s},a={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},o=function(t,e){if(Array.isArray(t))return u(t,(function(t){return o(t,e)}));switch(t.tag){case"wildcard":return"(.*?)";case"named":return"(["+e+"]+)";case"static":return l(t.value);case"optional":return"(?:"+o(t.value,e)+")?"}},r=function(t,e){return null==e&&(e=a.segmentValueCharset),"^"+o(t,e)+"$"},i=function(t){if(Array.isArray(t))return n(t,i);switch(t.tag){case"wildcard":return["_"];case"named":return[t.value];case"static":return[];case"optional":return i(t.value)}},c=function(t,e,s,i){var r,o,n;if(null==i&&(i=!1),null!=(n=t[e])){if(!((r=s[e]||0)>(Array.isArray(n)?n.length-1:0)))return o=Array.isArray(n)?n[r]:n,i&&(s[e]=r+1),o;if(i)throw new Error("too few values provided for key `"+e+"`")}else if(i)throw new Error("no values provided for key `"+e+"`")},s=function(t,e,i){var r,o;if(Array.isArray(t)){for(r=-1,o=t.length;++r<o;)if(s(t[r],e,i))return!0;return!1}switch(t.tag){case"wildcard":return null!=c(e,"_",i,!1);case"named":return null!=c(e,t.value,i,!1);case"static":return!1;case"optional":return s(t.value,e,i)}},g=function(t,e,i){if(Array.isArray(t))return u(t,(function(t){return g(t,e,i)}));switch(t.tag){case"wildcard":return c(e,"_",i,!0);case"named":return c(e,t.value,i,!0);case"static":return t.value;case"optional":return s(t.value,e,i)?g(t.value,e,i):""}},(e=function(t,s){var o,n,l;if(t instanceof e)return this.isRegex=t.isRegex,this.regex=t.regex,this.ast=t.ast,void(this.names=t.names);if(this.isRegex=t instanceof RegExp,"string"!=typeof t&&!this.isRegex)throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=t,null!=s){if(!Array.isArray(s))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(o=p(this.regex),s.length!==o)throw new Error("regex contains "+o+" groups but array of group names contains "+s.length);this.names=s}}else{if(""===t)throw new Error("argument must not be the empty string");if(t.replace(/\s+/g,"")!==t)throw new Error("argument must not contain whitespace");if(n={escapeChar:(null!=s?s.escapeChar:void 0)||a.escapeChar,segmentNameStartChar:(null!=s?s.segmentNameStartChar:void 0)||a.segmentNameStartChar,segmentNameCharset:(null!=s?s.segmentNameCharset:void 0)||a.segmentNameCharset,segmentValueCharset:(null!=s?s.segmentValueCharset:void 0)||a.segmentValueCharset,optionalSegmentStartChar:(null!=s?s.optionalSegmentStartChar:void 0)||a.optionalSegmentStartChar,optionalSegmentEndChar:(null!=s?s.optionalSegmentEndChar:void 0)||a.optionalSegmentEndChar,wildcardChar:(null!=s?s.wildcardChar:void 0)||a.wildcardChar},null==(l=d(n).pattern(t)))throw new Error("couldn't parse pattern");if(""!==l.rest)throw new Error("could only partially parse pattern");this.ast=l.value,this.regex=new RegExp(r(this.ast,n.segmentValueCharset)),this.names=i(this.ast)}}).prototype.match=function(t){var e,s;return null==(s=this.regex.exec(t))?null:(e=s.slice(1),this.names?h(this.names,e):e)},e.prototype.stringify=function(t){if(null==t&&(t={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(t!==Object(t))throw new Error("argument must be an object or undefined");return g(this.ast,t,{})},e.escapeForRegex=l,e.concatMap=n,e.stringConcatMap=u,e.regexGroupCount=p,e.keysAndValuesToObject=h,e.P=t,e.newParser=d,e.defaultOptions=a,e.astNodeToRegexString=r,e.astNodeToNames=i,e.getParam=c,e.astNodeContainsSegmentsForProvidedParams=s,e.stringify=g,e},null!==Me.exports?De.exports=Ee():Le.UrlPattern=Ee();const Ie=Oe(Me.exports),Te=class{static async queueTaskPromise(){return new Promise((t=>{window.queueMicrotask((()=>t(null)))}))}static async delayPromise(t){return new Promise((e=>{setTimeout(e,t)}))}},Ne=class t{static areEqual(t,e){return t.length===e.length&&t.every(((t,s)=>t===e[s]))}static from2d(t){return{to1D:()=>{let e=[];return t.forEach((t=>e=e.concat(t))),this.from(e)}}}static from(e){return{get:()=>e||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:t=>{if(e.length<1)return!0;const s=(e[0]||{})[t];return e.every((e=>(e||{})[t]==s))}})})}),value:()=>({forKey:s=>t.from(e.map((t=>t[s])))}),copy:()=>({fromKey:t=>({toKey:s=>{e.forEach((e=>{e[s]=Array.isArray(e[t])?[...e[t]]:"object"==typeof e[t]&&null!=e[t]?{...e[t]}:e[t]}))}})})}),map:s=>t.from(e.map(s)),filter:s=>t.from(e.filter(s)),find:t=>e.find(t),some:t=>e.some(t),every:t=>e.every(t),group:()=>({byKey:s=>{const i=[],r=new Map;for(const t of e){const e=t[s];if(!r.has(e)){const t=i.length;r.set(e,t);const o={items:[]};o[s]=e,i.push(o)}i[r.get(e)].items.push(t)}return t.from(i)}}),without:()=>({duplicates:()=>({forKey:s=>{const i=[...new Set(e.map((t=>t[s])))];return t.from(i.map((t=>e.find((e=>e[s]==t)))))}}),itemsIn:s=>({havingSameValue:()=>({forKey:i=>t.from(e.filter((t=>{return s.every((e=t,r=i,t=>e[r]!=t[r]));var e,r})))})})})}}},ze=u,Re=i,Fe=s,Ue=ye,Ve=g,Be=h,He=l,qe=Jt,We=Ie;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Te,Arrays:Ne,DataBindObserver:ze,Format:Re,HTML:Fe,LocationHandler:Ue,Objects:Ve,PublisherProxy:Be,PublisherManager:He,api:qe,URLPattern:We};var Ke=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Ye=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ze(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ke(e,s,o),o};const Ge=t=>{class e extends t{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this.unCheckOnDisconnect=!1,this._checked=null,this.updateAllChecked=()=>{const t=this.getAttribute("name"),e=this.getCheckAllPublisher(),s=this.getFormPublisher();if((null==e?void 0:e.hasCheckAll.get())&&!this.checksAll()&&e&&s&&t){if(!s[this.name].get().length)return void(e.checkMode="noneChecked");null===this.checked?e.checkMode="someUnchecked":"noneChecked"!=e.checkMode.get()&&null!=e.checkMode.get()||(e.checkMode="someUnchecked");const i=s[t].get(),r=e.values.get();if(r&&r.length){let t=r.length;for(const e of r)-1==i.indexOf(e)&&(t-=1);t==r.length&&(e.checkMode="allChecked"),0==t&&(e.checkMode="noneChecked")}-1==r.indexOf(this.value)&&(this.checked=null)}},this.onChecksAllRequest=t=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),"allChecked"==t&&(this.checked=!0,this.setAttribute("allChecked","")),"noneChecked"==t&&(this.checked=null),"someUnchecked"==t&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(t){if(this.value==t)return;if(this.hasAttribute("value")&&!this.forceAutoFill&&(t=this.getAttribute("value")),this._value==t)return;if(null==t)return;if(this._value=t,!this.value)return;const e=this.getFormPublisher();if(e&&this.name){let s=e[this.name].get();(this.radio||this.unique)&&(this.checked=s==t||null),Array.isArray(s)||(s=[]),-1!=s.indexOf(t)&&(this.checked=!0)}1==this.checked&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(t){if(this.setCheckedValue(t),this.checksAll()){const t=this.getCheckAllPublisher();if(t)if(!0===this.checked)t.checkMode="allChecked";else if(null===this.checked){t.checkMode="noneChecked";const e=this.getFormPublisher();e&&(e[this.name]=[])}}this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;const s=this.getFormPublisher();if(s){const t=s[this.name].get();if((this.unique||this.radio)&&null!==t&&t.toString().length>0)return;s.isFormValid=!1,e.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(t){this._checked!=t&&(this._checked=t,this.updateDataValue(),this.requestUpdate(),setTimeout((()=>this.updateAllChecked()),1))}handleChange(){const t=!0!==this.checked||(!!this.radio||null);this.checked=t;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){const t=this.getFormPublisher();if(!t)return null;let e=t[this.name].get();if(this.radio)return!0===this.checked&&null!=this.value?this.value:e;if(this.unique)return!0===this.checked&&null!=this.value?this.value:null;Array.isArray(e)||(e=[]),e=e.slice(0);const s=e.indexOf(this.value);return!0!==this.checked||-1!==s||this.checksAll()||e.push(this.value),null===this.checked&&-1!==s&&e.splice(s,1),e}setFormValueFromPublisher(t){this.unique||this.radio?this.checked=this.value==t||null:(Array.isArray(t)||(t=[]),this.checksAll()||(this.checked=-1!==t.indexOf(this.value)||null))}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const t=this.formDataProvider,e=this.getAttribute("name");return t&&e?He.get(t+"/"+e+"/_available_values_"):null}disconnectedCallback(){super.disconnectedCallback();const t=this.getCheckAllPublisher();if(t&&(t.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=t.values.get().slice(0),s=e.indexOf(this.value);-1!=s&&(e.splice(s,1),t.values=e)}setTimeout((()=>this.updateAllChecked()),1)}connectedCallback(){super.connectedCallback();const t=this.getFormPublisher();if(t&&this.name){const e=t[this.name].get();e&&Array.isArray(e)&&-1!==e.indexOf(this.value)&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&(e.hasCheckAll=!0),e.values.get()||(e.values=[]),this.checksAll()||(e.values=[...e.values.get(),this.value])),this.hasAttribute("checked")&&(this.publisher&&!1===this.publisher.get().checked||setTimeout((()=>this.checked=!0),1))}}return Ye([F()],e.prototype,"value",1),Ye([F()],e.prototype,"forceAutoFill",2),Ye([F({type:Boolean})],e.prototype,"unique",2),Ye([F({type:Boolean})],e.prototype,"radio",2),Ye([F({type:Boolean})],e.prototype,"unCheckOnDisconnect",2),Ye([F()],e.prototype,"checked",1),e},Qe=t=>t??gt,Je=x`
78
78
  /*SIZES*/
79
79
  :host {
80
80
  --sc-fs: 1rem;
@@ -105,15 +105,15 @@ const z={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:I},R=(t=z,e,
105
105
  * @license
106
106
  * Copyright 2018 Google LLC
107
107
  * SPDX-License-Identifier: BSD-3-Clause
108
- */var He=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,We=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?qe(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&He(e,s,o),o};let Ke=class extends(Ue(Se(he(Zt)))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(t){this._href=t,this.href&&0!=this.href.indexOf("http")?ye.onChange(this):ye.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(t){t.preventDefault(),ye.changeFromComponent(this)}handleChange(t){if(("click"!=(null==t?void 0:t.type)||!this.autoRepeat)&&(super.handleChange(),(this.pushState||null!==this.goBack)&&(null==t||t.preventDefault(),null==t||t.stopPropagation(),ye.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),e=t?Te.get(t):this.getFormPublisher();e&&e.set({})}}handleRepeatStart(t){this.autoRepeat&&(this.handleChange(t),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){this.isRepeating&&(this.hasAttribute("disabled")?this.isRepeating=!1:(window.requestAnimationFrame(this.repeat.bind(this)),Date.now()-this.pointerDownTime<500||Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now())))}connectedCallback(){super.connectedCallback()}setCheckedValue(t){if(this.name){if(t?this.setAttribute("active","true"):this.removeAttribute("active"),t==this._checked)return;super.setCheckedValue(t)}}disconnectedCallback(){ye.offChange(this),super.disconnectedCallback()}willUpdate(t){(t.has("href")||t.has("autoActive"))&&ye.updateComponentActiveState(this),t.has("location")&&ye.updateComponentActiveState(this)}render(){const t={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},e=pt`
108
+ */var Xe=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,es=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ts(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Xe(e,s,o),o};let ss=class extends(Ge(Se(he(Zt)))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(t){this._href=t,this.href&&0!=this.href.indexOf("http")?ye.onChange(this):ye.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(t){t.preventDefault(),ye.changeFromComponent(this)}handleChange(t){if(("click"!=(null==t?void 0:t.type)||!this.autoRepeat)&&(super.handleChange(),(this.pushState||null!==this.goBack)&&(null==t||t.preventDefault(),null==t||t.stopPropagation(),ye.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),e=t?He.get(t):this.getFormPublisher();e&&e.set({})}}handleRepeatStart(t){this.autoRepeat&&(this.handleChange(t),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){this.isRepeating&&(this.hasAttribute("disabled")?this.isRepeating=!1:(window.requestAnimationFrame(this.repeat.bind(this)),Date.now()-this.pointerDownTime<500||Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now())))}connectedCallback(){super.connectedCallback()}setCheckedValue(t){if(this.name){if(t?this.setAttribute("active","true"):this.removeAttribute("active"),t==this._checked)return;super.setCheckedValue(t)}}disconnectedCallback(){ye.offChange(this),super.disconnectedCallback()}willUpdate(t){(t.has("href")||t.has("autoActive"))&&ye.updateComponentActiveState(this),t.has("location")&&ye.updateComponentActiveState(this)}render(){const t={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},e=pt`
109
109
  <button
110
110
  part="button"
111
111
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
112
112
  style=${_e(t)}
113
- aria-controls=${Ve(this.ariaControls)}
114
- aria-expanded=${Ve(this.sonicAriaExpanded)}
115
- aria-label=${Ve(this.ariaLabel)}
116
- aria-labelledby=${Ve(this.ariaLabelledby)}
113
+ aria-controls=${Qe(this.ariaControls)}
114
+ aria-expanded=${Qe(this.sonicAriaExpanded)}
115
+ aria-label=${Qe(this.ariaLabel)}
116
+ aria-labelledby=${Qe(this.ariaLabelledby)}
117
117
  @click=${this.handleChange}
118
118
  @pointerdown=${this.handleRepeatStart}
119
119
  >
@@ -124,13 +124,13 @@ const z={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:I},R=(t=z,e,
124
124
  </button>
125
125
  `;return this.href?pt`<a
126
126
  href="${this.href}"
127
- download=${Ve(this.download)}
128
- target=${Ve(this.target)}
129
- aria-label=${Ve(this.ariaLabel)}
130
- aria-labelledby=${Ve(this.ariaLabelledby)}
127
+ download=${Qe(this.download)}
128
+ target=${Qe(this.target)}
129
+ aria-label=${Qe(this.ariaLabel)}
130
+ aria-labelledby=${Qe(this.ariaLabelledby)}
131
131
  @click=${this.pushState||null!==this.goBack?this.handleNavigation:null}
132
132
  >${e}</a
133
- >`:pt`${e}`}onSlotChange(){var t,e;this.hasPrefix=!!(null==(t=this.prefixes)?void 0:t.length),this.hasSuffix=!!(null==(e=this.suffixes)?void 0:e.length)}};Ke.styles=[Be,x`
133
+ >`:pt`${e}`}onSlotChange(){var t,e;this.hasPrefix=!!(null==(t=this.prefixes)?void 0:t.length),this.hasSuffix=!!(null==(e=this.suffixes)?void 0:e.length)}};ss.styles=[Je,x`
134
134
  * {
135
135
  box-sizing: border-box;
136
136
  }
@@ -473,13 +473,13 @@ const z={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:I},R=(t=z,e,
473
473
  transform: translate(-50%, -50%) rotate(359deg);
474
474
  }
475
475
  }
476
- `],We([F({type:String,reflect:!0})],Ke.prototype,"type",2),We([F({type:String,reflect:!0})],Ke.prototype,"variant",2),We([F({type:String,reflect:!0})],Ke.prototype,"size",2),We([F({type:String,reflect:!0})],Ke.prototype,"shape",2),We([F({type:String})],Ke.prototype,"direction",2),We([F({type:String,reflect:!0})],Ke.prototype,"alignItems",2),We([F({type:String})],Ke.prototype,"justify",2),We([F({type:String,reflect:!0})],Ke.prototype,"align",2),We([F({type:String})],Ke.prototype,"minWidth",2),We([F({type:Boolean,reflect:!0})],Ke.prototype,"icon",2),We([F({type:String})],Ke.prototype,"download",2),We([F({type:String})],Ke.prototype,"autoActive",2),We([F({type:Boolean,reflect:!0})],Ke.prototype,"loading",2),We([U()],Ke.prototype,"hasPrefix",2),We([U()],Ke.prototype,"hasSuffix",2),We([H({flatten:!0,slot:"prefix"})],Ke.prototype,"prefixes",2),We([H({flatten:!0,slot:"suffix"})],Ke.prototype,"suffixes",2),We([F({type:String})],Ke.prototype,"target",2),We([F({type:String})],Ke.prototype,"href",1),We([F({type:String})],Ke.prototype,"goBack",2),We([F({type:Boolean})],Ke.prototype,"pushState",2),We([F({type:Boolean,reflect:!0})],Ke.prototype,"active",2),We([F({type:Boolean,reflect:!0})],Ke.prototype,"autoRepeat",2),We([F({type:String,attribute:"data-aria-controls"})],Ke.prototype,"ariaControls",2),We([F({type:Boolean,attribute:"data-aria-expanded"})],Ke.prototype,"sonicAriaExpanded",2),We([U()],Ke.prototype,"location",2),Ke=We([b("sonic-button")],Ke);
476
+ `],es([F({type:String,reflect:!0})],ss.prototype,"type",2),es([F({type:String,reflect:!0})],ss.prototype,"variant",2),es([F({type:String,reflect:!0})],ss.prototype,"size",2),es([F({type:String,reflect:!0})],ss.prototype,"shape",2),es([F({type:String})],ss.prototype,"direction",2),es([F({type:String,reflect:!0})],ss.prototype,"alignItems",2),es([F({type:String})],ss.prototype,"justify",2),es([F({type:String,reflect:!0})],ss.prototype,"align",2),es([F({type:String})],ss.prototype,"minWidth",2),es([F({type:Boolean,reflect:!0})],ss.prototype,"icon",2),es([F({type:String})],ss.prototype,"download",2),es([F({type:String})],ss.prototype,"autoActive",2),es([F({type:Boolean,reflect:!0})],ss.prototype,"loading",2),es([U()],ss.prototype,"hasPrefix",2),es([U()],ss.prototype,"hasSuffix",2),es([H({flatten:!0,slot:"prefix"})],ss.prototype,"prefixes",2),es([H({flatten:!0,slot:"suffix"})],ss.prototype,"suffixes",2),es([F({type:String})],ss.prototype,"target",2),es([F({type:String})],ss.prototype,"href",1),es([F({type:String})],ss.prototype,"goBack",2),es([F({type:Boolean})],ss.prototype,"pushState",2),es([F({type:Boolean,reflect:!0})],ss.prototype,"active",2),es([F({type:Boolean,reflect:!0})],ss.prototype,"autoRepeat",2),es([F({type:String,attribute:"data-aria-controls"})],ss.prototype,"ariaControls",2),es([F({type:Boolean,attribute:"data-aria-expanded"})],ss.prototype,"sonicAriaExpanded",2),es([U()],ss.prototype,"location",2),ss=es([b("sonic-button")],ss);
477
477
  /**
478
478
  * @license
479
479
  * Copyright 2017 Google LLC
480
480
  * SPDX-License-Identifier: BSD-3-Clause
481
481
  */
482
- const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},Ye=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error("repeat() can only be used in text expressions")}ht(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const r=[],o=[];let n=0;for(const a of t)r[n]=i?i(a,n):n,o[n]=s(a,n),n++;return{values:o,keys:r}}render(t,e,s){return this.ht(t,e,s).values}update(t,[e,s,i]){const r=t._$AH,{values:o,keys:n}=this.ht(e,s,i);if(!Array.isArray(r))return this.dt=n,o;const a=this.dt??(this.dt=[]),l=[];let c,h,d=0,p=r.length-1,u=0,g=o.length-1;for(;d<=p&&u<=g;)if(null===r[d])d++;else if(null===r[p])p--;else if(a[d]===n[u])l[u]=Mt(r[d],o[u]),d++,u++;else if(a[p]===n[g])l[g]=Mt(r[p],o[g]),p--,g--;else if(a[d]===n[g])l[g]=Mt(r[d],o[g]),jt(t,l[g+1],r[d]),d++,g--;else if(a[p]===n[u])l[u]=Mt(r[p],o[u]),jt(t,r[d],r[p]),p--,u++;else if(void 0===c&&(c=Ze(n,u,g),h=Ze(a,d,p)),c.has(a[d]))if(c.has(a[p])){const e=h.get(n[u]),s=void 0!==e?r[e]:null;if(null===s){const e=jt(t,r[d]);Mt(e,o[u]),l[u]=e}else l[u]=Mt(s,o[u]),jt(t,r[d],s),r[e]=null;u++}else Tt(r[p]),p--;else Tt(r[d]),d++;for(;u<=g;){const e=jt(t,l[g+1]);Mt(e,o[u]),l[u++]=e}for(;d<=p;){const t=r[d++];null!==t&&Tt(t)}return this.dt=n,((t,e=It)=>{t._$AH=e})(t,l),ut}}),Ge=new WeakMap;let Qe=0;const Je=new Map,Xe=new WeakSet,ts=()=>new Promise((t=>requestAnimationFrame(t))),es=[{opacity:0}],ss=[{opacity:0},{opacity:1}],is=(t,e)=>{const s=t-e;return 0===s?void 0:s},rs=(t,e)=>{const s=t/e;return 1===s?void 0:s},os={left:(t,e)=>{const s=is(t,e);return{value:s,transform:null==s||isNaN(s)?void 0:`translateX(${s}px)`}},top:(t,e)=>{const s=is(t,e);return{value:s,transform:null==s||isNaN(s)?void 0:`translateY(${s}px)`}},width:(t,e)=>{let s;0===e&&(e=1,s={width:"1px"});const i=rs(t,e);return{value:i,overrideFrom:s,transform:null==i||isNaN(i)?void 0:`scaleX(${i})`}},height:(t,e)=>{let s;0===e&&(e=1,s={height:"1px"});const i=rs(t,e);return{value:i,overrideFrom:s,transform:null==i||isNaN(i)?void 0:`scaleY(${i})`}}},ns={duration:333,easing:"ease-in-out"},as=["left","top","width","height","opacity","color","background"],ls=new WeakMap;const cs=Rt(class extends Kt{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===zt)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;null==(t=this.resolveFinished)||t.call(this),this.finished=new Promise((t=>{this.h=t}))}async resolveFinished(){var t;null==(t=this.h)||t.call(this),this.h=void 0}render(t){return gt}getController(){return Ge.get(this.l)}isDisabled(){var t;return this.options.disabled||(null==(t=this.getController())?void 0:t.disabled)}update(t,[e]){var s;const i=void 0===this.l;return i&&(this.l=null==(s=t.options)?void 0:s.host,this.l.addController(this),this.element=t.element,ls.set(this.element,this)),this.optionsOrCallback=e,(i||"function"!=typeof e)&&this.u(e),this.render(e)}u(t){t=t??{};const e=this.getController();void 0!==e&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=as),this.options=t}p(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((i=>{const r=e[i]??(os[i]?void 0:s[i]),o=Number(r);t[i]=isNaN(o)?r+"":o})),t}m(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((t,e)=>{if(Array.isArray(t)){if(Array.isArray(e)&&e.length===t.length&&t.every(((t,s)=>t===e[s])))return!1}else if(e===t)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await ts;const e=this._(),s=this.A(this.options.keyframeOptions,e),i=this.p();if(void 0!==this.g){const{from:s,to:r}=this.O(this.g,i,e);this.log("measured",[this.g,i,s,r]),t=this.calculateKeyframes(s,r)}else{const s=Je.get(this.options.inId);if(s){Je.delete(this.options.inId);const{from:r,to:o}=this.O(s,i,e);t=this.calculateKeyframes(r,o),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Qe++,t.forEach((t=>t.zIndex=Qe))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){void 0!==this.j&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,e;this.j=this.element.getAttribute("style"),null==(t=this.webAnimation)||t.commitStyles(),null==(e=this.webAnimation)||e.cancel()}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&Je.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await ts(),null==(t=this.t)?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.p();this.log("stabilizing out");const e=this.g.left-t.left,s=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===e&&0===s||(this.element.style.position="relative"),0!==e&&(this.element.style.left=e+"px"),0!==s&&(this.element.style.top=s+"px")}}const e=this.A(this.options.keyframeOptions);await this.animate(this.options.out,e),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;null==(e=(t=this.options).onStart)||e.call(t,this)}didFinish(t){var e,s;t&&(null==(s=(e=this.options).onComplete)||s.call(e,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let e=this.element.parentNode;e;e=null==e?void 0:e.parentNode){const s=ls.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Xe.has(this.l);return t||this.l.updateComplete.then((()=>{Xe.add(this.l)})),t}A(t,e=this._()){const s={...ns};return e.forEach((t=>Object.assign(s,t.options.keyframeOptions))),Object.assign(s,t),s}O(t,e,s){t={...t},e={...e};const i=s.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let r=1,o=1;return void 0!==i&&(i.forEach((t=>{t.width&&(r/=t.width),t.height&&(o/=t.height)})),void 0!==t.left&&void 0!==e.left&&(t.left=r*t.left,e.left=r*e.left),void 0!==t.top&&void 0!==e.top&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const i={},r={};let o=!1;const n={};for(const a in e){const s=t[a],l=e[a];if(a in os){const t=os[a];if(void 0===s||void 0===l)continue;const e=t(s,l);void 0!==e.transform&&(n[a]=e.value,o=!0,i.transform=`${i.transform??""} ${e.transform}`,void 0!==e.overrideFrom&&Object.assign(i,e.overrideFrom))}else s!==l&&void 0!==s&&void 0!==l&&(o=!0,i[a]=s,r[a]=l)}return i.transformOrigin=r.transformOrigin=s?"center center":"top left",this.animatingProperties=n,o?[i,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();null==r||r.add(this);try{await this.webAnimation.finished}catch(i){}null==r||r.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return"running"===(null==(t=this.webAnimation)?void 0:t.playState)||(null==(e=this.webAnimation)?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}),hs={core:{cancel:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"check-circled-outline":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7 12.5L10 15.5L17 8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',check:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5 13L9 17L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"emoji-puzzled":'<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" ><path d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11.5 15.5s1.5-2 4.5-2 4.5 2 4.5 2M3 4c0-2.754 4-2.754 4 0 0 1.967-2 1.64-2 4M5 11.01l.01-.011" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.5 9a.5.5 0 110-1 .5.5 0 010 1zM10.5 9a.5.5 0 110-1 .5.5 0 010 1z" fill="#000" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',"info-empty":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 11.5V16.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 7.51L12.01 7.49889" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',loader:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',"minus-small":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">\n <path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6" />\n</svg>\n',"more-horiz":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18 12.5C18.2761 12.5 18.5 12.2761 18.5 12C18.5 11.7239 18.2761 11.5 18 11.5C17.7239 11.5 17.5 11.7239 17.5 12C17.5 12.2761 17.7239 12.5 18 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M6 12.5C6.27614 12.5 6.5 12.2761 6.5 12C6.5 11.7239 6.27614 11.5 6 11.5C5.72386 11.5 5.5 11.7239 5.5 12C5.5 12.2761 5.72386 12.5 6 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"more-vert":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 18.5C12.2761 18.5 12.5 18.2761 12.5 18C12.5 17.7239 12.2761 17.5 12 17.5C11.7239 17.5 11.5 17.7239 11.5 18C11.5 18.2761 11.7239 18.5 12 18.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 6.5C12.2761 6.5 12.5 6.27614 12.5 6C12.5 5.72386 12.2761 5.5 12 5.5C11.7239 5.5 11.5 5.72386 11.5 6C11.5 6.27614 11.7239 6.5 12 6.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"nav-arrow-down":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"warning-circled-outline":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 7L12 13" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}},ds=new Map,ps={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let us=!1;const gs=sessionStorage.getItem("sonicIconsCache"),bs=gs?JSON.parse(gs):{icons:{},names:[]};class ms{}ms.default={get:async t=>{const e=t.library;if(!t.name)return"";const s=t.name,i=hs;var r,o;if("custom"==e&&(us||(us=!0,ps.custom.url=(null==(r=document.querySelector("[customIconLibraryPath]"))?void 0:r.getAttribute("customIconLibraryPath"))||"",ps.custom.defaultPrefix=(null==(o=document.querySelector("[customIconDefaultPrefix]"))?void 0:o.getAttribute("customIconDefaultPrefix"))||"")),e&&e in ps){const r=ps[e],o=t.prefix||r.defaultPrefix||"",n=i[e]||{};i[e]=n;const a=o+"-"+s;if(n[a])return te(n[a]);const l=(r.url||"").replace("$prefix",o).replace("$name",s);if(bs.icons[l])return n[a]=bs.icons[l],te(bs.icons[l]);if(!ds.has(l)){const t=new Promise((async t=>{const e=await fetch(l);if(e.ok)try{t(await e.text())}catch(s){t(null)}else t(`<b title="Erreur ${e.status}">😶</b>`)}));ds.set(l,t)}const c=await ds.get(l);if(ds.delete(l),n[a]=c||"",bs.icons[l]=c||"",bs.names.length>100){const t=bs.names.shift();delete bs.icons[t]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(bs)),te(c)}return te(i.core[t.name]||"")}};var fs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,ys=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?vs(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&fs(e,s,o),o};let ws=class extends Zt{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await ms.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(t){(t.has("name")||t.has("prefix")||t.has("library"))&&this.updateIcon(),super.willUpdate(t)}render(){return this.iconText?this.iconText:gt}};ws.styles=x`
482
+ const is=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},rs=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error("repeat() can only be used in text expressions")}ht(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const r=[],o=[];let n=0;for(const a of t)r[n]=i?i(a,n):n,o[n]=s(a,n),n++;return{values:o,keys:r}}render(t,e,s){return this.ht(t,e,s).values}update(t,[e,s,i]){const r=t._$AH,{values:o,keys:n}=this.ht(e,s,i);if(!Array.isArray(r))return this.dt=n,o;const a=this.dt??(this.dt=[]),l=[];let c,h,d=0,p=r.length-1,u=0,g=o.length-1;for(;d<=p&&u<=g;)if(null===r[d])d++;else if(null===r[p])p--;else if(a[d]===n[u])l[u]=Mt(r[d],o[u]),d++,u++;else if(a[p]===n[g])l[g]=Mt(r[p],o[g]),p--,g--;else if(a[d]===n[g])l[g]=Mt(r[d],o[g]),jt(t,l[g+1],r[d]),d++,g--;else if(a[p]===n[u])l[u]=Mt(r[p],o[u]),jt(t,r[d],r[p]),p--,u++;else if(void 0===c&&(c=is(n,u,g),h=is(a,d,p)),c.has(a[d]))if(c.has(a[p])){const e=h.get(n[u]),s=void 0!==e?r[e]:null;if(null===s){const e=jt(t,r[d]);Mt(e,o[u]),l[u]=e}else l[u]=Mt(s,o[u]),jt(t,r[d],s),r[e]=null;u++}else Tt(r[p]),p--;else Tt(r[d]),d++;for(;u<=g;){const e=jt(t,l[g+1]);Mt(e,o[u]),l[u++]=e}for(;d<=p;){const t=r[d++];null!==t&&Tt(t)}return this.dt=n,((t,e=It)=>{t._$AH=e})(t,l),ut}}),os=new WeakMap;let ns=0;const as=new Map,ls=new WeakSet,cs=()=>new Promise((t=>requestAnimationFrame(t))),hs=[{opacity:0}],ds=[{opacity:0},{opacity:1}],ps=(t,e)=>{const s=t-e;return 0===s?void 0:s},us=(t,e)=>{const s=t/e;return 1===s?void 0:s},gs={left:(t,e)=>{const s=ps(t,e);return{value:s,transform:null==s||isNaN(s)?void 0:`translateX(${s}px)`}},top:(t,e)=>{const s=ps(t,e);return{value:s,transform:null==s||isNaN(s)?void 0:`translateY(${s}px)`}},width:(t,e)=>{let s;0===e&&(e=1,s={width:"1px"});const i=us(t,e);return{value:i,overrideFrom:s,transform:null==i||isNaN(i)?void 0:`scaleX(${i})`}},height:(t,e)=>{let s;0===e&&(e=1,s={height:"1px"});const i=us(t,e);return{value:i,overrideFrom:s,transform:null==i||isNaN(i)?void 0:`scaleY(${i})`}}},bs={duration:333,easing:"ease-in-out"},ms=["left","top","width","height","opacity","color","background"],fs=new WeakMap;const vs=Rt(class extends Kt{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===zt)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;null==(t=this.resolveFinished)||t.call(this),this.finished=new Promise((t=>{this.h=t}))}async resolveFinished(){var t;null==(t=this.h)||t.call(this),this.h=void 0}render(t){return gt}getController(){return os.get(this.l)}isDisabled(){var t;return this.options.disabled||(null==(t=this.getController())?void 0:t.disabled)}update(t,[e]){var s;const i=void 0===this.l;return i&&(this.l=null==(s=t.options)?void 0:s.host,this.l.addController(this),this.element=t.element,fs.set(this.element,this)),this.optionsOrCallback=e,(i||"function"!=typeof e)&&this.u(e),this.render(e)}u(t){t=t??{};const e=this.getController();void 0!==e&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=ms),this.options=t}p(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((i=>{const r=e[i]??(gs[i]?void 0:s[i]),o=Number(r);t[i]=isNaN(o)?r+"":o})),t}m(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((t,e)=>{if(Array.isArray(t)){if(Array.isArray(e)&&e.length===t.length&&t.every(((t,s)=>t===e[s])))return!1}else if(e===t)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await cs;const e=this._(),s=this.A(this.options.keyframeOptions,e),i=this.p();if(void 0!==this.g){const{from:s,to:r}=this.O(this.g,i,e);this.log("measured",[this.g,i,s,r]),t=this.calculateKeyframes(s,r)}else{const s=as.get(this.options.inId);if(s){as.delete(this.options.inId);const{from:r,to:o}=this.O(s,i,e);t=this.calculateKeyframes(r,o),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,ns++,t.forEach((t=>t.zIndex=ns))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){void 0!==this.j&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,e;this.j=this.element.getAttribute("style"),null==(t=this.webAnimation)||t.commitStyles(),null==(e=this.webAnimation)||e.cancel()}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&as.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await cs(),null==(t=this.t)?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.p();this.log("stabilizing out");const e=this.g.left-t.left,s=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===e&&0===s||(this.element.style.position="relative"),0!==e&&(this.element.style.left=e+"px"),0!==s&&(this.element.style.top=s+"px")}}const e=this.A(this.options.keyframeOptions);await this.animate(this.options.out,e),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;null==(e=(t=this.options).onStart)||e.call(t,this)}didFinish(t){var e,s;t&&(null==(s=(e=this.options).onComplete)||s.call(e,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let e=this.element.parentNode;e;e=null==e?void 0:e.parentNode){const s=fs.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=ls.has(this.l);return t||this.l.updateComplete.then((()=>{ls.add(this.l)})),t}A(t,e=this._()){const s={...bs};return e.forEach((t=>Object.assign(s,t.options.keyframeOptions))),Object.assign(s,t),s}O(t,e,s){t={...t},e={...e};const i=s.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let r=1,o=1;return void 0!==i&&(i.forEach((t=>{t.width&&(r/=t.width),t.height&&(o/=t.height)})),void 0!==t.left&&void 0!==e.left&&(t.left=r*t.left,e.left=r*e.left),void 0!==t.top&&void 0!==e.top&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const i={},r={};let o=!1;const n={};for(const a in e){const s=t[a],l=e[a];if(a in gs){const t=gs[a];if(void 0===s||void 0===l)continue;const e=t(s,l);void 0!==e.transform&&(n[a]=e.value,o=!0,i.transform=`${i.transform??""} ${e.transform}`,void 0!==e.overrideFrom&&Object.assign(i,e.overrideFrom))}else s!==l&&void 0!==s&&void 0!==l&&(o=!0,i[a]=s,r[a]=l)}return i.transformOrigin=r.transformOrigin=s?"center center":"top left",this.animatingProperties=n,o?[i,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();null==r||r.add(this);try{await this.webAnimation.finished}catch(i){}null==r||r.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return"running"===(null==(t=this.webAnimation)?void 0:t.playState)||(null==(e=this.webAnimation)?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}),ys={core:{cancel:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"check-circled-outline":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7 12.5L10 15.5L17 8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',check:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5 13L9 17L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"emoji-puzzled":'<svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" ><path d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11.5 15.5s1.5-2 4.5-2 4.5 2 4.5 2M3 4c0-2.754 4-2.754 4 0 0 1.967-2 1.64-2 4M5 11.01l.01-.011" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.5 9a.5.5 0 110-1 .5.5 0 010 1zM10.5 9a.5.5 0 110-1 .5.5 0 010 1z" fill="#000" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',"info-empty":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 11.5V16.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 7.51L12.01 7.49889" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',loader:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',"minus-small":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">\n <path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6" />\n</svg>\n',"more-horiz":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18 12.5C18.2761 12.5 18.5 12.2761 18.5 12C18.5 11.7239 18.2761 11.5 18 11.5C17.7239 11.5 17.5 11.7239 17.5 12C17.5 12.2761 17.7239 12.5 18 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M6 12.5C6.27614 12.5 6.5 12.2761 6.5 12C6.5 11.7239 6.27614 11.5 6 11.5C5.72386 11.5 5.5 11.7239 5.5 12C5.5 12.2761 5.72386 12.5 6 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"more-vert":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 18.5C12.2761 18.5 12.5 18.2761 12.5 18C12.5 17.7239 12.2761 17.5 12 17.5C11.7239 17.5 11.5 17.7239 11.5 18C11.5 18.2761 11.7239 18.5 12 18.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 6.5C12.2761 6.5 12.5 6.27614 12.5 6C12.5 5.72386 12.2761 5.5 12 5.5C11.7239 5.5 11.5 5.72386 11.5 6C11.5 6.27614 11.7239 6.5 12 6.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"nav-arrow-down":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"warning-circled-outline":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 7L12 13" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}},ws=new Map,xs={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let _s=!1;const ks=sessionStorage.getItem("sonicIconsCache"),As=ks?JSON.parse(ks):{icons:{},names:[]};class Ps{}Ps.default={get:async t=>{const e=t.library;if(!t.name)return"";const s=t.name,i=ys;var r,o;if("custom"==e&&(_s||(_s=!0,xs.custom.url=(null==(r=document.querySelector("[customIconLibraryPath]"))?void 0:r.getAttribute("customIconLibraryPath"))||"",xs.custom.defaultPrefix=(null==(o=document.querySelector("[customIconDefaultPrefix]"))?void 0:o.getAttribute("customIconDefaultPrefix"))||"")),e&&e in xs){const r=xs[e],o=t.prefix||r.defaultPrefix||"",n=i[e]||{};i[e]=n;const a=o+"-"+s;if(n[a])return te(n[a]);const l=(r.url||"").replace("$prefix",o).replace("$name",s);if(As.icons[l])return n[a]=As.icons[l],te(As.icons[l]);if(!ws.has(l)){const t=new Promise((async t=>{const e=await fetch(l);if(e.ok)try{t(await e.text())}catch(s){t(null)}else t(`<b title="Erreur ${e.status}">😶</b>`)}));ws.set(l,t)}const c=await ws.get(l);if(ws.delete(l),n[a]=c||"",As.icons[l]=c||"",As.names.length>100){const t=As.names.shift();delete As.icons[t]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(As)),te(c)}return te(i.core[t.name]||"")}};var Cs=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,$s=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ss(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Cs(e,s,o),o};let Os=class extends Zt{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await Ps.default.get({name:this.name,prefix:this.prefix,library:this.library})}willUpdate(t){(t.has("name")||t.has("prefix")||t.has("library"))&&this.updateIcon(),super.willUpdate(t)}render(){return this.iconText?this.iconText:gt}};Os.styles=x`
483
483
  :host {
484
484
  line-height: 0.1em;
485
485
  width: fit-content;
@@ -528,7 +528,7 @@ const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},
528
528
  :host([size="3xl"]) svg {
529
529
  --sc-icon-size: 2.8em;
530
530
  }
531
- `,ys([U()],ws.prototype,"iconText",2),ys([F({type:String})],ws.prototype,"name",2),ys([F({type:String})],ws.prototype,"prefix",2),ys([F({type:String})],ws.prototype,"library",2),ws=ys([b("sonic-icon")],ws);const xs=x`
531
+ `,$s([U()],Os.prototype,"iconText",2),$s([F({type:String})],Os.prototype,"name",2),$s([F({type:String})],Os.prototype,"prefix",2),$s([F({type:String})],Os.prototype,"library",2),Os=$s([b("sonic-icon")],Os);const Ds=x`
532
532
  .custom-scroll {
533
533
  overflow: auto !important;
534
534
  overflow-y: overlay !important;
@@ -549,12 +549,12 @@ const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},
549
549
  border: solid 0.15rem transparent;
550
550
  }
551
551
  }
552
- `;var _s=Object.defineProperty,ks=Object.getOwnPropertyDescriptor,As=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ks(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&_s(e,s,o),o};const Ps={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"};let Cs=class extends Zt{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(t)[this.id])return gt}return this.visible?pt`<div class="sonic-toast ${this.status} ${this.ghost?"ghost":""}">
552
+ `;var Ls=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,js=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Es(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ls(e,s,o),o};const Ms={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"};let Is=class extends Zt{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(t)[this.id])return gt}return this.visible?pt`<div class="sonic-toast ${this.status} ${this.ghost?"ghost":""}">
553
553
  <button aria-label="Close" class="sonic-toast-close" @click=${()=>this.hide()}>
554
554
  <sonic-icon name="cancel" size="lg"></sonic-icon>
555
555
  </button>
556
556
  <div class="sonic-toast-content custom-scroll" style="max-height: ${this.maxHeight} ;">
557
- ${this.status&&pt`<sonic-icon name=${Ps[this.status]} class="sonic-toast-icon" size="2xl"></sonic-icon>`}
557
+ ${this.status&&pt`<sonic-icon name=${Ms[this.status]} class="sonic-toast-icon" size="2xl"></sonic-icon>`}
558
558
 
559
559
  <div class="sonic-toast-text">
560
560
  ${this.title?pt`<div class="sonic-toast-title">${this.title}</div>`:""} ${this.text?te(this.text):""}
@@ -563,7 +563,7 @@ const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},
563
563
 
564
564
  ${this.preserve?"":this.autoHide()}
565
565
  </div>
566
- </div>`:gt}hide(){if(this.closest("sonic-toast")||(this.visible=!1),this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}",e=JSON.parse(t);e[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(e))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout((()=>{this.hide()}),6e3)}};Cs.styles=[xs,x`
566
+ </div>`:gt}hide(){if(this.closest("sonic-toast")||(this.visible=!1),this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}",e=JSON.parse(t);e[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(e))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout((()=>{this.hide()}),6e3)}};Is.styles=[Ds,x`
567
567
  * {
568
568
  box-sizing: border-box;
569
569
  }
@@ -740,7 +740,7 @@ const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},
740
740
  opacity: 0.85;
741
741
  pointer-events: none;
742
742
  }
743
- `],As([F({type:String})],Cs.prototype,"title",2),As([F({type:String})],Cs.prototype,"id",2),As([F({type:String})],Cs.prototype,"text",2),As([F({type:String})],Cs.prototype,"status",2),As([F({type:Boolean})],Cs.prototype,"ghost",2),As([F({type:Boolean})],Cs.prototype,"preserve",2),As([F({type:Boolean})],Cs.prototype,"dismissForever",2),As([F({type:String})],Cs.prototype,"maxHeight",2),As([U()],Cs.prototype,"visible",2),Cs=As([b("sonic-toast-item")],Cs);const Ss=x`
743
+ `],js([F({type:String})],Is.prototype,"title",2),js([F({type:String})],Is.prototype,"id",2),js([F({type:String})],Is.prototype,"text",2),js([F({type:String})],Is.prototype,"status",2),js([F({type:Boolean})],Is.prototype,"ghost",2),js([F({type:Boolean})],Is.prototype,"preserve",2),js([F({type:Boolean})],Is.prototype,"dismissForever",2),js([F({type:String})],Is.prototype,"maxHeight",2),js([U()],Is.prototype,"visible",2),Is=js([b("sonic-toast-item")],Is);const Ts=x`
744
744
  :host {
745
745
  /* polices*/
746
746
  --sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
@@ -803,7 +803,7 @@ const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},
803
803
  /*Body*/
804
804
  --sc-body-bg: var(--sc-base);
805
805
  }
806
- `,$s=x`
806
+ `,Ns=x`
807
807
  :host {
808
808
  /*Boutons*/
809
809
  --sc-primary: var(--sc-base-800);
@@ -836,7 +836,7 @@ const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},
836
836
  --sc-input-bg: var(--sc-base-100);
837
837
  --sc-input-color: var(--sc-base-content);
838
838
  }
839
- `,Os=x`
839
+ `,zs=x`
840
840
  --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
841
841
  --sc-info: var(--sc-dark-info, #3abff8);
842
842
  --sc-danger: var(--sc-dark-danger, #f87272);
@@ -861,17 +861,17 @@ const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},
861
861
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
862
862
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
863
863
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
864
- `,Ds=x`
864
+ `,Rs=x`
865
865
  :host([theme="dark"]) {
866
- ${Os}
866
+ ${zs}
867
867
  }
868
868
 
869
869
  @media (prefers-color-scheme: dark) {
870
870
  :host([theme="auto"]) {
871
- ${Os}
871
+ ${zs}
872
872
  }
873
873
  }
874
- `;var Ls=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,js=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Es(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ls(e,s,o),o};let Ms=class extends Zt{constructor(){super(),this.theme="light",this.background=!1,this.color=!1,this.font=!1,Ms.instance=this}static getPopContainer(){return Ms.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",(t=>this.receiveMessage(t)),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var t;const e=document.styleSheets,s=e.length,i=[];for(let o=0;o<s;o++){const t=e[o];t.href&&(t.href.includes("googleapis")||t.href.includes("typekit.net"))&&i.push(t.href)}const r={variables:this.getCssVariables(),fonts:i};null==(t=Te.get("sonic-theme"))||t.set(r),document.querySelectorAll("iframe").forEach((t=>{var e;return null==(e=t.contentWindow)?void 0:e.postMessage({type:"SonicTheme",...r},"*")}))}receiveMessage(t){const e=t.data;e.type&&"GetSonicTheme"==e.type&&this.postCSSVars()}getCssVariables(){const t=[],e=[...Ms.styles.map((t=>t.styleSheet)),...Array.from(document.styleSheets)];for(const o of e)try{if(!o)continue;const e=o.cssRules;for(const s of e){if(!("style"in s))continue;const e=s.style;for(const s of e)t.includes(s)||0!==s.indexOf("--sc")||t.push(s)}}catch(r){console.log("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return t.forEach((t=>i[t]=s.getPropertyValue(t))),i}render(){return pt`<slot></slot>`}};Ms.styles=[$s,Ds,Ss,x`
874
+ `;var Fs=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Vs=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Us(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Fs(e,s,o),o};let Bs=class extends Zt{constructor(){super(),this.theme="light",this.background=!1,this.color=!1,this.font=!1,Bs.instance=this}static getPopContainer(){return Bs.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",(t=>this.receiveMessage(t)),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){var t;const e=document.styleSheets,s=e.length,i=[];for(let o=0;o<s;o++){const t=e[o];t.href&&(t.href.includes("googleapis")||t.href.includes("typekit.net"))&&i.push(t.href)}const r={variables:this.getCssVariables(),fonts:i};null==(t=He.get("sonic-theme"))||t.set(r),document.querySelectorAll("iframe").forEach((t=>{var e;return null==(e=t.contentWindow)?void 0:e.postMessage({type:"SonicTheme",...r},"*")}))}receiveMessage(t){const e=t.data;e.type&&"GetSonicTheme"==e.type&&this.postCSSVars()}getCssVariables(){const t=[],e=[...Bs.styles.map((t=>t.styleSheet)),...Array.from(document.styleSheets)];for(const o of e)try{if(!o)continue;const e=o.cssRules;for(const s of e){if(!("style"in s))continue;const e=s.style;for(const s of e)t.includes(s)||0!==s.indexOf("--sc")||t.push(s)}}catch(r){console.log("Erreur lors de la récupération des variables CSS")}const s=window.getComputedStyle(this),i={};return t.forEach((t=>i[t]=s.getPropertyValue(t))),i}render(){return pt`<slot></slot>`}};Bs.styles=[Ns,Rs,Ts,x`
875
875
  :host([color]) {
876
876
  color: var(--sc-base-content);
877
877
  }
@@ -881,40 +881,40 @@ const Ze=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},
881
881
  font-weight: var(--sc-font-weight-base);
882
882
  font-style: var(--sc-font-style-base);
883
883
  }
884
- `],js([F({type:String,reflect:!0})],Ms.prototype,"theme",2),js([F({type:Boolean,reflect:!0})],Ms.prototype,"background",2),js([F({type:Boolean,reflect:!0})],Ms.prototype,"color",2),js([F({type:Boolean,reflect:!0})],Ms.prototype,"font",2),Ms=js([b("sonic-theme")],Ms);var Is=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ns=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ts(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Is(e,s,o),o};let zs=class extends Zt{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=!(window.parent==window);let e={pointerEvents:"none",gap:"1rem",display:"flex",margin:"1rem"};return t||(e={...e,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),zs.handleExistingToastDelegation(),this.toasts?pt`<div aria-live="polite" style=${_e(e)}>
885
- ${Ye(this.toasts,(t=>t.id),(e=>pt`
884
+ `],Vs([F({type:String,reflect:!0})],Bs.prototype,"theme",2),Vs([F({type:Boolean,reflect:!0})],Bs.prototype,"background",2),Vs([F({type:Boolean,reflect:!0})],Bs.prototype,"color",2),Vs([F({type:Boolean,reflect:!0})],Bs.prototype,"font",2),Bs=Vs([b("sonic-theme")],Bs);var Hs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Ws=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?qs(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Hs(e,s,o),o};let Ks=class extends Zt{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=!(window.parent==window);let e={pointerEvents:"none",gap:"1rem",display:"flex",margin:"1rem"};return t||(e={...e,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),Ks.handleExistingToastDelegation(),this.toasts?pt`<div aria-live="polite" style=${_e(e)}>
885
+ ${rs(this.toasts,(t=>t.id),(e=>pt`
886
886
  <sonic-toast-item
887
887
  maxHeight=${t?"none":"10rem"}
888
- status=${Ve(e.status)}
889
- title=${Ve(e.title)}
888
+ status=${Qe(e.status)}
889
+ title=${Qe(e.title)}
890
890
  ?ghost=${e.ghost}
891
891
  ?dismissForever=${e.dismissForever}
892
892
  ?preserve=${e.preserve}
893
- id=${Ve(e.id)}
893
+ id=${Qe(e.id)}
894
894
  @hide=${()=>this.removeItem(e)}
895
- ${cs({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
895
+ ${vs({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
896
896
  >
897
897
  <!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
898
898
  ${e.text?te(e.text):""}
899
899
  </sonic-toast-item>
900
900
  `))}
901
- </div>`:gt}static removeAll(){if(zs.delegateToasts)return zs.handleExistingToastDelegation(),void window.parent.postMessage({type:"removeAllToasts"},"*");const t=zs.getInstance();t&&(t.toasts=t.toasts.filter((t=>t.ghost)))}static getInstance(){return zs.instance||(zs.instance=document.createElement("sonic-toast"),Ms.getPopContainer().prepend(zs.instance)),zs.instance}static add(t){if(zs.delegateToasts)return zs.handleExistingToastDelegation(),void window.parent.postMessage({type:"addToast",toast:t},"*");const e=zs.getInstance(),s=t.id??(new Date).valueOf(),i=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),r={id:s,text:t.text,title:t.title,status:t.status,preserve:!!i||t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const e=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(e)[t.id])return null}if(null==e?void 0:e.toasts.length){const t={...r};for(const s of e.toasts){const e={...s};if(t.id=e.id=0,
901
+ </div>`:gt}static removeAll(){if(Ks.delegateToasts)return Ks.handleExistingToastDelegation(),void window.parent.postMessage({type:"removeAllToasts"},"*");const t=Ks.getInstance();t&&(t.toasts=t.toasts.filter((t=>t.ghost)))}static getInstance(){return Ks.instance||(Ks.instance=document.createElement("sonic-toast"),Bs.getPopContainer().prepend(Ks.instance)),Ks.instance}static add(t){if(Ks.delegateToasts)return Ks.handleExistingToastDelegation(),void window.parent.postMessage({type:"addToast",toast:t},"*");const e=Ks.getInstance(),s=t.id??(new Date).valueOf(),i=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),r={id:s,text:t.text,title:t.title,status:t.status,preserve:!!i||t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const e=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(e)[t.id])return null}if(null==e?void 0:e.toasts.length){const t={...r};for(const s of e.toasts){const e={...s};if(t.id=e.id=0,
902
902
  /*!currentToast.preserve && */
903
- g.shallowEqual(t,e))return null}}return e&&(e.toasts=[...e.toasts,r]),r}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=zs.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(zs.delegateToasts)return zs.handleExistingToastDelegation(),void window.parent.postMessage({type:"removeToast",toast:t},"*");const e=zs.getInstance();e&&e.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter((e=>(delete(e={...e}).id,!g.shallowEqual(e,t,!1)))))}};zs.delegateToasts=!1,Ns([F({type:Array})],zs.prototype,"toasts",2),zs=Ns([b("sonic-toast")],zs),"undefined"!=typeof window&&(window.SonicToast=zs),function(){var t;const e=!(window.parent==window);if(window.addEventListener("message",(t=>{"querySonicToastAvailability"==t.data.type&&t.source.postMessage({type:"sonicToastAvailable"},"*"),"sonicToastAvailable"==t.data.type&&(zs.delegateToasts=!0,zs.handleExistingToastDelegation()),"addToasts"==t.data.type&&(zs.getInstance().toasts=[...zs.getInstance().toasts,...t.data.toasts]),"removeAllToasts"==t.data.type&&zs.removeAll(),"removeToast"==t.data.type&&zs.removeItem(t.data.toast),"addToast"==t.data.type&&zs.add(t.data.toast)}),!1),e&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!e)for(const s of document.querySelectorAll("iframe"))null==(t=s.contentWindow)||t.postMessage({type:"sonicToastAvailable"},"*")}();var Rs=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,Us=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Fs(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Rs(e,s,o),o};const Vs=new Set,Bs=new Set,Hs=(t,e)=>{class s extends t{constructor(...t){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(t){super.props=t}set endPoint(t){this._endPoint=t,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled)return;if(this.api=new Jt(this.getApiConfiguration()),!this.api)return;if(this.dispatchEvent(new CustomEvent("loading",{detail:this})),"enabled"===this.getAttribute("localStorage")&&await Te.getInstance().isLocalStrorageReady,!this.isConnected)return;const t=Te.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,g.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}));let e=await this.api.get(this.endPoint||this.dataProvider||"",t);if(this.fetchedData=e,this.api.lastResult&&!this.api.lastResult.ok&&(Vs.add(this),(t=>{for(const e of Bs)e(t)})(this.api.lastResult)),this.isConnected){if(!e)return this.isLoading=!1,void(this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout((()=>this._fetchData()),this.refetchEveryMs)));if(e._sonic_http_response_&&!e._sonic_http_response_.ok&&1===Object.keys(e).length&&zs.add({text:"Network Error",status:"error"}),this.key){const t=e._sonic_http_response_,s=this.key.split(".");e=g.traverse(e,s,this.hasAttribute("preserveOtherKeys")),e&&g.isObject(e)&&t&&(e._sonic_http_response_=t)}this.props=e,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout((()=>this._fetchData()),this.refetchEveryMs))}}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.publisher)||t.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var t;this.lazyLoad=void 0!==this.lazyLoad?this.lazyLoad:this.hasAttribute("lazyload"),super.connectedCallback(),this.isFetchEnabled&&(this.key=""!=this.key?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),null==(t=this.publisher)||t.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const t=this.getBoundingClientRect();if(t.x<window.innerWidth&&t.right>0&&t.y<window.innerHeight&&t.right>0)return void this._fetchData();const e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),s={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"px",threshold:.9};this.iObserver=new IntersectionObserver((t=>this.onIntersection(t)),s);let i=this.shadowRoot?this.shadowRoot.children[0]:this.children[0];if("slot"==(null==i?void 0:i.nodeName.toLocaleLowerCase())&&(i=i.children[0]),!i||"template"==i.nodeName.toLocaleLowerCase()){i=document.createElement("span");i.style.pointerEvents="none",this.lazyLoadSpan=i,this.appendChild(i)}i?this.iObserver.observe(i):this.isFirstLoad&&this._fetchData()}onIntersection(t){var e,s;for(const i of t)if(i.isIntersecting&&this.isFirstLoad){this._fetchData(),null==(e=this.lazyLoadSpan)||e.remove(),this.lazyLoadSpan=void 0,null==(s=this.iObserver)||s.disconnect();break}}}return Us([F()],s.prototype,"props",1),Us([F({type:String})],s.prototype,"endPoint",1),Us([F()],s.prototype,"requestId",2),Us([F({type:Number})],s.prototype,"refetchEveryMs",2),s};var qs=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,Ks=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ws(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&qs(e,s,o),o};const Zs=t=>{class e extends t{constructor(...t){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;const s=this.getFormPublisher();s&&(s.isFormValid=!1),e.reportValidity()}set type(t){this.hasAttribute("type")&&!this.forceAutoFill&&(t=this.getAttribute("type")),this._type=t,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}}return Ks([F()],e.prototype,"forceAutoFill",2),Ks([F({type:String})],e.prototype,"type",1),Ks([F()],e.prototype,"description",1),Ks([F()],e.prototype,"label",1),Ks([F({type:String,reflect:!0})],e.prototype,"status",2),Ks([F({type:Number})],e.prototype,"tabindex",2),Ks([F({type:String})],e.prototype,"autocomplete",2),e},Ys=Hs,Gs=Ue,Qs=Se,Js=Zs,Xs=he,ti=ue;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Ys,FormCheckable:Gs,FormElement:Qs,FormInput:Js,Subscriber:Xs,TemplatesContainer:ti};
903
+ g.shallowEqual(t,e))return null}}return e&&(e.toasts=[...e.toasts,r]),r}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=Ks.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(Ks.delegateToasts)return Ks.handleExistingToastDelegation(),void window.parent.postMessage({type:"removeToast",toast:t},"*");const e=Ks.getInstance();e&&e.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter((e=>(delete(e={...e}).id,!g.shallowEqual(e,t,!1)))))}};Ks.delegateToasts=!1,Ws([F({type:Array})],Ks.prototype,"toasts",2),Ks=Ws([b("sonic-toast")],Ks),"undefined"!=typeof window&&(window.SonicToast=Ks),function(){var t;const e=!(window.parent==window);if(window.addEventListener("message",(t=>{"querySonicToastAvailability"==t.data.type&&t.source.postMessage({type:"sonicToastAvailable"},"*"),"sonicToastAvailable"==t.data.type&&(Ks.delegateToasts=!0,Ks.handleExistingToastDelegation()),"addToasts"==t.data.type&&(Ks.getInstance().toasts=[...Ks.getInstance().toasts,...t.data.toasts]),"removeAllToasts"==t.data.type&&Ks.removeAll(),"removeToast"==t.data.type&&Ks.removeItem(t.data.toast),"addToast"==t.data.type&&Ks.add(t.data.toast)}),!1),e&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!e)for(const s of document.querySelectorAll("iframe"))null==(t=s.contentWindow)||t.postMessage({type:"sonicToastAvailable"},"*")}();var Zs=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,Gs=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ys(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Zs(e,s,o),o};const Qs=new Set,Js=new Set,Xs=(t,e)=>{class s extends t{constructor(...t){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.requestId=0,this.refetchEveryMs=0,this.dataProvider=""}get props(){return super.props}set props(t){super.props=t}set endPoint(t){this._endPoint=t,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled)return;if(this.api=new Jt(this.getApiConfiguration()),!this.api)return;if(this.dispatchEvent(new CustomEvent("loading",{detail:this})),"enabled"===this.getAttribute("localStorage")&&await He.getInstance().isLocalStrorageReady,!this.isConnected)return;const t=He.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();this.isLoading=!0,g.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}));let e=await this.api.get(this.endPoint||this.dataProvider||"",t);if(this.fetchedData=e,this.api.lastResult&&!this.api.lastResult.ok&&(Qs.add(this),(t=>{for(const e of Js)e(t)})(this.api.lastResult)),this.isConnected){if(!e)return this.isLoading=!1,void(this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout((()=>this._fetchData()),this.refetchEveryMs)));if(e._sonic_http_response_&&!e._sonic_http_response_.ok&&1===Object.keys(e).length&&Ks.add({text:"Network Error",status:"error"}),this.key){const t=e._sonic_http_response_,s=this.key.split(".");e=g.traverse(e,s,this.hasAttribute("preserveOtherKeys")),e&&g.isObject(e)&&t&&(e._sonic_http_response_=t)}this.props=e,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout((()=>this._fetchData()),this.refetchEveryMs))}}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.publisher)||t.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){var t;this.lazyLoad=void 0!==this.lazyLoad?this.lazyLoad:this.hasAttribute("lazyload"),super.connectedCallback(),this.isFetchEnabled&&(this.key=""!=this.key?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),null==(t=this.publisher)||t.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const t=this.getBoundingClientRect();if(t.x<window.innerWidth&&t.right>0&&t.y<window.innerHeight&&t.right>0)return void this._fetchData();const e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),s={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"px",threshold:.9};this.iObserver=new IntersectionObserver((t=>this.onIntersection(t)),s);let i=this.shadowRoot?this.shadowRoot.children[0]:this.children[0];if("slot"==(null==i?void 0:i.nodeName.toLocaleLowerCase())&&(i=i.children[0]),!i||"template"==i.nodeName.toLocaleLowerCase()){i=document.createElement("span");i.style.pointerEvents="none",this.lazyLoadSpan=i,this.appendChild(i)}i?this.iObserver.observe(i):this.isFirstLoad&&this._fetchData()}onIntersection(t){var e,s;for(const i of t)if(i.isIntersecting&&this.isFirstLoad){this._fetchData(),null==(e=this.lazyLoadSpan)||e.remove(),this.lazyLoadSpan=void 0,null==(s=this.iObserver)||s.disconnect();break}}}return Gs([F()],s.prototype,"props",1),Gs([F({type:String})],s.prototype,"endPoint",1),Gs([F()],s.prototype,"requestId",2),Gs([F({type:Number})],s.prototype,"refetchEveryMs",2),s};var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,si=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ei(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ti(e,s,o),o};const ii=t=>{class e extends t{constructor(...t){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;const s=this.getFormPublisher();s&&(s.isFormValid=!1),e.reportValidity()}set type(t){this.hasAttribute("type")&&!this.forceAutoFill&&(t=this.getAttribute("type")),this._type=t,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}}return si([F()],e.prototype,"forceAutoFill",2),si([F({type:String})],e.prototype,"type",1),si([F()],e.prototype,"description",1),si([F()],e.prototype,"label",1),si([F({type:String,reflect:!0})],e.prototype,"status",2),si([F({type:Number})],e.prototype,"tabindex",2),si([F({type:String})],e.prototype,"autocomplete",2),e},ri=Xs,oi=Ge,ni=Se,ai=ii,li=he,ci=ue;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:ri,FormCheckable:oi,FormElement:ni,FormInput:ai,Subscriber:li,TemplatesContainer:ci};
904
904
  /**
905
905
  * @license
906
906
  * Copyright 2020 Google LLC
907
907
  * SPDX-License-Identifier: BSD-3-Clause
908
908
  */
909
- const ei=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error("templateContent can only be used in child bindings")}render(t){return this.ft===t?ut:(this.ft=t,document.importNode(t.content,!0))}});var si=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ri=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ii(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&si(e,s,o),o};let oi=class extends(Hs(he(ti(Zt)))){renderLoader(){if(!this.isLoading||void 0===this.loader)return gt;const t=!0===this.loader||""===this.loader?"fixed":this.loader;return pt`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const t=this.templateParts.skeleton;return this.isLoading&&t?ei(t):gt}render(){return pt` ${this.renderSkeleton()} ${this.renderLoader()} ${this.isLoading?gt:pt`<slot></slot>`} `}};oi.styles=[x`
909
+ const hi=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error("templateContent can only be used in child bindings")}render(t){return this.ft===t?ut:(this.ft=t,document.importNode(t.content,!0))}});var di=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,ui=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?pi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&di(e,s,o),o};let gi=class extends(Xs(he(ci(Zt)))){renderLoader(){if(!this.isLoading||void 0===this.loader)return gt;const t=!0===this.loader||""===this.loader?"fixed":this.loader;return pt`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const t=this.templateParts.skeleton;return this.isLoading&&t?hi(t):gt}render(){return pt` ${this.renderSkeleton()} ${this.renderLoader()} ${this.isLoading?gt:pt`<slot></slot>`} `}};gi.styles=[x`
910
910
  :host {
911
911
  display: contents;
912
912
  }
913
- `],ri([F()],oi.prototype,"loader",2),oi=ri([b("sonic-fetch")],oi);var ni=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,li=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ai(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ni(e,s,o),o};let ci=class extends Zt{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?pt` <slot></slot> `:gt}};ci.styles=x`
913
+ `],ui([F()],gi.prototype,"loader",2),gi=ui([b("sonic-fetch")],gi);var bi=Object.defineProperty,mi=Object.getOwnPropertyDescriptor,fi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?mi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&bi(e,s,o),o};let vi=class extends Zt{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?pt` <slot></slot> `:gt}};vi.styles=x`
914
914
  :host {
915
915
  display: contents;
916
916
  }
917
- `,li([F({type:Boolean})],ci.prototype,"condition",2),ci=li([b("sonic-if")],ci);const hi=x`
917
+ `,fi([F({type:Boolean})],vi.prototype,"condition",2),vi=fi([b("sonic-if")],vi);const yi=x`
918
918
  :host([align="left"]) .sonic-loader--inline {
919
919
  margin-left: 0;
920
920
  }
@@ -981,7 +981,7 @@ const ei=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error(
981
981
  transform: translate(24px, 0);
982
982
  }
983
983
  }
984
- `,di=x`
984
+ `,wi=x`
985
985
 
986
986
  @keyframes sonic-loader--fixed {
987
987
  0% {
@@ -1036,12 +1036,12 @@ const ei=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error(
1036
1036
  animation: sonic-loader--fixed 1s 0s linear infinite;
1037
1037
  }
1038
1038
 
1039
- `;var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,gi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ui(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&pi(e,s,o),o};let bi=class extends Zt{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(t){bi.loader||(bi.loader=document.createElement("sonic-loader"));const e=bi.loader;t||(t={}),t.mode&&e.setAttribute("mode",t.mode),t.noDelay&&e.setAttribute("noDelay",""),t.container||(t.container=Ms.getPopContainer(),t.mode="fixed"),t.container.appendChild(e),bi.callCounter++}static hide(){bi.callCounter--,bi.callCounter>0||bi.loader&&bi.loader.remove()}render(){return pt`<div class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} ">
1039
+ `;var xi=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,ki=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?_i(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&xi(e,s,o),o};let Ai=class extends Zt{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(t){Ai.loader||(Ai.loader=document.createElement("sonic-loader"));const e=Ai.loader;t||(t={}),t.mode&&e.setAttribute("mode",t.mode),t.noDelay&&e.setAttribute("noDelay",""),t.container||(t.container=Bs.getPopContainer(),t.mode="fixed"),t.container.appendChild(e),Ai.callCounter++}static hide(){Ai.callCounter--,Ai.callCounter>0||Ai.loader&&Ai.loader.remove()}render(){return pt`<div class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} ">
1040
1040
  <div></div>
1041
1041
  <div></div>
1042
1042
  <div></div>
1043
1043
  <div></div>
1044
- </div>`}};bi.styles=[hi,di,x`
1044
+ </div>`}};Ai.styles=[yi,wi,x`
1045
1045
  :host {
1046
1046
  --sc-loader-bg: var(--sc-primary, currentColor);
1047
1047
  pointer-events: none;
@@ -1065,7 +1065,7 @@ const ei=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error(
1065
1065
  opacity: 1;
1066
1066
  }
1067
1067
  }
1068
- `],bi.callCounter=0,gi([F({type:String})],bi.prototype,"mode",2),gi([F({type:Boolean})],bi.prototype,"noDelay",2),bi=gi([b("sonic-loader")],bi);var mi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor;let vi=class extends(he(Zt)){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(t){super.updated(t),0==this.children.length?this.style.display="none":this.style.display="contents"}render(){return pt`<slot></slot> `}};vi=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?fi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&mi(e,s,o),o})([b("sonic-subscriber")],vi);var yi=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,xi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?wi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&yi(e,s,o),o};let _i=class extends(Hs(he(ue(Zt)))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!this.isLoading||void 0===this.loader)return gt;if(this.templateParts.skeleton)return gt;const t=!0===this.loader||""===this.loader?"fixed":this.loader;return pt`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const t=this.templateParts.skeleton;return this.isLoading&&t?ei(t):gt}renderLoadingState(){return pt`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return pt` <div
1068
+ `],Ai.callCounter=0,ki([F({type:String})],Ai.prototype,"mode",2),ki([F({type:Boolean})],Ai.prototype,"noDelay",2),Ai=ki([b("sonic-loader")],Ai);var Pi=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor;let Si=class extends(he(Zt)){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(t){super.updated(t),0==this.children.length?this.style.display="none":this.style.display="contents"}render(){return pt`<slot></slot> `}};Si=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ci(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Pi(e,s,o),o})([b("sonic-subscriber")],Si);var $i=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor,Di=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Oi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&$i(e,s,o),o};let Li=class extends(Xs(he(ue(Zt)))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!this.isLoading||void 0===this.loader)return gt;if(this.templateParts.skeleton)return gt;const t=!0===this.loader||""===this.loader?"fixed":this.loader;return pt`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){const t=this.templateParts.skeleton;return this.isLoading&&t?hi(t):gt}renderLoadingState(){return pt`${this.renderSkeleton()} ${this.renderLoader()}`}renderNoResultState(){return pt` <div
1069
1069
  style="color: var(--sc-base-400);
1070
1070
  font-size: 1.5em;
1071
1071
  margin: 4rem 0;
@@ -1074,7 +1074,7 @@ const ei=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error(
1074
1074
  >
1075
1075
  <sonic-icon name="emoji-puzzled" size="lg"></sonic-icon
1076
1076
  ><span class="sonic-no-result-text">${"string"==typeof this.props&&""==this.props?"Aucun résultat":this.props}</span>
1077
- </div>`}formatProps(){let t=this.props;if(null==t)return null;const e=t._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(t)||(t=s?Object.entries(t).map((([t,e])=>({key:t,value:e}))):g.isObject(t)&&Object.keys(t).length>0&&(!e||e.ok)?[t]:[]),t=t.filter((t=>null!=t)),e&&(t._sonic_http_response_=e),t}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if("string"==typeof this.props)return this.renderNoResultState();if(!g.isObject(this.props))return pt`<div></div>`;const t=this.formatProps();if(0==((null==t?void 0:t.length)||0)&&this.templateParts["no-item"])return ei(this.templateParts["no-item"]);const e=this.templateList.length;let s=-1;const i=this.hasAttribute("extractValues"),r=this.templateParts.separator,o=(null==t?void 0:t.length)||0,n=null==t?void 0:t.slice(this.offset,this.offset+this.limit);return pt`
1077
+ </div>`}formatProps(){let t=this.props;if(null==t)return null;const e=t._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(t)||(t=s?Object.entries(t).map((([t,e])=>({key:t,value:e}))):g.isObject(t)&&Object.keys(t).length>0&&(!e||e.ok)?[t]:[]),t=t.filter((t=>null!=t)),e&&(t._sonic_http_response_=e),t}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if("string"==typeof this.props)return this.renderNoResultState();if(!g.isObject(this.props))return pt`<div></div>`;const t=this.formatProps();if(0==((null==t?void 0:t.length)||0)&&this.templateParts["no-item"])return hi(this.templateParts["no-item"]);const e=this.templateList.length;let s=-1;const i=this.hasAttribute("extractValues"),r=this.templateParts.separator,o=(null==t?void 0:t.length)||0,n=null==t?void 0:t.slice(this.offset,this.offset+this.limit);return pt`
1078
1078
  ${null==n?void 0:n.map(((t,n)=>{if(null==t)return gt;let a=null,l=n;if("object"==typeof t&&!Array.isArray(t)){const e=t[this.templateKey];e&&"string"==typeof e&&(a=this.templateParts[e]),i&&(l=null==t?void 0:t.key)}if("_sonic_http_response_"==l)return gt;if("string"!=typeof l&&"number"!=typeof l)return gt;const c=n>=o-1,h=n%2,d=this.publisher[l];return d._key_=l+"",d._metadata_={...d._metadata_.get(),key:l,even:0==h,odd:1==h,onlyChild:1==o,firstChild:0==n,lastChild:c},s++,a&&(s=-1),t&&pt`
1079
1079
  <sonic-subscriber
1080
1080
  ?debug=${!0===this.defferedDebug}
@@ -1082,11 +1082,11 @@ const ei=Rt(class extends Ft{constructor(t){if(super(t),t.type!==zt)throw Error(
1082
1082
  .propertyMap?=${this.itemPropertyMap}
1083
1083
  dataProvider="${this.dataProvider}/list-item/${l}"
1084
1084
  >
1085
- ${ei(a||this.templateList[s%e])}
1085
+ ${hi(a||this.templateList[s%e])}
1086
1086
  </sonic-subscriber>
1087
- ${r&&!c?ei(r):gt}
1087
+ ${r&&!c?hi(r):gt}
1088
1088
  `}))}
1089
- `}};xi([F({type:Object})],_i.prototype,"itemPropertyMap",2),xi([F({type:String})],_i.prototype,"templateKey",2),xi([F({type:String})],_i.prototype,"idKey",2),xi([F()],_i.prototype,"loader",2),xi([F()],_i.prototype,"limit",2),xi([F()],_i.prototype,"offset",2),_i=xi([b("sonic-list")],_i);var ki=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Pi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ai(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ki(e,s,o),o};let Ci=class extends(he(Zt)){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var t;const e=this.dataProviderExpression.split("?");e.shift();const s=new URLSearchParams(e.join("?")),i=null==(t=this.filterPublisher)?void 0:t.get(),r=this.filteredFields.split(" ");for(const n in i){let t=i[n];Array.isArray(t)&&(t=t.filter((t=>null!==t))),this.filteredFields&&!r.includes(n)||null==t||""===t.toString()||s.set(n,i[n].toString())}const o=s.toString();if(o!=this.searchHash||this.isFirstRequest){this.searchHash=o;for(const t of this.listDataProviders)l.delete(t);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout((async()=>{const t=this.resultCount;this.props=null,this.requestId++,this.resultCount=t,await l.getInstance().isLocalStrorageReady,window.requestAnimationFrame((()=>this.next()))}),this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){var t;for(const e of this.listDataProviders)l.delete(e),this.listDataProviders=[];null==(t=this.filterPublisher)||t.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=Ci.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Ee.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await l.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=(new Date).getTime(),this.configFilter()}configFilter(){var t;const e=this.getAncestorAttributeValue("dataFilterProvider");e?(this.filterPublisher=l.getInstance().get(e),null==(t=this.filterPublisher)||t.onInternalMutation(this.updateFilteredContent)):this.next()}resetDuration(){this.lastRequestTime=(new Date).getTime()}next(t){var e;let s=this.offset;const i=(new Date).getTime()-this.lastRequestTime;if(!this.nextHadEvent&&t&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!t,t){if(this.publisher.lastFetchedData=t.detail.fetchedData,t.detail.requestId<this.requestId)return;if(this.resultCount+=t.detail.props.length,!t.detail.isFirstLoad||!t.detail.props.length||-1==this.dataProviderExpression.indexOf("$offset"))return void(this.publisher.resultCount=this.resultCount)}if(Array.isArray(this.props)){const t=this.props,e=t[t.length-1];s=parseInt(e.offset.toString())+parseInt(e.limit.toString())}else{const e=[];e.resultCount=this.resultCount,e.lastFetchedData=(null==t?void 0:t.detail.fetchedData)||{},this.props=e}i>0&&t&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let r=this.dataProviderExpression.replace("$offset",s+"").replace("$limit",this.limit+"");const o=r.split("?");let n=o.shift();const a=new URLSearchParams(o.join("?")),l=null==(e=this.filterPublisher)?void 0:e.get(),c=this.filteredFields.split(" ");for(const d in l)this.filteredFields&&c.includes(d)||null==l[d]||""==l[d]||a.set(d,l[d]);this.searchHash||(this.searchHash=a.toString()),n=n+"?"+a.toString(),r=r+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(r);const h=[...this.props,{id:a.toString()+"/"+this.props.length,dataProvider:r,endPoint:n,offset:s,limit:this.limit}];h.resultCount=this.resultCount,h.lastFetchedData=(null==t?void 0:t.detail.fetchedData)||{},this.props=h,this.lastRequestTime=(new Date).getTime()}render(){if(!Array.isArray(this.props))return gt;let t=!this.noLazyload;return 1==this.props.length&&(t=!1),pt`
1089
+ `}};Di([F({type:Object})],Li.prototype,"itemPropertyMap",2),Di([F({type:String})],Li.prototype,"templateKey",2),Di([F({type:String})],Li.prototype,"idKey",2),Di([F()],Li.prototype,"loader",2),Di([F()],Li.prototype,"limit",2),Di([F()],Li.prototype,"offset",2),Li=Di([b("sonic-list")],Li);var Ei=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,Mi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ji(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ei(e,s,o),o};let Ii=class extends(he(Zt)){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{var t;const e=this.dataProviderExpression.split("?");e.shift();const s=new URLSearchParams(e.join("?")),i=null==(t=this.filterPublisher)?void 0:t.get(),r=this.filteredFields.split(" ");for(const n in i){let t=i[n];Array.isArray(t)&&(t=t.filter((t=>null!==t))),this.filteredFields&&!r.includes(n)||null==t||""===t.toString()||s.set(n,i[n].toString())}const o=s.toString();if(o!=this.searchHash||this.isFirstRequest){this.searchHash=o;for(const t of this.listDataProviders)l.delete(t);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout((async()=>{const t=this.resultCount;this.props=null,this.requestId++,this.resultCount=t,await l.getInstance().isLocalStrorageReady,window.requestAnimationFrame((()=>this.next()))}),this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1}disconnectedCallback(){var t;for(const e of this.listDataProviders)l.delete(e),this.listDataProviders=[];null==(t=this.filterPublisher)||t.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=Ii.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Fe.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await l.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=(new Date).getTime(),this.configFilter()}configFilter(){var t;const e=this.getAncestorAttributeValue("dataFilterProvider");e?(this.filterPublisher=l.getInstance().get(e),null==(t=this.filterPublisher)||t.onInternalMutation(this.updateFilteredContent)):this.next()}resetDuration(){this.lastRequestTime=(new Date).getTime()}next(t){var e;let s=this.offset;const i=(new Date).getTime()-this.lastRequestTime;if(!this.nextHadEvent&&t&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!t,t){if(this.publisher.lastFetchedData=t.detail.fetchedData,t.detail.requestId<this.requestId)return;if(this.resultCount+=t.detail.props.length,!t.detail.isFirstLoad||!t.detail.props.length||-1==this.dataProviderExpression.indexOf("$offset"))return void(this.publisher.resultCount=this.resultCount)}if(Array.isArray(this.props)){const t=this.props,e=t[t.length-1];s=parseInt(e.offset.toString())+parseInt(e.limit.toString())}else{const e=[];e.resultCount=this.resultCount,e.lastFetchedData=(null==t?void 0:t.detail.fetchedData)||{},this.props=e}i>0&&t&&!this.localStorage&&(this.limit=Math.round(this.limit/i*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let r=this.dataProviderExpression.replace("$offset",s+"").replace("$limit",this.limit+"");const o=r.split("?");let n=o.shift();const a=new URLSearchParams(o.join("?")),l=null==(e=this.filterPublisher)?void 0:e.get(),c=this.filteredFields.split(" ");for(const d in l)this.filteredFields&&c.includes(d)||null==l[d]||""==l[d]||a.set(d,l[d]);this.searchHash||(this.searchHash=a.toString()),n=n+"?"+a.toString(),r=r+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(r);const h=[...this.props,{id:a.toString()+"/"+this.props.length,dataProvider:r,endPoint:n,offset:s,limit:this.limit}];h.resultCount=this.resultCount,h.lastFetchedData=(null==t?void 0:t.detail.fetchedData)||{},this.props=h,this.lastRequestTime=(new Date).getTime()}render(){if(!Array.isArray(this.props))return gt;let t=!this.noLazyload;return 1==this.props.length&&(t=!1),pt`
1090
1090
  ${
1091
1091
  /**
1092
1092
  * @license
@@ -1115,22 +1115,22 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1115
1115
  >
1116
1116
  </sonic-list>
1117
1117
  `}))}
1118
- `}};Ci.instanceCounter=0,Pi([F({type:Array})],Ci.prototype,"templates",2),Pi([F({type:Object})],Ci.prototype,"itemPropertyMap",2),Pi([F()],Ci.prototype,"cache",2),Pi([F()],Ci.prototype,"targetRequestDuration",2),Pi([F()],Ci.prototype,"limit",2),Pi([F()],Ci.prototype,"lazyBoundsRatio",2),Pi([F()],Ci.prototype,"offset",2),Pi([F()],Ci.prototype,"resultCount",2),Pi([F({type:Boolean})],Ci.prototype,"noLazyload",2),Pi([F()],Ci.prototype,"filteredFields",2),Pi([F({type:String})],Ci.prototype,"dataProviderExpression",2),Pi([F({type:String})],Ci.prototype,"idKey",2),Ci=Pi([b("sonic-queue")],Ci);var Si=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,Oi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?$i(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Si(e,s,o),o};let Di=class extends(he(Zt)){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",(()=>this.submit())),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",(t=>{"Enter"===t.key&&this.submit()})),super.connectedCallback(),this.api=new Jt(this.getApiConfiguration())}submitNativeForm(){const t=Ee.getClosestForm(this);if(!t)return;const e=this.getAncestorAttributeValue("formDataProvider"),s=l.get(e).get();for(const r in s){if("isFormValid"==r)continue;let e=t.querySelector('input[name="'+r+'"], select[name="'+r+'"], textarea[name="'+r+'"]');e||(e=document.createElement("input"),e.type="hidden",e.name=r,t.appendChild(e));let i=s[r];Array.isArray(i)&&(i=i.join(",")),"checkbox"===e.type||"radio"===e.type?i&&(e.checked=!0):e.value=i}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",t.appendChild(i),i&&i.click()}async submit(){var t;const e=l.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(e.isFormValid=!0,e.invalidate(),!e.isFormValid.get())return;this.publisher&&(this.publisher.disabled=!0),e.isFormValid;if(this.hasAttribute("native"))return void this.submitNativeForm();const s=(null==(t=this.getAttribute("method"))?void 0:t.toLocaleLowerCase())||"post",i=this.hasAttribute("sendAsFormData"),r=e.get();delete r.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),n=o?l.getInstance().get(o):null;let a={};n&&(a=n.get());let c=null;const h=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||h;bi.show();const p=async()=>{var t,e,o,n,h,p,u;if(i)c=await(null==(t=this.api)?void 0:t.submitFormData(d,r,s,a));else switch(s){case"put":c=await(null==(e=this.api)?void 0:e.put(d,r,a));break;case"delete":c=await(null==(o=this.api)?void 0:o.delete(d,r,a));break;case"get":const t=new URLSearchParams;if(r)for(const e in r)t.append(e,r[e]);const s="?"+t.toString();c=await(null==(n=this.api)?void 0:n.get(d+s,a));break;default:c=await(null==(h=this.api)?void 0:h.post(d,r,a))}bi.hide(),c?c._sonic_http_response_&&!c._sonic_http_response_.ok&&1===Object.keys(c).length&&(c.messages=[{content:"Network Error",status:"error"}]):c={messages:[{content:"Network Error",status:"error"}]};const b=this.getAncestorAttributeValue("clearedDataOnSuccess");b&&b.split(" ").forEach((t=>l.get(t).set({})));const m=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",f=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(null==(u=null==(p=this.api)?void 0:p.lastResult)?void 0:u.ok)&&r[m]&&r[f]&&this.saveCredentials(r[m],r[f]),this.submitResultKey&&(c=g.traverse(c,this.submitResultKey.split("."),!0));const v=this.getAncestorAttributeValue("submitResultDataProvider");v&&l.get(v).set(c),this.publisher&&(this.publisher.disabled=null)},u=(null==n?void 0:n.needsCaptchaValidation.get())?n:e.needsCaptchaValidation.get()?e:null;if(u){u.captchaMethod=s,u.captchaAction=(null==h?void 0:h.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",u.captchaToken="request_token";const t=e=>{"request_token"!=e&&""!=e&&(p(),u.captchaToken.offAssign(t))};u.captchaToken.onAssign(t)}else p()}async saveCredentials(t,e){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:t,password:e});await navigator.credentials.store(s)}}render(){return pt`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Di.styles=x`
1118
+ `}};Ii.instanceCounter=0,Mi([F({type:Array})],Ii.prototype,"templates",2),Mi([F({type:Object})],Ii.prototype,"itemPropertyMap",2),Mi([F()],Ii.prototype,"cache",2),Mi([F()],Ii.prototype,"targetRequestDuration",2),Mi([F()],Ii.prototype,"limit",2),Mi([F()],Ii.prototype,"lazyBoundsRatio",2),Mi([F()],Ii.prototype,"offset",2),Mi([F()],Ii.prototype,"resultCount",2),Mi([F({type:Boolean})],Ii.prototype,"noLazyload",2),Mi([F()],Ii.prototype,"filteredFields",2),Mi([F({type:String})],Ii.prototype,"dataProviderExpression",2),Mi([F({type:String})],Ii.prototype,"idKey",2),Ii=Mi([b("sonic-queue")],Ii);var Ti=Object.defineProperty,Ni=Object.getOwnPropertyDescriptor,zi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ni(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ti(e,s,o),o};let Ri=class extends(he(Zt)){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",(()=>this.submit())),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",(t=>{"Enter"===t.key&&this.submit()})),super.connectedCallback(),this.api=new Jt(this.getApiConfiguration())}submitNativeForm(){const t=Fe.getClosestForm(this);if(!t)return;const e=this.getAncestorAttributeValue("formDataProvider"),s=l.get(e).get();for(const r in s){if("isFormValid"==r)continue;let e=t.querySelector('input[name="'+r+'"], select[name="'+r+'"], textarea[name="'+r+'"]');e||(e=document.createElement("input"),e.type="hidden",e.name=r,t.appendChild(e));let i=s[r];Array.isArray(i)&&(i=i.join(",")),"checkbox"===e.type||"radio"===e.type?i&&(e.checked=!0):e.value=i}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",t.appendChild(i),i&&i.click()}async submit(){var t;const e=l.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(e.isFormValid=!0,e.invalidate(),!e.isFormValid.get())return;this.publisher&&(this.publisher.disabled=!0),e.isFormValid;if(this.hasAttribute("native"))return void this.submitNativeForm();const s=(null==(t=this.getAttribute("method"))?void 0:t.toLocaleLowerCase())||"post",i=this.hasAttribute("sendAsFormData"),r=e.get();delete r.isFormValid;const o=this.getAncestorAttributeValue("headersDataProvider"),n=o?l.getInstance().get(o):null;let a={};n&&(a=n.get());let c=null;const h=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||h;Ai.show();const p=async()=>{var t,e,o,n,h,p,u;if(i)c=await(null==(t=this.api)?void 0:t.submitFormData(d,r,s,a));else switch(s){case"put":c=await(null==(e=this.api)?void 0:e.put(d,r,a));break;case"delete":c=await(null==(o=this.api)?void 0:o.delete(d,r,a));break;case"get":const t=new URLSearchParams;if(r)for(const e in r)t.append(e,r[e]);const s="?"+t.toString();c=await(null==(n=this.api)?void 0:n.get(d+s,a));break;default:c=await(null==(h=this.api)?void 0:h.post(d,r,a))}Ai.hide(),c?c._sonic_http_response_&&!c._sonic_http_response_.ok&&1===Object.keys(c).length&&(c.messages=[{content:"Network Error",status:"error"}]):c={messages:[{content:"Network Error",status:"error"}]};const b=this.getAncestorAttributeValue("clearedDataOnSuccess");b&&b.split(" ").forEach((t=>l.get(t).set({})));const m=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",f=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(null==(u=null==(p=this.api)?void 0:p.lastResult)?void 0:u.ok)&&r[m]&&r[f]&&this.saveCredentials(r[m],r[f]),this.submitResultKey&&(c=g.traverse(c,this.submitResultKey.split("."),!0));const v=this.getAncestorAttributeValue("submitResultDataProvider");v&&l.get(v).set(c),this.publisher&&(this.publisher.disabled=null)},u=(null==n?void 0:n.needsCaptchaValidation.get())?n:e.needsCaptchaValidation.get()?e:null;if(u){u.captchaMethod=s,u.captchaAction=(null==h?void 0:h.split("?")[0])??this.getAncestorAttributeValue("formDataProvider")??"submit",u.captchaToken="request_token";const t=e=>{"request_token"!=e&&""!=e&&(p(),u.captchaToken.offAssign(t))};u.captchaToken.onAssign(t)}else p()}async saveCredentials(t,e){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:t,password:e});await navigator.credentials.store(s)}}render(){return pt`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Ri.styles=x`
1119
1119
  [data-disabled] {
1120
1120
  opacity: 0.3;
1121
1121
  pointer-events: none;
1122
1122
  user-select: none;
1123
1123
  }
1124
- `,Oi([F({type:String})],Di.prototype,"submitResultKey",2),Oi([F({type:Boolean})],Di.prototype,"disabled",2),Oi([F({type:String})],Di.prototype,"endPoint",2),Oi([F()],Di.prototype,"name",2),Oi([F()],Di.prototype,"value",2),Di=Oi([b("sonic-submit")],Di);var Li="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ei(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ji,Mi,Ii,Ti,Ni={exports:{}};ji=Ni,Ti=[].slice,Mi=Li,Ii=function(){var t,e,s,i,r,o,n,a,l,c,h,d,p,u,g;return l=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},n=function(t,e){var s,i,r;for(r=[],s=-1,i=t.length;++s<i;)r=r.concat(e(t[s]));return r},u=function(t,e){var s,i,r;for(r="",s=-1,i=t.length;++s<i;)r+=e(t[s]);return r},p=function(t){return new RegExp(t.toString()+"|").exec("").length-1},h=function(t,e){var s,i,r,o,n;for(o={},s=-1,r=t.length;++s<r;)i=t[s],null!=(n=e[s])&&(null!=o[i]?(Array.isArray(o[i])||(o[i]=[o[i]]),o[i].push(n)):o[i]=n);return o},(t={}).Result=function(t,e){this.value=t,this.rest=e},t.Tagged=function(t,e){this.tag=t,this.value=e},t.tag=function(e,s){return function(i){var r,o;if(null!=(r=s(i)))return o=new t.Tagged(e,r.value),new t.Result(o,r.rest)}},t.regex=function(e){return function(s){var i,r;if(null!=(i=e.exec(s)))return r=i[0],new t.Result(r,s.slice(r.length))}},t.sequence=function(){var e;return e=1<=arguments.length?Ti.call(arguments,0):[],function(s){var i,r,o,n,a;for(i=-1,r=e.length,a=[],o=s;++i<r;){if(null==(n=(0,e[i])(o)))return;a.push(n.value),o=n.rest}return new t.Result(a,o)}},t.pick=function(){var e,s;return e=arguments[0],s=2<=arguments.length?Ti.call(arguments,1):[],function(i){var r,o;if(null!=(o=t.sequence.apply(t,s)(i)))return r=o.value,o.value=r[e],o}},t.string=function(e){var s;return s=e.length,function(i){if(i.slice(0,s)===e)return new t.Result(e,i.slice(s))}},t.lazy=function(t){var e;return e=null,function(s){return null==e&&(e=t()),e(s)}},t.baseMany=function(e,s,i,r,o){var n,a,l;for(a=o,l=i?"":[];(null==s||null==s(a))&&null!=(n=e(a));)i?l+=n.value:l.push(n.value),a=n.rest;if(!r||0!==l.length)return new t.Result(l,a)},t.many1=function(e){return function(s){return t.baseMany(e,null,!1,!0,s)}},t.concatMany1Till=function(e,s){return function(i){return t.baseMany(e,s,!0,!0,i)}},t.firstChoice=function(){var t;return t=1<=arguments.length?Ti.call(arguments,0):[],function(e){var s,i,r;for(s=-1,i=t.length;++s<i;)if(null!=(r=(0,t[s])(e)))return r}},d=function(e){var s;return(s={}).wildcard=t.tag("wildcard",t.string(e.wildcardChar)),s.optional=t.tag("optional",t.pick(1,t.string(e.optionalSegmentStartChar),t.lazy((function(){return s.pattern})),t.string(e.optionalSegmentEndChar))),s.name=t.regex(new RegExp("^["+e.segmentNameCharset+"]+")),s.named=t.tag("named",t.pick(1,t.string(e.segmentNameStartChar),t.lazy((function(){return s.name})))),s.escapedChar=t.pick(1,t.string(e.escapeChar),t.regex(/^./)),s.static=t.tag("static",t.concatMany1Till(t.firstChoice(t.lazy((function(){return s.escapedChar})),t.regex(/^./)),t.firstChoice(t.string(e.segmentNameStartChar),t.string(e.optionalSegmentStartChar),t.string(e.optionalSegmentEndChar),s.wildcard))),s.token=t.lazy((function(){return t.firstChoice(s.wildcard,s.optional,s.named,s.static)})),s.pattern=t.many1(t.lazy((function(){return s.token}))),s},a={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},o=function(t,e){if(Array.isArray(t))return u(t,(function(t){return o(t,e)}));switch(t.tag){case"wildcard":return"(.*?)";case"named":return"(["+e+"]+)";case"static":return l(t.value);case"optional":return"(?:"+o(t.value,e)+")?"}},r=function(t,e){return null==e&&(e=a.segmentValueCharset),"^"+o(t,e)+"$"},i=function(t){if(Array.isArray(t))return n(t,i);switch(t.tag){case"wildcard":return["_"];case"named":return[t.value];case"static":return[];case"optional":return i(t.value)}},c=function(t,e,s,i){var r,o,n;if(null==i&&(i=!1),null!=(n=t[e])){if(!((r=s[e]||0)>(Array.isArray(n)?n.length-1:0)))return o=Array.isArray(n)?n[r]:n,i&&(s[e]=r+1),o;if(i)throw new Error("too few values provided for key `"+e+"`")}else if(i)throw new Error("no values provided for key `"+e+"`")},s=function(t,e,i){var r,o;if(Array.isArray(t)){for(r=-1,o=t.length;++r<o;)if(s(t[r],e,i))return!0;return!1}switch(t.tag){case"wildcard":return null!=c(e,"_",i,!1);case"named":return null!=c(e,t.value,i,!1);case"static":return!1;case"optional":return s(t.value,e,i)}},g=function(t,e,i){if(Array.isArray(t))return u(t,(function(t){return g(t,e,i)}));switch(t.tag){case"wildcard":return c(e,"_",i,!0);case"named":return c(e,t.value,i,!0);case"static":return t.value;case"optional":return s(t.value,e,i)?g(t.value,e,i):""}},(e=function(t,s){var o,n,l;if(t instanceof e)return this.isRegex=t.isRegex,this.regex=t.regex,this.ast=t.ast,void(this.names=t.names);if(this.isRegex=t instanceof RegExp,"string"!=typeof t&&!this.isRegex)throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=t,null!=s){if(!Array.isArray(s))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(o=p(this.regex),s.length!==o)throw new Error("regex contains "+o+" groups but array of group names contains "+s.length);this.names=s}}else{if(""===t)throw new Error("argument must not be the empty string");if(t.replace(/\s+/g,"")!==t)throw new Error("argument must not contain whitespace");if(n={escapeChar:(null!=s?s.escapeChar:void 0)||a.escapeChar,segmentNameStartChar:(null!=s?s.segmentNameStartChar:void 0)||a.segmentNameStartChar,segmentNameCharset:(null!=s?s.segmentNameCharset:void 0)||a.segmentNameCharset,segmentValueCharset:(null!=s?s.segmentValueCharset:void 0)||a.segmentValueCharset,optionalSegmentStartChar:(null!=s?s.optionalSegmentStartChar:void 0)||a.optionalSegmentStartChar,optionalSegmentEndChar:(null!=s?s.optionalSegmentEndChar:void 0)||a.optionalSegmentEndChar,wildcardChar:(null!=s?s.wildcardChar:void 0)||a.wildcardChar},null==(l=d(n).pattern(t)))throw new Error("couldn't parse pattern");if(""!==l.rest)throw new Error("could only partially parse pattern");this.ast=l.value,this.regex=new RegExp(r(this.ast,n.segmentValueCharset)),this.names=i(this.ast)}}).prototype.match=function(t){var e,s;return null==(s=this.regex.exec(t))?null:(e=s.slice(1),this.names?h(this.names,e):e)},e.prototype.stringify=function(t){if(null==t&&(t={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(t!==Object(t))throw new Error("argument must be an object or undefined");return g(this.ast,t,{})},e.escapeForRegex=l,e.concatMap=n,e.stringConcatMap=u,e.regexGroupCount=p,e.keysAndValuesToObject=h,e.P=t,e.newParser=d,e.defaultOptions=a,e.astNodeToRegexString=r,e.astNodeToNames=i,e.getParam=c,e.astNodeContainsSegmentsForProvidedParams=s,e.stringify=g,e},null!==Ni.exports?ji.exports=Ii():Mi.UrlPattern=Ii();const zi=Ei(Ni.exports);var Ri=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,Ui=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Fi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ri(e,s,o),o};let Vi=class extends(he(ue(Zt))){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",ye.onChange(this),super.connectedCallback()}disconnectedCallback(){ye.offChange(this),super.disconnectedCallback()}set location(t){this._location=t,this.requestUpdate()}get location(){return this._location}render(){const t=[];for(const s of this.templatePartsList){const i=s.getAttribute(this.templateValueAttribute)||"";if(new RegExp(i).test(this.location))t.push(s);else try{new zi("(/)*"+i+"*").match(this.location)&&(s.setAttribute("mode","patternMatching"),t.push(s))}catch(e){-1!=this.location.indexOf(i.replace(document.location.origin,""))&&t.push(s)}}if(0==t.length){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const e=this.templatePartsList.find((t=>t.hasAttribute("data-fallback")));e&&t.push(e)}return pt`${Ye(t,((t,e)=>e+(new Date).getTime()),(t=>{var e;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let s="";const i=t.getAttribute("dataProviderExpression")||"";if("patternMatching"==t.getAttribute("mode")){const e=new zi("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");s=new zi(i).stringify(e.match(this.location))}else{const r=new RegExp(t.getAttribute(this.templateValueAttribute)||""),o=(this.location+"").match(r);o&&(s=(null==(e=o.shift())?void 0:e.replace(r,i))||"")}return pt`<div style="display:contents" dataProvider="${s}">${ei(t)}</div>`}return ei(t)}))}`}};Ui([F({type:String})],Vi.prototype,"fallBackRoute",2),Ui([F()],Vi.prototype,"location",1),Vi=Ui([b("sonic-router")],Vi);var Bi=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor;let qi=class extends(he(Zt)){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded"))return void ye.changeFromComponent(this);if(!this.props)return;const t=this.getAttribute("onData").split("."),e=g.traverse(this.props,t);!e||g.isObject(e)&&e||ye.changeFromComponent(this)}};qi=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Hi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Bi(e,s,o),o})([b("sonic-redirect")],qi);var Wi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,Zi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ki(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Wi(e,s,o),o};let Yi=class extends(he(ue(Zt))){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=t=>{this.state=t,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const t=this.statePath.split(".");for(const e of t)this.statePublisher=this.statePublisher[e];this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){var t;this.statePath&&(null==(t=this.statePublisher)||t.offAssign(this.onAssign)),super.disconnectedCallback()}render(){const t=[];let e=this.state;(!Array.isArray(e)&&g.isObject(e)||void 0===e)&&(e="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),r=e;this.inverted&&(r=i,i=e),""==i&&(i=this.inverted?".*?":"^$");if(new RegExp(i).test(r))t.push(s),s.removeAttribute("mode");else{const e=new zi(i);e.names.length>0&&e.match(r)&&(s.setAttribute("mode","patternMatching"),t.push(s))}}return pt`${Ye(t,((t,e)=>e+(new Date).getTime()),(t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){const i=t.getAttribute("dataProviderExpression");let r="",o=e,n=t.getAttribute(this.templateValueAttribute);if(this.inverted&&(o=n,n=e),""==n&&(n=this.inverted?"*":"^$"),"patternMatching"==t.getAttribute("mode")){const t=new zi(n);r=new zi(i).stringify(t.match(o))}else{const t=new RegExp(n),e=(o+"").match(t);e&&(r=null==(s=e.shift())?void 0:s.replace(t,i))}return pt`<div style="display:contents" dataProvider="${r}">${ei(t)}</div>`}return ei(t)}))}`}};Zi([F()],Yi.prototype,"state",2),Zi([F({type:Boolean,reflect:!0})],Yi.prototype,"inverted",2),Yi=Zi([b("sonic-states")],Yi);var Gi=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor;let Ji=class extends Zt{createRenderRoot(){return this}render(){return pt`<slot></slot>`}};Ji=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Qi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Gi(e,s,o),o})([b("sonic-scope")],Ji);var Xi=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,er=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?tr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Xi(e,s,o),o};let sr=class extends(he(Zt)){constructor(){super(...arguments),this.text="Example"}render(){return pt`<div>${this.text}</div>`}};er([F()],sr.prototype,"text",2),sr=er([b("sonic-example")],sr);const ir={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class rr{async transform(t,e){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const s in e.library)this.sduiDescriptor.library[s]=e.library[s];for(const s of e.transforms)this.transformAction(s)}transformAction(t){const e=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,e)}getNodesMatchingPatterns(t,e){if(!t)return[];if(!e)return[];const s=e.nodes;if(!s)return[];let i=[],r=0;for(const o of t)for(const t of s)this.nodeMatchesPattern(o,t)&&i.push({parent:e,child:t,index:r}),i=i.concat(this.getNodesMatchingPatterns([o],t)),r++;return i}stringMatchesExpression(t,e){return!e||t&&t.match(e)}nodeMatchesPattern(t,e){const s=t,i=e,r=["libraryKey","innerHTML","prefix","suffix","markup"];for(const a of r)if(!this.stringMatchesExpression(i[a],s[a]))return!1;const o=t.attributes,n=e.attributes;if(o&&!n)return!1;if(o)for(const a in o)if(!n||!this.stringMatchesExpression(n[a],o[a]))return!1;return!0}unwrap(t,e){var s,i;for(const r of e)null==(s=r.parent.nodes)||s.splice(r.parent.nodes.indexOf(r.child),1),r.child.nodes&&(null==(i=r.parent.nodes)||i.splice(r.parent.nodes.indexOf(r.child),0,...r.child.nodes))}wrap(t,e){var s,i,r,o,n,a;const l={...t.ui};l.nodes||(l.nodes=[]);let c=0;for(const d of e)null==(s=l.nodes)||s.push(d.child),c>0&&(null==(i=d.parent.nodes)||i.splice(d.parent.nodes.indexOf(d.child),1)),c++;const h=null==(o=null==(r=e[0])?void 0:r.parent.nodes)?void 0:o.indexOf(e[0].child);h&&(null==(n=e[0].parent.nodes)||n.splice(h,1),null==(a=e[0].parent.nodes)||a.splice(h,0,l))}move(t,e){var s,i;for(const r of e){null==(s=r.parent.nodes)||s.splice(r.parent.nodes.indexOf(r.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const o=e[0];o&&(null==(i=o.parent.nodes)||i.splice(o.parent.nodes.indexOf(o.child)+(t.after?1:0),0,r.child))}}remap(t,e){var s,i,r;for(const o of e){const e={...t.ui};e.attributes||(e.attributes={});const n=o.child.attributes;if(n)for(const t in n)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[t]=n[t]);const a=["libraryKey","innerHTML","prefix","suffix","markup"],l=o.child,c=e;for(const t of a)!Object.prototype.hasOwnProperty.call(e,t)&&l[t]&&(c[t]=l[t]);e.nodes||(e.nodes=[]);const h=o.child.nodes;if(h)for(const t of h)e.nodes.push(t);const d=(null==(s=o.parent.nodes)?void 0:s.indexOf(o.child))||-1;-1!=d&&(null==(i=o.parent.nodes)||i.splice(d,1),null==(r=o.parent.nodes)||r.splice(d,0,e))}}delete(t,e){var s;for(const i of e)null==(s=i.parent.nodes)||s.splice(i.parent.nodes.indexOf(i.child),1)}insert(t,e){var s;const i=t.after?"after":t.before?"before":"in";e=[],t.after?e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(e=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const r=e[0];r&&("in"==i?(r.child.nodes||(r.child.nodes=[]),r.child.nodes.push({...t.ui})):null==(s=r.parent.nodes)||s.splice(r.parent.nodes.indexOf(r.child)+("after"==i?1:0),0,{...t.ui}))}}var or=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,ar=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?nr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&or(e,s,o),o};let lr=class extends(Ys(Xs(Zt))){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(t){null==this.props&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(t)}async updateContents(){if(!this.sduiDescriptor)return;const t={};Object.assign(t,ir,this.sduiDescriptor.library),this.sduiDescriptor.library=t,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter((t=>"SLOT"!=t.nodeName)).length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const t of this.sduiDescriptor.js)Ee.loadJS(t);if(this.sduiDescriptor.css)for(const t of this.sduiDescriptor.css)Ee.loadCSS(t)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await fetch(this.getAttribute("transformation")),e=await t.json(),s=new rr;await s.transform(this.sduiDescriptor,e)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await fetch(this.getAttribute("library")),e=await t.json();this.sduiDescriptor.library=e}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let t=this.sduiDescriptor.nodes;t||(t=[]);const e={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(e.attributes={subDataProvider:this.messagesKey}),t.push(e),t.forEach((t=>this.appendChild(this.parseChild(t))))}parseChild(t){const e=t.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(t,e);if(this.handleAttributes(t,s),s=this.handleMarkup(t,s),i||(i=s),this.handleChildNodes(t,i,s),this.handleInnerHTML(t,i),t.prefix||t.suffix){return this.handlePrefixSuffix(t,s)}return s}handlePrefixSuffix(t,e){const s=document.createElement("div");return s.innerHTML=(t.prefix||"")+e.outerHTML+(t.suffix||""),s.style.display="contents",s}handleChildNodes(t,e,s){if(t.nodes){const i=t.nodes;for(const t of i){const i=this.parseChild(t);let r=e;if(t.parentElementSelector&&(r=s.querySelector(t.parentElementSelector)||e),r.shadowRoot)r.shadowRoot.appendChild(i);else if("template"==r.tagName.toLocaleLowerCase()){r.content.appendChild(i)}else r.appendChild(i)}}}handleLibrary(t,e){let s,i;if(t.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[t.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[t.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(e);return{element:s,contentElement:i}}handleAttributes(t,e){const s=t.attributes;for(const i in s){const t=s[i],r=Me.isObject(t)?JSON.stringify(t):t;e.setAttribute(i,r)}}handleMarkup(t,e){return t.markup&&((e=document.createElement("div")).style.display="contents",e.innerHTML=t.markup),e}handleInnerHTML(t,e){var s;if(t.innerHTML)if(-1!=t.innerHTML.indexOf("wording_")){const i=this.getAncestorAttributeValue("wordingProvider");null==(s=this.api)||s.post(i,{labels:[t.innerHTML.substring(8)]}).then((t=>{e&&(e.innerHTML+=t)}))}else e&&(e.innerHTML+=t.innerHTML)}};ar([F()],lr.prototype,"sduiKey",2),ar([F()],lr.prototype,"messagesKey",2),lr=ar([b("sonic-sdui")],lr);var cr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,dr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?hr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&cr(e,s,o),o};let pr=class extends(Xs(Zt)){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(t){this._composition=t,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const t=this.listeners;this.listeners=[],t.forEach((t=>{this.publisher.offAssign(t.subscriber)}))}parseComposition(t,e){if(t)for(const s in t){const i=t[s];if("string"==typeof i){const t=i.split("."),r=t.shift();if(!r)continue;let o=Te.get(r);o=Me.traverse(o,t);const n={publisher:o,subscriber:t=>{e[s]=t}};this.listeners.push(n),o.onAssign(n.subscriber),e._proxies_.set(s,o)}else{this.publisher[s]={};const t=new n({},e);e._proxies_.set(s,t);const r={publisher:t,subscriber:t=>{e[s]=t}};this.listeners.push(r),t.onAssign(r.subscriber),this.parseComposition(i,t)}}}render(){return pt`<slot></slot>`}};pr.styles=[x`
1124
+ `,zi([F({type:String})],Ri.prototype,"submitResultKey",2),zi([F({type:Boolean})],Ri.prototype,"disabled",2),zi([F({type:String})],Ri.prototype,"endPoint",2),zi([F()],Ri.prototype,"name",2),zi([F()],Ri.prototype,"value",2),Ri=zi([b("sonic-submit")],Ri);var Fi=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Vi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ui(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Fi(e,s,o),o};let Bi=class extends(he(ue(Zt))){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",ye.onChange(this),super.connectedCallback()}disconnectedCallback(){ye.offChange(this),super.disconnectedCallback()}set location(t){this._location=t,this.requestUpdate()}get location(){return this._location}render(){const t=[];for(const s of this.templatePartsList){const i=s.getAttribute(this.templateValueAttribute)||"";if(new RegExp(i).test(this.location))t.push(s);else try{new Ie("(/)*"+i+"*").match(this.location)&&(s.setAttribute("mode","patternMatching"),t.push(s))}catch(e){-1!=this.location.indexOf(i.replace(document.location.origin,""))&&t.push(s)}}if(0==t.length){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const e=this.templatePartsList.find((t=>t.hasAttribute("data-fallback")));e&&t.push(e)}return pt`${rs(t,((t,e)=>e+(new Date).getTime()),(t=>{var e;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let s="";const i=t.getAttribute("dataProviderExpression")||"";if("patternMatching"==t.getAttribute("mode")){const e=new Ie("(/)*"+(t.getAttribute(this.templateValueAttribute)||"")+"*");s=new Ie(i).stringify(e.match(this.location))}else{const r=new RegExp(t.getAttribute(this.templateValueAttribute)||""),o=(this.location+"").match(r);o&&(s=(null==(e=o.shift())?void 0:e.replace(r,i))||"")}return pt`<div style="display:contents" dataProvider="${s}">${hi(t)}</div>`}return hi(t)}))}`}};Vi([F({type:String})],Bi.prototype,"fallBackRoute",2),Vi([F()],Bi.prototype,"location",1),Bi=Vi([b("sonic-router")],Bi);var Hi=Object.defineProperty,qi=Object.getOwnPropertyDescriptor;let Wi=class extends(he(Zt)){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded"))return void ye.changeFromComponent(this);if(!this.props)return;const t=this.getAttribute("onData").split("."),e=g.traverse(this.props,t);!e||g.isObject(e)&&e||ye.changeFromComponent(this)}};Wi=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?qi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Hi(e,s,o),o})([b("sonic-redirect")],Wi);var Ki=Object.defineProperty,Zi=Object.getOwnPropertyDescriptor,Yi=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Zi(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ki(e,s,o),o};let Gi=class extends(he(ue(Zt))){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=t=>{this.state=t,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const t=this.statePath.split(".");for(const e of t)this.statePublisher=this.statePublisher[e];this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){var t;this.statePath&&(null==(t=this.statePublisher)||t.offAssign(this.onAssign)),super.disconnectedCallback()}render(){const t=[];let e=this.state;(!Array.isArray(e)&&g.isObject(e)||void 0===e)&&(e="");for(const s of this.templatePartsList){let i=s.getAttribute(this.templateValueAttribute),r=e;this.inverted&&(r=i,i=e),""==i&&(i=this.inverted?".*?":"^$");if(new RegExp(i).test(r))t.push(s),s.removeAttribute("mode");else{const e=new Ie(i);e.names.length>0&&e.match(r)&&(s.setAttribute("mode","patternMatching"),t.push(s))}}return pt`${rs(t,((t,e)=>e+(new Date).getTime()),(t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){const i=t.getAttribute("dataProviderExpression");let r="",o=e,n=t.getAttribute(this.templateValueAttribute);if(this.inverted&&(o=n,n=e),""==n&&(n=this.inverted?"*":"^$"),"patternMatching"==t.getAttribute("mode")){const t=new Ie(n);r=new Ie(i).stringify(t.match(o))}else{const t=new RegExp(n),e=(o+"").match(t);e&&(r=null==(s=e.shift())?void 0:s.replace(t,i))}return pt`<div style="display:contents" dataProvider="${r}">${hi(t)}</div>`}return hi(t)}))}`}};Yi([F()],Gi.prototype,"state",2),Yi([F({type:Boolean,reflect:!0})],Gi.prototype,"inverted",2),Gi=Yi([b("sonic-states")],Gi);var Qi=Object.defineProperty,Ji=Object.getOwnPropertyDescriptor;let Xi=class extends Zt{createRenderRoot(){return this}render(){return pt`<slot></slot>`}};Xi=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ji(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Qi(e,s,o),o})([b("sonic-scope")],Xi);var tr=Object.defineProperty,er=Object.getOwnPropertyDescriptor,sr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?er(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&tr(e,s,o),o};let ir=class extends(he(Zt)){constructor(){super(...arguments),this.text="Example"}render(){return pt`<div>${this.text}</div>`}};sr([F()],ir.prototype,"text",2),ir=sr([b("sonic-example")],ir);const rr={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class or{async transform(t,e){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const s in e.library)this.sduiDescriptor.library[s]=e.library[s];for(const s of e.transforms)this.transformAction(s)}transformAction(t){const e=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,e)}getNodesMatchingPatterns(t,e){if(!t)return[];if(!e)return[];const s=e.nodes;if(!s)return[];let i=[],r=0;for(const o of t)for(const t of s)this.nodeMatchesPattern(o,t)&&i.push({parent:e,child:t,index:r}),i=i.concat(this.getNodesMatchingPatterns([o],t)),r++;return i}stringMatchesExpression(t,e){return!e||t&&t.match(e)}nodeMatchesPattern(t,e){const s=t,i=e,r=["libraryKey","innerHTML","prefix","suffix","markup"];for(const a of r)if(!this.stringMatchesExpression(i[a],s[a]))return!1;const o=t.attributes,n=e.attributes;if(o&&!n)return!1;if(o)for(const a in o)if(!n||!this.stringMatchesExpression(n[a],o[a]))return!1;return!0}unwrap(t,e){var s,i;for(const r of e)null==(s=r.parent.nodes)||s.splice(r.parent.nodes.indexOf(r.child),1),r.child.nodes&&(null==(i=r.parent.nodes)||i.splice(r.parent.nodes.indexOf(r.child),0,...r.child.nodes))}wrap(t,e){var s,i,r,o,n,a;const l={...t.ui};l.nodes||(l.nodes=[]);let c=0;for(const d of e)null==(s=l.nodes)||s.push(d.child),c>0&&(null==(i=d.parent.nodes)||i.splice(d.parent.nodes.indexOf(d.child),1)),c++;const h=null==(o=null==(r=e[0])?void 0:r.parent.nodes)?void 0:o.indexOf(e[0].child);h&&(null==(n=e[0].parent.nodes)||n.splice(h,1),null==(a=e[0].parent.nodes)||a.splice(h,0,l))}move(t,e){var s,i;for(const r of e){null==(s=r.parent.nodes)||s.splice(r.parent.nodes.indexOf(r.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const o=e[0];o&&(null==(i=o.parent.nodes)||i.splice(o.parent.nodes.indexOf(o.child)+(t.after?1:0),0,r.child))}}remap(t,e){var s,i,r;for(const o of e){const e={...t.ui};e.attributes||(e.attributes={});const n=o.child.attributes;if(n)for(const t in n)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[t]=n[t]);const a=["libraryKey","innerHTML","prefix","suffix","markup"],l=o.child,c=e;for(const t of a)!Object.prototype.hasOwnProperty.call(e,t)&&l[t]&&(c[t]=l[t]);e.nodes||(e.nodes=[]);const h=o.child.nodes;if(h)for(const t of h)e.nodes.push(t);const d=(null==(s=o.parent.nodes)?void 0:s.indexOf(o.child))||-1;-1!=d&&(null==(i=o.parent.nodes)||i.splice(d,1),null==(r=o.parent.nodes)||r.splice(d,0,e))}}delete(t,e){var s;for(const i of e)null==(s=i.parent.nodes)||s.splice(i.parent.nodes.indexOf(i.child),1)}insert(t,e){var s;const i=t.after?"after":t.before?"before":"in";e=[],t.after?e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(e=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const r=e[0];r&&("in"==i?(r.child.nodes||(r.child.nodes=[]),r.child.nodes.push({...t.ui})):null==(s=r.parent.nodes)||s.splice(r.parent.nodes.indexOf(r.child)+("after"==i?1:0),0,{...t.ui}))}}var nr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,lr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ar(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&nr(e,s,o),o};let cr=class extends(ri(li(Zt))){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(t){null==this.props&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(t)}async updateContents(){if(!this.sduiDescriptor)return;const t={};Object.assign(t,rr,this.sduiDescriptor.library),this.sduiDescriptor.library=t,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter((t=>"SLOT"!=t.nodeName)).length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const t of this.sduiDescriptor.js)Fe.loadJS(t);if(this.sduiDescriptor.css)for(const t of this.sduiDescriptor.css)Fe.loadCSS(t)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await fetch(this.getAttribute("transformation")),e=await t.json(),s=new or;await s.transform(this.sduiDescriptor,e)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await fetch(this.getAttribute("library")),e=await t.json();this.sduiDescriptor.library=e}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let t=this.sduiDescriptor.nodes;t||(t=[]);const e={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(e.attributes={subDataProvider:this.messagesKey}),t.push(e),t.forEach((t=>this.appendChild(this.parseChild(t))))}parseChild(t){const e=t.tagName||"div";let{element:s,contentElement:i}=this.handleLibrary(t,e);if(this.handleAttributes(t,s),s=this.handleMarkup(t,s),i||(i=s),this.handleChildNodes(t,i,s),this.handleInnerHTML(t,i),t.prefix||t.suffix){return this.handlePrefixSuffix(t,s)}return s}handlePrefixSuffix(t,e){const s=document.createElement("div");return s.innerHTML=(t.prefix||"")+e.outerHTML+(t.suffix||""),s.style.display="contents",s}handleChildNodes(t,e,s){if(t.nodes){const i=t.nodes;for(const t of i){const i=this.parseChild(t);let r=e;if(t.parentElementSelector&&(r=s.querySelector(t.parentElementSelector)||e),r.shadowRoot)r.shadowRoot.appendChild(i);else if("template"==r.tagName.toLocaleLowerCase()){r.content.appendChild(i)}else r.appendChild(i)}}}handleLibrary(t,e){let s,i;if(t.libraryKey&&this.sduiDescriptor.library){s=this.parseChild(this.sduiDescriptor.library[t.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[t.libraryKey]||{}).contentElementSelector;e&&(i=s.querySelector(e))}else s=document.createElement(e);return{element:s,contentElement:i}}handleAttributes(t,e){const s=t.attributes;for(const i in s){const t=s[i],r=Ve.isObject(t)?JSON.stringify(t):t;e.setAttribute(i,r)}}handleMarkup(t,e){return t.markup&&((e=document.createElement("div")).style.display="contents",e.innerHTML=t.markup),e}handleInnerHTML(t,e){var s;if(t.innerHTML)if(-1!=t.innerHTML.indexOf("wording_")){const i=this.getAncestorAttributeValue("wordingProvider");null==(s=this.api)||s.post(i,{labels:[t.innerHTML.substring(8)]}).then((t=>{e&&(e.innerHTML+=t)}))}else e&&(e.innerHTML+=t.innerHTML)}};lr([F()],cr.prototype,"sduiKey",2),lr([F()],cr.prototype,"messagesKey",2),cr=lr([b("sonic-sdui")],cr);var hr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,pr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?dr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&hr(e,s,o),o};let ur=class extends(li(Zt)){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(t){this._composition=t,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const t=this.listeners;this.listeners=[],t.forEach((t=>{this.publisher.offAssign(t.subscriber)}))}parseComposition(t,e){if(t)for(const s in t){const i=t[s];if("string"==typeof i){const t=i.split("."),r=t.shift();if(!r)continue;let o=He.get(r);o=Ve.traverse(o,t);const n={publisher:o,subscriber:t=>{e[s]=t}};this.listeners.push(n),o.onAssign(n.subscriber),e._proxies_.set(s,o)}else{this.publisher[s]={};const t=new n({},e);e._proxies_.set(s,t);const r={publisher:t,subscriber:t=>{e[s]=t}};this.listeners.push(r),t.onAssign(r.subscriber),this.parseComposition(i,t)}}}render(){return pt`<slot></slot>`}};ur.styles=[x`
1125
1125
  :host {
1126
1126
  display: contents;
1127
1127
  }
1128
- `],dr([F({type:Object})],pr.prototype,"composition",1),pr=dr([b("sonic-mix")],pr);var ur=Object.defineProperty,gr=Object.getOwnPropertyDescriptor;let br=class extends(Xs(Zt)){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return"object"==typeof this.props||void 0===this.props?pt`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:pt`${te(this.props.toString())}<slot name="prefix"></slot><slot></slot
1129
- ><slot name="suffix"></slot>`}};br=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?gr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ur(e,s,o),o})([b("sonic-value")],br);var mr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,vr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?fr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&mr(e,s,o),o};let yr=class extends Zt{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return pt`
1128
+ `],pr([F({type:Object})],ur.prototype,"composition",1),ur=pr([b("sonic-mix")],ur);var gr=Object.defineProperty,br=Object.getOwnPropertyDescriptor;let mr=class extends(li(Zt)){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return"object"==typeof this.props||void 0===this.props?pt`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:pt`${te(this.props.toString())}<slot name="prefix"></slot><slot></slot
1129
+ ><slot name="suffix"></slot>`}};mr=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?br(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&gr(e,s,o),o})([b("sonic-value")],mr);var fr=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,yr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?vr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&fr(e,s,o),o};let wr=class extends Zt{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return pt`
1130
1130
  <slot name="prefix"></slot>
1131
1131
  <slot></slot>
1132
1132
  <slot name="suffix"></slot>
1133
- `}};yr.styles=[Be,x`
1133
+ `}};wr.styles=[Je,x`
1134
1134
  :host {
1135
1135
  --sc-badge-gap: 0.3em;
1136
1136
  --sc-badge-py: 0.35em;
@@ -1276,28 +1276,28 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1276
1276
  slot[name="prefix"] {
1277
1277
  flex-shrink: 0;
1278
1278
  }
1279
- `],vr([F({type:String,reflect:!0})],yr.prototype,"type",2),vr([F({type:String,reflect:!0})],yr.prototype,"variant",2),vr([F({type:String,reflect:!0})],yr.prototype,"size",2),vr([F({type:Boolean,reflect:!0})],yr.prototype,"ellipsis",2),yr=vr([b("sonic-badge")],yr);class wr{static fixBlankLink(t){const e="undefined"==typeof require?null:require("electron");"_blank"==t.target&&t.addEventListener("click",(()=>{null==e||e.shell.openExternal(t.href)}))}}var xr=Object.defineProperty,_r=Object.getOwnPropertyDescriptor,kr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?_r(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&xr(e,s,o),o};let Ar=class extends Zt{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(t){this._location=t,ye.updateComponentActiveState(this)}connectedCallback(){this.href&&0!=this.href.indexOf("http")&&(ye.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",(t=>{var e,s;"Enter"===t.key&&(null==(s=null==(e=this.shadowRoot)?void 0:e.querySelector("a"))||s.click())})),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){ye.offChange(this),super.disconnectedCallback()}set target(t){this._target=t,wr.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(t){t.preventDefault(),ye.changeFromComponent(this)}updated(t){t.has("href")&&this.setFocusable()}render(){return this.href?pt`
1279
+ `],yr([F({type:String,reflect:!0})],wr.prototype,"type",2),yr([F({type:String,reflect:!0})],wr.prototype,"variant",2),yr([F({type:String,reflect:!0})],wr.prototype,"size",2),yr([F({type:Boolean,reflect:!0})],wr.prototype,"ellipsis",2),wr=yr([b("sonic-badge")],wr);class xr{static fixBlankLink(t){const e="undefined"==typeof require?null:require("electron");"_blank"==t.target&&t.addEventListener("click",(()=>{null==e||e.shell.openExternal(t.href)}))}}var _r=Object.defineProperty,kr=Object.getOwnPropertyDescriptor,Ar=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?kr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&_r(e,s,o),o};let Pr=class extends Zt{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(t){this._location=t,ye.updateComponentActiveState(this)}connectedCallback(){this.href&&0!=this.href.indexOf("http")&&(ye.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",(t=>{var e,s;"Enter"===t.key&&(null==(s=null==(e=this.shadowRoot)?void 0:e.querySelector("a"))||s.click())})),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){ye.offChange(this),super.disconnectedCallback()}set target(t){this._target=t,xr.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(t){t.preventDefault(),ye.changeFromComponent(this)}updated(t){t.has("href")&&this.setFocusable()}render(){return this.href?pt`
1280
1280
  <a
1281
1281
  href="${this.href}"
1282
1282
  aria-label=${this.ariaLabel||gt}
1283
- target=${Ve(this.target)}
1283
+ target=${Qe(this.target)}
1284
1284
  @click=${this.pushState?this.handlePushState:null}
1285
1285
  >
1286
1286
  <slot></slot>
1287
1287
  </a>
1288
- `:pt`<slot></slot>`}};Ar.styles=[x`
1288
+ `:pt`<slot></slot>`}};Pr.styles=[x`
1289
1289
  a {
1290
1290
  color: inherit;
1291
1291
  text-decoration: none;
1292
1292
  display: contents;
1293
1293
  }
1294
- `],kr([F({type:String})],Ar.prototype,"href",2),kr([F({type:String,attribute:"data-aria-label"})],Ar.prototype,"ariaLabel",2),kr([F({type:String})],Ar.prototype,"autoActive",2),kr([F({type:String})],Ar.prototype,"target",1),kr([F({type:Boolean})],Ar.prototype,"pushState",2),Ar=kr([b("sonic-link")],Ar);var Pr=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,Sr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Cr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Pr(e,s,o),o};let $r=class extends Zt{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default",this.size="md"}render(){return pt`
1295
- <progress value=${Ve(this.value)} max=${this.max}></progress>
1294
+ `],Ar([F({type:String})],Pr.prototype,"href",2),Ar([F({type:String,attribute:"data-aria-label"})],Pr.prototype,"ariaLabel",2),Ar([F({type:String})],Pr.prototype,"autoActive",2),Ar([F({type:String})],Pr.prototype,"target",1),Ar([F({type:Boolean})],Pr.prototype,"pushState",2),Pr=Ar([b("sonic-link")],Pr);var Cr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,$r=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Sr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Cr(e,s,o),o};let Or=class extends Zt{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default",this.size="md"}render(){return pt`
1295
+ <progress value=${Qe(this.value)} max=${this.max}></progress>
1296
1296
  <div class="slot-container">
1297
1297
  <slot></slot>
1298
1298
  <slot name="remaining"></slot>
1299
1299
  </div>
1300
- `}};$r.styles=[Be,x`
1300
+ `}};Or.styles=[Je,x`
1301
1301
  :host {
1302
1302
  --sc-progress-bg: var(--sc-input-bg, var(--sc-base-100, #f5f5f5));
1303
1303
  --sc-progress-color: var(--sc-base-content, #1f2937);
@@ -1400,7 +1400,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1400
1400
  gap: 0.5em;
1401
1401
  margin-top: 0.15em;
1402
1402
  }
1403
- `],Sr([F({type:Number})],$r.prototype,"value",2),Sr([F({type:Number})],$r.prototype,"max",2),Sr([F({type:Boolean})],$r.prototype,"invert",2),Sr([F({type:String,reflect:!0})],$r.prototype,"type",2),Sr([F({type:String,reflect:!0})],$r.prototype,"size",2),$r=Sr([b("sonic-progress")],$r);const Or=x`
1403
+ `],$r([F({type:Number})],Or.prototype,"value",2),$r([F({type:Number})],Or.prototype,"max",2),$r([F({type:Boolean})],Or.prototype,"invert",2),$r([F({type:String,reflect:!0})],Or.prototype,"type",2),$r([F({type:String,reflect:!0})],Or.prototype,"size",2),Or=$r([b("sonic-progress")],Or);const Dr=x`
1404
1404
  .password-toggle {
1405
1405
  color: var(--sc-input-c);
1406
1406
  font-size: var(--sc-input-fs);
@@ -1411,7 +1411,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1411
1411
  :host([inlineContent]) .has-suffix .password-toggle {
1412
1412
  margin-right: 0;
1413
1413
  }
1414
- `,Dr=x`
1414
+ `,Lr=x`
1415
1415
  :host {
1416
1416
  --sc-label-fs: var(--sc-fs, 1rem);
1417
1417
  --sc-label-fw: var(--sc-label-font-weight);
@@ -1425,14 +1425,14 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1425
1425
  margin-bottom: 0.22em;
1426
1426
  display: block;
1427
1427
  }
1428
- `,Lr=x`
1428
+ `,Er=x`
1429
1429
  .form-description {
1430
1430
  color: var(--sc-base-400);
1431
1431
  font-size: 0.85em;
1432
1432
  margin-top: 0.2em;
1433
1433
  display: block;
1434
1434
  }
1435
- `,Er=x`
1435
+ `,jr=x`
1436
1436
  * {
1437
1437
  box-sizing: border-box;
1438
1438
  }
@@ -1779,7 +1779,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1779
1779
  * @license
1780
1780
  * Copyright 2018 Google LLC
1781
1781
  * SPDX-License-Identifier: BSD-3-Clause
1782
- */,jr=Rt(class extends Ft{constructor(t){var e;if(super(t),t.type!==Nt||"class"!==t.name||(null==(e=t.strings)?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var s,i;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null==(s=this.st)?void 0:s.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;for(const o of this.it)o in e||(r.remove(o),this.it.delete(o));for(const o in e){const t=!!e[o];t===this.it.has(o)||(null==(i=this.st)?void 0:i.has(o))||(t?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return ut}});var Mr=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor,Tr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ir(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Mr(e,s,o),o};let Nr=class extends(Zs(Se(he(Zt)))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const t=this.getFormPublisher();if(!t)return;t[this.sameValueAsName].onAssign(this.sameValueAsHandle)}"password"==this.type&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const t=this.getFormPublisher();if(!t)return;t[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}setSelectionRange(t,e){this.input.setSelectionRange(t,e)}hasSlotOrProps(){var t,e,s,i;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(s=this.slotSuffixNodes)?void 0:s.length),this.hasPrefix=!!(null==(i=this.slotPrefixNodes)?void 0:i.length)}inlineContentFocus(){var t;this.inlineContent&&!this.disableInlineContentFocus&&(null==(t=this.input)||t.focus())}handleChange(t){this.hasAttribute("inputDelayMs")?(this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout((()=>super.handleChange(t)),parseInt(this.getAttribute("inputDelayMs")))):super.handleChange(t)}togglePasswordVisibility(){this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return pt`
1782
+ */,Mr=Rt(class extends Ft{constructor(t){var e;if(super(t),t.type!==Nt||"class"!==t.name||(null==(e=t.strings)?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var s,i;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null==(s=this.st)?void 0:s.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;for(const o of this.it)o in e||(r.remove(o),this.it.delete(o));for(const o in e){const t=!!e[o];t===this.it.has(o)||(null==(i=this.st)?void 0:i.has(o))||(t?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return ut}});var Ir=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Nr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Tr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ir(e,s,o),o};let zr=class extends(ii(Se(he(Zt)))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const t=this.getFormPublisher();if(!t)return;t[this.sameValueAsName].onAssign(this.sameValueAsHandle)}"password"==this.type&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const t=this.getFormPublisher();if(!t)return;t[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}setSelectionRange(t,e){this.input.setSelectionRange(t,e)}hasSlotOrProps(){var t,e,s,i;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(s=this.slotSuffixNodes)?void 0:s.length),this.hasPrefix=!!(null==(i=this.slotPrefixNodes)?void 0:i.length)}inlineContentFocus(){var t;this.inlineContent&&!this.disableInlineContentFocus&&(null==(t=this.input)||t.focus())}handleChange(t){this.hasAttribute("inputDelayMs")?(this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout((()=>super.handleChange(t)),parseInt(this.getAttribute("inputDelayMs")))):super.handleChange(t)}togglePasswordVisibility(){this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return pt`
1783
1783
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1784
1784
  >${this.label?te(this.label):""}<slot
1785
1785
  name="label"
@@ -1787,34 +1787,34 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1787
1787
  ></slot
1788
1788
  ></label>
1789
1789
 
1790
- <div @click=${this.inlineContentFocus} class="form-control ${jr(t)}">
1790
+ <div @click=${this.inlineContentFocus} class="form-control ${Mr(t)}">
1791
1791
  <div part="content" class="${this.inlineContent?"form-element form-element-wrapper":"contents"}">
1792
1792
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
1793
1793
  <input
1794
1794
  part="input"
1795
- id=${Ve(this.id||"form-element")}
1795
+ id=${Qe(this.id||"form-element")}
1796
1796
  part="input"
1797
1797
  class="form-element input"
1798
1798
  @input=${this.handleChange}
1799
1799
  @blur=${this.handleBlur}
1800
1800
  type=${this.type}
1801
- disabled=${Ve(this.disabled)}
1801
+ disabled=${Qe(this.disabled)}
1802
1802
  ?readonly=${this.readonly}
1803
1803
  ?autofocus=${this.autofocus}
1804
- list=${Ve(this.list)}
1805
- tabindex=${Ve(this.tabindex)}
1806
- pattern=${Ve(this.pattern)}
1807
- min=${Ve(this.min)}
1808
- max=${Ve(this.max)}
1809
- step=${Ve(this.step)}
1810
- src=${Ve(this.src)}
1811
- minlength=${Ve(this.minlength)}
1812
- maxlength=${Ve(this.maxlength)}
1813
- placeholder=${Ve(this.placeholder)}
1814
- required=${Ve(this.required)}
1815
- autocomplete=${Ve(this.autocomplete)}
1816
- aria-label=${Ve(this.ariaLabel)}
1817
- aria-labelledby=${Ve(this.ariaLabelledby)}
1804
+ list=${Qe(this.list)}
1805
+ tabindex=${Qe(this.tabindex)}
1806
+ pattern=${Qe(this.pattern)}
1807
+ min=${Qe(this.min)}
1808
+ max=${Qe(this.max)}
1809
+ step=${Qe(this.step)}
1810
+ src=${Qe(this.src)}
1811
+ minlength=${Qe(this.minlength)}
1812
+ maxlength=${Qe(this.maxlength)}
1813
+ placeholder=${Qe(this.placeholder)}
1814
+ required=${Qe(this.required)}
1815
+ autocomplete=${Qe(this.autocomplete)}
1816
+ aria-label=${Qe(this.ariaLabel)}
1817
+ aria-labelledby=${Qe(this.ariaLabelledby)}
1818
1818
  .name=${this.name}
1819
1819
  .value=${this.value}
1820
1820
  />
@@ -1839,7 +1839,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1839
1839
  >${this.description?pt`${te(this.description)}`:gt}</slot>
1840
1840
  <slot name="list"></slot>
1841
1841
  </div>
1842
- `}};Nr.styles=[Be,Er,Dr,Lr,Or,x`
1842
+ `}};zr.styles=[Je,jr,Lr,Er,Dr,x`
1843
1843
  :host([type="hidden"]) {
1844
1844
  appearance: none !important;
1845
1845
  display: none !important;
@@ -1847,7 +1847,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1847
1847
  :host > .form-control {
1848
1848
  position: relative;
1849
1849
  }
1850
- `],Tr([F({type:String,reflect:!0})],Nr.prototype,"size",2),Tr([F({type:String})],Nr.prototype,"list",2),Tr([F({type:String})],Nr.prototype,"placeholder",2),Tr([F({type:String})],Nr.prototype,"pattern",2),Tr([F({type:String})],Nr.prototype,"min",2),Tr([F({type:String})],Nr.prototype,"max",2),Tr([F({type:Boolean})],Nr.prototype,"readonly",2),Tr([F({type:Number})],Nr.prototype,"step",2),Tr([F({type:Number})],Nr.prototype,"minlength",2),Tr([F({type:Number})],Nr.prototype,"maxlength",2),Tr([F({type:String})],Nr.prototype,"src",2),Tr([F({type:Boolean,reflect:!0})],Nr.prototype,"inlineContent",2),Tr([F({type:Boolean})],Nr.prototype,"disableInlineContentFocus",2),Tr([F({type:Boolean})],Nr.prototype,"showPasswordToggle",2),Tr([q({slot:"label",flatten:!0})],Nr.prototype,"slotLabelNodes",2),Tr([q({slot:"description",flatten:!0})],Nr.prototype,"slotDescriptionNodes",2),Tr([q({slot:"suffix",flatten:!0})],Nr.prototype,"slotSuffixNodes",2),Tr([q({slot:"prefix",flatten:!0})],Nr.prototype,"slotPrefixNodes",2),Tr([B("input")],Nr.prototype,"input",2),Tr([U()],Nr.prototype,"hasDescription",2),Tr([U()],Nr.prototype,"hasLabel",2),Tr([U()],Nr.prototype,"hasSuffix",2),Tr([U()],Nr.prototype,"hasPrefix",2),Tr([U()],Nr.prototype,"isPassword",2),Nr=Tr([b("sonic-input")],Nr);var zr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Fr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Rr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&zr(e,s,o),o};let Ur=class extends Zt{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver((()=>this.computePosition(this.placement))),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame((()=>this.runPositioningLoop())))}toggle(t){if(this.open&&this.noToggle)return;const e=t;("keydown"!=t.type||"ArrowDown"==e.key&&!this.open)&&(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){s.everyAncestors(this,(t=>{const e=t;if(!e.className)return!0;if([...e.classList].includes("@container")){const s=e.style;s.zIndex="999999999";const i=getComputedStyle(e);return"relative"!==i.position&&"absolute"!==i.position&&(s.position="relative"),this.ancestorsHavingZIndex.add(t),!1}return!0}))}resetZindexes(){this.ancestorsHavingZIndex.forEach((t=>{t.style.removeProperty("position"),t.style.removeProperty("z-index")})),this.ancestorsHavingZIndex.clear()}_handleClosePop(t){const e=t.composedPath(),i=e[0];Ur.pops.forEach((r=>{const o=e.includes(r),n=e.includes(r.querySelector('[slot="content"]')),a="keep"===s.getAncestorAttributeValue(i,"data-on-select");"pointerdown"==t.type&&o||"click"==t.type&&(o&&a||!n)||r.hide()}))}connectedCallback(){super.connectedCallback(),0==Ur.pops.size&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),Ur.pops.add(this)}firstUpdated(t){super.firstUpdated(t),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){super.disconnectedCallback(),Ur.pops.delete(this),0==Ur.pops.size&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop)),this.resizeObserver.unobserve(this.popContent)}computePosition(t){var e,s,i;let r=null==(e=this.popContent)?void 0:e.getBoundingClientRect();const o=this.getBoundingClientRect(),n=o.left,a=o.top;let l=n,c=a;const h=a-r.height-8,d=n-r.width-8,p=n+o.width+8,u=a+o.height+8;switch(t){case"bottom":c=u;break;case"top":c=h;break;case"left":l=d;break;case"right":l=p}this.lastContentX+=l-r.x,this.lastContentY+=c-r.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),r=null==(s=this.popContent)?void 0:s.getBoundingClientRect(),r.x<5&&"left"==t&&(l=p),r.y<5&&"top"==t&&(c=u),r.x+r.width>window.innerWidth-5&&"right"==t&&(l=d),r.y+r.height>window.innerHeight-5&&"bottom"==t&&(c=h),this.lastContentX+=l-r.x,this.lastContentY+=c-r.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),r=null==(i=this.popContent)?void 0:i.getBoundingClientRect(),r.x<0&&(this.lastContentX+=-r.x),r.y<0&&(this.lastContentY+=-r.y),r.x+r.width>window.innerWidth&&(this.lastContentX+=window.innerWidth-(r.x+r.width)),r.y+r.height>window.innerHeight&&(this.lastContentY+=window.innerHeight-(r.y+r.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return pt`
1850
+ `],Nr([F({type:String,reflect:!0})],zr.prototype,"size",2),Nr([F({type:String})],zr.prototype,"list",2),Nr([F({type:String})],zr.prototype,"placeholder",2),Nr([F({type:String})],zr.prototype,"pattern",2),Nr([F({type:String})],zr.prototype,"min",2),Nr([F({type:String})],zr.prototype,"max",2),Nr([F({type:Boolean})],zr.prototype,"readonly",2),Nr([F({type:Number})],zr.prototype,"step",2),Nr([F({type:Number})],zr.prototype,"minlength",2),Nr([F({type:Number})],zr.prototype,"maxlength",2),Nr([F({type:String})],zr.prototype,"src",2),Nr([F({type:Boolean,reflect:!0})],zr.prototype,"inlineContent",2),Nr([F({type:Boolean})],zr.prototype,"disableInlineContentFocus",2),Nr([F({type:Boolean})],zr.prototype,"showPasswordToggle",2),Nr([q({slot:"label",flatten:!0})],zr.prototype,"slotLabelNodes",2),Nr([q({slot:"description",flatten:!0})],zr.prototype,"slotDescriptionNodes",2),Nr([q({slot:"suffix",flatten:!0})],zr.prototype,"slotSuffixNodes",2),Nr([q({slot:"prefix",flatten:!0})],zr.prototype,"slotPrefixNodes",2),Nr([B("input")],zr.prototype,"input",2),Nr([U()],zr.prototype,"hasDescription",2),Nr([U()],zr.prototype,"hasLabel",2),Nr([U()],zr.prototype,"hasSuffix",2),Nr([U()],zr.prototype,"hasPrefix",2),Nr([U()],zr.prototype,"isPassword",2),zr=Nr([b("sonic-input")],zr);var Rr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,Ur=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Fr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Rr(e,s,o),o};let Vr=class extends Zt{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver((()=>this.computePosition(this.placement))),this.ancestorsHavingZIndex=new Set}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame((()=>this.runPositioningLoop())))}toggle(t){if(this.open&&this.noToggle)return;const e=t;("keydown"!=t.type||"ArrowDown"==e.key&&!this.open)&&(this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent.style.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){s.everyAncestors(this,(t=>{const e=t;if(!e.className)return!0;if([...e.classList].includes("@container")){const s=e.style;s.zIndex="999999999";const i=getComputedStyle(e);return"relative"!==i.position&&"absolute"!==i.position&&(s.position="relative"),this.ancestorsHavingZIndex.add(t),!1}return!0}))}resetZindexes(){this.ancestorsHavingZIndex.forEach((t=>{t.style.removeProperty("position"),t.style.removeProperty("z-index")})),this.ancestorsHavingZIndex.clear()}_handleClosePop(t){const e=t.composedPath(),i=e[0];Vr.pops.forEach((r=>{const o=e.includes(r),n=e.includes(r.querySelector('[slot="content"]')),a="keep"===s.getAncestorAttributeValue(i,"data-on-select");"pointerdown"==t.type&&o||"click"==t.type&&(o&&a||!n)||r.hide()}))}connectedCallback(){super.connectedCallback(),0==Vr.pops.size&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),Vr.pops.add(this)}firstUpdated(t){super.firstUpdated(t),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){super.disconnectedCallback(),Vr.pops.delete(this),0==Vr.pops.size&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop)),this.resizeObserver.unobserve(this.popContent)}computePosition(t){var e,s,i;let r=null==(e=this.popContent)?void 0:e.getBoundingClientRect();const o=this.getBoundingClientRect(),n=o.left,a=o.top;let l=n,c=a;const h=a-r.height-8,d=n-r.width-8,p=n+o.width+8,u=a+o.height+8;switch(t){case"bottom":c=u;break;case"top":c=h;break;case"left":l=d;break;case"right":l=p}this.lastContentX+=l-r.x,this.lastContentY+=c-r.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),r=null==(s=this.popContent)?void 0:s.getBoundingClientRect(),r.x<5&&"left"==t&&(l=p),r.y<5&&"top"==t&&(c=u),r.x+r.width>window.innerWidth-5&&"right"==t&&(l=d),r.y+r.height>window.innerHeight-5&&"bottom"==t&&(c=h),this.lastContentX+=l-r.x,this.lastContentY+=c-r.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),r=null==(i=this.popContent)?void 0:i.getBoundingClientRect(),r.x<0&&(this.lastContentX+=-r.x),r.y<0&&(this.lastContentY+=-r.y),r.x+r.width>window.innerWidth&&(this.lastContentX+=window.innerWidth-(r.x+r.width)),r.y+r.height>window.innerHeight&&(this.lastContentY+=window.innerHeight-(r.y+r.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return pt`
1851
1851
  <slot @click=${this.toggle} @keydown=${this.toggle} class="contents"></slot>
1852
1852
  <slot
1853
1853
  name="content"
@@ -1857,7 +1857,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1857
1857
  class="
1858
1858
  ${this.open?"is-open":""}"
1859
1859
  ></slot>
1860
- `}};Ur.pops=new Set,Ur.styles=[x`
1860
+ `}};Vr.pops=new Set,Vr.styles=[x`
1861
1861
  :host {
1862
1862
  display: inline-block;
1863
1863
  vertical-align: middle;
@@ -1907,17 +1907,17 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1907
1907
  :host([inline]) {
1908
1908
  vertical-align: baseline;
1909
1909
  }
1910
- `],Fr([U()],Ur.prototype,"open",2),Fr([B("slot:not([name=content])")],Ur.prototype,"popBtn",2),Fr([B("slot[name=content]")],Ur.prototype,"popContent",2),Fr([F({type:Boolean})],Ur.prototype,"noToggle",2),Fr([F({type:Boolean,reflect:!0})],Ur.prototype,"inline",2),Fr([F({type:String,reflect:!0})],Ur.prototype,"shadow",2),Fr([F({type:String})],Ur.prototype,"placement",2),Ur=Fr([b("sonic-pop")],Ur);var Vr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor;let Hr=class extends Ke{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="primary"),this.hasAttribute("shape")||(this.shape="block");const t="square"===this.shape||"circle"===this.shape;this.hasAttribute("align")||t||(this.align="left"),super.connectedCallback()}};Hr=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Br(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Vr(e,s,o),o})([b("sonic-menu-item")],Hr);class qr{constructor(t,{target:e,config:s,callback:i,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(e??t),this.l=s,this.o=r??this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver((t=>{this.handleChanges(t),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){var e;this.value=null==(e=this.callback)?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Wr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Zr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Kr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Wr(e,s,o),o};let Yr=class extends(ti(Js(Qs(Xs(Zt))))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new qr(this,{}),this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=t=>{var e;if(""==t)return void(this.lastValidSearch="");!1===this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)&&(this.lastValidSearch=t,null==(e=this.searchPublisher)||e.set(this.lastValidSearch))},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=t=>{var e;const s="_self"===this.propertyName?t:t[this.propertyName||this.name];null==(e=this.formValuePublisher)||e.set(s)},this.findSearchedItem=t=>{var e;return("_self"===this.propertyName?t:t[this.propertyName||this.searchParameter||this.name])==(null==(e=this.searchPublisher)?void 0:e.get())},this.findSelection=t=>("_self"===this.propertyName?t:t[this.propertyName||this.name])==this.value,this.setSearchFromSelection=t=>{var e;this.lastValidSearch="_self"===this.propertyName?t:t[this.propertyName||this.searchParameter||this.name],null==(e=this.searchPublisher)||e.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var t,e,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=(null==(t=this.searchPublisher)?void 0:t.get())&&(null==(e=this.formValuePublisher)?void 0:e.get())&&(null==(s=this.formValuePublisher)||s.set(""))}}hasSlotOrProps(){var t;this.hasInputPrefix=!!(null==(t=this.slotInputPrefixNodes)?void 0:t.length)}connectedCallback(){var t,e,s;super.connectedCallback();const i=this.searchParameter||this.name,r=this.getAncestorAttributeValue("formDataProvider"),o=r+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${o}_init_search__`,this.initQueueDataProvider=`${o}_init_queue__`,this.searchDataProvider=`${o}_search__`,this.queueDataProvider=`${o}_queue__`;const n=Te.get;this.searchPublisher=n(this.searchDataProvider)[i],this.formValuePublisher=n(r)[this.name],this.countPublisher=n(this.queueDataProvider).resultCount,this.initCountPublisher=n(this.initQueueDataProvider).resultCount,this.value&&(Te.get(this.initSearchDataProvider)[this.name]=this.value),null==(t=this.initCountPublisher)||t.onAssign(this.initSearchParameter),null==(e=this.formValuePublisher)||e.onAssign(this.updateSearchParameter),null==(s=this.countPublisher)||s.onAssign(this.updateActiveSelection)}disconnectedCallback(){var t,e,s;super.disconnectedCallback(),null==(t=this.initCountPublisher)||t.offAssign(this.initSearchParameter),null==(e=this.formValuePublisher)||e.offAssign(this.updateSearchParameter),null==(s=this.countPublisher)||s.offAssign(this.updateActiveSelection);const i=Te.get;i(this.initSearchDataProvider).delete(),i(this.initQueueDataProvider).delete(),i(this.searchDataProvider).delete(),i(this.queueDataProvider).delete()}queryQueueListItem(t,e,s){let i;const r=Te.get(t).get();if(Array.isArray(r)){for(const t of r){const s=Te.get(t.dataProvider).get();if(Array.isArray(s)&&(i=s.find(e),i))break}return!!i&&(s(i),!0)}}setSelectionRange(t,e){var s;null==(s=this.querySelector("sonic-input"))||s.setSelectionRange(t,e)}handleHide(){var t,e,s;if(this.select)return""==(null==(t=this.searchPublisher)?void 0:t.get())?(this.lastValidSearch="",void(null==(e=this.formValuePublisher)||e.set(""))):void(null==(s=this.searchPublisher)||s.set(this.lastValidSearch))}render(){return pt`
1910
+ `],Ur([U()],Vr.prototype,"open",2),Ur([B("slot:not([name=content])")],Vr.prototype,"popBtn",2),Ur([B("slot[name=content]")],Vr.prototype,"popContent",2),Ur([F({type:Boolean})],Vr.prototype,"noToggle",2),Ur([F({type:Boolean,reflect:!0})],Vr.prototype,"inline",2),Ur([F({type:String,reflect:!0})],Vr.prototype,"shadow",2),Ur([F({type:String})],Vr.prototype,"placement",2),Vr=Ur([b("sonic-pop")],Vr);var Br=Object.defineProperty,Hr=Object.getOwnPropertyDescriptor;let qr=class extends ss{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="primary"),this.hasAttribute("shape")||(this.shape="block");const t="square"===this.shape||"circle"===this.shape;this.hasAttribute("align")||t||(this.align="left"),super.connectedCallback()}};qr=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Hr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Br(e,s,o),o})([b("sonic-menu-item")],qr);class Wr{constructor(t,{target:e,config:s,callback:i,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(e??t),this.l=s,this.o=r??this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver((t=>{this.handleChanges(t),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){var e;this.value=null==(e=this.callback)?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Kr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Yr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Zr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Kr(e,s,o),o};let Gr=class extends(ci(ai(ni(li(Zt))))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new Wr(this,{}),this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=t=>{var e;if(""==t)return void(this.lastValidSearch="");!1===this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)&&(this.lastValidSearch=t,null==(e=this.searchPublisher)||e.set(this.lastValidSearch))},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=t=>{var e;const s="_self"===this.propertyName?t:t[this.propertyName||this.name];null==(e=this.formValuePublisher)||e.set(s)},this.findSearchedItem=t=>{var e;return("_self"===this.propertyName?t:t[this.propertyName||this.searchParameter||this.name])==(null==(e=this.searchPublisher)?void 0:e.get())},this.findSelection=t=>("_self"===this.propertyName?t:t[this.propertyName||this.name])==this.value,this.setSearchFromSelection=t=>{var e;this.lastValidSearch="_self"===this.propertyName?t:t[this.propertyName||this.searchParameter||this.name],null==(e=this.searchPublisher)||e.set(this.lastValidSearch)},this.updateActiveSelection=()=>{var t,e,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=(null==(t=this.searchPublisher)?void 0:t.get())&&(null==(e=this.formValuePublisher)?void 0:e.get())&&(null==(s=this.formValuePublisher)||s.set(""))}}hasSlotOrProps(){var t;this.hasInputPrefix=!!(null==(t=this.slotInputPrefixNodes)?void 0:t.length)}connectedCallback(){var t,e,s;super.connectedCallback();const i=this.searchParameter||this.name,r=this.getAncestorAttributeValue("formDataProvider"),o=r+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${o}_init_search__`,this.initQueueDataProvider=`${o}_init_queue__`,this.searchDataProvider=`${o}_search__`,this.queueDataProvider=`${o}_queue__`;const n=He.get;this.searchPublisher=n(this.searchDataProvider)[i],this.formValuePublisher=n(r)[this.name],this.countPublisher=n(this.queueDataProvider).resultCount,this.initCountPublisher=n(this.initQueueDataProvider).resultCount,this.value&&(He.get(this.initSearchDataProvider)[this.name]=this.value),null==(t=this.initCountPublisher)||t.onAssign(this.initSearchParameter),null==(e=this.formValuePublisher)||e.onAssign(this.updateSearchParameter),null==(s=this.countPublisher)||s.onAssign(this.updateActiveSelection)}disconnectedCallback(){var t,e,s;super.disconnectedCallback(),null==(t=this.initCountPublisher)||t.offAssign(this.initSearchParameter),null==(e=this.formValuePublisher)||e.offAssign(this.updateSearchParameter),null==(s=this.countPublisher)||s.offAssign(this.updateActiveSelection);const i=He.get;i(this.initSearchDataProvider).delete(),i(this.initQueueDataProvider).delete(),i(this.searchDataProvider).delete(),i(this.queueDataProvider).delete()}queryQueueListItem(t,e,s){let i;const r=He.get(t).get();if(Array.isArray(r)){for(const t of r){const s=He.get(t.dataProvider).get();if(Array.isArray(s)&&(i=s.find(e),i))break}return!!i&&(s(i),!0)}}setSelectionRange(t,e){var s;null==(s=this.querySelector("sonic-input"))||s.setSelectionRange(t,e)}handleHide(){var t,e,s;if(this.select)return""==(null==(t=this.searchPublisher)?void 0:t.get())?(this.lastValidSearch="",void(null==(e=this.formValuePublisher)||e.set(""))):void(null==(s=this.searchPublisher)||s.set(this.lastValidSearch))}render(){return pt`
1911
1911
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
1912
1912
  <sonic-input
1913
1913
  dataProvider="${this.initSearchDataProvider+Math.random()}"
1914
1914
  formDataProvider="${this.searchDataProvider}"
1915
1915
  type="search"
1916
1916
  data-keyboard-nav="${this.getAttribute("data-keyboard-nav")||""}"
1917
- label="${Ve(this.label)}"
1918
- description="${Ve(this.description)}"
1919
- name="${Ve(this.searchParameter||this.name)}"
1920
- placeholder="${Ve(this.placeholder)}"
1917
+ label="${Qe(this.label)}"
1918
+ description="${Qe(this.description)}"
1919
+ name="${Qe(this.searchParameter||this.name)}"
1920
+ placeholder="${Qe(this.placeholder)}"
1921
1921
  ?readonly="${this.readonly}"
1922
1922
  autocomplete="off"
1923
1923
  clearable
@@ -1952,7 +1952,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1952
1952
  </sonic-queue>
1953
1953
  </sonic-menu>
1954
1954
  </sonic-pop>
1955
- `}};Yr.styles=[xs,x`
1955
+ `}};Gr.styles=[Ds,x`
1956
1956
  :host {
1957
1957
  display: block;
1958
1958
  }
@@ -1963,16 +1963,16 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1963
1963
  min-width: 14rem;
1964
1964
  width: 100%;
1965
1965
  }
1966
- `],Zr([F({type:String})],Yr.prototype,"size",2),Zr([F({type:String})],Yr.prototype,"placeholder",2),Zr([F()],Yr.prototype,"filteredFields",2),Zr([F({type:Boolean})],Yr.prototype,"readonly",2),Zr([F({type:String})],Yr.prototype,"dataProviderExpression",2),Zr([F({type:Boolean})],Yr.prototype,"select",2),Zr([F({type:String})],Yr.prototype,"key",2),Zr([F({type:String})],Yr.prototype,"searchParameter",2),Zr([F({type:String})],Yr.prototype,"propertyName",2),Zr([q({slot:"prefix",flatten:!0})],Yr.prototype,"slotInputPrefixNodes",2),Zr([U()],Yr.prototype,"hasInputPrefix",2),Yr=Zr([b("sonic-input-autocomplete")],Yr);var Gr=Object.defineProperty,Qr=Object.getOwnPropertyDescriptor,Jr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Qr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Gr(e,s,o),o};let Xr=class extends(Xs(Zt)){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=0==t.length,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},Te.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&Te.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?pt`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:pt`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?gt:pt`
1966
+ `],Yr([F({type:String})],Gr.prototype,"size",2),Yr([F({type:String})],Gr.prototype,"placeholder",2),Yr([F()],Gr.prototype,"filteredFields",2),Yr([F({type:Boolean})],Gr.prototype,"readonly",2),Yr([F({type:String})],Gr.prototype,"dataProviderExpression",2),Yr([F({type:Boolean})],Gr.prototype,"select",2),Yr([F({type:String})],Gr.prototype,"key",2),Yr([F({type:String})],Gr.prototype,"searchParameter",2),Yr([F({type:String})],Gr.prototype,"propertyName",2),Yr([q({slot:"prefix",flatten:!0})],Gr.prototype,"slotInputPrefixNodes",2),Yr([U()],Gr.prototype,"hasInputPrefix",2),Gr=Yr([b("sonic-input-autocomplete")],Gr);var Qr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Xr=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Jr(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Qr(e,s,o),o};let to=class extends(li(Zt)){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=0==t.length,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},He.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&He.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?pt`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:pt`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?gt:pt`
1967
1967
  <div>${this.wording_password_helper_decription}</div>
1968
1968
  <div>${this.getIcon(this.hasEnoughChars)} ${this.wording_password_helper_min_length}</div>
1969
1969
  <div>${this.getIcon(this.hasMinuscule)} ${this.wording_password_helper_lower_case}</div>
1970
1970
  <div>${this.getIcon(this.hasMajuscule)} ${this.wording_password_helper_upper_case}</div>
1971
1971
  <div>${this.getIcon(this.hasNumber)} ${this.wording_password_helper_number}</div>
1972
1972
  <div>${this.getIcon(this.hasSpecialChar)} ${this.wording_password_helper_special_char}</div>
1973
- `}};Jr([F()],Xr.prototype,"name",2),Jr([F()],Xr.prototype,"minChars",2),Jr([U()],Xr.prototype,"hasNoChar",2),Jr([U()],Xr.prototype,"hasEnoughChars",2),Jr([U()],Xr.prototype,"hasMinuscule",2),Jr([U()],Xr.prototype,"hasMajuscule",2),Jr([U()],Xr.prototype,"hasNumber",2),Jr([U()],Xr.prototype,"hasSpecialChar",2),Jr([F()],Xr.prototype,"wording_password_helper_decription",2),Jr([F()],Xr.prototype,"wording_password_helper_min_length",2),Jr([F()],Xr.prototype,"wording_password_helper_lower_case",2),Jr([F()],Xr.prototype,"wording_password_helper_upper_case",2),Jr([F()],Xr.prototype,"wording_password_helper_number",2),Jr([F()],Xr.prototype,"wording_password_helper_special_char",2),Xr=Jr([b("sonic-password-helper")],Xr);var to=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,so=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?eo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&to(e,s,o),o};let io=class extends(Xs(Zt)){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const t=Te.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=e=>{this.hasNoChar=!e||0==e.length,this.name&&this.sameValueAs&&(this.areEqual=t[this.name].get()==t[this.sameValueAs].get())},t[this.name].onAssign(this.checkValue),t[this.sameValueAs].onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const t=Te.get(this.getAncestorAttributeValue("formDataProvider"));t[this.name].offAssign(this.checkValue),t[this.sameValueAs].offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?gt:pt`
1973
+ `}};Xr([F()],to.prototype,"name",2),Xr([F()],to.prototype,"minChars",2),Xr([U()],to.prototype,"hasNoChar",2),Xr([U()],to.prototype,"hasEnoughChars",2),Xr([U()],to.prototype,"hasMinuscule",2),Xr([U()],to.prototype,"hasMajuscule",2),Xr([U()],to.prototype,"hasNumber",2),Xr([U()],to.prototype,"hasSpecialChar",2),Xr([F()],to.prototype,"wording_password_helper_decription",2),Xr([F()],to.prototype,"wording_password_helper_min_length",2),Xr([F()],to.prototype,"wording_password_helper_lower_case",2),Xr([F()],to.prototype,"wording_password_helper_upper_case",2),Xr([F()],to.prototype,"wording_password_helper_number",2),Xr([F()],to.prototype,"wording_password_helper_special_char",2),to=Xr([b("sonic-password-helper")],to);var eo=Object.defineProperty,so=Object.getOwnPropertyDescriptor,io=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?so(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&eo(e,s,o),o};let ro=class extends(li(Zt)){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const t=He.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=e=>{this.hasNoChar=!e||0==e.length,this.name&&this.sameValueAs&&(this.areEqual=t[this.name].get()==t[this.sameValueAs].get())},t[this.name].onAssign(this.checkValue),t[this.sameValueAs].onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const t=He.get(this.getAncestorAttributeValue("formDataProvider"));t[this.name].offAssign(this.checkValue),t[this.sameValueAs].offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?gt:pt`
1974
1974
  <span> ${this.areEqual?te(this.descriptionWhenEqual):te(this.descriptionWhenNotEqual)} </span>
1975
- `}};so([F()],io.prototype,"name",2),so([F()],io.prototype,"sameValueAs",2),so([F()],io.prototype,"descriptionWhenEqual",2),so([F()],io.prototype,"descriptionWhenNotEqual",2),so([U()],io.prototype,"areEqual",2),so([U()],io.prototype,"hasNoChar",2),io=so([b("sonic-same-value-helper")],io);var ro=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,no=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?oo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ro(e,s,o),o};let ao=class extends(Ue(Zs(Se(he(Zt))))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}render(){return pt`
1975
+ `}};io([F()],ro.prototype,"name",2),io([F()],ro.prototype,"sameValueAs",2),io([F()],ro.prototype,"descriptionWhenEqual",2),io([F()],ro.prototype,"descriptionWhenNotEqual",2),io([U()],ro.prototype,"areEqual",2),io([U()],ro.prototype,"hasNoChar",2),ro=io([b("sonic-same-value-helper")],ro);var oo=Object.defineProperty,no=Object.getOwnPropertyDescriptor,ao=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?no(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&oo(e,s,o),o};let lo=class extends(Ge(ii(Se(he(Zt))))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}render(){return pt`
1976
1976
  <label class="checkbox-container ${this.disabled?"disabled":""}">
1977
1977
 
1978
1978
  <span class="icon-container">
@@ -1982,13 +1982,13 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
1982
1982
  @blur=${this.handleBlur}
1983
1983
  ?required=${this.required}
1984
1984
  ?data-indeterminate=${this.showAsIndeterminate}
1985
- .disabled=${Ve(this.disabled)}
1986
- .checked=${Ve(this.checked)}
1985
+ .disabled=${Qe(this.disabled)}
1986
+ .checked=${Qe(this.checked)}
1987
1987
  .name=${this.name}
1988
1988
  .value=${this.value}
1989
1989
  ?autofocus=${this.autofocus}
1990
- aria-label=${Ve(this.ariaLabel)}
1991
- aria-labelledby=${Ve(this.ariaLabelledby)}
1990
+ aria-label=${Qe(this.ariaLabel)}
1991
+ aria-labelledby=${Qe(this.ariaLabelledby)}
1992
1992
  />
1993
1993
  <sonic-icon name="${"indeterminate"==this.checked||this.showAsIndeterminate?this.indeterminateIconName:this.iconName}" class="sc-input-icon"></sonic-icon>
1994
1994
  </span>
@@ -2000,7 +2000,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
2000
2000
  </div>
2001
2001
  </label>
2002
2002
  </label>
2003
- `}};ao.styles=[Be,x`
2003
+ `}};lo.styles=[Je,x`
2004
2004
  :host {
2005
2005
  --sc-checkbox-border-width: var(--sc-form-border-width);
2006
2006
  --sc-checkbox-border-color: var(--sc-input-border-color);
@@ -2125,7 +2125,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
2125
2125
  color:var(--sc-danger);
2126
2126
  }
2127
2127
  */
2128
- `],no([F({type:Boolean,reflect:!0})],ao.prototype,"touched",2),no([F({type:String})],ao.prototype,"iconName",2),no([F({type:String})],ao.prototype,"indeterminateIconName",2),no([F({type:Boolean})],ao.prototype,"showAsIndeterminate",2),no([F({type:Boolean})],ao.prototype,"hasDescription",2),no([F({type:Boolean})],ao.prototype,"hasLabel",2),no([q({flatten:!0})],ao.prototype,"slotLabelNodes",2),no([q({slot:"description",flatten:!0})],ao.prototype,"slotDescriptionNodes",2),ao=no([b("sonic-checkbox")],ao);var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor;let ho=class extends ao{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};ho.styles=[ao.styles,x`
2128
+ `],ao([F({type:Boolean,reflect:!0})],lo.prototype,"touched",2),ao([F({type:String})],lo.prototype,"iconName",2),ao([F({type:String})],lo.prototype,"indeterminateIconName",2),ao([F({type:Boolean})],lo.prototype,"showAsIndeterminate",2),ao([F({type:Boolean})],lo.prototype,"hasDescription",2),ao([F({type:Boolean})],lo.prototype,"hasLabel",2),ao([q({flatten:!0})],lo.prototype,"slotLabelNodes",2),ao([q({slot:"description",flatten:!0})],lo.prototype,"slotDescriptionNodes",2),lo=ao([b("sonic-checkbox")],lo);var co=Object.defineProperty,ho=Object.getOwnPropertyDescriptor;let po=class extends lo{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};po.styles=[lo.styles,x`
2129
2129
  :host input {
2130
2130
  border-radius: 50%;
2131
2131
  }
@@ -2139,12 +2139,12 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
2139
2139
  height: 0.6em;
2140
2140
  width: 0.6em;
2141
2141
  }
2142
- `],ho=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?co(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&lo(e,s,o),o})([b("sonic-radio")],ho);var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,go=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?uo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&po(e,s,o),o};let bo=class extends(Se(he(Zt))){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const t=this.querySelectorAll("option");t.length>0&&(this.options=Array.from(t).map((t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")}))))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(t){this._options=t;for(const e of t)e.selected&&(this.value=e.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(t){this.hasDoneFirstUpdate=!0,super.firstUpdated(t)}set value(t){(null!=t||this.hasDoneFirstUpdate)&&(t||(t=""),this._value!=t&&(this._value=t,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){const t=this.getFormPublisher();t&&(t[this.name]=this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e,s,i;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(s=this.slotSuffixNodes)?void 0:s.length),this.hasPrefix=!!(null==(i=this.slotPrefixNodes)?void 0:i.length)}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("select");if(!e||e.checkValidity())return;const s=this.getFormPublisher();s&&(s.isFormValid=!1),e.reportValidity()}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return pt`
2142
+ `],po=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?ho(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&co(e,s,o),o})([b("sonic-radio")],po);var uo=Object.defineProperty,go=Object.getOwnPropertyDescriptor,bo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?go(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&uo(e,s,o),o};let mo=class extends(Se(he(Zt))){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const t=this.querySelectorAll("option");t.length>0&&(this.options=Array.from(t).map((t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")}))))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(t){this._options=t;for(const e of t)e.selected&&(this.value=e.value||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(t){this.hasDoneFirstUpdate=!0,super.firstUpdated(t)}set value(t){(null!=t||this.hasDoneFirstUpdate)&&(t||(t=""),this._value!=t&&(this._value=t,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){const t=this.getFormPublisher();t&&(t[this.name]=this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e,s,i;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(s=this.slotSuffixNodes)?void 0:s.length),this.hasPrefix=!!(null==(i=this.slotPrefixNodes)?void 0:i.length)}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("select");if(!e||e.checkValidity())return;const s=this.getFormPublisher();s&&(s.isFormValid=!1),e.reportValidity()}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return pt`
2143
2143
  <label for="form-element" class="${this.hasLabel?"form-label":"hidden"}"
2144
2144
  >${this.label?te(this.label):""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
2145
2145
  ></label>
2146
2146
 
2147
- <div class="form-control ${jr(t)}">
2147
+ <div class="form-control ${Mr(t)}">
2148
2148
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
2149
2149
  <div class="form-select-wrapper">
2150
2150
  <select
@@ -2154,14 +2154,14 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
2154
2154
  ?disabled=${this.disabled}
2155
2155
  ?required=${this.required}
2156
2156
  ?multiple=${this.multiple}
2157
- size=${Ve(this.selectSize)}
2157
+ size=${Qe(this.selectSize)}
2158
2158
  ?autofocus=${this.autofocus}
2159
2159
  .value="${this.value}"
2160
2160
  class="form-element"
2161
- aria-label=${Ve(this.ariaLabel)}
2162
- aria-labelledby=${Ve(this.ariaLabelledby)}
2161
+ aria-label=${Qe(this.ariaLabel)}
2162
+ aria-labelledby=${Qe(this.ariaLabelledby)}
2163
2163
  >
2164
- ${Ye(this.options,(t=>t[this.valueKey]),(t=>{const e=this.value==t[this.valueKey];return pt`<option ?selected=${e} value="${t[this.valueKey]}">${t[this.wordingKey]}</option>`}))}
2164
+ ${rs(this.options,(t=>t[this.valueKey]),(t=>{const e=this.value==t[this.valueKey];return pt`<option ?selected=${e} value="${t[this.valueKey]}">${t[this.wordingKey]}</option>`}))}
2165
2165
  <slot></slot>
2166
2166
  </select>
2167
2167
  <sonic-icon class="select-chevron" name="nav-arrow-down" .size=${this.size}></sonic-icon>
@@ -2172,7 +2172,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
2172
2172
  <slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription?"form-description":"hidden"}"
2173
2173
  >${this.description?pt`${te(this.description)}`:""}</slot
2174
2174
  >
2175
- `}};bo.styles=[Be,Er,Dr,Lr,x`
2175
+ `}};mo.styles=[Je,jr,Lr,Er,x`
2176
2176
  .form-element {
2177
2177
  appearance: none;
2178
2178
  }
@@ -2217,7 +2217,7 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
2217
2217
  background: transparent;
2218
2218
  padding: 0;
2219
2219
  }
2220
- `],go([F({type:String})],bo.prototype,"valueKey",2),go([F({type:String})],bo.prototype,"wordingKey",2),go([F({type:Boolean})],bo.prototype,"multiple",2),go([F({type:String,reflect:!0})],bo.prototype,"size",2),go([F({type:Number})],bo.prototype,"selectSize",2),go([F({type:String,reflect:!0})],bo.prototype,"status",2),go([F({type:Array})],bo.prototype,"options",1),go([F({reflect:!0})],bo.prototype,"value",1),go([F({type:Boolean})],bo.prototype,"forceAutoFill",2),go([F()],bo.prototype,"description",1),go([F()],bo.prototype,"label",1),go([q({slot:"label",flatten:!0})],bo.prototype,"slotLabelNodes",2),go([q({slot:"description",flatten:!0})],bo.prototype,"slotDescriptionNodes",2),go([q({slot:"suffix",flatten:!0})],bo.prototype,"slotSuffixNodes",2),go([q({slot:"prefix",flatten:!0})],bo.prototype,"slotPrefixNodes",2),go([U()],bo.prototype,"hasDescription",2),go([U()],bo.prototype,"hasLabel",2),go([U()],bo.prototype,"hasSuffix",2),go([U()],bo.prototype,"hasPrefix",2),bo=go([b("sonic-select")],bo);var mo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,vo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?fo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&mo(e,s,o),o};let yo=class extends(Zs(Se(he(Zt)))){constructor(){super(...arguments),this.size="",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("textarea");if(!e||e.checkValidity())return;const s=this.getFormPublisher();s&&(s.isFormValid=!1),e.reportValidity()}render(){const t={resize:this.resize};return pt`
2220
+ `],bo([F({type:String})],mo.prototype,"valueKey",2),bo([F({type:String})],mo.prototype,"wordingKey",2),bo([F({type:Boolean})],mo.prototype,"multiple",2),bo([F({type:String,reflect:!0})],mo.prototype,"size",2),bo([F({type:Number})],mo.prototype,"selectSize",2),bo([F({type:String,reflect:!0})],mo.prototype,"status",2),bo([F({type:Array})],mo.prototype,"options",1),bo([F({reflect:!0})],mo.prototype,"value",1),bo([F({type:Boolean})],mo.prototype,"forceAutoFill",2),bo([F()],mo.prototype,"description",1),bo([F()],mo.prototype,"label",1),bo([q({slot:"label",flatten:!0})],mo.prototype,"slotLabelNodes",2),bo([q({slot:"description",flatten:!0})],mo.prototype,"slotDescriptionNodes",2),bo([q({slot:"suffix",flatten:!0})],mo.prototype,"slotSuffixNodes",2),bo([q({slot:"prefix",flatten:!0})],mo.prototype,"slotPrefixNodes",2),bo([U()],mo.prototype,"hasDescription",2),bo([U()],mo.prototype,"hasLabel",2),bo([U()],mo.prototype,"hasSuffix",2),bo([U()],mo.prototype,"hasPrefix",2),mo=bo([b("sonic-select")],mo);var fo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,yo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?vo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&fo(e,s,o),o};let wo=class extends(ii(Se(he(Zt)))){constructor(){super(...arguments),this.size="",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("textarea");if(!e||e.checkValidity())return;const s=this.getFormPublisher();s&&(s.isFormValid=!1),e.reportValidity()}render(){const t={resize:this.resize};return pt`
2221
2221
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
2222
2222
  >${this.label?te(this.label):""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
2223
2223
  ></label>
@@ -2227,22 +2227,22 @@ function*(t,e){if(void 0!==t){let s=0;for(const i of t)yield e(i,s++)}}(this.pro
2227
2227
  id="${this.id||"form-element"}"
2228
2228
  @input=${this.handleChange}
2229
2229
  @blur=${this.handleBlur}
2230
- disabled=${Ve(this.disabled)}
2230
+ disabled=${Qe(this.disabled)}
2231
2231
  ?required=${this.required}
2232
2232
  ?autofocus=${this.autofocus}
2233
- rows=${Ve(this.rows)}
2234
- cols=${Ve(this.cols)}
2235
- maxlength=${Ve(this.maxlength)}
2236
- minlength=${Ve(this.minlength)}
2233
+ rows=${Qe(this.rows)}
2234
+ cols=${Qe(this.cols)}
2235
+ maxlength=${Qe(this.maxlength)}
2236
+ minlength=${Qe(this.minlength)}
2237
2237
  ?readonly=${this.readonly}
2238
- spellcheck=${Ve(this.spellcheck)}
2239
- autocomplete=${Ve(this.autocomplete)}
2240
- tabindex=${Ve(this.tabindex)}
2241
- wrap=${Ve(this.wrap)}
2238
+ spellcheck=${Qe(this.spellcheck)}
2239
+ autocomplete=${Qe(this.autocomplete)}
2240
+ tabindex=${Qe(this.tabindex)}
2241
+ wrap=${Qe(this.wrap)}
2242
2242
  placeholder="${this.placeholder}"
2243
2243
  class="form-element textarea custom-scroll"
2244
- aria-label=${Ve(this.ariaLabel)}
2245
- aria-labelledby=${Ve(this.ariaLabelledby)}
2244
+ aria-label=${Qe(this.ariaLabel)}
2245
+ aria-labelledby=${Qe(this.ariaLabelledby)}
2246
2246
  style=${_e(t)}
2247
2247
  >
2248
2248
  ${this.value}</textarea
@@ -2252,12 +2252,12 @@ ${this.value}</textarea
2252
2252
  <slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription?"form-description":"hidden"}"
2253
2253
  >${this.description?pt`${te(this.description)}`:""}</slot
2254
2254
  >
2255
- `}};yo.styles=[Be,Er,Dr,Lr,xs,x`
2255
+ `}};wo.styles=[Je,jr,Lr,Er,Ds,x`
2256
2256
  textarea {
2257
2257
  overflow-y: auto !important;
2258
2258
  font-size: inherit;
2259
2259
  }
2260
- `],vo([F({type:String})],yo.prototype,"size",2),vo([F({type:Number})],yo.prototype,"rows",2),vo([F({type:Number})],yo.prototype,"cols",2),vo([F({type:Number})],yo.prototype,"maxlength",2),vo([F({type:Number})],yo.prototype,"minlength",2),vo([F({type:String})],yo.prototype,"wrap",2),vo([F({type:Boolean})],yo.prototype,"readonly",2),vo([F({type:String})],yo.prototype,"placeholder",2),vo([F({type:String})],yo.prototype,"resize",2),vo([q({slot:"label",flatten:!0})],yo.prototype,"slotLabelNodes",2),vo([q({slot:"description",flatten:!0})],yo.prototype,"slotDescriptionNodes",2),vo([U()],yo.prototype,"hasDescription",2),vo([U()],yo.prototype,"hasLabel",2),yo=vo([b("sonic-textarea")],yo);var wo=Object.defineProperty,xo=Object.getOwnPropertyDescriptor;let _o=class extends Zt{render(){return pt`<slot></slot>`}};_o.styles=[x`
2260
+ `],yo([F({type:String})],wo.prototype,"size",2),yo([F({type:Number})],wo.prototype,"rows",2),yo([F({type:Number})],wo.prototype,"cols",2),yo([F({type:Number})],wo.prototype,"maxlength",2),yo([F({type:Number})],wo.prototype,"minlength",2),yo([F({type:String})],wo.prototype,"wrap",2),yo([F({type:Boolean})],wo.prototype,"readonly",2),yo([F({type:String})],wo.prototype,"placeholder",2),yo([F({type:String})],wo.prototype,"resize",2),yo([q({slot:"label",flatten:!0})],wo.prototype,"slotLabelNodes",2),yo([q({slot:"description",flatten:!0})],wo.prototype,"slotDescriptionNodes",2),yo([U()],wo.prototype,"hasDescription",2),yo([U()],wo.prototype,"hasLabel",2),wo=yo([b("sonic-textarea")],wo);var xo=Object.defineProperty,_o=Object.getOwnPropertyDescriptor;let ko=class extends Zt{render(){return pt`<slot></slot>`}};ko.styles=[x`
2261
2261
  :host {
2262
2262
  font-size: 1.15rem;
2263
2263
  line-height: 1.2;
@@ -2267,9 +2267,9 @@ ${this.value}</textarea
2267
2267
  font-style: var(--sc-font-style-base);
2268
2268
  margin-top: 0.2em;
2269
2269
  }
2270
- `],_o=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?xo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&wo(e,s,o),o})([b("sonic-legend-description")],_o);var ko=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,Po=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ao(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ko(e,s,o),o};let Co=class extends Zt{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}render(){return pt`<legend part="legend">
2270
+ `],ko=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?_o(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&xo(e,s,o),o})([b("sonic-legend-description")],ko);var Ao=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,Co=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Po(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ao(e,s,o),o};let So=class extends Zt{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}render(){return pt`<legend part="legend">
2271
2271
  ${this.iconName?pt`<div class="icon">
2272
- <sonic-icon name=${this.iconName} prefix=${Ve(this.iconPrefix)} library=${Ve(this.iconLibrary)}></sonic-icon>
2272
+ <sonic-icon name=${this.iconName} prefix=${Qe(this.iconPrefix)} library=${Qe(this.iconLibrary)}></sonic-icon>
2273
2273
  </div>`:""}
2274
2274
 
2275
2275
  <div class="legend-content">
@@ -2278,7 +2278,7 @@ ${this.value}</textarea
2278
2278
  <slot></slot>
2279
2279
  </div>
2280
2280
  <slot name="suffix"></slot>
2281
- </legend>`}};Co.styles=[x`
2281
+ </legend>`}};So.styles=[x`
2282
2282
  :host {
2283
2283
  --sc-legend-font-size: 1.5rem;
2284
2284
  --sc-legend-font-weight: var(--sc-font-weight-base);
@@ -2313,16 +2313,16 @@ ${this.value}</textarea
2313
2313
  .legend-content {
2314
2314
  flex-grow: 1;
2315
2315
  }
2316
- `],Po([F({type:Boolean})],Co.prototype,"forceAutoFill",2),Po([F()],Co.prototype,"description",1),Po([F()],Co.prototype,"label",1),Po([F({type:String})],Co.prototype,"iconName",2),Po([F({type:String})],Co.prototype,"iconLibrary",2),Po([F({type:String})],Co.prototype,"iconPrefix",2),Co=Po([b("sonic-legend")],Co);var So=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,Oo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?$o(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&So(e,s,o),o};let Do=class extends(he(Zt)){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return pt`<fieldset form="${Ve(this.form)}" ?disabled="${this.disabled}">
2316
+ `],Co([F({type:Boolean})],So.prototype,"forceAutoFill",2),Co([F()],So.prototype,"description",1),Co([F()],So.prototype,"label",1),Co([F({type:String})],So.prototype,"iconName",2),Co([F({type:String})],So.prototype,"iconLibrary",2),Co([F({type:String})],So.prototype,"iconPrefix",2),So=Co([b("sonic-legend")],So);var $o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Do=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Oo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&$o(e,s,o),o};let Lo=class extends(he(Zt)){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return pt`<fieldset form="${Qe(this.form)}" ?disabled="${this.disabled}">
2317
2317
  ${this.label?pt` <sonic-legend
2318
- label=${Ve(this.label)}
2319
- description=${Ve(this.description)}
2320
- iconName=${Ve(this.iconName)}
2321
- iconPrefix=${Ve(this.iconPrefix)}
2322
- iconLibrary=${Ve(this.iconLibrary)}
2318
+ label=${Qe(this.label)}
2319
+ description=${Qe(this.description)}
2320
+ iconName=${Qe(this.iconName)}
2321
+ iconPrefix=${Qe(this.iconPrefix)}
2322
+ iconLibrary=${Qe(this.iconLibrary)}
2323
2323
  ></sonic-legend>`:gt}
2324
2324
  <slot></slot>
2325
- </fieldset>`}};Do.styles=[x`
2325
+ </fieldset>`}};Lo.styles=[x`
2326
2326
  :host {
2327
2327
  --sc-fieldset-mt: 0;
2328
2328
  --sc-fieldset-mb: 1rem;
@@ -2369,9 +2369,9 @@ ${this.value}</textarea
2369
2369
  ::slotted(sonic-legend:last-child) {
2370
2370
  margin-bottom: 0;
2371
2371
  }
2372
- `],Oo([F({type:Boolean,reflect:!0})],Do.prototype,"disabled",2),Oo([F({type:String})],Do.prototype,"form",2),Oo([F({type:String})],Do.prototype,"label",2),Oo([F({type:String})],Do.prototype,"description",2),Oo([F({type:String})],Do.prototype,"iconName",2),Oo([F({type:String})],Do.prototype,"iconLibrary",2),Oo([F({type:String})],Do.prototype,"iconPrefix",2),Oo([F({type:Boolean,reflect:!0})],Do.prototype,"tight",2),Oo([F({type:String,reflect:!0})],Do.prototype,"variant",2),Do=Oo([b("sonic-fieldset")],Do);var Lo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,jo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Eo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Lo(e,s,o),o};let Mo=class extends(he(Zt)){constructor(){super(...arguments),this._resizeController=new qr(this,{}),this.oneFormElement=!1}onSlotChange(){let t=this.slottedElements;const e=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];t=t.filter((t=>e.includes(t.nodeName.toLowerCase()))),this.oneFormElement=1==t.length}render(){const t={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return pt`<div class=${jr(t)}>
2372
+ `],Do([F({type:Boolean,reflect:!0})],Lo.prototype,"disabled",2),Do([F({type:String})],Lo.prototype,"form",2),Do([F({type:String})],Lo.prototype,"label",2),Do([F({type:String})],Lo.prototype,"description",2),Do([F({type:String})],Lo.prototype,"iconName",2),Do([F({type:String})],Lo.prototype,"iconLibrary",2),Do([F({type:String})],Lo.prototype,"iconPrefix",2),Do([F({type:Boolean,reflect:!0})],Lo.prototype,"tight",2),Do([F({type:String,reflect:!0})],Lo.prototype,"variant",2),Lo=Do([b("sonic-fieldset")],Lo);var Eo=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Mo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?jo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Eo(e,s,o),o};let Io=class extends(he(Zt)){constructor(){super(...arguments),this._resizeController=new Wr(this,{}),this.oneFormElement=!1}onSlotChange(){let t=this.slottedElements;const e=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];t=t.filter((t=>e.includes(t.nodeName.toLowerCase()))),this.oneFormElement=1==t.length}render(){const t={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return pt`<div class=${Mr(t)}>
2373
2373
  <slot @slotchange=${this.onSlotChange}></slot>
2374
- </div>`}};Mo.styles=[x`
2374
+ </div>`}};Io.styles=[x`
2375
2375
  :host {
2376
2376
  display: block;
2377
2377
  }
@@ -2406,7 +2406,7 @@ ${this.value}</textarea
2406
2406
  ::slotted(sonic-divider) {
2407
2407
  --sc-divider-my: 0;
2408
2408
  }
2409
- `],jo([H({flatten:!0})],Mo.prototype,"slottedElements",2),jo([F({type:Boolean})],Mo.prototype,"oneFormElement",2),Mo=jo([b("sonic-form-layout")],Mo);var Io=Object.defineProperty,To=Object.getOwnPropertyDescriptor,No=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?To(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Io(e,s,o),o};let zo=class extends Zt{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const t={flexDirection:this.direction,justifyContent:this.justify};return pt`<slot style=${_e(t)}></slot>`}};zo.styles=[x`
2409
+ `],Mo([H({flatten:!0})],Io.prototype,"slottedElements",2),Mo([F({type:Boolean})],Io.prototype,"oneFormElement",2),Io=Mo([b("sonic-form-layout")],Io);var To=Object.defineProperty,No=Object.getOwnPropertyDescriptor,zo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?No(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&To(e,s,o),o};let Ro=class extends Zt{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const t={flexDirection:this.direction,justifyContent:this.justify};return pt`<slot style=${_e(t)}></slot>`}};Ro.styles=[x`
2410
2410
  :host {
2411
2411
  display: block;
2412
2412
  }
@@ -2415,13 +2415,13 @@ ${this.value}</textarea
2415
2415
  flex-wrap: wrap;
2416
2416
  gap: 0.3rem;
2417
2417
  }
2418
- `],No([F({type:String})],zo.prototype,"direction",2),No([F({type:String})],zo.prototype,"justify",2),zo=No([b("sonic-form-actions")],zo);var Ro=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Uo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Fo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ro(e,s,o),o};let Vo=class extends Zt{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const t=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),e=t.length;e>1&&t.forEach(((t,s)=>{const i=t;0===s?(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0")):s===e-1?(i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0")):(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0"),i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0"))}))}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}render(){const t={alignItems:this.alignItems};return pt`<span class="${this.hasLabel?"form-label":"hidden"}"
2418
+ `],zo([F({type:String})],Ro.prototype,"direction",2),zo([F({type:String})],Ro.prototype,"justify",2),Ro=zo([b("sonic-form-actions")],Ro);var Fo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Vo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Uo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Fo(e,s,o),o};let Bo=class extends Zt{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const t=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),e=t.length;e>1&&t.forEach(((t,s)=>{const i=t;0===s?(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0")):s===e-1?(i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0")):(i.style.setProperty("--sc-item-rounded-tr","0"),i.style.setProperty("--sc-item-rounded-br","0"),i.style.setProperty("--sc-item-rounded-tl","0"),i.style.setProperty("--sc-item-rounded-bl","0"))}))}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(t){this.hasSlotOrProps(),super.willUpdate(t)}hasSlotOrProps(){var t,e;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length))}render(){const t={alignItems:this.alignItems};return pt`<span class="${this.hasLabel?"form-label":"hidden"}"
2419
2419
  >${this.label?te(this.label):""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
2420
2420
  ></span>
2421
2421
  <slot class="main-slot" style=${_e(t)}></slot>
2422
2422
  <slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription?"form-description":"hidden"}">
2423
2423
  ${this.description?pt`${te(this.description)}`:""}
2424
- </slot>`}};Vo.styles=[Be,Dr,Lr,x`
2424
+ </slot>`}};Bo.styles=[Je,Lr,Er,x`
2425
2425
  :host {
2426
2426
  display: inline-block;
2427
2427
  vertical-align: middle;
@@ -2440,11 +2440,11 @@ ${this.value}</textarea
2440
2440
  ::slotted(sonic-select) {
2441
2441
  flex-grow: 1;
2442
2442
  }
2443
- `],Uo([F({type:String})],Vo.prototype,"alignItems",2),Uo([F({type:String})],Vo.prototype,"label",2),Uo([F({type:String})],Vo.prototype,"description",2),Uo([q({slot:"label",flatten:!0})],Vo.prototype,"slotLabelNodes",2),Uo([q({slot:"description",flatten:!0})],Vo.prototype,"slotDescriptionNodes",2),Uo([U()],Vo.prototype,"hasDescription",2),Uo([U()],Vo.prototype,"hasLabel",2),Vo=Uo([b("sonic-group")],Vo);var Bo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,qo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ho(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Bo(e,s,o),o};let Wo=class extends Zt{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(t){var e;if(this.transition){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(t)}render(){const t={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return pt`<div part="image">
2443
+ `],Vo([F({type:String})],Bo.prototype,"alignItems",2),Vo([F({type:String})],Bo.prototype,"label",2),Vo([F({type:String})],Bo.prototype,"description",2),Vo([q({slot:"label",flatten:!0})],Bo.prototype,"slotLabelNodes",2),Vo([q({slot:"description",flatten:!0})],Bo.prototype,"slotDescriptionNodes",2),Vo([U()],Bo.prototype,"hasDescription",2),Vo([U()],Bo.prototype,"hasLabel",2),Bo=Vo([b("sonic-group")],Bo);var Ho=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Wo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?qo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ho(e,s,o),o};let Ko=class extends Zt{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(t){var e;if(this.transition){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(t)}render(){const t={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return pt`<div part="image">
2444
2444
  <picture part="picture"
2445
2445
  ><img part="img" src="${this.src}" loading="${this.loading}" alt="${this.alt}" style=${_e(t)}
2446
2446
  /></picture>
2447
- </div>`}};Wo.styles=[x`
2447
+ </div>`}};Ko.styles=[x`
2448
2448
  :host {
2449
2449
  --sc-img-radius: 0;
2450
2450
  --sc-img-bg: var(--sc-placeholder-bg);
@@ -2517,7 +2517,7 @@ ${this.value}</textarea
2517
2517
  opacity: 1;
2518
2518
  scale: 1;
2519
2519
  }
2520
- `],qo([F({type:String})],Wo.prototype,"rounded",2),qo([F({type:String})],Wo.prototype,"src",2),qo([F({type:String})],Wo.prototype,"alt",2),qo([F({type:String})],Wo.prototype,"loading",2),qo([F({type:String,reflect:!0})],Wo.prototype,"transition",2),qo([F({type:String})],Wo.prototype,"ratio",2),qo([F({type:String})],Wo.prototype,"objectPosition",2),qo([F({type:String})],Wo.prototype,"imageRendering",2),qo([F({type:Boolean,reflect:!0})],Wo.prototype,"cover",2),Wo=qo([b("sonic-image")],Wo);var Ko=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,Yo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Zo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ko(e,s,o),o};let Go=class extends Zt{constructor(){super(...arguments),this.size="",this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var t;this.hasMoreElements=!!(null==(t=this.moreElements)?void 0:t.length)}updated(t){const e=this.querySelector(".more-btn");this.size&&e&&e.setAttribute("size",this.size);this.querySelectorAll("sonic-divider").forEach((t=>{t.hasAttribute("size")||t.setAttribute("size","xs")})),super.updated(t)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var t;null==(t=this.observer)||t.disconnect(),super.disconnectedCallback()}initScrollable(){let t,e,s=!1;this.scrollable&&(this.addEventListener("mousedown",(i=>{s=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,e=this.scrollLeft})),this.addEventListener("mouseleave",(()=>{s=!1,this.classList.remove("active")})),this.addEventListener("mouseup",(()=>{s=!1,this.classList.remove("active")})),this.addEventListener("mousemove",(i=>{if(!s)return;i.preventDefault();const r=1.5*(i.pageX-this.offsetLeft-t);this.scrollLeft=e-r,this.setScrollShadow(this,this.direction)})),this.addEventListener("scroll",(t=>{t.preventDefault(),this.setScrollShadow(this,this.direction)})))}setScrollShadow(t,e){"row"==e?(t.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),t.scrollLeft<t.scrollWidth-t.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):"column"==e&&(t.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),t.scrollTop<t.scrollHeight-(t.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(t){t.forEach((t=>{this.size&&t.setAttribute("size",this.size),this.align&&"square"!=t.getAttribute("shape")&&"circle"!=t.getAttribute("shape")&&t.setAttribute("align",this.align),"row"==this.direction&&"block"==t.getAttribute("shape")&&t.setAttribute("shape","default")}))}render(){const t={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},e="row"==this.direction,s={display:"block",alignSelf:e?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:e?"":".55em"};return pt`<menu part="menu" class="shadowable" style=${_e(t)}>
2520
+ `],Wo([F({type:String})],Ko.prototype,"rounded",2),Wo([F({type:String})],Ko.prototype,"src",2),Wo([F({type:String})],Ko.prototype,"alt",2),Wo([F({type:String})],Ko.prototype,"loading",2),Wo([F({type:String,reflect:!0})],Ko.prototype,"transition",2),Wo([F({type:String})],Ko.prototype,"ratio",2),Wo([F({type:String})],Ko.prototype,"objectPosition",2),Wo([F({type:String})],Ko.prototype,"imageRendering",2),Wo([F({type:Boolean,reflect:!0})],Ko.prototype,"cover",2),Ko=Wo([b("sonic-image")],Ko);var Zo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Go=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Yo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Zo(e,s,o),o};let Qo=class extends Zt{constructor(){super(...arguments),this.size="",this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.minWidth="0",this.hasMoreElements=!1,this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this,this.direction))}}checkIfMore(){var t;this.hasMoreElements=!!(null==(t=this.moreElements)?void 0:t.length)}updated(t){const e=this.querySelector(".more-btn");this.size&&e&&e.setAttribute("size",this.size);this.querySelectorAll("sonic-divider").forEach((t=>{t.hasAttribute("size")||t.setAttribute("size","xs")})),super.updated(t)}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.updateIsScollable()}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}disconnectedCallback(){var t;null==(t=this.observer)||t.disconnect(),super.disconnectedCallback()}initScrollable(){let t,e,s=!1;this.scrollable&&(this.addEventListener("mousedown",(i=>{s=!0,this.classList.add("active"),t=i.pageX-this.offsetLeft,e=this.scrollLeft})),this.addEventListener("mouseleave",(()=>{s=!1,this.classList.remove("active")})),this.addEventListener("mouseup",(()=>{s=!1,this.classList.remove("active")})),this.addEventListener("mousemove",(i=>{if(!s)return;i.preventDefault();const r=1.5*(i.pageX-this.offsetLeft-t);this.scrollLeft=e-r,this.setScrollShadow(this,this.direction)})),this.addEventListener("scroll",(t=>{t.preventDefault(),this.setScrollShadow(this,this.direction)})))}setScrollShadow(t,e){"row"==e?(t.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),t.scrollLeft<t.scrollWidth-t.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):"column"==e&&(t.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),t.scrollTop<t.scrollHeight-(t.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(t){t.forEach((t=>{this.size&&t.setAttribute("size",this.size),this.align&&"square"!=t.getAttribute("shape")&&"circle"!=t.getAttribute("shape")&&t.setAttribute("align",this.align),"row"==this.direction&&"block"==t.getAttribute("shape")&&t.setAttribute("shape","default")}))}render(){const t={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},e="row"==this.direction,s={display:"block",alignSelf:e?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},i={marginLeft:e?"":".55em"};return pt`<menu part="menu" class="shadowable" style=${_e(t)}>
2521
2521
  <slot @slotchange=${this.mainSlotChange}></slot>
2522
2522
  <sonic-pop style=${_e(s)} class=${this.hasMoreElements?"":"hidden"}>
2523
2523
  <sonic-menu-item style=${_e(i)} class="more-btn" shape=${this.moreShape} align="center">
@@ -2525,7 +2525,7 @@ ${this.value}</textarea
2525
2525
  </sonic-menu-item>
2526
2526
  <slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
2527
2527
  </sonic-pop>
2528
- </menu>`}};Go.styles=[x`
2528
+ </menu>`}};Qo.styles=[x`
2529
2529
  :host {
2530
2530
  display: block;
2531
2531
  --sc-menu-gap: 0.15rem;
@@ -2611,16 +2611,16 @@ ${this.value}</textarea
2611
2611
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
2612
2612
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
2613
2613
  }
2614
- `],Yo([F({type:String,reflect:!0})],Go.prototype,"size",2),Yo([F({type:String,reflect:!0})],Go.prototype,"direction",2),Yo([F({type:String})],Go.prototype,"gap",2),Yo([F({type:String,reflect:!0})],Go.prototype,"align",2),Yo([F({type:String,reflect:!0})],Go.prototype,"shadow",2),Yo([F({type:String})],Go.prototype,"moreShape",2),Yo([F({type:Boolean})],Go.prototype,"scrollable",2),Yo([F({type:String})],Go.prototype,"minWidth",2),Yo([B("menu")],Go.prototype,"menu",2),Yo([H({selector:"sonic-menu-item"})],Go.prototype,"menuChildren",2),Yo([H({slot:"more",selector:"*"})],Go.prototype,"moreElements",2),Yo([U()],Go.prototype,"hasMoreElements",2),Go=Yo([b("sonic-menu")],Go);var Qo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Xo=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Jo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Qo(e,s,o),o};let tn=class extends Zt{firstUpdated(t){var e;null==(e=this.buttons)||e.forEach((t=>{t.addEventListener("click",(()=>{if("false"!=t.getAttribute("hideModal")){const t=this.closest("sonic-modal");null==t||t.hide()}}))})),super.firstUpdated(t)}render(){return pt`<slot></slot>`}};tn.styles=[x`
2614
+ `],Go([F({type:String,reflect:!0})],Qo.prototype,"size",2),Go([F({type:String,reflect:!0})],Qo.prototype,"direction",2),Go([F({type:String})],Qo.prototype,"gap",2),Go([F({type:String,reflect:!0})],Qo.prototype,"align",2),Go([F({type:String,reflect:!0})],Qo.prototype,"shadow",2),Go([F({type:String})],Qo.prototype,"moreShape",2),Go([F({type:Boolean})],Qo.prototype,"scrollable",2),Go([F({type:String})],Qo.prototype,"minWidth",2),Go([B("menu")],Qo.prototype,"menu",2),Go([H({selector:"sonic-menu-item"})],Qo.prototype,"menuChildren",2),Go([H({slot:"more",selector:"*"})],Qo.prototype,"moreElements",2),Go([U()],Qo.prototype,"hasMoreElements",2),Qo=Go([b("sonic-menu")],Qo);var Jo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,tn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Xo(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Jo(e,s,o),o};let en=class extends Zt{firstUpdated(t){var e;null==(e=this.buttons)||e.forEach((t=>{t.addEventListener("click",(()=>{if("false"!=t.getAttribute("hideModal")){const t=this.closest("sonic-modal");null==t||t.hide()}}))})),super.firstUpdated(t)}render(){return pt`<slot></slot>`}};en.styles=[x`
2615
2615
  :host {
2616
2616
  display: flex;
2617
2617
  gap: 0.5rem;
2618
2618
  margin-top: auto;
2619
2619
  padding-top: 1.5rem;
2620
2620
  }
2621
- `],Xo([H({selector:"sonic-button"})],tn.prototype,"buttons",2),tn=Xo([b("sonic-modal-actions")],tn);var en=Object.defineProperty,sn=Object.getOwnPropertyDescriptor,rn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?sn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&en(e,s,o),o};let on=class extends Zt{render(){return pt`<sonic-button reset=${Ve(this.reset)} shape="circle" @click=${this.handleClick}
2621
+ `],tn([H({selector:"sonic-button"})],en.prototype,"buttons",2),en=tn([b("sonic-modal-actions")],en);var sn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,on=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?rn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&sn(e,s,o),o};let nn=class extends Zt{render(){return pt`<sonic-button reset=${Qe(this.reset)} shape="circle" @click=${this.handleClick}
2622
2622
  ><sonic-icon name="cancel" size="lg"></sonic-icon
2623
- ></sonic-button>`}handleClick(){s.getClosestElement(this,"sonic-modal").hide()}};on.styles=[x`
2623
+ ></sonic-button>`}handleClick(){s.getClosestElement(this,"sonic-modal").hide()}};nn.styles=[x`
2624
2624
  :host {
2625
2625
  position: sticky;
2626
2626
  display: block;
@@ -2631,12 +2631,12 @@ ${this.value}</textarea
2631
2631
  transform: translate3d(calc(var(--sc-modal-px)), calc(-1 * var(--sc-modal-py)), 0);
2632
2632
  z-index: 20;
2633
2633
  }
2634
- `],rn([F()],on.prototype,"reset",2),on=rn([b("sonic-modal-close")],on);var nn=Object.defineProperty,an=Object.getOwnPropertyDescriptor;let ln=class extends Zt{render(){return pt`<slot></slot>`}};ln.styles=[x`
2634
+ `],on([F()],nn.prototype,"reset",2),nn=on([b("sonic-modal-close")],nn);var an=Object.defineProperty,ln=Object.getOwnPropertyDescriptor;let cn=class extends Zt{render(){return pt`<slot></slot>`}};cn.styles=[x`
2635
2635
  :host {
2636
2636
  display: block;
2637
2637
  width: 100%;
2638
2638
  }
2639
- `],ln=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?an(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&nn(e,s,o),o})([b("sonic-modal-content")],ln);var cn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor;let dn=class extends Zt{render(){return pt`<slot></slot>`}};dn.styles=[x`
2639
+ `],cn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?ln(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&an(e,s,o),o})([b("sonic-modal-content")],cn);var hn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor;let pn=class extends Zt{render(){return pt`<slot></slot>`}};pn.styles=[x`
2640
2640
  :host {
2641
2641
  font-size: 1.1rem;
2642
2642
  display: block;
@@ -2645,7 +2645,7 @@ ${this.value}</textarea
2645
2645
  font-family: var(--sc-headings-font-family);
2646
2646
  font-weight: var(--sc-headings-font-weight);
2647
2647
  }
2648
- `],dn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?hn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&cn(e,s,o),o})([b("sonic-modal-subtitle")],dn);var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor;let gn=class extends Zt{render(){return pt`<slot></slot>`}};gn.styles=[x`
2648
+ `],pn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?dn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&hn(e,s,o),o})([b("sonic-modal-subtitle")],pn);var un=Object.defineProperty,gn=Object.getOwnPropertyDescriptor;let bn=class extends Zt{render(){return pt`<slot></slot>`}};bn.styles=[x`
2649
2649
  :host {
2650
2650
  font-weight: bold;
2651
2651
  font-size: 1.5rem;
@@ -2653,17 +2653,17 @@ ${this.value}</textarea
2653
2653
  line-height: var(--sc-headings-line-height);
2654
2654
  font-family: var(--sc-headings-font-family);
2655
2655
  }
2656
- `],gn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?un(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&pn(e,s,o),o})([b("sonic-modal-title")],gn);var bn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,fn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?mn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&bn(e,s,o),o};const vn="sonic-modal";let yn=class extends(he(Zt)){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(t){const e=document.createElement(vn);e.options=t,!0===t.removeHashOnHide&&e.setAttribute("removeHashOnHide","true"),!0===t.removeOnHide&&e.setAttribute("removeOnHide","true"),t.maxWidth&&(e.maxWidth=null==t?void 0:t.maxWidth),t.width&&(e.width=null==t?void 0:t.width),t.maxHeight&&(e.maxHeight=null==t?void 0:t.maxHeight),t.height&&(e.height=null==t?void 0:t.height),t.forceAction&&(e.forceAction=!0),t.paddingX&&e.style.setProperty("--sc-modal-px",null==t?void 0:t.paddingX),t.paddingY&&e.style.setProperty("--sc-modal-py",null==t?void 0:t.paddingY),t.zIndex&&e.style.setProperty("--sc-modal-z-index",null==t?void 0:t.zIndex);return Ms.getPopContainer().appendChild(e),e.show(),e}connectedCallback(){yn.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){yn.modals.splice(yn.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const t=this;document.addEventListener("keydown",this.handleEscape),t.closeBtn.forEach((e=>{e.addEventListener("click",(function(){t.hide()}),{once:!0})}))}willUpdate(t){t.has("fullScreen")&&this.handleFullsceen(),super.willUpdate(t)}render(){var t;if(0==this.visible)return gt;const e={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},s={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return pt`<div
2656
+ `],bn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?gn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&un(e,s,o),o})([b("sonic-modal-title")],bn);var mn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,vn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?fn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&mn(e,s,o),o};const yn="sonic-modal";let wn=class extends(he(Zt)){constructor(){super(...arguments),this.forceAction=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.zIndex="var(--sc-modal-z-index)",this.fullScreen=!1,this.visible=!1}static create(t){const e=document.createElement(yn);e.options=t,!0===t.removeHashOnHide&&e.setAttribute("removeHashOnHide","true"),!0===t.removeOnHide&&e.setAttribute("removeOnHide","true"),t.maxWidth&&(e.maxWidth=null==t?void 0:t.maxWidth),t.width&&(e.width=null==t?void 0:t.width),t.maxHeight&&(e.maxHeight=null==t?void 0:t.maxHeight),t.height&&(e.height=null==t?void 0:t.height),t.forceAction&&(e.forceAction=!0),t.paddingX&&e.style.setProperty("--sc-modal-px",null==t?void 0:t.paddingX),t.paddingY&&e.style.setProperty("--sc-modal-py",null==t?void 0:t.paddingY),t.zIndex&&e.style.setProperty("--sc-modal-z-index",null==t?void 0:t.zIndex);return Bs.getPopContainer().appendChild(e),e.show(),e}connectedCallback(){wn.modals.push(this),super.connectedCallback(),this.handleFullsceen()}disconnectedCallback(){wn.modals.splice(wn.modals.indexOf(this),1),super.disconnectedCallback()}updated(){const t=this;document.addEventListener("keydown",this.handleEscape),t.closeBtn.forEach((e=>{e.addEventListener("click",(function(){t.hide()}),{once:!0})}))}willUpdate(t){t.has("fullScreen")&&this.handleFullsceen(),super.willUpdate(t)}render(){var t;if(0==this.visible)return gt;const e={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,zIndex:this.zIndex,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},s={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return pt`<div
2657
2657
  class="modal-wrapper"
2658
2658
  style=${_e(s)}
2659
- ${cs({out:es})}
2659
+ ${vs({out:hs})}
2660
2660
  tabindex="0"
2661
2661
  >
2662
2662
  <div
2663
2663
  part="modal"
2664
2664
  class="modal custom-scroll"
2665
2665
  style=${_e(e)}
2666
- ${cs({keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]})}
2666
+ ${vs({keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]})}
2667
2667
  >
2668
2668
  <div class="modal-content">
2669
2669
  ${(null==(t=this.options)?void 0:t.forceAction)?gt:pt`<sonic-modal-close></sonic-modal-close>`} ${this.modalFragment("title")}
@@ -2676,8 +2676,8 @@ ${this.value}</textarea
2676
2676
  <div
2677
2677
  class="overlay"
2678
2678
  @click="${this.forceAction?null:this.hide}"
2679
- ${cs({keyframeOptions:{duration:500},in:ss,out:[{opacity:0,pointerEvents:"none"}]})}
2680
- ></div>`}modalFragment(t){var e;const s=null==(e=this.options)?void 0:e[t];if(!s)return gt;let i;switch(i=s instanceof Object?s:te(s),t){case"title":return pt`<sonic-modal-title>${i}</sonic-modal-title>`;case"subtitle":return pt`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;case"content":return pt`<sonic-modal-content>${i}</sonic-modal-content>`;case"actions":return pt`<sonic-modal-actions>${i}</sonic-modal-actions>`;default:return gt}}show(){var t,e;this.visible=!0,null==(t=this.modalElement)||t.setAttribute("tabindex","0"),null==(e=this.modalElement)||e.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var t;this.visible=!1,null==(t=this.modalElement)||t.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide")),this.hasAttribute("resetDataProviderOnHide")&&Te.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeOnHide&&this.remove(),setTimeout((()=>{this.dispatchEvent(new CustomEvent("hidden")),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname)}),480)}dispose(){this.hide(),this.remove()}static disposeAll(){yn.modals.forEach((t=>{t.dispose()}))}handleEscape(t){"Escape"===t.key&&yn.modals.forEach((t=>{t.forceAction||t.hide()}))}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};yn.styles=[xs,x`
2679
+ ${vs({keyframeOptions:{duration:500},in:ds,out:[{opacity:0,pointerEvents:"none"}]})}
2680
+ ></div>`}modalFragment(t){var e;const s=null==(e=this.options)?void 0:e[t];if(!s)return gt;let i;switch(i=s instanceof Object?s:te(s),t){case"title":return pt`<sonic-modal-title>${i}</sonic-modal-title>`;case"subtitle":return pt`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;case"content":return pt`<sonic-modal-content>${i}</sonic-modal-content>`;case"actions":return pt`<sonic-modal-actions>${i}</sonic-modal-actions>`;default:return gt}}show(){var t,e;this.visible=!0,null==(t=this.modalElement)||t.setAttribute("tabindex","0"),null==(e=this.modalElement)||e.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var t;this.visible=!1,null==(t=this.modalElement)||t.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide")),this.hasAttribute("resetDataProviderOnHide")&&He.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeOnHide&&this.remove(),setTimeout((()=>{this.dispatchEvent(new CustomEvent("hidden")),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname)}),480)}dispose(){this.hide(),this.remove()}static disposeAll(){wn.modals.forEach((t=>{t.dispose()}))}handleEscape(t){"Escape"===t.key&&wn.modals.forEach((t=>{t.forceAction||t.hide()}))}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};wn.styles=[Ds,x`
2681
2681
  :host {
2682
2682
  --sc-modal-py: 2.5rem;
2683
2683
  --sc-modal-px: 1.5rem;
@@ -2790,9 +2790,9 @@ ${this.value}</textarea
2790
2790
  :host([rounded="none"]) modal {
2791
2791
  --sc-img-radius: 0 !important;
2792
2792
  }
2793
- `],yn.modals=[],fn([F({type:Boolean})],yn.prototype,"forceAction",2),fn([F({type:Boolean})],yn.prototype,"removeOnHide",2),fn([F({type:Boolean})],yn.prototype,"removeHashOnHide",2),fn([F({type:String,reflect:!0})],yn.prototype,"align",2),fn([F({type:String})],yn.prototype,"padding",2),fn([F({type:String})],yn.prototype,"maxWidth",2),fn([F({type:String})],yn.prototype,"maxHeight",2),fn([F({type:String})],yn.prototype,"width",2),fn([F({type:String})],yn.prototype,"height",2),fn([F({type:String})],yn.prototype,"zIndex",2),fn([F({type:Object})],yn.prototype,"options",2),fn([F({type:Boolean,reflect:!0})],yn.prototype,"fullScreen",2),fn([F({type:Boolean,reflect:!0})],yn.prototype,"visible",2),fn([B(".modal-wrapper")],yn.prototype,"modalWrapper",2),fn([B(".modal")],yn.prototype,"modalElement",2),fn([H({selector:"sonic-modal-close"})],yn.prototype,"closeBtn",2),yn=fn([b(vn)],yn),"undefined"!=typeof window&&(window.SonicModal=yn);var wn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,_n=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?xn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&wn(e,s,o),o};const kn={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"};let An=class extends Zt{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=(new Date).getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const t=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(t)[this.id])return gt}return pt`<div part="alert" class="alert">
2793
+ `],wn.modals=[],vn([F({type:Boolean})],wn.prototype,"forceAction",2),vn([F({type:Boolean})],wn.prototype,"removeOnHide",2),vn([F({type:Boolean})],wn.prototype,"removeHashOnHide",2),vn([F({type:String,reflect:!0})],wn.prototype,"align",2),vn([F({type:String})],wn.prototype,"padding",2),vn([F({type:String})],wn.prototype,"maxWidth",2),vn([F({type:String})],wn.prototype,"maxHeight",2),vn([F({type:String})],wn.prototype,"width",2),vn([F({type:String})],wn.prototype,"height",2),vn([F({type:String})],wn.prototype,"zIndex",2),vn([F({type:Object})],wn.prototype,"options",2),vn([F({type:Boolean,reflect:!0})],wn.prototype,"fullScreen",2),vn([F({type:Boolean,reflect:!0})],wn.prototype,"visible",2),vn([B(".modal-wrapper")],wn.prototype,"modalWrapper",2),vn([B(".modal")],wn.prototype,"modalElement",2),vn([H({selector:"sonic-modal-close"})],wn.prototype,"closeBtn",2),wn=vn([b(yn)],wn),"undefined"!=typeof window&&(window.SonicModal=wn);var xn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,kn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?_n(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&xn(e,s,o),o};const An={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"};let Pn=class extends Zt{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=(new Date).getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}render(){if(this.dismissForever){const t=localStorage.getItem("sonic-alert-dismissed")||"{}";if(JSON.parse(t)[this.id])return gt}return pt`<div part="alert" class="alert">
2794
2794
  <slot name="icon" class="${this.noIcon?"hidden":gt}"
2795
- >${this.noIcon?gt:pt`<div>${this.status&&pt`<sonic-icon name=${kn[this.status]}></sonic-icon>`}</div>`}</slot
2795
+ >${this.noIcon?gt:pt`<div>${this.status&&pt`<sonic-icon name=${An[this.status]}></sonic-icon>`}</div>`}</slot
2796
2796
  >
2797
2797
  <div>
2798
2798
  ${this.label?pt`<span class="label">${te(this.label)}</span>`:gt}
@@ -2801,7 +2801,7 @@ ${this.value}</textarea
2801
2801
  ${this.dismissible?pt`<sonic-button @click=${this.close} class="close-btn" variant="unstyled" shape="circle">
2802
2802
  <sonic-icon name="cancel" size="lg"></sonic-icon>
2803
2803
  </sonic-button>`:gt}
2804
- </div>`}close(){if(this.remove(),this.dismissForever){const t=localStorage.getItem("sonic-alert-dismissed")||"{}",e=JSON.parse(t);e[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(e))}}};An.styles=[Be,x`
2804
+ </div>`}close(){if(this.remove(),this.dismissForever){const t=localStorage.getItem("sonic-alert-dismissed")||"{}",e=JSON.parse(t);e[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(e))}}};Pn.styles=[Je,x`
2805
2805
  :host {
2806
2806
  --sc-alert-color: var(--sc-base-content);
2807
2807
  --sc-alert-rounded: var(--sc-rounded);
@@ -2893,9 +2893,9 @@ ${this.value}</textarea
2893
2893
  top: 0.25rem;
2894
2894
  right: 0.25rem;
2895
2895
  }
2896
- `],_n([F({type:String})],An.prototype,"label",2),_n([F({type:Boolean,reflect:!0})],An.prototype,"noIcon",2),_n([F({type:String})],An.prototype,"text",2),_n([F({type:String})],An.prototype,"id",2),_n([F({type:String,reflect:!0})],An.prototype,"size",2),_n([F({type:Boolean,reflect:!0})],An.prototype,"dismissible",2),_n([F({type:Boolean,reflect:!0})],An.prototype,"background",2),_n([F({type:String,reflect:!0})],An.prototype,"status",2),_n([F({type:Boolean,reflect:!0})],An.prototype,"dismissForever",2),An=_n([b("sonic-alert")],An);var Pn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,Sn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Cn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Pn(e,s,o),o};let $n=class extends(he(Zt)){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(t){this._messages=t,this.messages&&t.forEach((t=>{"public"==t.type&&zs.add({text:t.content||"",status:t.status})}))}render(){return gt}};Sn([F({type:Array})],$n.prototype,"messages",1),$n=Sn([b("sonic-toast-message-subscriber")],$n);var On=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Ln=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Dn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&On(e,s,o),o};let En=class extends Zt{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const t=this.disabled||""==this.label?"disabled":"";return pt`<div data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}" class="tooltip ${t}">
2896
+ `],kn([F({type:String})],Pn.prototype,"label",2),kn([F({type:Boolean,reflect:!0})],Pn.prototype,"noIcon",2),kn([F({type:String})],Pn.prototype,"text",2),kn([F({type:String})],Pn.prototype,"id",2),kn([F({type:String,reflect:!0})],Pn.prototype,"size",2),kn([F({type:Boolean,reflect:!0})],Pn.prototype,"dismissible",2),kn([F({type:Boolean,reflect:!0})],Pn.prototype,"background",2),kn([F({type:String,reflect:!0})],Pn.prototype,"status",2),kn([F({type:Boolean,reflect:!0})],Pn.prototype,"dismissForever",2),Pn=kn([b("sonic-alert")],Pn);var Cn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,$n=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Sn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Cn(e,s,o),o};let On=class extends(he(Zt)){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(t){this._messages=t,this.messages&&t.forEach((t=>{"public"==t.type&&Ks.add({text:t.content||"",status:t.status})}))}render(){return gt}};$n([F({type:Array})],On.prototype,"messages",1),On=$n([b("sonic-toast-message-subscriber")],On);var Dn=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,En=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ln(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Dn(e,s,o),o};let jn=class extends Zt{constructor(){super(...arguments),this.label="",this.disabled=!1,this.focusable=!1}connectedCallback(){this.focusable&&this.setAttribute("tabindex","0"),super.connectedCallback()}render(){const t=this.disabled||""==this.label?"disabled":"";return pt`<div data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}" class="tooltip ${t}">
2897
2897
  <slot></slot>
2898
- </div>`}};En.styles=[x`
2898
+ </div>`}};jn.styles=[x`
2899
2899
  :host {
2900
2900
  position: relative;
2901
2901
  display: inline-flex;
@@ -2964,9 +2964,9 @@ ${this.value}</textarea
2964
2964
  transform: translateY(-50%);
2965
2965
  left: calc(100% + 0.25rem);
2966
2966
  }
2967
- `],Ln([F({type:String})],En.prototype,"label",2),Ln([F({type:String,reflect:!0})],En.prototype,"placement",2),Ln([F({type:Boolean})],En.prototype,"disabled",2),Ln([F({type:Boolean})],En.prototype,"focusable",2),En=Ln([b("sonic-tooltip")],En);var jn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,In=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Mn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&jn(e,s,o),o};let Tn=class extends Zt{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(t){var e,s;super.firstUpdated(t),(this.label||(null==(e=this.slotNodes)?void 0:e.length))&&(null==(s=this.divider)||s.classList.add("has-text"))}render(){return pt`<div part="divider">
2967
+ `],En([F({type:String})],jn.prototype,"label",2),En([F({type:String,reflect:!0})],jn.prototype,"placement",2),En([F({type:Boolean})],jn.prototype,"disabled",2),En([F({type:Boolean})],jn.prototype,"focusable",2),jn=En([b("sonic-tooltip")],jn);var Mn=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Tn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?In(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Mn(e,s,o),o};let Nn=class extends Zt{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(t){var e,s;super.firstUpdated(t),(this.label||(null==(e=this.slotNodes)?void 0:e.length))&&(null==(s=this.divider)||s.classList.add("has-text"))}render(){return pt`<div part="divider">
2968
2968
  <span class="text">${te(this.label?this.label:"")}<slot></slot></span>
2969
- </div>`}};Tn.styles=[x`
2969
+ </div>`}};Nn.styles=[x`
2970
2970
  :host {
2971
2971
  --sc-divider-my: 0.5rem;
2972
2972
  --sc-divider-mx: 0;
@@ -3092,18 +3092,18 @@ ${this.value}</textarea
3092
3092
  :host([dashed]) {
3093
3093
  --sc-divider-border-style: dashed;
3094
3094
  }
3095
- `],In([q({flatten:!0})],Tn.prototype,"slotNodes",2),In([B("div")],Tn.prototype,"divider",2),In([F({type:String})],Tn.prototype,"label",2),In([F({type:String,reflect:!0})],Tn.prototype,"size",2),In([F({type:String,reflect:!0})],Tn.prototype,"align",2),In([F({type:Boolean,reflect:!0})],Tn.prototype,"vertical",2),In([F({type:Boolean,reflect:!0})],Tn.prototype,"noMargin",2),In([F({type:Boolean,reflect:!0})],Tn.prototype,"dashed",2),In([F({type:Boolean,reflect:!0})],Tn.prototype,"dotted",2),Tn=In([b("sonic-divider")],Tn);var Nn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor;let Rn=class extends Zt{render(){return pt`
3095
+ `],Tn([q({flatten:!0})],Nn.prototype,"slotNodes",2),Tn([B("div")],Nn.prototype,"divider",2),Tn([F({type:String})],Nn.prototype,"label",2),Tn([F({type:String,reflect:!0})],Nn.prototype,"size",2),Tn([F({type:String,reflect:!0})],Nn.prototype,"align",2),Tn([F({type:Boolean,reflect:!0})],Nn.prototype,"vertical",2),Tn([F({type:Boolean,reflect:!0})],Nn.prototype,"noMargin",2),Tn([F({type:Boolean,reflect:!0})],Nn.prototype,"dashed",2),Tn([F({type:Boolean,reflect:!0})],Nn.prototype,"dotted",2),Nn=Tn([b("sonic-divider")],Nn);var zn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor;let Fn=class extends Zt{render(){return pt`
3096
3096
  <div>
3097
3097
  <slot></slot>
3098
3098
  </div>
3099
- `}};Rn.styles=[x`
3099
+ `}};Fn.styles=[x`
3100
3100
  div {
3101
3101
  margin-top: 0.1em;
3102
3102
  font-family: var(--sc-font-family-base);
3103
3103
  font-size: 0.7em;
3104
3104
  font-weight: var(--sc-font-style-base);
3105
3105
  }
3106
- `],Rn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?zn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Nn(e,s,o),o})([b("sonic-card-header-description")],Rn);var Fn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,Vn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Un(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Fn(e,s,o),o};let Bn=class extends Zt{render(){return pt`
3106
+ `],Fn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Rn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&zn(e,s,o),o})([b("sonic-card-header-description")],Fn);var Un=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Bn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Vn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Un(e,s,o),o};let Hn=class extends Zt{render(){return pt`
3107
3107
  <div class="header">
3108
3108
  <div class="header-content">
3109
3109
  ${te(this.label)}
@@ -3112,7 +3112,7 @@ ${this.value}</textarea
3112
3112
  </div>
3113
3113
  <slot name="suffix"></slot>
3114
3114
  </div>
3115
- `}};Bn.styles=[x`
3115
+ `}};Hn.styles=[x`
3116
3116
  :host {
3117
3117
  --sc-card-header-mb: 1.35rem;
3118
3118
  --sc-card-header-font-size: 1.875rem;
@@ -3145,15 +3145,15 @@ ${this.value}</textarea
3145
3145
  slot[name="suffix"] {
3146
3146
  flex-shrink: 0;
3147
3147
  }
3148
- `],Vn([F()],Bn.prototype,"label",2),Vn([F()],Bn.prototype,"description",2),Bn=Vn([b("sonic-card-header")],Bn);var Hn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor;let Wn=class extends Zt{render(){return pt`
3148
+ `],Bn([F()],Hn.prototype,"label",2),Bn([F()],Hn.prototype,"description",2),Hn=Bn([b("sonic-card-header")],Hn);var qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor;let Kn=class extends Zt{render(){return pt`
3149
3149
  <div>
3150
3150
  <slot></slot>
3151
3151
  </div>
3152
- `}};Wn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?qn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Hn(e,s,o),o})([b("sonic-card-main")],Wn);var Kn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor;let Yn=class extends Zt{render(){return pt` <slot></slot> `}};Yn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Zn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Kn(e,s,o),o})([b("sonic-card-footer")],Yn);var Gn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,Jn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Qn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Gn(e,s,o),o};let Xn=class extends Zt{constructor(){super(...arguments),this.type="default"}render(){return pt`
3152
+ `}};Kn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Wn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&qn(e,s,o),o})([b("sonic-card-main")],Kn);var Zn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor;let Gn=class extends Zt{render(){return pt` <slot></slot> `}};Gn=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Yn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Zn(e,s,o),o})([b("sonic-card-footer")],Gn);var Qn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Xn=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Jn(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Qn(e,s,o),o};let ta=class extends Zt{constructor(){super(...arguments),this.type="default"}render(){return pt`
3153
3153
  <div part="card" class="card">
3154
3154
  <slot></slot>
3155
3155
  </div>
3156
- `}};Xn.styles=[x`
3156
+ `}};ta.styles=[x`
3157
3157
  * {
3158
3158
  box-sizing: border-box;
3159
3159
  }
@@ -3229,7 +3229,7 @@ ${this.value}</textarea
3229
3229
  --sc-card-color: var(--sc-base);
3230
3230
  --sc-card-bg: var(--sc-base-900);
3231
3231
  }
3232
- `],Jn([F({type:String,reflect:!0})],Xn.prototype,"type",2),Xn=Jn([b("sonic-card")],Xn);const ta=x`
3232
+ `],Xn([F({type:String,reflect:!0})],ta.prototype,"type",2),ta=Xn([b("sonic-card")],ta);const ea=x`
3233
3233
  :host {
3234
3234
  --sc-color: inherit;
3235
3235
  color: var(--sc-color);
@@ -3286,7 +3286,7 @@ ${this.value}</textarea
3286
3286
  .inherit-bg {
3287
3287
  color: inherit;
3288
3288
  }
3289
- `;var ea=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,ia=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?sa(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ea(e,s,o),o};let ra=class extends(he(Zt)){constructor(){super(...arguments),this._metadata_={}}willUpdate(t){t.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(t)}render(){return pt`<slot></slot>`}};ra.styles=[ta,x`
3289
+ `;var sa=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,ra=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ia(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&sa(e,s,o),o};let oa=class extends(he(Zt)){constructor(){super(...arguments),this._metadata_={}}willUpdate(t){t.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(t)}render(){return pt`<slot></slot>`}};oa.styles=[ea,x`
3290
3290
  :host {
3291
3291
  display: table-row;
3292
3292
  }
@@ -3304,9 +3304,9 @@ ${this.value}</textarea
3304
3304
  :host(:hover) {
3305
3305
  background: var(--sc-table-hover-bg) !important;
3306
3306
  }
3307
- `],ia([F({type:Object})],ra.prototype,"_metadata_",2),ia([F({type:Boolean,reflect:!0})],ra.prototype,"even",2),ia([F({type:Boolean,reflect:!0})],ra.prototype,"odd",2),ia([F({type:Boolean,reflect:!0})],ra.prototype,"last",2),ra=ia([b("sonic-tr")],ra);var oa=Object.defineProperty,na=Object.getOwnPropertyDescriptor,aa=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?na(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&oa(e,s,o),o};let la=class extends Zt{render(){const t={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return pt`<th part="th" style=${_e(t)} colspan=${Ve(this.colSpan)} rowspan=${Ve(this.rowSpan)}>
3307
+ `],ra([F({type:Object})],oa.prototype,"_metadata_",2),ra([F({type:Boolean,reflect:!0})],oa.prototype,"even",2),ra([F({type:Boolean,reflect:!0})],oa.prototype,"odd",2),ra([F({type:Boolean,reflect:!0})],oa.prototype,"last",2),oa=ra([b("sonic-tr")],oa);var na=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,la=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?aa(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&na(e,s,o),o};let ca=class extends Zt{render(){const t={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return pt`<th part="th" style=${_e(t)} colspan=${Qe(this.colSpan)} rowspan=${Qe(this.rowSpan)}>
3308
3308
  <slot></slot>
3309
- </th> `}};la.styles=[ta,x`
3309
+ </th> `}};ca.styles=[ea,x`
3310
3310
  :host {
3311
3311
  display: contents;
3312
3312
  background: var(--sc-table-bg);
@@ -3328,9 +3328,9 @@ ${this.value}</textarea
3328
3328
  :host([noBorder]) th {
3329
3329
  border-bottom: none;
3330
3330
  }
3331
- `],aa([F({type:Number})],la.prototype,"colSpan",2),aa([F({type:Number})],la.prototype,"rowSpan",2),aa([F({type:String})],la.prototype,"align",2),aa([F({type:String})],la.prototype,"minWidth",2),aa([F({type:String})],la.prototype,"maxWidth",2),aa([F({type:String})],la.prototype,"width",2),la=aa([b("sonic-th")],la);var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,da=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?ha(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ca(e,s,o),o};let pa=class extends Zt{render(){const t={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return pt`<td part="td" style=${_e(t)} colspan=${Ve(this.colSpan)} rowspan=${Ve(this.rowSpan)}>
3331
+ `],la([F({type:Number})],ca.prototype,"colSpan",2),la([F({type:Number})],ca.prototype,"rowSpan",2),la([F({type:String})],ca.prototype,"align",2),la([F({type:String})],ca.prototype,"minWidth",2),la([F({type:String})],ca.prototype,"maxWidth",2),la([F({type:String})],ca.prototype,"width",2),ca=la([b("sonic-th")],ca);var ha=Object.defineProperty,da=Object.getOwnPropertyDescriptor,pa=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?da(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ha(e,s,o),o};let ua=class extends Zt{render(){const t={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return pt`<td part="td" style=${_e(t)} colspan=${Qe(this.colSpan)} rowspan=${Qe(this.rowSpan)}>
3332
3332
  <slot></slot>
3333
- </td>`}};pa.styles=[ta,x`
3333
+ </td>`}};ua.styles=[ea,x`
3334
3334
  :host {
3335
3335
  display: contents;
3336
3336
  }
@@ -3343,13 +3343,13 @@ ${this.value}</textarea
3343
3343
  border-right: var(--sc-table-td-border-r, none);
3344
3344
  border-left: var(--sc-table-td-border-l, none);
3345
3345
  }
3346
- `],da([F({type:Number})],pa.prototype,"colSpan",2),da([F({type:Number})],pa.prototype,"rowSpan",2),da([F({type:String})],pa.prototype,"align",2),da([F({type:String})],pa.prototype,"vAlign",2),da([F({type:String})],pa.prototype,"minWidth",2),da([F({type:String})],pa.prototype,"maxWidth",2),da([F({type:String})],pa.prototype,"width",2),pa=da([b("sonic-td")],pa);var ua=Object.defineProperty,ga=Object.getOwnPropertyDescriptor;let ba=class extends Zt{render(){return pt`<slot></slot>`}};ba.styles=[x`
3346
+ `],pa([F({type:Number})],ua.prototype,"colSpan",2),pa([F({type:Number})],ua.prototype,"rowSpan",2),pa([F({type:String})],ua.prototype,"align",2),pa([F({type:String})],ua.prototype,"vAlign",2),pa([F({type:String})],ua.prototype,"minWidth",2),pa([F({type:String})],ua.prototype,"maxWidth",2),pa([F({type:String})],ua.prototype,"width",2),ua=pa([b("sonic-td")],ua);var ga=Object.defineProperty,ba=Object.getOwnPropertyDescriptor;let ma=class extends Zt{render(){return pt`<slot></slot>`}};ma.styles=[x`
3347
3347
  :host {
3348
3348
  display: table-header-group;
3349
3349
  }
3350
- `],ba=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?ga(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ua(e,s,o),o})([b("sonic-thead")],ba);var ma=Object.defineProperty,fa=Object.getOwnPropertyDescriptor;let va=class extends Zt{render(){return pt`<tbody part="tbody">
3350
+ `],ma=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?ba(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ga(e,s,o),o})([b("sonic-thead")],ma);var fa=Object.defineProperty,va=Object.getOwnPropertyDescriptor;let ya=class extends Zt{render(){return pt`<tbody part="tbody">
3351
3351
  <slot></slot>
3352
- </tbody>`}};va.styles=[x`
3352
+ </tbody>`}};ya.styles=[x`
3353
3353
  :host {
3354
3354
  display: table-row-group;
3355
3355
  }
@@ -3365,26 +3365,26 @@ ${this.value}</textarea
3365
3365
  ::slotted(sonic-tr:not(:last-child)) {
3366
3366
  border-bottom: var(--sc-form-border-width) solid var(--sc-base-200) !important;
3367
3367
  }
3368
- `],va=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?fa(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ma(e,s,o),o})([b("sonic-tbody")],va);var ya=Object.defineProperty,wa=Object.getOwnPropertyDescriptor;let xa=class extends Zt{render(){return pt`<tfoot>
3368
+ `],ya=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?va(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&fa(e,s,o),o})([b("sonic-tbody")],ya);var wa=Object.defineProperty,xa=Object.getOwnPropertyDescriptor;let _a=class extends Zt{render(){return pt`<tfoot>
3369
3369
  <slot></slot>
3370
- </tfoot>`}};xa.styles=[x`
3370
+ </tfoot>`}};_a.styles=[x`
3371
3371
  :host {
3372
3372
  display: contents;
3373
3373
  }
3374
- `],xa=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?wa(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ya(e,s,o),o})([b("sonic-tfoot")],xa);var _a=Object.defineProperty,ka=Object.getOwnPropertyDescriptor;let Aa=class extends Zt{render(){return pt`<slot></slot>`}};Aa.styles=[x`
3374
+ `],_a=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?xa(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&wa(e,s,o),o})([b("sonic-tfoot")],_a);var ka=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor;let Pa=class extends Zt{render(){return pt`<slot></slot>`}};Pa.styles=[x`
3375
3375
  :host {
3376
3376
  display: table-caption;
3377
3377
  font-size: 0.75rem;
3378
3378
  color: var(--sc-table-caption-color);
3379
3379
  padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
3380
3380
  }
3381
- `],Aa=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?ka(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&_a(e,s,o),o})([b("sonic-caption")],Aa);var Pa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,Sa=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Ca(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Pa(e,s,o),o};let $a=class extends Zt{constructor(){super(...arguments),this.bordered=!1,this.rounded=!1,this.noCustomScroll=!1}render(){const t={maxHeight:this.maxHeight};return pt`
3381
+ `],Pa=((t,e,s,i)=>{for(var r,o=i>1?void 0:i?Aa(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&ka(e,s,o),o})([b("sonic-caption")],Pa);var Ca=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,$a=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Sa(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Ca(e,s,o),o};let Oa=class extends Zt{constructor(){super(...arguments),this.bordered=!1,this.rounded=!1,this.noCustomScroll=!1}render(){const t={maxHeight:this.maxHeight};return pt`
3382
3382
  <div class="table-container ${this.noCustomScroll?"":"custom-scroll"}" style=${_e(t)}>
3383
3383
  <div class="table">
3384
3384
  <slot></slot>
3385
3385
  </div>
3386
3386
  </div>
3387
- `}};$a.styles=[xs,Be,x`
3387
+ `}};Oa.styles=[Ds,Je,x`
3388
3388
  :host {
3389
3389
  --sc-table-fw: var(--sc-font-weight-base);
3390
3390
  --sc-table-fst: var(--sc-font-style-base);
@@ -3424,4 +3424,4 @@ ${this.value}</textarea
3424
3424
  border-radius: var(--sc-rounded);
3425
3425
  --sc-table-td-border-b: var(--sc-border-width) solid var(--sc-table-border-color);
3426
3426
  }
3427
- `],Sa([F({type:String,reflect:!0})],$a.prototype,"size",2),Sa([F({type:Boolean,reflect:!0})],$a.prototype,"bordered",2),Sa([F({type:Boolean,reflect:!0})],$a.prototype,"rounded",2),Sa([F({type:Boolean,reflect:!0})],$a.prototype,"noCustomScroll",2),Sa([F({type:String})],$a.prototype,"maxHeight",2),$a=Sa([b("sonic-table")],$a);var Oa=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,La=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?Da(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Oa(e,s,o),o};let Ea=class extends(Xs(Zt)){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=t=>{"request_token"==t&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js?render="+this.key,t.id="captcha-"+this.key,document.head.appendChild(t)}if(super.connectedCallback(),this.formPublisher=Te.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const t=document.createElement("style");t.innerHTML=".grecaptcha-badge {z-index: 9999;}",t.id="concorde-recaptcha-css",document.head.appendChild(t)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),super.disconnectedCallback()}requestToken(){var t,e;if(!this.formPublisher)return;const s=(this.action??(null==(t=this.formPublisher.captchaAction)?void 0:t.get())??"submit").replace(/[^\w_/]/g,"_"),i=((null==(e=this.formPublisher.captchaMethod)?void 0:e.get())??"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready((()=>{window.grecaptcha.execute(this.key,{action:i+"//"+s}).then((t=>{this.formPublisher&&(this.formPublisher.captchaToken=t)}))}))}render(){return pt` <slot></slot> `}};La([F()],Ea.prototype,"key",2),La([F()],Ea.prototype,"action",2),La([F({type:Number})],Ea.prototype,"zIndex",2),Ea=La([b("sonic-captcha")],Ea),window.SonicPublisherManager||(window.SonicPublisherManager=l),window.SonicDataBindObserver||(window.SonicDataBindObserver=u),window.queueMicrotask=window.queueMicrotask||function(t){Promise.resolve().then(t).catch((t=>setTimeout((()=>{throw t}))))};const ja=zs,Ma=yn;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:ja,SonicModal:Ma},window.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));
3427
+ `],$a([F({type:String,reflect:!0})],Oa.prototype,"size",2),$a([F({type:Boolean,reflect:!0})],Oa.prototype,"bordered",2),$a([F({type:Boolean,reflect:!0})],Oa.prototype,"rounded",2),$a([F({type:Boolean,reflect:!0})],Oa.prototype,"noCustomScroll",2),$a([F({type:String})],Oa.prototype,"maxHeight",2),Oa=$a([b("sonic-table")],Oa);var Da=Object.defineProperty,La=Object.getOwnPropertyDescriptor,Ea=(t,e,s,i)=>{for(var r,o=i>1?void 0:i?La(e,s):e,n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i?r(e,s,o):r(o))||o);return i&&o&&Da(e,s,o),o};let ja=class extends(li(Zt)){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=t=>{"request_token"==t&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())}}connectedCallback(){if(!document.getElementById("captcha-"+this.key)){const t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js?render="+this.key,t.id="captcha-"+this.key,document.head.appendChild(t)}if(super.connectedCallback(),this.formPublisher=He.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),!document.getElementById("concorde-recaptcha-css")){const t=document.createElement("style");t.innerHTML=".grecaptcha-badge {z-index: 9999;}",t.id="concorde-recaptcha-css",document.head.appendChild(t)}this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}disconnectedCallback(){this.formPublisher&&this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),super.disconnectedCallback()}requestToken(){var t,e;if(!this.formPublisher)return;const s=(this.action??(null==(t=this.formPublisher.captchaAction)?void 0:t.get())??"submit").replace(/[^\w_/]/g,"_"),i=((null==(e=this.formPublisher.captchaMethod)?void 0:e.get())??"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,window.grecaptcha.ready((()=>{window.grecaptcha.execute(this.key,{action:i+"//"+s}).then((t=>{this.formPublisher&&(this.formPublisher.captchaToken=t)}))}))}render(){return pt` <slot></slot> `}};Ea([F()],ja.prototype,"key",2),Ea([F()],ja.prototype,"action",2),Ea([F({type:Number})],ja.prototype,"zIndex",2),ja=Ea([b("sonic-captcha")],ja),window.SonicPublisherManager||(window.SonicPublisherManager=l),window.SonicDataBindObserver||(window.SonicDataBindObserver=u),window.queueMicrotask=window.queueMicrotask||function(t){Promise.resolve().then(t).catch((t=>setTimeout((()=>{throw t}))))};const Ma=Ks,Ia=wn;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ma,SonicModal:Ia},window.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));