@supersoniks/concorde 3.1.15 → 3.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build-infos.json CHANGED
@@ -1 +1 @@
1
- {"date":1724402855}
1
+ {"date":1724829740}
@@ -1,4 +1,4 @@
1
- (function(Q){typeof define=="function"&&define.amd?define(Q):Q()})(function(){"use strict";var Mt,k,L,Er,t,G;let Q=class It{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=It.getAncestorAttributeValue(t,"token"),i=It.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=It.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=It.getAncestorAttributeValue(t,"tokenProvider"),c=It.getAncestorAttributeValue(t,"eventsApiToken");s||(o=It.getAncestorAttributeValue(t,"userName"),n=It.getAncestorAttributeValue(t,"password"));const h=It.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return It.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}},os=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=Q.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),l&&c.push(o(s,"minute",i)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};function Te(r){return typeof r=="object"&&r!=null}const Tr=async()=>new Promise(r=>{window.queueMicrotask(()=>r(null))});let Pe="sonic";typeof __SONIC_PREFIX__>"u"&&(Pe="sonic"+Math.floor(Math.random()*1e6));const Es=Pe=="sonic"?"publisher-proxies-data":Pe+"-publisher-proxies-data";let Ns=(Mt=class{constructor(t,s){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=s||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Mt.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(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const s=this._assignmentId_;if(await Tr(),s!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>e(i)),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,s=!1){var o;if(this._value_===t||this._value_&&t&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;if(this._value_=Te(t)?t:{__value:t},this._cachedGet_=void 0,Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(s),!0;for(const n in this._value_)this._value_[n]===void 0&&delete this._value_[n];if(this._proxies_.forEach((n,l)=>{this._value_[l]===void 0&&l!="_parent_"&&i[l]&&(this._value_[l]=null)}),await this._publishAssignement_(),Te(this._value_))for(const n in this._value_){const l=t[n],h=Te(l)?l:{__value:l};if(!this._proxies_.has(n)){this._publishDynamicFilling_(n,l);continue}await((o=this._proxies_.get(n))==null?void 0:o.set(h,!0)),this._publishDynamicFilling_(n,l)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_}get $tag(){return this._instanceCounter_||(Mt.instancesCounter++,this._instanceCounter_=Mt.instancesCounter),Mt.instances.set(this._instanceCounter_,this),"<"+Pe+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Pe+"-publisher-proxy>"}},Mt.instances=new Map,Mt.instancesCounter=0,Mt),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(Es),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(Es,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.log("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+Q.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new je(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+Q.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Es,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(s),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Fri Aug 23 2024 10:47:35 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);const Ts=window;Ts.SonicPublisherManager||(Ts.SonicPublisherManager=N),Ts.SonicPublisherManager.registerInstance(N.getInstance());const jr=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 je extends Ns{constructor(t,s=null){super(t,s);const i=new Proxy(this,{get:function(e,o){if(o==Symbol.toPrimitive)return()=>i.get();if(jr.has(o))return e[o];if(!e._proxies_.has(o)){const n=e._value_[o],l=new je(Te(n)?n:{__value:n},e);l._proxies_.set("_parent_",i),e._proxies_.set(o,l)}return e._proxies_.get(o)},set:function(e,o,n){var c;if(o=="_value_")return e._value_=n,!0;if(o=="_cachedGet_")return e._cachedGet_=n,!0;if(o=="_assignmentId_")return e._assignmentId_=n,!0;if(o=="_is_savable_")return e._is_savable_=n,!0;if(o=="_instanceCounter_")return e._instanceCounter_=n,!0;if(!e._proxies_.has(o)){const h=new je({},e);h._proxies_.set("_parent_",i),e._proxies_.set(o,h)}return e._value_[o]!==n&&(e._value_[o]=n,e._publishDynamicFilling_(o,n),(c=e._proxies_.get(o))==null||c.set(Te(n)?n:{__value:n})),!0},deleteProperty:function(e,o){var n;return e._publishDynamicFilling_(o,null),(n=e._proxies_.get(o))==null||n.set(null),delete e._value_[o]},has:function(e,o){return o in e._value_&&o!="_lockInternalMutationPublishing_"},defineProperty:function(e,o,n){return n&&"value"in n&&(e._value_[o]=n.value),!0},getOwnPropertyDescriptor:function(e,o){return{enumerable:!0,configurable:!0}},ownKeys:function(e){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}});return i}toString(){return"hey"}valueOf(){return 2}getProperty(t,s){return t[s]}}class Mr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ns.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(Pe+"-publisher-proxy",Mr)}catch{}let ns=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=Q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const d=h;let f=i;f=L.getSubPublisher(i,d);const m=t,v={publisher:f,onAssign:()=>{const b=l.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let P=l.expression,S=!1;if(b.length==1&&l.variables[0].join(".")==P.substring(1)){let D=b[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<b.length;D++){let p=b[D];const u=l.variables[D];p===null&&(S=!0,p=void 0),P=P.replace("$"+u.join("."),p)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=os.js(P.substring(1));else{const p=P.substring(0,D),u=P.substring(D+1),y=os[p];P=S?"":y?y(u):P}}else P=S?"":P;m[c]=P}};f==null||f.onAssign(v.onAssign),o.push(v)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);ns.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ns);let X=class ee{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n];if(i?l!==c:l!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n],h=ee.isObject(l)&&ee.isObject(c),d=i?l!==c:l!=c;if(h&&!ee.deepEqual(l,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return ee.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&ee.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),ee.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return ee.getURLSearchArray(t,"").join("&")}};/**
1
+ (function(Q){typeof define=="function"&&define.amd?define(Q):Q()})(function(){"use strict";var Mt,k,L,Er,t,G;let Q=class It{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=It.getAncestorAttributeValue(t,"token"),i=It.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=It.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=It.getAncestorAttributeValue(t,"tokenProvider"),c=It.getAncestorAttributeValue(t,"eventsApiToken");s||(o=It.getAncestorAttributeValue(t,"userName"),n=It.getAncestorAttributeValue(t,"password"));const h=It.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return It.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}},os=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=Q.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),l&&c.push(o(s,"minute",i)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};function Te(r){return typeof r=="object"&&r!=null}const Tr=async()=>new Promise(r=>{window.queueMicrotask(()=>r(null))});let Pe="sonic";typeof __SONIC_PREFIX__>"u"&&(Pe="sonic"+Math.floor(Math.random()*1e6));const Es=Pe=="sonic"?"publisher-proxies-data":Pe+"-publisher-proxies-data";let Ns=(Mt=class{constructor(t,s){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=s||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Mt.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(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const s=this._assignmentId_;if(await Tr(),s!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>e(i)),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,s=!1){var o;if(this._value_===t||this._value_&&t&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;if(this._value_=Te(t)?t:{__value:t},this._cachedGet_=void 0,Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(s),!0;for(const n in this._value_)this._value_[n]===void 0&&delete this._value_[n];if(this._proxies_.forEach((n,l)=>{this._value_[l]===void 0&&l!="_parent_"&&i[l]&&(this._value_[l]=null)}),await this._publishAssignement_(),Te(this._value_))for(const n in this._value_){const l=t[n],h=Te(l)?l:{__value:l};if(!this._proxies_.has(n)){this._publishDynamicFilling_(n,l);continue}await((o=this._proxies_.get(n))==null?void 0:o.set(h,!0)),this._publishDynamicFilling_(n,l)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_}get $tag(){return this._instanceCounter_||(Mt.instancesCounter++,this._instanceCounter_=Mt.instancesCounter),Mt.instances.set(this._instanceCounter_,this),"<"+Pe+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Pe+"-publisher-proxy>"}},Mt.instances=new Map,Mt.instancesCounter=0,Mt),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(Es),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(Es,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.log("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+Q.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new je(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+Q.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Es,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(s),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Wed Aug 28 2024 09:22:20 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);const Ts=window;Ts.SonicPublisherManager||(Ts.SonicPublisherManager=N),Ts.SonicPublisherManager.registerInstance(N.getInstance());const jr=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 je extends Ns{constructor(t,s=null){super(t,s);const i=new Proxy(this,{get:function(e,o){if(o==Symbol.toPrimitive)return()=>i.get();if(jr.has(o))return e[o];if(!e._proxies_.has(o)){const n=e._value_[o],l=new je(Te(n)?n:{__value:n},e);l._proxies_.set("_parent_",i),e._proxies_.set(o,l)}return e._proxies_.get(o)},set:function(e,o,n){var c;if(o=="_value_")return e._value_=n,!0;if(o=="_cachedGet_")return e._cachedGet_=n,!0;if(o=="_assignmentId_")return e._assignmentId_=n,!0;if(o=="_is_savable_")return e._is_savable_=n,!0;if(o=="_instanceCounter_")return e._instanceCounter_=n,!0;if(!e._proxies_.has(o)){const h=new je({},e);h._proxies_.set("_parent_",i),e._proxies_.set(o,h)}return e._value_[o]!==n&&(e._value_[o]=n,e._publishDynamicFilling_(o,n),(c=e._proxies_.get(o))==null||c.set(Te(n)?n:{__value:n})),!0},deleteProperty:function(e,o){var n;return e._publishDynamicFilling_(o,null),(n=e._proxies_.get(o))==null||n.set(null),delete e._value_[o]},has:function(e,o){return o in e._value_&&o!="_lockInternalMutationPublishing_"},defineProperty:function(e,o,n){return n&&"value"in n&&(e._value_[o]=n.value),!0},getOwnPropertyDescriptor:function(e,o){return{enumerable:!0,configurable:!0}},ownKeys:function(e){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}});return i}toString(){return"hey"}valueOf(){return 2}getProperty(t,s){return t[s]}}class Mr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ns.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(Pe+"-publisher-proxy",Mr)}catch{}let ns=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=Q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const d=h;let f=i;f=L.getSubPublisher(i,d);const m=t,v={publisher:f,onAssign:()=>{const b=l.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let P=l.expression,S=!1;if(b.length==1&&l.variables[0].join(".")==P.substring(1)){let D=b[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<b.length;D++){let p=b[D];const u=l.variables[D];p===null&&(S=!0,p=void 0),P=P.replace("$"+u.join("."),p)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=os.js(P.substring(1));else{const p=P.substring(0,D),u=P.substring(D+1),y=os[p];P=S?"":y?y(u):P}}else P=S?"":P;m[c]=P}};f==null||f.onAssign(v.onAssign),o.push(v)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);ns.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ns);let X=class ee{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n];if(i?l!==c:l!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n],h=ee.isObject(l)&&ee.isObject(c),d=i?l!==c:l!=c;if(h&&!ee.deepEqual(l,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return ee.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&ee.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),ee.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return ee.getURLSearchArray(t,"").join("&")}};/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -2467,7 +2467,10 @@ ${this.value}</textarea
2467
2467
  .legend-content {
2468
2468
  flex-grow: 1;
2469
2469
  }
2470
- `],ve([a({type:Boolean})],Ut.prototype,"forceAutoFill",2),ve([a()],Ut.prototype,"description",1),ve([a()],Ut.prototype,"label",1),ve([a({type:String})],Ut.prototype,"iconName",2),ve([a({type:String})],Ut.prototype,"iconLibrary",2),ve([a({type:String})],Ut.prototype,"iconPrefix",2),Ut=ve([_(gl)],Ut);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ml(t,s,e),e};const vl="sonic-fieldset";let xt=class extends Y(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset form="${x(this.form)}" ?disabled="${this.disabled}">
2470
+ `],ve([a({type:Boolean})],Ut.prototype,"forceAutoFill",2),ve([a()],Ut.prototype,"description",1),ve([a()],Ut.prototype,"label",1),ve([a({type:String})],Ut.prototype,"iconName",2),ve([a({type:String})],Ut.prototype,"iconLibrary",2),ve([a({type:String})],Ut.prototype,"iconPrefix",2),Ut=ve([_(gl)],Ut);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ml(t,s,e),e};const vl="sonic-fieldset";let xt=class extends Y(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2471
+ form="${x(this.form)}"
2472
+ ?disabled="${this.disabled}"
2473
+ >
2471
2474
  ${this.label?g` <sonic-legend
2472
2475
  label=${x(this.label)}
2473
2476
  description=${x(this.description)}
@@ -2488,7 +2491,8 @@ ${this.value}</textarea
2488
2491
  margin-top: var(--sc-fieldset-mt);
2489
2492
  margin-bottom: var(--sc-fieldset-mb);
2490
2493
  display: block;
2491
- border: var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color) !important;
2494
+ border: var(--sc-fieldset-border-width) solid
2495
+ var(--sc-fieldset-border-color) !important;
2492
2496
  padding: var(--sc-fieldset-py) var(--sc-fieldset-px);
2493
2497
  border-radius: var(--sc-rounded-lg);
2494
2498
  }
@@ -2520,6 +2524,7 @@ ${this.value}</textarea
2520
2524
  display: block;
2521
2525
  }
2522
2526
 
2527
+ sonic-legend:last-child,
2523
2528
  ::slotted(sonic-legend:last-child) {
2524
2529
  margin-bottom: 0;
2525
2530
  }
@@ -2885,8 +2890,9 @@ ${this.value}</textarea
2885
2890
  ${ms({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}]})}
2886
2891
  >
2887
2892
  <div class="modal-content">
2888
- ${(s=this.options)!=null&&s.forceAction?C:g`<sonic-modal-close></sonic-modal-close>`} ${this.modalFragment("title")}
2889
- ${this.modalFragment("subtitle")} ${this.modalFragment("content")} ${this.modalFragment("actions")}
2893
+ ${(s=this.options)!=null&&s.forceAction?C:g`<sonic-modal-close></sonic-modal-close>`}
2894
+ ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
2895
+ ${this.modalFragment("content")} ${this.modalFragment("actions")}
2890
2896
 
2891
2897
  <slot></slot>
2892
2898
  </div>
@@ -2952,14 +2958,17 @@ ${this.value}</textarea
2952
2958
  position: fixed;
2953
2959
  }
2954
2960
 
2955
- ::slotted(sonic-modal-title) {
2961
+ ::slotted(sonic-modal-title),
2962
+ sonic-modal-title {
2956
2963
  margin-bottom: 1.25rem;
2957
2964
  }
2958
- :host([align="left"]) ::slotted(sonic-modal-title) {
2965
+ :host([align="left"]) ::slotted(sonic-modal-title),
2966
+ :host([align="left"]) sonic-modal-title {
2959
2967
  padding-right: 1em;
2960
2968
  }
2961
2969
 
2962
- ::slotted(sonic-modal-subtitle) {
2970
+ ::slotted(sonic-modal-subtitle),
2971
+ sonic-modal-subtitle {
2963
2972
  margin-top: -0.9rem;
2964
2973
  margin-bottom: 1.25rem;
2965
2974
  }
@@ -495,7 +495,7 @@ let T = (k = class {
495
495
  const h = await new Response(l.readable).arrayBuffer();
496
496
  return new TextDecoder().decode(h);
497
497
  }
498
- }, k.buildDate = "Fri Aug 23 2024 10:47:35 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
498
+ }, k.buildDate = "Wed Aug 28 2024 09:22:20 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
499
499
  const Us = window;
500
500
  Us.SonicPublisherManager || (Us.SonicPublisherManager = T);
501
501
  Us.SonicPublisherManager.registerInstance(
@@ -9274,7 +9274,10 @@ let xt = class extends G(w) {
9274
9274
  super(...arguments), this.disabled = !1, this.variant = "default";
9275
9275
  }
9276
9276
  render() {
9277
- return g`<fieldset form="${x(this.form)}" ?disabled="${this.disabled}">
9277
+ return g`<fieldset
9278
+ form="${x(this.form)}"
9279
+ ?disabled="${this.disabled}"
9280
+ >
9278
9281
  ${this.label ? g` <sonic-legend
9279
9282
  label=${x(this.label)}
9280
9283
  description=${x(this.description)}
@@ -9299,7 +9302,8 @@ xt.styles = [
9299
9302
  margin-top: var(--sc-fieldset-mt);
9300
9303
  margin-bottom: var(--sc-fieldset-mb);
9301
9304
  display: block;
9302
- border: var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color) !important;
9305
+ border: var(--sc-fieldset-border-width) solid
9306
+ var(--sc-fieldset-border-color) !important;
9303
9307
  padding: var(--sc-fieldset-py) var(--sc-fieldset-px);
9304
9308
  border-radius: var(--sc-rounded-lg);
9305
9309
  }
@@ -9331,6 +9335,7 @@ xt.styles = [
9331
9335
  display: block;
9332
9336
  }
9333
9337
 
9338
+ sonic-legend:last-child,
9334
9339
  ::slotted(sonic-legend:last-child) {
9335
9340
  margin-bottom: 0;
9336
9341
  }
@@ -10206,13 +10211,26 @@ let R = class extends G(w) {
10206
10211
  duration: 400,
10207
10212
  easing: "cubic-bezier(0.250, 0.250, 0.420, 1.225)"
10208
10213
  },
10209
- in: [{ transform: "translateY(25%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }],
10210
- out: [{ transform: "translateY(20%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }]
10214
+ in: [
10215
+ {
10216
+ transform: "translateY(25%) scale(1)",
10217
+ boxShadow: "0 0 0 rgba(0,0,0,0)",
10218
+ opacity: 0
10219
+ }
10220
+ ],
10221
+ out: [
10222
+ {
10223
+ transform: "translateY(20%) scale(1)",
10224
+ boxShadow: "0 0 0 rgba(0,0,0,0)",
10225
+ opacity: 0
10226
+ }
10227
+ ]
10211
10228
  })}
10212
10229
  >
10213
10230
  <div class="modal-content">
10214
- ${(s = this.options) != null && s.forceAction ? C : g`<sonic-modal-close></sonic-modal-close>`} ${this.modalFragment("title")}
10215
- ${this.modalFragment("subtitle")} ${this.modalFragment("content")} ${this.modalFragment("actions")}
10231
+ ${(s = this.options) != null && s.forceAction ? C : g`<sonic-modal-close></sonic-modal-close>`}
10232
+ ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
10233
+ ${this.modalFragment("content")} ${this.modalFragment("actions")}
10216
10234
 
10217
10235
  <slot></slot>
10218
10236
  </div>
@@ -10255,7 +10273,9 @@ let R = class extends G(w) {
10255
10273
  }
10256
10274
  hide() {
10257
10275
  var r;
10258
- this.visible = !1, (r = this.modalElement) == null || r.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") && J.get(this.getAttribute("resetDataProviderOnHide")).set({}), this.removeOnHide && this.remove(), setTimeout(() => {
10276
+ this.visible = !1, (r = this.modalElement) == null || r.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") && J.get(this.getAttribute("resetDataProviderOnHide")).set(
10277
+ {}
10278
+ ), this.removeOnHide && this.remove(), setTimeout(() => {
10259
10279
  this.dispatchEvent(new CustomEvent("hidden")), this.removeHashOnHide && window.history.replaceState({}, "", window.location.pathname);
10260
10280
  }, 480);
10261
10281
  }
@@ -10334,14 +10354,17 @@ R.styles = [
10334
10354
  position: fixed;
10335
10355
  }
10336
10356
 
10337
- ::slotted(sonic-modal-title) {
10357
+ ::slotted(sonic-modal-title),
10358
+ sonic-modal-title {
10338
10359
  margin-bottom: 1.25rem;
10339
10360
  }
10340
- :host([align="left"]) ::slotted(sonic-modal-title) {
10361
+ :host([align="left"]) ::slotted(sonic-modal-title),
10362
+ :host([align="left"]) sonic-modal-title {
10341
10363
  padding-right: 1em;
10342
10364
  }
10343
10365
 
10344
- ::slotted(sonic-modal-subtitle) {
10366
+ ::slotted(sonic-modal-subtitle),
10367
+ sonic-modal-subtitle {
10345
10368
  margin-top: -0.9rem;
10346
10369
  margin-bottom: 1.25rem;
10347
10370
  }
@@ -1,4 +1,4 @@
1
- (function(Q){typeof define=="function"&&define.amd?define(Q):Q()})(function(){"use strict";var Mt,k,L,Er,t,G;let Q=class It{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=It.getAncestorAttributeValue(t,"token"),i=It.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=It.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=It.getAncestorAttributeValue(t,"tokenProvider"),c=It.getAncestorAttributeValue(t,"eventsApiToken");s||(o=It.getAncestorAttributeValue(t,"userName"),n=It.getAncestorAttributeValue(t,"password"));const h=It.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return It.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}},os=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=Q.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),l&&c.push(o(s,"minute",i)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};function Te(r){return typeof r=="object"&&r!=null}const Tr=async()=>new Promise(r=>{window.queueMicrotask(()=>r(null))});let Pe="sonic";typeof __SONIC_PREFIX__>"u"&&(Pe="sonic"+Math.floor(Math.random()*1e6));const Es=Pe=="sonic"?"publisher-proxies-data":Pe+"-publisher-proxies-data";let Ns=(Mt=class{constructor(t,s){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=s||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Mt.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(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const s=this._assignmentId_;if(await Tr(),s!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>e(i)),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,s=!1){var o;if(this._value_===t||this._value_&&t&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;if(this._value_=Te(t)?t:{__value:t},this._cachedGet_=void 0,Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(s),!0;for(const n in this._value_)this._value_[n]===void 0&&delete this._value_[n];if(this._proxies_.forEach((n,l)=>{this._value_[l]===void 0&&l!="_parent_"&&i[l]&&(this._value_[l]=null)}),await this._publishAssignement_(),Te(this._value_))for(const n in this._value_){const l=t[n],h=Te(l)?l:{__value:l};if(!this._proxies_.has(n)){this._publishDynamicFilling_(n,l);continue}await((o=this._proxies_.get(n))==null?void 0:o.set(h,!0)),this._publishDynamicFilling_(n,l)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_}get $tag(){return this._instanceCounter_||(Mt.instancesCounter++,this._instanceCounter_=Mt.instancesCounter),Mt.instances.set(this._instanceCounter_,this),"<"+Pe+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Pe+"-publisher-proxy>"}},Mt.instances=new Map,Mt.instancesCounter=0,Mt),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(Es),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(Es,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.log("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+Q.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new je(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+Q.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Es,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(s),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Fri Aug 23 2024 10:47:35 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);const Ts=window;Ts.SonicPublisherManager||(Ts.SonicPublisherManager=N),Ts.SonicPublisherManager.registerInstance(N.getInstance());const jr=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 je extends Ns{constructor(t,s=null){super(t,s);const i=new Proxy(this,{get:function(e,o){if(o==Symbol.toPrimitive)return()=>i.get();if(jr.has(o))return e[o];if(!e._proxies_.has(o)){const n=e._value_[o],l=new je(Te(n)?n:{__value:n},e);l._proxies_.set("_parent_",i),e._proxies_.set(o,l)}return e._proxies_.get(o)},set:function(e,o,n){var c;if(o=="_value_")return e._value_=n,!0;if(o=="_cachedGet_")return e._cachedGet_=n,!0;if(o=="_assignmentId_")return e._assignmentId_=n,!0;if(o=="_is_savable_")return e._is_savable_=n,!0;if(o=="_instanceCounter_")return e._instanceCounter_=n,!0;if(!e._proxies_.has(o)){const h=new je({},e);h._proxies_.set("_parent_",i),e._proxies_.set(o,h)}return e._value_[o]!==n&&(e._value_[o]=n,e._publishDynamicFilling_(o,n),(c=e._proxies_.get(o))==null||c.set(Te(n)?n:{__value:n})),!0},deleteProperty:function(e,o){var n;return e._publishDynamicFilling_(o,null),(n=e._proxies_.get(o))==null||n.set(null),delete e._value_[o]},has:function(e,o){return o in e._value_&&o!="_lockInternalMutationPublishing_"},defineProperty:function(e,o,n){return n&&"value"in n&&(e._value_[o]=n.value),!0},getOwnPropertyDescriptor:function(e,o){return{enumerable:!0,configurable:!0}},ownKeys:function(e){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}});return i}toString(){return"hey"}valueOf(){return 2}getProperty(t,s){return t[s]}}class Mr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ns.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(Pe+"-publisher-proxy",Mr)}catch{}let ns=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=Q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const d=h;let f=i;f=L.getSubPublisher(i,d);const m=t,v={publisher:f,onAssign:()=>{const b=l.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let P=l.expression,S=!1;if(b.length==1&&l.variables[0].join(".")==P.substring(1)){let D=b[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<b.length;D++){let p=b[D];const u=l.variables[D];p===null&&(S=!0,p=void 0),P=P.replace("$"+u.join("."),p)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=os.js(P.substring(1));else{const p=P.substring(0,D),u=P.substring(D+1),y=os[p];P=S?"":y?y(u):P}}else P=S?"":P;m[c]=P}};f==null||f.onAssign(v.onAssign),o.push(v)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);ns.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ns);let X=class ee{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n];if(i?l!==c:l!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n],h=ee.isObject(l)&&ee.isObject(c),d=i?l!==c:l!=c;if(h&&!ee.deepEqual(l,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return ee.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&ee.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),ee.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return ee.getURLSearchArray(t,"").join("&")}};/**
1
+ (function(Q){typeof define=="function"&&define.amd?define(Q):Q()})(function(){"use strict";var Mt,k,L,Er,t,G;let Q=class It{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=It.getAncestorAttributeValue(t,"token"),i=It.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=It.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=It.getAncestorAttributeValue(t,"tokenProvider"),c=It.getAncestorAttributeValue(t,"eventsApiToken");s||(o=It.getAncestorAttributeValue(t,"userName"),n=It.getAncestorAttributeValue(t,"password"));const h=It.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),f=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:f}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return It.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}},os=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=Q.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,f){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:f}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),l&&c.push(o(s,"minute",i)(l)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}};function Te(r){return typeof r=="object"&&r!=null}const Tr=async()=>new Promise(r=>{window.queueMicrotask(()=>r(null))});let Pe="sonic";typeof __SONIC_PREFIX__>"u"&&(Pe="sonic"+Math.floor(Math.random()*1e6));const Es=Pe=="sonic"?"publisher-proxies-data":Pe+"-publisher-proxies-data";let Ns=(Mt=class{constructor(t,s){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=s||null,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Mt.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(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){this._assignmentId_++;const s=this._assignmentId_;if(await Tr(),s!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>e(i)),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}async set(t,s=!1){var o;if(this._value_===t||this._value_&&t&&Object.prototype.hasOwnProperty.call(this._value_,"__value")&&Object.prototype.hasOwnProperty.call(t,"__value")&&this._value_.__value===t.__value)return!0;const i=this._value_;if(this._value_=Te(t)?t:{__value:t},this._cachedGet_=void 0,Object.prototype.hasOwnProperty.call(this._value_,"__value"))return await this._publishAssignement_(s),!0;for(const n in this._value_)this._value_[n]===void 0&&delete this._value_[n];if(this._proxies_.forEach((n,l)=>{this._value_[l]===void 0&&l!="_parent_"&&i[l]&&(this._value_[l]=null)}),await this._publishAssignement_(),Te(this._value_))for(const n in this._value_){const l=t[n],h=Te(l)?l:{__value:l};if(!this._proxies_.has(n)){this._publishDynamicFilling_(n,l);continue}await((o=this._proxies_.get(n))==null?void 0:o.set(h,!0)),this._publishDynamicFilling_(n,l)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_}get $tag(){return this._instanceCounter_||(Mt.instancesCounter++,this._instanceCounter_=Mt.instancesCounter),Mt.instances.set(this._instanceCounter_,this),"<"+Pe+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+Pe+"-publisher-proxy>"}},Mt.instances=new Map,Mt.instancesCounter=0,Mt),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let i=localStorage.getItem(Es),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(Es,i),this.localStorageData={};const o=new Date().getTime()-1e3*60*60*12;for(const n in this.localStorageData)this.localStorageData[n].lastModifiationMS<o&&delete this.localStorageData[n];t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.log("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+Q.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled";if(!this.publishers.has(t)){const o={},n=new je(o);this.set(t,n)}const e=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(e._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(e,t)),this.publishers.get(t)}set(t,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+Q.getLanguage()]={lastModifiationMS:new Date().getTime(),data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Es,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(s),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Wed Aug 28 2024 09:22:20 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);const Ts=window;Ts.SonicPublisherManager||(Ts.SonicPublisherManager=N),Ts.SonicPublisherManager.registerInstance(N.getInstance());const jr=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 je extends Ns{constructor(t,s=null){super(t,s);const i=new Proxy(this,{get:function(e,o){if(o==Symbol.toPrimitive)return()=>i.get();if(jr.has(o))return e[o];if(!e._proxies_.has(o)){const n=e._value_[o],l=new je(Te(n)?n:{__value:n},e);l._proxies_.set("_parent_",i),e._proxies_.set(o,l)}return e._proxies_.get(o)},set:function(e,o,n){var c;if(o=="_value_")return e._value_=n,!0;if(o=="_cachedGet_")return e._cachedGet_=n,!0;if(o=="_assignmentId_")return e._assignmentId_=n,!0;if(o=="_is_savable_")return e._is_savable_=n,!0;if(o=="_instanceCounter_")return e._instanceCounter_=n,!0;if(!e._proxies_.has(o)){const h=new je({},e);h._proxies_.set("_parent_",i),e._proxies_.set(o,h)}return e._value_[o]!==n&&(e._value_[o]=n,e._publishDynamicFilling_(o,n),(c=e._proxies_.get(o))==null||c.set(Te(n)?n:{__value:n})),!0},deleteProperty:function(e,o){var n;return e._publishDynamicFilling_(o,null),(n=e._proxies_.get(o))==null||n.set(null),delete e._value_[o]},has:function(e,o){return o in e._value_&&o!="_lockInternalMutationPublishing_"},defineProperty:function(e,o,n){return n&&"value"in n&&(e._value_[o]=n.value),!0},getOwnPropertyDescriptor:function(e,o){return{enumerable:!0,configurable:!0}},ownKeys:function(e){return e._value_.__value?Object.keys(e._value_.__value):Object.keys(e._value_)}});return i}toString(){return"hey"}valueOf(){return 2}getProperty(t,s){return t[s]}}class Mr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=Ns.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(Pe+"-publisher-proxy",Mr)}catch{}let ns=(L=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(L.observedElements.keys()).forEach(t=>L.unObserve(t)))}static observe(t){if(!t||!L.enabled||L.observedElements.has(t))return;const s=new MutationObserver(L.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>L.addPublisherListeners(e)),L.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>L.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.addPublisherListeners(s)):t.childNodes.forEach(s=>L.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&L.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>L.removePublisherListeners(s)):t.childNodes.forEach(s=>L.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":L.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{L.onAdded(i)}),s.removedNodes.forEach(i=>{L.onRemoved(i)});break}}static removePublisherListeners(t){const s=L.publisherListeners.get(t);s&&(L.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:L.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){L.removePublisherListeners(t);const s=Q.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=L.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const d=h;let f=i;f=L.getSubPublisher(i,d);const m=t,v={publisher:f,onAssign:()=>{const b=l.variables.map(D=>{var p;return(p=L.getSubPublisher(i,D))==null?void 0:p.get()});let P=l.expression,S=!1;if(b.length==1&&l.variables[0].join(".")==P.substring(1)){let D=b[0];D===null&&(D=""),m[c]=D;return}for(let D=0;D<b.length;D++){let p=b[D];const u=l.variables[D];p===null&&(S=!0,p=void 0),P=P.replace("$"+u.join("."),p)}if(P.indexOf("|")!=-1){const D=P.indexOf("|");if(D==0)P=os.js(P.substring(1));else{const p=P.substring(0,D),u=P.substring(D+1),y=os[p];P=S?"":y?y(u):P}}else P=S?"":P;m[c]=P}};f==null||f.onAssign(v.onAssign),o.push(v)}}),L.publisherListeners.set(t,o)}},L.observedElements=new Map,L.enabled=!0,L.publisherListeners=new Map,L);ns.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ns);let X=class ee{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n];if(i?l!==c:l!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const l=t[n],c=s[n],h=ee.isObject(l)&&ee.isObject(c),d=i?l!==c:l!=c;if(h&&!ee.deepEqual(l,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return ee.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&ee.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),ee.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return ee.getURLSearchArray(t,"").join("&")}};/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -2467,7 +2467,10 @@ ${this.value}</textarea
2467
2467
  .legend-content {
2468
2468
  flex-grow: 1;
2469
2469
  }
2470
- `],ve([a({type:Boolean})],Ut.prototype,"forceAutoFill",2),ve([a()],Ut.prototype,"description",1),ve([a()],Ut.prototype,"label",1),ve([a({type:String})],Ut.prototype,"iconName",2),ve([a({type:String})],Ut.prototype,"iconLibrary",2),ve([a({type:String})],Ut.prototype,"iconPrefix",2),Ut=ve([_(gl)],Ut);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ml(t,s,e),e};const vl="sonic-fieldset";let xt=class extends Y(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset form="${x(this.form)}" ?disabled="${this.disabled}">
2470
+ `],ve([a({type:Boolean})],Ut.prototype,"forceAutoFill",2),ve([a()],Ut.prototype,"description",1),ve([a()],Ut.prototype,"label",1),ve([a({type:String})],Ut.prototype,"iconName",2),ve([a({type:String})],Ut.prototype,"iconLibrary",2),ve([a({type:String})],Ut.prototype,"iconPrefix",2),Ut=ve([_(gl)],Ut);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,kt=(r,t,s,i)=>{for(var e=i>1?void 0:i?bl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&ml(t,s,e),e};const vl="sonic-fieldset";let xt=class extends Y(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return g`<fieldset
2471
+ form="${x(this.form)}"
2472
+ ?disabled="${this.disabled}"
2473
+ >
2471
2474
  ${this.label?g` <sonic-legend
2472
2475
  label=${x(this.label)}
2473
2476
  description=${x(this.description)}
@@ -2488,7 +2491,8 @@ ${this.value}</textarea
2488
2491
  margin-top: var(--sc-fieldset-mt);
2489
2492
  margin-bottom: var(--sc-fieldset-mb);
2490
2493
  display: block;
2491
- border: var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color) !important;
2494
+ border: var(--sc-fieldset-border-width) solid
2495
+ var(--sc-fieldset-border-color) !important;
2492
2496
  padding: var(--sc-fieldset-py) var(--sc-fieldset-px);
2493
2497
  border-radius: var(--sc-rounded-lg);
2494
2498
  }
@@ -2520,6 +2524,7 @@ ${this.value}</textarea
2520
2524
  display: block;
2521
2525
  }
2522
2526
 
2527
+ sonic-legend:last-child,
2523
2528
  ::slotted(sonic-legend:last-child) {
2524
2529
  margin-bottom: 0;
2525
2530
  }
@@ -2885,8 +2890,9 @@ ${this.value}</textarea
2885
2890
  ${ms({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}]})}
2886
2891
  >
2887
2892
  <div class="modal-content">
2888
- ${(s=this.options)!=null&&s.forceAction?C:g`<sonic-modal-close></sonic-modal-close>`} ${this.modalFragment("title")}
2889
- ${this.modalFragment("subtitle")} ${this.modalFragment("content")} ${this.modalFragment("actions")}
2893
+ ${(s=this.options)!=null&&s.forceAction?C:g`<sonic-modal-close></sonic-modal-close>`}
2894
+ ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
2895
+ ${this.modalFragment("content")} ${this.modalFragment("actions")}
2890
2896
 
2891
2897
  <slot></slot>
2892
2898
  </div>
@@ -2952,14 +2958,17 @@ ${this.value}</textarea
2952
2958
  position: fixed;
2953
2959
  }
2954
2960
 
2955
- ::slotted(sonic-modal-title) {
2961
+ ::slotted(sonic-modal-title),
2962
+ sonic-modal-title {
2956
2963
  margin-bottom: 1.25rem;
2957
2964
  }
2958
- :host([align="left"]) ::slotted(sonic-modal-title) {
2965
+ :host([align="left"]) ::slotted(sonic-modal-title),
2966
+ :host([align="left"]) sonic-modal-title {
2959
2967
  padding-right: 1em;
2960
2968
  }
2961
2969
 
2962
- ::slotted(sonic-modal-subtitle) {
2970
+ ::slotted(sonic-modal-subtitle),
2971
+ sonic-modal-subtitle {
2963
2972
  margin-top: -0.9rem;
2964
2973
  margin-bottom: 1.25rem;
2965
2974
  }
@@ -495,7 +495,7 @@ let T = (k = class {
495
495
  const h = await new Response(l.readable).arrayBuffer();
496
496
  return new TextDecoder().decode(h);
497
497
  }
498
- }, k.buildDate = "Fri Aug 23 2024 10:47:35 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
498
+ }, k.buildDate = "Wed Aug 28 2024 09:22:20 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
499
499
  const Us = window;
500
500
  Us.SonicPublisherManager || (Us.SonicPublisherManager = T);
501
501
  Us.SonicPublisherManager.registerInstance(
@@ -9274,7 +9274,10 @@ let xt = class extends G(w) {
9274
9274
  super(...arguments), this.disabled = !1, this.variant = "default";
9275
9275
  }
9276
9276
  render() {
9277
- return g`<fieldset form="${x(this.form)}" ?disabled="${this.disabled}">
9277
+ return g`<fieldset
9278
+ form="${x(this.form)}"
9279
+ ?disabled="${this.disabled}"
9280
+ >
9278
9281
  ${this.label ? g` <sonic-legend
9279
9282
  label=${x(this.label)}
9280
9283
  description=${x(this.description)}
@@ -9299,7 +9302,8 @@ xt.styles = [
9299
9302
  margin-top: var(--sc-fieldset-mt);
9300
9303
  margin-bottom: var(--sc-fieldset-mb);
9301
9304
  display: block;
9302
- border: var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color) !important;
9305
+ border: var(--sc-fieldset-border-width) solid
9306
+ var(--sc-fieldset-border-color) !important;
9303
9307
  padding: var(--sc-fieldset-py) var(--sc-fieldset-px);
9304
9308
  border-radius: var(--sc-rounded-lg);
9305
9309
  }
@@ -9331,6 +9335,7 @@ xt.styles = [
9331
9335
  display: block;
9332
9336
  }
9333
9337
 
9338
+ sonic-legend:last-child,
9334
9339
  ::slotted(sonic-legend:last-child) {
9335
9340
  margin-bottom: 0;
9336
9341
  }
@@ -10206,13 +10211,26 @@ let R = class extends G(w) {
10206
10211
  duration: 400,
10207
10212
  easing: "cubic-bezier(0.250, 0.250, 0.420, 1.225)"
10208
10213
  },
10209
- in: [{ transform: "translateY(25%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }],
10210
- out: [{ transform: "translateY(20%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }]
10214
+ in: [
10215
+ {
10216
+ transform: "translateY(25%) scale(1)",
10217
+ boxShadow: "0 0 0 rgba(0,0,0,0)",
10218
+ opacity: 0
10219
+ }
10220
+ ],
10221
+ out: [
10222
+ {
10223
+ transform: "translateY(20%) scale(1)",
10224
+ boxShadow: "0 0 0 rgba(0,0,0,0)",
10225
+ opacity: 0
10226
+ }
10227
+ ]
10211
10228
  })}
10212
10229
  >
10213
10230
  <div class="modal-content">
10214
- ${(s = this.options) != null && s.forceAction ? C : g`<sonic-modal-close></sonic-modal-close>`} ${this.modalFragment("title")}
10215
- ${this.modalFragment("subtitle")} ${this.modalFragment("content")} ${this.modalFragment("actions")}
10231
+ ${(s = this.options) != null && s.forceAction ? C : g`<sonic-modal-close></sonic-modal-close>`}
10232
+ ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
10233
+ ${this.modalFragment("content")} ${this.modalFragment("actions")}
10216
10234
 
10217
10235
  <slot></slot>
10218
10236
  </div>
@@ -10255,7 +10273,9 @@ let R = class extends G(w) {
10255
10273
  }
10256
10274
  hide() {
10257
10275
  var r;
10258
- this.visible = !1, (r = this.modalElement) == null || r.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") && J.get(this.getAttribute("resetDataProviderOnHide")).set({}), this.removeOnHide && this.remove(), setTimeout(() => {
10276
+ this.visible = !1, (r = this.modalElement) == null || r.setAttribute("tabindex", "-1"), this.dispatchEvent(new CustomEvent("hide")), this.hasAttribute("resetDataProviderOnHide") && J.get(this.getAttribute("resetDataProviderOnHide")).set(
10277
+ {}
10278
+ ), this.removeOnHide && this.remove(), setTimeout(() => {
10259
10279
  this.dispatchEvent(new CustomEvent("hidden")), this.removeHashOnHide && window.history.replaceState({}, "", window.location.pathname);
10260
10280
  }, 480);
10261
10281
  }
@@ -10334,14 +10354,17 @@ R.styles = [
10334
10354
  position: fixed;
10335
10355
  }
10336
10356
 
10337
- ::slotted(sonic-modal-title) {
10357
+ ::slotted(sonic-modal-title),
10358
+ sonic-modal-title {
10338
10359
  margin-bottom: 1.25rem;
10339
10360
  }
10340
- :host([align="left"]) ::slotted(sonic-modal-title) {
10361
+ :host([align="left"]) ::slotted(sonic-modal-title),
10362
+ :host([align="left"]) sonic-modal-title {
10341
10363
  padding-right: 1em;
10342
10364
  }
10343
10365
 
10344
- ::slotted(sonic-modal-subtitle) {
10366
+ ::slotted(sonic-modal-subtitle),
10367
+ sonic-modal-subtitle {
10345
10368
  margin-top: -0.9rem;
10346
10369
  margin-bottom: 1.25rem;
10347
10370
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersoniks/concorde",
3
- "version": "3.1.15",
3
+ "version": "3.1.17",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "",
@@ -1,6 +1,6 @@
1
- import {html, LitElement, css, nothing} from "lit";
2
- import {customElement, property} from "lit/decorators.js";
3
- import {ifDefined} from "lit/directives/if-defined.js";
1
+ import { html, LitElement, css, nothing } from "lit";
2
+ import { customElement, property } from "lit/decorators.js";
3
+ import { ifDefined } from "lit/directives/if-defined.js";
4
4
  import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
5
5
  import "./legend";
6
6
 
@@ -21,7 +21,8 @@ export class Fieldset extends Subscriber(LitElement) {
21
21
  margin-top: var(--sc-fieldset-mt);
22
22
  margin-bottom: var(--sc-fieldset-mb);
23
23
  display: block;
24
- border: var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color) !important;
24
+ border: var(--sc-fieldset-border-width) solid
25
+ var(--sc-fieldset-border-color) !important;
25
26
  padding: var(--sc-fieldset-py) var(--sc-fieldset-px);
26
27
  border-radius: var(--sc-rounded-lg);
27
28
  }
@@ -53,6 +54,7 @@ export class Fieldset extends Subscriber(LitElement) {
53
54
  display: block;
54
55
  }
55
56
 
57
+ sonic-legend:last-child,
56
58
  ::slotted(sonic-legend:last-child) {
57
59
  margin-bottom: 0;
58
60
  }
@@ -64,23 +66,29 @@ export class Fieldset extends Subscriber(LitElement) {
64
66
  /**
65
67
  * Désactiver le fieldset
66
68
  */
67
- @property({type: Boolean, reflect: true}) disabled: true | false = false;
69
+ @property({ type: Boolean, reflect: true }) disabled: true | false = false;
68
70
  /**
69
71
  * Lier à un formulaire qui ne serait pas parent du fieldset
70
72
  */
71
- @property({type: String}) form?: string;
73
+ @property({ type: String }) form?: string;
72
74
 
73
- @property({type: String}) label?: string;
74
- @property({type: String}) description?: string;
75
- @property({type: String}) iconName?: string;
76
- @property({type: String}) iconLibrary?: string;
77
- @property({type: String}) iconPrefix?: string;
78
- @property({type: Boolean, reflect: true}) tight?: boolean;
75
+ @property({ type: String }) label?: string;
76
+ @property({ type: String }) description?: string;
77
+ @property({ type: String }) iconName?: string;
78
+ @property({ type: String }) iconLibrary?: string;
79
+ @property({ type: String }) iconPrefix?: string;
80
+ @property({ type: Boolean, reflect: true }) tight?: boolean;
79
81
 
80
- @property({type: String, reflect: true}) variant: "default" | "ghost" | "shadow" = "default";
82
+ @property({ type: String, reflect: true }) variant:
83
+ | "default"
84
+ | "ghost"
85
+ | "shadow" = "default";
81
86
 
82
87
  render() {
83
- return html`<fieldset form="${ifDefined(this.form)}" ?disabled="${this.disabled}">
88
+ return html`<fieldset
89
+ form="${ifDefined(this.form)}"
90
+ ?disabled="${this.disabled}"
91
+ >
84
92
  ${this.label
85
93
  ? html` <sonic-legend
86
94
  label=${ifDefined(this.label)}
@@ -1,22 +1,27 @@
1
- import {animate, fadeIn, fadeOut} from "@lit-labs/motion";
2
- import {customScroll} from "@supersoniks/concorde/core/components/ui/_css/scroll";
1
+ import { animate, fadeIn, fadeOut } from "@lit-labs/motion";
2
+ import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
3
3
  import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
4
- import {css, html, LitElement, nothing, PropertyValues} from "lit";
5
- import {customElement, property, query, queryAssignedElements} from "lit/decorators.js";
6
- import {styleMap} from "lit/directives/style-map.js";
4
+ import { css, html, LitElement, nothing, PropertyValues } from "lit";
5
+ import {
6
+ customElement,
7
+ property,
8
+ query,
9
+ queryAssignedElements,
10
+ } from "lit/decorators.js";
11
+ import { styleMap } from "lit/directives/style-map.js";
7
12
 
8
13
  import "@supersoniks/concorde/core/components/ui/modal/modal-actions";
9
14
  import "@supersoniks/concorde/core/components/ui/modal/modal-close";
10
15
  import "@supersoniks/concorde/core/components/ui/modal/modal-content";
11
16
  import "@supersoniks/concorde/core/components/ui/modal/modal-subtitle";
12
17
  import "@supersoniks/concorde/core/components/ui/modal/modal-title";
13
- import {PublisherManager} from "@supersoniks/concorde/utils";
14
- import {ConcordeWindow} from "@supersoniks/concorde/core/_types/types";
15
- import {Theme} from "@supersoniks/concorde/core/components/ui/theme/theme";
16
- import {PrimitiveType} from "@supersoniks/concorde/core/_types/types";
17
- import {DirectiveResult} from "lit/directive.js";
18
+ import { PublisherManager } from "@supersoniks/concorde/utils";
19
+ import { ConcordeWindow } from "@supersoniks/concorde/core/_types/types";
20
+ import { Theme } from "@supersoniks/concorde/core/components/ui/theme/theme";
21
+ import { PrimitiveType } from "@supersoniks/concorde/core/_types/types";
22
+ import { DirectiveResult } from "lit/directive.js";
18
23
 
19
- import {unsafeHTML} from "lit/directives/unsafe-html.js";
24
+ import { unsafeHTML } from "lit/directives/unsafe-html.js";
20
25
 
21
26
  declare const window: ConcordeWindow;
22
27
  declare type ModalCreateOptions = {
@@ -97,14 +102,17 @@ export class Modal extends Subscriber(LitElement) {
97
102
  position: fixed;
98
103
  }
99
104
 
100
- ::slotted(sonic-modal-title) {
105
+ ::slotted(sonic-modal-title),
106
+ sonic-modal-title {
101
107
  margin-bottom: 1.25rem;
102
108
  }
103
- :host([align="left"]) ::slotted(sonic-modal-title) {
109
+ :host([align="left"]) ::slotted(sonic-modal-title),
110
+ :host([align="left"]) sonic-modal-title {
104
111
  padding-right: 1em;
105
112
  }
106
113
 
107
- ::slotted(sonic-modal-subtitle) {
114
+ ::slotted(sonic-modal-subtitle),
115
+ sonic-modal-subtitle {
108
116
  margin-top: -0.9rem;
109
117
  margin-bottom: 1.25rem;
110
118
  }
@@ -158,33 +166,38 @@ export class Modal extends Subscriber(LitElement) {
158
166
  ];
159
167
  static modals: Array<Modal> = [];
160
168
 
161
- @property({type: Boolean}) forceAction = false;
162
- @property({type: Boolean}) removeOnHide = false;
163
- @property({type: Boolean}) removeHashOnHide = false;
164
- @property({type: String, reflect: true}) align: "center" | "right" | "left" = "left";
165
-
166
- @property({type: String}) padding = "var(--sc-modal-py) var(--sc-modal-px)";
167
- @property({type: String}) maxWidth = "var(--sc-modal-max-w) ";
168
- @property({type: String}) maxHeight = "var(--sc-modal-max-h) ";
169
- @property({type: String}) width = "100%";
170
- @property({type: String}) height = "auto";
171
- @property({type: String}) zIndex = "var(--sc-modal-z-index)";
172
- @property({type: Object}) options?: ModalCreateOptions;
173
- @property({type: Boolean, reflect: true}) fullScreen = false;
174
- @property({type: Boolean, reflect: true}) visible = false;
169
+ @property({ type: Boolean }) forceAction = false;
170
+ @property({ type: Boolean }) removeOnHide = false;
171
+ @property({ type: Boolean }) removeHashOnHide = false;
172
+ @property({ type: String, reflect: true }) align:
173
+ | "center"
174
+ | "right"
175
+ | "left" = "left";
176
+
177
+ @property({ type: String }) padding = "var(--sc-modal-py) var(--sc-modal-px)";
178
+ @property({ type: String }) maxWidth = "var(--sc-modal-max-w) ";
179
+ @property({ type: String }) maxHeight = "var(--sc-modal-max-h) ";
180
+ @property({ type: String }) width = "100%";
181
+ @property({ type: String }) height = "auto";
182
+ @property({ type: String }) zIndex = "var(--sc-modal-z-index)";
183
+ @property({ type: Object }) options?: ModalCreateOptions;
184
+ @property({ type: Boolean, reflect: true }) fullScreen = false;
185
+ @property({ type: Boolean, reflect: true }) visible = false;
175
186
 
176
187
  @query(".modal-wrapper") modalWrapper!: HTMLDivElement;
177
188
  @query(".modal") modalElement!: HTMLDivElement;
178
189
 
179
- @queryAssignedElements({selector: "sonic-modal-close"})
190
+ @queryAssignedElements({ selector: "sonic-modal-close" })
180
191
  closeBtn!: Array<HTMLElement>;
181
192
  static create(options: ModalCreateOptions): Modal {
182
193
  const modal = document.createElement(tagName) as Modal;
183
194
  // modal styles
184
195
  modal.options = options;
185
196
 
186
- if (options.removeHashOnHide === true) modal.setAttribute("removeHashOnHide", "true");
187
- if (options.removeOnHide === true) modal.setAttribute("removeOnHide", "true");
197
+ if (options.removeHashOnHide === true)
198
+ modal.setAttribute("removeHashOnHide", "true");
199
+ if (options.removeOnHide === true)
200
+ modal.setAttribute("removeOnHide", "true");
188
201
 
189
202
  if (options.maxWidth) modal.maxWidth = options?.maxWidth;
190
203
  if (options.width) modal.width = options?.width;
@@ -192,9 +205,12 @@ export class Modal extends Subscriber(LitElement) {
192
205
  if (options.height) modal.height = options?.height;
193
206
  if (options.forceAction) modal.forceAction = true;
194
207
 
195
- if (options.paddingX) modal.style.setProperty("--sc-modal-px", options?.paddingX);
196
- if (options.paddingY) modal.style.setProperty("--sc-modal-py", options?.paddingY);
197
- if (options.zIndex) modal.style.setProperty("--sc-modal-z-index", options?.zIndex);
208
+ if (options.paddingX)
209
+ modal.style.setProperty("--sc-modal-px", options?.paddingX);
210
+ if (options.paddingY)
211
+ modal.style.setProperty("--sc-modal-py", options?.paddingY);
212
+ if (options.zIndex)
213
+ modal.style.setProperty("--sc-modal-z-index", options?.zIndex);
198
214
 
199
215
  const container = Theme.getPopContainer();
200
216
  container.appendChild(modal);
@@ -223,7 +239,7 @@ export class Modal extends Subscriber(LitElement) {
223
239
  function () {
224
240
  currentModal.hide();
225
241
  },
226
- {once: true}
242
+ { once: true }
227
243
  );
228
244
  });
229
245
  }
@@ -273,13 +289,28 @@ export class Modal extends Subscriber(LitElement) {
273
289
  duration: 400,
274
290
  easing: `cubic-bezier(0.250, 0.250, 0.420, 1.225)`,
275
291
  },
276
- in: [{transform: "translateY(25%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0}],
277
- out: [{transform: "translateY(20%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0}],
292
+ in: [
293
+ {
294
+ transform: "translateY(25%) scale(1)",
295
+ boxShadow: "0 0 0 rgba(0,0,0,0)",
296
+ opacity: 0,
297
+ },
298
+ ],
299
+ out: [
300
+ {
301
+ transform: "translateY(20%) scale(1)",
302
+ boxShadow: "0 0 0 rgba(0,0,0,0)",
303
+ opacity: 0,
304
+ },
305
+ ],
278
306
  })}
279
307
  >
280
308
  <div class="modal-content">
281
- ${!this.options?.forceAction ? html`<sonic-modal-close></sonic-modal-close>` : nothing} ${this.modalFragment("title")}
282
- ${this.modalFragment("subtitle")} ${this.modalFragment("content")} ${this.modalFragment("actions")}
309
+ ${!this.options?.forceAction
310
+ ? html`<sonic-modal-close></sonic-modal-close>`
311
+ : nothing}
312
+ ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
313
+ ${this.modalFragment("content")} ${this.modalFragment("actions")}
283
314
 
284
315
  <slot></slot>
285
316
  </div>
@@ -293,7 +324,7 @@ export class Modal extends Subscriber(LitElement) {
293
324
  duration: 500,
294
325
  },
295
326
  in: fadeIn,
296
- out: [{opacity: 0, pointerEvents: "none"}],
327
+ out: [{ opacity: 0, pointerEvents: "none" }],
297
328
  })}
298
329
  ></div>`;
299
330
  }
@@ -337,7 +368,9 @@ export class Modal extends Subscriber(LitElement) {
337
368
  this.modalElement?.setAttribute("tabindex", "-1");
338
369
  this.dispatchEvent(new CustomEvent("hide"));
339
370
  if (this.hasAttribute("resetDataProviderOnHide")) {
340
- PublisherManager.get(this.getAttribute("resetDataProviderOnHide")).set({});
371
+ PublisherManager.get(this.getAttribute("resetDataProviderOnHide")).set(
372
+ {}
373
+ );
341
374
  }
342
375
  if (this.removeOnHide) {
343
376
  this.remove();
package/vite/config.js CHANGED
@@ -164,6 +164,7 @@ const scopeComponents = (prefix, filesFilter) => {
164
164
  resolveId(source) {
165
165
  const source0 = source;
166
166
  if (shortPathMapping[source]) {
167
+ console.log("shortPathMapping", shortPathMapping[source]);
167
168
  return shortPathMapping[source][0];
168
169
  }
169
170
  /** old way */
@@ -200,6 +201,8 @@ const scopeComponents = (prefix, filesFilter) => {
200
201
  source.replace("@supersoniks/concorde", __dirname + "/../src") +
201
202
  extension
202
203
  );
204
+ // console.log("longPathMapping", result);
205
+
203
206
  return result;
204
207
  // return resolveURI(source0);
205
208
  },