diff --git a/dt-assets/build/components/index.es.js b/dt-assets/build/components/index.es.js index 57a73e3c13..a7944cb6e8 100644 --- a/dt-assets/build/components/index.es.js +++ b/dt-assets/build/components/index.es.js @@ -1,4 +1,4 @@ -import { E as e, C as s, x as D, B as o, D as l, a as i, b as n, d as r, e as c, f as p, u, w as C, A as M, g as T, h as m, i as x, j as S, y as d, k as g, t as B, r as h, l as v, m as A, n as b, o as F, p as L, z as f, q as y, c as U, v as j } from "./index-DpLFOrwQ.js"; +import { F as e, E as s, y as D, C as o, D as l, a as i, b as n, d as r, e as c, f as u, w as p, x as M, B as T, g as x, h as C, i as m, j as S, z as d, k as g, u as B, r as h, t as v, l as A, m as F, n as b, o as L, p as f, A as y, q as G, c as U, v as j } from "./index-CGwyMuNJ.js"; export { e as ApiService, s as ComponentService, @@ -9,25 +9,26 @@ export { n as DtConnection, r as DtCopyText, c as DtDate, - p as DtDatetime, - u as DtFileUpload, - C as DtFormBase, - M as DtIcon, - T as DtLabel, - m as DtLocation, - x as DtLocationMap, + u as DtDatetime, + p as DtFileUpload, + M as DtFormBase, + T as DtIcon, + x as DtLabel, + C as DtLocation, + m as DtLocationMap, S as DtMapModal, d as DtModal, g as DtMultiSelect, B as DtMultiSelectButtonGroup, h as DtMultiText, - v as DtNumberField, - A as DtSingleSelect, + v as DtMultiTextGroups, + A as DtNumberField, + F as DtSingleSelect, b as DtTags, - F as DtText, - L as DtTextArea, - f as DtTile, - y as DtToggle, + L as DtText, + f as DtTextArea, + y as DtTile, + G as DtToggle, U as DtUsersConnection, j as version }; diff --git a/dt-assets/build/components/index.js b/dt-assets/build/components/index.js index d528749213..a91d6987b1 100644 --- a/dt-assets/build/components/index.js +++ b/dt-assets/build/components/index.js @@ -1,30 +1,30 @@ -var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn=(x,D,W)=>D in x?Pn(x,D,{enumerable:!0,configurable:!0,writable:!0,value:W}):x[D]=W;var Me=(x,D,W)=>Mn(x,typeof D!="symbol"?D+"":D,W);/** +var DtWebComponents=function(x){"use strict";var Mn=Object.defineProperty;var jn=(x,D,W)=>D in x?Mn(x,D,{enumerable:!0,configurable:!0,writable:!0,value:W}):x[D]=W;var Me=(x,D,W)=>jn(x,typeof D!="symbol"?D+"":D,W);/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */var Oo;const D=globalThis,W=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ut=Symbol(),Vt=new WeakMap;let qo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Ut)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(W&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Vt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vt.set(t,e))}return e}toString(){return this.cssText}};const Uo=s=>new qo(typeof s=="string"?s:s+"",void 0,Ut),Vo=(s,e)=>{if(W)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=D.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},Bt=W?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Uo(t)})(s):s;/** + */var Oo;const D=globalThis,W=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vt=Symbol(),Bt=new WeakMap;let Uo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(W&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Bt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Bt.set(t,e))}return e}toString(){return this.cssText}};const Vo=s=>new Uo(typeof s=="string"?s:s+"",void 0,Vt),Bo=(s,e)=>{if(W)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=D.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},Ht=W?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Vo(t)})(s):s;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:Bo,defineProperty:Ho,getOwnPropertyDescriptor:Ko,getOwnPropertyNames:Wo,getOwnPropertySymbols:Go,getPrototypeOf:Zo}=Object,G=globalThis,Ht=G.trustedTypes,Jo=Ht?Ht.emptyScript:"",et=G.reactiveElementPolyfillSupport,fe=(s,e)=>s,tt={toAttribute(s,e){switch(e){case Boolean:s=s?Jo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Kt=(s,e)=>!Bo(s,e),Wt={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:Kt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),G.litPropertyMetadata??(G.litPropertyMetadata=new WeakMap);let be=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Wt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Ho(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=Ko(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Wt}static _$Ei(){if(this.hasOwnProperty(fe("elementProperties")))return;const e=Zo(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(fe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fe("properties"))){const t=this.properties,i=[...Wo(t),...Go(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(Bt(o))}else e!==void 0&&t.push(Bt(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vo(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:tt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:tt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??Kt)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}};be.elementStyles=[],be.shadowRootOptions={mode:"open"},be[fe("elementProperties")]=new Map,be[fe("finalized")]=new Map,et==null||et({ReactiveElement:be}),(G.reactiveElementVersions??(G.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:Ho,defineProperty:Ko,getOwnPropertyDescriptor:Go,getOwnPropertyNames:Wo,getOwnPropertySymbols:Zo,getPrototypeOf:Jo}=Object,Z=globalThis,Kt=Z.trustedTypes,Qo=Kt?Kt.emptyScript:"",et=Z.reactiveElementPolyfillSupport,fe=(s,e)=>s,tt={toAttribute(s,e){switch(e){case Boolean:s=s?Qo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Gt=(s,e)=>!Ho(s,e),Wt={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:Gt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Z.litPropertyMetadata??(Z.litPropertyMetadata=new WeakMap);let be=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Wt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Ko(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=Go(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Wt}static _$Ei(){if(this.hasOwnProperty(fe("elementProperties")))return;const e=Jo(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(fe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fe("properties"))){const t=this.properties,i=[...Wo(t),...Zo(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(Ht(o))}else e!==void 0&&t.push(Ht(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bo(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:tt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:tt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??Gt)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}};be.elementStyles=[],be.shadowRootOptions={mode:"open"},be[fe("elementProperties")]=new Map,be[fe("finalized")]=new Map,et==null||et({ReactiveElement:be}),(Z.reactiveElementVersions??(Z.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const me=globalThis,je=me.trustedTypes,Gt=je?je.createPolicy("lit-html",{createHTML:s=>s}):void 0,Zt="$lit$",Z=`lit$${Math.random().toFixed(9).slice(2)}$`,Jt="?"+Z,Qo=`<${Jt}>`,te=document,ge=()=>te.createComment(""),ve=s=>s===null||typeof s!="object"&&typeof s!="function",it=Array.isArray,Xo=s=>it(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[ -\f\r]`,ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Xt=/>/g,ie=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Yt=/'/g,ei=/"/g,ti=/^(?:script|style|textarea|title)$/i,Yo=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),p=Yo(1),U=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),ii=new WeakMap,oe=te.createTreeWalker(te,129);function oi(s,e){if(!it(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gt!==void 0?Gt.createHTML(e):e}const es=(s,e)=>{const t=s.length-1,i=[];let o,a=e===2?"":e===3?"":"",r=ye;for(let n=0;n"?(r=o??ye,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?ie:u[3]==='"'?ei:Yt):r===ei||r===Yt?r=ie:r===Qt||r===Xt?r=ye:(r=ie,o=void 0);const y=r===ie&&s[n+1].startsWith("/>")?" ":"";a+=r===ye?l+Qo:h>=0?(i.push(d),l.slice(0,h)+Zt+l.slice(h)+Z+y):l+Z+(h===-2?n:y)}return[oi(s,a+(s[t]||"")+(e===2?"":e===3?"":"")),i]};class _e{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let a=0,r=0;const n=e.length-1,l=this.parts,[d,u]=es(e,t);if(this.el=_e.createElement(d,i),oe.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=oe.nextNode())!==null&&l.length0){o.textContent=je?je.emptyScript:"";for(let y=0;y2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}_$AI(e,t=this,i,o){const a=this.strings;let r=!1;if(a===void 0)e=ce(this,e,t,0),r=!ve(e)||e!==this._$AH&&e!==U,r&&(this._$AH=e);else{const n=e;let l,d;for(e=a[0],l=0;l{const i=(t==null?void 0:t.renderBefore)??e;let o=i._$litPart$;if(o===void 0){const a=(t==null?void 0:t.renderBefore)??null;i._$litPart$=o=new ue(e.insertBefore(ge(),a),a,void 0,t??{})}return o._$AI(s),o};/** + */const me=globalThis,je=me.trustedTypes,Zt=je?je.createPolicy("lit-html",{createHTML:s=>s}):void 0,Jt="$lit$",J=`lit$${Math.random().toFixed(9).slice(2)}$`,Qt="?"+J,Xo=`<${Qt}>`,ie=document,ge=()=>ie.createComment(""),ve=s=>s===null||typeof s!="object"&&typeof s!="function",it=Array.isArray,Yo=s=>it(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[ +\f\r]`,ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xt=/-->/g,Yt=/>/g,oe=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),ei=/'/g,ti=/"/g,ii=/^(?:script|style|textarea|title)$/i,es=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),h=es(1),V=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),oi=new WeakMap,se=ie.createTreeWalker(ie,129);function si(s,e){if(!it(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(e):e}const ts=(s,e)=>{const t=s.length-1,i=[];let o,a=e===2?"":e===3?"":"",r=ye;for(let n=0;n"?(r=o??ye,p=-1):u[1]===void 0?p=-2:(p=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?oe:u[3]==='"'?ti:ei):r===ti||r===ei?r=oe:r===Xt||r===Yt?r=ye:(r=oe,o=void 0);const y=r===oe&&s[n+1].startsWith("/>")?" ":"";a+=r===ye?l+Xo:p>=0?(i.push(d),l.slice(0,p)+Jt+l.slice(p)+J+y):l+J+(p===-2?n:y)}return[si(s,a+(s[t]||"")+(e===2?"":e===3?"":"")),i]};class _e{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let a=0,r=0;const n=e.length-1,l=this.parts,[d,u]=ts(e,t);if(this.el=_e.createElement(d,i),se.currentNode=this.el.content,t===2||t===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=se.nextNode())!==null&&l.length0){o.textContent=je?je.emptyScript:"";for(let y=0;y2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}_$AI(e,t=this,i,o){const a=this.strings;let r=!1;if(a===void 0)e=ue(this,e,t,0),r=!ve(e)||e!==this._$AH&&e!==V,r&&(this._$AH=e);else{const n=e;let l,d;for(e=a[0],l=0;l{const i=(t==null?void 0:t.renderBefore)??e;let o=i._$litPart$;if(o===void 0){const a=(t==null?void 0:t.renderBefore)??null;i._$litPart$=o=new he(e.insertBefore(ge(),a),a,void 0,t??{})}return o._$AI(s),o};/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Fe=globalThis,at=Fe.ShadowRoot&&(Fe.ShadyCSS===void 0||Fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rt=Symbol(),si=new WeakMap;let ai=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(at&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=si.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&si.set(t,e))}return e}toString(){return this.cssText}};const ls=s=>new ai(typeof s=="string"?s:s+"",void 0,rt),$=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,o,a)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[a+1],s[0]);return new ai(t,s,rt)},ds=(s,e)=>{if(at)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=Fe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},ri=at?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ls(t)})(s):s;/** + */const ze=globalThis,at=ze.ShadowRoot&&(ze.ShadyCSS===void 0||ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rt=Symbol(),ai=new WeakMap;let ri=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(at&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=ai.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ai.set(t,e))}return e}toString(){return this.cssText}};const ds=s=>new ri(typeof s=="string"?s:s+"",void 0,rt),$=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,o,a)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[a+1],s[0]);return new ri(t,s,rt)},cs=(s,e)=>{if(at)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=ze.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},ni=at?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ds(t)})(s):s;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:cs,defineProperty:us,getOwnPropertyDescriptor:hs,getOwnPropertyNames:ps,getOwnPropertySymbols:fs,getPrototypeOf:bs}=Object,J=globalThis,ni=J.trustedTypes,ms=ni?ni.emptyScript:"",nt=J.reactiveElementPolyfillSupport,we=(s,e)=>s,lt={toAttribute(s,e){switch(e){case Boolean:s=s?ms:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},li=(s,e)=>!cs(s,e),di={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:li};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),J.litPropertyMetadata??(J.litPropertyMetadata=new WeakMap);class he extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=di){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&us(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=hs(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??di}static _$Ei(){if(this.hasOwnProperty(we("elementProperties")))return;const e=bs(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(we("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(we("properties"))){const t=this.properties,i=[...ps(t),...fs(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(ri(o))}else e!==void 0&&t.push(ri(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ds(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:lt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:lt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??li)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}he.elementStyles=[],he.shadowRootOptions={mode:"open"},he[we("elementProperties")]=new Map,he[we("finalized")]=new Map,nt==null||nt({ReactiveElement:he}),(J.reactiveElementVersions??(J.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:us,defineProperty:hs,getOwnPropertyDescriptor:ps,getOwnPropertyNames:fs,getOwnPropertySymbols:bs,getPrototypeOf:ms}=Object,Q=globalThis,li=Q.trustedTypes,gs=li?li.emptyScript:"",nt=Q.reactiveElementPolyfillSupport,we=(s,e)=>s,lt={toAttribute(s,e){switch(e){case Boolean:s=s?gs:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},di=(s,e)=>!us(s,e),ci={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:di};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Q.litPropertyMetadata??(Q.litPropertyMetadata=new WeakMap);class pe extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ci){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&hs(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=ps(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ci}static _$Ei(){if(this.hasOwnProperty(we("elementProperties")))return;const e=ms(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(we("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(we("properties"))){const t=this.properties,i=[...fs(t),...bs(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(ni(o))}else e!==void 0&&t.push(ni(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return cs(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:lt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:lt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??di)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}pe.elementStyles=[],pe.shadowRootOptions={mode:"open"},pe[we("elementProperties")]=new Map,pe[we("finalized")]=new Map,nt==null||nt({ReactiveElement:pe}),(Q.reactiveElementVersions??(Q.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let se=class extends he{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ns(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return U}};se._$litElement$=!0,se.finalized=!0,(Oo=globalThis.litElementHydrateSupport)==null||Oo.call(globalThis,{LitElement:se});const dt=globalThis.litElementPolyfillSupport;dt==null||dt({LitElement:se}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/** + */let ae=class extends pe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ls(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return V}};ae._$litElement$=!0,ae.finalized=!0,(Oo=globalThis.litElementHydrateSupport)==null||Oo.call(globalThis,{LitElement:ae});const dt=globalThis.litElementPolyfillSupport;dt==null||dt({LitElement:ae}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -32,7 +32,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const A=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="class"||((e=s.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){var i,o;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in e)e[a]&&!((i=this.nt)!=null&&i.has(a))&&this.st.add(a);return this.render(e)}const t=s.element.classList;for(const a of this.st)a in e||(t.remove(a),this.st.delete(a));for(const a in e){const r=!!e[a];r===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(r?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return U}});/** + */const A=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="class"||((e=s.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){var i,o;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in e)e[a]&&!((i=this.nt)!=null&&i.has(a))&&this.st.add(a);return this.render(e)}const t=s.element.classList;for(const a of this.st)a in e||(t.remove(a),this.st.delete(a));for(const a in e){const r=!!e[a];r===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(r?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return V}});/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -40,38 +40,38 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const m=(s,...e)=>({strTag:!0,strings:s,values:e}),gs=s=>typeof s!="string"&&"strTag"in s,ci=(s,e,t)=>{let i=s[0];for(let o=1;o({strTag:!0,strings:s,values:e}),vs=s=>typeof s!="string"&&"strTag"in s,ui=(s,e,t)=>{let i=s[0];for(let o=1;ogs(s)?ci(s.strings,s.values):s;let R=ui,hi=!1;function vs(s){if(hi)throw new Error("lit-localize can only be configured once");R=s,hi=!0}/** + */const hi=s=>vs(s)?ui(s.strings,s.values):s;let R=hi,pi=!1;function ys(s){if(pi)throw new Error("lit-localize can only be configured once");R=s,pi=!0}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class ys{constructor(e){this.__litLocalizeEventHandler=t=>{t.detail.status==="ready"&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(pt,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(pt,this.__litLocalizeEventHandler)}}const _s=s=>s.addController(new ys(s));/** + */class _s{constructor(e){this.__litLocalizeEventHandler=t=>{t.detail.status==="ready"&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(pt,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(pt,this.__litLocalizeEventHandler)}}const ws=s=>s.addController(new _s(s));/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class pi{constructor(){this.settled=!1,this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}/** + */class fi{constructor(){this.settled=!1,this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}/** * @license * Copyright 2014 Travis Webb * SPDX-License-Identifier: MIT - */const V=[];for(let s=0;s<256;s++)V[s]=(s>>4&15).toString(16)+(s&15).toString(16);function ws(s){let e=0,t=8997,i=0,o=33826,a=0,r=40164,n=0,l=52210;for(let d=0;d>>16,t=e&65535,a+=i>>>16,o=i&65535,l=n+(a>>>16)&65535,r=a&65535;return V[l>>8]+V[l&255]+V[r>>8]+V[r&255]+V[o>>8]+V[o&255]+V[t>>8]+V[t&255]}/** + */const B=[];for(let s=0;s<256;s++)B[s]=(s>>4&15).toString(16)+(s&15).toString(16);function $s(s){let e=0,t=8997,i=0,o=33826,a=0,r=40164,n=0,l=52210;for(let d=0;d>>16,t=e&65535,a+=i>>>16,o=i&65535,l=n+(a>>>16)&65535,r=a&65535;return B[l>>8]+B[l&255]+B[r>>8]+B[r&255]+B[o>>8]+B[o&255]+B[t>>8]+B[t&255]}/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const $s="",xs="h",ks="s";function Ss(s,e){return(e?xs:ks)+ws(typeof s=="string"?s:s.join($s))}/** + */const xs="",ks="h",Ss="s";function Es(s,e){return(e?ks:Ss)+$s(typeof s=="string"?s:s.join(xs))}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const fi=new WeakMap,bi=new Map;function Es(s,e,t){if(s){const i=(t==null?void 0:t.id)??As(e),o=s[i];if(o){if(typeof o=="string")return o;if("strTag"in o)return ci(o.strings,e.values,o.values);{let a=fi.get(o);return a===void 0&&(a=o.values,fi.set(o,a)),{...o,values:a.map(r=>e.values[r])}}}}return ui(e)}function As(s){const e=typeof s=="string"?s:s.strings;let t=bi.get(e);return t===void 0&&(t=Ss(e,typeof s!="string"&&!("strTag"in s)),bi.set(e,t)),t}/** + */const bi=new WeakMap,mi=new Map;function As(s,e,t){if(s){const i=(t==null?void 0:t.id)??Ts(e),o=s[i];if(o){if(typeof o=="string")return o;if("strTag"in o)return ui(o.strings,e.values,o.values);{let a=bi.get(o);return a===void 0&&(a=o.values,bi.set(o,a)),{...o,values:a.map(r=>e.values[r])}}}}return hi(e)}function Ts(s){const e=typeof s=="string"?s:s.strings;let t=mi.get(e);return t===void 0&&(t=Es(e,typeof s!="string"&&!("strTag"in s)),mi.set(e,t)),t}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function ft(s){window.dispatchEvent(new CustomEvent(pt,{detail:s}))}let De="",bt,mi,Re,mt,gi,ae=new pi;ae.resolve();let Ne=0;const Os=s=>(vs((e,t)=>Es(gi,e,t)),De=mi=s.sourceLocale,Re=new Set(s.targetLocales),Re.add(s.sourceLocale),mt=s.loadLocale,{getLocale:Ts,setLocale:Cs}),Ts=()=>De,Cs=s=>{if(s===(bt??De))return ae.promise;if(!Re||!mt)throw new Error("Internal error");if(!Re.has(s))throw new Error("Invalid locale code");Ne++;const e=Ne;return bt=s,ae.settled&&(ae=new pi),ft({status:"loading",loadingLocale:s}),(s===mi?Promise.resolve({templates:void 0}):mt(s)).then(i=>{Ne===e&&(De=s,bt=void 0,gi=i.templates,ft({status:"ready",readyLocale:s}),ae.resolve())},i=>{Ne===e&&(ft({status:"error",errorLocale:s,errorMessage:i.toString()}),ae.reject(i))}),ae.promise},Ls=(s,e,t)=>{const i=s[e];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((o,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Is="en",Ps=["am_ET","ar","ar_MA","bg_BG","bn_BD","bs_BA","cs","de_DE","el","en_US","es_419","es_ES","fa_IR","fr_FR","hi_IN","hr","hu_HU","id_ID","it_IT","ja","ko_KR","mk_MK","mr","my_MM","ne_NP","nl_NL","pa_IN","pl","pt_BR","ro_RO","ru_RU","sl_SI","sr_BA","sw","th","tl","tr_TR","uk","vi","zh_CN","zh_TW"],{setLocale:Ms}=Os({sourceLocale:Is,targetLocales:Ps,loadLocale:s=>Ls(Object.assign({"./generated/am_ET.js":()=>Promise.resolve().then(()=>Ba),"./generated/ar.js":()=>Promise.resolve().then(()=>Ka),"./generated/ar_MA.js":()=>Promise.resolve().then(()=>Ga),"./generated/bg_BG.js":()=>Promise.resolve().then(()=>Ja),"./generated/bn_BD.js":()=>Promise.resolve().then(()=>Xa),"./generated/bs_BA.js":()=>Promise.resolve().then(()=>er),"./generated/cs.js":()=>Promise.resolve().then(()=>ir),"./generated/de_DE.js":()=>Promise.resolve().then(()=>sr),"./generated/el.js":()=>Promise.resolve().then(()=>rr),"./generated/en_US.js":()=>Promise.resolve().then(()=>lr),"./generated/es-419.js":()=>Promise.resolve().then(()=>cr),"./generated/es_419.js":()=>Promise.resolve().then(()=>hr),"./generated/es_ES.js":()=>Promise.resolve().then(()=>fr),"./generated/fa_IR.js":()=>Promise.resolve().then(()=>mr),"./generated/fr_FR.js":()=>Promise.resolve().then(()=>vr),"./generated/hi_IN.js":()=>Promise.resolve().then(()=>_r),"./generated/hr.js":()=>Promise.resolve().then(()=>$r),"./generated/hu_HU.js":()=>Promise.resolve().then(()=>kr),"./generated/id_ID.js":()=>Promise.resolve().then(()=>Er),"./generated/it_IT.js":()=>Promise.resolve().then(()=>Or),"./generated/ja.js":()=>Promise.resolve().then(()=>Cr),"./generated/ko_KR.js":()=>Promise.resolve().then(()=>Ir),"./generated/mk_MK.js":()=>Promise.resolve().then(()=>Mr),"./generated/mr.js":()=>Promise.resolve().then(()=>zr),"./generated/my_MM.js":()=>Promise.resolve().then(()=>Dr),"./generated/ne_NP.js":()=>Promise.resolve().then(()=>Nr),"./generated/nl_NL.js":()=>Promise.resolve().then(()=>Ur),"./generated/pa_IN.js":()=>Promise.resolve().then(()=>Br),"./generated/pl.js":()=>Promise.resolve().then(()=>Kr),"./generated/pt_BR.js":()=>Promise.resolve().then(()=>Gr),"./generated/ro_RO.js":()=>Promise.resolve().then(()=>Jr),"./generated/ru_RU.js":()=>Promise.resolve().then(()=>Xr),"./generated/sl_SI.js":()=>Promise.resolve().then(()=>en),"./generated/sr_BA.js":()=>Promise.resolve().then(()=>on),"./generated/sw.js":()=>Promise.resolve().then(()=>an),"./generated/th.js":()=>Promise.resolve().then(()=>nn),"./generated/tl.js":()=>Promise.resolve().then(()=>dn),"./generated/tr_TR.js":()=>Promise.resolve().then(()=>un),"./generated/uk.js":()=>Promise.resolve().then(()=>pn),"./generated/vi.js":()=>Promise.resolve().then(()=>bn),"./generated/zh_CN.js":()=>Promise.resolve().then(()=>gn),"./generated/zh_TW.js":()=>Promise.resolve().then(()=>yn)}),`./generated/${s}.js`,3)});class vi{constructor(e,t="/wp-json"){this.nonce=e;let i=t;i.match("^http")&&(i=i.replace(/^http[s]?:\/\/.*?\//,"")),i=`/${i}/`.replace(/\/\//g,"/"),this.apiRoot=i}async makeRequest(e,t,i,o="dt/v1/"){let a=o;!a.endsWith("/")&&!t.startsWith("/")&&(a+="/");const r=t.startsWith("http")?t:`${this.apiRoot}${a}${t}`,n={method:e,credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce}};e!=="GET"&&(n.body=JSON.stringify(i));const l=await fetch(r,n),d=await l.json();if(!l.ok){const u=new Error((d==null?void 0:d.message)||d.toString());throw u.args={status:l.status,statusText:l.statusText,body:d},u}return d}async makeRequestOnPosts(e,t,i={}){return this.makeRequest(e,t,i,"dt-posts/v2/")}async getPost(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}`)}async createPost(e,t){return this.makeRequestOnPosts("POST",e,t)}async fetchPostsList(e,t){return this.makeRequestOnPosts("POST",`${e}/list`,t)}async updatePost(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}`,i)}async deletePost(e,t){return this.makeRequestOnPosts("DELETE",`${e}/${t}`)}async listPostsCompact(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequestOnPosts("GET",`${e}/compact?${i}`)}async getPostDuplicates(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/all_duplicates`,i)}async checkFieldValueExists(e,t){return this.makeRequestOnPosts("POST",`${e}/check_field_value_exists`,t)}async getMultiSelectValues(e,t,i=""){const o=new URLSearchParams({s:i,field:t});return this.makeRequestOnPosts("GET",`${e}/multi-select-values?${o}`)}async getLocations(e,t,i,o=""){const a=new URLSearchParams({s:o,field:t,filter:i});return this.makeRequest("GET",`mapping_module/search_location_grid_by_name?${a}`)}async transferContact(e,t){return this.makeRequestOnPosts("POST","contacts/transfer",{contact_id:e,site_post_id:t})}async transferContactSummaryUpdate(e,t){return this.makeRequestOnPosts("POST","contacts/transfer/summary/send-update",{contact_id:e,update:t})}async requestRecordAccess(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/request_record_access`,{user_id:i})}async createComment(e,t,i,o="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments`,{comment:i,comment_type:o})}async updateComment(e,t,i,o,a="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}`,{comment:o,comment_type:a})}async deleteComment(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/comments/${i}`)}async getComments(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/comments`)}async toggle_comment_reaction(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}/react`,{user_id:o,reaction:a})}async getPostActivity(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/activity`)}async getSingleActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/activity/${i}`)}async revertActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/revert/${i}`)}async getPostShares(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/shares`)}async addPostShare(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/shares`,{user_id:i})}async removePostShare(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/shares`,{user_id:i})}async getFilters(){return this.makeRequest("GET","users/get_filters")}async saveFilters(e,t){return this.makeRequest("POST","users/save_filters",{filter:t,postType:e})}async deleteFilter(e,t){return this.makeRequest("DELETE","users/save_filters",{id:t,postType:e})}async searchUsers(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequest("GET",`users/get_users?${i}&post_type=${e}`)}async checkDuplicateUsers(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/duplicates`)}async getContactInfo(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/`)}async createUser(e){return this.makeRequest("POST","users/create",e)}async advanced_search(e,t,i,o){return this.makeRequest("GET","advanced_search",{query:e,postType:t,offset:i,post:o.post,comment:o.comment,meta:o.meta,status:o.status},"dt-posts/v2/posts/search/")}async uploadFiles(e,t,i,o,a=""){const r=new FormData;i.forEach(l=>r.append("storage_upload_files[]",l)),r.append("meta_key",o),r.append("key_prefix",a),r.append("upload_type","post"),r.append("is_multi_file","true"),r.append("storage_s3_url_duration","+7 days");const n=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_upload`;return await new Promise((l,d)=>{const u=new XMLHttpRequest;u.open("POST",n,!0),u.withCredentials=!0,u.setRequestHeader("X-WP-Nonce",this.nonce),u.onload=()=>{let h={};try{h=JSON.parse(u.responseText||"{}")}catch{h={message:u.responseText||"Upload failed"}}if(u.status>=200&&u.status<300)l(h);else{const g=new Error((h==null?void 0:h.uploaded_msg)||(h==null?void 0:h.message)||"Upload failed");g.args={status:u.status,statusText:u.statusText,body:h},d(g)}},u.onerror=()=>d(new Error("Upload failed")),u.send(r)})}async deleteFile(e,t,i,o){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_delete_single`,{meta_key:i,file_key:o})}async renameFile(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_rename_single`,{meta_key:i,file_key:o,new_name:a})}async downloadFile(e,t,i,o){const a=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_download`,r=await fetch(a,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce},body:JSON.stringify({meta_key:i,file_key:o})});if(!r.ok){const n=await r.json().catch(()=>({message:"Download failed"}));throw new Error(n.message||"Download failed")}return await r.blob()}}(function(){(function(s){const e=new WeakMap,t=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,g=new WeakMap,y=new WeakMap,_=new WeakMap,C=new WeakMap,F={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},M=(f,c)=>{for(let b in F){c[b]=null;let v=null;const w=F[b];Object.defineProperty(c,b,{get(){return v},set(k){v=k,f.isConnected?I(f,w,k):u.set(f,c)}})}};function L(f){const c=o.get(f),{form:b}=c;Io(f,b,c),Lo(f,c.labels)}const Ie=(f,c=!1)=>{const b=document.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,{acceptNode(k){return o.has(k)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let v=b.nextNode();const w=!c||f.disabled;for(;v;)v.formDisabledCallback&&w&&Ft(v,f.disabled),v=b.nextNode()},Je={attributes:!0,attributeFilter:["disabled","name"]},Y=Ye()?new MutationObserver(f=>{for(const c of f){const b=c.target;if(c.attributeName==="disabled"&&(b.constructor.formAssociated?Ft(b,b.hasAttribute("disabled")):b.localName==="fieldset"&&Ie(b)),c.attributeName==="name"&&b.constructor.formAssociated){const v=o.get(b),w=d.get(b);v.setFormValue(w)}}}):{};function E(f){f.forEach(c=>{const{addedNodes:b,removedNodes:v}=c,w=Array.from(b),k=Array.from(v);w.forEach(S=>{var j;if(o.has(S)&&S.constructor.formAssociated&&L(S),u.has(S)){const T=u.get(S);Object.keys(F).filter(q=>T[q]!==null).forEach(q=>{I(S,F[q],T[q])}),u.delete(S)}if(C.has(S)){const T=C.get(S);I(S,"internals-valid",T.validity.valid.toString()),I(S,"internals-invalid",(!T.validity.valid).toString()),I(S,"aria-invalid",(!T.validity.valid).toString()),C.delete(S)}if(S.localName==="form"){const T=l.get(S),K=document.createTreeWalker(S,NodeFilter.SHOW_ELEMENT,{acceptNode(qt){return o.has(qt)&&qt.constructor.formAssociated&&!(T&&T.has(qt))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let q=K.nextNode();for(;q;)L(q),q=K.nextNode()}S.localName==="fieldset"&&((j=Y.observe)===null||j===void 0||j.call(Y,S,Je),Ie(S,!0))}),k.forEach(S=>{const j=o.get(S);j&&i.get(j)&&To(j),n.has(S)&&n.get(S).disconnect()})})}function z(f){f.forEach(c=>{const{removedNodes:b}=c;b.forEach(v=>{const w=y.get(c.target);o.has(v)&&Mo(v),w.disconnect()})})}const de=f=>{var c,b;const v=new MutationObserver(z);!((c=window==null?void 0:window.ShadyDOM)===null||c===void 0)&&c.inUse&&f.mode&&f.host&&(f=f.host),(b=v.observe)===null||b===void 0||b.call(v,f,{childList:!0}),y.set(f,v)};Ye()&&new MutationObserver(E);const ee={childList:!0,subtree:!0},I=(f,c,b)=>{f.getAttribute(c)!==b&&f.setAttribute(c,b)},Ft=(f,c)=>{f.toggleAttribute("internals-disabled",c),c?I(f,"aria-disabled","true"):f.removeAttribute("aria-disabled"),f.formDisabledCallback&&f.formDisabledCallback.apply(f,[c])},To=f=>{i.get(f).forEach(b=>{b.remove()}),i.set(f,[])},Co=(f,c)=>{const b=document.createElement("input");return b.type="hidden",b.name=f.getAttribute("name"),f.after(b),i.get(c).push(b),b},_n=(f,c)=>{var b;i.set(c,[]),(b=Y.observe)===null||b===void 0||b.call(Y,f,Je)},Lo=(f,c)=>{if(c.length){Array.from(c).forEach(v=>v.addEventListener("click",f.click.bind(f)));let b=c[0].id;c[0].id||(b=`${c[0].htmlFor}_Label`,c[0].id=b),I(f,"aria-labelledby",b)}},Qe=f=>{const c=Array.from(f.elements).filter(k=>!k.tagName.includes("-")&&k.validity).map(k=>k.validity.valid),b=l.get(f)||[],v=Array.from(b).filter(k=>k.isConnected).map(k=>o.get(k).validity.valid),w=[...c,...v].includes(!1);f.toggleAttribute("internals-invalid",w),f.toggleAttribute("internals-valid",!w)},wn=f=>{Qe(Xe(f.target))},$n=f=>{Qe(Xe(f.target))},xn=f=>{const c=["button[type=submit]","input[type=submit]","button:not([type])"].map(b=>`${b}:not([disabled])`).map(b=>`${b}:not([form])${f.id?`,${b}[form='${f.id}']`:""}`).join(",");f.addEventListener("click",b=>{if(b.target.closest(c)){const w=l.get(f);if(f.noValidate)return;w.size&&Array.from(w).reverse().map(j=>o.get(j).reportValidity()).includes(!1)&&b.preventDefault()}})},kn=f=>{const c=l.get(f.target);c&&c.size&&c.forEach(b=>{b.constructor.formAssociated&&b.formResetCallback&&b.formResetCallback.apply(b)})},Io=(f,c,b)=>{if(c){const v=l.get(c);if(v)v.add(f);else{const w=new Set;w.add(f),l.set(c,w),xn(c),c.addEventListener("reset",kn),c.addEventListener("input",wn),c.addEventListener("change",$n)}r.set(c,{ref:f,internals:b}),f.constructor.formAssociated&&f.formAssociatedCallback&&setTimeout(()=>{f.formAssociatedCallback.apply(f,[c])},0),Qe(c)}},Xe=f=>{let c=f.parentNode;return c&&c.tagName!=="FORM"&&(c=Xe(c)),c},H=(f,c,b=DOMException)=>{if(!f.constructor.formAssociated)throw new b(c)},Po=(f,c,b)=>{const v=l.get(f);return v&&v.size&&v.forEach(w=>{o.get(w)[b]()||(c=!1)}),c},Mo=f=>{if(f.constructor.formAssociated){const c=o.get(f),{labels:b,form:v}=c;Lo(f,b),Io(f,v,c)}};function Ye(){return typeof MutationObserver<"u"}class Sn{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const En=f=>(f.badInput=!1,f.customError=!1,f.patternMismatch=!1,f.rangeOverflow=!1,f.rangeUnderflow=!1,f.stepMismatch=!1,f.tooLong=!1,f.tooShort=!1,f.typeMismatch=!1,f.valid=!0,f.valueMissing=!1,f),An=(f,c,b)=>(f.valid=On(c),Object.keys(c).forEach(v=>f[v]=c[v]),b&&Qe(b),f),On=f=>{let c=!0;for(let b in f)b!=="valid"&&f[b]!==!1&&(c=!1);return c},Dt=new WeakMap;function jo(f,c){f.toggleAttribute(c,!0),f.part&&f.part.add(c)}class Rt extends Set{static get isPolyfilled(){return!0}constructor(c){if(super(),!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");Dt.set(this,c)}add(c){if(!/^--/.test(c)||typeof c!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);const b=super.add(c),v=Dt.get(this),w=`state${c}`;return v.isConnected?jo(v,w):setTimeout(()=>{jo(v,w)}),b}clear(){for(let[c]of this.entries())this.delete(c);super.clear()}delete(c){const b=super.delete(c),v=Dt.get(this);return v.isConnected?(v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)):setTimeout(()=>{v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)}),b}}function zo(f,c,b,v){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot read private member from an object whose class did not declare it");return b==="m"?v:b==="a"?v.call(f):v?v.value:c.get(f)}function Tn(f,c,b,v,w){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot write private member to an object whose class did not declare it");return c.set(f,b),b}var Pe;class Cn{constructor(c){Pe.set(this,void 0),Tn(this,Pe,c);for(let b=0;bK.compareDocumentPosition?K.compareDocumentPosition(q)&2?1:-1:0);return new Cn(T)}})}class Fo{static get isPolyfilled(){return!0}constructor(c){if(!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const b=c.getRootNode(),v=new Sn;this.states=new Rt(c),e.set(this,c),t.set(this,v),o.set(c,this),M(c,this),_n(c,this),Object.seal(this),b instanceof DocumentFragment&&de(b)}checkValidity(){const c=e.get(this);if(H(c,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=t.get(this);if(!b.valid){const v=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});c.dispatchEvent(v)}return b.valid}get form(){const c=e.get(this);H(c,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let b;return c.constructor.formAssociated===!0&&(b=Xe(c)),b}get labels(){const c=e.get(this);H(c,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const b=c.getAttribute("id"),v=c.getRootNode();return v&&b?v.querySelectorAll(`[for="${b}"]`):[]}reportValidity(){const c=e.get(this);if(H(c,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=this.checkValidity(),v=g.get(this);if(v&&!c.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!b&&v&&(c.focus(),v.focus()),b}setFormValue(c){const b=e.get(this);if(H(b,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),To(this),c!=null&&!(c instanceof FormData)){if(b.getAttribute("name")){const v=Co(b,this);v.value=c}}else c!=null&&c instanceof FormData&&Array.from(c).reverse().forEach(([v,w])=>{if(typeof w=="string"){const k=Co(b,this);k.name=v,k.value=w}});d.set(b,c)}setValidity(c,b,v){const w=e.get(this);if(H(w,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!c)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");g.set(this,v);const k=t.get(this),S={};for(const K in c)S[K]=c[K];Object.keys(S).length===0&&En(k);const j=Object.assign(Object.assign({},k),S);delete j.valid;const{valid:T}=An(k,j,this.form);if(!T&&!b)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");a.set(this,T?"":b),w.isConnected?(w.toggleAttribute("internals-invalid",!T),w.toggleAttribute("internals-valid",T),I(w,"aria-invalid",`${!T}`)):C.set(w,this)}get shadowRoot(){const c=e.get(this),b=h.get(c);return b||null}get validationMessage(){const c=e.get(this);return H(c,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),a.get(this)}get validity(){const c=e.get(this);return H(c,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),t.get(this)}get willValidate(){const c=e.get(this);return H(c,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(c.disabled||c.hasAttribute("disabled")||c.hasAttribute("readonly"))}}function In(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class f extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const c=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(c,f);const b=new f;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(v=>v in b.internals)}let Do=!1,Ro=!1;function Nt(f){Ro||(Ro=!0,window.CustomStateSet=Rt,f&&(HTMLElement.prototype.attachInternals=function(...c){const b=f.call(this,c);return b.states=new Rt(this),b}))}function No(f=!0){if(!Do){if(Do=!0,typeof window<"u"&&(window.ElementInternals=Fo),typeof CustomElementRegistry<"u"){const c=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(b,v,w){if(v.formAssociated){const k=v.prototype.connectedCallback;v.prototype.connectedCallback=function(){_.has(this)||(_.set(this,!0),this.hasAttribute("disabled")&&Ft(this,!0)),k!=null&&k.apply(this),Mo(this)}}c.call(this,b,v,w)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(o.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Fo(this)}),typeof Element<"u"){let c=function(...v){const w=b.apply(this,v);if(h.set(this,w),Ye()){const k=new MutationObserver(E);window.ShadyDOM?k.observe(this,ee):k.observe(w,ee),n.set(this,k)}return w};const b=Element.prototype.attachShadow;Element.prototype.attachShadow=c}Ye()&&typeof document<"u"&&new MutationObserver(E).observe(document.documentElement,ee),typeof HTMLFormElement<"u"&&Ln(),(f||typeof window<"u"&&!window.CustomStateSet)&&Nt()}}return!!customElements.polyfillWrapFlushCallback||(In()?typeof window<"u"&&!window.CustomStateSet&&Nt(HTMLElement.prototype.attachInternals):No(!1)),s.forceCustomStateSetPolyfill=Nt,s.forceElementInternalsPolyfill=No,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})();class N extends se{static get styles(){return[$` + */function ft(s){window.dispatchEvent(new CustomEvent(pt,{detail:s}))}let De="",bt,gi,Re,mt,vi,re=new fi;re.resolve();let Ne=0;const Os=s=>(ys((e,t)=>As(vi,e,t)),De=gi=s.sourceLocale,Re=new Set(s.targetLocales),Re.add(s.sourceLocale),mt=s.loadLocale,{getLocale:Cs,setLocale:Is}),Cs=()=>De,Is=s=>{if(s===(bt??De))return re.promise;if(!Re||!mt)throw new Error("Internal error");if(!Re.has(s))throw new Error("Invalid locale code");Ne++;const e=Ne;return bt=s,re.settled&&(re=new fi),ft({status:"loading",loadingLocale:s}),(s===gi?Promise.resolve({templates:void 0}):mt(s)).then(i=>{Ne===e&&(De=s,bt=void 0,vi=i.templates,ft({status:"ready",readyLocale:s}),re.resolve())},i=>{Ne===e&&(ft({status:"error",errorLocale:s,errorMessage:i.toString()}),re.reject(i))}),re.promise},Ls=(s,e,t)=>{const i=s[e];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((o,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ps="en",Ms=["am_ET","ar","ar_MA","bg_BG","bn_BD","bs_BA","cs","de_DE","el","en_US","es_419","es_ES","fa_IR","fr_FR","hi_IN","hr","hu_HU","id_ID","it_IT","ja","ko_KR","mk_MK","mr","my_MM","ne_NP","nl_NL","pa_IN","pl","pt_BR","ro_RO","ru_RU","sl_SI","sr_BA","sw","th","tl","tr_TR","uk","vi","zh_CN","zh_TW"],{setLocale:js}=Os({sourceLocale:Ps,targetLocales:Ms,loadLocale:s=>Ls(Object.assign({"./generated/am_ET.js":()=>Promise.resolve().then(()=>Ha),"./generated/ar.js":()=>Promise.resolve().then(()=>Ga),"./generated/ar_MA.js":()=>Promise.resolve().then(()=>Za),"./generated/bg_BG.js":()=>Promise.resolve().then(()=>Qa),"./generated/bn_BD.js":()=>Promise.resolve().then(()=>Ya),"./generated/bs_BA.js":()=>Promise.resolve().then(()=>tr),"./generated/cs.js":()=>Promise.resolve().then(()=>or),"./generated/de_DE.js":()=>Promise.resolve().then(()=>ar),"./generated/el.js":()=>Promise.resolve().then(()=>nr),"./generated/en_US.js":()=>Promise.resolve().then(()=>dr),"./generated/es-419.js":()=>Promise.resolve().then(()=>ur),"./generated/es_419.js":()=>Promise.resolve().then(()=>pr),"./generated/es_ES.js":()=>Promise.resolve().then(()=>br),"./generated/fa_IR.js":()=>Promise.resolve().then(()=>gr),"./generated/fr_FR.js":()=>Promise.resolve().then(()=>yr),"./generated/hi_IN.js":()=>Promise.resolve().then(()=>wr),"./generated/hr.js":()=>Promise.resolve().then(()=>xr),"./generated/hu_HU.js":()=>Promise.resolve().then(()=>Sr),"./generated/id_ID.js":()=>Promise.resolve().then(()=>Ar),"./generated/it_IT.js":()=>Promise.resolve().then(()=>Or),"./generated/ja.js":()=>Promise.resolve().then(()=>Ir),"./generated/ko_KR.js":()=>Promise.resolve().then(()=>Pr),"./generated/mk_MK.js":()=>Promise.resolve().then(()=>jr),"./generated/mr.js":()=>Promise.resolve().then(()=>zr),"./generated/my_MM.js":()=>Promise.resolve().then(()=>Rr),"./generated/ne_NP.js":()=>Promise.resolve().then(()=>qr),"./generated/nl_NL.js":()=>Promise.resolve().then(()=>Vr),"./generated/pa_IN.js":()=>Promise.resolve().then(()=>Hr),"./generated/pl.js":()=>Promise.resolve().then(()=>Gr),"./generated/pt_BR.js":()=>Promise.resolve().then(()=>Zr),"./generated/ro_RO.js":()=>Promise.resolve().then(()=>Qr),"./generated/ru_RU.js":()=>Promise.resolve().then(()=>Yr),"./generated/sl_SI.js":()=>Promise.resolve().then(()=>tn),"./generated/sr_BA.js":()=>Promise.resolve().then(()=>sn),"./generated/sw.js":()=>Promise.resolve().then(()=>rn),"./generated/th.js":()=>Promise.resolve().then(()=>ln),"./generated/tl.js":()=>Promise.resolve().then(()=>cn),"./generated/tr_TR.js":()=>Promise.resolve().then(()=>hn),"./generated/uk.js":()=>Promise.resolve().then(()=>fn),"./generated/vi.js":()=>Promise.resolve().then(()=>mn),"./generated/zh_CN.js":()=>Promise.resolve().then(()=>vn),"./generated/zh_TW.js":()=>Promise.resolve().then(()=>_n)}),`./generated/${s}.js`,3)});class yi{constructor(e,t="/wp-json"){this.nonce=e;let i=t;i.match("^http")&&(i=i.replace(/^http[s]?:\/\/.*?\//,"")),i=`/${i}/`.replace(/\/\//g,"/"),this.apiRoot=i}async makeRequest(e,t,i,o="dt/v1/"){let a=o;!a.endsWith("/")&&!t.startsWith("/")&&(a+="/");const r=t.startsWith("http")?t:`${this.apiRoot}${a}${t}`,n={method:e,credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce}};e!=="GET"&&(n.body=JSON.stringify(i));const l=await fetch(r,n),d=await l.json();if(!l.ok){const u=new Error((d==null?void 0:d.message)||d.toString());throw u.args={status:l.status,statusText:l.statusText,body:d},u}return d}async makeRequestOnPosts(e,t,i={}){return this.makeRequest(e,t,i,"dt-posts/v2/")}async getPost(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}`)}async createPost(e,t){return this.makeRequestOnPosts("POST",e,t)}async fetchPostsList(e,t){return this.makeRequestOnPosts("POST",`${e}/list`,t)}async updatePost(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}`,i)}async deletePost(e,t){return this.makeRequestOnPosts("DELETE",`${e}/${t}`)}async listPostsCompact(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequestOnPosts("GET",`${e}/compact?${i}`)}async getPostDuplicates(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/all_duplicates`,i)}async checkFieldValueExists(e,t){return this.makeRequestOnPosts("POST",`${e}/check_field_value_exists`,t)}async getMultiSelectValues(e,t,i=""){const o=new URLSearchParams({s:i,field:t});return this.makeRequestOnPosts("GET",`${e}/multi-select-values?${o}`)}async getLocations(e,t,i,o=""){const a=new URLSearchParams({s:o,field:t,filter:i});return this.makeRequest("GET",`mapping_module/search_location_grid_by_name?${a}`)}async transferContact(e,t){return this.makeRequestOnPosts("POST","contacts/transfer",{contact_id:e,site_post_id:t})}async transferContactSummaryUpdate(e,t){return this.makeRequestOnPosts("POST","contacts/transfer/summary/send-update",{contact_id:e,update:t})}async requestRecordAccess(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/request_record_access`,{user_id:i})}async createComment(e,t,i,o="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments`,{comment:i,comment_type:o})}async updateComment(e,t,i,o,a="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}`,{comment:o,comment_type:a})}async deleteComment(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/comments/${i}`)}async getComments(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/comments`)}async toggle_comment_reaction(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}/react`,{user_id:o,reaction:a})}async getPostActivity(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/activity`)}async getSingleActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/activity/${i}`)}async revertActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/revert/${i}`)}async getPostShares(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/shares`)}async addPostShare(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/shares`,{user_id:i})}async removePostShare(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/shares`,{user_id:i})}async getFilters(){return this.makeRequest("GET","users/get_filters")}async saveFilters(e,t){return this.makeRequest("POST","users/save_filters",{filter:t,postType:e})}async deleteFilter(e,t){return this.makeRequest("DELETE","users/save_filters",{id:t,postType:e})}async searchUsers(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequest("GET",`users/get_users?${i}&post_type=${e}`)}async checkDuplicateUsers(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/duplicates`)}async getContactInfo(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/`)}async createUser(e){return this.makeRequest("POST","users/create",e)}async advanced_search(e,t,i,o){return this.makeRequest("GET","advanced_search",{query:e,postType:t,offset:i,post:o.post,comment:o.comment,meta:o.meta,status:o.status},"dt-posts/v2/posts/search/")}async uploadFiles(e,t,i,o,a=""){const r=new FormData;i.forEach(l=>r.append("storage_upload_files[]",l)),r.append("meta_key",o),r.append("key_prefix",a),r.append("upload_type","post"),r.append("is_multi_file","true"),r.append("storage_s3_url_duration","+7 days");const n=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_upload`;return await new Promise((l,d)=>{const u=new XMLHttpRequest;u.open("POST",n,!0),u.withCredentials=!0,u.setRequestHeader("X-WP-Nonce",this.nonce),u.onload=()=>{let p={};try{p=JSON.parse(u.responseText||"{}")}catch{p={message:u.responseText||"Upload failed"}}if(u.status>=200&&u.status<300)l(p);else{const g=new Error((p==null?void 0:p.uploaded_msg)||(p==null?void 0:p.message)||"Upload failed");g.args={status:u.status,statusText:u.statusText,body:p},d(g)}},u.onerror=()=>d(new Error("Upload failed")),u.send(r)})}async deleteFile(e,t,i,o){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_delete_single`,{meta_key:i,file_key:o})}async renameFile(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_rename_single`,{meta_key:i,file_key:o,new_name:a})}async downloadFile(e,t,i,o){const a=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_download`,r=await fetch(a,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce},body:JSON.stringify({meta_key:i,file_key:o})});if(!r.ok){const n=await r.json().catch(()=>({message:"Download failed"}));throw new Error(n.message||"Download failed")}return await r.blob()}}(function(){(function(s){const e=new WeakMap,t=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap,d=new WeakMap,u=new WeakMap,p=new WeakMap,g=new WeakMap,y=new WeakMap,_=new WeakMap,T=new WeakMap,z={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},M=(f,c)=>{for(let b in z){c[b]=null;let v=null;const w=z[b];Object.defineProperty(c,b,{get(){return v},set(k){v=k,f.isConnected?L(f,w,k):u.set(f,c)}})}};function I(f){const c=o.get(f),{form:b}=c;Po(f,b,c),Lo(f,c.labels)}const Le=(f,c=!1)=>{const b=document.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,{acceptNode(k){return o.has(k)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let v=b.nextNode();const w=!c||f.disabled;for(;v;)v.formDisabledCallback&&w&&Dt(v,f.disabled),v=b.nextNode()},Je={attributes:!0,attributeFilter:["disabled","name"]},ee=Ye()?new MutationObserver(f=>{for(const c of f){const b=c.target;if(c.attributeName==="disabled"&&(b.constructor.formAssociated?Dt(b,b.hasAttribute("disabled")):b.localName==="fieldset"&&Le(b)),c.attributeName==="name"&&b.constructor.formAssociated){const v=o.get(b),w=d.get(b);v.setFormValue(w)}}}):{};function E(f){f.forEach(c=>{const{addedNodes:b,removedNodes:v}=c,w=Array.from(b),k=Array.from(v);w.forEach(S=>{var j;if(o.has(S)&&S.constructor.formAssociated&&I(S),u.has(S)){const C=u.get(S);Object.keys(z).filter(U=>C[U]!==null).forEach(U=>{L(S,z[U],C[U])}),u.delete(S)}if(T.has(S)){const C=T.get(S);L(S,"internals-valid",C.validity.valid.toString()),L(S,"internals-invalid",(!C.validity.valid).toString()),L(S,"aria-invalid",(!C.validity.valid).toString()),T.delete(S)}if(S.localName==="form"){const C=l.get(S),G=document.createTreeWalker(S,NodeFilter.SHOW_ELEMENT,{acceptNode(Ut){return o.has(Ut)&&Ut.constructor.formAssociated&&!(C&&C.has(Ut))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let U=G.nextNode();for(;U;)I(U),U=G.nextNode()}S.localName==="fieldset"&&((j=ee.observe)===null||j===void 0||j.call(ee,S,Je),Le(S,!0))}),k.forEach(S=>{const j=o.get(S);j&&i.get(j)&&Co(j),n.has(S)&&n.get(S).disconnect()})})}function F(f){f.forEach(c=>{const{removedNodes:b}=c;b.forEach(v=>{const w=y.get(c.target);o.has(v)&&jo(v),w.disconnect()})})}const ce=f=>{var c,b;const v=new MutationObserver(F);!((c=window==null?void 0:window.ShadyDOM)===null||c===void 0)&&c.inUse&&f.mode&&f.host&&(f=f.host),(b=v.observe)===null||b===void 0||b.call(v,f,{childList:!0}),y.set(f,v)};Ye()&&new MutationObserver(E);const te={childList:!0,subtree:!0},L=(f,c,b)=>{f.getAttribute(c)!==b&&f.setAttribute(c,b)},Dt=(f,c)=>{f.toggleAttribute("internals-disabled",c),c?L(f,"aria-disabled","true"):f.removeAttribute("aria-disabled"),f.formDisabledCallback&&f.formDisabledCallback.apply(f,[c])},Co=f=>{i.get(f).forEach(b=>{b.remove()}),i.set(f,[])},Io=(f,c)=>{const b=document.createElement("input");return b.type="hidden",b.name=f.getAttribute("name"),f.after(b),i.get(c).push(b),b},wn=(f,c)=>{var b;i.set(c,[]),(b=ee.observe)===null||b===void 0||b.call(ee,f,Je)},Lo=(f,c)=>{if(c.length){Array.from(c).forEach(v=>v.addEventListener("click",f.click.bind(f)));let b=c[0].id;c[0].id||(b=`${c[0].htmlFor}_Label`,c[0].id=b),L(f,"aria-labelledby",b)}},Qe=f=>{const c=Array.from(f.elements).filter(k=>!k.tagName.includes("-")&&k.validity).map(k=>k.validity.valid),b=l.get(f)||[],v=Array.from(b).filter(k=>k.isConnected).map(k=>o.get(k).validity.valid),w=[...c,...v].includes(!1);f.toggleAttribute("internals-invalid",w),f.toggleAttribute("internals-valid",!w)},$n=f=>{Qe(Xe(f.target))},xn=f=>{Qe(Xe(f.target))},kn=f=>{const c=["button[type=submit]","input[type=submit]","button:not([type])"].map(b=>`${b}:not([disabled])`).map(b=>`${b}:not([form])${f.id?`,${b}[form='${f.id}']`:""}`).join(",");f.addEventListener("click",b=>{if(b.target.closest(c)){const w=l.get(f);if(f.noValidate)return;w.size&&Array.from(w).reverse().map(j=>o.get(j).reportValidity()).includes(!1)&&b.preventDefault()}})},Sn=f=>{const c=l.get(f.target);c&&c.size&&c.forEach(b=>{b.constructor.formAssociated&&b.formResetCallback&&b.formResetCallback.apply(b)})},Po=(f,c,b)=>{if(c){const v=l.get(c);if(v)v.add(f);else{const w=new Set;w.add(f),l.set(c,w),kn(c),c.addEventListener("reset",Sn),c.addEventListener("input",$n),c.addEventListener("change",xn)}r.set(c,{ref:f,internals:b}),f.constructor.formAssociated&&f.formAssociatedCallback&&setTimeout(()=>{f.formAssociatedCallback.apply(f,[c])},0),Qe(c)}},Xe=f=>{let c=f.parentNode;return c&&c.tagName!=="FORM"&&(c=Xe(c)),c},K=(f,c,b=DOMException)=>{if(!f.constructor.formAssociated)throw new b(c)},Mo=(f,c,b)=>{const v=l.get(f);return v&&v.size&&v.forEach(w=>{o.get(w)[b]()||(c=!1)}),c},jo=f=>{if(f.constructor.formAssociated){const c=o.get(f),{labels:b,form:v}=c;Lo(f,b),Po(f,v,c)}};function Ye(){return typeof MutationObserver<"u"}class En{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const An=f=>(f.badInput=!1,f.customError=!1,f.patternMismatch=!1,f.rangeOverflow=!1,f.rangeUnderflow=!1,f.stepMismatch=!1,f.tooLong=!1,f.tooShort=!1,f.typeMismatch=!1,f.valid=!0,f.valueMissing=!1,f),Tn=(f,c,b)=>(f.valid=On(c),Object.keys(c).forEach(v=>f[v]=c[v]),b&&Qe(b),f),On=f=>{let c=!0;for(let b in f)b!=="valid"&&f[b]!==!1&&(c=!1);return c},Rt=new WeakMap;function Fo(f,c){f.toggleAttribute(c,!0),f.part&&f.part.add(c)}class Nt extends Set{static get isPolyfilled(){return!0}constructor(c){if(super(),!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");Rt.set(this,c)}add(c){if(!/^--/.test(c)||typeof c!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);const b=super.add(c),v=Rt.get(this),w=`state${c}`;return v.isConnected?Fo(v,w):setTimeout(()=>{Fo(v,w)}),b}clear(){for(let[c]of this.entries())this.delete(c);super.clear()}delete(c){const b=super.delete(c),v=Rt.get(this);return v.isConnected?(v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)):setTimeout(()=>{v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)}),b}}function zo(f,c,b,v){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot read private member from an object whose class did not declare it");return b==="m"?v:b==="a"?v.call(f):v?v.value:c.get(f)}function Cn(f,c,b,v,w){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot write private member to an object whose class did not declare it");return c.set(f,b),b}var Pe;class In{constructor(c){Pe.set(this,void 0),Cn(this,Pe,c);for(let b=0;bG.compareDocumentPosition?G.compareDocumentPosition(U)&2?1:-1:0);return new In(C)}})}class Do{static get isPolyfilled(){return!0}constructor(c){if(!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const b=c.getRootNode(),v=new En;this.states=new Nt(c),e.set(this,c),t.set(this,v),o.set(c,this),M(c,this),wn(c,this),Object.seal(this),b instanceof DocumentFragment&&ce(b)}checkValidity(){const c=e.get(this);if(K(c,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=t.get(this);if(!b.valid){const v=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});c.dispatchEvent(v)}return b.valid}get form(){const c=e.get(this);K(c,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let b;return c.constructor.formAssociated===!0&&(b=Xe(c)),b}get labels(){const c=e.get(this);K(c,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const b=c.getAttribute("id"),v=c.getRootNode();return v&&b?v.querySelectorAll(`[for="${b}"]`):[]}reportValidity(){const c=e.get(this);if(K(c,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=this.checkValidity(),v=g.get(this);if(v&&!c.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!b&&v&&(c.focus(),v.focus()),b}setFormValue(c){const b=e.get(this);if(K(b,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),Co(this),c!=null&&!(c instanceof FormData)){if(b.getAttribute("name")){const v=Io(b,this);v.value=c}}else c!=null&&c instanceof FormData&&Array.from(c).reverse().forEach(([v,w])=>{if(typeof w=="string"){const k=Io(b,this);k.name=v,k.value=w}});d.set(b,c)}setValidity(c,b,v){const w=e.get(this);if(K(w,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!c)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");g.set(this,v);const k=t.get(this),S={};for(const G in c)S[G]=c[G];Object.keys(S).length===0&&An(k);const j=Object.assign(Object.assign({},k),S);delete j.valid;const{valid:C}=Tn(k,j,this.form);if(!C&&!b)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");a.set(this,C?"":b),w.isConnected?(w.toggleAttribute("internals-invalid",!C),w.toggleAttribute("internals-valid",C),L(w,"aria-invalid",`${!C}`)):T.set(w,this)}get shadowRoot(){const c=e.get(this),b=p.get(c);return b||null}get validationMessage(){const c=e.get(this);return K(c,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),a.get(this)}get validity(){const c=e.get(this);return K(c,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),t.get(this)}get willValidate(){const c=e.get(this);return K(c,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(c.disabled||c.hasAttribute("disabled")||c.hasAttribute("readonly"))}}function Pn(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class f extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const c=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(c,f);const b=new f;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(v=>v in b.internals)}let Ro=!1,No=!1;function qt(f){No||(No=!0,window.CustomStateSet=Nt,f&&(HTMLElement.prototype.attachInternals=function(...c){const b=f.call(this,c);return b.states=new Nt(this),b}))}function qo(f=!0){if(!Ro){if(Ro=!0,typeof window<"u"&&(window.ElementInternals=Do),typeof CustomElementRegistry<"u"){const c=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(b,v,w){if(v.formAssociated){const k=v.prototype.connectedCallback;v.prototype.connectedCallback=function(){_.has(this)||(_.set(this,!0),this.hasAttribute("disabled")&&Dt(this,!0)),k!=null&&k.apply(this),jo(this)}}c.call(this,b,v,w)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(o.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Do(this)}),typeof Element<"u"){let c=function(...v){const w=b.apply(this,v);if(p.set(this,w),Ye()){const k=new MutationObserver(E);window.ShadyDOM?k.observe(this,te):k.observe(w,te),n.set(this,k)}return w};const b=Element.prototype.attachShadow;Element.prototype.attachShadow=c}Ye()&&typeof document<"u"&&new MutationObserver(E).observe(document.documentElement,te),typeof HTMLFormElement<"u"&&Ln(),(f||typeof window<"u"&&!window.CustomStateSet)&&qt()}}return!!customElements.polyfillWrapFlushCallback||(Pn()?typeof window<"u"&&!window.CustomStateSet&&qt(HTMLElement.prototype.attachInternals):qo(!1)),s.forceCustomStateSetPolyfill=qt,s.forceElementInternalsPolyfill=qo,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})();class N extends ae{static get styles(){return[$` :host { } - `]}static get properties(){return{RTL:{type:Boolean},locale:{type:String}}}get _focusTarget(){return this.shadowRoot.children[0]instanceof Element?this.shadowRoot.children[0]:null}constructor(){super(),_s(this),this.addEventListener("click",this._proxyClick.bind(this)),this.addEventListener("focus",this._proxyFocus.bind(this))}willUpdate(e){if(this.RTL===void 0){const t=this.closest("[dir]");if(t){const i=t.getAttribute("dir");i&&(this.RTL=i.toLowerCase()==="rtl")}}if(!this.locale){const t=this.closest("[lang]");if(t){const i=t.getAttribute("lang");i&&(this.locale=i)}}if(!this.locale){const t=this.getRootNode();if(t instanceof ShadowRoot&&t.host){const i=t.host;i.locale&&(this.locale=i.locale)}}if(e&&e.has("locale")&&this.locale)try{Ms(this.locale)}catch(t){console.error(t)}}_proxyClick(){this.clicked=!0}_proxyFocus(){if(this._focusTarget){if(this.clicked){this.clicked=!1;return}this._focusTarget.focus()}}focus(){this._proxyFocus()}}class yi extends N{static get formAssociated(){return!0}static get styles(){return $` + `]}static get properties(){return{RTL:{type:Boolean},locale:{type:String}}}get _focusTarget(){return this.shadowRoot.children[0]instanceof Element?this.shadowRoot.children[0]:null}_standardizeLocale(e){return e&&e.replace(/-/g,"_")}constructor(){super(),ws(this),this.addEventListener("click",this._proxyClick.bind(this)),this.addEventListener("focus",this._proxyFocus.bind(this))}willUpdate(e){if(this.RTL===void 0){const t=this.closest("[dir]");if(t){const i=t.getAttribute("dir");i&&(this.RTL=i.toLowerCase()==="rtl")}}if(!this.locale){const t=this.closest("[lang]");if(t){const i=t.getAttribute("lang");i&&(this.locale=this._standardizeLocale(i))}}if(!this.locale){const t=this.getRootNode();if(t instanceof ShadowRoot&&t.host){const i=t.host;i.locale&&(this.locale=this._standardizeLocale(i.locale))}}if(e&&e.has("locale")&&this.locale)try{js(this.locale)}catch(t){console.error(t)}}_proxyClick(){this.clicked=!0}_proxyFocus(){if(this._focusTarget){if(this.clicked){this.clicked=!1;return}this._focusTarget.focus()}}focus(){this._proxyFocus()}}class _i extends N{static get formAssociated(){return!0}static get styles(){return $` :host { display: inline-flex; width: fit-content; @@ -208,7 +208,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn cursor: not-allowed; } } - `}static get properties(){return{label:{type:String},context:{type:String},type:{type:String},title:{type:String},outline:{type:Boolean},round:{type:Boolean},disabled:{type:Boolean}}}get classes(){const e={"dt-button":!0,"dt-button--outline":this.outline,"dt-button--round":this.round},t=`dt-button--${this.context}`;return e[t]=!0,e}get _field(){return this.shadowRoot.querySelector("button")}get _focusTarget(){return this._field}constructor(){super(),this.context="default",this.internals=this.attachInternals()}handleClick(e){e.preventDefault(),this.type==="submit"&&this.internals.form&&this.internals.form.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}render(){const e={...this.classes};return p` + `}static get properties(){return{label:{type:String},context:{type:String},type:{type:String},title:{type:String},outline:{type:Boolean},round:{type:Boolean},disabled:{type:Boolean}}}get classes(){const e={"dt-button":!0,"dt-button--outline":this.outline,"dt-button--round":this.round},t=`dt-button--${this.context}`;return e[t]=!0,e}get _field(){return this.shadowRoot.querySelector("button")}get _focusTarget(){return this._field}constructor(){super(),this.context="default",this.internals=this.attachInternals()}handleClick(e){e.preventDefault(),this.type==="submit"&&this.internals.form&&this.internals.form.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}render(){const e={...this.classes};return h` - `}}window.customElements.define("dt-button",yi);/** + `}}window.customElements.define("dt-button",_i);/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const _i="important",js=" !"+_i,Q=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="style"||((e=s.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((e,t)=>{const i=s[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(s,[e]){const{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const o=e[i];if(o!=null){this.ft.add(i);const a=typeof o=="string"&&o.endsWith(js);i.includes("-")||a?t.setProperty(i,a?o.slice(0,-11):o,a?_i:""):t[i]=o}}return U}});class wi extends N{static get styles(){return $` + */const wi="important",Fs=" !"+wi,X=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="style"||((e=s.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((e,t)=>{const i=s[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(s,[e]){const{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const o=e[i];if(o!=null){this.ft.add(i);const a=typeof o=="string"&&o.endsWith(Fs);i.includes("-")||a?t.setProperty(i,a?o.slice(0,-11):o,a?wi:""):t[i]=o}}return V}});class $i extends N{static get styles(){return $` :host { --dt-label-font-size: 14px; @@ -296,16 +296,16 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn border-inline-start: 0.5rem solid transparent; border-inline-end: 0.5rem solid transparent; } - `}static get properties(){return{icon:{type:String},iconAltText:{type:String},private:{type:Boolean},privateLabel:{type:String}}}firstUpdated(){const e=this.shadowRoot.querySelectorAll("slot");if(e&&e.length)for(const r of e)r.addEventListener("slotchange",n=>{const l=n.target.assignedNodes();let d=!1;l.length&&(l[0].tagName==="SLOT"?d=l[0].assignedNodes().length||l[0].children.length:d=!0),d&&n.target.classList.add("slotted")});const i=this.shadowRoot.querySelector("slot[name=icon-start]").assignedElements({flatten:!0});for(const r of i)r.style.height="100%",r.style.width="auto";const o=this.shadowRoot.querySelector("slot:not([name])"),a=this.shadowRoot.querySelector(".label");if(o&&a){const r=o.assignedNodes().map(n=>{var l;return(l=n.textContent)==null?void 0:l.trim()}).filter(n=>n).join(" ");r&&a.setAttribute("title",r)}}get _slottedChildren(){return this.shadowRoot.querySelector("slot").assignedElements({flatten:!0})}render(){const e=p``;return p` + `}static get properties(){return{icon:{type:String},iconAltText:{type:String},private:{type:Boolean},privateLabel:{type:String}}}firstUpdated(){const e=this.shadowRoot.querySelectorAll("slot");if(e&&e.length)for(const r of e)r.addEventListener("slotchange",n=>{const l=n.target.assignedNodes();let d=!1;l.length&&(l[0].tagName==="SLOT"?d=l[0].assignedNodes().length||l[0].children.length:d=!0),d&&n.target.classList.add("slotted")});const i=this.shadowRoot.querySelector("slot[name=icon-start]").assignedElements({flatten:!0});for(const r of i)r.style.height="100%",r.style.width="auto";const o=this.shadowRoot.querySelector("slot:not([name])"),a=this.shadowRoot.querySelector(".label");if(o&&a){const r=o.assignedNodes().map(n=>{var l;return(l=n.textContent)==null?void 0:l.trim()}).filter(n=>n).join(" ");r&&a.setAttribute("title",r)}}get _slottedChildren(){return this.shadowRoot.querySelector("slot").assignedElements({flatten:!0})}render(){const e=h``;return h`
${this.icon?p`${this.iconAltText}`:null}${this.icon?h`${this.iconAltText}`:null} - ${this.private?p` + ${this.private?h` ${e} ${this.privateLabel||R("Private Field: Only I can see its content")}
- `}}window.customElements.define("dt-label",wi);class zs extends se{static get styles(){return $` + `}}window.customElements.define("dt-label",$i);class zs extends ae{static get styles(){return $` @keyframes spin { 0% { transform: rotate(0deg); @@ -347,7 +347,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn * * @license MIT * @version 1.0.2 -*/const $i=Object.freeze({left:0,top:0,width:16,height:16}),qe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$e=Object.freeze({...$i,...qe}),gt=Object.freeze({...$e,body:"",hidden:!1}),Fs=Object.freeze({width:null,height:null}),xi=Object.freeze({...Fs,...qe});function Ds(s,e=0){const t=s.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(s);return isNaN(o)?0:i(o)}else if(t!==s){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let a=parseFloat(s.slice(0,s.length-t.length));return isNaN(a)?0:(a=a/o,a%1===0?i(a):0)}}return e}const Rs=/[\s,]+/;function Ns(s,e){e.split(Rs).forEach(t=>{switch(t.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}const ki={...xi,preserveAspectRatio:""};function Si(s){const e={...ki},t=(i,o)=>s.getAttribute(i)||o;return e.width=t("width",null),e.height=t("height",null),e.rotate=Ds(t("rotate","")),Ns(e,t("flip","")),e.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),e}function qs(s,e){for(const t in ki)if(s[t]!==e[t])return!0;return!1}const xe=/^[a-z0-9]+(-[a-z0-9]+)*$/,ke=(s,e,t,i="")=>{const o=s.split(":");if(s.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const n=o.pop(),l=o.pop(),d={provider:o.length>0?o[0]:i,prefix:l,name:n};return e&&!Ue(d)?null:d}const a=o[0],r=a.split("-");if(r.length>1){const n={provider:i,prefix:r.shift(),name:r.join("-")};return e&&!Ue(n)?null:n}if(t&&i===""){const n={provider:i,prefix:"",name:a};return e&&!Ue(n,t)?null:n}return null},Ue=(s,e)=>s?!!((s.provider===""||s.provider.match(xe))&&(e&&s.prefix===""||s.prefix.match(xe))&&s.name.match(xe)):!1;function Us(s,e){const t={};!s.hFlip!=!e.hFlip&&(t.hFlip=!0),!s.vFlip!=!e.vFlip&&(t.vFlip=!0);const i=((s.rotate||0)+(e.rotate||0))%4;return i&&(t.rotate=i),t}function Ei(s,e){const t=Us(s,e);for(const i in gt)i in qe?i in s&&!(i in t)&&(t[i]=qe[i]):i in e?t[i]=e[i]:i in s&&(t[i]=s[i]);return t}function Vs(s,e){const t=s.icons,i=s.aliases||Object.create(null),o=Object.create(null);function a(r){if(t[r])return o[r]=[];if(!(r in o)){o[r]=null;const n=i[r]&&i[r].parent,l=n&&a(n);l&&(o[r]=[n].concat(l))}return o[r]}return Object.keys(t).concat(Object.keys(i)).forEach(a),o}function Bs(s,e,t){const i=s.icons,o=s.aliases||Object.create(null);let a={};function r(n){a=Ei(i[n]||o[n],a)}return r(e),t.forEach(r),Ei(s,a)}function Ai(s,e){const t=[];if(typeof s!="object"||typeof s.icons!="object")return t;s.not_found instanceof Array&&s.not_found.forEach(o=>{e(o,null),t.push(o)});const i=Vs(s);for(const o in i){const a=i[o];a&&(e(o,Bs(s,o,a)),t.push(o))}return t}const Hs={provider:"",aliases:{},not_found:{},...$i};function vt(s,e){for(const t in e)if(t in s&&typeof s[t]!=typeof e[t])return!1;return!0}function Oi(s){if(typeof s!="object"||s===null)return null;const e=s;if(typeof e.prefix!="string"||!s.icons||typeof s.icons!="object"||!vt(s,Hs))return null;const t=e.icons;for(const o in t){const a=t[o];if(!o.match(xe)||typeof a.body!="string"||!vt(a,gt))return null}const i=e.aliases||Object.create(null);for(const o in i){const a=i[o],r=a.parent;if(!o.match(xe)||typeof r!="string"||!t[r]&&!i[r]||!vt(a,gt))return null}return e}const Ve=Object.create(null);function Ks(s,e){return{provider:s,prefix:e,icons:Object.create(null),missing:new Set}}function X(s,e){const t=Ve[s]||(Ve[s]=Object.create(null));return t[e]||(t[e]=Ks(s,e))}function yt(s,e){return Oi(e)?Ai(e,(t,i)=>{i?s.icons[t]=i:s.missing.add(t)}):[]}function Ws(s,e,t){try{if(typeof t.body=="string")return s.icons[e]={...t},!0}catch{}return!1}function Gs(s,e){let t=[];return(typeof s=="string"?[s]:Object.keys(Ve)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(Ve[o]||{})).forEach(r=>{const n=X(o,r);t=t.concat(Object.keys(n.icons).map(l=>(o!==""?"@"+o+":":"")+r+":"+l))})}),t}let Se=!1;function Ti(s){return typeof s=="boolean"&&(Se=s),Se}function Ee(s){const e=typeof s=="string"?ke(s,!0,Se):s;if(e){const t=X(e.provider,e.prefix),i=e.name;return t.icons[i]||(t.missing.has(i)?null:void 0)}}function Ci(s,e){const t=ke(s,!0,Se);if(!t)return!1;const i=X(t.provider,t.prefix);return Ws(i,t.name,e)}function Li(s,e){if(typeof s!="object")return!1;if(typeof e!="string"&&(e=s.provider||""),Se&&!e&&!s.prefix){let o=!1;return Oi(s)&&(s.prefix="",Ai(s,(a,r)=>{r&&Ci(a,r)&&(o=!0)})),o}const t=s.prefix;if(!Ue({provider:e,prefix:t,name:"a"}))return!1;const i=X(e,t);return!!yt(i,s)}function Zs(s){return!!Ee(s)}function Js(s){const e=Ee(s);return e?{...$e,...e}:null}function Qs(s){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);s.sort((o,a)=>o.provider!==a.provider?o.provider.localeCompare(a.provider):o.prefix!==a.prefix?o.prefix.localeCompare(a.prefix):o.name.localeCompare(a.name));let i={provider:"",prefix:"",name:""};return s.forEach(o=>{if(i.name===o.name&&i.prefix===o.prefix&&i.provider===o.provider)return;i=o;const a=o.provider,r=o.prefix,n=o.name,l=t[a]||(t[a]=Object.create(null)),d=l[r]||(l[r]=X(a,r));let u;n in d.icons?u=e.loaded:r===""||d.missing.has(n)?u=e.missing:u=e.pending;const h={provider:a,prefix:r,name:n};u.push(h)}),e}function Ii(s,e){s.forEach(t=>{const i=t.loaderCallbacks;i&&(t.loaderCallbacks=i.filter(o=>o.id!==e))})}function Xs(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const e=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const i=s.provider,o=s.prefix;e.forEach(a=>{const r=a.icons,n=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==o)return!0;const d=l.name;if(s.icons[d])r.loaded.push({provider:i,prefix:o,name:d});else if(s.missing.has(d))r.missing.push({provider:i,prefix:o,name:d});else return t=!0,!0;return!1}),r.pending.length!==n&&(t||Ii([s],a.id),a.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),a.abort))})}))}let Ys=0;function ea(s,e,t){const i=Ys++,o=Ii.bind(null,t,i);if(!e.pending.length)return o;const a={id:i,icons:e,callback:s,abort:o};return t.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(a)}),o}const _t=Object.create(null);function Pi(s,e){_t[s]=e}function wt(s){return _t[s]||_t[""]}function ta(s,e=!0,t=!1){const i=[];return s.forEach(o=>{const a=typeof o=="string"?ke(o,e,t):o;a&&i.push(a)}),i}var ia={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function oa(s,e,t,i){const o=s.resources.length,a=s.random?Math.floor(Math.random()*o):s.index;let r;if(s.random){let E=s.resources.slice(0);for(r=[];E.length>1;){const z=Math.floor(Math.random()*E.length);r.push(E[z]),E=E.slice(0,z).concat(E.slice(z+1))}r=r.concat(E)}else r=s.resources.slice(a).concat(s.resources.slice(0,a));const n=Date.now();let l="pending",d=0,u,h=null,g=[],y=[];typeof i=="function"&&y.push(i);function _(){h&&(clearTimeout(h),h=null)}function C(){l==="pending"&&(l="aborted"),_(),g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function F(E,z){z&&(y=[]),typeof E=="function"&&y.push(E)}function M(){return{startTime:n,payload:e,status:l,queriesSent:d,queriesPending:g.length,subscribe:F,abort:C}}function L(){l="failed",y.forEach(E=>{E(void 0,u)})}function Ie(){g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function Je(E,z,de){const ee=z!=="success";switch(g=g.filter(I=>I!==E),l){case"pending":break;case"failed":if(ee||!s.dataAfterTimeout)return;break;default:return}if(z==="abort"){u=de,L();return}if(ee){u=de,g.length||(r.length?Y():L());return}if(_(),Ie(),!s.random){const I=s.resources.indexOf(E.resource);I!==-1&&I!==s.index&&(s.index=I)}l="completed",y.forEach(I=>{I(de)})}function Y(){if(l!=="pending")return;_();const E=r.shift();if(E===void 0){if(g.length){h=setTimeout(()=>{_(),l==="pending"&&(Ie(),L())},s.timeout);return}L();return}const z={status:"pending",resource:E,callback:(de,ee)=>{Je(z,de,ee)}};g.push(z),d++,h=setTimeout(Y,s.rotate),t(E,e,z.callback)}return setTimeout(Y),M}function Mi(s){const e={...ia,...s};let t=[];function i(){t=t.filter(n=>n().status==="pending")}function o(n,l,d){const u=oa(e,n,l,(h,g)=>{i(),d&&d(h,g)});return t.push(u),u}function a(n){return t.find(l=>n(l))||null}return{query:o,find:a,setIndex:n=>{e.index=n},getIndex:()=>e.index,cleanup:i}}function $t(s){let e;if(typeof s.resources=="string")e=[s.resources];else if(e=s.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const Be=Object.create(null),Ae=["https://api.simplesvg.com","https://api.unisvg.com"],He=[];for(;Ae.length>0;)Ae.length===1||Math.random()>.5?He.push(Ae.shift()):He.push(Ae.pop());Be[""]=$t({resources:["https://api.iconify.design"].concat(He)});function ji(s,e){const t=$t(e);return t===null?!1:(Be[s]=t,!0)}function Ke(s){return Be[s]}function sa(){return Object.keys(Be)}function zi(){}const xt=Object.create(null);function aa(s){if(!xt[s]){const e=Ke(s);if(!e)return;const t=Mi(e),i={config:e,redundancy:t};xt[s]=i}return xt[s]}function Fi(s,e,t){let i,o;if(typeof s=="string"){const a=wt(s);if(!a)return t(void 0,424),zi;o=a.send;const r=aa(s);r&&(i=r.redundancy)}else{const a=$t(s);if(a){i=Mi(a);const r=s.resources?s.resources[0]:"",n=wt(r);n&&(o=n.send)}}return!i||!o?(t(void 0,424),zi):i.query(e,o,t)().abort}const Di="iconify2",Oe="iconify",Ri=Oe+"-count",Ni=Oe+"-version",qi=36e5,ra=168;function kt(s,e){try{return s.getItem(e)}catch{}}function St(s,e,t){try{return s.setItem(e,t),!0}catch{}}function Ui(s,e){try{s.removeItem(e)}catch{}}function Et(s,e){return St(s,Ri,e.toString())}function At(s){return parseInt(kt(s,Ri))||0}const re={local:!0,session:!0},Vi={local:new Set,session:new Set};let Ot=!1;function na(s){Ot=s}let We=typeof window>"u"?{}:window;function Bi(s){const e=s+"Storage";try{if(We&&We[e]&&typeof We[e].length=="number")return We[e]}catch{}re[s]=!1}function Hi(s,e){const t=Bi(s);if(!t)return;const i=kt(t,Ni);if(i!==Di){if(i){const n=At(t);for(let l=0;l{const l=Oe+n.toString(),d=kt(t,l);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,n))return!0}catch{}Ui(t,l)}};let r=At(t);for(let n=r-1;n>=0;n--)a(n)||(n===r-1?(r--,Et(t,r)):Vi[s].add(n))}function Ki(){if(!Ot){na(!0);for(const s in re)Hi(s,e=>{const t=e.data,i=e.provider,o=t.prefix,a=X(i,o);if(!yt(a,t).length)return!1;const r=t.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,r):r,!0})}}function la(s,e){const t=s.lastModifiedCached;if(t&&t>=e)return t===e;if(s.lastModifiedCached=e,t)for(const i in re)Hi(i,o=>{const a=o.data;return o.provider!==s.provider||a.prefix!==s.prefix||a.lastModified===e});return!0}function da(s,e){Ot||Ki();function t(i){let o;if(!re[i]||!(o=Bi(i)))return;const a=Vi[i];let r;if(a.size)a.delete(r=Array.from(a).shift());else if(r=At(o),!Et(o,r+1))return;const n={cached:Math.floor(Date.now()/qi),provider:s.provider,data:e};return St(o,Oe+r.toString(),JSON.stringify(n))}e.lastModified&&!la(s,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Wi(){}function ca(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Xs(s)}))}function ua(s,e){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(e).sort():s.iconsToLoad=e,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:t,prefix:i}=s,o=s.iconsToLoad;delete s.iconsToLoad;let a;if(!o||!(a=wt(t)))return;a.prepare(t,i,o).forEach(n=>{Fi(t,n,l=>{if(typeof l!="object")n.icons.forEach(d=>{s.missing.add(d)});else try{const d=yt(s,l);if(!d.length)return;const u=s.pendingIcons;u&&d.forEach(h=>{u.delete(h)}),da(s,l)}catch(d){console.error(d)}ca(s)})})}))}const Tt=(s,e)=>{const t=ta(s,!0,Ti()),i=Qs(t);if(!i.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(i.loaded,i.missing,i.pending,Wi)}),()=>{l=!1}}const o=Object.create(null),a=[];let r,n;return i.pending.forEach(l=>{const{provider:d,prefix:u}=l;if(u===n&&d===r)return;r=d,n=u,a.push(X(d,u));const h=o[d]||(o[d]=Object.create(null));h[u]||(h[u]=[])}),i.pending.forEach(l=>{const{provider:d,prefix:u,name:h}=l,g=X(d,u),y=g.pendingIcons||(g.pendingIcons=new Set);y.has(h)||(y.add(h),o[d][u].push(h))}),a.forEach(l=>{const{provider:d,prefix:u}=l;o[d][u].length&&ua(l,o[d][u])}),e?ea(e,i,a):Wi},ha=s=>new Promise((e,t)=>{const i=typeof s=="string"?ke(s,!0):s;if(!i){t(s);return}Tt([i||s],o=>{if(o.length&&i){const a=Ee(i);if(a){e({...$e,...a});return}}t(s)})});function pa(s){try{const e=typeof s=="string"?JSON.parse(s):s;if(typeof e.body=="string")return{...e}}catch{}}function fa(s,e){const t=typeof s=="string"?ke(s,!0,!0):null;if(!t){const a=pa(s);return{value:s,data:a}}const i=Ee(t);if(i!==void 0||!t.prefix)return{value:s,name:t,data:i};const o=Tt([t],()=>e(s,t,Ee(t)));return{value:s,name:t,loading:o}}function Ct(s){return s.hasAttribute("inline")}let Gi=!1;try{Gi=navigator.vendor.indexOf("Apple")===0}catch{}function ba(s,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Gi||s.indexOf("{const _=[],C=y.hFlip,F=y.vFlip;let M=y.rotate;C?F?M+=2:(_.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),_.push("scale(-1 1)"),o.top=o.left=0):F&&(_.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),_.push("scale(1 -1)"),o.top=o.left=0);let L;switch(M<0&&(M-=Math.floor(M/4)*4),M=M%4,M){case 1:L=o.height/2+o.top,_.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:_.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:L=o.width/2+o.left,_.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}M%2===1&&(o.left!==o.top&&(L=o.left,o.left=o.top,o.top=L),o.width!==o.height&&(L=o.width,o.width=o.height,o.height=L)),_.length&&(a=''+a+"")});const r=i.width,n=i.height,l=o.width,d=o.height;let u,h;return r===null?(h=n===null?"1em":n==="auto"?d:n,u=Lt(h,l/d)):(u=r==="auto"?l:r,h=n===null?Lt(u,d/l):n==="auto"?d:n),{attributes:{width:u.toString(),height:h.toString(),viewBox:o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+d.toString()},body:a}}let Ge=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function va(s){Ge=s}function ya(){return Ge}function _a(s,e){const t=Ke(s);if(!t)return 0;let i;if(!t.maxURL)i=0;else{let o=0;t.resources.forEach(r=>{o=Math.max(o,r.length)});const a=e+".json?icons=";i=t.maxURL-o-t.path.length-a.length}return i}function wa(s){return s===404}const $a=(s,e,t)=>{const i=[],o=_a(s,e),a="icons";let r={type:a,provider:s,prefix:e,icons:[]},n=0;return t.forEach((l,d)=>{n+=l.length+1,n>=o&&d>0&&(i.push(r),r={type:a,provider:s,prefix:e,icons:[]},n=l.length),r.icons.push(l)}),i.push(r),i};function xa(s){if(typeof s=="string"){const e=Ke(s);if(e)return e.path}return"/"}const ka={prepare:$a,send:(s,e,t)=>{if(!Ge){t("abort",424);return}let i=xa(e.provider);switch(e.type){case"icons":{const a=e.prefix,n=e.icons.join(","),l=new URLSearchParams({icons:n});i+=a+".json?"+l.toString();break}case"custom":{const a=e.uri;i+=a.slice(0,1)==="/"?a.slice(1):a;break}default:t("abort",400);return}let o=503;Ge(s+i).then(a=>{const r=a.status;if(r!==200){setTimeout(()=>{t(wa(r)?"abort":"next",r)});return}return o=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?t("abort",a):t("next",o)});return}setTimeout(()=>{t("success",a)})}).catch(()=>{t("next",o)})}};function Ji(s,e){switch(s){case"local":case"session":re[s]=e;break;case"all":for(const t in re)re[t]=e;break}}function Qi(){Pi("",ka),Ti(!0);let s;try{s=window}catch{}if(s){if(Ki(),s.IconifyPreload!==void 0){const t=s.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Li(o))&&console.error(i)}catch{console.error(i)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(const i in t){const o="IconifyProviders["+i+"] is invalid.";try{const a=t[i];if(typeof a!="object"||!a||a.resources===void 0)continue;ji(i,a)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Ji(t,!0),disableCache:t=>Ji(t,!1),iconExists:Zs,getIcon:Js,listIcons:Gs,addIcon:Ci,addCollection:Li,calculateSize:Lt,buildIcon:Zi,loadIcons:Tt,loadIcon:ha,addAPIProvider:ji,_api:{getAPIConfig:Ke,setAPIModule:Pi,sendAPIQuery:Fi,setFetch:va,getFetch:ya,listAPIProviders:sa}}}function Xi(s,e){let t=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)t+=" "+i+'="'+e[i]+'"';return'"+s+""}function Sa(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ea(s){return'url("data:image/svg+xml,'+Sa(s)+'")'}const It={"background-color":"currentColor"},Yi={"background-color":"transparent"},eo={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},to={"-webkit-mask":It,mask:It,background:Yi};for(const s in to){const e=to[s];for(const t in eo)e[s+"-"+t]=eo[t]}function io(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}function Aa(s,e,t){const i=document.createElement("span");let o=s.body;o.indexOf("");const a=s.attributes,r=Xi(o,{...a,width:e.width+"",height:e.height+""}),n=Ea(r),l=i.style,d={"--svg":n,width:io(a.width),height:io(a.height),...t?It:Yi};for(const u in d)l.setProperty(u,d[u]);return i}function Oa(s){const e=document.createElement("span");return e.innerHTML=Xi(s.body,s.attributes),e.firstChild}function oo(s,e){const t=e.icon.data,i=e.customisations,o=Zi(t,i);i.preserveAspectRatio&&(o.attributes.preserveAspectRatio=i.preserveAspectRatio);const a=e.renderedMode;let r;switch(a){case"svg":r=Oa(o);break;default:r=Aa(o,{...$e,...t},a==="mask")}const n=Array.from(s.childNodes).find(l=>{const d=l.tagName&&l.tagName.toUpperCase();return d==="SPAN"||d==="SVG"});n?r.tagName==="SPAN"&&n.tagName===r.tagName?n.setAttribute("style",r.getAttribute("style")):s.replaceChild(r,n):s.appendChild(r)}const Pt="data-style";function so(s,e){let t=Array.from(s.childNodes).find(i=>i.hasAttribute&&i.hasAttribute(Pt));t||(t=document.createElement("style"),t.setAttribute(Pt,Pt),s.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"}function ao(s,e,t){const i=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:e,icon:s,lastRender:i}}function Ta(s="iconify-icon"){let e,t;try{e=window.customElements,t=window.HTMLElement}catch{return}if(!e||!t)return;const i=e.get(s);if(i)return i;const o=["icon","mode","inline","width","height","rotate","flip"],a=class extends t{constructor(){super();Me(this,"_shadowRoot");Me(this,"_state");Me(this,"_checkQueued",!1);const l=this._shadowRoot=this.attachShadow({mode:"open"}),d=Ct(this);so(l,d),this._state=ao({value:""},d),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(l){if(l==="inline"){const d=Ct(this),u=this._state;d!==u.inline&&(u.inline=d,so(this._shadowRoot,d))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return Ct(this)}set inline(l){this.setAttribute("inline",l?"true":null)}restartAnimation(){const l=this._state;if(l.rendered){const d=this._shadowRoot;if(l.renderedMode==="svg")try{d.lastChild.setCurrentTime(0);return}catch{}oo(d,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,d=this.getAttribute("icon");if(d!==l.icon.value){this._iconChanged(d);return}if(!l.rendered)return;const u=this.getAttribute("mode"),h=Si(this);(l.attrMode!==u||qs(l.customisations,h))&&this._renderIcon(l.icon,h,u)}_iconChanged(l){const d=fa(l,(u,h,g)=>{const y=this._state;if(y.rendered||this.getAttribute("icon")!==u)return;const _={value:u,name:h,data:g};_.data?this._gotIconData(_):y.icon=_});d.data?this._gotIconData(d):this._state=ao(d,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,Si(this),this.getAttribute("mode"))}_renderIcon(l,d,u){const h=ba(l.data.body,u),g=this._state.inline;oo(this._shadowRoot,this._state={rendered:!0,icon:l,inline:g,customisations:d,attrMode:u,renderedMode:h})}};o.forEach(n=>{n in a.prototype||Object.defineProperty(a.prototype,n,{get:function(){return this.getAttribute(n)},set:function(l){this.setAttribute(n,l)}})});const r=Qi();for(const n in r)a[n]=a.prototype[n]=r[n];return e.define(s,a),a}const Ca=Ta()||Qi(),{enableCache:Rn,disableCache:Nn,iconExists:qn,getIcon:Un,listIcons:Vn,addIcon:Bn,addCollection:Hn,calculateSize:Kn,buildIcon:Wn,loadIcons:Gn,loadIcon:Zn,addAPIProvider:Jn,_api:Qn}=Ca;class ro extends N{static get styles(){return $` +*/const xi=Object.freeze({left:0,top:0,width:16,height:16}),qe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$e=Object.freeze({...xi,...qe}),gt=Object.freeze({...$e,body:"",hidden:!1}),Ds=Object.freeze({width:null,height:null}),ki=Object.freeze({...Ds,...qe});function Rs(s,e=0){const t=s.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(s);return isNaN(o)?0:i(o)}else if(t!==s){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let a=parseFloat(s.slice(0,s.length-t.length));return isNaN(a)?0:(a=a/o,a%1===0?i(a):0)}}return e}const Ns=/[\s,]+/;function qs(s,e){e.split(Ns).forEach(t=>{switch(t.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}const Si={...ki,preserveAspectRatio:""};function Ei(s){const e={...Si},t=(i,o)=>s.getAttribute(i)||o;return e.width=t("width",null),e.height=t("height",null),e.rotate=Rs(t("rotate","")),qs(e,t("flip","")),e.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),e}function Us(s,e){for(const t in Si)if(s[t]!==e[t])return!0;return!1}const xe=/^[a-z0-9]+(-[a-z0-9]+)*$/,ke=(s,e,t,i="")=>{const o=s.split(":");if(s.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const n=o.pop(),l=o.pop(),d={provider:o.length>0?o[0]:i,prefix:l,name:n};return e&&!Ue(d)?null:d}const a=o[0],r=a.split("-");if(r.length>1){const n={provider:i,prefix:r.shift(),name:r.join("-")};return e&&!Ue(n)?null:n}if(t&&i===""){const n={provider:i,prefix:"",name:a};return e&&!Ue(n,t)?null:n}return null},Ue=(s,e)=>s?!!((s.provider===""||s.provider.match(xe))&&(e&&s.prefix===""||s.prefix.match(xe))&&s.name.match(xe)):!1;function Vs(s,e){const t={};!s.hFlip!=!e.hFlip&&(t.hFlip=!0),!s.vFlip!=!e.vFlip&&(t.vFlip=!0);const i=((s.rotate||0)+(e.rotate||0))%4;return i&&(t.rotate=i),t}function Ai(s,e){const t=Vs(s,e);for(const i in gt)i in qe?i in s&&!(i in t)&&(t[i]=qe[i]):i in e?t[i]=e[i]:i in s&&(t[i]=s[i]);return t}function Bs(s,e){const t=s.icons,i=s.aliases||Object.create(null),o=Object.create(null);function a(r){if(t[r])return o[r]=[];if(!(r in o)){o[r]=null;const n=i[r]&&i[r].parent,l=n&&a(n);l&&(o[r]=[n].concat(l))}return o[r]}return Object.keys(t).concat(Object.keys(i)).forEach(a),o}function Hs(s,e,t){const i=s.icons,o=s.aliases||Object.create(null);let a={};function r(n){a=Ai(i[n]||o[n],a)}return r(e),t.forEach(r),Ai(s,a)}function Ti(s,e){const t=[];if(typeof s!="object"||typeof s.icons!="object")return t;s.not_found instanceof Array&&s.not_found.forEach(o=>{e(o,null),t.push(o)});const i=Bs(s);for(const o in i){const a=i[o];a&&(e(o,Hs(s,o,a)),t.push(o))}return t}const Ks={provider:"",aliases:{},not_found:{},...xi};function vt(s,e){for(const t in e)if(t in s&&typeof s[t]!=typeof e[t])return!1;return!0}function Oi(s){if(typeof s!="object"||s===null)return null;const e=s;if(typeof e.prefix!="string"||!s.icons||typeof s.icons!="object"||!vt(s,Ks))return null;const t=e.icons;for(const o in t){const a=t[o];if(!o.match(xe)||typeof a.body!="string"||!vt(a,gt))return null}const i=e.aliases||Object.create(null);for(const o in i){const a=i[o],r=a.parent;if(!o.match(xe)||typeof r!="string"||!t[r]&&!i[r]||!vt(a,gt))return null}return e}const Ve=Object.create(null);function Gs(s,e){return{provider:s,prefix:e,icons:Object.create(null),missing:new Set}}function Y(s,e){const t=Ve[s]||(Ve[s]=Object.create(null));return t[e]||(t[e]=Gs(s,e))}function yt(s,e){return Oi(e)?Ti(e,(t,i)=>{i?s.icons[t]=i:s.missing.add(t)}):[]}function Ws(s,e,t){try{if(typeof t.body=="string")return s.icons[e]={...t},!0}catch{}return!1}function Zs(s,e){let t=[];return(typeof s=="string"?[s]:Object.keys(Ve)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(Ve[o]||{})).forEach(r=>{const n=Y(o,r);t=t.concat(Object.keys(n.icons).map(l=>(o!==""?"@"+o+":":"")+r+":"+l))})}),t}let Se=!1;function Ci(s){return typeof s=="boolean"&&(Se=s),Se}function Ee(s){const e=typeof s=="string"?ke(s,!0,Se):s;if(e){const t=Y(e.provider,e.prefix),i=e.name;return t.icons[i]||(t.missing.has(i)?null:void 0)}}function Ii(s,e){const t=ke(s,!0,Se);if(!t)return!1;const i=Y(t.provider,t.prefix);return Ws(i,t.name,e)}function Li(s,e){if(typeof s!="object")return!1;if(typeof e!="string"&&(e=s.provider||""),Se&&!e&&!s.prefix){let o=!1;return Oi(s)&&(s.prefix="",Ti(s,(a,r)=>{r&&Ii(a,r)&&(o=!0)})),o}const t=s.prefix;if(!Ue({provider:e,prefix:t,name:"a"}))return!1;const i=Y(e,t);return!!yt(i,s)}function Js(s){return!!Ee(s)}function Qs(s){const e=Ee(s);return e?{...$e,...e}:null}function Xs(s){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);s.sort((o,a)=>o.provider!==a.provider?o.provider.localeCompare(a.provider):o.prefix!==a.prefix?o.prefix.localeCompare(a.prefix):o.name.localeCompare(a.name));let i={provider:"",prefix:"",name:""};return s.forEach(o=>{if(i.name===o.name&&i.prefix===o.prefix&&i.provider===o.provider)return;i=o;const a=o.provider,r=o.prefix,n=o.name,l=t[a]||(t[a]=Object.create(null)),d=l[r]||(l[r]=Y(a,r));let u;n in d.icons?u=e.loaded:r===""||d.missing.has(n)?u=e.missing:u=e.pending;const p={provider:a,prefix:r,name:n};u.push(p)}),e}function Pi(s,e){s.forEach(t=>{const i=t.loaderCallbacks;i&&(t.loaderCallbacks=i.filter(o=>o.id!==e))})}function Ys(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const e=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const i=s.provider,o=s.prefix;e.forEach(a=>{const r=a.icons,n=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==o)return!0;const d=l.name;if(s.icons[d])r.loaded.push({provider:i,prefix:o,name:d});else if(s.missing.has(d))r.missing.push({provider:i,prefix:o,name:d});else return t=!0,!0;return!1}),r.pending.length!==n&&(t||Pi([s],a.id),a.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),a.abort))})}))}let ea=0;function ta(s,e,t){const i=ea++,o=Pi.bind(null,t,i);if(!e.pending.length)return o;const a={id:i,icons:e,callback:s,abort:o};return t.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(a)}),o}const _t=Object.create(null);function Mi(s,e){_t[s]=e}function wt(s){return _t[s]||_t[""]}function ia(s,e=!0,t=!1){const i=[];return s.forEach(o=>{const a=typeof o=="string"?ke(o,e,t):o;a&&i.push(a)}),i}var oa={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sa(s,e,t,i){const o=s.resources.length,a=s.random?Math.floor(Math.random()*o):s.index;let r;if(s.random){let E=s.resources.slice(0);for(r=[];E.length>1;){const F=Math.floor(Math.random()*E.length);r.push(E[F]),E=E.slice(0,F).concat(E.slice(F+1))}r=r.concat(E)}else r=s.resources.slice(a).concat(s.resources.slice(0,a));const n=Date.now();let l="pending",d=0,u,p=null,g=[],y=[];typeof i=="function"&&y.push(i);function _(){p&&(clearTimeout(p),p=null)}function T(){l==="pending"&&(l="aborted"),_(),g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function z(E,F){F&&(y=[]),typeof E=="function"&&y.push(E)}function M(){return{startTime:n,payload:e,status:l,queriesSent:d,queriesPending:g.length,subscribe:z,abort:T}}function I(){l="failed",y.forEach(E=>{E(void 0,u)})}function Le(){g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function Je(E,F,ce){const te=F!=="success";switch(g=g.filter(L=>L!==E),l){case"pending":break;case"failed":if(te||!s.dataAfterTimeout)return;break;default:return}if(F==="abort"){u=ce,I();return}if(te){u=ce,g.length||(r.length?ee():I());return}if(_(),Le(),!s.random){const L=s.resources.indexOf(E.resource);L!==-1&&L!==s.index&&(s.index=L)}l="completed",y.forEach(L=>{L(ce)})}function ee(){if(l!=="pending")return;_();const E=r.shift();if(E===void 0){if(g.length){p=setTimeout(()=>{_(),l==="pending"&&(Le(),I())},s.timeout);return}I();return}const F={status:"pending",resource:E,callback:(ce,te)=>{Je(F,ce,te)}};g.push(F),d++,p=setTimeout(ee,s.rotate),t(E,e,F.callback)}return setTimeout(ee),M}function ji(s){const e={...oa,...s};let t=[];function i(){t=t.filter(n=>n().status==="pending")}function o(n,l,d){const u=sa(e,n,l,(p,g)=>{i(),d&&d(p,g)});return t.push(u),u}function a(n){return t.find(l=>n(l))||null}return{query:o,find:a,setIndex:n=>{e.index=n},getIndex:()=>e.index,cleanup:i}}function $t(s){let e;if(typeof s.resources=="string")e=[s.resources];else if(e=s.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const Be=Object.create(null),Ae=["https://api.simplesvg.com","https://api.unisvg.com"],He=[];for(;Ae.length>0;)Ae.length===1||Math.random()>.5?He.push(Ae.shift()):He.push(Ae.pop());Be[""]=$t({resources:["https://api.iconify.design"].concat(He)});function Fi(s,e){const t=$t(e);return t===null?!1:(Be[s]=t,!0)}function Ke(s){return Be[s]}function aa(){return Object.keys(Be)}function zi(){}const xt=Object.create(null);function ra(s){if(!xt[s]){const e=Ke(s);if(!e)return;const t=ji(e),i={config:e,redundancy:t};xt[s]=i}return xt[s]}function Di(s,e,t){let i,o;if(typeof s=="string"){const a=wt(s);if(!a)return t(void 0,424),zi;o=a.send;const r=ra(s);r&&(i=r.redundancy)}else{const a=$t(s);if(a){i=ji(a);const r=s.resources?s.resources[0]:"",n=wt(r);n&&(o=n.send)}}return!i||!o?(t(void 0,424),zi):i.query(e,o,t)().abort}const Ri="iconify2",Te="iconify",Ni=Te+"-count",qi=Te+"-version",Ui=36e5,na=168;function kt(s,e){try{return s.getItem(e)}catch{}}function St(s,e,t){try{return s.setItem(e,t),!0}catch{}}function Vi(s,e){try{s.removeItem(e)}catch{}}function Et(s,e){return St(s,Ni,e.toString())}function At(s){return parseInt(kt(s,Ni))||0}const ne={local:!0,session:!0},Bi={local:new Set,session:new Set};let Tt=!1;function la(s){Tt=s}let Ge=typeof window>"u"?{}:window;function Hi(s){const e=s+"Storage";try{if(Ge&&Ge[e]&&typeof Ge[e].length=="number")return Ge[e]}catch{}ne[s]=!1}function Ki(s,e){const t=Hi(s);if(!t)return;const i=kt(t,qi);if(i!==Ri){if(i){const n=At(t);for(let l=0;l{const l=Te+n.toString(),d=kt(t,l);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,n))return!0}catch{}Vi(t,l)}};let r=At(t);for(let n=r-1;n>=0;n--)a(n)||(n===r-1?(r--,Et(t,r)):Bi[s].add(n))}function Gi(){if(!Tt){la(!0);for(const s in ne)Ki(s,e=>{const t=e.data,i=e.provider,o=t.prefix,a=Y(i,o);if(!yt(a,t).length)return!1;const r=t.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,r):r,!0})}}function da(s,e){const t=s.lastModifiedCached;if(t&&t>=e)return t===e;if(s.lastModifiedCached=e,t)for(const i in ne)Ki(i,o=>{const a=o.data;return o.provider!==s.provider||a.prefix!==s.prefix||a.lastModified===e});return!0}function ca(s,e){Tt||Gi();function t(i){let o;if(!ne[i]||!(o=Hi(i)))return;const a=Bi[i];let r;if(a.size)a.delete(r=Array.from(a).shift());else if(r=At(o),!Et(o,r+1))return;const n={cached:Math.floor(Date.now()/Ui),provider:s.provider,data:e};return St(o,Te+r.toString(),JSON.stringify(n))}e.lastModified&&!da(s,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Wi(){}function ua(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Ys(s)}))}function ha(s,e){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(e).sort():s.iconsToLoad=e,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:t,prefix:i}=s,o=s.iconsToLoad;delete s.iconsToLoad;let a;if(!o||!(a=wt(t)))return;a.prepare(t,i,o).forEach(n=>{Di(t,n,l=>{if(typeof l!="object")n.icons.forEach(d=>{s.missing.add(d)});else try{const d=yt(s,l);if(!d.length)return;const u=s.pendingIcons;u&&d.forEach(p=>{u.delete(p)}),ca(s,l)}catch(d){console.error(d)}ua(s)})})}))}const Ot=(s,e)=>{const t=ia(s,!0,Ci()),i=Xs(t);if(!i.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(i.loaded,i.missing,i.pending,Wi)}),()=>{l=!1}}const o=Object.create(null),a=[];let r,n;return i.pending.forEach(l=>{const{provider:d,prefix:u}=l;if(u===n&&d===r)return;r=d,n=u,a.push(Y(d,u));const p=o[d]||(o[d]=Object.create(null));p[u]||(p[u]=[])}),i.pending.forEach(l=>{const{provider:d,prefix:u,name:p}=l,g=Y(d,u),y=g.pendingIcons||(g.pendingIcons=new Set);y.has(p)||(y.add(p),o[d][u].push(p))}),a.forEach(l=>{const{provider:d,prefix:u}=l;o[d][u].length&&ha(l,o[d][u])}),e?ta(e,i,a):Wi},pa=s=>new Promise((e,t)=>{const i=typeof s=="string"?ke(s,!0):s;if(!i){t(s);return}Ot([i||s],o=>{if(o.length&&i){const a=Ee(i);if(a){e({...$e,...a});return}}t(s)})});function fa(s){try{const e=typeof s=="string"?JSON.parse(s):s;if(typeof e.body=="string")return{...e}}catch{}}function ba(s,e){const t=typeof s=="string"?ke(s,!0,!0):null;if(!t){const a=fa(s);return{value:s,data:a}}const i=Ee(t);if(i!==void 0||!t.prefix)return{value:s,name:t,data:i};const o=Ot([t],()=>e(s,t,Ee(t)));return{value:s,name:t,loading:o}}function Ct(s){return s.hasAttribute("inline")}let Zi=!1;try{Zi=navigator.vendor.indexOf("Apple")===0}catch{}function ma(s,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Zi||s.indexOf("{const _=[],T=y.hFlip,z=y.vFlip;let M=y.rotate;T?z?M+=2:(_.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),_.push("scale(-1 1)"),o.top=o.left=0):z&&(_.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),_.push("scale(1 -1)"),o.top=o.left=0);let I;switch(M<0&&(M-=Math.floor(M/4)*4),M=M%4,M){case 1:I=o.height/2+o.top,_.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:_.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:I=o.width/2+o.left,_.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}M%2===1&&(o.left!==o.top&&(I=o.left,o.left=o.top,o.top=I),o.width!==o.height&&(I=o.width,o.width=o.height,o.height=I)),_.length&&(a=''+a+"")});const r=i.width,n=i.height,l=o.width,d=o.height;let u,p;return r===null?(p=n===null?"1em":n==="auto"?d:n,u=It(p,l/d)):(u=r==="auto"?l:r,p=n===null?It(u,d/l):n==="auto"?d:n),{attributes:{width:u.toString(),height:p.toString(),viewBox:o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+d.toString()},body:a}}let We=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function ya(s){We=s}function _a(){return We}function wa(s,e){const t=Ke(s);if(!t)return 0;let i;if(!t.maxURL)i=0;else{let o=0;t.resources.forEach(r=>{o=Math.max(o,r.length)});const a=e+".json?icons=";i=t.maxURL-o-t.path.length-a.length}return i}function $a(s){return s===404}const xa=(s,e,t)=>{const i=[],o=wa(s,e),a="icons";let r={type:a,provider:s,prefix:e,icons:[]},n=0;return t.forEach((l,d)=>{n+=l.length+1,n>=o&&d>0&&(i.push(r),r={type:a,provider:s,prefix:e,icons:[]},n=l.length),r.icons.push(l)}),i.push(r),i};function ka(s){if(typeof s=="string"){const e=Ke(s);if(e)return e.path}return"/"}const Sa={prepare:xa,send:(s,e,t)=>{if(!We){t("abort",424);return}let i=ka(e.provider);switch(e.type){case"icons":{const a=e.prefix,n=e.icons.join(","),l=new URLSearchParams({icons:n});i+=a+".json?"+l.toString();break}case"custom":{const a=e.uri;i+=a.slice(0,1)==="/"?a.slice(1):a;break}default:t("abort",400);return}let o=503;We(s+i).then(a=>{const r=a.status;if(r!==200){setTimeout(()=>{t($a(r)?"abort":"next",r)});return}return o=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?t("abort",a):t("next",o)});return}setTimeout(()=>{t("success",a)})}).catch(()=>{t("next",o)})}};function Qi(s,e){switch(s){case"local":case"session":ne[s]=e;break;case"all":for(const t in ne)ne[t]=e;break}}function Xi(){Mi("",Sa),Ci(!0);let s;try{s=window}catch{}if(s){if(Gi(),s.IconifyPreload!==void 0){const t=s.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Li(o))&&console.error(i)}catch{console.error(i)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(const i in t){const o="IconifyProviders["+i+"] is invalid.";try{const a=t[i];if(typeof a!="object"||!a||a.resources===void 0)continue;Fi(i,a)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Qi(t,!0),disableCache:t=>Qi(t,!1),iconExists:Js,getIcon:Qs,listIcons:Zs,addIcon:Ii,addCollection:Li,calculateSize:It,buildIcon:Ji,loadIcons:Ot,loadIcon:pa,addAPIProvider:Fi,_api:{getAPIConfig:Ke,setAPIModule:Mi,sendAPIQuery:Di,setFetch:ya,getFetch:_a,listAPIProviders:aa}}}function Yi(s,e){let t=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)t+=" "+i+'="'+e[i]+'"';return'"+s+""}function Ea(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Aa(s){return'url("data:image/svg+xml,'+Ea(s)+'")'}const Lt={"background-color":"currentColor"},eo={"background-color":"transparent"},to={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},io={"-webkit-mask":Lt,mask:Lt,background:eo};for(const s in io){const e=io[s];for(const t in to)e[s+"-"+t]=to[t]}function oo(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}function Ta(s,e,t){const i=document.createElement("span");let o=s.body;o.indexOf("");const a=s.attributes,r=Yi(o,{...a,width:e.width+"",height:e.height+""}),n=Aa(r),l=i.style,d={"--svg":n,width:oo(a.width),height:oo(a.height),...t?Lt:eo};for(const u in d)l.setProperty(u,d[u]);return i}function Oa(s){const e=document.createElement("span");return e.innerHTML=Yi(s.body,s.attributes),e.firstChild}function so(s,e){const t=e.icon.data,i=e.customisations,o=Ji(t,i);i.preserveAspectRatio&&(o.attributes.preserveAspectRatio=i.preserveAspectRatio);const a=e.renderedMode;let r;switch(a){case"svg":r=Oa(o);break;default:r=Ta(o,{...$e,...t},a==="mask")}const n=Array.from(s.childNodes).find(l=>{const d=l.tagName&&l.tagName.toUpperCase();return d==="SPAN"||d==="SVG"});n?r.tagName==="SPAN"&&n.tagName===r.tagName?n.setAttribute("style",r.getAttribute("style")):s.replaceChild(r,n):s.appendChild(r)}const Pt="data-style";function ao(s,e){let t=Array.from(s.childNodes).find(i=>i.hasAttribute&&i.hasAttribute(Pt));t||(t=document.createElement("style"),t.setAttribute(Pt,Pt),s.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"}function ro(s,e,t){const i=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:e,icon:s,lastRender:i}}function Ca(s="iconify-icon"){let e,t;try{e=window.customElements,t=window.HTMLElement}catch{return}if(!e||!t)return;const i=e.get(s);if(i)return i;const o=["icon","mode","inline","width","height","rotate","flip"],a=class extends t{constructor(){super();Me(this,"_shadowRoot");Me(this,"_state");Me(this,"_checkQueued",!1);const l=this._shadowRoot=this.attachShadow({mode:"open"}),d=Ct(this);ao(l,d),this._state=ro({value:""},d),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(l){if(l==="inline"){const d=Ct(this),u=this._state;d!==u.inline&&(u.inline=d,ao(this._shadowRoot,d))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return Ct(this)}set inline(l){this.setAttribute("inline",l?"true":null)}restartAnimation(){const l=this._state;if(l.rendered){const d=this._shadowRoot;if(l.renderedMode==="svg")try{d.lastChild.setCurrentTime(0);return}catch{}so(d,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,d=this.getAttribute("icon");if(d!==l.icon.value){this._iconChanged(d);return}if(!l.rendered)return;const u=this.getAttribute("mode"),p=Ei(this);(l.attrMode!==u||Us(l.customisations,p))&&this._renderIcon(l.icon,p,u)}_iconChanged(l){const d=ba(l,(u,p,g)=>{const y=this._state;if(y.rendered||this.getAttribute("icon")!==u)return;const _={value:u,name:p,data:g};_.data?this._gotIconData(_):y.icon=_});d.data?this._gotIconData(d):this._state=ro(d,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,Ei(this),this.getAttribute("mode"))}_renderIcon(l,d,u){const p=ma(l.data.body,u),g=this._state.inline;so(this._shadowRoot,this._state={rendered:!0,icon:l,inline:g,customisations:d,attrMode:u,renderedMode:p})}};o.forEach(n=>{n in a.prototype||Object.defineProperty(a.prototype,n,{get:function(){return this.getAttribute(n)},set:function(l){this.setAttribute(n,l)}})});const r=Xi();for(const n in r)a[n]=a.prototype[n]=r[n];return e.define(s,a),a}const Ia=Ca()||Xi(),{enableCache:Nn,disableCache:qn,iconExists:Un,getIcon:Vn,listIcons:Bn,addIcon:Hn,addCollection:Kn,calculateSize:Gn,buildIcon:Wn,loadIcons:Zn,loadIcon:Jn,addAPIProvider:Qn,_api:Xn}=Ia;class no extends N{static get styles(){return $` :root { pointer-events: none; } @@ -399,14 +399,14 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn .tooltip:hover { opacity: 0.25; } - `}static get properties(){return{...super.properties,icon:{type:String},tooltip:{type:String},tooltip_open:{type:Boolean},size:{type:String},slotted:{type:Boolean,attribute:!1}}}firstUpdated(){const e=this.shadowRoot.querySelector("slot[name=tooltip]");e&&e.addEventListener("slotchange",t=>{const o=t.target.assignedNodes();let a=!1;o.length>0&&(o[0].tagName==="SLOT"?a=o[0].assignedNodes().length>0:a=!0),this.slotted=a})}_toggleTooltip(){this.tooltip_open?this.tooltip_open=!1:this.tooltip_open=!0}tooltipClasses(){return{tooltip:!0,slotted:this.slotted}}render(){const e=this.tooltip?p`
{const o=t.target.assignedNodes();let a=!1;o.length>0&&(o[0].tagName==="SLOT"?a=o[0].assignedNodes().length>0:a=!0),this.slotted=a})}_toggleTooltip(){this.tooltip_open?this.tooltip_open=!1:this.tooltip_open=!0}tooltipClasses(){return{tooltip:!0,slotted:this.slotted}}render(){const e=this.tooltip?h`
${this.tooltip} -
`:null;return p` +
`:null;return h`
${e}
- `}}window.customElements.define("dt-icon",ro);class La extends se{static get styles(){return $` + `}}window.customElements.define("dt-icon",no);class La extends ae{static get styles(){return $` :host { margin-top: -0.25rem; width: 2rem; @@ -433,7 +433,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const ne=s=>s??O;class P extends N{static get formAssociated(){return!0}static get styles(){return[...super.styles,$` + */const le=s=>s??O;class P extends N{static get formAssociated(){return!0}static get styles(){return[...super.styles,$` .input-group { position: relative; } @@ -500,74 +500,74 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn .invalid ~ .error-container { border-top-width: 0; } - `]}static get properties(){return{...super.properties,name:{type:String},label:{type:String},icon:{type:String},iconAltText:{type:String},private:{type:Boolean},privateLabel:{type:String},disabled:{type:Boolean},required:{type:Boolean},requiredMessage:{type:String},touched:{type:Boolean,state:!0},invalid:{type:Boolean,state:!0},error:{type:String},loading:{type:Boolean},saved:{type:Boolean},errorSlotted:{type:Boolean,attribute:!1}}}get _field(){return this.shadowRoot.querySelector("input, textarea, select")}get _focusTarget(){return this._field}constructor(){super(),this.savedTimeout=null,this.touched=!1,this.invalid=!1,this.internals=this.attachInternals(),this.addEventListener("invalid",e=>{e&&e.preventDefault(),this.touched=!0,this._validateRequired()})}firstUpdated(...e){super.firstUpdated(...e);const t=this.shadowRoot.querySelector("slot[name=error]");t&&t.addEventListener("slotchange",o=>{const r=o.target.assignedNodes();let n=!1;r.length>0&&(r[0].tagName==="SLOT"?n=r[0].assignedNodes().length>0:n=!0),this.errorSlotted=n});const i=P._jsonToFormData(this.value,this.name);this.internals.setFormValue(i),this._validateRequired()}static _buildFormData(e,t,i){if(t&&typeof t=="object"&&!(t instanceof Date)&&!(t instanceof File))Object.keys(t).forEach(o=>{this._buildFormData(e,t[o],i?`${i}[${o}]`:o)});else{const o=t??"";e.append(i,o)}}static _jsonToFormData(e,t){const i=new FormData;return P._buildFormData(i,e,t),i}_setFormValue(e){const t=P._jsonToFormData(e,this.name);this.internals.setFormValue(t,e),this._validateRequired(),this.touched=!0}_validateRequired(){}labelTemplate(){return this.label?p` + `]}static get properties(){return{...super.properties,name:{type:String},label:{type:String},icon:{type:String},iconAltText:{type:String},private:{type:Boolean},privateLabel:{type:String},disabled:{type:Boolean},required:{type:Boolean},requiredMessage:{type:String},touched:{type:Boolean,state:!0},invalid:{type:Boolean,state:!0},error:{type:String},loading:{type:Boolean},saved:{type:Boolean},errorSlotted:{type:Boolean,attribute:!1}}}get _field(){return this.shadowRoot.querySelector("input, textarea, select")}get _focusTarget(){return this._field}constructor(){super(),this.savedTimeout=null,this.touched=!1,this.invalid=!1,this.internals=this.attachInternals(),this.addEventListener("invalid",e=>{e&&e.preventDefault(),this.touched=!0,this._validateRequired()})}firstUpdated(...e){super.firstUpdated(...e);const t=this.shadowRoot.querySelector("slot[name=error]");t&&t.addEventListener("slotchange",o=>{const r=o.target.assignedNodes();let n=!1;r.length>0&&(r[0].tagName==="SLOT"?n=r[0].assignedNodes().length>0:n=!0),this.errorSlotted=n});const i=P._jsonToFormData(this.value,this.name);this.internals.setFormValue(i),this._validateRequired()}static _buildFormData(e,t,i){if(t&&typeof t=="object"&&!(t instanceof Date)&&!(t instanceof File))Object.keys(t).forEach(o=>{this._buildFormData(e,t[o],i?`${i}[${o}]`:o)});else{const o=t??"";e.append(i,o)}}static _jsonToFormData(e,t){const i=new FormData;return P._buildFormData(i,e,t),i}_setFormValue(e){const t=P._jsonToFormData(e,this.name);this.internals.setFormValue(t,e),this._validateRequired(),this.touched=!0}_validateRequired(){}labelTemplate(){return this.label?h` - ${this.icon?null:p``} + ${this.icon?null:h``} ${this.label} - `:""}_errorClasses(){return{"error-container":!0,slotted:this.errorSlotted}}renderIcons(){return p` + `:""}_errorClasses(){return{"error-container":!0,slotted:this.errorSlotted}}renderIcons(){return h` ${this.renderIconInvalid()} ${this.renderError()} ${this.renderIconLoading()} ${this.renderIconSaved()} - `}renderIconInvalid(){return this.touched&&this.invalid?p`
+ `}renderIconInvalid(){return this.touched&&this.invalid?h`
${this.internals.validationMessage} -
`:null}renderIconLoading(){return this.loading?p``:null}renderIconSaved(){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?p` `:null}renderIconLoading(){return this.loading?h``:null}renderIconSaved(){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?h``:null}renderError(){return this.error?p`
+ >`:null}renderError(){return this.error?h`
${this.error} -
`:null}render(){return p` +
`:null}render(){return h` ${this.labelTemplate()} `}reset(){var e;(e=this._field)!=null&&e.reset&&this._field.reset(),this.value="",this._setFormValue("")}}/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{I:Ia}=rs,no=()=>document.createComment(""),Te=(s,e,t)=>{var a;const i=s._$AA.parentNode,o=e===void 0?s._$AB:e._$AA;if(t===void 0){const r=i.insertBefore(no(),o),n=i.insertBefore(no(),o);t=new Ia(r,n,s,s.options)}else{const r=t._$AB.nextSibling,n=t._$AM,l=n!==s;if(l){let d;(a=t._$AQ)==null||a.call(t,s),t._$AM=s,t._$AP!==void 0&&(d=s._$AU)!==n._$AU&&t._$AP(d)}if(r!==o||l){let d=t._$AA;for(;d!==r;){const u=d.nextSibling;i.insertBefore(d,o),d=u}}}return t},le=(s,e,t=s)=>(s._$AI(e,t),s),Pa={},Ma=(s,e=Pa)=>s._$AH=e,ja=s=>s._$AH,Mt=s=>{var i;(i=s._$AP)==null||i.call(s,!1,!0);let e=s._$AA;const t=s._$AB.nextSibling;for(;e!==t;){const o=e.nextSibling;e.remove(),e=o}};/** + */const{I:Pa}=ns,lo=()=>document.createComment(""),Oe=(s,e,t)=>{var a;const i=s._$AA.parentNode,o=e===void 0?s._$AB:e._$AA;if(t===void 0){const r=i.insertBefore(lo(),o),n=i.insertBefore(lo(),o);t=new Pa(r,n,s,s.options)}else{const r=t._$AB.nextSibling,n=t._$AM,l=n!==s;if(l){let d;(a=t._$AQ)==null||a.call(t,s),t._$AM=s,t._$AP!==void 0&&(d=s._$AU)!==n._$AU&&t._$AP(d)}if(r!==o||l){let d=t._$AA;for(;d!==r;){const u=d.nextSibling;i.insertBefore(d,o),d=u}}}return t},de=(s,e,t=s)=>(s._$AI(e,t),s),Ma={},ja=(s,e=Ma)=>s._$AH=e,Fa=s=>s._$AH,Mt=s=>{var i;(i=s._$AP)==null||i.call(s,!1,!0);let e=s._$AA;const t=s._$AB.nextSibling;for(;e!==t;){const o=e.nextSibling;e.remove(),e=o}};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const lo=(s,e,t)=>{const i=new Map;for(let o=e;o<=t;o++)i.set(s[o],o);return i},pe=ut(class extends ht{constructor(s){if(super(s),s.type!==ct.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);const o=[],a=[];let r=0;for(const n of s)o[r]=i?i(n,r):r,a[r]=t(n,r),r++;return{values:a,keys:o}}render(s,e,t){return this.dt(s,e,t).values}update(s,[e,t,i]){const o=ja(s),{values:a,keys:r}=this.dt(e,t,i);if(!Array.isArray(o))return this.ut=r,a;const n=this.ut??(this.ut=[]),l=[];let d,u,h=0,g=o.length-1,y=0,_=a.length-1;for(;h<=g&&y<=_;)if(o[h]===null)h++;else if(o[g]===null)g--;else if(n[h]===r[y])l[y]=le(o[h],a[y]),h++,y++;else if(n[g]===r[_])l[_]=le(o[g],a[_]),g--,_--;else if(n[h]===r[_])l[_]=le(o[h],a[_]),Te(s,l[_+1],o[h]),h++,_--;else if(n[g]===r[y])l[y]=le(o[g],a[y]),Te(s,o[h],o[g]),g--,y++;else if(d===void 0&&(d=lo(r,y,_),u=lo(n,h,g)),d.has(n[h]))if(d.has(n[g])){const C=u.get(r[y]),F=C!==void 0?o[C]:null;if(F===null){const M=Te(s,o[h]);le(M,a[y]),l[y]=M}else l[y]=le(F,a[y]),Te(s,o[h],F),o[C]=null;y++}else Mt(o[g]),g--;else Mt(o[h]),h++;for(;y<=_;){const C=Te(s,l[_+1]);le(C,a[y]),l[y++]=C}for(;h<=g;){const C=o[h++];C!==null&&Mt(C)}return this.ut=r,Ma(s,l),U}}),za=s=>class extends s{constructor(){super(),this.activeIndex=-1,this.filteredOptions=[],this.detectTap=!1}static get properties(){return{...super.properties,value:{type:Array,reflect:!0},query:{type:String,state:!0},options:{type:Array},filteredOptions:{type:Array,state:!0},open:{type:Boolean,state:!0},canUpdate:{type:Boolean,state:!0},activeIndex:{type:Number,state:!0},containerHeight:{type:Number,state:!0},loading:{type:Boolean}}}willUpdate(e){if(super.willUpdate(e),e&&!this.containerHeight&&this.shadowRoot.children&&this.shadowRoot.children.length){const t=this.shadowRoot.querySelector(".input-group");t&&(this.containerHeight=t.offsetHeight)}}updated(){this._scrollOptionListToActive();const e=this.shadowRoot.querySelector(".input-group");!e.style.getPropertyValue("--container-width")&&e.clientWidth>0&&e.style.setProperty("--container-width",`${e.clientWidth}px`)}_select(){console.error("Must implement `_select(value)` function"),this._clearSearch()}static _focusInput(e){e.target===e.currentTarget&&e.target.getElementsByTagName("input")[0].focus()}_inputFocusIn(e){(!e.relatedTarget||!["BUTTON","LI"].includes(e.relatedTarget.nodeName))&&(this.open=!0,this.activeIndex=-1)}_inputFocusOut(e){(!e.relatedTarget||!["BUTTON","LI"].includes(e.relatedTarget.nodeName))&&(this.open=!1,this.canUpdate=!0)}_inputKeyDown(e){}_inputKeyUp(e){switch(e.keyCode||e.which){case 38:this.open=!0,this._listHighlightPrevious();break;case 40:this.open=!0,this._listHighlightNext();break;case 9:this.activeIndex<0?this.open=!1:e.preventDefault(),this._keyboardSelectOption();break;case 13:this._keyboardSelectOption();break;case 27:this.open=!1,this.activeIndex=-1;break;default:this.open=!0,this.query=e.target.value;break}}_scrollOptionListToActive(){const e=this.shadowRoot.querySelector(".option-list"),t=this.shadowRoot.querySelector("button.active");if(e&&t){const i=t.offsetTop,o=t.offsetTop+t.clientHeight,a=e.scrollTop,r=e.scrollTop+e.clientHeight;o>r?e.scrollTo({top:o-e.clientHeight,behavior:"smooth"}):i-1&&(this.activeIndex+1>this.filteredOptions.length?this._select(this.query):this._select(this.filteredOptions[this.activeIndex].id))}_clickOption(e){e.target&&e.target.value&&this._select(e.target.value)}_clickAddNew(e){var t;e.target&&this._select((t=e.target.dataset)==null?void 0:t.label)}_clearSearch(){const e=this.shadowRoot.querySelector("input");e&&(e.value="")}_listHighlightNext(){this.allowAdd?this.activeIndex=Math.min(this.filteredOptions.length,this.activeIndex+1):this.activeIndex=Math.min(this.filteredOptions.length-1,this.activeIndex+1)}_listHighlightPrevious(){this.activeIndex=Math.max(0,this.activeIndex-1)}_renderOption(e,t){return p` -
  • - -
  • - `}_baseRenderOptions(){return this.filteredOptions.length?pe(this.filteredOptions,e=>e.id,(e,t)=>this._renderOption(e,t)):this.loading?p`
  • ${R("Loading options...")}
  • `:p`
  • ${R("No Data Available")}
  • `}_renderOptions(){let e=this._baseRenderOptions();return this.allowAdd&&this.query&&(Array.isArray(e)||(e=[e]),e.push(p`
  • - -
  • `)),e}};class Ze extends za(P){static get styles(){return[...super.styles,$` + */const co=(s,e,t)=>{const i=new Map;for(let o=e;o<=t;o++)i.set(s[o],o);return i},H=ut(class extends ht{constructor(s){if(super(s),s.type!==ct.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);const o=[],a=[];let r=0;for(const n of s)o[r]=i?i(n,r):r,a[r]=t(n,r),r++;return{values:a,keys:o}}render(s,e,t){return this.dt(s,e,t).values}update(s,[e,t,i]){const o=Fa(s),{values:a,keys:r}=this.dt(e,t,i);if(!Array.isArray(o))return this.ut=r,a;const n=this.ut??(this.ut=[]),l=[];let d,u,p=0,g=o.length-1,y=0,_=a.length-1;for(;p<=g&&y<=_;)if(o[p]===null)p++;else if(o[g]===null)g--;else if(n[p]===r[y])l[y]=de(o[p],a[y]),p++,y++;else if(n[g]===r[_])l[_]=de(o[g],a[_]),g--,_--;else if(n[p]===r[_])l[_]=de(o[p],a[_]),Oe(s,l[_+1],o[p]),p++,_--;else if(n[g]===r[y])l[y]=de(o[g],a[y]),Oe(s,o[p],o[g]),g--,y++;else if(d===void 0&&(d=co(r,y,_),u=co(n,p,g)),d.has(n[p]))if(d.has(n[g])){const T=u.get(r[y]),z=T!==void 0?o[T]:null;if(z===null){const M=Oe(s,o[p]);de(M,a[y]),l[y]=M}else l[y]=de(z,a[y]),Oe(s,o[p],z),o[T]=null;y++}else Mt(o[g]),g--;else Mt(o[p]),p++;for(;y<=_;){const T=Oe(s,l[_+1]);de(T,a[y]),l[y++]=T}for(;p<=g;){const T=o[p++];T!==null&&Mt(T)}return this.ut=r,ja(s,l),V}}),za=s=>class extends s{constructor(){super(),this.activeIndex=-1,this.filteredOptions=[],this.detectTap=!1}static get properties(){return{...super.properties,value:{type:Array,reflect:!0},query:{type:String,state:!0},options:{type:Array},filteredOptions:{type:Array,state:!0},open:{type:Boolean,state:!0},canUpdate:{type:Boolean,state:!0},activeIndex:{type:Number,state:!0},containerHeight:{type:Number,state:!0},loading:{type:Boolean},showAbove:{type:Boolean,state:!0}}}willUpdate(e){if(super.willUpdate(e),e&&!this.containerHeight&&this.shadowRoot.children&&this.shadowRoot.children.length){const t=this.shadowRoot.querySelector(".input-group");t&&(this.containerHeight=t.offsetHeight)}}updated(e){super.updated&&super.updated(e),this._scrollOptionListToActive();const t=this.shadowRoot.querySelector(".input-group");t&&!t.style.getPropertyValue("--container-width")&&t.clientWidth>0&&t.style.setProperty("--container-width",`${t.clientWidth}px`),e&&e.has("open")&&this.open&&this._checkPosition()}_checkPosition(){const e=this.shadowRoot.querySelector(".input-group");if(e){const t=e.getBoundingClientRect(),o=window.innerHeight-t.bottom,a=t.top;o<150&&a>o?this.showAbove=!0:this.showAbove=!1}}get optionListStyles(){const e={display:this.open?"block":"none"};return this.showAbove?(e.bottom=this.containerHeight?`${this.containerHeight}px`:"2.5rem",e.top="auto"):(e.top=this.containerHeight?`${this.containerHeight}px`:"2.5rem",e.bottom="auto"),e}_select(){console.error("Must implement `_select(value)` function"),this._clearSearch()}static _focusInput(e){e.target===e.currentTarget&&e.target.getElementsByTagName("input")[0].focus()}_inputFocusIn(e){(!e.relatedTarget||!["BUTTON","LI"].includes(e.relatedTarget.nodeName))&&(this.open=!0,this.activeIndex=-1)}_inputFocusOut(e){(!e.relatedTarget||!["BUTTON","LI"].includes(e.relatedTarget.nodeName))&&(this.open=!1,this.canUpdate=!0)}_inputKeyDown(e){}_inputKeyUp(e){switch(e.keyCode||e.which){case 38:this.open=!0,this._listHighlightPrevious();break;case 40:this.open=!0,this._listHighlightNext();break;case 9:this.activeIndex<0?this.open=!1:e.preventDefault(),this._keyboardSelectOption();break;case 13:this._keyboardSelectOption();break;case 27:this.open=!1,this.activeIndex=-1;break;default:this.open=!0,this.query=e.target.value;break}}_scrollOptionListToActive(){const e=this.shadowRoot.querySelector(".option-list"),t=this.shadowRoot.querySelector("button.active");if(e&&t){const i=t.offsetTop,o=t.offsetTop+t.clientHeight,a=e.scrollTop,r=e.scrollTop+e.clientHeight;o>r?e.scrollTo({top:o-e.clientHeight,behavior:"smooth"}):i-1&&(this.activeIndex+1>this.filteredOptions.length?this._select(this.query):this._select(this.filteredOptions[this.activeIndex].id))}_clickOption(e){e.target&&e.target.value&&this._select(e.target.value)}_clickAddNew(e){var t;e.target&&this._select((t=e.target.dataset)==null?void 0:t.label)}_clearSearch(){const e=this.shadowRoot.querySelector("input");e&&(e.value="")}_listHighlightNext(){this.allowAdd?this.activeIndex=Math.min(this.filteredOptions.length,this.activeIndex+1):this.activeIndex=Math.min(this.filteredOptions.length-1,this.activeIndex+1)}_listHighlightPrevious(){this.activeIndex=Math.max(0,this.activeIndex-1)}_renderOption(e,t){return h` +
  • + +
  • + `}_baseRenderOptions(){return this.filteredOptions.length?H(this.filteredOptions,e=>e.id,(e,t)=>this._renderOption(e,t)):this.loading?h`
  • ${R("Loading options...")}
  • `:h`
  • ${R("No Data Available")}
  • `}_renderOptions(){let e=this._baseRenderOptions();return this.allowAdd&&this.query&&(Array.isArray(e)||(e=[e]),e.push(h`
  • + +
  • `)),e}};class Ze extends za(P){static get styles(){return[...super.styles,$` :host { position: relative; font-family: var(--font-family, Helvetica, Arial, sans-serif); @@ -791,7 +791,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn var(--dt-form-border-color-alert, var(--alert-color)) ); } - `]}static get properties(){return{...super.properties,placeholder:{type:String},containerHeight:{type:Number,state:!0}}}_select(e){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});if(this.value&&this.value.length)if(typeof this.value[0]=="string")this.value=[...this.value.filter(o=>o!==`-${e}`),e];else{let o=!1;const a=this.value.map(r=>{const n={...r};return r.id===e.id&&r.delete&&(delete n.delete,o=!0),n});o||a.push(e),this.value=a}else this.value=[e];i.detail.newValue=this.value,this.open=!1,this.activeIndex=-1,this.canUpdate=!0,this.dispatchEvent(i),this._setFormValue(this.value),this.query&&(this.query=""),this._clearSearch()}_remove(e){if(e.stopPropagation(),e.target&&e.target.dataset&&e.target.dataset.value){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});this.value=(this.value||[]).map(o=>o===e.target.dataset.value?`-${o}`:o),i.detail.newValue=this.value,this.dispatchEvent(i),this._setFormValue(this.value),this.open&&this.shadowRoot.querySelector("input").focus()}document.activeElement.blur()}updated(){super.updated(),this._updateContainerHeight()}_updateContainerHeight(){const e=this.shadowRoot.querySelector(".field-container");if(e){const t=e.offsetHeight;this.containerHeight!==t&&(this.containerHeight=t,this.requestUpdate())}}_filterOptions(){return this.filteredOptions=(this.options||[]).filter(e=>!(this.value||[]).includes(e.id)&&(!this.query||e.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase()))),this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e){const t=e.has("value"),i=e.has("query"),o=e.has("options");(t||i||o)&&this._filterOptions()}}_handleDivClick(){const e=this.renderRoot.querySelector("input");e&&e.focus()}_handleItemClick(e){e.stopPropagation(),document.activeElement.blur()}_renderSelectedOptions(){return this.options&&this.value&&this.value.filter(e=>e.charAt(0)!=="-").map(e=>p` + `]}static get properties(){return{...super.properties,placeholder:{type:String},containerHeight:{type:Number,state:!0}}}_select(e){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});if(this.value&&this.value.length)if(typeof this.value[0]=="string")this.value=[...this.value.filter(o=>o!==`-${e}`),e];else{let o=!1;const a=this.value.map(r=>{const n={...r};return r.id===e.id&&r.delete&&(delete n.delete,o=!0),n});o||a.push(e),this.value=a}else this.value=[e];i.detail.newValue=this.value,this.open=!1,this.activeIndex=-1,this.canUpdate=!0,this.dispatchEvent(i),this._setFormValue(this.value),this.query&&(this.query=""),this._clearSearch()}_remove(e){if(e.stopPropagation(),e.target&&e.target.dataset&&e.target.dataset.value){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});this.value=(this.value||[]).map(o=>o===e.target.dataset.value?`-${o}`:o),i.detail.newValue=this.value,this.dispatchEvent(i),this._setFormValue(this.value),this.open&&this.shadowRoot.querySelector("input").focus()}document.activeElement.blur()}updated(e){super.updated(e),this._updateContainerHeight()}_updateContainerHeight(){const e=this.shadowRoot.querySelector(".field-container");if(e){const t=e.offsetHeight;this.containerHeight!==t&&(this.containerHeight=t,this.requestUpdate())}}_filterOptions(){return this.filteredOptions=(this.options||[]).filter(e=>!(this.value||[]).includes(e.id)&&(!this.query||e.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase()))),this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e){const t=e.has("value"),i=e.has("query"),o=e.has("options");(t||i||o)&&this._filterOptions()}}_handleDivClick(){const e=this.renderRoot.querySelector("input");e&&e.focus()}_handleItemClick(e){e.stopPropagation(),document.activeElement.blur()}_renderSelectedOptions(){return this.options&&this.value&&this.value.filter(e=>e.charAt(0)!=="-").map(e=>h`
    - `)}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"field-container":!0,invalid:this.touched&&this.invalid}}render(){const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"};return p` + `)}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"field-container":!0,invalid:this.touched&&this.invalid}}render(){const e=this.optionListStyles;return h` ${this.labelTemplate()}
      ${this._renderOptions()} @@ -850,7 +850,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn ${this.renderIcons()}
    - `}}window.customElements.define("dt-multi-select",Ze);class Fa extends N{static get styles(){return $` + `}}window.customElements.define("dt-multi-select",Ze);class Da extends N{static get styles(){return $` root { display: block; } @@ -879,16 +879,16 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn } } } - `}static get properties(){return{key:{type:String},metric:{type:Object},active:{type:Boolean,reflect:!0},disabled:{type:Boolean},missingIcon:{type:String}}}renderIcon(){var o;const e=(o=window==null?void 0:window.wpApiShare)==null?void 0:o.template_dir,{metric:t,missingIcon:i=`${e}/dt-assets/images/groups/missing.svg`}=this;if(t["font-icon"]){const a=t["font-icon"].replace("mdi mdi-","mdi:");return p``}return p``}return h`${t}`}render(){const{metric:e,active:t,disabled:i}=this;return p`
    `}render(){const{metric:e,active:t,disabled:i}=this;return h`
    ${this.renderIcon()} -
    `}async _handleClick(e){if(this.disabled)return;const t=!this.active;this.active=t;const i=new CustomEvent("change",{detail:{key:this.key,active:t}});this.dispatchEvent(i)}}window.customElements.define("dt-church-health-icon",Fa);class co extends P{static get styles(){return[...super.styles,$` +
    `}async _handleClick(e){if(this.disabled)return;const t=!this.active;this.active=t;const i=new CustomEvent("change",{detail:{key:this.key,active:t}});this.dispatchEvent(i)}}window.customElements.define("dt-church-health-icon",Da);class uo extends P{static get styles(){return[...super.styles,$` .root { display: block; } @@ -1027,7 +1027,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn font-size: 0.65em; color: var(--dt-toggle-icon-color-on, var(--success-color)); } - `]}static get properties(){return{...super.properties,id:{type:String},checked:{type:Boolean,reflect:!0},icons:{type:Boolean,default:!1}}}constructor(){super(),this.icons=!1}firstUpdated(){super.firstUpdated(),this.checked===void 0&&(this.checked=!1);const e=this.checked?"1":"0";this._setFormValue(e),this.value=this.checked}onChange(e){const t=e.target.checked,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.checked,newValue:t}});this.checked=t,this.value=t,this._setFormValue(this.checked?"1":"0"),this.dispatchEvent(i)}onClickToggle(e){e.preventDefault(),e.target.closest("label").querySelector("input").click()}render(){const e=p``,t=p``;return p` + `]}static get properties(){return{...super.properties,id:{type:String},checked:{type:Boolean,reflect:!0},icons:{type:Boolean,default:!1}}}constructor(){super(),this.icons=!1}firstUpdated(){super.firstUpdated(),this.checked===void 0&&(this.checked=!1);const e=this.checked?"1":"0";this._setFormValue(e),this.value=this.checked}onChange(e){const t=e.target.checked,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.checked,newValue:t}});this.checked=t,this.value=t,this._setFormValue(this.checked?"1":"0"),this.dispatchEvent(i)}onClickToggle(e){e.preventDefault(),e.target.closest("label").querySelector("input").click()}render(){const e=h``,t=h``;return h`
    ${this.labelTemplate()} @@ -1048,13 +1048,13 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn ?disabled=${this.disabled} /> - ${this.icons?p` ${e} ${t} `:p``} + ${this.icons?h` ${e} ${t} `:h``} ${this.renderIcons()}
    - `}}window.customElements.define("dt-toggle",co);class uo extends Ze{static get styles(){return[...super.styles,$` + `}}window.customElements.define("dt-toggle",uo);class ho extends Ze{static get styles(){return[...super.styles,$` .health-circle__container { --icon-count: 9; /* Updated circle size based on dynamic width */ @@ -1144,7 +1144,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn .error-container { margin-block-start: 0.5rem; } - `]}static get properties(){const e={...super.properties,missingIcon:{type:String}};return delete e.placeholder,delete e.containerHeight,e}_filterOptions(){const e=this.options||[];if(!Object.values(e).length)return[];const t=Object.entries(e);return this.filteredOptions=t.filter(([i,o])=>i!=="church_commitment"),this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e){const t=e.has("value"),i=e.has("options");(t||i)&&this._filterOptions()}}get isCommited(){return this.value?this.value.includes("church_commitment"):!1}render(){var e,t;return p` + `]}static get properties(){const e={...super.properties,missingIcon:{type:String}};return delete e.placeholder,delete e.containerHeight,e}_filterOptions(){const e=this.options||[];if(!Object.values(e).length)return[];const t=Object.entries(e);return this.filteredOptions=t.filter(([i,o])=>i!=="church_commitment"),this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e){const t=e.has("value"),i=e.has("options");(t||i)&&this._filterOptions()}}get isCommited(){return this.value?this.value.includes("church_commitment"):!1}render(){var e,t;return h`
    - ${this.filteredOptions.map(([i,o],a)=>p`h` ${this.renderError()}
    - `}handleIconClick(e){const{key:t,active:i}=e.detail;i?this._select(t):this._remove(e)}async handleToggleChange(e){const{field:t,newValue:i}=e.detail;i?this._select(t):this._remove(e)}}window.customElements.define("dt-church-health-circle",uo);class Ce extends Ze{static get properties(){return{...super.properties,postType:{type:String,reflect:!1},allowAdd:{type:Boolean}}}static get styles(){return[...super.styles,$` + `}handleIconClick(e){const{key:t,active:i}=e.detail;i?this._select(t):this._remove(e)}async handleToggleChange(e){const{field:t,newValue:i}=e.detail;i?this._select(t):this._remove(e)}}window.customElements.define("dt-church-health-circle",ho);class Ce extends Ze{static get properties(){return{...super.properties,postType:{type:String,reflect:!1},allowAdd:{type:Boolean}}}static get styles(){return[...super.styles,$` .selected-option a, .selected-option a:active, .selected-option a:visited { @@ -1253,7 +1253,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn .input-group.allowAdd .icon-overlay { inset-inline-end: 3rem; } - `]}_addRecord(){const e=new CustomEvent("dt:add-new",{detail:{field:this.name,value:this.query}});this.dispatchEvent(e)}willUpdate(e){super.willUpdate(e),e&&e.has("open")&&this.open&&(!this.filteredOptions||!this.filteredOptions.length)&&this._filterOptions()}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.startsWith("-"));if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.id.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1;let r=a;r.length&&typeof r[0]=="string"&&(r=r.map(n=>({id:n}))),i.allOptions=r,i.filteredOptions=r.filter(n=>!e.includes(n.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_renderOption(e,t){return p` + `]}_addRecord(){const e=new CustomEvent("dt:add-new",{detail:{field:this.name,value:this.query}});this.dispatchEvent(e)}willUpdate(e){super.willUpdate(e),e&&e.has("open")&&this.open&&(!this.filteredOptions||!this.filteredOptions.length)&&this._filterOptions()}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.startsWith("-"));if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.id.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1;let r=a;r.length&&typeof r[0]=="string"&&(r=r.map(n=>({id:n}))),i.allOptions=r,i.filteredOptions=r.filter(n=>!e.includes(n.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_renderOption(e,t){return h`
  • - `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||typeof t=="string"&&t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}_renderSelectedOptions(){const e=this.options||this.allOptions;return(this.value||[]).filter(t=>!t.startsWith("-")).map(t=>{var a;let i=t;if(e){const r=e.filter(n=>n===t||n.id===t);r.length&&(i=r[0].label||r[0].id||t)}let o;if(!o&&((a=window==null?void 0:window.SHAREDFUNCTIONS)!=null&&a.createCustomFilter)){const r=window.SHAREDFUNCTIONS.createCustomFilter(this.name,[t]),n=this.label||this.name,l=[{id:`${this.name}_${t}`,name:`${n}: ${t}`}];o=window.SHAREDFUNCTIONS.create_url_for_list_query(this.postType,r,l)}return p` + `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||typeof t=="string"&&t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}_renderSelectedOptions(){const e=this.options||this.allOptions;return(this.value||[]).filter(t=>!t.startsWith("-")).map(t=>{var a;let i=t;if(e){const r=e.filter(n=>n===t||n.id===t);r.length&&(i=r[0].label||r[0].id||t)}let o;if(!o&&((a=window==null?void 0:window.SHAREDFUNCTIONS)!=null&&a.createCustomFilter)){const r=window.SHAREDFUNCTIONS.createCustomFilter(this.name,[t]),n=this.label||this.name,l=[{id:`${this.name}_${t}`,name:`${n}: ${t}`}];o=window.SHAREDFUNCTIONS.create_url_for_list_query(this.postType,r,l)}return h`
    - `})}render(){const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"};return p` + `})}render(){const e=this.optionListStyles;return h` ${this.labelTemplate()}
    - ${this.allowAdd?p``:null} -
      +
        ${this._renderOptions()}
      ${this.renderIcons()}
    - `}}window.customElements.define("dt-tags",Ce);class ho extends Ce{static get styles(){return[...super.styles,$` + `}}window.customElements.define("dt-tags",Ce);class po extends Ce{static get styles(){return[...super.styles,$` .selected-option a { border-inline-start: solid 3px transparent; } @@ -1358,7 +1358,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn .invalid { border-color: var(--dt-form-border-color-alert, var(--alert-color)); } - `]}_clickOption(e){if(e.target&&e.target.value){const t=parseInt(e.target.value,10),i=this.filteredOptions.reduce((o,a)=>!o&&a.id==t?a:o,null);i&&this._select(i)}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]))}_remove(e){if(e.stopPropagation(),e.target&&e.target.dataset&&e.target.dataset.value){let t=e.target.dataset.value;const i=Number.parseInt(t);Number.isNaN(i)||(t=i);const o=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=(this.value||[]).map(a=>{const r={...a};return a.id===t&&(r.delete=!0),r}),o.detail.newValue=this.value,this.dispatchEvent(o),this.open&&this.shadowRoot.querySelector("input").focus(),this._validateRequired()}document.activeElement.blur()}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>i==null?void 0:i.id);if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1,i.filteredOptions=a.filter(r=>!e.includes(r.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.delete))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>p` + `]}_clickOption(e){if(e.target&&e.target.value){const t=parseInt(e.target.value,10),i=this.filteredOptions.reduce((o,a)=>!o&&a.id==t?a:o,null);i&&this._select(i)}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]))}_remove(e){if(e.stopPropagation(),e.target&&e.target.dataset&&e.target.dataset.value){let t=e.target.dataset.value;const i=Number.parseInt(t);Number.isNaN(i)||(t=i);const o=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=(this.value||[]).map(a=>{const r={...a};return a.id===t&&(r.delete=!0),r}),o.detail.newValue=this.value,this.dispatchEvent(o),this.open&&this.shadowRoot.querySelector("input").focus(),this._validateRequired()}document.activeElement.blur()}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>i==null?void 0:i.id);if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1,i.filteredOptions=a.filter(r=>!e.includes(r.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.delete))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>h`
    - `)}_renderOption(e,t){const i=p`circle-08 2Created using Figma`,o=e.status||{label:"",color:""};return p` + `)}_renderOption(e,t){const i=h`circle-08 2Created using Figma`,o=e.status||{label:"",color:""};return h`
  • - `}render(){const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"};return p` + `}render(){const e=this.optionListStyles;return h` ${this.labelTemplate()}
    - ${this.allowAdd?p``:null} -
      +
        ${this._renderOptions()}
      ${this.renderIcons()}
    - `}}window.customElements.define("dt-connection",ho);class po extends Ce{static get styles(){return[...super.styles,$` + `}}window.customElements.define("dt-connection",po);class fo extends Ce{static get styles(){return[...super.styles,$` .selected-option a { border-inline-start: solid 3px transparent; } @@ -1472,7 +1472,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn li button svg use { fill: var(--dt-users-connection-icon-fill, var(--primary-color)); } - `]}static get properties(){return{...super.properties,single:{type:Boolean}}}_select(e){const t=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value}});if(this.value&&this.value.length){let i=!1,o=this.value.map(a=>{const r={...a};return a.id===e.id&&a.delete?(delete r.delete,i=!0):this.single&&!a.delete&&(r.delete=!0),r});i||o.push(e),this.single&&(o=o.filter(a=>!a.delete)),this.value=o}else this.value=[e];t.detail.newValue=this.value,this.open=!1,this.activeIndex=-1,this.canUpdate=!0,this.dispatchEvent(t),this._clearSearch()}_clickOption(e){if(e.target&&e.target.value){const t=parseInt(e.target.value,10),i=this.filteredOptions.reduce((o,a)=>!o&&a.id==t?a:o,null);i&&this._select(i),this.query=""}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="",this.query="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]),this.query="")}_remove(e){if(e.target&&e.target.dataset&&e.target.dataset.value){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value,remove:!0}});this.value=(this.value||[]).map(i=>{const o={...i};return i.id.toString()===e.target.dataset.value&&(o.delete=!0),o}),t.detail.newValue=this.value,this.dispatchEvent(t),this.open&&this.shadowRoot.querySelector("input").focus()}}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>Number(i==null?void 0:i.id));if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1,i.filteredOptions=a.filter(r=>!e.includes(r.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>p` + `]}static get properties(){return{...super.properties,single:{type:Boolean}}}_select(e){const t=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value}});if(this.value&&this.value.length){let i=!1,o=this.value.map(a=>{const r={...a};return a.id===e.id&&a.delete?(delete r.delete,i=!0):this.single&&!a.delete&&(r.delete=!0),r});i||o.push(e),this.single&&(o=o.filter(a=>!a.delete)),this.value=o}else this.value=[e];t.detail.newValue=this.value,this.open=!1,this.activeIndex=-1,this.canUpdate=!0,this.dispatchEvent(t),this._clearSearch()}_clickOption(e){if(e.target&&e.target.value){const t=parseInt(e.target.value,10),i=this.filteredOptions.reduce((o,a)=>!o&&a.id==t?a:o,null);i&&this._select(i),this.query=""}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="",this.query="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]),this.query="")}_remove(e){if(e.target&&e.target.dataset&&e.target.dataset.value){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value,remove:!0}});this.value=(this.value||[]).map(i=>{const o={...i};return i.id.toString()===e.target.dataset.value&&(o.delete=!0),o}),t.detail.newValue=this.value,this.dispatchEvent(t),this.open&&this.shadowRoot.querySelector("input").focus()}}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>Number(i==null?void 0:i.id));if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1,i.filteredOptions=a.filter(r=>!e.includes(r.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>h` - `)}_renderOption(e,t){const i=e.avatar?p`${e.label}`:p``;return p` + />`:h``;return h`
  • - `}}window.customElements.define("dt-users-connection",po);class fo extends N{static get styles(){return $` + `}}window.customElements.define("dt-users-connection",fo);class bo extends N{static get styles(){return $` :root { font-size: inherit; --dt-copy-text-color: #575757; @@ -1538,8 +1538,8 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn :host([dir='rtl']) .copy_icon { transform: translate(1.5em, -0.3125em); } - `}static get properties(){return{value:{type:String},success:{type:Boolean},error:{type:Boolean}}}get inputStyles(){return this.success?{"--dt-text-border-color":"var(--copy-text-success-color, var(--success-color))","--dt-form-text-color":"var( --copy-text-success-color, var(--success-color))",color:"var( --copy-text-success-color, var(--success-color))"}:this.error?{"---dt-text-border-color":"var(--copy-text-alert-color, var(--alert-color))","--dt-form-text-color":"var(--copy-text-alert-color, var(--alert-color))"}:{}}get icon(){return this.success?"ic:round-check":"ic:round-content-copy"}async copy(){try{this.success=!1,this.error=!1,await navigator.clipboard.writeText(this.value),this.success=!0,this.error=!1}catch(e){console.log(e),this.success=!1,this.error=!0}}render(){return p` -
    + `}static get properties(){return{value:{type:String},success:{type:Boolean},error:{type:Boolean}}}get inputStyles(){return this.success?{"--dt-text-border-color":"var(--copy-text-success-color, var(--success-color))","--dt-form-text-color":"var( --copy-text-success-color, var(--success-color))",color:"var( --copy-text-success-color, var(--success-color))"}:this.error?{"---dt-text-border-color":"var(--copy-text-alert-color, var(--alert-color))","--dt-form-text-color":"var(--copy-text-alert-color, var(--alert-color))"}:{}}get icon(){return this.success?"ic:round-check":"ic:round-content-copy"}async copy(){try{this.success=!1,this.error=!1,await navigator.clipboard.writeText(this.value),this.success=!0,this.error=!1}catch(e){console.log(e),this.success=!1,this.error=!0}}render(){return h` +
    - `}}window.customElements.define("dt-copy-text",fo);class jt extends P{static get styles(){return[...super.styles,$` + `}}window.customElements.define("dt-copy-text",bo);class jt extends P{static get styles(){return[...super.styles,$` input { color: var(--dt-date-text-color, var(--dt-form-text-color, #000)); appearance: none; @@ -1675,7 +1675,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn .icon-overlay { inset-inline-end: 5rem; } - `]}static get properties(){return{...super.properties,value:{type:String,reflect:!0},timestamp:{converter:e=>{let t=Number(e);if(t<1e12&&(t*=1e3),t)return t},reflect:!0}}}updateTimestamp(e){const t=e?new Date(e).getTime():0,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value,newValue:e}});this.timestamp=t,this.value=e,this._setFormValue(e),this.dispatchEvent(i)}_change(e){this.updateTimestamp(e.target.value)}clearInput(){this.updateTimestamp("")}showDatePicker(){this.shadowRoot.querySelector("input").showPicker()}_validateRequired(){const{value:e}=this;this.required&&!e?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid,disabled:this.disabled}}get fieldContainerClasses(){return{"field-container":!0,invalid:this.touched&&this.invalid}}render(){return this.timestamp?this.value=new Date(this.timestamp).toISOString().substring(0,10):this.value&&(this.timestamp=new Date(this.value).getTime()),p` + `]}static get properties(){return{...super.properties,value:{type:String,reflect:!0},timestamp:{converter:e=>{let t=Number(e);if(t<1e12&&(t*=1e3),t)return t},reflect:!0}}}updateTimestamp(e){const t=e?new Date(e).getTime():0,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value,newValue:e}});this.timestamp=t,this.value=e,this._setFormValue(e),this.dispatchEvent(i)}_change(e){this.updateTimestamp(e.target.value)}clearInput(){this.updateTimestamp("")}showDatePicker(){this.shadowRoot.querySelector("input").showPicker()}_validateRequired(){const{value:e}=this;this.required&&!e?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid,disabled:this.disabled}}get fieldContainerClasses(){return{"field-container":!0,invalid:this.touched&&this.invalid}}render(){return this.timestamp?this.value=new Date(this.timestamp).toISOString().substring(0,10):this.value&&(this.timestamp=new Date(this.value).getTime()),h` ${this.labelTemplate()}
    @@ -1709,11 +1709,11 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn ${this.renderIcons()}
    - `}reset(){this.updateTimestamp(""),super.reset()}}window.customElements.define("dt-date",jt);class bo extends jt{static get styles(){return[...super.styles,$` + `}reset(){this.updateTimestamp(""),super.reset()}}window.customElements.define("dt-date",jt);class mo extends jt{static get styles(){return[...super.styles,$` input[type='datetime-local'] { max-width: calc(100% - 22px - 1rem); } - `]}static get properties(){return{...super.properties,tzoffset:{type:Number}}}constructor(){super(),this.tzoffset=new Date().getTimezoneOffset()*6e4}render(){return this.timestamp?this.value=new Date(this.timestamp-this.tzoffset).toISOString().substring(0,16):this.value&&(this.timestamp=new Date(this.value).getTime()),p` + `]}static get properties(){return{...super.properties,tzoffset:{type:Number}}}constructor(){super(),this.tzoffset=new Date().getTimezoneOffset()*6e4}render(){return this.timestamp?this.value=new Date(this.timestamp-this.tzoffset).toISOString().substring(0,16):this.value&&(this.timestamp=new Date(this.value).getTime()),h` ${this.labelTemplate()}
    @@ -1747,11 +1747,11 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn ${this.renderIcons()}
    - `}}window.customElements.define("dt-datetime",bo);/** + `}}window.customElements.define("dt-datetime",mo);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function*Da(s,e){if(s!==void 0){let t=0;for(const i of s)yield e(i,t++)}}class mo extends Ce{static get properties(){return{...super.properties,filters:{type:Array}}}static get styles(){return[...super.styles,$` + */function*Ra(s,e){if(s!==void 0){let t=0;for(const i of s)yield e(i,t++)}}class go extends Ce{static get properties(){return{...super.properties,filters:{type:Array}}}static get styles(){return[...super.styles,$` .input-group { display: flex; } @@ -1772,7 +1772,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn 8px ); } - `]}_clickOption(e){if(e.target&&e.target.value){const t=e.target.value,i=this.filteredOptions.reduce((o,a)=>!o&&a.id===t?a:o,null);this._select(i)}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]))}_remove(e){if(e.target&&e.target.dataset&&e.target.dataset.value){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=(this.value||[]).map(i=>{const o={...i};return i.id.toString()===e.target.dataset.value&&(o.delete=!0),o}),t.detail.newValue=this.value,this.dispatchEvent(t),this.open&&this.shadowRoot.querySelector("input").focus()}}updated(){super.updated();const e=this.shadowRoot.querySelector(".input-group"),t=e.style.getPropertyValue("--select-width"),i=this.shadowRoot.querySelector("select");!t&&(i==null?void 0:i.clientWidth)>0&&e.style.setProperty("--select-width",`${i.clientWidth}px`)}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>i==null?void 0:i.id.toString());if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=this.shadowRoot.querySelector("select"),a=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,query:this.query,filter:o==null?void 0:o.value,onSuccess:r=>{i.loading=!1,i.filteredOptions=r.filter(n=>!e.includes(n.id))},onError:r=>{console.warn(r),i.loading=!1}}});this.dispatchEvent(a)}return this.filteredOptions}_renderOption(e,t){return p` + `]}_clickOption(e){if(e.target&&e.target.value){const t=e.target.value,i=this.filteredOptions.reduce((o,a)=>!o&&a.id===t?a:o,null);this._select(i)}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]))}_remove(e){if(e.target&&e.target.dataset&&e.target.dataset.value){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=(this.value||[]).map(i=>{const o={...i};return i.id.toString()===e.target.dataset.value&&(o.delete=!0),o}),t.detail.newValue=this.value,this.dispatchEvent(t),this.open&&this.shadowRoot.querySelector("input").focus()}}updated(e){super.updated(e);const t=this.shadowRoot.querySelector(".input-group"),i=t.style.getPropertyValue("--select-width"),o=this.shadowRoot.querySelector("select");!i&&(o==null?void 0:o.clientWidth)>0&&t.style.setProperty("--select-width",`${o.clientWidth}px`)}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>i==null?void 0:i.id.toString());if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=this.shadowRoot.querySelector("select"),a=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,query:this.query,filter:o==null?void 0:o.value,onSuccess:r=>{i.loading=!1,i.filteredOptions=r.filter(n=>!e.includes(n.id))},onError:r=>{console.warn(r),i.loading=!1}}});this.dispatchEvent(a)}return this.filteredOptions}_renderOption(e,t){return h`
  • - `}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>p` + `}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>h`
    - `)}render(){const e={display:this.open?"block":"none",top:`${this.containerHeight}px`};return p` + `)}render(){const e=this.optionListStyles;return h` ${this.labelTemplate()}
    @@ -1831,14 +1831,14 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn ?disabled="${this.disabled}" @change="${this._filterOptions}" > - ${Da(this.filters,t=>p``)} + ${Ra(this.filters,t=>h``)} -
      +
        ${this._renderOptions()}
      ${this.renderIconInvalid()} ${this.renderError()}
    - `}}window.customElements.define("dt-location",mo);class Ra{constructor(e){this.token=e}async searchPlaces(e,t="en"){const i=new URLSearchParams({types:["country","region","postcode","district","place","locality","neighborhood","address"],limit:6,access_token:this.token,language:t}),o={method:"GET",headers:{"Content-Type":"application/json"}},a=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(e)}.json?${i}`,n=await(await fetch(a,o)).json();return n==null?void 0:n.features}async reverseGeocode(e,t,i="en"){const o=new URLSearchParams({types:["country","region","postcode","district","place","locality","neighborhood","address"],access_token:this.token,language:i}),a={method:"GET",headers:{"Content-Type":"application/json"}},r=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(e)},${encodeURI(t)}.json?${o}`,l=await(await fetch(r,a)).json();return l==null?void 0:l.features}}class Na{constructor(e,t,i){var o,a,r;if(this.token=e,this.window=t,!((r=(a=(o=t.google)==null?void 0:o.maps)==null?void 0:a.places)!=null&&r.AutocompleteService)){const n=i.createElement("script");n.src=`https://maps.googleapis.com/maps/api/js?libraries=places&key=${e}`,i.body.appendChild(n)}}async getPlacePredictions(e,t="en"){try{return await this._getPlacePredictionsLegacy(e,t)}catch(i){const o=await this._getPlaceSuggestionsRest(e,t);if(o)return o;throw{message:i}}}async _getPlacePredictionsLegacy(e,t="en"){return this.window.google?new Promise((i,o)=>{const a=new this.window.google.maps.places.AutocompleteService;window.gm_authFailure=function(){o("Google Maps API Key authentication failed")},a.getPlacePredictions({input:e,language:t},(r,n)=>{n!=="OK"?o(n):i(r)})}):null}async _getPlaceSuggestionsRest(e,t="en"){const i="https://places.googleapis.com/v1/places:autocomplete?key="+encodeURIComponent(this.token),a=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e})}),r=await a.json();if(!a.ok&&r.error)throw r.error;return(Array.isArray(r&&r.suggestions)?r.suggestions:[]).map(u=>u&&u.placePrediction?u.placePrediction:null).filter(Boolean).map(u=>{const h=u.placeId||(u.place?String(u.place).replace("places/",""):null),g=u.text&&u.text.text||[u.structuredFormat&&u.structuredFormat.mainText&&u.structuredFormat.mainText.text,u.structuredFormat&&u.structuredFormat.secondaryText&&u.structuredFormat.secondaryText.text].filter(Boolean).join(", ");return h&&g?{description:g,place_id:h}:null}).filter(Boolean)}async getPlaceDetails(e,t="en"){let i=null;if(this.window.google){const o=new window.google.maps.Geocoder;try{const{results:a}=await o.geocode({placeId:e.place_id,language:t}),r=a[0];i={lng:r.geometry.location.lng(),lat:r.geometry.location.lat(),level:this.convert_level(r.types[0]),label:e.description||r.formatted_address}}catch(a){i={error:a}}}return i}async reverseGeocode(e,t,i="en"){const a=`https://maps.googleapis.com/maps/api/geocode/json?${new URLSearchParams({key:this.token,latlng:`${t},${e}`,language:i,result_type:["point_of_interest","establishment","premise","street_address","neighborhood","sublocality","locality","colloquial_area","political","country"].join("|")})}`,n=await(await fetch(a,{method:"GET"})).json();return n==null?void 0:n.results}convert_level(e){switch(e){case"administrative_area_level_0":e="admin0";break;case"administrative_area_level_1":e="admin1";break;case"administrative_area_level_2":e="admin2";break;case"administrative_area_level_3":e="admin3";break;case"administrative_area_level_4":e="admin4";break;case"administrative_area_level_5":e="admin5";break}return e}}class go extends N{static get styles(){return $` + `}}window.customElements.define("dt-location",go);class Na{constructor(e){this.token=e}async searchPlaces(e,t="en"){const i=new URLSearchParams({types:["country","region","postcode","district","place","locality","neighborhood","address"],limit:6,access_token:this.token,language:t}),o={method:"GET",headers:{"Content-Type":"application/json"}},a=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(e)}.json?${i}`,n=await(await fetch(a,o)).json();return n==null?void 0:n.features}async reverseGeocode(e,t,i="en"){const o=new URLSearchParams({types:["country","region","postcode","district","place","locality","neighborhood","address"],access_token:this.token,language:i}),a={method:"GET",headers:{"Content-Type":"application/json"}},r=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(e)},${encodeURI(t)}.json?${o}`,l=await(await fetch(r,a)).json();return l==null?void 0:l.features}}class qa{constructor(e,t,i){var o,a,r;if(this.token=e,this.window=t,!((r=(a=(o=t.google)==null?void 0:o.maps)==null?void 0:a.places)!=null&&r.AutocompleteService)){const n=i.createElement("script");n.src=`https://maps.googleapis.com/maps/api/js?libraries=places&key=${e}`,i.body.appendChild(n)}}async getPlacePredictions(e,t="en"){try{return await this._getPlacePredictionsLegacy(e,t)}catch(i){const o=await this._getPlaceSuggestionsRest(e,t);if(o)return o;throw{message:i}}}async _getPlacePredictionsLegacy(e,t="en"){return this.window.google?new Promise((i,o)=>{const a=new this.window.google.maps.places.AutocompleteService;window.gm_authFailure=function(){o("Google Maps API Key authentication failed")},a.getPlacePredictions({input:e,language:t},(r,n)=>{n!=="OK"?o(n):i(r)})}):null}async _getPlaceSuggestionsRest(e,t="en"){const i="https://places.googleapis.com/v1/places:autocomplete?key="+encodeURIComponent(this.token),a=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e})}),r=await a.json();if(!a.ok&&r.error)throw r.error;return(Array.isArray(r&&r.suggestions)?r.suggestions:[]).map(u=>u&&u.placePrediction?u.placePrediction:null).filter(Boolean).map(u=>{const p=u.placeId||(u.place?String(u.place).replace("places/",""):null),g=u.text&&u.text.text||[u.structuredFormat&&u.structuredFormat.mainText&&u.structuredFormat.mainText.text,u.structuredFormat&&u.structuredFormat.secondaryText&&u.structuredFormat.secondaryText.text].filter(Boolean).join(", ");return p&&g?{description:g,place_id:p}:null}).filter(Boolean)}async getPlaceDetails(e,t="en"){let i=null;if(this.window.google){const o=new window.google.maps.Geocoder;try{const{results:a}=await o.geocode({placeId:e.place_id,language:t}),r=a[0];i={lng:r.geometry.location.lng(),lat:r.geometry.location.lat(),level:this.convert_level(r.types[0]),label:e.description||r.formatted_address}}catch(a){i={error:a}}}return i}async reverseGeocode(e,t,i="en"){const a=`https://maps.googleapis.com/maps/api/geocode/json?${new URLSearchParams({key:this.token,latlng:`${t},${e}`,language:i,result_type:["point_of_interest","establishment","premise","street_address","neighborhood","sublocality","locality","colloquial_area","political","country"].join("|")})}`,n=await(await fetch(a,{method:"GET"})).json();return n==null?void 0:n.results}convert_level(e){switch(e){case"administrative_area_level_0":e="admin0";break;case"administrative_area_level_1":e="admin1";break;case"administrative_area_level_2":e="admin2";break;case"administrative_area_level_3":e="admin3";break;case"administrative_area_level_4":e="admin4";break;case"administrative_area_level_5":e="admin5";break}return e}}class vo extends N{static get styles(){return $` :host { display: block; font-family: var(--font-family); @@ -2056,12 +2056,12 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn /* Styles for the content inside the named slot */ font-size: 15px;; } - `}static get properties(){return{title:{type:String},context:{type:String},isHelp:{type:Boolean},isOpen:{type:Boolean},hideHeader:{type:Boolean},hideButton:{type:Boolean},buttonClass:{type:Object},buttonStyle:{type:Object},headerClass:{type:Object},imageSrc:{type:String},imageStyle:{type:Object},tileLabel:{type:String},buttonLabel:{type:String},dropdownListImg:{type:String},submitButton:{type:Boolean},closeButton:{type:Boolean},bottom:{type:Boolean}}}constructor(){super(),this.context="default",this.addEventListener("open",()=>this._openModal()),this.addEventListener("close",()=>this._closeModal())}_openModal(){this.isOpen=!0,this.shadowRoot.querySelector("dialog").showModal(),document.querySelector("body").style.overflow="hidden"}get formattedTitle(){if(!this.title)return"";const e=this.title.replace(/_/g," ");return e.charAt(0).toUpperCase()+e.slice(1)}_dialogHeader(e){return this.hideHeader?p``:p` + `}static get properties(){return{title:{type:String},context:{type:String},isHelp:{type:Boolean},isOpen:{type:Boolean},hideHeader:{type:Boolean},hideButton:{type:Boolean},buttonClass:{type:Object},buttonStyle:{type:Object},headerClass:{type:Object},imageSrc:{type:String},imageStyle:{type:Object},tileLabel:{type:String},buttonLabel:{type:String},dropdownListImg:{type:String},submitButton:{type:Boolean},closeButton:{type:Boolean},bottom:{type:Boolean}}}constructor(){super(),this.context="default",this.addEventListener("open",()=>this._openModal()),this.addEventListener("close",()=>this._closeModal())}_openModal(){this.isOpen=!0,this.shadowRoot.querySelector("dialog").showModal(),document.querySelector("body").style.overflow="hidden"}get formattedTitle(){if(!this.title)return"";const e=this.title.replace(/_/g," ");return e.charAt(0).toUpperCase()+e.slice(1)}_dialogHeader(e){return this.hideHeader?h``:h`

    ${this.formattedTitle}

    - `}_closeModal(){this.isOpen=!1,this.shadowRoot.querySelector("dialog").close(),document.querySelector("body").style.overflow="initial"}_cancelModal(){this._triggerClose("cancel")}_triggerClose(e){this.dispatchEvent(new CustomEvent("close",{detail:{action:e}}))}_dialogClick(e){if(e.target.tagName!=="DIALOG")return;const t=e.target.getBoundingClientRect();(t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width)===!1&&this._cancelModal()}_dialogKeypress(e){e.key==="Escape"&&this._cancelModal()}_helpMore(){return this.isHelp?p` + `}_closeModal(){this.isOpen=!1,this.shadowRoot.querySelector("dialog").close(),document.querySelector("body").style.overflow="initial"}_cancelModal(){this._triggerClose("cancel")}_triggerClose(e){this.dispatchEvent(new CustomEvent("close",{detail:{action:e}}))}_dialogClick(e){if(e.target.tagName!=="DIALOG")return;const t=e.target.getBoundingClientRect();(t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width)===!1&&this._cancelModal()}_dialogKeypress(e){e.key==="Escape"&&this._cancelModal()}_helpMore(){return this.isHelp?h`
    - `:null}firstUpdated(){this.isOpen&&this._openModal()}_onButtonClick(){this._triggerClose("button")}get classes(){return{...this.headerClass,"no-header":this.hideHeader,bottom:this.bottom}}render(){const e=p` + `:null}firstUpdated(){this.isOpen&&this._openModal()}_onButtonClick(){this._triggerClose("button")}get classes(){return{...this.headerClass,"no-header":this.hideHeader,bottom:this.bottom}}render(){const e=h` xmlns="http://www.w3.org/2000/svg"> - `;return p` + `;return h`
    - ${this.hideButton?null:p` + ${this.hideButton?null:h` `} - `}}window.customElements.define("dt-modal",go);class vo extends N{static get properties(){return{...super.properties,title:{type:String},isOpen:{type:Boolean},canEdit:{type:Boolean,state:!0},metadata:{type:Object},center:{type:Array},mapboxToken:{type:String,attribute:"mapbox-token"}}}static get styles(){return[$` + `}}window.customElements.define("dt-modal",vo);class yo extends N{static get properties(){return{...super.properties,title:{type:String},isOpen:{type:Boolean},canEdit:{type:Boolean,state:!0},metadata:{type:Object},center:{type:Array},mapboxToken:{type:String,attribute:"mapbox-token"}}}static get styles(){return[$` .map { width: 100%; min-width: 50vw; min-height: 50dvb; } - `]}constructor(){super(),this.addEventListener("open",e=>{this.shadowRoot.querySelector("dt-modal").dispatchEvent(new Event("open")),this.isOpen=!0}),this.addEventListener("close",e=>{this.shadowRoot.querySelector("dt-modal").dispatchEvent(new Event("close")),this.isOpen=!1})}connectedCallback(){if(super.connectedCallback(),this.canEdit=!this.metadata,window.mapboxgl)this.initMap();else{const e=document.createElement("script");e.src="https://api.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.js",e.onload=this.initMap.bind(this),document.body.appendChild(e)}}initMap(){if(!this.isOpen||!window.mapboxgl||!this.mapboxToken)return;const e=this.shadowRoot.querySelector("#map");if(e&&!this.map){this.map=new window.mapboxgl.Map({accessToken:this.mapboxToken,container:e,style:"mapbox://styles/mapbox/streets-v12",minZoom:1}),this.map.on("load",()=>this.map.resize()),this.center&&this.center.length&&(this.map.setCenter(this.center),this.map.setZoom(15));const t=new mapboxgl.NavigationControl;this.map.addControl(t,"bottom-right"),this.addPinFromMetadata(),this.map.on("click",i=>{this.canEdit&&(this.marker?this.marker.setLngLat(i.lngLat):this.marker=new mapboxgl.Marker().setLngLat(i.lngLat).addTo(this.map))})}}addPinFromMetadata(){if(this.metadata){const{lng:e,lat:t,level:i}=this.metadata;let o=15;i==="admin0"?o=3:i==="admin1"?o=6:i==="admin2"&&(o=10),this.map&&(this.map.setCenter([e,t]),this.map.setZoom(o),this.marker=new mapboxgl.Marker().setLngLat([e,t]).addTo(this.map))}}updated(e){window.mapboxgl&&(e.has("metadata")&&this.metadata&&this.metadata.lat&&this.addPinFromMetadata(),e.has("isOpen")&&this.isOpen&&this.initMap())}onClose(e){var t;((t=e==null?void 0:e.detail)==null?void 0:t.action)==="button"&&this.marker&&this.dispatchEvent(new CustomEvent("submit",{detail:{location:this.marker.getLngLat()}}))}render(){var e;return p` + `]}constructor(){super(),this.addEventListener("open",e=>{this.shadowRoot.querySelector("dt-modal").dispatchEvent(new Event("open")),this.isOpen=!0}),this.addEventListener("close",e=>{this.shadowRoot.querySelector("dt-modal").dispatchEvent(new Event("close")),this.isOpen=!1})}connectedCallback(){if(super.connectedCallback(),this.canEdit=!this.metadata,window.mapboxgl)this.initMap();else{const e=document.createElement("script");e.src="https://api.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.js",e.onload=this.initMap.bind(this),document.body.appendChild(e)}}initMap(){if(!this.isOpen||!window.mapboxgl||!this.mapboxToken)return;const e=this.shadowRoot.querySelector("#map");if(e&&!this.map){this.map=new window.mapboxgl.Map({accessToken:this.mapboxToken,container:e,style:"mapbox://styles/mapbox/streets-v12",minZoom:1}),this.map.on("load",()=>this.map.resize()),this.center&&this.center.length&&(this.map.setCenter(this.center),this.map.setZoom(15));const t=new mapboxgl.NavigationControl;this.map.addControl(t,"bottom-right"),this.addPinFromMetadata(),this.map.on("click",i=>{this.canEdit&&(this.marker?this.marker.setLngLat(i.lngLat):this.marker=new mapboxgl.Marker().setLngLat(i.lngLat).addTo(this.map))})}}addPinFromMetadata(){if(this.metadata){const{lng:e,lat:t,level:i}=this.metadata;let o=15;i==="admin0"?o=3:i==="admin1"?o=6:i==="admin2"&&(o=10),this.map&&(this.map.setCenter([e,t]),this.map.setZoom(o),this.marker=new mapboxgl.Marker().setLngLat([e,t]).addTo(this.map))}}updated(e){window.mapboxgl&&(e.has("metadata")&&this.metadata&&this.metadata.lat&&this.addPinFromMetadata(),e.has("isOpen")&&this.isOpen&&this.initMap())}onClose(e){var t;((t=e==null?void 0:e.detail)==null?void 0:t.action)==="button"&&this.marker&&this.dispatchEvent(new CustomEvent("submit",{detail:{location:this.marker.getLngLat()}}))}render(){var e;return h`
    - ${this.canEdit?p`
    ${R("Save")}
    `:null} + ${this.canEdit?h`
    ${R("Save")}
    `:null} - `}}window.customElements.define("dt-map-modal",vo);class qa extends N{static get properties(){return{id:{type:String,reflect:!0},placeholder:{type:String},mapboxToken:{type:String,attribute:"mapbox-token"},googleToken:{type:String,attribute:"google-token"},metadata:{type:Object},disabled:{type:Boolean},open:{type:Boolean,state:!0},query:{type:String,state:!0},activeIndex:{type:Number,state:!0},containerHeight:{type:Number,state:!0},loading:{type:Boolean},saved:{type:Boolean},invalid:{type:Boolean},filteredOptions:{type:Array,state:!0}}}static get styles(){return[...super.styles,$` + `}}window.customElements.define("dt-map-modal",yo);class Ua extends N{static get properties(){return{id:{type:String,reflect:!0},placeholder:{type:String},mapboxToken:{type:String,attribute:"mapbox-token"},googleToken:{type:String,attribute:"google-token"},metadata:{type:Object},disabled:{type:Boolean},open:{type:Boolean,state:!0},query:{type:String,state:!0},activeIndex:{type:Number,state:!0},containerHeight:{type:Number,state:!0},loading:{type:Boolean},saved:{type:Boolean},invalid:{type:Boolean},filteredOptions:{type:Array,state:!0}}}static get styles(){return[...super.styles,$` :host { --dt-location-map-border-color: var(--dt-form-border-color, #fefefe); position: relative; @@ -2390,7 +2390,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn opacity: 0; animation: fadeOut 4s; } - `]}constructor(){super(),this.activeIndex=-1,this.filteredOptions=[],this.detectTap=!1,this.debounceTimer=null}connectedCallback(){super.connectedCallback(),this.addEventListener("autofocus",async()=>{await this.updateComplete;const e=this.shadowRoot.querySelector("input");e&&e.focus()}),this.mapboxToken&&(this.mapboxService=new Ra(this.mapboxToken))}firstUpdated(){var e;this.googleToken&&!((e=this.metadata)!=null&&e.lat)&&(this.googleGeocodeService=new Na(this.googleToken,window,document))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("autofocus",this.handleAutofocus)}updated(){this._scrollOptionListToActive();const e=this.shadowRoot.querySelector(".input-group");e.style.getPropertyValue("--container-width")||e.style.setProperty("--container-width",`${e.clientWidth}px`)}_scrollOptionListToActive(){const e=this.shadowRoot.querySelector(".option-list"),t=this.shadowRoot.querySelector("button.active");if(e&&t){const i=t.offsetTop,o=t.offsetTop+t.clientHeight,a=e.scrollTop,r=e.scrollTop+e.clientHeight;o>r?e.scrollTo({top:o-e.clientHeight,behavior:"smooth"}):i-1&&(this.activeIndex({label:t.description,place_id:t.place_id,source:"user",raw:t})),this.loading=!1}catch(e){console.error(e),this.error=e.message||"An error occurred while searching for locations.",this.loading=!1;return}}else if(this.mapboxToken&&this.mapboxService){this.saved=!1,this.loading=!0;const e=await this.mapboxService.searchPlaces(this.query,this.locale);this.filteredOptions=e.map(t=>({lng:t.center[0],lat:t.center[1],level:t.place_type[0],label:t.place_name,source:"user"})),this.loading=!1}}return this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e&&(e.has("query")&&(this.error=!1,clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this._filterOptions(),300)),!this.containerHeight&&this.shadowRoot.children&&this.shadowRoot.children.length)){const i=this.shadowRoot.querySelector(".input-group");i&&(this.containerHeight=i.offsetHeight)}}_change(){}_delete(){const e={detail:{metadata:this.metadata},bubbles:!1};this.dispatchEvent(new CustomEvent("delete",e))}_openMapModal(){this.shadowRoot.querySelector("dt-map-modal").dispatchEvent(new Event("open"))}async _onMapModalSubmit(e){var t,i;if((i=(t=e==null?void 0:e.detail)==null?void 0:t.location)!=null&&i.lat){const{location:o}=e==null?void 0:e.detail,{lat:a,lng:r}=o;if(this.googleGeocodeService){const n=await this.googleGeocodeService.reverseGeocode(r,a,this.locale);if(n&&n.length){const l=n[0];this._select({lng:l.geometry.location.lng,lat:l.geometry.location.lat,level:l.types&&l.types.length?l.types[0]:null,label:l.formatted_address,source:"user"})}}else if(this.mapboxService){const n=await this.mapboxService.reverseGeocode(r,a,this.locale);if(n&&n.length){const l=n[0];this._select({lng:l.center[0],lat:l.center[1],level:l.place_type[0],label:l.place_name,source:"user"})}}}}_renderOption(e,t,i){return p` + `]}constructor(){super(),this.activeIndex=-1,this.filteredOptions=[],this.detectTap=!1,this.debounceTimer=null}connectedCallback(){super.connectedCallback(),this.addEventListener("autofocus",async()=>{await this.updateComplete;const e=this.shadowRoot.querySelector("input");e&&e.focus()}),this.mapboxToken&&(this.mapboxService=new Na(this.mapboxToken))}firstUpdated(){var e;this.googleToken&&!((e=this.metadata)!=null&&e.lat)&&(this.googleGeocodeService=new qa(this.googleToken,window,document))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("autofocus",this.handleAutofocus)}updated(){this._scrollOptionListToActive();const e=this.shadowRoot.querySelector(".input-group");e.style.getPropertyValue("--container-width")||e.style.setProperty("--container-width",`${e.clientWidth}px`)}_scrollOptionListToActive(){const e=this.shadowRoot.querySelector(".option-list"),t=this.shadowRoot.querySelector("button.active");if(e&&t){const i=t.offsetTop,o=t.offsetTop+t.clientHeight,a=e.scrollTop,r=e.scrollTop+e.clientHeight;o>r?e.scrollTo({top:o-e.clientHeight,behavior:"smooth"}):i-1&&(this.activeIndex({label:t.description,place_id:t.place_id,source:"user",raw:t})),this.loading=!1}catch(e){console.error(e),this.error=e.message||"An error occurred while searching for locations.",this.loading=!1;return}}else if(this.mapboxToken&&this.mapboxService){this.saved=!1,this.loading=!0;const e=await this.mapboxService.searchPlaces(this.query,this.locale);this.filteredOptions=e.map(t=>({lng:t.center[0],lat:t.center[1],level:t.place_type[0],label:t.place_name,source:"user"})),this.loading=!1}}return this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e&&(e.has("query")&&(this.error=!1,clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this._filterOptions(),300)),!this.containerHeight&&this.shadowRoot.children&&this.shadowRoot.children.length)){const i=this.shadowRoot.querySelector(".input-group");i&&(this.containerHeight=i.offsetHeight)}}_change(){}_delete(){const e={detail:{metadata:this.metadata},bubbles:!1};this.dispatchEvent(new CustomEvent("delete",e))}_openMapModal(){this.shadowRoot.querySelector("dt-map-modal").dispatchEvent(new Event("open"))}async _onMapModalSubmit(e){var t,i;if((i=(t=e==null?void 0:e.detail)==null?void 0:t.location)!=null&&i.lat){const{location:o}=e==null?void 0:e.detail,{lat:a,lng:r}=o;if(this.googleGeocodeService){const n=await this.googleGeocodeService.reverseGeocode(r,a,this.locale);if(n&&n.length){const l=n[0];this._select({lng:l.geometry.location.lng,lat:l.geometry.location.lat,level:l.types&&l.types.length?l.types[0]:null,label:l.formatted_address,source:"user"})}}else if(this.mapboxService){const n=await this.mapboxService.reverseGeocode(r,a,this.locale);if(n&&n.length){const l=n[0];this._select({lng:l.center[0],lat:l.center[1],level:l.place_type[0],label:l.place_name,source:"user"})}}}}_renderOption(e,t,i){return h`
  • - `}_renderOptions(){const e=[];return this.filteredOptions.length?e.push(...this.filteredOptions.map((t,i)=>this._renderOption(t,i))):this.loading?e.push(p`
  • ${R("Loading...")}
  • `):e.push(p`
  • ${R("No Data Available")}
  • `),e.push(this._renderOption({value:this.query,label:this.query},(this.filteredOptions||[]).length,p`${R("Use")}: "${this.query}"`)),e}get classes(){return{"field-container":!0,invalid:this.invalid}}render(){var o,a,r,n;const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"},t=!!((o=this.metadata)!=null&&o.label),i=((a=this.metadata)==null?void 0:a.lat)&&((r=this.metadata)==null?void 0:r.lng);return p` + `}_renderOptions(){const e=[];return this.filteredOptions.length?e.push(...this.filteredOptions.map((t,i)=>this._renderOption(t,i))):this.loading?e.push(h`
  • ${R("Loading...")}
  • `):e.push(h`
  • ${R("No Data Available")}
  • `),e.push(this._renderOption({value:this.query,label:this.query},(this.filteredOptions||[]).length,h`${R("Use")}: "${this.query}"`)),e}get classes(){return{"field-container":!0,invalid:this.invalid}}render(){var o,a,r,n;const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"},t=!!((o=this.metadata)!=null&&o.label),i=((a=this.metadata)==null?void 0:a.lat)&&((r=this.metadata)==null?void 0:r.lng);return h`
    - ${t&&i?p` + ${t&&i?h` `:null} - ${t?p` + ${t?h` - `:p` + `:h`
    -
      +
        ${this._renderOptions()}
      - ${this.loading?p``:null} ${this.renderIconSaved(i)} @@ -2467,9 +2467,9 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn mapbox-token="${this.mapboxToken}" @submit=${this._onMapModalSubmit} > - `}renderIconSaved(e){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?p`{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?h``:null}}window.customElements.define("dt-location-map-item",qa);class yo extends P{static get properties(){return{...super.properties,placeholder:{type:String},value:{type:Array},locations:{type:Array,state:!0},open:{type:Boolean,state:!0},limit:{type:Number,attribute:"limit"},mapboxToken:{type:String,attribute:"mapbox-token"},googleToken:{type:String,attribute:"google-token"},activeItem:{type:String,state:!0}}}static get styles(){return[...super.styles,$` + >`:null}}window.customElements.define("dt-location-map-item",Ua);class _o extends P{static get properties(){return{...super.properties,placeholder:{type:String},value:{type:Array},locations:{type:Array,state:!0},open:{type:Boolean,state:!0},limit:{type:Number,attribute:"limit"},mapboxToken:{type:String,attribute:"mapbox-token"},googleToken:{type:String,attribute:"google-token"},activeItem:{type:String,state:!0}}}static get styles(){return[...super.styles,$` :host { font-family: Helvetica, Arial, sans-serif; } @@ -2492,16 +2492,16 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn color: var(--success-color, #cc4b37); transform: scale(1.5); } - `]}constructor(){super(),this.limit=0,this.value=[],this.locations=[{id:Date.now()}]}_setFormValue(e){super._setFormValue(e),this.internals.setFormValue(JSON.stringify(e))}willUpdate(...e){super.willUpdate(...e),this.value&&this.value.filter(t=>!t.id)&&(this.value=[...this.value.map(t=>({...t,id:t.id||t.grid_meta_id}))]),this.updateLocationList()}firstUpdated(...e){super.firstUpdated(...e),this.internals.setFormValue(JSON.stringify(this.value))}updated(e){var t,i;if(e.has("value")){const o=e.get("value");o&&(o==null?void 0:o.length)!==((t=this.value)==null?void 0:t.length)&&this.focusNewLocation()}if(e.has("locations")){const o=e.get("locations");o&&(o==null?void 0:o.length)!==((i=this.locations)==null?void 0:i.length)&&this.focusNewLocation()}}focusNewLocation(){const e=this.shadowRoot.querySelectorAll("dt-location-map-item");e&&e.length&&e[e.length-1].dispatchEvent(new Event("autofocus"))}updateLocationList(){if(!this.disabled&&(this.open||!this.value||!this.value.length)){this.open=!0;const e=(this.value||[]).filter(i=>i.label),t=this.limit===0||e.lengthe.label)]}selectLocation(e){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}}),i={...e.detail.metadata,id:Date.now()};if(i.lat){const o=Math.round(i.lat*1e7)/1e7,a=Math.round(i.lng*10**7)/10**7;this.activeItem=`${o}/${a}`}else this.activeItem=i.label;this.value=[...(this.value||[]).filter(o=>o.label&&(!o.key||o.key!==i.key)&&(!o.id||o.id!==i.id)),i],this.updateLocationList(),t.detail.newValue=this.value,this.dispatchEvent(t),this._setFormValue(this.value)}deleteItem(e){var a;this.activeItem=void 0;const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}}),i=(a=e.detail)==null?void 0:a.metadata,o=i==null?void 0:i.grid_meta_id;o?this.value=(this.value||[]).filter(r=>r.grid_meta_id!==o):i.lat&&i.lng?this.value=(this.value||[]).filter(r=>r.lat!==i.lat&&r.lng!==i.lng):this.value=(this.value||[]).filter(r=>(!r.key||r.key!==i.key)&&(!r.id||r.id!==i.id)),this.updateLocationList(),t.detail.newValue=this.value,this.dispatchEvent(t),this._setFormValue(this.value)}addNew(){const e=(this.value||[]).filter(t=>t.label);(this.limit===0||e.length!t.label))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required")):(this.invalid=!1,this.internals.setValidity({}))}labelTemplate(){return this.label?p` + `]}constructor(){super(),this.limit=0,this.value=[],this.locations=[{id:Date.now()}]}_setFormValue(e){super._setFormValue(e),this.internals.setFormValue(JSON.stringify(e))}willUpdate(...e){super.willUpdate(...e),this.value&&this.value.filter(t=>!t.id)&&(this.value=[...this.value.map(t=>({...t,id:t.id||t.grid_meta_id}))]),this.updateLocationList()}firstUpdated(...e){super.firstUpdated(...e),this.internals.setFormValue(JSON.stringify(this.value))}updated(e){var t,i;if(e.has("value")){const o=e.get("value");o&&(o==null?void 0:o.length)!==((t=this.value)==null?void 0:t.length)&&this.focusNewLocation()}if(e.has("locations")){const o=e.get("locations");o&&(o==null?void 0:o.length)!==((i=this.locations)==null?void 0:i.length)&&this.focusNewLocation()}}focusNewLocation(){const e=this.shadowRoot.querySelectorAll("dt-location-map-item");e&&e.length&&e[e.length-1].dispatchEvent(new Event("autofocus"))}updateLocationList(){if(!this.disabled&&(this.open||!this.value||!this.value.length)){this.open=!0;const e=(this.value||[]).filter(i=>i.label),t=this.limit===0||e.lengthe.label)]}selectLocation(e){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}}),i={...e.detail.metadata,id:Date.now()};if(i.lat){const o=Math.round(i.lat*1e7)/1e7,a=Math.round(i.lng*10**7)/10**7;this.activeItem=`${o}/${a}`}else this.activeItem=i.label;this.value=[...(this.value||[]).filter(o=>o.label&&(!o.key||o.key!==i.key)&&(!o.id||o.id!==i.id)),i],this.updateLocationList(),t.detail.newValue=this.value,this.dispatchEvent(t),this._setFormValue(this.value)}deleteItem(e){var a;this.activeItem=void 0;const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}}),i=(a=e.detail)==null?void 0:a.metadata,o=i==null?void 0:i.grid_meta_id;o?this.value=(this.value||[]).filter(r=>r.grid_meta_id!==o):i.lat&&i.lng?this.value=(this.value||[]).filter(r=>r.lat!==i.lat&&r.lng!==i.lng):this.value=(this.value||[]).filter(r=>(!r.key||r.key!==i.key)&&(!r.id||r.id!==i.id)),this.updateLocationList(),t.detail.newValue=this.value,this.dispatchEvent(t),this._setFormValue(this.value)}addNew(){const e=(this.value||[]).filter(t=>t.label);(this.limit===0||e.length!t.label))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required")):(this.invalid=!1,this.internals.setValidity({}))}labelTemplate(){return this.label?h` - ${this.icon?null:p``} + ${this.icon?null:h``} ${this.label} - ${!this.open&&(this.limit==0||this.locations.length - `,()=>p``)} + `,()=>h``)}
    - `}renderIcons(){let e=0,t=!1;for(const[a,r]of(this.value||[]).entries())!r.value&&a!==0?e+=1:r.delete&&!t&&(t=!0);let i=.5;t===!1&&(i+=3*e);const o=`padding-block-end: ${i.toString()}rem`;return p` + `}renderIcons(){let e=0,t=!1;for(const[a,r]of(this.value||[]).entries())!r.value&&a!==0?e+=1:r.delete&&!t&&(t=!0);let i=.5;t===!1&&(i+=3*e);const o=`padding-block-end: ${i.toString()}rem`;return h` ${this.renderIconInvalid()} ${this.renderError()} ${this.renderIconLoading(o)} ${this.renderIconSaved(o)} - `}renderIconLoading(e){return this.loading?p``:null}renderIconSaved(e){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?p``:null}renderIconSaved(e){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?h``:null}_renderInputFields(){return(!this.value||!this.value.length)&&(this.value=[{verified:!1,value:"",tempKey:Date.now().toString()}]),p` - ${pe((this.value??[]).filter(e=>!e.delete),e=>e.id,e=>this._inputFieldTemplate(e,this.value.length))} - `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t.value))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid}}render(){return p` + >`:null}_renderInputFields(){return(!this.value||!this.value.length)&&(this.value=[{verified:!1,value:"",tempKey:Date.now().toString()}]),h` + ${H((this.value??[]).filter(e=>!e.delete),e=>e.id,e=>this._inputFieldTemplate(e,this.value.length))} + `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t.value))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid}}render(){return h` ${this.labelTemplate()}
    ${this._renderInputFields()} ${this.renderIcons()}
    - `}}window.customElements.define("dt-multi-text",xo);class ko extends P{static get styles(){return[...super.styles,$` + `}}window.customElements.define("dt-multi-text",zt);class ko extends zt{static get styles(){return[...super.styles,$` + .icon-btn { + background-color: transparent; + border: none; + cursor: pointer; + height: 0.9em; + padding: 0; + color: var(--success-color, #cc4b37); + transform: scale(1.5); + } + + .groups-list { + position: relative; + } + + .option-list { + display: block; + position: absolute; + inset-inline-start: auto; + inset-inline-end: 0; + list-style: none; + margin-top: 0; + padding: 0; + border: 1px solid var(--dt-form-border-color, #CACACA); + background: var(--dt-form-background-color, #FEFEFE); + z-index: 10; + box-shadow: var(--shadow-1); + max-height: 150px; + } + + .option-list li { + border-block-start: 1px solid var(--dt-form-border-color, #CACACA); + outline: 0; + } + .option-list li div, + .option-list li button { + padding: 0.5rem 0.75rem; + color: var(--dt-multi-select-text-color, #0A0A0A); + font-weight: 100; + font-size: 1rem; + text-decoration: none; + text-align: inherit; + } + + .option-list li button { + display: block; + width: 100%; + border: 0; + background: transparent; + } + .option-list li button:hover, + .option-list li button.active { + cursor: pointer; + background: var(--dt-multi-select-option-hover-background, #F5F5F5); + } + .link-button { + background: none; + border: none; + padding-left: 0.5rem; + margin: 0; + color: #0000ee; /* Default blue link color (adjust as needed) */ + text-decoration: underline; + cursor: pointer; + } + .groups-no-value { + display: flex; + align-items: center; + min-height: 2.5rem; + } + .icon-overlay { + inset-inline-end: 0.5rem; + height: 100%; + } + .field-container:has(.btn-remove) ~ .icon-overlay { + inset-inline-end: 3rem; + } + .heading { + margin-top: .5rem; + margin-bottom: 0; + font-family: var(--font-family); + font-size: var(--dt-label-font-size, 14px); + font-weight: var(--dt-label-font-weight, 700); + color: var(--dt-label-color, #000); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + `]}static get properties(){return{...super.properties,groups:{type:Array},open:{type:Boolean,state:!0},activeIndex:{type:Number,state:!0},activeGroup:{type:String,state:!0},isDeleting:{type:Boolean,state:!0}}}constructor(){super(),this.open=!1,this.activeIndex=-1}_addItem(e){var i;const t={verified:!1,value:"",tempKey:Date.now().toString(),type:e.id};(i=this.value[0])!=null&&i.type?this.value=[...this.value,t]:this.value=[t],this.open=!1,this.activeIndex=-1,this.updateComplete.then(()=>{const o=this.renderRoot.querySelectorAll("input"),a=Array.from(o).find(r=>r.getAttribute("data-key")===t.tempKey);a==null||a.focus()})}_removeItem(e){const t=e.currentTarget.dataset.key;if(t){const i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value}}),o=this.value.filter(a=>a.tempKey!==t).map(a=>{const r={...a};return(a.meta_id===t||a.tempKey===t)&&(r.delete=!0,this.activeGroup=r.type),r});this.value=o,i.detail.newValue=this.value,this.dispatchEvent(i),this._setFormValue(this.value)}}_change(e){var i,o;const t=(o=(i=e==null?void 0:e.currentTarget)==null?void 0:i.dataset)==null?void 0:o.key;if(t){const a=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=this.value.map(r=>{var n;return r.meta_id===t||r.tempKey===t?(this.activeGroup=r.type,{...r,value:(n=e.target)==null?void 0:n.value}):r}),a.detail.newValue=this.value,this._setFormValue(this.value),this.dispatchEvent(a)}}handleClick(){if(this.renderRoot.querySelector(".icon-btn").focus(),this.groups){this.open=!this.open,this.activeIndex=-1;const e=this.renderRoot.querySelector(".option-list");e==null||e.focus()}else{const e={verified:!1,value:"",tempKey:Date.now().toString()};this.value=[...this.value,e]}}_handleButtonBlur(e){var t;(t=e.relatedTarget)!=null&&t.id.includes("group-")||(this.open=!1)}_inputKeyDown(e){const t=e.keyCode||e.which;if(this.groups)switch(t){case 38:e.preventDefault(),this.open=!0,this._listHighlightPrevious();break;case 40:e.preventDefault(),this.open=!0,this._listHighlightNext();break;case 9:this.activeIndex<0?this.open=!1:e.preventDefault(),this._keyboardSelectOption();break;case 13:e.preventDefault(),this.open?this._keyboardSelectOption():this.open=!0;break;case 27:this.open=!1,this.activeIndex=-1;break;default:this.open=!0,this.query=e.target.value;break}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.groups.length?this._addItem(this.query):this._addItem(this.groups[this.activeIndex]))}_listHighlightNext(){this.allowAdd?this.activeIndex=Math.min(this.groups.length,this.activeIndex+1):this.activeIndex=Math.min(this.groups.length-1,this.activeIndex+1)}_listHighlightPrevious(){this.activeIndex=Math.max(0,this.activeIndex-1)}_inputFieldTemplate(e,t){var i;return h` +
    + + + ${q(((i=this.value[0])==null?void 0:i.type)||!this.groups&&t>1,()=>h` + + `,()=>h``)} +
    + `}_renderGroup(e,t){return h` +
  • + +
  • + `}renderIcons(){const e=this.groups.findIndex(l=>l.id===this.activeGroup);this.loading&&(this.isDeleting=!1);for(const[l,d]of(this.value||[]).entries())d.delete&&!this.isDeleting&&(this.isDeleting=!0,this.activeGroup=d.type);const t=this.groups.map(l=>(this.value||[]).filter(d=>d.type===l.id&&!d.delete).length);let i=0,o=0;for(let l=t.length-1;l>e;l-=1)if(t[l]>0){o+=t[l];break}for(let l=0;l0){i+=t[l];break}let a=0,r=0;for(let l=this.groups.length-1;l>=0;l-=1){const d=this.groups[l];let u=0;l>e?(u=(this.value||[]).filter(p=>p.type===d.id&&!p.delete).length,u>0&&(r+=1)):l===e&&(u=(this.value||[]).filter(p=>p.type===d.id&&!p.delete).length-1,this.isDeleting&&u===0?i>0?u=i-1:o>0&&(r-=1):u=(this.value||[]).filter(p=>p.type===d.id&&!p.delete).length-1),a+=u}a!==0&&(a*=3,a+=r*2.5),a+=.5,console.log(a);const n=`padding-block-end: ${a.toString()}rem`;return h` + ${this.renderIconInvalid()} ${this.renderError()} + ${this.renderIconLoading(n)} ${this.renderIconSaved(n)} + `}_renderInputFields(){(!this.value||!this.value.length)&&(this.value=[{verified:!1,value:"",tempKey:Date.now().toString()}]);const e=this.value[0];return this.groups&&e&&e.type?this.groups.map(t=>{const i=(this.value??[]).filter(o=>!o.delete&&o.type===t.id);if(i.length>0)return h` +

    ${t.label}

    + ${H(i,o=>o.id,o=>this._inputFieldTemplate(o,this.value.length))} + `}):this.groups?h` +
    + No items to show. +
    + `:h` + ${H((this.value??[]).filter(t=>!t.delete),t=>t.id,t=>this._inputFieldTemplate(t,this.value.length))} + `}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid}}labelTemplate(){return this.label?h` + + ${this.icon?null:h``} + ${this.label} + + + ${this.open?h` +
    +
      + ${H(this.groups,e=>e.id,(e,t)=>this._renderGroup(e,t))} +
    +
    + `:""} +
    +
    + `:""}}window.customElements.define("dt-multi-text-groups",ko);class So extends P{static get styles(){return[...super.styles,$` :host { margin-bottom: var(--dt-multi-select-button-group-margin-bottom, 5px); --dt-button-font-size: var( @@ -3225,7 +3401,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn .invalid ~ .error-container { border-top-width: 1px; } - `]}constructor(){super(),this.options=[]}static get properties(){return{value:{type:Array,reflect:!0},context:{type:String},options:{type:Array},outline:{type:Boolean}}}get _field(){return this.shadowRoot.querySelector(".input-group")}_select(e){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});if(this.value&&this.value.length){const o=this.value.includes(e);this.value=[...this.value.filter(a=>a!==e&&a!==`-${e}`),o?`-${e}`:e]}else this.value=[e];i.detail.newValue=this.value,this._setFormValue(this.value),this.dispatchEvent(i)}_clickOption(e){var t;(t=e==null?void 0:e.currentTarget)!=null&&t.value&&this._select(e.currentTarget.value)}_inputKeyUp(e){switch(e.keyCode||e.which){case 13:this._clickOption(e);break}}_renderButton(e){const i=(this.value??[]).includes(e.id)?"success":this.touched&&this.invalid?"alert":"inactive",o=this.outline??(this.touched&&this.invalid);return p` + `]}constructor(){super(),this.options=[]}static get properties(){return{value:{type:Array,reflect:!0},context:{type:String},options:{type:Array},outline:{type:Boolean}}}get _field(){return this.shadowRoot.querySelector(".input-group")}_select(e){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});if(this.value&&this.value.length){const o=this.value.includes(e);this.value=[...this.value.filter(a=>a!==e&&a!==`-${e}`),o?`-${e}`:e]}else this.value=[e];i.detail.newValue=this.value,this._setFormValue(this.value),this.dispatchEvent(i)}_clickOption(e){var t;(t=e==null?void 0:e.currentTarget)!=null&&t.value&&this._select(e.currentTarget.value)}_inputKeyUp(e){switch(e.keyCode||e.which){case 13:this._clickOption(e);break}}_renderButton(e){const i=(this.value??[]).includes(e.id)?"success":this.touched&&this.invalid?"alert":"inactive",o=this.outline??(this.touched&&this.invalid);return h` - ${e.icon?p`${this.iconAltText}`:null} ${e.label} - `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"button-group":!0,invalid:this.touched&&this.invalid}}render(){return p` + `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"button-group":!0,invalid:this.touched&&this.invalid}}render(){return h` ${this.labelTemplate()}
    - ${pe(this.options??[],e=>e.id,e=>this._renderButton(e))} + ${H(this.options??[],e=>e.id,e=>this._renderButton(e))}
    ${this.renderIcons()}
    - `}}window.customElements.define("dt-multi-select-button-group",ko);class So extends P{constructor(){super();Me(this,"_handleUploadStagedEvent",()=>{this.uploadStagedFiles()});this.value=[],this.acceptedFileTypes=["image/*","application/pdf"],this.maxFileSize=null,this.maxFiles=null,this.deleteEnabled=!0,this.downloadEnabled=!0,this.renameEnabled=!0,this.displayLayout="grid",this.fileTypeIcon="",this.autoUpload=!0,this.postType="",this.postId="",this.metaKey="",this.keyPrefix="",this.uploading=!1,this.stagedFiles=[],this._uploadZoneExpanded=!1,this._dragOver=!1,this._editingFileKey="",this._editingFileName="",this._dragLeaveTimeout=null,this._resizeObserver=null,this._keydownAttached=!1,this._suppressRenameBlurCommit=!1,this._standaloneFilesByKey=new Map}static get styles(){return[...super.styles,$` + `}}window.customElements.define("dt-multi-select-button-group",So);class Eo extends P{constructor(){super();Me(this,"_handleUploadStagedEvent",()=>{this.uploadStagedFiles()});this.value=[],this.acceptedFileTypes=["image/*","application/pdf"],this.maxFileSize=null,this.maxFiles=null,this.deleteEnabled=!0,this.downloadEnabled=!0,this.renameEnabled=!0,this.displayLayout="grid",this.fileTypeIcon="",this.autoUpload=!0,this.postType="",this.postId="",this.metaKey="",this.keyPrefix="",this.uploading=!1,this.stagedFiles=[],this._uploadZoneExpanded=!1,this._dragOver=!1,this._editingFileKey="",this._editingFileName="",this._dragLeaveTimeout=null,this._resizeObserver=null,this._keydownAttached=!1,this._suppressRenameBlurCommit=!1,this._standaloneFilesByKey=new Map}static get styles(){return[...super.styles,$` :host { display: block; } @@ -3264,7 +3440,10 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn border-radius: 4px; text-align: center; background-color: var(--dt-upload-background-color, #fafafa); - transition: padding 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; + transition: + padding 0.2s ease, + background-color 0.2s ease, + border-color 0.2s ease; cursor: pointer; position: relative; width: 100%; @@ -3632,18 +3811,21 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn word-wrap: break-word; word-break: break-word; } - `]}static get properties(){return{...super.properties,value:{type:Array,reflect:!0,converter:{fromAttribute:t=>{if(t==null||t==="")return[];try{const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}},toAttribute:t=>Array.isArray(t)&&t.length>0?JSON.stringify(t):""}},acceptedFileTypes:{type:Array,attribute:"accepted-file-types"},maxFileSize:{type:Number,attribute:"max-file-size"},maxFiles:{type:Number,attribute:"max-files"},deleteEnabled:{type:Boolean,attribute:"delete-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},downloadEnabled:{type:Boolean,attribute:"download-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},renameEnabled:{type:Boolean,attribute:"rename-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},displayLayout:{type:String,attribute:"display-layout"},fileTypeIcon:{type:String,attribute:"file-type-icon"},autoUpload:{type:Boolean,attribute:"auto-upload",converter:{fromAttribute:t=>{if(t==null)return!0;const i=String(t).toLowerCase().trim();return i!=="false"&&i!=="0"&&t!==!1}}},postType:{type:String,attribute:"post-type"},postId:{type:String,attribute:"post-id"},metaKey:{type:String,attribute:"meta-key"},keyPrefix:{type:String,attribute:"key-prefix"},uploading:{type:Boolean,state:!0},stagedFiles:{type:Array,state:!0},_uploadZoneExpanded:{type:Boolean,state:!0},_dragOver:{type:Boolean,state:!0},_editingFileKey:{type:String,state:!0},_editingFileName:{type:String,state:!0}}}connectedCallback(){super.connectedCallback(),this.addEventListener("dt:upload-files",this._handleUploadStagedEvent),this._boundKeydown=this._handleHostKeydown.bind(this)}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("dt:upload-files",this._handleUploadStagedEvent),this._removeKeydownListener(),this._cancelScheduledCollapse(),(t=this._resizeObserver)==null||t.disconnect()}_addKeydownListener(){this._keydownAttached||(this._keydownAttached=!0,this.addEventListener("keydown",this._boundKeydown,{capture:!0}))}_removeKeydownListener(){this._keydownAttached&&(this._keydownAttached=!1,this.removeEventListener("keydown",this._boundKeydown,{capture:!0}))}_handleHostKeydown(t){var o;if(!this._editingFileKey)return;const i=(o=this.shadowRoot)==null?void 0:o.querySelector(".file-name-edit");i&&(t.key==="Enter"||t.keyCode===13?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this._commitRename(this._editingFileKey,i.value)):(t.key==="Escape"||t.keyCode===27)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this._cancelRename()))}firstUpdated(t){Array.isArray(this.value)||(this.value=this._parseValue(this.value)),super.firstUpdated(t),this._setupResizeObserver()}updated(t){super.updated(t),t.has("value")&&this._setFormValue(this.value),(t.has("value")||t.has("stagedFiles")||t.has("error"))&&this.updateComplete.then(()=>this._refreshMasonry()),t.has("_editingFileKey")&&(this._editingFileKey?(this._addKeydownListener(),this.updateComplete.then(()=>{var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector(".file-name-edit");i&&(i.focus(),i.select())})):this._removeKeydownListener())}_setupResizeObserver(){typeof ResizeObserver>"u"||(this._resizeObserver=new ResizeObserver(()=>{this._refreshMasonry()}),this._resizeObserver.observe(this))}_refreshMasonry(){if(typeof window<"u"&&window.jQuery){const t=this;requestAnimationFrame(()=>{let i=null;window.masonGrid&&window.masonGrid.length&&window.masonGrid.masonry?i=window.masonGrid:i=window.jQuery(t).closest(".grid, .masonry-container, .masonry, [data-masonry]"),i&&i.length&&i.masonry&&i.masonry("layout")})}}_expandUploadZone(){this._uploadZoneExpanded=!0}_scheduleCollapse(){this._cancelScheduledCollapse(),this._dragLeaveTimeout=setTimeout(()=>{this._uploadZoneExpanded=!1,this._dragLeaveTimeout=null},300)}_cancelScheduledCollapse(){this._dragLeaveTimeout&&(clearTimeout(this._dragLeaveTimeout),this._dragLeaveTimeout=null)}uploadStagedFiles(){this.stagedFiles.length>0&&this._uploadFiles(this.stagedFiles)}_removeStagedFile(t){t>=0&&to!==t),this.requestUpdate())}_parseValue(t){if(Array.isArray(t))return t;if(typeof t=="string")try{const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}return[]}_formatFileSize(t){return t<1024?`${t} B`:t<1048576?`${(t/1024).toFixed(1)} KB`:`${(t/1048576).toFixed(1)} MB`}_isImage(t){return(t.type||"").toLowerCase().startsWith("image/")}_mdiToIconify(t){if(!t||typeof t!="string")return"";const i=t.trim();return i.startsWith("mdi:")?i:i.includes("mdi-")?`mdi:${i.replace(/.*mdi-/,"").replace(/\s/g,"-")}`:i.startsWith("mdi ")?`mdi:${i.replace(/^mdi\s+/,"").replace(/\s/g,"-")}`:i}_getFileTypeIconMapping(){return{"application/pdf":"mdi:file-pdf-box","text/plain":"mdi:text-box-edit-outline","application/rtf":"mdi:text-box-edit-outline","text/rtf":"mdi:text-box-edit-outline","text/csv":"mdi:text-box-edit-outline","text/html":"mdi:language-html5","application/msword":"mdi:microsoft-word","application/json":"mdi:code-json","application/xml":"mdi:file-xml-box",".pdf":"mdi:file-pdf-box",".txt":"mdi:text-box-edit-outline",".rtf":"mdi:text-box-edit-outline",".csv":"mdi:text-box-edit-outline",".html":"mdi:language-html5",".htm":"mdi:language-html5",".docx":"mdi:microsoft-word",".doc":"mdi:microsoft-word",".json":"mdi:code-json",".xml":"mdi:file-xml-box"}}_getFileTypeIcon(t){if(this.fileTypeIcon&&this.fileTypeIcon.trim())return this.fileTypeIcon.trim();const i=(t.type||"").toLowerCase(),o=this._getFileTypeIconMapping();if(i&&o[i])return o[i];if(t.name){const a=t.name.split(".");if(a.length>1){const r="."+a.pop().toLowerCase();if(o[r])return o[r]}}return null}_renderFileTypeIcon(t){const i=this._getFileTypeIcon(t);if(!i)return null;if(/^(https?:|\/|data:)/.test(i))return p``;const a=this._mdiToIconify(i);return a?p``:null}_getFilePreviewUrl(t){const i=t.thumbnail_key||t.large_thumbnail_key;if(this._isImage(t)){if(t.large_thumbnail_url)return t.large_thumbnail_url;if(t.thumbnail_url)return t.thumbnail_url;if(t.url)return t.url;if(i)return null}return null}_handleFileSelect(t){const i=Array.from(t.target.files||[]);i.length!==0&&(t.target.value="",this._processFiles(i))}_handleDrop(t){if(t.preventDefault(),t.stopPropagation(),this._dragOver=!1,t.currentTarget.classList.remove("drag-over"),this.disabled||this.uploading)return;const i=Array.from(t.dataTransfer.files||[]);i.length!==0&&this._processFiles(i)}_handleDragOver(t){t.preventDefault(),t.stopPropagation(),!this.disabled&&!this.uploading&&(this._dragOver=!0,this._expandUploadZone(),this._cancelScheduledCollapse(),t.currentTarget.classList.add("drag-over"))}_handleDragLeave(t){t.preventDefault(),t.stopPropagation(),this._dragOver=!1,t.currentTarget.classList.remove("drag-over"),this._scheduleCollapse()}_handleZoneClick(t){var i;if(!t.target.closest('input[type="file"]')&&(this._expandUploadZone(),this._cancelScheduledCollapse(),!this.disabled&&!this.uploading)){const o=(i=this.shadowRoot)==null?void 0:i.querySelector('input[type="file"]');o&&o.click()}}_handleZoneMouseEnter(){!this.disabled&&!this.uploading&&(this._expandUploadZone(),this._cancelScheduledCollapse())}_handleZoneMouseLeave(){this._scheduleCollapse()}_processFiles(t){const i=this._validateFiles(t);if(i.length===0)return;this.error="";const o=(this.value||[]).length+this.stagedFiles.length;if(this.maxFiles&&o+i.length>this.maxFiles){this.error=`${this.maxFiles} files allowed`;return}this.autoUpload?this._uploadFiles(i):(this.stagedFiles=[...this.stagedFiles,...i],this._uploadZoneExpanded=!1,this.requestUpdate(),this.updateComplete.then(()=>this._refreshMasonry()))}_validateFiles(t){const i=[],o=this.maxFileSize?this.maxFileSize*1024*1024:null,a=Array.isArray(this.acceptedFileTypes)?this.acceptedFileTypes:["image/*","application/pdf"],r=a.join(",");for(const n of t){if(o&&n.size>o){this.error=`File "${n.name}" exceeds ${this.maxFileSize} MB`;continue}if(r&&r!=="*"&&!a.some(d=>{if(d.startsWith("."))return n.name.toLowerCase().endsWith(d.toLowerCase());if(d.endsWith("/*")){const u=d.slice(0,-2);return(n.type||"").startsWith(u)}return n.type===d||n.name&&n.name.toLowerCase().endsWith(`.${d.split("/")[1]}`)})){this.error=`File type not allowed: ${n.name}`;continue}i.push(n)}return i}_isStandaloneMode(){return!this.postType||!this.postId||!this.metaKey}async _filesToMockFileObjects(t){const i=[];for(const o of t){const r={key:`standalone_${Date.now()}_${Math.random().toString(36).slice(2)}_${o.name}`,name:o.name,type:o.type||"application/octet-stream",size:o.size};if(this._isImage({type:o.type}))try{const n=URL.createObjectURL(o);i.push({...r,url:n,thumbnail_url:n})}catch{i.push({...r,url:"#"})}else i.push({...r,url:"#"})}return i}getPendingFilesForUpload(){const t=[...this.stagedFiles||[]],i=new Set(t.map(a=>`${(a==null?void 0:a.name)||""}::${(a==null?void 0:a.size)||0}::${(a==null?void 0:a.lastModified)||0}`)),o=this._parseValue(this.value);for(const a of o){const r=String((a==null?void 0:a.key)||a||"");if(!r)continue;const n=this._standaloneFilesByKey.get(r);if(!n)continue;const l=`${(n==null?void 0:n.name)||""}::${(n==null?void 0:n.size)||0}::${(n==null?void 0:n.lastModified)||0}`;i.has(l)||(t.push(n),i.add(l))}return t}async _uploadFiles(t){if(this._isStandaloneMode()){const o=this._parseValue(this.value);this.uploading=!0,this.loading=!0,this.error="";try{const a=await this._filesToMockFileObjects(t);a.forEach((n,l)=>{n!=null&&n.key&&t[l]&&this._standaloneFilesByKey.set(String(n.key),t[l])});const r=[...o,...a];this.value=r,this.stagedFiles=[],this._uploadZoneExpanded=!1,this.saved=!0,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:r}})),this._refreshMasonry()}catch(a){this.error=(a==null?void 0:a.message)||"Upload failed"}finally{this.uploading=!1,this.loading=!1}return}this.uploading=!0,this.loading=!0,this.error="";const i=new CustomEvent("dt:upload",{bubbles:!0,detail:{files:t,metaKey:this.metaKey,keyPrefix:this.keyPrefix||"",onSuccess:({result:o,fieldValue:a})=>{const r=this._parseValue(this.value);let n=r;const l=(o.uploaded_files||[]).filter(d=>d.uploaded&&d.file).map(d=>d.file);if(l.length>0){const d=new Set(r.map(h=>String(h.key||h))),u=[...r];for(const h of l){const g=String(h.key||h);d.has(g)||(u.push(h),d.add(g))}n=u,this.value=n}else Array.isArray(a)&&a.length>0&&(n=a,this.value=n);this.stagedFiles=[],this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:r,newValue:n}})),this._refreshMasonry(),this._uploadZoneExpanded=!1,this.saved=!0,this.uploading=!1,this.loading=!1},onError:o=>{console.error("Upload error:",o),this.error=o.message||"Upload failed",this.uploading=!1,this.loading=!1}}});this.dispatchEvent(i)}async _deleteFile(t){if(!this.deleteEnabled||!confirm("Are you sure you want to delete this file?"))return;if(this._isStandaloneMode()){const o=this._parseValue(this.value),a=o.find(n=>(n.key||n)===t);a&&a.url&&a.url.startsWith("blob:")&&URL.revokeObjectURL(a.url),a&&a.thumbnail_url&&a.thumbnail_url.startsWith("blob:")&&a.thumbnail_url!==a.url&&URL.revokeObjectURL(a.thumbnail_url),this._standaloneFilesByKey.delete(String(t));const r=o.filter(n=>(n.key||n)!==t);this.value=r,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:r}})),this.dispatchEvent(new CustomEvent("dt:delete-file",{bubbles:!0,detail:{fileKey:t,metaKey:this.metaKey||""}})),this.updateComplete.then(()=>this._refreshMasonry());return}if(!this.postType||!this.postId||!this.metaKey)return;this.loading=!0,this.error="";const i=new CustomEvent("dt:delete-file",{bubbles:!0,detail:{fileKey:t,metaKey:this.metaKey,onSuccess:()=>{const o=this._parseValue(this.value),a=o.filter(r=>(r.key||r)!==t);this.value=a,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:a}})),this.updateComplete.then(()=>this._refreshMasonry()),this.loading=!1},onError:o=>{console.error("Delete error:",o),this.error=o.message||"Delete failed",this.loading=!1}}});this.dispatchEvent(i)}async _renameFile(t,i){if(!this.renameEnabled)return;if(this._isStandaloneMode()){const a=this._parseValue(this.value),r=a.map(n=>(n.key||n)===t?{...n,name:i}:n);this.value=r,this._editingFileKey="",this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:a,newValue:r}})),this.dispatchEvent(new CustomEvent("dt:rename-file",{bubbles:!0,detail:{fileKey:t,newName:i,metaKey:this.metaKey||""}})),this.updateComplete.then(()=>this._refreshMasonry());return}if(!this.postType||!this.postId||!this.metaKey)return;this.loading=!0,this.error="";const o=new CustomEvent("dt:rename-file",{bubbles:!0,detail:{fileKey:t,newName:i,metaKey:this.metaKey,onSuccess:()=>{const a=this._parseValue(this.value),r=a.map(n=>(n.key||n)===t?{...n,name:i}:n);this.value=r,this._editingFileKey="",this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:a,newValue:r}})),this.updateComplete.then(()=>this._refreshMasonry()),this.loading=!1},onError:a=>{console.error("Rename error:",a),this.error=(a==null?void 0:a.message)||"Rename failed",this.loading=!1}}});this.dispatchEvent(o)}_startRename(t,i){!this.renameEnabled||this.disabled||(this._editingFileKey=typeof t=="string"?t:String(t),this._editingFileName=i||"")}_commitRename(t,i){if(this._suppressRenameBlurCommit){this._suppressRenameBlurCommit=!1;return}if(!this._editingFileKey||this._editingFileKey!==t)return;const o=(i??this._editingFileName??"").trim();if(this._editingFileKey="",this._editingFileName="",!o)return;const r=this._parseValue(this.value).find(l=>(l.key||l)===t),n=(r==null?void 0:r.name)||(typeof t=="string"?t.split("/").pop():"");o!==n&&this._renameFile(t,o)}_cancelRename(){this._suppressRenameBlurCommit=!0,this._editingFileKey="",this._editingFileName="",setTimeout(()=>{this._suppressRenameBlurCommit=!1},0)}_handleRenameBlur(t,i){if(this._suppressRenameBlurCommit){this._suppressRenameBlurCommit=!1;return}this._commitRename(t,i)}_downloadFile(t){if(!this.downloadEnabled)return;if(this._isStandaloneMode()){const r=t.url;if(!r)return;const n=t.key||t,l=t.name||(typeof n=="string"?n.split("/").pop():"download")||"download",d=document.createElement("a");d.href=r,d.download=l,d.target="_blank",d.rel="noopener",document.body.appendChild(d),d.click(),document.body.removeChild(d),this.dispatchEvent(new CustomEvent("dt:download-file",{bubbles:!0,detail:{fileKey:n,fileName:l,metaKey:this.metaKey||""}}));return}const i=t.key||t,o=t.name||(typeof i=="string"?i.split("/").pop():"download")||"download",a=new CustomEvent("dt:download-file",{bubbles:!0,detail:{fileKey:i,fileName:o,metaKey:this.metaKey,onSuccess:()=>{},onError:r=>{console.error("Download error:",r),this.error=r.message||"Download failed"}}});this.dispatchEvent(a)}_validateRequired(){var i,o,a,r;const t=Array.isArray(this.value)?this.value:[];this.required&&t.length===0?(this.invalid=!0,(o=(i=this.internals)==null?void 0:i.setValidity)==null||o.call(i,{valueMissing:!0},this.requiredMessage||"This field is required")):(this.invalid=!1,(r=(a=this.internals)==null?void 0:a.setValidity)==null||r.call(a,{}))}labelTemplate(){if(!this.label)return"";let t=null;if(this.icon&&this.icon.trim()){const i=this.icon.trim();if(i.startsWith("http://")||i.startsWith("https://")||i.startsWith("/")||i.startsWith("data:"))t=p`${this.iconAltText||`;else if(i.toLowerCase().includes("mdi")){const a=this._mdiToIconify(i);a&&(t=p``)}}return p` + `]}static get properties(){return{...super.properties,value:{type:Array,reflect:!0,converter:{fromAttribute:t=>{if(t==null||t==="")return[];try{const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}},toAttribute:t=>Array.isArray(t)&&t.length>0?JSON.stringify(t):""}},acceptedFileTypes:{type:Array,attribute:"accepted-file-types"},acceptedFileTypesLabel:{type:String,attribute:"accepted-file-types-label"},maxFileSize:{type:Number,attribute:"max-file-size"},maxFiles:{type:Number,attribute:"max-files"},deleteEnabled:{type:Boolean,attribute:"delete-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},downloadEnabled:{type:Boolean,attribute:"download-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},renameEnabled:{type:Boolean,attribute:"rename-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},displayLayout:{type:String,attribute:"display-layout"},fileTypeIcon:{type:String,attribute:"file-type-icon"},autoUpload:{type:Boolean,attribute:"auto-upload",converter:{fromAttribute:t=>{if(t==null)return!0;const i=String(t).toLowerCase().trim();return i!=="false"&&i!=="0"&&t!==!1}}},postType:{type:String,attribute:"post-type"},postId:{type:String,attribute:"post-id"},metaKey:{type:String,attribute:"meta-key"},keyPrefix:{type:String,attribute:"key-prefix"},uploading:{type:Boolean,state:!0},stagedFiles:{type:Array,state:!0},_uploadZoneExpanded:{type:Boolean,state:!0},_dragOver:{type:Boolean,state:!0},_editingFileKey:{type:String,state:!0},_editingFileName:{type:String,state:!0}}}connectedCallback(){super.connectedCallback(),this.addEventListener("dt:upload-files",this._handleUploadStagedEvent),this._boundKeydown=this._handleHostKeydown.bind(this)}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("dt:upload-files",this._handleUploadStagedEvent),this._removeKeydownListener(),this._cancelScheduledCollapse(),(t=this._resizeObserver)==null||t.disconnect()}_addKeydownListener(){this._keydownAttached||(this._keydownAttached=!0,this.addEventListener("keydown",this._boundKeydown,{capture:!0}))}_removeKeydownListener(){this._keydownAttached&&(this._keydownAttached=!1,this.removeEventListener("keydown",this._boundKeydown,{capture:!0}))}_handleHostKeydown(t){var o;if(!this._editingFileKey)return;const i=(o=this.shadowRoot)==null?void 0:o.querySelector(".file-name-edit");i&&(t.key==="Enter"||t.keyCode===13?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this._commitRename(this._editingFileKey,i.value)):(t.key==="Escape"||t.keyCode===27)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this._cancelRename()))}firstUpdated(t){Array.isArray(this.value)||(this.value=this._parseValue(this.value)),super.firstUpdated(t)}updated(t){super.updated(t),t.has("value")&&this._setFormValue(this.value),t.has("_editingFileKey")&&(this._editingFileKey?(this._addKeydownListener(),this.updateComplete.then(()=>{var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector(".file-name-edit");i&&(i.focus(),i.select())})):this._removeKeydownListener())}_expandUploadZone(){this._uploadZoneExpanded=!0}_scheduleCollapse(){this._cancelScheduledCollapse(),this._dragLeaveTimeout=setTimeout(()=>{this._uploadZoneExpanded=!1,this._dragLeaveTimeout=null},300)}_cancelScheduledCollapse(){this._dragLeaveTimeout&&(clearTimeout(this._dragLeaveTimeout),this._dragLeaveTimeout=null)}uploadStagedFiles(){this.stagedFiles.length>0&&this._uploadFiles(this.stagedFiles)}_removeStagedFile(t){t>=0&&to!==t),this.requestUpdate())}_parseValue(t){if(Array.isArray(t))return t;if(typeof t=="string")try{const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}return[]}_formatFileSize(t){return t<1024?`${t} B`:t<1048576?`${(t/1024).toFixed(1)} KB`:`${(t/1048576).toFixed(1)} MB`}_formatAcceptedTypes(){return this.acceptedFileTypesLabel?this.acceptedFileTypesLabel:(this.acceptedFileTypes||[]).join(", ")}_isImage(t){return(t.type||"").toLowerCase().startsWith("image/")}_mdiToIconify(t){if(!t||typeof t!="string")return"";const i=t.trim();return i.startsWith("mdi:")?i:i.includes("mdi-")?`mdi:${i.replace(/.*mdi-/,"").replace(/\s/g,"-")}`:i.startsWith("mdi ")?`mdi:${i.replace(/^mdi\s+/,"").replace(/\s/g,"-")}`:i}_getFileTypeIconMapping(){return{"application/pdf":"mdi:file-pdf-box","text/plain":"mdi:text-box-edit-outline","application/rtf":"mdi:text-box-edit-outline","text/rtf":"mdi:text-box-edit-outline","text/csv":"mdi:text-box-edit-outline","text/html":"mdi:language-html5","application/msword":"mdi:microsoft-word","application/json":"mdi:code-json","application/xml":"mdi:file-xml-box",".pdf":"mdi:file-pdf-box",".txt":"mdi:text-box-edit-outline",".rtf":"mdi:text-box-edit-outline",".csv":"mdi:text-box-edit-outline",".html":"mdi:language-html5",".htm":"mdi:language-html5",".docx":"mdi:microsoft-word",".doc":"mdi:microsoft-word",".json":"mdi:code-json",".xml":"mdi:file-xml-box"}}_getFileTypeIcon(t){if(this.fileTypeIcon&&this.fileTypeIcon.trim())return this.fileTypeIcon.trim();const i=(t.type||"").toLowerCase(),o=this._getFileTypeIconMapping();if(i&&o[i])return o[i];if(t.name){const a=t.name.split(".");if(a.length>1){const r="."+a.pop().toLowerCase();if(o[r])return o[r]}}return null}_renderFileTypeIcon(t){const i=this._getFileTypeIcon(t);if(!i)return null;if(/^(https?:|\/|data:)/.test(i))return h``;const a=this._mdiToIconify(i);return a?h``:null}_getFilePreviewUrl(t){const i=t.thumbnail_key||t.large_thumbnail_key;if(this._isImage(t)){if(t.large_thumbnail_url)return t.large_thumbnail_url;if(t.thumbnail_url)return t.thumbnail_url;if(t.url)return t.url;if(i)return null}return null}_handleFileSelect(t){const i=Array.from(t.target.files||[]);i.length!==0&&(t.target.value="",this._processFiles(i))}_handleDrop(t){if(t.preventDefault(),t.stopPropagation(),this._dragOver=!1,t.currentTarget.classList.remove("drag-over"),this.disabled||this.uploading)return;const i=Array.from(t.dataTransfer.files||[]);i.length!==0&&this._processFiles(i)}_handleDragOver(t){t.preventDefault(),t.stopPropagation(),!this.disabled&&!this.uploading&&(this._dragOver=!0,this._expandUploadZone(),this._cancelScheduledCollapse(),t.currentTarget.classList.add("drag-over"))}_handleDragLeave(t){t.preventDefault(),t.stopPropagation(),this._dragOver=!1,t.currentTarget.classList.remove("drag-over"),this._scheduleCollapse()}_handleZoneClick(t){var i;if(!t.target.closest('input[type="file"]')&&(this._expandUploadZone(),this._cancelScheduledCollapse(),!this.disabled&&!this.uploading)){const o=(i=this.shadowRoot)==null?void 0:i.querySelector('input[type="file"]');o&&o.click()}}_handleZoneMouseEnter(){!this.disabled&&!this.uploading&&(this._expandUploadZone(),this._cancelScheduledCollapse())}_handleZoneMouseLeave(){this._scheduleCollapse()}_processFiles(t){const i=this._validateFiles(t);if(i.length===0)return;this.error="";const o=(this.value||[]).length+this.stagedFiles.length;if(this.maxFiles&&o+i.length>this.maxFiles){this.error=`${this.maxFiles} files allowed`;return}this.autoUpload?this._uploadFiles(i):(this.stagedFiles=[...this.stagedFiles,...i],this._uploadZoneExpanded=!1,this.requestUpdate())}_validateFiles(t){const i=[],o=this.maxFileSize?this.maxFileSize*1024*1024:null,a=Array.isArray(this.acceptedFileTypes)?this.acceptedFileTypes:["image/*","application/pdf"],r=a.join(",");for(const n of t){if(o&&n.size>o){this.error=`File "${n.name}" exceeds ${this.maxFileSize} MB`;continue}if(r&&r!=="*"&&!a.some(d=>{if(d.startsWith("."))return n.name.toLowerCase().endsWith(d.toLowerCase());if(d.endsWith("/*")){const u=d.slice(0,-2);return(n.type||"").startsWith(u)}return n.type===d||n.name&&n.name.toLowerCase().endsWith(`.${d.split("/")[1]}`)})){this.error=`File type not allowed: ${n.name}`;continue}i.push(n)}return i}_isStandaloneMode(){return!this.postType||!this.postId||!this.metaKey}async _filesToMockFileObjects(t){const i=[];for(const o of t){const r={key:`standalone_${Date.now()}_${Math.random().toString(36).slice(2)}_${o.name}`,name:o.name,type:o.type||"application/octet-stream",size:o.size};if(this._isImage({type:o.type}))try{const n=URL.createObjectURL(o);i.push({...r,url:n,thumbnail_url:n})}catch{i.push({...r,url:"#"})}else i.push({...r,url:"#"})}return i}getPendingFilesForUpload(){const t=[...this.stagedFiles||[]],i=new Set(t.map(a=>`${(a==null?void 0:a.name)||""}::${(a==null?void 0:a.size)||0}::${(a==null?void 0:a.lastModified)||0}`)),o=this._parseValue(this.value);for(const a of o){const r=String((a==null?void 0:a.key)||a||"");if(!r)continue;const n=this._standaloneFilesByKey.get(r);if(!n)continue;const l=`${(n==null?void 0:n.name)||""}::${(n==null?void 0:n.size)||0}::${(n==null?void 0:n.lastModified)||0}`;i.has(l)||(t.push(n),i.add(l))}return t}async _uploadFiles(t){if(this._isStandaloneMode()){const o=this._parseValue(this.value);this.uploading=!0,this.loading=!0,this.error="";try{const a=await this._filesToMockFileObjects(t);a.forEach((n,l)=>{n!=null&&n.key&&t[l]&&this._standaloneFilesByKey.set(String(n.key),t[l])});const r=[...o,...a];this.value=r,this.stagedFiles=[],this._uploadZoneExpanded=!1,this.saved=!0,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:r}}))}catch(a){this.error=(a==null?void 0:a.message)||"Upload failed"}finally{this.uploading=!1,this.loading=!1}return}this.uploading=!0,this.loading=!0,this.error="";const i=new CustomEvent("dt:upload",{bubbles:!0,detail:{files:t,metaKey:this.metaKey,keyPrefix:this.keyPrefix||"",onSuccess:({result:o,fieldValue:a})=>{const r=this._parseValue(this.value);let n=r;const l=(o.uploaded_files||[]).filter(d=>d.uploaded&&d.file).map(d=>d.file);if(l.length>0){const d=new Set(r.map(p=>String(p.key||p))),u=[...r];for(const p of l){const g=String(p.key||p);d.has(g)||(u.push(p),d.add(g))}n=u,this.value=n}else Array.isArray(a)&&a.length>0&&(n=a,this.value=n);this.stagedFiles=[],this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:r,newValue:n}})),this._uploadZoneExpanded=!1,this.saved=!0,this.uploading=!1,this.loading=!1},onError:o=>{console.error("Upload error:",o),this.error=o.message||"Upload failed",this.uploading=!1,this.loading=!1}}});this.dispatchEvent(i)}async _deleteFile(t){if(!this.deleteEnabled||!confirm("Are you sure you want to delete this file?"))return;if(this._isStandaloneMode()){const o=this._parseValue(this.value),a=o.find(n=>(n.key||n)===t);a&&a.url&&a.url.startsWith("blob:")&&URL.revokeObjectURL(a.url),a&&a.thumbnail_url&&a.thumbnail_url.startsWith("blob:")&&a.thumbnail_url!==a.url&&URL.revokeObjectURL(a.thumbnail_url),this._standaloneFilesByKey.delete(String(t));const r=o.filter(n=>(n.key||n)!==t);this.value=r,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:r}})),this.dispatchEvent(new CustomEvent("dt:delete-file",{bubbles:!0,detail:{fileKey:t,metaKey:this.metaKey||""}}));return}if(!this.postType||!this.postId||!this.metaKey)return;this.loading=!0,this.error="";const i=new CustomEvent("dt:delete-file",{bubbles:!0,detail:{fileKey:t,metaKey:this.metaKey,onSuccess:()=>{const o=this._parseValue(this.value),a=o.filter(r=>(r.key||r)!==t);this.value=a,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:a}})),this.loading=!1},onError:o=>{console.error("Delete error:",o),this.error=o.message||"Delete failed",this.loading=!1}}});this.dispatchEvent(i)}async _renameFile(t,i){if(!this.renameEnabled)return;if(this._isStandaloneMode()){const a=this._parseValue(this.value),r=a.map(n=>(n.key||n)===t?{...n,name:i}:n);this.value=r,this._editingFileKey="",this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:a,newValue:r}})),this.dispatchEvent(new CustomEvent("dt:rename-file",{bubbles:!0,detail:{fileKey:t,newName:i,metaKey:this.metaKey||""}}));return}if(!this.postType||!this.postId||!this.metaKey)return;this.loading=!0,this.error="";const o=new CustomEvent("dt:rename-file",{bubbles:!0,detail:{fileKey:t,newName:i,metaKey:this.metaKey,onSuccess:()=>{const a=this._parseValue(this.value),r=a.map(n=>(n.key||n)===t?{...n,name:i}:n);this.value=r,this._editingFileKey="",this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:a,newValue:r}})),this.loading=!1},onError:a=>{console.error("Rename error:",a),this.error=(a==null?void 0:a.message)||"Rename failed",this.loading=!1}}});this.dispatchEvent(o)}_startRename(t,i){!this.renameEnabled||this.disabled||(this._editingFileKey=typeof t=="string"?t:String(t),this._editingFileName=i||"")}_commitRename(t,i){if(this._suppressRenameBlurCommit){this._suppressRenameBlurCommit=!1;return}if(!this._editingFileKey||this._editingFileKey!==t)return;const o=(i??this._editingFileName??"").trim();if(this._editingFileKey="",this._editingFileName="",!o)return;const r=this._parseValue(this.value).find(l=>(l.key||l)===t),n=(r==null?void 0:r.name)||(typeof t=="string"?t.split("/").pop():"");o!==n&&this._renameFile(t,o)}_cancelRename(){this._suppressRenameBlurCommit=!0,this._editingFileKey="",this._editingFileName="",setTimeout(()=>{this._suppressRenameBlurCommit=!1},0)}_handleRenameBlur(t,i){if(this._suppressRenameBlurCommit){this._suppressRenameBlurCommit=!1;return}this._commitRename(t,i)}_downloadFile(t){if(!this.downloadEnabled)return;if(this._isStandaloneMode()){const r=t.url;if(!r)return;const n=t.key||t,l=t.name||(typeof n=="string"?n.split("/").pop():"download")||"download",d=document.createElement("a");d.href=r,d.download=l,d.target="_blank",d.rel="noopener",document.body.appendChild(d),d.click(),document.body.removeChild(d),this.dispatchEvent(new CustomEvent("dt:download-file",{bubbles:!0,detail:{fileKey:n,fileName:l,metaKey:this.metaKey||""}}));return}const i=t.key||t,o=t.name||(typeof i=="string"?i.split("/").pop():"download")||"download",a=new CustomEvent("dt:download-file",{bubbles:!0,detail:{fileKey:i,fileName:o,metaKey:this.metaKey,onSuccess:()=>{},onError:r=>{console.error("Download error:",r),this.error=r.message||"Download failed"}}});this.dispatchEvent(a)}_validateRequired(){var i,o,a,r;const t=Array.isArray(this.value)?this.value:[];this.required&&t.length===0?(this.invalid=!0,(o=(i=this.internals)==null?void 0:i.setValidity)==null||o.call(i,{valueMissing:!0},this.requiredMessage||"This field is required")):(this.invalid=!1,(r=(a=this.internals)==null?void 0:a.setValidity)==null||r.call(a,{}))}labelTemplate(){if(!this.label)return"";let t=null;if(this.icon&&this.icon.trim()){const i=this.icon.trim();if(i.startsWith("http://")||i.startsWith("https://")||i.startsWith("/")||i.startsWith("data:"))t=h`${this.iconAltText||`;else if(i.toLowerCase().includes("mdi")){const a=this._mdiToIconify(i);a&&(t=h``)}}return h` - ${t?p`${t}`:p``} + ${t?h`${t}`:h``} ${this.label} - `}render(){const t=this._parseValue(this.value),o=(this.displayLayout||"grid")==="grid";return p` + `}render(){const t=this._parseValue(this.value),o=(this.displayLayout||"grid")==="grid";return h`
    ${this.labelTemplate()}
    - - - + + +
    - ${B(this.stagedFiles.length>0&&!this.autoUpload,()=>p` -
    -
    Staged files (${this.stagedFiles.length})
    - ${pe(this.stagedFiles,(a,r)=>`${a.name}-${a.size}-${r}`,(a,r)=>p` -
    - ${a.name} (${this._formatFileSize(a.size)}) - + ${q(this.stagedFiles.length>0&&!this.autoUpload,()=>h` +
    +
    + Staged files (${this.stagedFiles.length})
    - `)} - -
    - `)} - - ${B(this.loading||this.saved,()=>p` + ${H(this.stagedFiles,(a,r)=>`${a.name}-${a.size}-${r}`,(a,r)=>h` +
    + ${a.name} (${this._formatFileSize(a.size)}) + +
    + `)} + +
    + `)} + ${q(this.loading||this.saved,()=>h`
    - ${this.renderIconLoading()} - ${this.renderIconSaved()} + ${this.renderIconLoading()} ${this.renderIconSaved()}
    `)} - - ${B(t.length>0,()=>p` -
    -
    - ${pe(t,a=>a.key||a,a=>{const r=typeof a.key=="string"?a.key:typeof a=="string"?a:String(a.key??a.name??""),n=a.name||(typeof r=="string"?r.split("/").pop():""),l=a.size,d=this._getFilePreviewUrl(a),u=this._isImage(a),h=this._editingFileKey===r;return p` -
    - ${B(d,()=>p` - {!d&&!a.url&&g.preventDefault()}} - > - ${n} - - `,()=>p` - ${a.url?p` - - ${this._renderFileTypeIcon(a)||(u?p``:p``)} - - `:p` -
    - ${this._renderFileTypeIcon(a)||(u?p``:p``)} -
    - `} - `)} - ${B(h,()=>p` - {this._editingFileName=g.target.value}} - @keydown=${g=>{g.key==="Enter"||g.keyCode===13?(g.preventDefault(),g.stopPropagation(),this._commitRename(r,g.target.value)):(g.key==="Escape"||g.keyCode===27)&&(g.preventDefault(),this._cancelRename())}} - @blur=${g=>this._handleRenameBlur(r,g.target.value)} - @click=${g=>g.stopPropagation()} - /> - `,()=>p` -
    {g.stopPropagation(),this.renameEnabled&&!this.disabled&&this._startRename(r,n)}} - @keydown=${g=>{this.renameEnabled&&!this.disabled&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),this._startRename(r,n))}} - > - ${n} -
    - `)} - ${B(l!=null,()=>p`
    ${this._formatFileSize(l)}
    `)} -
    - ${B(this.downloadEnabled&&a.url,()=>p` - + ${q(t.length>0,()=>h` +
    +
    + ${H(t,a=>a.key||a,a=>{const r=typeof a.key=="string"?a.key:typeof a=="string"?a:String(a.key??a.name??""),n=a.name||(typeof r=="string"?r.split("/").pop():""),l=a.size,d=this._getFilePreviewUrl(a),u=this._isImage(a),p=this._editingFileKey===r;return h` +
    + ${q(d,()=>h` + {!d&&!a.url&&g.preventDefault()}} + > + ${n} + + `,()=>h` + ${a.url?h` + + ${this._renderFileTypeIcon(a)||(u?h``:h``)} + + `:h` +
    + ${this._renderFileTypeIcon(a)||(u?h``:h``)} +
    + `} `)} - ${B(this.deleteEnabled&&!this.disabled,()=>p` - + ${q(p,()=>h` + {this._editingFileName=g.target.value}} + @keydown=${g=>{g.key==="Enter"||g.keyCode===13?(g.preventDefault(),g.stopPropagation(),this._commitRename(r,g.target.value)):(g.key==="Escape"||g.keyCode===27)&&(g.preventDefault(),this._cancelRename())}} + @blur=${g=>this._handleRenameBlur(r,g.target.value)} + @click=${g=>g.stopPropagation()} + /> + `,()=>h` +
    {g.stopPropagation(),this.renameEnabled&&!this.disabled&&this._startRename(r,n)}} + @keydown=${g=>{this.renameEnabled&&!this.disabled&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),this._startRename(r,n))}} + > + ${n} +
    `)} + ${q(l!=null,()=>h`
    + ${this._formatFileSize(l)} +
    `)} +
    + ${q(this.downloadEnabled&&a.url,()=>h` + + `)} + ${q(this.deleteEnabled&&!this.disabled,()=>h` + + `)} +
    -
    - `})} + `})} +
    -
    - `)} - - ${this.renderIconInvalid()} - ${this.renderError()} + `)} + ${this.renderIconInvalid()} ${this.renderError()}
    - `}}customElements.define("dt-file-upload",So);class Eo extends N{static get styles(){return $` + `}}customElements.define("dt-file-upload",Eo);class Ao extends N{static get styles(){return $` :host { display: block; } @@ -3869,7 +4094,7 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn display: flex; align-items: center; } - `}static get properties(){return{context:{type:String},dismissable:{type:Boolean},timeout:{type:Number},hide:{type:Boolean},outline:{type:Boolean}}}get classes(){const e={"dt-alert":!0,"dt-alert--outline":this.outline},t=`dt-alert--${this.context}`;return e[t]=!0,e}constructor(){super(),this.context="default"}connectedCallback(){super.connectedCallback(),this.timeout&&setTimeout(()=>{this._dismiss()},this.timeout)}_dismiss(){this.hide=!0}render(){if(this.hide)return p``;const e=p` + `}static get properties(){return{context:{type:String},dismissable:{type:Boolean},timeout:{type:Number},hide:{type:Boolean},outline:{type:Boolean}}}get classes(){const e={"dt-alert":!0,"dt-alert--outline":this.outline},t=`dt-alert--${this.context}`;return e[t]=!0,e}constructor(){super(),this.context="default"}connectedCallback(){super.connectedCallback(),this.timeout&&setTimeout(()=>{this._dismiss()},this.timeout)}_dismiss(){this.hide=!0}render(){if(this.hide)return h``;const e=h` xmlns="http://www.w3.org/2000/svg"> - `;return p` + `;return h` - `}}window.customElements.define("dt-alert",Eo);class Ao extends N{static get styles(){return $` + `}}window.customElements.define("dt-alert",Ao);class To extends N{static get styles(){return $` :host { font-family: var(--dt-tile-font-family, var(--font-family)); font-size: var(--dt-tile-font-size, 14px); @@ -3984,10 +4209,10 @@ var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn top: 0; transform: rotate(135deg); } - `}static get properties(){return{title:{type:String},expands:{type:Boolean},collapsed:{type:Boolean},gap:{type:String}}}get hasHeading(){return this.title||this.expands}_toggle(){this.collapsed=!this.collapsed}renderHeading(){return this.hasHeading?p` + `}static get properties(){return{title:{type:String},expands:{type:Boolean},collapsed:{type:Boolean},gap:{type:String}}}get hasHeading(){return this.title||this.expands}_toggle(){this.collapsed=!this.collapsed}renderHeading(){return this.hasHeading?h`

    ${this.title} - ${this.expands?p` + ${this.expands?h`

    - `:O}render(){return p` + `:O}render(){return h`
    ${this.renderHeading()}
    - `}}window.customElements.define("dt-tile",Ao);class Le{get api(){return this._api}constructor(e,t,i,o="wp-json"){this.postType=e,this.postId=t,this.nonce=i,this.debounceTimers={},this._api=new vi(this.nonce,o),this.apiRoot=this._api.apiRoot,this.autoSaveComponents=["dt-connection","dt-users-connection","dt-date","dt-datetime","dt-location","dt-location-map","dt-multi-select","dt-number","dt-single-select","dt-tags","dt-text","dt-textarea","dt-toggle","dt-multi-text","dt-multi-select-button-group","dt-button","dt-church-health-circle"],this.dynamicLoadComponents=["dt-connection","dt-tags","dt-modal","dt-button","dt-location","dt-users-connection"]}initialize(){this.postId&&this.enableAutoSave(),this.attachLoadEvents(),this.attachFileUploadEvents()}async attachLoadEvents(e){const t=document.querySelectorAll(e||this.dynamicLoadComponents.join(","));t&&t.forEach(i=>{i.dataset.eventDtGetData||(i.addEventListener("dt:get-data",this.handleGetDataEvent.bind(this)),i.dataset.eventDtGetData=!0)})}async checkDuplicates(e,t){const i=document.querySelector("dt-modal.duplicate-detected");if(i){const o=i.shadowRoot.querySelector(".duplicates-detected-button");o&&(o.style.display="none");const a=await this._api.checkDuplicateUsers(this.postType,this.postId);t&&a.ids.length>0&&o&&(o.style.display="block")}}enableAutoSave(e){const t=document.querySelectorAll(e||this.autoSaveComponents.join(","));t&&t.forEach(i=>{i.addEventListener("change",this.handleChangeEvent.bind(this))})}attachFileUploadEvents(e){const t=document.querySelectorAll(e||"dt-file-upload");t&&t.forEach(i=>{i.dataset.eventDtUpload||(i.addEventListener("dt:upload",this.handleUploadEvent.bind(this)),i.addEventListener("dt:delete-file",this.handleDeleteFileEvent.bind(this)),i.addEventListener("dt:rename-file",this.handleRenameFileEvent.bind(this)),i.addEventListener("dt:download-file",this.handleDownloadFileEvent.bind(this)),i.dataset.eventDtUpload=!0)})}async handleGetDataEvent(e){const t=e.detail;if(t){const{field:i,query:o,onSuccess:a,onError:r}=t;try{const n=e.target.tagName.toLowerCase();let l=[];switch(n){case"dt-button":l=await this._api.getContactInfo(this.postType,this.postId);break;case"dt-connection":{const d=t.postType||this.postType,u=await this._api.listPostsCompact(d,o),h={...u,posts:u.posts.filter(g=>g.ID!==parseInt(this.postId,10))};h!=null&&h.posts&&(l=Le.convertApiValue("dt-connection",h==null?void 0:h.posts));break}case"dt-users-connection":{const d=t.postType||this.postType,u=await this._api.searchUsers(d,o),h={...u,posts:u.filter(g=>g.ID!==parseInt(this.postId,10))};h!=null&&h.posts&&(l=Le.convertApiValue("dt-users-connection",h==null?void 0:h.posts));break}case"dt-location":{l=await this._api.getLocations(this.postType,i,t.filter,o),l=l.location_grid.map(d=>({id:d.ID,label:d.name}));break}case"dt-tags":default:l=await this._api.getMultiSelectValues(this.postType,i,o),l=l.map(d=>({id:d,label:d}));break}a(l)}catch(n){r(n)}}}async handleChangeEvent(e){const t=e.detail;if(t){const{field:i,newValue:o,oldValue:a,remove:r}=t,n=e.target.tagName.toLowerCase(),l=Le.convertValue(n,o,a);if(e.target.removeAttribute("saved"),e.target.setAttribute("loading",!0),n==="dt-number"){const d=`${this.postType}-${this.postId}-${i}`;this.debounce(d,async()=>{try{const u=await this._api.updatePost(this.postType,this.postId,{[i]:l});document.dispatchEvent(new CustomEvent("dt:post:update",{detail:{response:u,field:i,value:l,component:n}})),e.target.removeAttribute("loading"),e.target.setAttribute("error",""),e.target.setAttribute("saved",!0)}catch(u){console.error(u),e.target.removeAttribute("loading"),e.target.setAttribute("invalid",!0),e.target.setAttribute("error",u.message||u.toString())}},1e3)}else try{const d={[i]:l};if(n==="dt-location-map"){const h=l.values.filter(g=>!g.lng||!g.lat);d[i].values=l.values.filter(g=>g.lng&&g.lat),d.contact_address=h,d.contact_address.length===0&&delete d.contact_address,d[i].values.length===0&&delete d[i]}const u=await this._api.updatePost(this.postType,this.postId,d);if(document.dispatchEvent(new CustomEvent("dt:post:update",{detail:{response:u,field:i,value:l,component:n}})),n==="dt-location-map"){const h=e.target;h.value=u[i]}e.target.removeAttribute("loading"),e.target.setAttribute("error",""),e.target.setAttribute("saved",!0)}catch(d){console.error(d),e.target.removeAttribute("loading"),e.target.setAttribute("invalid",!0),e.target.setAttribute("error",d.message||d.toString())}}}async handleUploadEvent(e){const t=e.detail;if(!t)return;const{files:i,metaKey:o,keyPrefix:a,onSuccess:r,onError:n}=t,l=e.target;l.setAttribute("loading",!0),l.removeAttribute("saved"),l.removeAttribute("error");try{const d=await this._api.uploadFiles(this.postType,this.postId,i,o,a||""),h=(await this._api.getPost(this.postType,this.postId))[o]||[];r&&r({result:d,fieldValue:h})}catch(d){l.setAttribute("error",d.message||"Upload failed"),n&&n(d)}finally{l.removeAttribute("loading")}}async handleDeleteFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,metaKey:o,onSuccess:a,onError:r}=t,n=e.target;n.setAttribute("loading",!0),n.removeAttribute("saved"),n.removeAttribute("error");try{await this._api.deleteFile(this.postType,this.postId,o,i),a&&a()}catch(l){n.setAttribute("error",l.message||"Delete failed"),r&&r(l)}finally{n.removeAttribute("loading")}}async handleRenameFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,newName:o,metaKey:a,onSuccess:r,onError:n}=t,l=e.target;l.setAttribute("loading",!0),l.removeAttribute("saved"),l.removeAttribute("error");try{const d=await this._api.renameFile(this.postType,this.postId,a,i,o);r&&r(d)}catch(d){l.setAttribute("error",d.message||"Rename failed"),n&&n(d)}finally{l.removeAttribute("loading")}}async handleDownloadFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,fileName:o,metaKey:a,onSuccess:r,onError:n}=t,l=e.target;try{const d=await this._api.downloadFile(this.postType,this.postId,a,i),u=window.URL.createObjectURL(d),h=document.createElement("a");h.href=u,h.download=o||"download",document.body.appendChild(h),h.click(),document.body.removeChild(h),window.URL.revokeObjectURL(u),r&&r()}catch(d){l.setAttribute("error",d.message||"Download failed"),n&&n(d)}}debounce(e,t,i){this.debounceTimers[e]&&clearTimeout(this.debounceTimers[e]),this.debounceTimers[e]=setTimeout(()=>{t()},i)}static convertApiValue(e,t){let i=t;switch(e){case"dt-connection":i=t.map(o=>({id:o.ID,label:o.name??o.post_title,link:o.permalink,status:o.status}));break;case"dt-users-connection":t&&!Array.isArray(t)&&(t.id||t.ID)?i=[{id:t.id||t.ID,label:t.display,avatar:t.avatar||""}]:Array.isArray(t)&&(i=t.map(o=>({id:o.id||o.ID,label:o.display||o.name,avatar:o.avatar||""})));break}return i}static convertValue(e,t,i=null){let o=t;if(t)switch(e.toLowerCase()){case"dt-toggle":typeof t=="string"&&(o=t.toLowerCase()==="true");break;case"dt-church-health-circle":case"dt-multi-select":case"dt-multi-select-button-group":case"dt-tags":typeof t=="string"&&(o=[t]),o={values:o.map(r=>{if(typeof r=="string"){const l={value:r};return r.startsWith("-")&&(l.delete=!0,l.value=r.substring(1)),l}const n={value:r.id};return r.delete&&(n.delete=r.delete),n}),force_values:!1};break;case"dt-users-connection":{const r=[],n=o.filter(d=>!d.delete);if(n.length<=1){o=n.length===1?parseInt(n[0].id,10):"";break}const l=new Map((i||[]).map(d=>[d.id,d]));for(const d of o){const u=l.get(d.id),h={id:d.id,changes:{}};if(u){let g=!1;const y=new Set([...Object.keys(u),...Object.keys(d)]);for(const _ of y)d[_]!==u[_]&&(h.changes[_]=Object.prototype.hasOwnProperty.call(d,_)?d[_]:void 0,g=!0);if(g){r.push(h);break}}else{h.changes={...d},r.push(h);break}}o=r[0].id;break}case"dt-connection":typeof t=="string"&&(o=[{id:t}]),o={values:o.map(r=>{const n={value:r.id};return r.delete&&(n.delete=r.delete),n}),force_values:!1};break;case"dt-location":const a=new Set((i||[]).map(r=>r.id));typeof t=="string"?o=[{id:t}]:o=t.filter(r=>!(a.has(r.id)&&!r.delete)),o={values:o.map(r=>{const n={value:r.id};return r.delete&&(n.delete=r.delete),n}),force_values:!1};break;case"dt-location-map":if(o=t.filter(r=>!((i||[]).includes(r)&&!r.delete)),i)for(const r of i)t.some(l=>r.id&&l.id&&r.id===l.id||r.key&&l.key&&r.key===l.key&&(!l.lat||!l.lng))||(r.delete=!0,o.push(r));o={values:o.map(r=>{const n=r;return r.delete&&(n.delete=r.delete),n}),force_values:!1};break;case"dt-multi-text":Array.isArray(t)?o=t.map(r=>{const n={...r};return delete n.tempKey,n}):typeof t=="string"&&(o=[{value:t}]);break}return o}static valueArrayDiff(e,t){const i={value1:[],value2:[]};if(Array.isArray(e)||(e=[]),Array.isArray(t)||(t=[]),e.length>0&&typeof e[0]!="object")return i.value1=e.filter(n=>!t.includes(n)),i.value2=t.filter(n=>!e.includes(n)),i;const o=n=>JSON.stringify(n),a=new Map(e.map(n=>[o(n),n])),r=new Map(t.map(n=>[o(n),n]));for(const[n,l]of a)r.has(n)||i.value1.push(l);for(const[n,l]of r)a.has(n)||i.value2.push(l);return i}}const Ua="0.8.10",Va={s226be12a5b1a27e8:"ሰነዶቹን ያንብቡ",s33f85f24c0f5f008:"አስቀምጥ",s36cb242ac90353bc:"መስኮች",s41cb4006238ebd3b:"የጅምላ አርትዕ",s5e8250fb85d64c23:"ገጠመ",s625ad019db843f94:"ተጠቀም",sac83d7f9358b43db:m`${0} ዝርዝር`,sbf1ca928ec1deb62:"ተጨማሪ እገዛ ይፈልጋሉ?",sd1a8dc951b2b6a98:"በዝርዝሩ ውስጥ እንደ ዓምዶች የትኞቹን መስኮች እንደሚያሳዩ ይምረጡ",sf9aee319a006c9b4:"አክል",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ba=Object.freeze(Object.defineProperty({__proto__:null,templates:Va},Symbol.toStringTag,{value:"Module"})),Ha={s04ceadb276bbe149:"خيارات التحميل...",s226be12a5b1a27e8:"اقرأ الوثائق",s29e25f5e4622f847:"افتح",s33f85f24c0f5f008:"حفظ",s36cb242ac90353bc:"مجالات",s41cb4006238ebd3b:"التحرير بالجملة",s5e8250fb85d64c23:"غلق",s625ad019db843f94:"استخدام",s9d51bfd93b5dbeca:"عرض المحفوظات",sac83d7f9358b43db:m`${0}قائمة الأعضاء`,sb1bd536b63e9e995:"المجال الخاص: أنا فقط أستطيع رؤية محتواه",sb59d68ed12d46377:"جار التحميل",sbf1ca928ec1deb62:"هل تريد المزيد من المساعدة؟",scb9a1ff437efbd2a:m`حَدِّد جميع ${0} التي تريد تحديثها من القائمة ، وقم بتحديثها أدناه`,sd1a8dc951b2b6a98:"اختر المجالات المراد عرضها كأعمدة في القائمة",seafe6ef133ede7da:m`عرض 1 of ${0}`,sf9aee319a006c9b4:"لأضف",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},Ka=Object.freeze(Object.defineProperty({__proto__:null,templates:Ha},Symbol.toStringTag,{value:"Module"})),Wa={s226be12a5b1a27e8:"اقرأ الوثائق",s33f85f24c0f5f008:"حفظ",s36cb242ac90353bc:"مجالات",s41cb4006238ebd3b:"التحرير بالجملة",s5e8250fb85d64c23:"أغلق",s625ad019db843f94:"استخدام",sbf1ca928ec1deb62:"هل تريد المزيد من المساعدة؟",sd1a8dc951b2b6a98:"اختر المجالات المراد عرضها كأعمدة في القائمة",sf9aee319a006c9b4:"إضافة",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ga=Object.freeze(Object.defineProperty({__proto__:null,templates:Wa},Symbol.toStringTag,{value:"Module"})),Za={s226be12a5b1a27e8:"Прочетете документацията",s33f85f24c0f5f008:"Запазете",s36cb242ac90353bc:"Полета",s41cb4006238ebd3b:"Групово редактиране",s5e8250fb85d64c23:"Близо",s625ad019db843f94:"Използвайте",sbf1ca928ec1deb62:"Имате нужда от повече помощ?",sd1a8dc951b2b6a98:"Изберете кои полета да се показват като колони в списъка",sf9aee319a006c9b4:"Добавяне",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ja=Object.freeze(Object.defineProperty({__proto__:null,templates:Za},Symbol.toStringTag,{value:"Module"})),Qa={s226be12a5b1a27e8:"নথিপত্রাদি পাঠ করুন",s33f85f24c0f5f008:"সংরক্ষণ করুন",s36cb242ac90353bc:"ক্ষেত্র",s41cb4006238ebd3b:"বাল্ক এডিট",s5e8250fb85d64c23:"বন্ধ",s625ad019db843f94:"ব্যবহার",sbf1ca928ec1deb62:"আরও সাহায্য প্রয়োজন?",sd1a8dc951b2b6a98:"তালিকার কলাম হিসাবে কোন ক্ষেত্রগুলি প্রদর্শিত হবে তা চয়ন করুন",sf9aee319a006c9b4:"অ্যাড",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Xa=Object.freeze(Object.defineProperty({__proto__:null,templates:Qa},Symbol.toStringTag,{value:"Module"})),Ya={s04ceadb276bbe149:"Učitavanje opcija...",s226be12a5b1a27e8:"Pročitajte dokumentaciju",s29e25f5e4622f847:"Otvorite dijalog",s33f85f24c0f5f008:"Sačuvaj",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Skupno uređivanje",s5e8250fb85d64c23:"Zatvori",s625ad019db843f94:"Koristi",s9d51bfd93b5dbeca:"Prikaži arhivirano",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Privatno polje: Samo ja mogu vidjeti njegov sadržaj",sb59d68ed12d46377:"Učitavanje",sbf1ca928ec1deb62:"Trebate više pomoći?",scb9a1ff437efbd2a:m`Odaberite sve ${0} koje želite ažurirati sa liste i ažurirajte ih ispod`,sd1a8dc951b2b6a98:"Odaberite koja polja će se prikazati kao kolone na listi",seafe6ef133ede7da:m`Prikazuje se 1 od ${0}`,sf9aee319a006c9b4:"Dodati",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},er=Object.freeze(Object.defineProperty({__proto__:null,templates:Ya},Symbol.toStringTag,{value:"Module"})),tr={s226be12a5b1a27e8:"Přečtěte si dokumentaci",s33f85f24c0f5f008:"Uložit",s36cb242ac90353bc:"Pole",s41cb4006238ebd3b:"Hromadná úprava",s5e8250fb85d64c23:"Zavřít",s625ad019db843f94:"Použití",sbf1ca928ec1deb62:"Potřebujete další pomoc?",sd1a8dc951b2b6a98:"Vyberte pole, která chcete v seznamu zobrazit jako sloupce",sf9aee319a006c9b4:"Přidat",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},ir=Object.freeze(Object.defineProperty({__proto__:null,templates:tr},Symbol.toStringTag,{value:"Module"})),or={s226be12a5b1a27e8:"Lesen Sie die Dokumentation",s33f85f24c0f5f008:"Speichern",s36cb242ac90353bc:"Felder",s41cb4006238ebd3b:"Im Stapel bearbeiten",s5e8250fb85d64c23:"Schließen",s625ad019db843f94:"Verwenden",sbf1ca928ec1deb62:"Benötigen Sie weitere Hilfe?",sd1a8dc951b2b6a98:"Wählen Sie aus, welche Felder in der Liste als Spalte angezeigt werden sollen",sf9aee319a006c9b4:"Hinzufügen",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},sr=Object.freeze(Object.defineProperty({__proto__:null,templates:or},Symbol.toStringTag,{value:"Module"})),ar={s226be12a5b1a27e8:"Διαβάστε την τεκμηρίωση",s33f85f24c0f5f008:"Αποθήκευση",s36cb242ac90353bc:"Πεδία",s41cb4006238ebd3b:"Μαζική Επεξεργασία",s5e8250fb85d64c23:"Κλείσιμο",s625ad019db843f94:"Χρήση",sbf1ca928ec1deb62:"Χρειάζεστε περισσότερη βοήθεια;",sd1a8dc951b2b6a98:"Επιλέξτε ποια πεδία θα εμφανίζονται ως στήλες στη λίστα",sf9aee319a006c9b4:"Προσθήκη",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},rr=Object.freeze(Object.defineProperty({__proto__:null,templates:ar},Symbol.toStringTag,{value:"Module"})),nr={sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",sf9aee319a006c9b4:"Add",sbf1ca928ec1deb62:"Need more help?",s226be12a5b1a27e8:"Read the documentation",s5e8250fb85d64c23:"Close",s29e25f5e4622f847:"Open Dialog",s33f85f24c0f5f008:"Save",s49730f3d5751a433:"Loading...",s625ad019db843f94:"Use",sd1a8dc951b2b6a98:"Choose which fields to display as columns in the list",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s36cb242ac90353bc:"Fields",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},lr=Object.freeze(Object.defineProperty({__proto__:null,templates:nr},Symbol.toStringTag,{value:"Module"})),dr={s8900c9de2dbae68b:"No hay opciones disponibles",sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sf9aee319a006c9b4:"Añadir",sd1a8dc951b2b6a98:"Choose which fields to display as columns in the list",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sb9b8c412407d5691:"This is where the bulk edit form will go.",sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s36cb242ac90353bc:"Fields",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading",sbf1ca928ec1deb62:"Need more help?",s226be12a5b1a27e8:"Read the documentation",s5e8250fb85d64c23:"Close",s29e25f5e4622f847:"Open Dialog"},cr=Object.freeze(Object.defineProperty({__proto__:null,templates:dr},Symbol.toStringTag,{value:"Module"})),ur={s04ceadb276bbe149:"Cargando opciones...",s226be12a5b1a27e8:"Leer la documentación",s29e25f5e4622f847:"Abrir Diálogo",s33f85f24c0f5f008:"Guardar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edición masiva",s5e8250fb85d64c23:"Cerrar",s625ad019db843f94:"Usar",s9d51bfd93b5dbeca:"Mostrar archivado",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sb59d68ed12d46377:"Cargando",sbf1ca928ec1deb62:"¿Necesitas más ayuda?",scb9a1ff437efbd2a:m`Selecciona todos los ${0} que quieras actualizar del listado y actualízalos debajo`,sd1a8dc951b2b6a98:"Elige qué campos mostrar como columnas en el listado",seafe6ef133ede7da:m`Mostrando 1 de ${0}`,sf9aee319a006c9b4:"Agregar",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},hr=Object.freeze(Object.defineProperty({__proto__:null,templates:ur},Symbol.toStringTag,{value:"Module"})),pr={s04ceadb276bbe149:"Cargando opciones...",s226be12a5b1a27e8:"Lee la documentación",s29e25f5e4622f847:"Abrir Diálogo",s33f85f24c0f5f008:"Guardar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edición masiva",s5e8250fb85d64c23:"Cerrar",s625ad019db843f94:"Usar",s9d51bfd93b5dbeca:"Mostrar archivado",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sb59d68ed12d46377:"Cargando",sbf1ca928ec1deb62:"¿Necesitas más ayuda?",scb9a1ff437efbd2a:m`Selecciona todos los ${0} que quieras actualizar del listado y actualízalos debajo`,sd1a8dc951b2b6a98:"Elige qué campos mostrar como columnas en el listado",seafe6ef133ede7da:m`Mostrando 1 de ${0}`,sf9aee319a006c9b4:"Agregar",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},fr=Object.freeze(Object.defineProperty({__proto__:null,templates:pr},Symbol.toStringTag,{value:"Module"})),br={s04ceadb276bbe149:"در حال بارگیری گزینه‌ها...",s226be12a5b1a27e8:"راهنمای سایت",s29e25f5e4622f847:"جعبه محاوره ای را باز کنید",s33f85f24c0f5f008:"صرفه جویی",s36cb242ac90353bc:"حوزه‌ها",s41cb4006238ebd3b:"ویرایش انبوه",s5e8250fb85d64c23:"بستن",s625ad019db843f94:"استفاده کنید",s9d51bfd93b5dbeca:"نمایش بایگانی شده",sac83d7f9358b43db:m`لیست ${0}`,sb1bd536b63e9e995:"زمینه خصوصی: فقط من می توانم محتوای آن را داشته باشم",sb59d68ed12d46377:"بارگیری",sbf1ca928ec1deb62:"آیا به راهنمایی بیشتری نیاز دارید؟",scb9a1ff437efbd2a:m`همۀ ${0} مورد نظر برای به روزرسانی را از لیست انتخاب کنید و آن‌ها را در زیر به روز کنید`,sd1a8dc951b2b6a98:"انتخاب کنید که کدام یک از حوزه‌ها به‌عنوان ستون در لیست نمایش داده شوند",seafe6ef133ede7da:m`نمایش 1 از ${0}`,sf9aee319a006c9b4:"افزودن",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},mr=Object.freeze(Object.defineProperty({__proto__:null,templates:br},Symbol.toStringTag,{value:"Module"})),gr={s04ceadb276bbe149:"Chargement les options...",s226be12a5b1a27e8:"Lire la documentation",s29e25f5e4622f847:"Ouvrir la boîte de dialogue",s33f85f24c0f5f008:"sauver",s36cb242ac90353bc:"Champs",s41cb4006238ebd3b:"Modification groupée",s5e8250fb85d64c23:"Fermer",s625ad019db843f94:"Utiliser",s9d51bfd93b5dbeca:"Afficher Archivé",sac83d7f9358b43db:m`${0} Liste`,sb1bd536b63e9e995:"Champ privé : je suis le seul à voir son contenu",sb59d68ed12d46377:"Chargement",sbf1ca928ec1deb62:"Besoin d'aide ?",scb9a1ff437efbd2a:m`Sélectionnez tous les ${0} que vous souhaitez mettre à jour dans la liste et mettez-les à jour ci-dessous`,sd1a8dc951b2b6a98:"Choisissez les champs à afficher sous forme de colonnes dans la liste",seafe6ef133ede7da:m`Affichage de 1 sur ${0}`,sf9aee319a006c9b4:"Ajouter",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},vr=Object.freeze(Object.defineProperty({__proto__:null,templates:gr},Symbol.toStringTag,{value:"Module"})),yr={s226be12a5b1a27e8:"डॉक्यूमेंटेशन पढ़ें",s33f85f24c0f5f008:"बचाना",s36cb242ac90353bc:"खेत",s41cb4006238ebd3b:"थोक संपादित",s5e8250fb85d64c23:"बंद",s625ad019db843f94:"उपयोग",sbf1ca928ec1deb62:"क्या और मदद चाहिये?",sd1a8dc951b2b6a98:"सूची में कॉलम के रूप में प्रदर्शित करने के लिए कौन से फ़ील्ड चुनें",sf9aee319a006c9b4:"जोडें",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},_r=Object.freeze(Object.defineProperty({__proto__:null,templates:yr},Symbol.toStringTag,{value:"Module"})),wr={s04ceadb276bbe149:"Učitavanje opcija...",s226be12a5b1a27e8:"Pročitaj dokumentaciju",s29e25f5e4622f847:"Otvorite dijalog",s33f85f24c0f5f008:"Spremi",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Skupno uređivanje",s5e8250fb85d64c23:"Zatvoriti",s625ad019db843f94:"Koristi",s9d51bfd93b5dbeca:"Prikaži arhivirano",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Privatno polje: Samo ja mogu vidjeti njegov sadržaj",sb59d68ed12d46377:"Učitavanje",sbf1ca928ec1deb62:"Trebate li pomoć?",scb9a1ff437efbd2a:m`Odaberite sve${0}koje želite ažurirati s liste i ažurirajte ih ispod`,sd1a8dc951b2b6a98:"Izaberite polja koja će se prikazivati kao stupci na popisu",seafe6ef133ede7da:m`Prikazuje se 1 od${0}`,sf9aee319a006c9b4:"Dodaj",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},$r=Object.freeze(Object.defineProperty({__proto__:null,templates:wr},Symbol.toStringTag,{value:"Module"})),xr={s226be12a5b1a27e8:"Olvasd el a dokumentációt",s33f85f24c0f5f008:"Megment",s36cb242ac90353bc:"Mezők",s41cb4006238ebd3b:"Tömeges Szerkesztés",s5e8250fb85d64c23:"Bezár",s625ad019db843f94:"Használ",sbf1ca928ec1deb62:"Több segítség szükséges?",sd1a8dc951b2b6a98:"Válassza ki, melyik mezők jelenjenek meg oszlopként a listában",sf9aee319a006c9b4:"Hozzáadás",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},kr=Object.freeze(Object.defineProperty({__proto__:null,templates:xr},Symbol.toStringTag,{value:"Module"})),Sr={s226be12a5b1a27e8:"Bacalah dokumentasi",s33f85f24c0f5f008:"Simpan",s36cb242ac90353bc:"Larik",s41cb4006238ebd3b:"Edit Massal",s5e8250fb85d64c23:"Menutup",s625ad019db843f94:"Gunakan",sbf1ca928ec1deb62:"Perlukan bantuan lagi?",sd1a8dc951b2b6a98:"Pilih larik mana yang akan ditampilkan sebagai kolom dalam daftar",sf9aee319a006c9b4:"Tambah",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Er=Object.freeze(Object.defineProperty({__proto__:null,templates:Sr},Symbol.toStringTag,{value:"Module"})),Ar={s04ceadb276bbe149:"Caricando opzioni...",s226be12a5b1a27e8:"Leggi la documentazione",s29e25f5e4622f847:"Apri Dialogo",s33f85f24c0f5f008:"Salvare",s36cb242ac90353bc:"Campi",s41cb4006238ebd3b:"Modifica in blocco",s5e8250fb85d64c23:"Chiudi",s625ad019db843f94:"Uso",s9d51bfd93b5dbeca:"Visualizza Archiviati",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privato: Solo io posso vedere i suoi contenuti",sb59d68ed12d46377:"Caricando",sbf1ca928ec1deb62:"Hai bisogno di ulteriore assistenza?",scb9a1ff437efbd2a:m`Seleziona tutti i ${0}vuoi aggiornare dalla lista e aggiornali sotto`,sd1a8dc951b2b6a98:"Scegli quali campi visualizzare come colonne nell'elenco",seafe6ef133ede7da:m`Visualizzando 1 di ${0}`,sf9aee319a006c9b4:"Inserisci",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},Or=Object.freeze(Object.defineProperty({__proto__:null,templates:Ar},Symbol.toStringTag,{value:"Module"})),Tr={s226be12a5b1a27e8:"ドキュメントを読む",s33f85f24c0f5f008:"セーブ",s36cb242ac90353bc:"田畑",s41cb4006238ebd3b:"一括編集",s5e8250fb85d64c23:"閉じる",s625ad019db843f94:"使用する",sbf1ca928ec1deb62:"もっと助けが必要ですか?",sd1a8dc951b2b6a98:"リストの列として表示するフィールドを選択します",sf9aee319a006c9b4:"追加",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Cr=Object.freeze(Object.defineProperty({__proto__:null,templates:Tr},Symbol.toStringTag,{value:"Module"})),Lr={s226be12a5b1a27e8:"문서 읽기",s33f85f24c0f5f008:"구하다",s36cb242ac90353bc:"필드",s41cb4006238ebd3b:"대량 수정",s5e8250fb85d64c23:"닫기",s625ad019db843f94:"사용",sbf1ca928ec1deb62:"더 많은 도움이 필요하신가요?",sd1a8dc951b2b6a98:"목록에서 어떤 필드를 표시할지 고르세요",sf9aee319a006c9b4:"추가",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ir=Object.freeze(Object.defineProperty({__proto__:null,templates:Lr},Symbol.toStringTag,{value:"Module"})),Pr={s226be12a5b1a27e8:"Прочитај ја документацијата",s33f85f24c0f5f008:"Зачувај",s36cb242ac90353bc:"Полиња",s41cb4006238ebd3b:"Уреди повеќе",s5e8250fb85d64c23:"Затвори",s625ad019db843f94:"Користи",sbf1ca928ec1deb62:"Дали ти треба повеќе помош?",sd1a8dc951b2b6a98:"Избери кои полиња да се прикажат како колони во листата",sf9aee319a006c9b4:"Додади",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Mr=Object.freeze(Object.defineProperty({__proto__:null,templates:Pr},Symbol.toStringTag,{value:"Module"})),jr={s226be12a5b1a27e8:"कागदपत्रे वाचा.",s33f85f24c0f5f008:"जतन करा",s36cb242ac90353bc:"क्षेत्रे",s41cb4006238ebd3b:"बल्क एडिट करा",s5e8250fb85d64c23:"बंद करा",s625ad019db843f94:"वापर",sbf1ca928ec1deb62:"अधिक मदत आवश्यक आहे का?",sd1a8dc951b2b6a98:"यादीत कोणती क्षेत्रे स्तंभ म्हणून दर्शवली जावीत हे निवडा",sf9aee319a006c9b4:"समाविष्ट करा",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},zr=Object.freeze(Object.defineProperty({__proto__:null,templates:jr},Symbol.toStringTag,{value:"Module"})),Fr={s226be12a5b1a27e8:"စာရွက်စာတမ်းများကိုဖတ်ပါ",s33f85f24c0f5f008:"သိမ်းဆည်းပါ",s36cb242ac90353bc:"နယ်ပယ်ဒေသများ",s5e8250fb85d64c23:"ပိတ်သည်",s625ad019db843f94:"အသုံးပြုပါ",sbf1ca928ec1deb62:"နောက်ထပ်အကူအညီလိုပါသလား။",sd1a8dc951b2b6a98:"စာရင်းရှိကော်လံများအနေဖြင့်ဖော်ပြမည့်မည်သည့်နယ်ပယ်ဒေသများကိုရွေးချယ်ပါ",sf9aee319a006c9b4:"ထည့်ပါ",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Dr=Object.freeze(Object.defineProperty({__proto__:null,templates:Fr},Symbol.toStringTag,{value:"Module"})),Rr={s226be12a5b1a27e8:"कागजात पढ्नुहोस्",s33f85f24c0f5f008:"सुरक्षित गर्नुहोस",s36cb242ac90353bc:"क्षेत्रहरू",s41cb4006238ebd3b:"थोक सम्पादन",s5e8250fb85d64c23:"बन्द गर्नुहोस",s625ad019db843f94:"प्रयोग गर्नुहोस्",sbf1ca928ec1deb62:"थप मद्दत चाहिन्छ?",sd1a8dc951b2b6a98:"सूचीमा स्तम्भहरूको रूपमा कुन क्षेत्रहरू प्रदर्शन गर्ने छनौट गर्नुहोस्",sf9aee319a006c9b4:"थप",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Nr=Object.freeze(Object.defineProperty({__proto__:null,templates:Rr},Symbol.toStringTag,{value:"Module"})),qr={s04ceadb276bbe149:"aan het laden.....",s226be12a5b1a27e8:"Lees de documentatie",s29e25f5e4622f847:"Dialoogvenster openen",s33f85f24c0f5f008:"Opslaan",s36cb242ac90353bc:"Velden",s41cb4006238ebd3b:"Bulkbewerking",s5e8250fb85d64c23:"sluit",s625ad019db843f94:"Gebruiken",sac83d7f9358b43db:m`${0} Lijst`,sb1bd536b63e9e995:"Privéveld: alleen ik kan de inhoud zien",sb59d68ed12d46377:"aan het laden",sbf1ca928ec1deb62:"Meer hulp nodig?",sd1a8dc951b2b6a98:"Kies welke velden u als kolommen in de lijst wilt weergeven",seafe6ef133ede7da:m`1 van ${0} laten zien`,sf9aee319a006c9b4:"Toevoegen",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,s9d51bfd93b5dbeca:"Show Archived"},Ur=Object.freeze(Object.defineProperty({__proto__:null,templates:qr},Symbol.toStringTag,{value:"Module"})),Vr={s226be12a5b1a27e8:"ਦਸਤਾਵੇਜ਼ ਪੜ੍ਹੋ",s33f85f24c0f5f008:"ਸੇਵ",s36cb242ac90353bc:"ਖੇਤਰ",s41cb4006238ebd3b:"ਥੋਕ ਸੰਪਾਦਨ",s5e8250fb85d64c23:"ਬੰਦ ਕਰੋ",s625ad019db843f94:"ਵਰਤੋਂ",sbf1ca928ec1deb62:"ਹੋਰ ਮਦਦ ਦੀ ਲੋੜ ਹੈ?",sd1a8dc951b2b6a98:"ਸੂਚੀ ਵਿੱਚ ਕਾਲਮ ਦੇ ਰੂਪ ਵਿੱਚ ਪ੍ਰਦਰਸ਼ਿਤ ਕਰਨ ਲਈ ਕਿਹੜੇ ਖੇਤਰ ਚੁਣੋ",sf9aee319a006c9b4:"ਸ਼ਾਮਲ ਕਰੋ",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Br=Object.freeze(Object.defineProperty({__proto__:null,templates:Vr},Symbol.toStringTag,{value:"Module"})),Hr={s226be12a5b1a27e8:"Przeczytaj dokumentację",s33f85f24c0f5f008:"Zapisać",s36cb242ac90353bc:"Pola",s41cb4006238ebd3b:"Edycja zbiorcza",s5e8250fb85d64c23:"Zamknij",s625ad019db843f94:"Posługiwać się",sbf1ca928ec1deb62:"Potrzebujesz pomocy?",sd1a8dc951b2b6a98:"Wybierz, które pola mają być wyświetlane jako kolumny na liście",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Kr=Object.freeze(Object.defineProperty({__proto__:null,templates:Hr},Symbol.toStringTag,{value:"Module"})),Wr={s226be12a5b1a27e8:"Leia a documentação",s33f85f24c0f5f008:"Salvar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edição em massa",s5e8250fb85d64c23:"Fechar",s625ad019db843f94:"Usar",sbf1ca928ec1deb62:"Precisa de mais ajuda?",sd1a8dc951b2b6a98:"Escolha quais campos exibir como colunas na lista",sf9aee319a006c9b4:"Adicionar",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Gr=Object.freeze(Object.defineProperty({__proto__:null,templates:Wr},Symbol.toStringTag,{value:"Module"})),Zr={s226be12a5b1a27e8:"Citiți documentația",s33f85f24c0f5f008:"Salvați",s36cb242ac90353bc:"Câmpuri",s41cb4006238ebd3b:"Editare masivă",s5e8250fb85d64c23:"Închide",s625ad019db843f94:"Utilizare",sbf1ca928ec1deb62:"Ai nevoie de mai mult ajutor?",sd1a8dc951b2b6a98:"Alegeți câmpurile care să fie afișate în coloane în listă",sf9aee319a006c9b4:"Adăuga",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Jr=Object.freeze(Object.defineProperty({__proto__:null,templates:Zr},Symbol.toStringTag,{value:"Module"})),Qr={s226be12a5b1a27e8:"Читать документацию",s33f85f24c0f5f008:"Сохранить",s36cb242ac90353bc:"Поля",s41cb4006238ebd3b:"Массовое редактирование",s5e8250fb85d64c23:"Закрыть",s625ad019db843f94:"Использовать",sbf1ca928ec1deb62:"Нужна дополнительная помощь?",sd1a8dc951b2b6a98:"Выберите, какие поля отображать как столбцы в списке",sf9aee319a006c9b4:"Добавить",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Xr=Object.freeze(Object.defineProperty({__proto__:null,templates:Qr},Symbol.toStringTag,{value:"Module"})),Yr={s226be12a5b1a27e8:"Preberite dokumentacijo",s33f85f24c0f5f008:"Shrani",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Urejanje v velikem obsegu",s5e8250fb85d64c23:"Zapri",s625ad019db843f94:"Uporaba",sbf1ca928ec1deb62:"Potrebujete več pomoči?",sd1a8dc951b2b6a98:"Izberite, katera polja naj bodo prikazana kot stolpci na seznamu",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},en=Object.freeze(Object.defineProperty({__proto__:null,templates:Yr},Symbol.toStringTag,{value:"Module"})),tn={s226be12a5b1a27e8:"Pročitajte dokumentaciju",s33f85f24c0f5f008:"Sačuvaj",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"masovno uređivanje",s5e8250fb85d64c23:"Zatvori",s625ad019db843f94:"Koristiti",sbf1ca928ec1deb62:"Treba vam više pomoći?",sd1a8dc951b2b6a98:"Izaberite koja polja da se prikazuju kao kolone na listi",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},on=Object.freeze(Object.defineProperty({__proto__:null,templates:tn},Symbol.toStringTag,{value:"Module"})),sn={s04ceadb276bbe149:"Inapakia chaguo...",s226be12a5b1a27e8:"Soma nyaraka",s29e25f5e4622f847:"Fungua Kidirisha",s33f85f24c0f5f008:"Hifadhi",s36cb242ac90353bc:"Mashamba",s41cb4006238ebd3b:"Hariri kwa Wingi",s5e8250fb85d64c23:"Funga",s625ad019db843f94:"Tumia",s9d51bfd93b5dbeca:"Onyesha Kumbukumbu",sac83d7f9358b43db:m`Orodha ya${0}`,sb1bd536b63e9e995:"Sehemu ya Faragha: Ni mimi pekee ninayeweza kuona maudhui yake",sb59d68ed12d46377:"Inapakia",sbf1ca928ec1deb62:"Unahitaji msaada zaidi?",scb9a1ff437efbd2a:m`Chagua ${0} zote ungependa kusasisha kutoka kwenye orodha, na uzisasishe hapa chini.`,sd1a8dc951b2b6a98:"Chagua ni sehemu zipi zitaonyeshwa kama safu wima kwenye orodha",seafe6ef133ede7da:m`Inaonyesha 1 kati ya ${0}`,sf9aee319a006c9b4:"Ongeza",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},an=Object.freeze(Object.defineProperty({__proto__:null,templates:sn},Symbol.toStringTag,{value:"Module"})),rn={s226be12a5b1a27e8:"อ่านเอกสาร",s33f85f24c0f5f008:"บันทึก",s36cb242ac90353bc:"ฟิลด์",s41cb4006238ebd3b:"แก้ไขเป็นกลุ่ม",s5e8250fb85d64c23:"ปิด",s625ad019db843f94:"ใช้",sbf1ca928ec1deb62:"ต้องการความช่วยเหลือเพิ่มเติมหรือไม่?",sd1a8dc951b2b6a98:"เลือกฟิลด์ที่จะแสดงเป็นคอลัมน์ในรายการ",sf9aee319a006c9b4:"เพิ่ม",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},nn=Object.freeze(Object.defineProperty({__proto__:null,templates:rn},Symbol.toStringTag,{value:"Module"})),ln={s226be12a5b1a27e8:"Basahin ang dokumentasyon",s33f85f24c0f5f008:"I-save",s36cb242ac90353bc:"Mga Field",s41cb4006238ebd3b:"Maramihang Pag-edit",s5e8250fb85d64c23:"Isara",s625ad019db843f94:"Gamitin",sbf1ca928ec1deb62:"Kailangan mo pa ba ng tulong?",sd1a8dc951b2b6a98:"Piliin kung aling mga field ang ipapakita bilang mga column sa listahan",sf9aee319a006c9b4:"Idagdag",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},dn=Object.freeze(Object.defineProperty({__proto__:null,templates:ln},Symbol.toStringTag,{value:"Module"})),cn={s04ceadb276bbe149:"Seçenekler Yükleniyor...",s226be12a5b1a27e8:"Belgeleri oku",s29e25f5e4622f847:"İletişim Kutusunu Aç",s33f85f24c0f5f008:"Kaydet",s36cb242ac90353bc:"Alanlar",s41cb4006238ebd3b:"Toplu Düzenleme",s5e8250fb85d64c23:"Kapat",s625ad019db843f94:"Kullan",s9d51bfd93b5dbeca:"Arşivlenmiş Göster",sac83d7f9358b43db:m`${0} Listesi`,sb1bd536b63e9e995:"Özel Alan: İçeriğini sadece ben görebilirim",sb59d68ed12d46377:"Yükleniyor",sbf1ca928ec1deb62:"Daha fazla yardıma ihtiyacınız var mı?",scb9a1ff437efbd2a:m`Listeden güncellemek istediğiniz tüm ${0} 'i seçin ve aşağıda güncelleyin`,sd1a8dc951b2b6a98:"Listede Hangi Alanların Sütun Olarak Görüntüleneceğini Seçin",seafe6ef133ede7da:m`Gösteriliyor 1 of ${0}`,sf9aee319a006c9b4:"Ekle",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},un=Object.freeze(Object.defineProperty({__proto__:null,templates:cn},Symbol.toStringTag,{value:"Module"})),hn={s226be12a5b1a27e8:"Прочитайте документацію",s33f85f24c0f5f008:"Зберегти",s36cb242ac90353bc:"Поля",s41cb4006238ebd3b:"Масове редагування",s5e8250fb85d64c23:"Закрити",s625ad019db843f94:"Використати",sbf1ca928ec1deb62:"Потрібна додаткова допомога?",sd1a8dc951b2b6a98:"Виберіть, яке поле відображати у вигляді стовпців у списку",sf9aee319a006c9b4:"Додати",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},pn=Object.freeze(Object.defineProperty({__proto__:null,templates:hn},Symbol.toStringTag,{value:"Module"})),fn={s226be12a5b1a27e8:"Đọc tài liệu",s33f85f24c0f5f008:"Lưu",s36cb242ac90353bc:"Trường",s41cb4006238ebd3b:"Chỉnh sửa Hàng loạt",s5e8250fb85d64c23:"Đóng",s625ad019db843f94:"Sử dụng",sbf1ca928ec1deb62:"Bạn cần trợ giúp thêm?",sd1a8dc951b2b6a98:"Chọn các trường để hiển thị dưới dạng cột trong danh sách",sf9aee319a006c9b4:"Bổ sung",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},bn=Object.freeze(Object.defineProperty({__proto__:null,templates:fn},Symbol.toStringTag,{value:"Module"})),mn={s226be12a5b1a27e8:"阅读文档",s33f85f24c0f5f008:"保存",s36cb242ac90353bc:"字段",s41cb4006238ebd3b:"批量编辑",s5e8250fb85d64c23:"关",s625ad019db843f94:"使用",sbf1ca928ec1deb62:"需要更多帮助吗?",sd1a8dc951b2b6a98:"选择哪些字段要在列表中显示为列",sf9aee319a006c9b4:"添加",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},gn=Object.freeze(Object.defineProperty({__proto__:null,templates:mn},Symbol.toStringTag,{value:"Module"})),vn={s04ceadb276bbe149:"正在載入選項...",s226be12a5b1a27e8:"閱讀文檔",s29e25f5e4622f847:"開啟對話視窗",s33f85f24c0f5f008:"儲存",s36cb242ac90353bc:"欄位",s41cb4006238ebd3b:"大量編輯",s5e8250fb85d64c23:"關",s625ad019db843f94:"使用",s9d51bfd93b5dbeca:"顯示已儲存",sac83d7f9358b43db:m`${0} 清單`,sb1bd536b63e9e995:"私人欄位:只有我可以看見內容",sb59d68ed12d46377:"載入中",sbf1ca928ec1deb62:"需要更多幫助嗎?",scb9a1ff437efbd2a:m`從清單中選取要更新的項目${0},並在下面進行更新`,sd1a8dc951b2b6a98:"選擇哪些欄位要顯示為列表中的直行",seafe6ef133ede7da:m`第1頁 (共${0}頁)`,sf9aee319a006c9b4:"新增",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},yn=Object.freeze(Object.defineProperty({__proto__:null,templates:vn},Symbol.toStringTag,{value:"Module"}));return x.ApiService=vi,x.ComponentService=Le,x.DtAlert=Eo,x.DtBase=N,x.DtButton=yi,x.DtChurchHealthCircle=uo,x.DtConnection=ho,x.DtCopyText=fo,x.DtDate=jt,x.DtDatetime=bo,x.DtFileUpload=So,x.DtFormBase=P,x.DtIcon=ro,x.DtLabel=wi,x.DtLocation=mo,x.DtLocationMap=yo,x.DtMapModal=vo,x.DtModal=go,x.DtMultiSelect=Ze,x.DtMultiSelectButtonGroup=ko,x.DtMultiText=xo,x.DtNumberField=_o,x.DtSingleSelect=wo,x.DtTags=Ce,x.DtText=zt,x.DtTextArea=$o,x.DtTile=Ao,x.DtToggle=co,x.DtUsersConnection=po,x.version=Ua,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),x}({}); + `}}window.customElements.define("dt-tile",To);class Ie{get api(){return this._api}constructor(e,t,i,o="wp-json"){this.postType=e,this.postId=t,this.nonce=i,this.debounceTimers={},this._api=new yi(this.nonce,o),this.apiRoot=this._api.apiRoot,this.autoSaveComponents=["dt-connection","dt-users-connection","dt-date","dt-datetime","dt-location","dt-location-map","dt-multi-select","dt-number","dt-single-select","dt-tags","dt-text","dt-textarea","dt-toggle","dt-multi-text","dt-multi-text-groups","dt-multi-select-button-group","dt-button","dt-church-health-circle"],this.dynamicLoadComponents=["dt-connection","dt-tags","dt-modal","dt-button","dt-location","dt-users-connection"]}initialize(){this.postId&&this.enableAutoSave(),this.attachLoadEvents(),this.attachFileUploadEvents()}async attachLoadEvents(e){const t=document.querySelectorAll(e||this.dynamicLoadComponents.join(","));t&&t.forEach(i=>{i.dataset.eventDtGetData||(i.addEventListener("dt:get-data",this.handleGetDataEvent.bind(this)),i.dataset.eventDtGetData=!0)})}async checkDuplicates(e,t){const i=document.querySelector("dt-modal.duplicate-detected");if(i){const o=i.shadowRoot.querySelector(".duplicates-detected-button");o&&(o.style.display="none");const a=await this._api.checkDuplicateUsers(this.postType,this.postId);t&&a.ids.length>0&&o&&(o.style.display="block")}}enableAutoSave(e){const t=document.querySelectorAll(e||this.autoSaveComponents.join(","));t&&t.forEach(i=>{i.addEventListener("change",this.handleChangeEvent.bind(this))})}attachFileUploadEvents(e){const t=document.querySelectorAll(e||"dt-file-upload");t&&t.forEach(i=>{i.dataset.eventDtUpload||(i.addEventListener("dt:upload",this.handleUploadEvent.bind(this)),i.addEventListener("dt:delete-file",this.handleDeleteFileEvent.bind(this)),i.addEventListener("dt:rename-file",this.handleRenameFileEvent.bind(this)),i.addEventListener("dt:download-file",this.handleDownloadFileEvent.bind(this)),i.dataset.eventDtUpload=!0)})}async handleGetDataEvent(e){const t=e.detail;if(t){const{field:i,query:o,onSuccess:a,onError:r}=t;try{const n=e.target.tagName.toLowerCase();let l=[];switch(n){case"dt-button":l=await this._api.getContactInfo(this.postType,this.postId);break;case"dt-connection":{const d=t.postType||this.postType,u=await this._api.listPostsCompact(d,o),p={...u,posts:u.posts.filter(g=>g.ID!==parseInt(this.postId,10))};p!=null&&p.posts&&(l=Ie.convertApiValue("dt-connection",p==null?void 0:p.posts));break}case"dt-users-connection":{const d=t.postType||this.postType,u=await this._api.searchUsers(d,o),p={...u,posts:u.filter(g=>g.ID!==parseInt(this.postId,10))};p!=null&&p.posts&&(l=Ie.convertApiValue("dt-users-connection",p==null?void 0:p.posts));break}case"dt-location":{l=await this._api.getLocations(this.postType,i,t.filter,o),l=l.location_grid.map(d=>({id:d.ID,label:d.name}));break}case"dt-tags":default:l=await this._api.getMultiSelectValues(this.postType,i,o),l=l.map(d=>({id:d,label:d}));break}a(l)}catch(n){r(n)}}}async handleChangeEvent(e){const t=e.detail;if(t){const{field:i,newValue:o,oldValue:a,remove:r}=t,n=e.target.tagName.toLowerCase(),l=Ie.convertValue(n,o,a);if(e.target.removeAttribute("saved"),e.target.setAttribute("loading",!0),n==="dt-number"){const d=`${this.postType}-${this.postId}-${i}`;this.debounce(d,async()=>{try{const u=await this._api.updatePost(this.postType,this.postId,{[i]:l});document.dispatchEvent(new CustomEvent("dt:post:update",{detail:{response:u,field:i,value:l,component:n}})),e.target.removeAttribute("loading"),e.target.setAttribute("error",""),e.target.setAttribute("saved",!0)}catch(u){console.error(u),e.target.removeAttribute("loading"),e.target.setAttribute("invalid",!0),e.target.setAttribute("error",u.message||u.toString())}},1e3)}else try{const d={[i]:l};if(n==="dt-location-map"){const p=l.values.filter(g=>!g.lng||!g.lat);d[i].values=l.values.filter(g=>g.lng&&g.lat),d.contact_address=p,d.contact_address.length===0&&delete d.contact_address,d[i].values.length===0&&delete d[i]}const u=await this._api.updatePost(this.postType,this.postId,d);if(document.dispatchEvent(new CustomEvent("dt:post:update",{detail:{response:u,field:i,value:l,component:n}})),n==="dt-location-map"||n==="dt-multi-text-groups"){const p=e.target;p.value=u[i]}e.target.removeAttribute("loading"),e.target.setAttribute("error",""),e.target.setAttribute("saved",!0)}catch(d){console.error(d),e.target.removeAttribute("loading"),e.target.setAttribute("invalid",!0),e.target.setAttribute("error",d.message||d.toString())}}}async handleUploadEvent(e){const t=e.detail;if(!t)return;const{files:i,metaKey:o,keyPrefix:a,onSuccess:r,onError:n}=t,l=e.target;l.setAttribute("loading",!0),l.removeAttribute("saved"),l.removeAttribute("error");try{const d=await this._api.uploadFiles(this.postType,this.postId,i,o,a||""),p=(await this._api.getPost(this.postType,this.postId))[o]||[];r&&r({result:d,fieldValue:p})}catch(d){l.setAttribute("error",d.message||"Upload failed"),n&&n(d)}finally{l.removeAttribute("loading")}}async handleDeleteFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,metaKey:o,onSuccess:a,onError:r}=t,n=e.target;n.setAttribute("loading",!0),n.removeAttribute("saved"),n.removeAttribute("error");try{await this._api.deleteFile(this.postType,this.postId,o,i),a&&a()}catch(l){n.setAttribute("error",l.message||"Delete failed"),r&&r(l)}finally{n.removeAttribute("loading")}}async handleRenameFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,newName:o,metaKey:a,onSuccess:r,onError:n}=t,l=e.target;l.setAttribute("loading",!0),l.removeAttribute("saved"),l.removeAttribute("error");try{const d=await this._api.renameFile(this.postType,this.postId,a,i,o);r&&r(d)}catch(d){l.setAttribute("error",d.message||"Rename failed"),n&&n(d)}finally{l.removeAttribute("loading")}}async handleDownloadFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,fileName:o,metaKey:a,onSuccess:r,onError:n}=t,l=e.target;try{const d=await this._api.downloadFile(this.postType,this.postId,a,i),u=window.URL.createObjectURL(d),p=document.createElement("a");p.href=u,p.download=o||"download",document.body.appendChild(p),p.click(),document.body.removeChild(p),window.URL.revokeObjectURL(u),r&&r()}catch(d){l.setAttribute("error",d.message||"Download failed"),n&&n(d)}}debounce(e,t,i){this.debounceTimers[e]&&clearTimeout(this.debounceTimers[e]),this.debounceTimers[e]=setTimeout(()=>{t()},i)}static convertApiValue(e,t){let i=t;switch(e){case"dt-connection":i=t.map(o=>({id:o.ID,label:o.name??o.post_title,link:o.permalink,status:o.status}));break;case"dt-users-connection":t&&!Array.isArray(t)&&(t.id||t.ID)?i=[{id:t.id||t.ID,label:t.display,avatar:t.avatar||""}]:Array.isArray(t)&&(i=t.map(o=>({id:o.id||o.ID,label:o.display||o.name,avatar:o.avatar||""})));break}return i}static convertValue(e,t,i=null){let o=t;if(t)switch(e.toLowerCase()){case"dt-toggle":typeof t=="string"&&(o=t.toLowerCase()==="true");break;case"dt-church-health-circle":case"dt-multi-select":case"dt-multi-select-button-group":case"dt-tags":typeof t=="string"&&(o=[t]),o={values:o.map(n=>{if(typeof n=="string"){const d={value:n};return n.startsWith("-")&&(d.delete=!0,d.value=n.substring(1)),d}const l={value:n.id};return n.delete&&(l.delete=n.delete),l}),force_values:!1};break;case"dt-users-connection":{const n=[],l=o.filter(u=>!u.delete);if(l.length<=1){o=l.length===1?parseInt(l[0].id,10):"";break}const d=new Map((i||[]).map(u=>[u.id,u]));for(const u of o){const p=d.get(u.id),g={id:u.id,changes:{}};if(p){let y=!1;const _=new Set([...Object.keys(p),...Object.keys(u)]);for(const T of _)u[T]!==p[T]&&(g.changes[T]=Object.prototype.hasOwnProperty.call(u,T)?u[T]:void 0,y=!0);if(y){n.push(g);break}}else{g.changes={...u},n.push(g);break}}o=n[0].id;break}case"dt-connection":typeof t=="string"&&(o=[{id:t}]),o={values:o.map(n=>{const l={value:n.id};return n.delete&&(l.delete=n.delete),l}),force_values:!1};break;case"dt-location":const a=new Set((i||[]).map(n=>n.id));typeof t=="string"?o=[{id:t}]:o=t.filter(n=>!(a.has(n.id)&&!n.delete)),o={values:o.map(n=>{const l={value:n.id};return n.delete&&(l.delete=n.delete),l}),force_values:!1};break;case"dt-location-map":if(o=t.filter(n=>!((i||[]).includes(n)&&!n.delete)),i)for(const n of i)t.some(d=>n.id&&d.id&&n.id===d.id||n.key&&d.key&&n.key===d.key&&(!d.lat||!d.lng))||(n.delete=!0,o.push(n));o={values:o.map(n=>{const l=n;return n.delete&&(l.delete=n.delete),l}),force_values:!1};break;case"dt-multi-text":Array.isArray(t)?o=t.map(n=>{const l={...n};return delete l.tempKey,l}):typeof t=="string"&&(o=[{value:t}]);break;case"dt-multi-text-groups":let r=[];Array.isArray(t)?r=t.filter(n=>n.value!=="").map(n=>{const l={...n};return delete l.tempKey,l}):typeof t=="string"&&(r=[{value:t}]),o={values:r,force_values:!1};break}return o}static valueArrayDiff(e,t){const i={value1:[],value2:[]};if(Array.isArray(e)||(e=[]),Array.isArray(t)||(t=[]),e.length>0&&typeof e[0]!="object")return i.value1=e.filter(n=>!t.includes(n)),i.value2=t.filter(n=>!e.includes(n)),i;const o=n=>JSON.stringify(n),a=new Map(e.map(n=>[o(n),n])),r=new Map(t.map(n=>[o(n),n]));for(const[n,l]of a)r.has(n)||i.value1.push(l);for(const[n,l]of r)a.has(n)||i.value2.push(l);return i}}const Va="0.8.11",Ba={s226be12a5b1a27e8:"ሰነዶቹን ያንብቡ",s33f85f24c0f5f008:"አስቀምጥ",s36cb242ac90353bc:"መስኮች",s41cb4006238ebd3b:"የጅምላ አርትዕ",s5e8250fb85d64c23:"ገጠመ",s625ad019db843f94:"ተጠቀም",sac83d7f9358b43db:m`${0} ዝርዝር`,sbf1ca928ec1deb62:"ተጨማሪ እገዛ ይፈልጋሉ?",sd1a8dc951b2b6a98:"በዝርዝሩ ውስጥ እንደ ዓምዶች የትኞቹን መስኮች እንደሚያሳዩ ይምረጡ",sf9aee319a006c9b4:"አክል",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ha=Object.freeze(Object.defineProperty({__proto__:null,templates:Ba},Symbol.toStringTag,{value:"Module"})),Ka={s04ceadb276bbe149:"خيارات التحميل...",s226be12a5b1a27e8:"اقرأ الوثائق",s29e25f5e4622f847:"افتح",s33f85f24c0f5f008:"حفظ",s36cb242ac90353bc:"مجالات",s41cb4006238ebd3b:"التحرير بالجملة",s5e8250fb85d64c23:"غلق",s625ad019db843f94:"استخدام",s9d51bfd93b5dbeca:"عرض المحفوظات",sac83d7f9358b43db:m`${0}قائمة الأعضاء`,sb1bd536b63e9e995:"المجال الخاص: أنا فقط أستطيع رؤية محتواه",sb59d68ed12d46377:"جار التحميل",sbf1ca928ec1deb62:"هل تريد المزيد من المساعدة؟",scb9a1ff437efbd2a:m`حَدِّد جميع ${0} التي تريد تحديثها من القائمة ، وقم بتحديثها أدناه`,sd1a8dc951b2b6a98:"اختر المجالات المراد عرضها كأعمدة في القائمة",seafe6ef133ede7da:m`عرض 1 of ${0}`,sf9aee319a006c9b4:"لأضف",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},Ga=Object.freeze(Object.defineProperty({__proto__:null,templates:Ka},Symbol.toStringTag,{value:"Module"})),Wa={s226be12a5b1a27e8:"اقرأ الوثائق",s33f85f24c0f5f008:"حفظ",s36cb242ac90353bc:"مجالات",s41cb4006238ebd3b:"التحرير بالجملة",s5e8250fb85d64c23:"أغلق",s625ad019db843f94:"استخدام",sbf1ca928ec1deb62:"هل تريد المزيد من المساعدة؟",sd1a8dc951b2b6a98:"اختر المجالات المراد عرضها كأعمدة في القائمة",sf9aee319a006c9b4:"إضافة",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Za=Object.freeze(Object.defineProperty({__proto__:null,templates:Wa},Symbol.toStringTag,{value:"Module"})),Ja={s226be12a5b1a27e8:"Прочетете документацията",s33f85f24c0f5f008:"Запазете",s36cb242ac90353bc:"Полета",s41cb4006238ebd3b:"Групово редактиране",s5e8250fb85d64c23:"Близо",s625ad019db843f94:"Използвайте",sbf1ca928ec1deb62:"Имате нужда от повече помощ?",sd1a8dc951b2b6a98:"Изберете кои полета да се показват като колони в списъка",sf9aee319a006c9b4:"Добавяне",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Qa=Object.freeze(Object.defineProperty({__proto__:null,templates:Ja},Symbol.toStringTag,{value:"Module"})),Xa={s226be12a5b1a27e8:"নথিপত্রাদি পাঠ করুন",s33f85f24c0f5f008:"সংরক্ষণ করুন",s36cb242ac90353bc:"ক্ষেত্র",s41cb4006238ebd3b:"বাল্ক এডিট",s5e8250fb85d64c23:"বন্ধ",s625ad019db843f94:"ব্যবহার",sbf1ca928ec1deb62:"আরও সাহায্য প্রয়োজন?",sd1a8dc951b2b6a98:"তালিকার কলাম হিসাবে কোন ক্ষেত্রগুলি প্রদর্শিত হবে তা চয়ন করুন",sf9aee319a006c9b4:"অ্যাড",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ya=Object.freeze(Object.defineProperty({__proto__:null,templates:Xa},Symbol.toStringTag,{value:"Module"})),er={s04ceadb276bbe149:"Učitavanje opcija...",s226be12a5b1a27e8:"Pročitajte dokumentaciju",s29e25f5e4622f847:"Otvorite dijalog",s33f85f24c0f5f008:"Sačuvaj",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Skupno uređivanje",s5e8250fb85d64c23:"Zatvori",s625ad019db843f94:"Koristi",s9d51bfd93b5dbeca:"Prikaži arhivirano",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Privatno polje: Samo ja mogu vidjeti njegov sadržaj",sb59d68ed12d46377:"Učitavanje",sbf1ca928ec1deb62:"Trebate više pomoći?",scb9a1ff437efbd2a:m`Odaberite sve ${0} koje želite ažurirati sa liste i ažurirajte ih ispod`,sd1a8dc951b2b6a98:"Odaberite koja polja će se prikazati kao kolone na listi",seafe6ef133ede7da:m`Prikazuje se 1 od ${0}`,sf9aee319a006c9b4:"Dodati",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},tr=Object.freeze(Object.defineProperty({__proto__:null,templates:er},Symbol.toStringTag,{value:"Module"})),ir={s226be12a5b1a27e8:"Přečtěte si dokumentaci",s33f85f24c0f5f008:"Uložit",s36cb242ac90353bc:"Pole",s41cb4006238ebd3b:"Hromadná úprava",s5e8250fb85d64c23:"Zavřít",s625ad019db843f94:"Použití",sbf1ca928ec1deb62:"Potřebujete další pomoc?",sd1a8dc951b2b6a98:"Vyberte pole, která chcete v seznamu zobrazit jako sloupce",sf9aee319a006c9b4:"Přidat",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},or=Object.freeze(Object.defineProperty({__proto__:null,templates:ir},Symbol.toStringTag,{value:"Module"})),sr={s226be12a5b1a27e8:"Lesen Sie die Dokumentation",s33f85f24c0f5f008:"Speichern",s36cb242ac90353bc:"Felder",s41cb4006238ebd3b:"Im Stapel bearbeiten",s5e8250fb85d64c23:"Schließen",s625ad019db843f94:"Verwenden",sbf1ca928ec1deb62:"Benötigen Sie weitere Hilfe?",sd1a8dc951b2b6a98:"Wählen Sie aus, welche Felder in der Liste als Spalte angezeigt werden sollen",sf9aee319a006c9b4:"Hinzufügen",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},ar=Object.freeze(Object.defineProperty({__proto__:null,templates:sr},Symbol.toStringTag,{value:"Module"})),rr={s226be12a5b1a27e8:"Διαβάστε την τεκμηρίωση",s33f85f24c0f5f008:"Αποθήκευση",s36cb242ac90353bc:"Πεδία",s41cb4006238ebd3b:"Μαζική Επεξεργασία",s5e8250fb85d64c23:"Κλείσιμο",s625ad019db843f94:"Χρήση",sbf1ca928ec1deb62:"Χρειάζεστε περισσότερη βοήθεια;",sd1a8dc951b2b6a98:"Επιλέξτε ποια πεδία θα εμφανίζονται ως στήλες στη λίστα",sf9aee319a006c9b4:"Προσθήκη",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},nr=Object.freeze(Object.defineProperty({__proto__:null,templates:rr},Symbol.toStringTag,{value:"Module"})),lr={sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",sf9aee319a006c9b4:"Add",sbf1ca928ec1deb62:"Need more help?",s226be12a5b1a27e8:"Read the documentation",s5e8250fb85d64c23:"Close",s29e25f5e4622f847:"Open Dialog",s33f85f24c0f5f008:"Save",s49730f3d5751a433:"Loading...",s625ad019db843f94:"Use",sd1a8dc951b2b6a98:"Choose which fields to display as columns in the list",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s36cb242ac90353bc:"Fields",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},dr=Object.freeze(Object.defineProperty({__proto__:null,templates:lr},Symbol.toStringTag,{value:"Module"})),cr={s8900c9de2dbae68b:"No hay opciones disponibles",sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sf9aee319a006c9b4:"Añadir",sd1a8dc951b2b6a98:"Choose which fields to display as columns in the list",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sb9b8c412407d5691:"This is where the bulk edit form will go.",sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s36cb242ac90353bc:"Fields",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading",sbf1ca928ec1deb62:"Need more help?",s226be12a5b1a27e8:"Read the documentation",s5e8250fb85d64c23:"Close",s29e25f5e4622f847:"Open Dialog"},ur=Object.freeze(Object.defineProperty({__proto__:null,templates:cr},Symbol.toStringTag,{value:"Module"})),hr={s04ceadb276bbe149:"Cargando opciones...",s226be12a5b1a27e8:"Leer la documentación",s29e25f5e4622f847:"Abrir Diálogo",s33f85f24c0f5f008:"Guardar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edición masiva",s5e8250fb85d64c23:"Cerrar",s625ad019db843f94:"Usar",s9d51bfd93b5dbeca:"Mostrar archivado",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sb59d68ed12d46377:"Cargando",sbf1ca928ec1deb62:"¿Necesitas más ayuda?",scb9a1ff437efbd2a:m`Selecciona todos los ${0} que quieras actualizar del listado y actualízalos debajo`,sd1a8dc951b2b6a98:"Elige qué campos mostrar como columnas en el listado",seafe6ef133ede7da:m`Mostrando 1 de ${0}`,sf9aee319a006c9b4:"Agregar",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},pr=Object.freeze(Object.defineProperty({__proto__:null,templates:hr},Symbol.toStringTag,{value:"Module"})),fr={s04ceadb276bbe149:"Cargando opciones...",s226be12a5b1a27e8:"Lee la documentación",s29e25f5e4622f847:"Abrir Diálogo",s33f85f24c0f5f008:"Guardar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edición masiva",s5e8250fb85d64c23:"Cerrar",s625ad019db843f94:"Usar",s9d51bfd93b5dbeca:"Mostrar archivado",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sb59d68ed12d46377:"Cargando",sbf1ca928ec1deb62:"¿Necesitas más ayuda?",scb9a1ff437efbd2a:m`Selecciona todos los ${0} que quieras actualizar del listado y actualízalos debajo`,sd1a8dc951b2b6a98:"Elige qué campos mostrar como columnas en el listado",seafe6ef133ede7da:m`Mostrando 1 de ${0}`,sf9aee319a006c9b4:"Agregar",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},br=Object.freeze(Object.defineProperty({__proto__:null,templates:fr},Symbol.toStringTag,{value:"Module"})),mr={s04ceadb276bbe149:"در حال بارگیری گزینه‌ها...",s226be12a5b1a27e8:"راهنمای سایت",s29e25f5e4622f847:"جعبه محاوره ای را باز کنید",s33f85f24c0f5f008:"صرفه جویی",s36cb242ac90353bc:"حوزه‌ها",s41cb4006238ebd3b:"ویرایش انبوه",s5e8250fb85d64c23:"بستن",s625ad019db843f94:"استفاده کنید",s9d51bfd93b5dbeca:"نمایش بایگانی شده",sac83d7f9358b43db:m`لیست ${0}`,sb1bd536b63e9e995:"زمینه خصوصی: فقط من می توانم محتوای آن را داشته باشم",sb59d68ed12d46377:"بارگیری",sbf1ca928ec1deb62:"آیا به راهنمایی بیشتری نیاز دارید؟",scb9a1ff437efbd2a:m`همۀ ${0} مورد نظر برای به روزرسانی را از لیست انتخاب کنید و آن‌ها را در زیر به روز کنید`,sd1a8dc951b2b6a98:"انتخاب کنید که کدام یک از حوزه‌ها به‌عنوان ستون در لیست نمایش داده شوند",seafe6ef133ede7da:m`نمایش 1 از ${0}`,sf9aee319a006c9b4:"افزودن",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},gr=Object.freeze(Object.defineProperty({__proto__:null,templates:mr},Symbol.toStringTag,{value:"Module"})),vr={s04ceadb276bbe149:"Chargement les options...",s226be12a5b1a27e8:"Lire la documentation",s29e25f5e4622f847:"Ouvrir la boîte de dialogue",s33f85f24c0f5f008:"sauver",s36cb242ac90353bc:"Champs",s41cb4006238ebd3b:"Modification groupée",s5e8250fb85d64c23:"Fermer",s625ad019db843f94:"Utiliser",s9d51bfd93b5dbeca:"Afficher Archivé",sac83d7f9358b43db:m`${0} Liste`,sb1bd536b63e9e995:"Champ privé : je suis le seul à voir son contenu",sb59d68ed12d46377:"Chargement",sbf1ca928ec1deb62:"Besoin d'aide ?",scb9a1ff437efbd2a:m`Sélectionnez tous les ${0} que vous souhaitez mettre à jour dans la liste et mettez-les à jour ci-dessous`,sd1a8dc951b2b6a98:"Choisissez les champs à afficher sous forme de colonnes dans la liste",seafe6ef133ede7da:m`Affichage de 1 sur ${0}`,sf9aee319a006c9b4:"Ajouter",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},yr=Object.freeze(Object.defineProperty({__proto__:null,templates:vr},Symbol.toStringTag,{value:"Module"})),_r={s226be12a5b1a27e8:"डॉक्यूमेंटेशन पढ़ें",s33f85f24c0f5f008:"बचाना",s36cb242ac90353bc:"खेत",s41cb4006238ebd3b:"थोक संपादित",s5e8250fb85d64c23:"बंद",s625ad019db843f94:"उपयोग",sbf1ca928ec1deb62:"क्या और मदद चाहिये?",sd1a8dc951b2b6a98:"सूची में कॉलम के रूप में प्रदर्शित करने के लिए कौन से फ़ील्ड चुनें",sf9aee319a006c9b4:"जोडें",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},wr=Object.freeze(Object.defineProperty({__proto__:null,templates:_r},Symbol.toStringTag,{value:"Module"})),$r={s04ceadb276bbe149:"Učitavanje opcija...",s226be12a5b1a27e8:"Pročitaj dokumentaciju",s29e25f5e4622f847:"Otvorite dijalog",s33f85f24c0f5f008:"Spremi",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Skupno uređivanje",s5e8250fb85d64c23:"Zatvoriti",s625ad019db843f94:"Koristi",s9d51bfd93b5dbeca:"Prikaži arhivirano",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Privatno polje: Samo ja mogu vidjeti njegov sadržaj",sb59d68ed12d46377:"Učitavanje",sbf1ca928ec1deb62:"Trebate li pomoć?",scb9a1ff437efbd2a:m`Odaberite sve${0}koje želite ažurirati s liste i ažurirajte ih ispod`,sd1a8dc951b2b6a98:"Izaberite polja koja će se prikazivati kao stupci na popisu",seafe6ef133ede7da:m`Prikazuje se 1 od${0}`,sf9aee319a006c9b4:"Dodaj",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},xr=Object.freeze(Object.defineProperty({__proto__:null,templates:$r},Symbol.toStringTag,{value:"Module"})),kr={s226be12a5b1a27e8:"Olvasd el a dokumentációt",s33f85f24c0f5f008:"Megment",s36cb242ac90353bc:"Mezők",s41cb4006238ebd3b:"Tömeges Szerkesztés",s5e8250fb85d64c23:"Bezár",s625ad019db843f94:"Használ",sbf1ca928ec1deb62:"Több segítség szükséges?",sd1a8dc951b2b6a98:"Válassza ki, melyik mezők jelenjenek meg oszlopként a listában",sf9aee319a006c9b4:"Hozzáadás",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Sr=Object.freeze(Object.defineProperty({__proto__:null,templates:kr},Symbol.toStringTag,{value:"Module"})),Er={s226be12a5b1a27e8:"Bacalah dokumentasi",s33f85f24c0f5f008:"Simpan",s36cb242ac90353bc:"Larik",s41cb4006238ebd3b:"Edit Massal",s5e8250fb85d64c23:"Menutup",s625ad019db843f94:"Gunakan",sbf1ca928ec1deb62:"Perlukan bantuan lagi?",sd1a8dc951b2b6a98:"Pilih larik mana yang akan ditampilkan sebagai kolom dalam daftar",sf9aee319a006c9b4:"Tambah",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ar=Object.freeze(Object.defineProperty({__proto__:null,templates:Er},Symbol.toStringTag,{value:"Module"})),Tr={s04ceadb276bbe149:"Caricando opzioni...",s226be12a5b1a27e8:"Leggi la documentazione",s29e25f5e4622f847:"Apri Dialogo",s33f85f24c0f5f008:"Salvare",s36cb242ac90353bc:"Campi",s41cb4006238ebd3b:"Modifica in blocco",s5e8250fb85d64c23:"Chiudi",s625ad019db843f94:"Uso",s9d51bfd93b5dbeca:"Visualizza Archiviati",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privato: Solo io posso vedere i suoi contenuti",sb59d68ed12d46377:"Caricando",sbf1ca928ec1deb62:"Hai bisogno di ulteriore assistenza?",scb9a1ff437efbd2a:m`Seleziona tutti i ${0}vuoi aggiornare dalla lista e aggiornali sotto`,sd1a8dc951b2b6a98:"Scegli quali campi visualizzare come colonne nell'elenco",seafe6ef133ede7da:m`Visualizzando 1 di ${0}`,sf9aee319a006c9b4:"Inserisci",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},Or=Object.freeze(Object.defineProperty({__proto__:null,templates:Tr},Symbol.toStringTag,{value:"Module"})),Cr={s226be12a5b1a27e8:"ドキュメントを読む",s33f85f24c0f5f008:"セーブ",s36cb242ac90353bc:"田畑",s41cb4006238ebd3b:"一括編集",s5e8250fb85d64c23:"閉じる",s625ad019db843f94:"使用する",sbf1ca928ec1deb62:"もっと助けが必要ですか?",sd1a8dc951b2b6a98:"リストの列として表示するフィールドを選択します",sf9aee319a006c9b4:"追加",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ir=Object.freeze(Object.defineProperty({__proto__:null,templates:Cr},Symbol.toStringTag,{value:"Module"})),Lr={s226be12a5b1a27e8:"문서 읽기",s33f85f24c0f5f008:"구하다",s36cb242ac90353bc:"필드",s41cb4006238ebd3b:"대량 수정",s5e8250fb85d64c23:"닫기",s625ad019db843f94:"사용",sbf1ca928ec1deb62:"더 많은 도움이 필요하신가요?",sd1a8dc951b2b6a98:"목록에서 어떤 필드를 표시할지 고르세요",sf9aee319a006c9b4:"추가",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Pr=Object.freeze(Object.defineProperty({__proto__:null,templates:Lr},Symbol.toStringTag,{value:"Module"})),Mr={s226be12a5b1a27e8:"Прочитај ја документацијата",s33f85f24c0f5f008:"Зачувај",s36cb242ac90353bc:"Полиња",s41cb4006238ebd3b:"Уреди повеќе",s5e8250fb85d64c23:"Затвори",s625ad019db843f94:"Користи",sbf1ca928ec1deb62:"Дали ти треба повеќе помош?",sd1a8dc951b2b6a98:"Избери кои полиња да се прикажат како колони во листата",sf9aee319a006c9b4:"Додади",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},jr=Object.freeze(Object.defineProperty({__proto__:null,templates:Mr},Symbol.toStringTag,{value:"Module"})),Fr={s226be12a5b1a27e8:"कागदपत्रे वाचा.",s33f85f24c0f5f008:"जतन करा",s36cb242ac90353bc:"क्षेत्रे",s41cb4006238ebd3b:"बल्क एडिट करा",s5e8250fb85d64c23:"बंद करा",s625ad019db843f94:"वापर",sbf1ca928ec1deb62:"अधिक मदत आवश्यक आहे का?",sd1a8dc951b2b6a98:"यादीत कोणती क्षेत्रे स्तंभ म्हणून दर्शवली जावीत हे निवडा",sf9aee319a006c9b4:"समाविष्ट करा",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},zr=Object.freeze(Object.defineProperty({__proto__:null,templates:Fr},Symbol.toStringTag,{value:"Module"})),Dr={s226be12a5b1a27e8:"စာရွက်စာတမ်းများကိုဖတ်ပါ",s33f85f24c0f5f008:"သိမ်းဆည်းပါ",s36cb242ac90353bc:"နယ်ပယ်ဒေသများ",s5e8250fb85d64c23:"ပိတ်သည်",s625ad019db843f94:"အသုံးပြုပါ",sbf1ca928ec1deb62:"နောက်ထပ်အကူအညီလိုပါသလား။",sd1a8dc951b2b6a98:"စာရင်းရှိကော်လံများအနေဖြင့်ဖော်ပြမည့်မည်သည့်နယ်ပယ်ဒေသများကိုရွေးချယ်ပါ",sf9aee319a006c9b4:"ထည့်ပါ",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Rr=Object.freeze(Object.defineProperty({__proto__:null,templates:Dr},Symbol.toStringTag,{value:"Module"})),Nr={s226be12a5b1a27e8:"कागजात पढ्नुहोस्",s33f85f24c0f5f008:"सुरक्षित गर्नुहोस",s36cb242ac90353bc:"क्षेत्रहरू",s41cb4006238ebd3b:"थोक सम्पादन",s5e8250fb85d64c23:"बन्द गर्नुहोस",s625ad019db843f94:"प्रयोग गर्नुहोस्",sbf1ca928ec1deb62:"थप मद्दत चाहिन्छ?",sd1a8dc951b2b6a98:"सूचीमा स्तम्भहरूको रूपमा कुन क्षेत्रहरू प्रदर्शन गर्ने छनौट गर्नुहोस्",sf9aee319a006c9b4:"थप",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},qr=Object.freeze(Object.defineProperty({__proto__:null,templates:Nr},Symbol.toStringTag,{value:"Module"})),Ur={s04ceadb276bbe149:"aan het laden.....",s226be12a5b1a27e8:"Lees de documentatie",s29e25f5e4622f847:"Dialoogvenster openen",s33f85f24c0f5f008:"Opslaan",s36cb242ac90353bc:"Velden",s41cb4006238ebd3b:"Bulkbewerking",s5e8250fb85d64c23:"sluit",s625ad019db843f94:"Gebruiken",sac83d7f9358b43db:m`${0} Lijst`,sb1bd536b63e9e995:"Privéveld: alleen ik kan de inhoud zien",sb59d68ed12d46377:"aan het laden",sbf1ca928ec1deb62:"Meer hulp nodig?",sd1a8dc951b2b6a98:"Kies welke velden u als kolommen in de lijst wilt weergeven",seafe6ef133ede7da:m`1 van ${0} laten zien`,sf9aee319a006c9b4:"Toevoegen",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,s9d51bfd93b5dbeca:"Show Archived"},Vr=Object.freeze(Object.defineProperty({__proto__:null,templates:Ur},Symbol.toStringTag,{value:"Module"})),Br={s226be12a5b1a27e8:"ਦਸਤਾਵੇਜ਼ ਪੜ੍ਹੋ",s33f85f24c0f5f008:"ਸੇਵ",s36cb242ac90353bc:"ਖੇਤਰ",s41cb4006238ebd3b:"ਥੋਕ ਸੰਪਾਦਨ",s5e8250fb85d64c23:"ਬੰਦ ਕਰੋ",s625ad019db843f94:"ਵਰਤੋਂ",sbf1ca928ec1deb62:"ਹੋਰ ਮਦਦ ਦੀ ਲੋੜ ਹੈ?",sd1a8dc951b2b6a98:"ਸੂਚੀ ਵਿੱਚ ਕਾਲਮ ਦੇ ਰੂਪ ਵਿੱਚ ਪ੍ਰਦਰਸ਼ਿਤ ਕਰਨ ਲਈ ਕਿਹੜੇ ਖੇਤਰ ਚੁਣੋ",sf9aee319a006c9b4:"ਸ਼ਾਮਲ ਕਰੋ",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Hr=Object.freeze(Object.defineProperty({__proto__:null,templates:Br},Symbol.toStringTag,{value:"Module"})),Kr={s226be12a5b1a27e8:"Przeczytaj dokumentację",s33f85f24c0f5f008:"Zapisać",s36cb242ac90353bc:"Pola",s41cb4006238ebd3b:"Edycja zbiorcza",s5e8250fb85d64c23:"Zamknij",s625ad019db843f94:"Posługiwać się",sbf1ca928ec1deb62:"Potrzebujesz pomocy?",sd1a8dc951b2b6a98:"Wybierz, które pola mają być wyświetlane jako kolumny na liście",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Gr=Object.freeze(Object.defineProperty({__proto__:null,templates:Kr},Symbol.toStringTag,{value:"Module"})),Wr={s226be12a5b1a27e8:"Leia a documentação",s33f85f24c0f5f008:"Salvar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edição em massa",s5e8250fb85d64c23:"Fechar",s625ad019db843f94:"Usar",sbf1ca928ec1deb62:"Precisa de mais ajuda?",sd1a8dc951b2b6a98:"Escolha quais campos exibir como colunas na lista",sf9aee319a006c9b4:"Adicionar",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Zr=Object.freeze(Object.defineProperty({__proto__:null,templates:Wr},Symbol.toStringTag,{value:"Module"})),Jr={s226be12a5b1a27e8:"Citiți documentația",s33f85f24c0f5f008:"Salvați",s36cb242ac90353bc:"Câmpuri",s41cb4006238ebd3b:"Editare masivă",s5e8250fb85d64c23:"Închide",s625ad019db843f94:"Utilizare",sbf1ca928ec1deb62:"Ai nevoie de mai mult ajutor?",sd1a8dc951b2b6a98:"Alegeți câmpurile care să fie afișate în coloane în listă",sf9aee319a006c9b4:"Adăuga",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Qr=Object.freeze(Object.defineProperty({__proto__:null,templates:Jr},Symbol.toStringTag,{value:"Module"})),Xr={s226be12a5b1a27e8:"Читать документацию",s33f85f24c0f5f008:"Сохранить",s36cb242ac90353bc:"Поля",s41cb4006238ebd3b:"Массовое редактирование",s5e8250fb85d64c23:"Закрыть",s625ad019db843f94:"Использовать",sbf1ca928ec1deb62:"Нужна дополнительная помощь?",sd1a8dc951b2b6a98:"Выберите, какие поля отображать как столбцы в списке",sf9aee319a006c9b4:"Добавить",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Yr=Object.freeze(Object.defineProperty({__proto__:null,templates:Xr},Symbol.toStringTag,{value:"Module"})),en={s226be12a5b1a27e8:"Preberite dokumentacijo",s33f85f24c0f5f008:"Shrani",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Urejanje v velikem obsegu",s5e8250fb85d64c23:"Zapri",s625ad019db843f94:"Uporaba",sbf1ca928ec1deb62:"Potrebujete več pomoči?",sd1a8dc951b2b6a98:"Izberite, katera polja naj bodo prikazana kot stolpci na seznamu",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},tn=Object.freeze(Object.defineProperty({__proto__:null,templates:en},Symbol.toStringTag,{value:"Module"})),on={s226be12a5b1a27e8:"Pročitajte dokumentaciju",s33f85f24c0f5f008:"Sačuvaj",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"masovno uređivanje",s5e8250fb85d64c23:"Zatvori",s625ad019db843f94:"Koristiti",sbf1ca928ec1deb62:"Treba vam više pomoći?",sd1a8dc951b2b6a98:"Izaberite koja polja da se prikazuju kao kolone na listi",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},sn=Object.freeze(Object.defineProperty({__proto__:null,templates:on},Symbol.toStringTag,{value:"Module"})),an={s04ceadb276bbe149:"Inapakia chaguo...",s226be12a5b1a27e8:"Soma nyaraka",s29e25f5e4622f847:"Fungua Kidirisha",s33f85f24c0f5f008:"Hifadhi",s36cb242ac90353bc:"Mashamba",s41cb4006238ebd3b:"Hariri kwa Wingi",s5e8250fb85d64c23:"Funga",s625ad019db843f94:"Tumia",s9d51bfd93b5dbeca:"Onyesha Kumbukumbu",sac83d7f9358b43db:m`Orodha ya${0}`,sb1bd536b63e9e995:"Sehemu ya Faragha: Ni mimi pekee ninayeweza kuona maudhui yake",sb59d68ed12d46377:"Inapakia",sbf1ca928ec1deb62:"Unahitaji msaada zaidi?",scb9a1ff437efbd2a:m`Chagua ${0} zote ungependa kusasisha kutoka kwenye orodha, na uzisasishe hapa chini.`,sd1a8dc951b2b6a98:"Chagua ni sehemu zipi zitaonyeshwa kama safu wima kwenye orodha",seafe6ef133ede7da:m`Inaonyesha 1 kati ya ${0}`,sf9aee319a006c9b4:"Ongeza",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},rn=Object.freeze(Object.defineProperty({__proto__:null,templates:an},Symbol.toStringTag,{value:"Module"})),nn={s226be12a5b1a27e8:"อ่านเอกสาร",s33f85f24c0f5f008:"บันทึก",s36cb242ac90353bc:"ฟิลด์",s41cb4006238ebd3b:"แก้ไขเป็นกลุ่ม",s5e8250fb85d64c23:"ปิด",s625ad019db843f94:"ใช้",sbf1ca928ec1deb62:"ต้องการความช่วยเหลือเพิ่มเติมหรือไม่?",sd1a8dc951b2b6a98:"เลือกฟิลด์ที่จะแสดงเป็นคอลัมน์ในรายการ",sf9aee319a006c9b4:"เพิ่ม",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},ln=Object.freeze(Object.defineProperty({__proto__:null,templates:nn},Symbol.toStringTag,{value:"Module"})),dn={s226be12a5b1a27e8:"Basahin ang dokumentasyon",s33f85f24c0f5f008:"I-save",s36cb242ac90353bc:"Mga Field",s41cb4006238ebd3b:"Maramihang Pag-edit",s5e8250fb85d64c23:"Isara",s625ad019db843f94:"Gamitin",sbf1ca928ec1deb62:"Kailangan mo pa ba ng tulong?",sd1a8dc951b2b6a98:"Piliin kung aling mga field ang ipapakita bilang mga column sa listahan",sf9aee319a006c9b4:"Idagdag",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},cn=Object.freeze(Object.defineProperty({__proto__:null,templates:dn},Symbol.toStringTag,{value:"Module"})),un={s04ceadb276bbe149:"Seçenekler Yükleniyor...",s226be12a5b1a27e8:"Belgeleri oku",s29e25f5e4622f847:"İletişim Kutusunu Aç",s33f85f24c0f5f008:"Kaydet",s36cb242ac90353bc:"Alanlar",s41cb4006238ebd3b:"Toplu Düzenleme",s5e8250fb85d64c23:"Kapat",s625ad019db843f94:"Kullan",s9d51bfd93b5dbeca:"Arşivlenmiş Göster",sac83d7f9358b43db:m`${0} Listesi`,sb1bd536b63e9e995:"Özel Alan: İçeriğini sadece ben görebilirim",sb59d68ed12d46377:"Yükleniyor",sbf1ca928ec1deb62:"Daha fazla yardıma ihtiyacınız var mı?",scb9a1ff437efbd2a:m`Listeden güncellemek istediğiniz tüm ${0} 'i seçin ve aşağıda güncelleyin`,sd1a8dc951b2b6a98:"Listede Hangi Alanların Sütun Olarak Görüntüleneceğini Seçin",seafe6ef133ede7da:m`Gösteriliyor 1 of ${0}`,sf9aee319a006c9b4:"Ekle",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},hn=Object.freeze(Object.defineProperty({__proto__:null,templates:un},Symbol.toStringTag,{value:"Module"})),pn={s226be12a5b1a27e8:"Прочитайте документацію",s33f85f24c0f5f008:"Зберегти",s36cb242ac90353bc:"Поля",s41cb4006238ebd3b:"Масове редагування",s5e8250fb85d64c23:"Закрити",s625ad019db843f94:"Використати",sbf1ca928ec1deb62:"Потрібна додаткова допомога?",sd1a8dc951b2b6a98:"Виберіть, яке поле відображати у вигляді стовпців у списку",sf9aee319a006c9b4:"Додати",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},fn=Object.freeze(Object.defineProperty({__proto__:null,templates:pn},Symbol.toStringTag,{value:"Module"})),bn={s226be12a5b1a27e8:"Đọc tài liệu",s33f85f24c0f5f008:"Lưu",s36cb242ac90353bc:"Trường",s41cb4006238ebd3b:"Chỉnh sửa Hàng loạt",s5e8250fb85d64c23:"Đóng",s625ad019db843f94:"Sử dụng",sbf1ca928ec1deb62:"Bạn cần trợ giúp thêm?",sd1a8dc951b2b6a98:"Chọn các trường để hiển thị dưới dạng cột trong danh sách",sf9aee319a006c9b4:"Bổ sung",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},mn=Object.freeze(Object.defineProperty({__proto__:null,templates:bn},Symbol.toStringTag,{value:"Module"})),gn={s226be12a5b1a27e8:"阅读文档",s33f85f24c0f5f008:"保存",s36cb242ac90353bc:"字段",s41cb4006238ebd3b:"批量编辑",s5e8250fb85d64c23:"关",s625ad019db843f94:"使用",sbf1ca928ec1deb62:"需要更多帮助吗?",sd1a8dc951b2b6a98:"选择哪些字段要在列表中显示为列",sf9aee319a006c9b4:"添加",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},vn=Object.freeze(Object.defineProperty({__proto__:null,templates:gn},Symbol.toStringTag,{value:"Module"})),yn={s04ceadb276bbe149:"正在載入選項...",s226be12a5b1a27e8:"閱讀文檔",s29e25f5e4622f847:"開啟對話視窗",s33f85f24c0f5f008:"儲存",s36cb242ac90353bc:"欄位",s41cb4006238ebd3b:"大量編輯",s5e8250fb85d64c23:"關",s625ad019db843f94:"使用",s9d51bfd93b5dbeca:"顯示已儲存",sac83d7f9358b43db:m`${0} 清單`,sb1bd536b63e9e995:"私人欄位:只有我可以看見內容",sb59d68ed12d46377:"載入中",sbf1ca928ec1deb62:"需要更多幫助嗎?",scb9a1ff437efbd2a:m`從清單中選取要更新的項目${0},並在下面進行更新`,sd1a8dc951b2b6a98:"選擇哪些欄位要顯示為列表中的直行",seafe6ef133ede7da:m`第1頁 (共${0}頁)`,sf9aee319a006c9b4:"新增",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},_n=Object.freeze(Object.defineProperty({__proto__:null,templates:yn},Symbol.toStringTag,{value:"Module"}));return x.ApiService=yi,x.ComponentService=Ie,x.DtAlert=Ao,x.DtBase=N,x.DtButton=_i,x.DtChurchHealthCircle=ho,x.DtConnection=po,x.DtCopyText=bo,x.DtDate=jt,x.DtDatetime=mo,x.DtFileUpload=Eo,x.DtFormBase=P,x.DtIcon=no,x.DtLabel=$i,x.DtLocation=go,x.DtLocationMap=_o,x.DtMapModal=yo,x.DtModal=vo,x.DtMultiSelect=Ze,x.DtMultiSelectButtonGroup=So,x.DtMultiText=zt,x.DtMultiTextGroups=ko,x.DtNumberField=wo,x.DtSingleSelect=$o,x.DtTags=Ce,x.DtText=Ft,x.DtTextArea=xo,x.DtTile=To,x.DtToggle=uo,x.DtUsersConnection=fo,x.version=Va,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),x}({}); diff --git a/dt-assets/build/components/index.umd.cjs b/dt-assets/build/components/index.umd.cjs index a64b62efa4..d75e6cc9fc 100644 --- a/dt-assets/build/components/index.umd.cjs +++ b/dt-assets/build/components/index.umd.cjs @@ -1,30 +1,30 @@ -(function($,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):($=typeof globalThis<"u"?globalThis:$||self,I($.DtWebComponents={}))})(this,function($){"use strict";var Pn=Object.defineProperty;var Mn=($,I,W)=>I in $?Pn($,I,{enumerable:!0,configurable:!0,writable:!0,value:W}):$[I]=W;var Me=($,I,W)=>Mn($,typeof I!="symbol"?I+"":I,W);/** +(function(_,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(_=typeof globalThis<"u"?globalThis:_||self,L(_.DtWebComponents={}))})(this,function(_){"use strict";var Mn=Object.defineProperty;var jn=(_,L,W)=>L in _?Mn(_,L,{enumerable:!0,configurable:!0,writable:!0,value:W}):_[L]=W;var Me=(_,L,W)=>jn(_,typeof L!="symbol"?L+"":L,W);/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */var Oo;const I=globalThis,W=I.ShadowRoot&&(I.ShadyCSS===void 0||I.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ut=Symbol(),Vt=new WeakMap;let qo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Ut)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(W&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Vt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vt.set(t,e))}return e}toString(){return this.cssText}};const Uo=s=>new qo(typeof s=="string"?s:s+"",void 0,Ut),Vo=(s,e)=>{if(W)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=I.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},Bt=W?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Uo(t)})(s):s;/** + */var Oo;const L=globalThis,W=L.ShadowRoot&&(L.ShadyCSS===void 0||L.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vt=Symbol(),Bt=new WeakMap;let Uo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(W&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Bt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Bt.set(t,e))}return e}toString(){return this.cssText}};const Vo=s=>new Uo(typeof s=="string"?s:s+"",void 0,Vt),Bo=(s,e)=>{if(W)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=L.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},Ht=W?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Vo(t)})(s):s;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:Bo,defineProperty:Ho,getOwnPropertyDescriptor:Ko,getOwnPropertyNames:Wo,getOwnPropertySymbols:Go,getPrototypeOf:Zo}=Object,G=globalThis,Ht=G.trustedTypes,Jo=Ht?Ht.emptyScript:"",et=G.reactiveElementPolyfillSupport,fe=(s,e)=>s,tt={toAttribute(s,e){switch(e){case Boolean:s=s?Jo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Kt=(s,e)=>!Bo(s,e),Wt={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:Kt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),G.litPropertyMetadata??(G.litPropertyMetadata=new WeakMap);let be=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Wt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Ho(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=Ko(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Wt}static _$Ei(){if(this.hasOwnProperty(fe("elementProperties")))return;const e=Zo(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(fe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fe("properties"))){const t=this.properties,i=[...Wo(t),...Go(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(Bt(o))}else e!==void 0&&t.push(Bt(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vo(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:tt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:tt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??Kt)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}};be.elementStyles=[],be.shadowRootOptions={mode:"open"},be[fe("elementProperties")]=new Map,be[fe("finalized")]=new Map,et==null||et({ReactiveElement:be}),(G.reactiveElementVersions??(G.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:Ho,defineProperty:Ko,getOwnPropertyDescriptor:Go,getOwnPropertyNames:Wo,getOwnPropertySymbols:Zo,getPrototypeOf:Jo}=Object,Z=globalThis,Kt=Z.trustedTypes,Qo=Kt?Kt.emptyScript:"",et=Z.reactiveElementPolyfillSupport,fe=(s,e)=>s,tt={toAttribute(s,e){switch(e){case Boolean:s=s?Qo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Gt=(s,e)=>!Ho(s,e),Wt={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:Gt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Z.litPropertyMetadata??(Z.litPropertyMetadata=new WeakMap);let be=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Wt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Ko(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=Go(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Wt}static _$Ei(){if(this.hasOwnProperty(fe("elementProperties")))return;const e=Jo(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(fe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fe("properties"))){const t=this.properties,i=[...Wo(t),...Zo(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(Ht(o))}else e!==void 0&&t.push(Ht(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bo(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:tt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:tt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??Gt)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}};be.elementStyles=[],be.shadowRootOptions={mode:"open"},be[fe("elementProperties")]=new Map,be[fe("finalized")]=new Map,et==null||et({ReactiveElement:be}),(Z.reactiveElementVersions??(Z.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const me=globalThis,je=me.trustedTypes,Gt=je?je.createPolicy("lit-html",{createHTML:s=>s}):void 0,Zt="$lit$",Z=`lit$${Math.random().toFixed(9).slice(2)}$`,Jt="?"+Z,Qo=`<${Jt}>`,te=document,ge=()=>te.createComment(""),ve=s=>s===null||typeof s!="object"&&typeof s!="function",it=Array.isArray,Xo=s=>it(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[ -\f\r]`,ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Xt=/>/g,ie=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Yt=/'/g,ei=/"/g,ti=/^(?:script|style|textarea|title)$/i,Yo=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),p=Yo(1),U=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),ii=new WeakMap,oe=te.createTreeWalker(te,129);function oi(s,e){if(!it(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gt!==void 0?Gt.createHTML(e):e}const es=(s,e)=>{const t=s.length-1,i=[];let o,a=e===2?"":e===3?"":"",r=ye;for(let n=0;n"?(r=o??ye,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?ie:u[3]==='"'?ei:Yt):r===ei||r===Yt?r=ie:r===Qt||r===Xt?r=ye:(r=ie,o=void 0);const y=r===ie&&s[n+1].startsWith("/>")?" ":"";a+=r===ye?l+Qo:h>=0?(i.push(d),l.slice(0,h)+Zt+l.slice(h)+Z+y):l+Z+(h===-2?n:y)}return[oi(s,a+(s[t]||"")+(e===2?"":e===3?"":"")),i]};class _e{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let a=0,r=0;const n=e.length-1,l=this.parts,[d,u]=es(e,t);if(this.el=_e.createElement(d,i),oe.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=oe.nextNode())!==null&&l.length0){o.textContent=je?je.emptyScript:"";for(let y=0;y2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}_$AI(e,t=this,i,o){const a=this.strings;let r=!1;if(a===void 0)e=ce(this,e,t,0),r=!ve(e)||e!==this._$AH&&e!==U,r&&(this._$AH=e);else{const n=e;let l,d;for(e=a[0],l=0;l{const i=(t==null?void 0:t.renderBefore)??e;let o=i._$litPart$;if(o===void 0){const a=(t==null?void 0:t.renderBefore)??null;i._$litPart$=o=new ue(e.insertBefore(ge(),a),a,void 0,t??{})}return o._$AI(s),o};/** + */const me=globalThis,je=me.trustedTypes,Zt=je?je.createPolicy("lit-html",{createHTML:s=>s}):void 0,Jt="$lit$",J=`lit$${Math.random().toFixed(9).slice(2)}$`,Qt="?"+J,Xo=`<${Qt}>`,ie=document,ge=()=>ie.createComment(""),ve=s=>s===null||typeof s!="object"&&typeof s!="function",it=Array.isArray,Yo=s=>it(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[ +\f\r]`,ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xt=/-->/g,Yt=/>/g,oe=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),ei=/'/g,ti=/"/g,ii=/^(?:script|style|textarea|title)$/i,es=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),h=es(1),V=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),oi=new WeakMap,se=ie.createTreeWalker(ie,129);function si(s,e){if(!it(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(e):e}const ts=(s,e)=>{const t=s.length-1,i=[];let o,a=e===2?"":e===3?"":"",r=ye;for(let n=0;n"?(r=o??ye,p=-1):u[1]===void 0?p=-2:(p=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?oe:u[3]==='"'?ti:ei):r===ti||r===ei?r=oe:r===Xt||r===Yt?r=ye:(r=oe,o=void 0);const y=r===oe&&s[n+1].startsWith("/>")?" ":"";a+=r===ye?l+Xo:p>=0?(i.push(d),l.slice(0,p)+Jt+l.slice(p)+J+y):l+J+(p===-2?n:y)}return[si(s,a+(s[t]||"")+(e===2?"":e===3?"":"")),i]};class _e{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let a=0,r=0;const n=e.length-1,l=this.parts,[d,u]=ts(e,t);if(this.el=_e.createElement(d,i),se.currentNode=this.el.content,t===2||t===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=se.nextNode())!==null&&l.length0){o.textContent=je?je.emptyScript:"";for(let y=0;y2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}_$AI(e,t=this,i,o){const a=this.strings;let r=!1;if(a===void 0)e=ue(this,e,t,0),r=!ve(e)||e!==this._$AH&&e!==V,r&&(this._$AH=e);else{const n=e;let l,d;for(e=a[0],l=0;l{const i=(t==null?void 0:t.renderBefore)??e;let o=i._$litPart$;if(o===void 0){const a=(t==null?void 0:t.renderBefore)??null;i._$litPart$=o=new he(e.insertBefore(ge(),a),a,void 0,t??{})}return o._$AI(s),o};/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Fe=globalThis,at=Fe.ShadowRoot&&(Fe.ShadyCSS===void 0||Fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rt=Symbol(),si=new WeakMap;let ai=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(at&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=si.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&si.set(t,e))}return e}toString(){return this.cssText}};const ls=s=>new ai(typeof s=="string"?s:s+"",void 0,rt),x=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,o,a)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[a+1],s[0]);return new ai(t,s,rt)},ds=(s,e)=>{if(at)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=Fe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},ri=at?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ls(t)})(s):s;/** + */const ze=globalThis,at=ze.ShadowRoot&&(ze.ShadyCSS===void 0||ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rt=Symbol(),ai=new WeakMap;let ri=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(at&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=ai.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ai.set(t,e))}return e}toString(){return this.cssText}};const ds=s=>new ri(typeof s=="string"?s:s+"",void 0,rt),x=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,o,a)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[a+1],s[0]);return new ri(t,s,rt)},cs=(s,e)=>{if(at)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=ze.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},ni=at?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ds(t)})(s):s;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:cs,defineProperty:us,getOwnPropertyDescriptor:hs,getOwnPropertyNames:ps,getOwnPropertySymbols:fs,getPrototypeOf:bs}=Object,J=globalThis,ni=J.trustedTypes,ms=ni?ni.emptyScript:"",nt=J.reactiveElementPolyfillSupport,we=(s,e)=>s,lt={toAttribute(s,e){switch(e){case Boolean:s=s?ms:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},li=(s,e)=>!cs(s,e),di={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:li};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),J.litPropertyMetadata??(J.litPropertyMetadata=new WeakMap);class he extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=di){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&us(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=hs(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??di}static _$Ei(){if(this.hasOwnProperty(we("elementProperties")))return;const e=bs(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(we("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(we("properties"))){const t=this.properties,i=[...ps(t),...fs(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(ri(o))}else e!==void 0&&t.push(ri(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ds(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:lt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:lt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??li)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}he.elementStyles=[],he.shadowRootOptions={mode:"open"},he[we("elementProperties")]=new Map,he[we("finalized")]=new Map,nt==null||nt({ReactiveElement:he}),(J.reactiveElementVersions??(J.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:us,defineProperty:hs,getOwnPropertyDescriptor:ps,getOwnPropertyNames:fs,getOwnPropertySymbols:bs,getPrototypeOf:ms}=Object,Q=globalThis,li=Q.trustedTypes,gs=li?li.emptyScript:"",nt=Q.reactiveElementPolyfillSupport,we=(s,e)=>s,lt={toAttribute(s,e){switch(e){case Boolean:s=s?gs:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},di=(s,e)=>!us(s,e),ci={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:di};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Q.litPropertyMetadata??(Q.litPropertyMetadata=new WeakMap);class pe extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ci){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&hs(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=ps(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ci}static _$Ei(){if(this.hasOwnProperty(we("elementProperties")))return;const e=ms(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(we("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(we("properties"))){const t=this.properties,i=[...fs(t),...bs(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(ni(o))}else e!==void 0&&t.push(ni(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return cs(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:lt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:lt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??di)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}pe.elementStyles=[],pe.shadowRootOptions={mode:"open"},pe[we("elementProperties")]=new Map,pe[we("finalized")]=new Map,nt==null||nt({ReactiveElement:pe}),(Q.reactiveElementVersions??(Q.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let se=class extends he{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ns(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return U}};se._$litElement$=!0,se.finalized=!0,(Oo=globalThis.litElementHydrateSupport)==null||Oo.call(globalThis,{LitElement:se});const dt=globalThis.litElementPolyfillSupport;dt==null||dt({LitElement:se}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/** + */let ae=class extends pe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ls(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return V}};ae._$litElement$=!0,ae.finalized=!0,(Oo=globalThis.litElementHydrateSupport)==null||Oo.call(globalThis,{LitElement:ae});const dt=globalThis.litElementPolyfillSupport;dt==null||dt({LitElement:ae}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -32,7 +32,7 @@ * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const A=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="class"||((e=s.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){var i,o;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in e)e[a]&&!((i=this.nt)!=null&&i.has(a))&&this.st.add(a);return this.render(e)}const t=s.element.classList;for(const a of this.st)a in e||(t.remove(a),this.st.delete(a));for(const a in e){const r=!!e[a];r===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(r?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return U}});/** + */const A=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="class"||((e=s.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){var i,o;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in e)e[a]&&!((i=this.nt)!=null&&i.has(a))&&this.st.add(a);return this.render(e)}const t=s.element.classList;for(const a of this.st)a in e||(t.remove(a),this.st.delete(a));for(const a in e){const r=!!e[a];r===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(r?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return V}});/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause @@ -40,38 +40,38 @@ * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const m=(s,...e)=>({strTag:!0,strings:s,values:e}),gs=s=>typeof s!="string"&&"strTag"in s,ci=(s,e,t)=>{let i=s[0];for(let o=1;o({strTag:!0,strings:s,values:e}),vs=s=>typeof s!="string"&&"strTag"in s,ui=(s,e,t)=>{let i=s[0];for(let o=1;ogs(s)?ci(s.strings,s.values):s;let R=ui,hi=!1;function vs(s){if(hi)throw new Error("lit-localize can only be configured once");R=s,hi=!0}/** + */const hi=s=>vs(s)?ui(s.strings,s.values):s;let R=hi,pi=!1;function ys(s){if(pi)throw new Error("lit-localize can only be configured once");R=s,pi=!0}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class ys{constructor(e){this.__litLocalizeEventHandler=t=>{t.detail.status==="ready"&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(pt,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(pt,this.__litLocalizeEventHandler)}}const _s=s=>s.addController(new ys(s));/** + */class _s{constructor(e){this.__litLocalizeEventHandler=t=>{t.detail.status==="ready"&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(pt,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(pt,this.__litLocalizeEventHandler)}}const ws=s=>s.addController(new _s(s));/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class pi{constructor(){this.settled=!1,this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}/** + */class fi{constructor(){this.settled=!1,this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}/** * @license * Copyright 2014 Travis Webb * SPDX-License-Identifier: MIT - */const V=[];for(let s=0;s<256;s++)V[s]=(s>>4&15).toString(16)+(s&15).toString(16);function ws(s){let e=0,t=8997,i=0,o=33826,a=0,r=40164,n=0,l=52210;for(let d=0;d>>16,t=e&65535,a+=i>>>16,o=i&65535,l=n+(a>>>16)&65535,r=a&65535;return V[l>>8]+V[l&255]+V[r>>8]+V[r&255]+V[o>>8]+V[o&255]+V[t>>8]+V[t&255]}/** + */const B=[];for(let s=0;s<256;s++)B[s]=(s>>4&15).toString(16)+(s&15).toString(16);function $s(s){let e=0,t=8997,i=0,o=33826,a=0,r=40164,n=0,l=52210;for(let d=0;d>>16,t=e&65535,a+=i>>>16,o=i&65535,l=n+(a>>>16)&65535,r=a&65535;return B[l>>8]+B[l&255]+B[r>>8]+B[r&255]+B[o>>8]+B[o&255]+B[t>>8]+B[t&255]}/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const $s="",xs="h",ks="s";function Ss(s,e){return(e?xs:ks)+ws(typeof s=="string"?s:s.join($s))}/** + */const xs="",ks="h",Ss="s";function Es(s,e){return(e?ks:Ss)+$s(typeof s=="string"?s:s.join(xs))}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const fi=new WeakMap,bi=new Map;function Es(s,e,t){if(s){const i=(t==null?void 0:t.id)??As(e),o=s[i];if(o){if(typeof o=="string")return o;if("strTag"in o)return ci(o.strings,e.values,o.values);{let a=fi.get(o);return a===void 0&&(a=o.values,fi.set(o,a)),{...o,values:a.map(r=>e.values[r])}}}}return ui(e)}function As(s){const e=typeof s=="string"?s:s.strings;let t=bi.get(e);return t===void 0&&(t=Ss(e,typeof s!="string"&&!("strTag"in s)),bi.set(e,t)),t}/** + */const bi=new WeakMap,mi=new Map;function As(s,e,t){if(s){const i=(t==null?void 0:t.id)??Ts(e),o=s[i];if(o){if(typeof o=="string")return o;if("strTag"in o)return ui(o.strings,e.values,o.values);{let a=bi.get(o);return a===void 0&&(a=o.values,bi.set(o,a)),{...o,values:a.map(r=>e.values[r])}}}}return hi(e)}function Ts(s){const e=typeof s=="string"?s:s.strings;let t=mi.get(e);return t===void 0&&(t=Es(e,typeof s!="string"&&!("strTag"in s)),mi.set(e,t)),t}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function ft(s){window.dispatchEvent(new CustomEvent(pt,{detail:s}))}let De="",bt,mi,Re,mt,gi,ae=new pi;ae.resolve();let Ne=0;const Os=s=>(vs((e,t)=>Es(gi,e,t)),De=mi=s.sourceLocale,Re=new Set(s.targetLocales),Re.add(s.sourceLocale),mt=s.loadLocale,{getLocale:Ts,setLocale:Cs}),Ts=()=>De,Cs=s=>{if(s===(bt??De))return ae.promise;if(!Re||!mt)throw new Error("Internal error");if(!Re.has(s))throw new Error("Invalid locale code");Ne++;const e=Ne;return bt=s,ae.settled&&(ae=new pi),ft({status:"loading",loadingLocale:s}),(s===mi?Promise.resolve({templates:void 0}):mt(s)).then(i=>{Ne===e&&(De=s,bt=void 0,gi=i.templates,ft({status:"ready",readyLocale:s}),ae.resolve())},i=>{Ne===e&&(ft({status:"error",errorLocale:s,errorMessage:i.toString()}),ae.reject(i))}),ae.promise},Ls=(s,e,t)=>{const i=s[e];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((o,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Is="en",Ps=["am_ET","ar","ar_MA","bg_BG","bn_BD","bs_BA","cs","de_DE","el","en_US","es_419","es_ES","fa_IR","fr_FR","hi_IN","hr","hu_HU","id_ID","it_IT","ja","ko_KR","mk_MK","mr","my_MM","ne_NP","nl_NL","pa_IN","pl","pt_BR","ro_RO","ru_RU","sl_SI","sr_BA","sw","th","tl","tr_TR","uk","vi","zh_CN","zh_TW"],{setLocale:Ms}=Os({sourceLocale:Is,targetLocales:Ps,loadLocale:s=>Ls(Object.assign({"./generated/am_ET.js":()=>Promise.resolve().then(()=>Ba),"./generated/ar.js":()=>Promise.resolve().then(()=>Ka),"./generated/ar_MA.js":()=>Promise.resolve().then(()=>Ga),"./generated/bg_BG.js":()=>Promise.resolve().then(()=>Ja),"./generated/bn_BD.js":()=>Promise.resolve().then(()=>Xa),"./generated/bs_BA.js":()=>Promise.resolve().then(()=>er),"./generated/cs.js":()=>Promise.resolve().then(()=>ir),"./generated/de_DE.js":()=>Promise.resolve().then(()=>sr),"./generated/el.js":()=>Promise.resolve().then(()=>rr),"./generated/en_US.js":()=>Promise.resolve().then(()=>lr),"./generated/es-419.js":()=>Promise.resolve().then(()=>cr),"./generated/es_419.js":()=>Promise.resolve().then(()=>hr),"./generated/es_ES.js":()=>Promise.resolve().then(()=>fr),"./generated/fa_IR.js":()=>Promise.resolve().then(()=>mr),"./generated/fr_FR.js":()=>Promise.resolve().then(()=>vr),"./generated/hi_IN.js":()=>Promise.resolve().then(()=>_r),"./generated/hr.js":()=>Promise.resolve().then(()=>$r),"./generated/hu_HU.js":()=>Promise.resolve().then(()=>kr),"./generated/id_ID.js":()=>Promise.resolve().then(()=>Er),"./generated/it_IT.js":()=>Promise.resolve().then(()=>Or),"./generated/ja.js":()=>Promise.resolve().then(()=>Cr),"./generated/ko_KR.js":()=>Promise.resolve().then(()=>Ir),"./generated/mk_MK.js":()=>Promise.resolve().then(()=>Mr),"./generated/mr.js":()=>Promise.resolve().then(()=>zr),"./generated/my_MM.js":()=>Promise.resolve().then(()=>Dr),"./generated/ne_NP.js":()=>Promise.resolve().then(()=>Nr),"./generated/nl_NL.js":()=>Promise.resolve().then(()=>Ur),"./generated/pa_IN.js":()=>Promise.resolve().then(()=>Br),"./generated/pl.js":()=>Promise.resolve().then(()=>Kr),"./generated/pt_BR.js":()=>Promise.resolve().then(()=>Gr),"./generated/ro_RO.js":()=>Promise.resolve().then(()=>Jr),"./generated/ru_RU.js":()=>Promise.resolve().then(()=>Xr),"./generated/sl_SI.js":()=>Promise.resolve().then(()=>en),"./generated/sr_BA.js":()=>Promise.resolve().then(()=>on),"./generated/sw.js":()=>Promise.resolve().then(()=>an),"./generated/th.js":()=>Promise.resolve().then(()=>nn),"./generated/tl.js":()=>Promise.resolve().then(()=>dn),"./generated/tr_TR.js":()=>Promise.resolve().then(()=>un),"./generated/uk.js":()=>Promise.resolve().then(()=>pn),"./generated/vi.js":()=>Promise.resolve().then(()=>bn),"./generated/zh_CN.js":()=>Promise.resolve().then(()=>gn),"./generated/zh_TW.js":()=>Promise.resolve().then(()=>yn)}),`./generated/${s}.js`,3)});class vi{constructor(e,t="/wp-json"){this.nonce=e;let i=t;i.match("^http")&&(i=i.replace(/^http[s]?:\/\/.*?\//,"")),i=`/${i}/`.replace(/\/\//g,"/"),this.apiRoot=i}async makeRequest(e,t,i,o="dt/v1/"){let a=o;!a.endsWith("/")&&!t.startsWith("/")&&(a+="/");const r=t.startsWith("http")?t:`${this.apiRoot}${a}${t}`,n={method:e,credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce}};e!=="GET"&&(n.body=JSON.stringify(i));const l=await fetch(r,n),d=await l.json();if(!l.ok){const u=new Error((d==null?void 0:d.message)||d.toString());throw u.args={status:l.status,statusText:l.statusText,body:d},u}return d}async makeRequestOnPosts(e,t,i={}){return this.makeRequest(e,t,i,"dt-posts/v2/")}async getPost(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}`)}async createPost(e,t){return this.makeRequestOnPosts("POST",e,t)}async fetchPostsList(e,t){return this.makeRequestOnPosts("POST",`${e}/list`,t)}async updatePost(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}`,i)}async deletePost(e,t){return this.makeRequestOnPosts("DELETE",`${e}/${t}`)}async listPostsCompact(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequestOnPosts("GET",`${e}/compact?${i}`)}async getPostDuplicates(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/all_duplicates`,i)}async checkFieldValueExists(e,t){return this.makeRequestOnPosts("POST",`${e}/check_field_value_exists`,t)}async getMultiSelectValues(e,t,i=""){const o=new URLSearchParams({s:i,field:t});return this.makeRequestOnPosts("GET",`${e}/multi-select-values?${o}`)}async getLocations(e,t,i,o=""){const a=new URLSearchParams({s:o,field:t,filter:i});return this.makeRequest("GET",`mapping_module/search_location_grid_by_name?${a}`)}async transferContact(e,t){return this.makeRequestOnPosts("POST","contacts/transfer",{contact_id:e,site_post_id:t})}async transferContactSummaryUpdate(e,t){return this.makeRequestOnPosts("POST","contacts/transfer/summary/send-update",{contact_id:e,update:t})}async requestRecordAccess(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/request_record_access`,{user_id:i})}async createComment(e,t,i,o="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments`,{comment:i,comment_type:o})}async updateComment(e,t,i,o,a="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}`,{comment:o,comment_type:a})}async deleteComment(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/comments/${i}`)}async getComments(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/comments`)}async toggle_comment_reaction(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}/react`,{user_id:o,reaction:a})}async getPostActivity(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/activity`)}async getSingleActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/activity/${i}`)}async revertActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/revert/${i}`)}async getPostShares(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/shares`)}async addPostShare(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/shares`,{user_id:i})}async removePostShare(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/shares`,{user_id:i})}async getFilters(){return this.makeRequest("GET","users/get_filters")}async saveFilters(e,t){return this.makeRequest("POST","users/save_filters",{filter:t,postType:e})}async deleteFilter(e,t){return this.makeRequest("DELETE","users/save_filters",{id:t,postType:e})}async searchUsers(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequest("GET",`users/get_users?${i}&post_type=${e}`)}async checkDuplicateUsers(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/duplicates`)}async getContactInfo(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/`)}async createUser(e){return this.makeRequest("POST","users/create",e)}async advanced_search(e,t,i,o){return this.makeRequest("GET","advanced_search",{query:e,postType:t,offset:i,post:o.post,comment:o.comment,meta:o.meta,status:o.status},"dt-posts/v2/posts/search/")}async uploadFiles(e,t,i,o,a=""){const r=new FormData;i.forEach(l=>r.append("storage_upload_files[]",l)),r.append("meta_key",o),r.append("key_prefix",a),r.append("upload_type","post"),r.append("is_multi_file","true"),r.append("storage_s3_url_duration","+7 days");const n=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_upload`;return await new Promise((l,d)=>{const u=new XMLHttpRequest;u.open("POST",n,!0),u.withCredentials=!0,u.setRequestHeader("X-WP-Nonce",this.nonce),u.onload=()=>{let h={};try{h=JSON.parse(u.responseText||"{}")}catch{h={message:u.responseText||"Upload failed"}}if(u.status>=200&&u.status<300)l(h);else{const g=new Error((h==null?void 0:h.uploaded_msg)||(h==null?void 0:h.message)||"Upload failed");g.args={status:u.status,statusText:u.statusText,body:h},d(g)}},u.onerror=()=>d(new Error("Upload failed")),u.send(r)})}async deleteFile(e,t,i,o){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_delete_single`,{meta_key:i,file_key:o})}async renameFile(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_rename_single`,{meta_key:i,file_key:o,new_name:a})}async downloadFile(e,t,i,o){const a=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_download`,r=await fetch(a,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce},body:JSON.stringify({meta_key:i,file_key:o})});if(!r.ok){const n=await r.json().catch(()=>({message:"Download failed"}));throw new Error(n.message||"Download failed")}return await r.blob()}}(function(){(function(s){const e=new WeakMap,t=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,g=new WeakMap,y=new WeakMap,_=new WeakMap,C=new WeakMap,D={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},j=(f,c)=>{for(let b in D){c[b]=null;let v=null;const w=D[b];Object.defineProperty(c,b,{get(){return v},set(k){v=k,f.isConnected?P(f,w,k):u.set(f,c)}})}};function L(f){const c=o.get(f),{form:b}=c;Io(f,b,c),Lo(f,c.labels)}const Ie=(f,c=!1)=>{const b=document.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,{acceptNode(k){return o.has(k)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let v=b.nextNode();const w=!c||f.disabled;for(;v;)v.formDisabledCallback&&w&&Ft(v,f.disabled),v=b.nextNode()},Je={attributes:!0,attributeFilter:["disabled","name"]},Y=Ye()?new MutationObserver(f=>{for(const c of f){const b=c.target;if(c.attributeName==="disabled"&&(b.constructor.formAssociated?Ft(b,b.hasAttribute("disabled")):b.localName==="fieldset"&&Ie(b)),c.attributeName==="name"&&b.constructor.formAssociated){const v=o.get(b),w=d.get(b);v.setFormValue(w)}}}):{};function E(f){f.forEach(c=>{const{addedNodes:b,removedNodes:v}=c,w=Array.from(b),k=Array.from(v);w.forEach(S=>{var z;if(o.has(S)&&S.constructor.formAssociated&&L(S),u.has(S)){const T=u.get(S);Object.keys(D).filter(q=>T[q]!==null).forEach(q=>{P(S,D[q],T[q])}),u.delete(S)}if(C.has(S)){const T=C.get(S);P(S,"internals-valid",T.validity.valid.toString()),P(S,"internals-invalid",(!T.validity.valid).toString()),P(S,"aria-invalid",(!T.validity.valid).toString()),C.delete(S)}if(S.localName==="form"){const T=l.get(S),K=document.createTreeWalker(S,NodeFilter.SHOW_ELEMENT,{acceptNode(qt){return o.has(qt)&&qt.constructor.formAssociated&&!(T&&T.has(qt))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let q=K.nextNode();for(;q;)L(q),q=K.nextNode()}S.localName==="fieldset"&&((z=Y.observe)===null||z===void 0||z.call(Y,S,Je),Ie(S,!0))}),k.forEach(S=>{const z=o.get(S);z&&i.get(z)&&To(z),n.has(S)&&n.get(S).disconnect()})})}function F(f){f.forEach(c=>{const{removedNodes:b}=c;b.forEach(v=>{const w=y.get(c.target);o.has(v)&&Mo(v),w.disconnect()})})}const de=f=>{var c,b;const v=new MutationObserver(F);!((c=window==null?void 0:window.ShadyDOM)===null||c===void 0)&&c.inUse&&f.mode&&f.host&&(f=f.host),(b=v.observe)===null||b===void 0||b.call(v,f,{childList:!0}),y.set(f,v)};Ye()&&new MutationObserver(E);const ee={childList:!0,subtree:!0},P=(f,c,b)=>{f.getAttribute(c)!==b&&f.setAttribute(c,b)},Ft=(f,c)=>{f.toggleAttribute("internals-disabled",c),c?P(f,"aria-disabled","true"):f.removeAttribute("aria-disabled"),f.formDisabledCallback&&f.formDisabledCallback.apply(f,[c])},To=f=>{i.get(f).forEach(b=>{b.remove()}),i.set(f,[])},Co=(f,c)=>{const b=document.createElement("input");return b.type="hidden",b.name=f.getAttribute("name"),f.after(b),i.get(c).push(b),b},_n=(f,c)=>{var b;i.set(c,[]),(b=Y.observe)===null||b===void 0||b.call(Y,f,Je)},Lo=(f,c)=>{if(c.length){Array.from(c).forEach(v=>v.addEventListener("click",f.click.bind(f)));let b=c[0].id;c[0].id||(b=`${c[0].htmlFor}_Label`,c[0].id=b),P(f,"aria-labelledby",b)}},Qe=f=>{const c=Array.from(f.elements).filter(k=>!k.tagName.includes("-")&&k.validity).map(k=>k.validity.valid),b=l.get(f)||[],v=Array.from(b).filter(k=>k.isConnected).map(k=>o.get(k).validity.valid),w=[...c,...v].includes(!1);f.toggleAttribute("internals-invalid",w),f.toggleAttribute("internals-valid",!w)},wn=f=>{Qe(Xe(f.target))},$n=f=>{Qe(Xe(f.target))},xn=f=>{const c=["button[type=submit]","input[type=submit]","button:not([type])"].map(b=>`${b}:not([disabled])`).map(b=>`${b}:not([form])${f.id?`,${b}[form='${f.id}']`:""}`).join(",");f.addEventListener("click",b=>{if(b.target.closest(c)){const w=l.get(f);if(f.noValidate)return;w.size&&Array.from(w).reverse().map(z=>o.get(z).reportValidity()).includes(!1)&&b.preventDefault()}})},kn=f=>{const c=l.get(f.target);c&&c.size&&c.forEach(b=>{b.constructor.formAssociated&&b.formResetCallback&&b.formResetCallback.apply(b)})},Io=(f,c,b)=>{if(c){const v=l.get(c);if(v)v.add(f);else{const w=new Set;w.add(f),l.set(c,w),xn(c),c.addEventListener("reset",kn),c.addEventListener("input",wn),c.addEventListener("change",$n)}r.set(c,{ref:f,internals:b}),f.constructor.formAssociated&&f.formAssociatedCallback&&setTimeout(()=>{f.formAssociatedCallback.apply(f,[c])},0),Qe(c)}},Xe=f=>{let c=f.parentNode;return c&&c.tagName!=="FORM"&&(c=Xe(c)),c},H=(f,c,b=DOMException)=>{if(!f.constructor.formAssociated)throw new b(c)},Po=(f,c,b)=>{const v=l.get(f);return v&&v.size&&v.forEach(w=>{o.get(w)[b]()||(c=!1)}),c},Mo=f=>{if(f.constructor.formAssociated){const c=o.get(f),{labels:b,form:v}=c;Lo(f,b),Io(f,v,c)}};function Ye(){return typeof MutationObserver<"u"}class Sn{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const En=f=>(f.badInput=!1,f.customError=!1,f.patternMismatch=!1,f.rangeOverflow=!1,f.rangeUnderflow=!1,f.stepMismatch=!1,f.tooLong=!1,f.tooShort=!1,f.typeMismatch=!1,f.valid=!0,f.valueMissing=!1,f),An=(f,c,b)=>(f.valid=On(c),Object.keys(c).forEach(v=>f[v]=c[v]),b&&Qe(b),f),On=f=>{let c=!0;for(let b in f)b!=="valid"&&f[b]!==!1&&(c=!1);return c},Dt=new WeakMap;function jo(f,c){f.toggleAttribute(c,!0),f.part&&f.part.add(c)}class Rt extends Set{static get isPolyfilled(){return!0}constructor(c){if(super(),!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");Dt.set(this,c)}add(c){if(!/^--/.test(c)||typeof c!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);const b=super.add(c),v=Dt.get(this),w=`state${c}`;return v.isConnected?jo(v,w):setTimeout(()=>{jo(v,w)}),b}clear(){for(let[c]of this.entries())this.delete(c);super.clear()}delete(c){const b=super.delete(c),v=Dt.get(this);return v.isConnected?(v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)):setTimeout(()=>{v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)}),b}}function zo(f,c,b,v){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot read private member from an object whose class did not declare it");return b==="m"?v:b==="a"?v.call(f):v?v.value:c.get(f)}function Tn(f,c,b,v,w){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot write private member to an object whose class did not declare it");return c.set(f,b),b}var Pe;class Cn{constructor(c){Pe.set(this,void 0),Tn(this,Pe,c);for(let b=0;bK.compareDocumentPosition?K.compareDocumentPosition(q)&2?1:-1:0);return new Cn(T)}})}class Fo{static get isPolyfilled(){return!0}constructor(c){if(!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const b=c.getRootNode(),v=new Sn;this.states=new Rt(c),e.set(this,c),t.set(this,v),o.set(c,this),j(c,this),_n(c,this),Object.seal(this),b instanceof DocumentFragment&&de(b)}checkValidity(){const c=e.get(this);if(H(c,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=t.get(this);if(!b.valid){const v=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});c.dispatchEvent(v)}return b.valid}get form(){const c=e.get(this);H(c,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let b;return c.constructor.formAssociated===!0&&(b=Xe(c)),b}get labels(){const c=e.get(this);H(c,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const b=c.getAttribute("id"),v=c.getRootNode();return v&&b?v.querySelectorAll(`[for="${b}"]`):[]}reportValidity(){const c=e.get(this);if(H(c,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=this.checkValidity(),v=g.get(this);if(v&&!c.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!b&&v&&(c.focus(),v.focus()),b}setFormValue(c){const b=e.get(this);if(H(b,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),To(this),c!=null&&!(c instanceof FormData)){if(b.getAttribute("name")){const v=Co(b,this);v.value=c}}else c!=null&&c instanceof FormData&&Array.from(c).reverse().forEach(([v,w])=>{if(typeof w=="string"){const k=Co(b,this);k.name=v,k.value=w}});d.set(b,c)}setValidity(c,b,v){const w=e.get(this);if(H(w,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!c)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");g.set(this,v);const k=t.get(this),S={};for(const K in c)S[K]=c[K];Object.keys(S).length===0&&En(k);const z=Object.assign(Object.assign({},k),S);delete z.valid;const{valid:T}=An(k,z,this.form);if(!T&&!b)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");a.set(this,T?"":b),w.isConnected?(w.toggleAttribute("internals-invalid",!T),w.toggleAttribute("internals-valid",T),P(w,"aria-invalid",`${!T}`)):C.set(w,this)}get shadowRoot(){const c=e.get(this),b=h.get(c);return b||null}get validationMessage(){const c=e.get(this);return H(c,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),a.get(this)}get validity(){const c=e.get(this);return H(c,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),t.get(this)}get willValidate(){const c=e.get(this);return H(c,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(c.disabled||c.hasAttribute("disabled")||c.hasAttribute("readonly"))}}function In(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class f extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const c=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(c,f);const b=new f;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(v=>v in b.internals)}let Do=!1,Ro=!1;function Nt(f){Ro||(Ro=!0,window.CustomStateSet=Rt,f&&(HTMLElement.prototype.attachInternals=function(...c){const b=f.call(this,c);return b.states=new Rt(this),b}))}function No(f=!0){if(!Do){if(Do=!0,typeof window<"u"&&(window.ElementInternals=Fo),typeof CustomElementRegistry<"u"){const c=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(b,v,w){if(v.formAssociated){const k=v.prototype.connectedCallback;v.prototype.connectedCallback=function(){_.has(this)||(_.set(this,!0),this.hasAttribute("disabled")&&Ft(this,!0)),k!=null&&k.apply(this),Mo(this)}}c.call(this,b,v,w)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(o.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Fo(this)}),typeof Element<"u"){let c=function(...v){const w=b.apply(this,v);if(h.set(this,w),Ye()){const k=new MutationObserver(E);window.ShadyDOM?k.observe(this,ee):k.observe(w,ee),n.set(this,k)}return w};const b=Element.prototype.attachShadow;Element.prototype.attachShadow=c}Ye()&&typeof document<"u"&&new MutationObserver(E).observe(document.documentElement,ee),typeof HTMLFormElement<"u"&&Ln(),(f||typeof window<"u"&&!window.CustomStateSet)&&Nt()}}return!!customElements.polyfillWrapFlushCallback||(In()?typeof window<"u"&&!window.CustomStateSet&&Nt(HTMLElement.prototype.attachInternals):No(!1)),s.forceCustomStateSetPolyfill=Nt,s.forceElementInternalsPolyfill=No,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})();class N extends se{static get styles(){return[x` + */function ft(s){window.dispatchEvent(new CustomEvent(pt,{detail:s}))}let De="",bt,gi,Re,mt,vi,re=new fi;re.resolve();let Ne=0;const Os=s=>(ys((e,t)=>As(vi,e,t)),De=gi=s.sourceLocale,Re=new Set(s.targetLocales),Re.add(s.sourceLocale),mt=s.loadLocale,{getLocale:Cs,setLocale:Is}),Cs=()=>De,Is=s=>{if(s===(bt??De))return re.promise;if(!Re||!mt)throw new Error("Internal error");if(!Re.has(s))throw new Error("Invalid locale code");Ne++;const e=Ne;return bt=s,re.settled&&(re=new fi),ft({status:"loading",loadingLocale:s}),(s===gi?Promise.resolve({templates:void 0}):mt(s)).then(i=>{Ne===e&&(De=s,bt=void 0,vi=i.templates,ft({status:"ready",readyLocale:s}),re.resolve())},i=>{Ne===e&&(ft({status:"error",errorLocale:s,errorMessage:i.toString()}),re.reject(i))}),re.promise},Ls=(s,e,t)=>{const i=s[e];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((o,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ps="en",Ms=["am_ET","ar","ar_MA","bg_BG","bn_BD","bs_BA","cs","de_DE","el","en_US","es_419","es_ES","fa_IR","fr_FR","hi_IN","hr","hu_HU","id_ID","it_IT","ja","ko_KR","mk_MK","mr","my_MM","ne_NP","nl_NL","pa_IN","pl","pt_BR","ro_RO","ru_RU","sl_SI","sr_BA","sw","th","tl","tr_TR","uk","vi","zh_CN","zh_TW"],{setLocale:js}=Os({sourceLocale:Ps,targetLocales:Ms,loadLocale:s=>Ls(Object.assign({"./generated/am_ET.js":()=>Promise.resolve().then(()=>Ha),"./generated/ar.js":()=>Promise.resolve().then(()=>Ga),"./generated/ar_MA.js":()=>Promise.resolve().then(()=>Za),"./generated/bg_BG.js":()=>Promise.resolve().then(()=>Qa),"./generated/bn_BD.js":()=>Promise.resolve().then(()=>Ya),"./generated/bs_BA.js":()=>Promise.resolve().then(()=>tr),"./generated/cs.js":()=>Promise.resolve().then(()=>or),"./generated/de_DE.js":()=>Promise.resolve().then(()=>ar),"./generated/el.js":()=>Promise.resolve().then(()=>nr),"./generated/en_US.js":()=>Promise.resolve().then(()=>dr),"./generated/es-419.js":()=>Promise.resolve().then(()=>ur),"./generated/es_419.js":()=>Promise.resolve().then(()=>pr),"./generated/es_ES.js":()=>Promise.resolve().then(()=>br),"./generated/fa_IR.js":()=>Promise.resolve().then(()=>gr),"./generated/fr_FR.js":()=>Promise.resolve().then(()=>yr),"./generated/hi_IN.js":()=>Promise.resolve().then(()=>wr),"./generated/hr.js":()=>Promise.resolve().then(()=>xr),"./generated/hu_HU.js":()=>Promise.resolve().then(()=>Sr),"./generated/id_ID.js":()=>Promise.resolve().then(()=>Ar),"./generated/it_IT.js":()=>Promise.resolve().then(()=>Or),"./generated/ja.js":()=>Promise.resolve().then(()=>Ir),"./generated/ko_KR.js":()=>Promise.resolve().then(()=>Pr),"./generated/mk_MK.js":()=>Promise.resolve().then(()=>jr),"./generated/mr.js":()=>Promise.resolve().then(()=>zr),"./generated/my_MM.js":()=>Promise.resolve().then(()=>Rr),"./generated/ne_NP.js":()=>Promise.resolve().then(()=>qr),"./generated/nl_NL.js":()=>Promise.resolve().then(()=>Vr),"./generated/pa_IN.js":()=>Promise.resolve().then(()=>Hr),"./generated/pl.js":()=>Promise.resolve().then(()=>Gr),"./generated/pt_BR.js":()=>Promise.resolve().then(()=>Zr),"./generated/ro_RO.js":()=>Promise.resolve().then(()=>Qr),"./generated/ru_RU.js":()=>Promise.resolve().then(()=>Yr),"./generated/sl_SI.js":()=>Promise.resolve().then(()=>tn),"./generated/sr_BA.js":()=>Promise.resolve().then(()=>sn),"./generated/sw.js":()=>Promise.resolve().then(()=>rn),"./generated/th.js":()=>Promise.resolve().then(()=>ln),"./generated/tl.js":()=>Promise.resolve().then(()=>cn),"./generated/tr_TR.js":()=>Promise.resolve().then(()=>hn),"./generated/uk.js":()=>Promise.resolve().then(()=>fn),"./generated/vi.js":()=>Promise.resolve().then(()=>mn),"./generated/zh_CN.js":()=>Promise.resolve().then(()=>vn),"./generated/zh_TW.js":()=>Promise.resolve().then(()=>_n)}),`./generated/${s}.js`,3)});class yi{constructor(e,t="/wp-json"){this.nonce=e;let i=t;i.match("^http")&&(i=i.replace(/^http[s]?:\/\/.*?\//,"")),i=`/${i}/`.replace(/\/\//g,"/"),this.apiRoot=i}async makeRequest(e,t,i,o="dt/v1/"){let a=o;!a.endsWith("/")&&!t.startsWith("/")&&(a+="/");const r=t.startsWith("http")?t:`${this.apiRoot}${a}${t}`,n={method:e,credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce}};e!=="GET"&&(n.body=JSON.stringify(i));const l=await fetch(r,n),d=await l.json();if(!l.ok){const u=new Error((d==null?void 0:d.message)||d.toString());throw u.args={status:l.status,statusText:l.statusText,body:d},u}return d}async makeRequestOnPosts(e,t,i={}){return this.makeRequest(e,t,i,"dt-posts/v2/")}async getPost(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}`)}async createPost(e,t){return this.makeRequestOnPosts("POST",e,t)}async fetchPostsList(e,t){return this.makeRequestOnPosts("POST",`${e}/list`,t)}async updatePost(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}`,i)}async deletePost(e,t){return this.makeRequestOnPosts("DELETE",`${e}/${t}`)}async listPostsCompact(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequestOnPosts("GET",`${e}/compact?${i}`)}async getPostDuplicates(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/all_duplicates`,i)}async checkFieldValueExists(e,t){return this.makeRequestOnPosts("POST",`${e}/check_field_value_exists`,t)}async getMultiSelectValues(e,t,i=""){const o=new URLSearchParams({s:i,field:t});return this.makeRequestOnPosts("GET",`${e}/multi-select-values?${o}`)}async getLocations(e,t,i,o=""){const a=new URLSearchParams({s:o,field:t,filter:i});return this.makeRequest("GET",`mapping_module/search_location_grid_by_name?${a}`)}async transferContact(e,t){return this.makeRequestOnPosts("POST","contacts/transfer",{contact_id:e,site_post_id:t})}async transferContactSummaryUpdate(e,t){return this.makeRequestOnPosts("POST","contacts/transfer/summary/send-update",{contact_id:e,update:t})}async requestRecordAccess(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/request_record_access`,{user_id:i})}async createComment(e,t,i,o="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments`,{comment:i,comment_type:o})}async updateComment(e,t,i,o,a="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}`,{comment:o,comment_type:a})}async deleteComment(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/comments/${i}`)}async getComments(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/comments`)}async toggle_comment_reaction(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}/react`,{user_id:o,reaction:a})}async getPostActivity(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/activity`)}async getSingleActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/activity/${i}`)}async revertActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/revert/${i}`)}async getPostShares(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/shares`)}async addPostShare(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/shares`,{user_id:i})}async removePostShare(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/shares`,{user_id:i})}async getFilters(){return this.makeRequest("GET","users/get_filters")}async saveFilters(e,t){return this.makeRequest("POST","users/save_filters",{filter:t,postType:e})}async deleteFilter(e,t){return this.makeRequest("DELETE","users/save_filters",{id:t,postType:e})}async searchUsers(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequest("GET",`users/get_users?${i}&post_type=${e}`)}async checkDuplicateUsers(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/duplicates`)}async getContactInfo(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/`)}async createUser(e){return this.makeRequest("POST","users/create",e)}async advanced_search(e,t,i,o){return this.makeRequest("GET","advanced_search",{query:e,postType:t,offset:i,post:o.post,comment:o.comment,meta:o.meta,status:o.status},"dt-posts/v2/posts/search/")}async uploadFiles(e,t,i,o,a=""){const r=new FormData;i.forEach(l=>r.append("storage_upload_files[]",l)),r.append("meta_key",o),r.append("key_prefix",a),r.append("upload_type","post"),r.append("is_multi_file","true"),r.append("storage_s3_url_duration","+7 days");const n=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_upload`;return await new Promise((l,d)=>{const u=new XMLHttpRequest;u.open("POST",n,!0),u.withCredentials=!0,u.setRequestHeader("X-WP-Nonce",this.nonce),u.onload=()=>{let p={};try{p=JSON.parse(u.responseText||"{}")}catch{p={message:u.responseText||"Upload failed"}}if(u.status>=200&&u.status<300)l(p);else{const g=new Error((p==null?void 0:p.uploaded_msg)||(p==null?void 0:p.message)||"Upload failed");g.args={status:u.status,statusText:u.statusText,body:p},d(g)}},u.onerror=()=>d(new Error("Upload failed")),u.send(r)})}async deleteFile(e,t,i,o){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_delete_single`,{meta_key:i,file_key:o})}async renameFile(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_rename_single`,{meta_key:i,file_key:o,new_name:a})}async downloadFile(e,t,i,o){const a=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_download`,r=await fetch(a,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce},body:JSON.stringify({meta_key:i,file_key:o})});if(!r.ok){const n=await r.json().catch(()=>({message:"Download failed"}));throw new Error(n.message||"Download failed")}return await r.blob()}}(function(){(function(s){const e=new WeakMap,t=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap,d=new WeakMap,u=new WeakMap,p=new WeakMap,g=new WeakMap,y=new WeakMap,w=new WeakMap,T=new WeakMap,D={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},j=(f,c)=>{for(let b in D){c[b]=null;let v=null;const $=D[b];Object.defineProperty(c,b,{get(){return v},set(k){v=k,f.isConnected?P(f,$,k):u.set(f,c)}})}};function I(f){const c=o.get(f),{form:b}=c;Po(f,b,c),Lo(f,c.labels)}const Le=(f,c=!1)=>{const b=document.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,{acceptNode(k){return o.has(k)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let v=b.nextNode();const $=!c||f.disabled;for(;v;)v.formDisabledCallback&&$&&Dt(v,f.disabled),v=b.nextNode()},Je={attributes:!0,attributeFilter:["disabled","name"]},ee=Ye()?new MutationObserver(f=>{for(const c of f){const b=c.target;if(c.attributeName==="disabled"&&(b.constructor.formAssociated?Dt(b,b.hasAttribute("disabled")):b.localName==="fieldset"&&Le(b)),c.attributeName==="name"&&b.constructor.formAssociated){const v=o.get(b),$=d.get(b);v.setFormValue($)}}}):{};function E(f){f.forEach(c=>{const{addedNodes:b,removedNodes:v}=c,$=Array.from(b),k=Array.from(v);$.forEach(S=>{var F;if(o.has(S)&&S.constructor.formAssociated&&I(S),u.has(S)){const C=u.get(S);Object.keys(D).filter(U=>C[U]!==null).forEach(U=>{P(S,D[U],C[U])}),u.delete(S)}if(T.has(S)){const C=T.get(S);P(S,"internals-valid",C.validity.valid.toString()),P(S,"internals-invalid",(!C.validity.valid).toString()),P(S,"aria-invalid",(!C.validity.valid).toString()),T.delete(S)}if(S.localName==="form"){const C=l.get(S),G=document.createTreeWalker(S,NodeFilter.SHOW_ELEMENT,{acceptNode(Ut){return o.has(Ut)&&Ut.constructor.formAssociated&&!(C&&C.has(Ut))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let U=G.nextNode();for(;U;)I(U),U=G.nextNode()}S.localName==="fieldset"&&((F=ee.observe)===null||F===void 0||F.call(ee,S,Je),Le(S,!0))}),k.forEach(S=>{const F=o.get(S);F&&i.get(F)&&Co(F),n.has(S)&&n.get(S).disconnect()})})}function z(f){f.forEach(c=>{const{removedNodes:b}=c;b.forEach(v=>{const $=y.get(c.target);o.has(v)&&jo(v),$.disconnect()})})}const ce=f=>{var c,b;const v=new MutationObserver(z);!((c=window==null?void 0:window.ShadyDOM)===null||c===void 0)&&c.inUse&&f.mode&&f.host&&(f=f.host),(b=v.observe)===null||b===void 0||b.call(v,f,{childList:!0}),y.set(f,v)};Ye()&&new MutationObserver(E);const te={childList:!0,subtree:!0},P=(f,c,b)=>{f.getAttribute(c)!==b&&f.setAttribute(c,b)},Dt=(f,c)=>{f.toggleAttribute("internals-disabled",c),c?P(f,"aria-disabled","true"):f.removeAttribute("aria-disabled"),f.formDisabledCallback&&f.formDisabledCallback.apply(f,[c])},Co=f=>{i.get(f).forEach(b=>{b.remove()}),i.set(f,[])},Io=(f,c)=>{const b=document.createElement("input");return b.type="hidden",b.name=f.getAttribute("name"),f.after(b),i.get(c).push(b),b},wn=(f,c)=>{var b;i.set(c,[]),(b=ee.observe)===null||b===void 0||b.call(ee,f,Je)},Lo=(f,c)=>{if(c.length){Array.from(c).forEach(v=>v.addEventListener("click",f.click.bind(f)));let b=c[0].id;c[0].id||(b=`${c[0].htmlFor}_Label`,c[0].id=b),P(f,"aria-labelledby",b)}},Qe=f=>{const c=Array.from(f.elements).filter(k=>!k.tagName.includes("-")&&k.validity).map(k=>k.validity.valid),b=l.get(f)||[],v=Array.from(b).filter(k=>k.isConnected).map(k=>o.get(k).validity.valid),$=[...c,...v].includes(!1);f.toggleAttribute("internals-invalid",$),f.toggleAttribute("internals-valid",!$)},$n=f=>{Qe(Xe(f.target))},xn=f=>{Qe(Xe(f.target))},kn=f=>{const c=["button[type=submit]","input[type=submit]","button:not([type])"].map(b=>`${b}:not([disabled])`).map(b=>`${b}:not([form])${f.id?`,${b}[form='${f.id}']`:""}`).join(",");f.addEventListener("click",b=>{if(b.target.closest(c)){const $=l.get(f);if(f.noValidate)return;$.size&&Array.from($).reverse().map(F=>o.get(F).reportValidity()).includes(!1)&&b.preventDefault()}})},Sn=f=>{const c=l.get(f.target);c&&c.size&&c.forEach(b=>{b.constructor.formAssociated&&b.formResetCallback&&b.formResetCallback.apply(b)})},Po=(f,c,b)=>{if(c){const v=l.get(c);if(v)v.add(f);else{const $=new Set;$.add(f),l.set(c,$),kn(c),c.addEventListener("reset",Sn),c.addEventListener("input",$n),c.addEventListener("change",xn)}r.set(c,{ref:f,internals:b}),f.constructor.formAssociated&&f.formAssociatedCallback&&setTimeout(()=>{f.formAssociatedCallback.apply(f,[c])},0),Qe(c)}},Xe=f=>{let c=f.parentNode;return c&&c.tagName!=="FORM"&&(c=Xe(c)),c},K=(f,c,b=DOMException)=>{if(!f.constructor.formAssociated)throw new b(c)},Mo=(f,c,b)=>{const v=l.get(f);return v&&v.size&&v.forEach($=>{o.get($)[b]()||(c=!1)}),c},jo=f=>{if(f.constructor.formAssociated){const c=o.get(f),{labels:b,form:v}=c;Lo(f,b),Po(f,v,c)}};function Ye(){return typeof MutationObserver<"u"}class En{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const An=f=>(f.badInput=!1,f.customError=!1,f.patternMismatch=!1,f.rangeOverflow=!1,f.rangeUnderflow=!1,f.stepMismatch=!1,f.tooLong=!1,f.tooShort=!1,f.typeMismatch=!1,f.valid=!0,f.valueMissing=!1,f),Tn=(f,c,b)=>(f.valid=On(c),Object.keys(c).forEach(v=>f[v]=c[v]),b&&Qe(b),f),On=f=>{let c=!0;for(let b in f)b!=="valid"&&f[b]!==!1&&(c=!1);return c},Rt=new WeakMap;function Fo(f,c){f.toggleAttribute(c,!0),f.part&&f.part.add(c)}class Nt extends Set{static get isPolyfilled(){return!0}constructor(c){if(super(),!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");Rt.set(this,c)}add(c){if(!/^--/.test(c)||typeof c!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);const b=super.add(c),v=Rt.get(this),$=`state${c}`;return v.isConnected?Fo(v,$):setTimeout(()=>{Fo(v,$)}),b}clear(){for(let[c]of this.entries())this.delete(c);super.clear()}delete(c){const b=super.delete(c),v=Rt.get(this);return v.isConnected?(v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)):setTimeout(()=>{v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)}),b}}function zo(f,c,b,v){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot read private member from an object whose class did not declare it");return b==="m"?v:b==="a"?v.call(f):v?v.value:c.get(f)}function Cn(f,c,b,v,$){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot write private member to an object whose class did not declare it");return c.set(f,b),b}var Pe;class In{constructor(c){Pe.set(this,void 0),Cn(this,Pe,c);for(let b=0;bG.compareDocumentPosition?G.compareDocumentPosition(U)&2?1:-1:0);return new In(C)}})}class Do{static get isPolyfilled(){return!0}constructor(c){if(!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const b=c.getRootNode(),v=new En;this.states=new Nt(c),e.set(this,c),t.set(this,v),o.set(c,this),j(c,this),wn(c,this),Object.seal(this),b instanceof DocumentFragment&&ce(b)}checkValidity(){const c=e.get(this);if(K(c,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=t.get(this);if(!b.valid){const v=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});c.dispatchEvent(v)}return b.valid}get form(){const c=e.get(this);K(c,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let b;return c.constructor.formAssociated===!0&&(b=Xe(c)),b}get labels(){const c=e.get(this);K(c,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const b=c.getAttribute("id"),v=c.getRootNode();return v&&b?v.querySelectorAll(`[for="${b}"]`):[]}reportValidity(){const c=e.get(this);if(K(c,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=this.checkValidity(),v=g.get(this);if(v&&!c.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!b&&v&&(c.focus(),v.focus()),b}setFormValue(c){const b=e.get(this);if(K(b,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),Co(this),c!=null&&!(c instanceof FormData)){if(b.getAttribute("name")){const v=Io(b,this);v.value=c}}else c!=null&&c instanceof FormData&&Array.from(c).reverse().forEach(([v,$])=>{if(typeof $=="string"){const k=Io(b,this);k.name=v,k.value=$}});d.set(b,c)}setValidity(c,b,v){const $=e.get(this);if(K($,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!c)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");g.set(this,v);const k=t.get(this),S={};for(const G in c)S[G]=c[G];Object.keys(S).length===0&&An(k);const F=Object.assign(Object.assign({},k),S);delete F.valid;const{valid:C}=Tn(k,F,this.form);if(!C&&!b)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");a.set(this,C?"":b),$.isConnected?($.toggleAttribute("internals-invalid",!C),$.toggleAttribute("internals-valid",C),P($,"aria-invalid",`${!C}`)):T.set($,this)}get shadowRoot(){const c=e.get(this),b=p.get(c);return b||null}get validationMessage(){const c=e.get(this);return K(c,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),a.get(this)}get validity(){const c=e.get(this);return K(c,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),t.get(this)}get willValidate(){const c=e.get(this);return K(c,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(c.disabled||c.hasAttribute("disabled")||c.hasAttribute("readonly"))}}function Pn(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class f extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const c=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(c,f);const b=new f;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(v=>v in b.internals)}let Ro=!1,No=!1;function qt(f){No||(No=!0,window.CustomStateSet=Nt,f&&(HTMLElement.prototype.attachInternals=function(...c){const b=f.call(this,c);return b.states=new Nt(this),b}))}function qo(f=!0){if(!Ro){if(Ro=!0,typeof window<"u"&&(window.ElementInternals=Do),typeof CustomElementRegistry<"u"){const c=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(b,v,$){if(v.formAssociated){const k=v.prototype.connectedCallback;v.prototype.connectedCallback=function(){w.has(this)||(w.set(this,!0),this.hasAttribute("disabled")&&Dt(this,!0)),k!=null&&k.apply(this),jo(this)}}c.call(this,b,v,$)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(o.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Do(this)}),typeof Element<"u"){let c=function(...v){const $=b.apply(this,v);if(p.set(this,$),Ye()){const k=new MutationObserver(E);window.ShadyDOM?k.observe(this,te):k.observe($,te),n.set(this,k)}return $};const b=Element.prototype.attachShadow;Element.prototype.attachShadow=c}Ye()&&typeof document<"u"&&new MutationObserver(E).observe(document.documentElement,te),typeof HTMLFormElement<"u"&&Ln(),(f||typeof window<"u"&&!window.CustomStateSet)&&qt()}}return!!customElements.polyfillWrapFlushCallback||(Pn()?typeof window<"u"&&!window.CustomStateSet&&qt(HTMLElement.prototype.attachInternals):qo(!1)),s.forceCustomStateSetPolyfill=qt,s.forceElementInternalsPolyfill=qo,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})();class N extends ae{static get styles(){return[x` :host { } - `]}static get properties(){return{RTL:{type:Boolean},locale:{type:String}}}get _focusTarget(){return this.shadowRoot.children[0]instanceof Element?this.shadowRoot.children[0]:null}constructor(){super(),_s(this),this.addEventListener("click",this._proxyClick.bind(this)),this.addEventListener("focus",this._proxyFocus.bind(this))}willUpdate(e){if(this.RTL===void 0){const t=this.closest("[dir]");if(t){const i=t.getAttribute("dir");i&&(this.RTL=i.toLowerCase()==="rtl")}}if(!this.locale){const t=this.closest("[lang]");if(t){const i=t.getAttribute("lang");i&&(this.locale=i)}}if(!this.locale){const t=this.getRootNode();if(t instanceof ShadowRoot&&t.host){const i=t.host;i.locale&&(this.locale=i.locale)}}if(e&&e.has("locale")&&this.locale)try{Ms(this.locale)}catch(t){console.error(t)}}_proxyClick(){this.clicked=!0}_proxyFocus(){if(this._focusTarget){if(this.clicked){this.clicked=!1;return}this._focusTarget.focus()}}focus(){this._proxyFocus()}}class yi extends N{static get formAssociated(){return!0}static get styles(){return x` + `]}static get properties(){return{RTL:{type:Boolean},locale:{type:String}}}get _focusTarget(){return this.shadowRoot.children[0]instanceof Element?this.shadowRoot.children[0]:null}_standardizeLocale(e){return e&&e.replace(/-/g,"_")}constructor(){super(),ws(this),this.addEventListener("click",this._proxyClick.bind(this)),this.addEventListener("focus",this._proxyFocus.bind(this))}willUpdate(e){if(this.RTL===void 0){const t=this.closest("[dir]");if(t){const i=t.getAttribute("dir");i&&(this.RTL=i.toLowerCase()==="rtl")}}if(!this.locale){const t=this.closest("[lang]");if(t){const i=t.getAttribute("lang");i&&(this.locale=this._standardizeLocale(i))}}if(!this.locale){const t=this.getRootNode();if(t instanceof ShadowRoot&&t.host){const i=t.host;i.locale&&(this.locale=this._standardizeLocale(i.locale))}}if(e&&e.has("locale")&&this.locale)try{js(this.locale)}catch(t){console.error(t)}}_proxyClick(){this.clicked=!0}_proxyFocus(){if(this._focusTarget){if(this.clicked){this.clicked=!1;return}this._focusTarget.focus()}}focus(){this._proxyFocus()}}class _i extends N{static get formAssociated(){return!0}static get styles(){return x` :host { display: inline-flex; width: fit-content; @@ -208,7 +208,7 @@ cursor: not-allowed; } } - `}static get properties(){return{label:{type:String},context:{type:String},type:{type:String},title:{type:String},outline:{type:Boolean},round:{type:Boolean},disabled:{type:Boolean}}}get classes(){const e={"dt-button":!0,"dt-button--outline":this.outline,"dt-button--round":this.round},t=`dt-button--${this.context}`;return e[t]=!0,e}get _field(){return this.shadowRoot.querySelector("button")}get _focusTarget(){return this._field}constructor(){super(),this.context="default",this.internals=this.attachInternals()}handleClick(e){e.preventDefault(),this.type==="submit"&&this.internals.form&&this.internals.form.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}render(){const e={...this.classes};return p` + `}static get properties(){return{label:{type:String},context:{type:String},type:{type:String},title:{type:String},outline:{type:Boolean},round:{type:Boolean},disabled:{type:Boolean}}}get classes(){const e={"dt-button":!0,"dt-button--outline":this.outline,"dt-button--round":this.round},t=`dt-button--${this.context}`;return e[t]=!0,e}get _field(){return this.shadowRoot.querySelector("button")}get _focusTarget(){return this._field}constructor(){super(),this.context="default",this.internals=this.attachInternals()}handleClick(e){e.preventDefault(),this.type==="submit"&&this.internals.form&&this.internals.form.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}render(){const e={...this.classes};return h` - `}}window.customElements.define("dt-button",yi);/** + `}}window.customElements.define("dt-button",_i);/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const _i="important",js=" !"+_i,Q=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="style"||((e=s.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((e,t)=>{const i=s[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(s,[e]){const{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const o=e[i];if(o!=null){this.ft.add(i);const a=typeof o=="string"&&o.endsWith(js);i.includes("-")||a?t.setProperty(i,a?o.slice(0,-11):o,a?_i:""):t[i]=o}}return U}});class wi extends N{static get styles(){return x` + */const wi="important",Fs=" !"+wi,X=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="style"||((e=s.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((e,t)=>{const i=s[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(s,[e]){const{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const o=e[i];if(o!=null){this.ft.add(i);const a=typeof o=="string"&&o.endsWith(Fs);i.includes("-")||a?t.setProperty(i,a?o.slice(0,-11):o,a?wi:""):t[i]=o}}return V}});class $i extends N{static get styles(){return x` :host { --dt-label-font-size: 14px; @@ -296,16 +296,16 @@ border-inline-start: 0.5rem solid transparent; border-inline-end: 0.5rem solid transparent; } - `}static get properties(){return{icon:{type:String},iconAltText:{type:String},private:{type:Boolean},privateLabel:{type:String}}}firstUpdated(){const e=this.shadowRoot.querySelectorAll("slot");if(e&&e.length)for(const r of e)r.addEventListener("slotchange",n=>{const l=n.target.assignedNodes();let d=!1;l.length&&(l[0].tagName==="SLOT"?d=l[0].assignedNodes().length||l[0].children.length:d=!0),d&&n.target.classList.add("slotted")});const i=this.shadowRoot.querySelector("slot[name=icon-start]").assignedElements({flatten:!0});for(const r of i)r.style.height="100%",r.style.width="auto";const o=this.shadowRoot.querySelector("slot:not([name])"),a=this.shadowRoot.querySelector(".label");if(o&&a){const r=o.assignedNodes().map(n=>{var l;return(l=n.textContent)==null?void 0:l.trim()}).filter(n=>n).join(" ");r&&a.setAttribute("title",r)}}get _slottedChildren(){return this.shadowRoot.querySelector("slot").assignedElements({flatten:!0})}render(){const e=p``;return p` + `}static get properties(){return{icon:{type:String},iconAltText:{type:String},private:{type:Boolean},privateLabel:{type:String}}}firstUpdated(){const e=this.shadowRoot.querySelectorAll("slot");if(e&&e.length)for(const r of e)r.addEventListener("slotchange",n=>{const l=n.target.assignedNodes();let d=!1;l.length&&(l[0].tagName==="SLOT"?d=l[0].assignedNodes().length||l[0].children.length:d=!0),d&&n.target.classList.add("slotted")});const i=this.shadowRoot.querySelector("slot[name=icon-start]").assignedElements({flatten:!0});for(const r of i)r.style.height="100%",r.style.width="auto";const o=this.shadowRoot.querySelector("slot:not([name])"),a=this.shadowRoot.querySelector(".label");if(o&&a){const r=o.assignedNodes().map(n=>{var l;return(l=n.textContent)==null?void 0:l.trim()}).filter(n=>n).join(" ");r&&a.setAttribute("title",r)}}get _slottedChildren(){return this.shadowRoot.querySelector("slot").assignedElements({flatten:!0})}render(){const e=h``;return h`
    ${this.icon?p`${this.iconAltText}`:null}${this.icon?h`${this.iconAltText}`:null} - ${this.private?p` + ${this.private?h` ${e} ${this.privateLabel||R("Private Field: Only I can see its content")}
    - `}}window.customElements.define("dt-label",wi);class zs extends se{static get styles(){return x` + `}}window.customElements.define("dt-label",$i);class zs extends ae{static get styles(){return x` @keyframes spin { 0% { transform: rotate(0deg); @@ -347,7 +347,7 @@ * * @license MIT * @version 1.0.2 -*/const $i=Object.freeze({left:0,top:0,width:16,height:16}),qe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$e=Object.freeze({...$i,...qe}),gt=Object.freeze({...$e,body:"",hidden:!1}),Fs=Object.freeze({width:null,height:null}),xi=Object.freeze({...Fs,...qe});function Ds(s,e=0){const t=s.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(s);return isNaN(o)?0:i(o)}else if(t!==s){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let a=parseFloat(s.slice(0,s.length-t.length));return isNaN(a)?0:(a=a/o,a%1===0?i(a):0)}}return e}const Rs=/[\s,]+/;function Ns(s,e){e.split(Rs).forEach(t=>{switch(t.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}const ki={...xi,preserveAspectRatio:""};function Si(s){const e={...ki},t=(i,o)=>s.getAttribute(i)||o;return e.width=t("width",null),e.height=t("height",null),e.rotate=Ds(t("rotate","")),Ns(e,t("flip","")),e.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),e}function qs(s,e){for(const t in ki)if(s[t]!==e[t])return!0;return!1}const xe=/^[a-z0-9]+(-[a-z0-9]+)*$/,ke=(s,e,t,i="")=>{const o=s.split(":");if(s.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const n=o.pop(),l=o.pop(),d={provider:o.length>0?o[0]:i,prefix:l,name:n};return e&&!Ue(d)?null:d}const a=o[0],r=a.split("-");if(r.length>1){const n={provider:i,prefix:r.shift(),name:r.join("-")};return e&&!Ue(n)?null:n}if(t&&i===""){const n={provider:i,prefix:"",name:a};return e&&!Ue(n,t)?null:n}return null},Ue=(s,e)=>s?!!((s.provider===""||s.provider.match(xe))&&(e&&s.prefix===""||s.prefix.match(xe))&&s.name.match(xe)):!1;function Us(s,e){const t={};!s.hFlip!=!e.hFlip&&(t.hFlip=!0),!s.vFlip!=!e.vFlip&&(t.vFlip=!0);const i=((s.rotate||0)+(e.rotate||0))%4;return i&&(t.rotate=i),t}function Ei(s,e){const t=Us(s,e);for(const i in gt)i in qe?i in s&&!(i in t)&&(t[i]=qe[i]):i in e?t[i]=e[i]:i in s&&(t[i]=s[i]);return t}function Vs(s,e){const t=s.icons,i=s.aliases||Object.create(null),o=Object.create(null);function a(r){if(t[r])return o[r]=[];if(!(r in o)){o[r]=null;const n=i[r]&&i[r].parent,l=n&&a(n);l&&(o[r]=[n].concat(l))}return o[r]}return Object.keys(t).concat(Object.keys(i)).forEach(a),o}function Bs(s,e,t){const i=s.icons,o=s.aliases||Object.create(null);let a={};function r(n){a=Ei(i[n]||o[n],a)}return r(e),t.forEach(r),Ei(s,a)}function Ai(s,e){const t=[];if(typeof s!="object"||typeof s.icons!="object")return t;s.not_found instanceof Array&&s.not_found.forEach(o=>{e(o,null),t.push(o)});const i=Vs(s);for(const o in i){const a=i[o];a&&(e(o,Bs(s,o,a)),t.push(o))}return t}const Hs={provider:"",aliases:{},not_found:{},...$i};function vt(s,e){for(const t in e)if(t in s&&typeof s[t]!=typeof e[t])return!1;return!0}function Oi(s){if(typeof s!="object"||s===null)return null;const e=s;if(typeof e.prefix!="string"||!s.icons||typeof s.icons!="object"||!vt(s,Hs))return null;const t=e.icons;for(const o in t){const a=t[o];if(!o.match(xe)||typeof a.body!="string"||!vt(a,gt))return null}const i=e.aliases||Object.create(null);for(const o in i){const a=i[o],r=a.parent;if(!o.match(xe)||typeof r!="string"||!t[r]&&!i[r]||!vt(a,gt))return null}return e}const Ve=Object.create(null);function Ks(s,e){return{provider:s,prefix:e,icons:Object.create(null),missing:new Set}}function X(s,e){const t=Ve[s]||(Ve[s]=Object.create(null));return t[e]||(t[e]=Ks(s,e))}function yt(s,e){return Oi(e)?Ai(e,(t,i)=>{i?s.icons[t]=i:s.missing.add(t)}):[]}function Ws(s,e,t){try{if(typeof t.body=="string")return s.icons[e]={...t},!0}catch{}return!1}function Gs(s,e){let t=[];return(typeof s=="string"?[s]:Object.keys(Ve)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(Ve[o]||{})).forEach(r=>{const n=X(o,r);t=t.concat(Object.keys(n.icons).map(l=>(o!==""?"@"+o+":":"")+r+":"+l))})}),t}let Se=!1;function Ti(s){return typeof s=="boolean"&&(Se=s),Se}function Ee(s){const e=typeof s=="string"?ke(s,!0,Se):s;if(e){const t=X(e.provider,e.prefix),i=e.name;return t.icons[i]||(t.missing.has(i)?null:void 0)}}function Ci(s,e){const t=ke(s,!0,Se);if(!t)return!1;const i=X(t.provider,t.prefix);return Ws(i,t.name,e)}function Li(s,e){if(typeof s!="object")return!1;if(typeof e!="string"&&(e=s.provider||""),Se&&!e&&!s.prefix){let o=!1;return Oi(s)&&(s.prefix="",Ai(s,(a,r)=>{r&&Ci(a,r)&&(o=!0)})),o}const t=s.prefix;if(!Ue({provider:e,prefix:t,name:"a"}))return!1;const i=X(e,t);return!!yt(i,s)}function Zs(s){return!!Ee(s)}function Js(s){const e=Ee(s);return e?{...$e,...e}:null}function Qs(s){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);s.sort((o,a)=>o.provider!==a.provider?o.provider.localeCompare(a.provider):o.prefix!==a.prefix?o.prefix.localeCompare(a.prefix):o.name.localeCompare(a.name));let i={provider:"",prefix:"",name:""};return s.forEach(o=>{if(i.name===o.name&&i.prefix===o.prefix&&i.provider===o.provider)return;i=o;const a=o.provider,r=o.prefix,n=o.name,l=t[a]||(t[a]=Object.create(null)),d=l[r]||(l[r]=X(a,r));let u;n in d.icons?u=e.loaded:r===""||d.missing.has(n)?u=e.missing:u=e.pending;const h={provider:a,prefix:r,name:n};u.push(h)}),e}function Ii(s,e){s.forEach(t=>{const i=t.loaderCallbacks;i&&(t.loaderCallbacks=i.filter(o=>o.id!==e))})}function Xs(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const e=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const i=s.provider,o=s.prefix;e.forEach(a=>{const r=a.icons,n=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==o)return!0;const d=l.name;if(s.icons[d])r.loaded.push({provider:i,prefix:o,name:d});else if(s.missing.has(d))r.missing.push({provider:i,prefix:o,name:d});else return t=!0,!0;return!1}),r.pending.length!==n&&(t||Ii([s],a.id),a.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),a.abort))})}))}let Ys=0;function ea(s,e,t){const i=Ys++,o=Ii.bind(null,t,i);if(!e.pending.length)return o;const a={id:i,icons:e,callback:s,abort:o};return t.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(a)}),o}const _t=Object.create(null);function Pi(s,e){_t[s]=e}function wt(s){return _t[s]||_t[""]}function ta(s,e=!0,t=!1){const i=[];return s.forEach(o=>{const a=typeof o=="string"?ke(o,e,t):o;a&&i.push(a)}),i}var ia={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function oa(s,e,t,i){const o=s.resources.length,a=s.random?Math.floor(Math.random()*o):s.index;let r;if(s.random){let E=s.resources.slice(0);for(r=[];E.length>1;){const F=Math.floor(Math.random()*E.length);r.push(E[F]),E=E.slice(0,F).concat(E.slice(F+1))}r=r.concat(E)}else r=s.resources.slice(a).concat(s.resources.slice(0,a));const n=Date.now();let l="pending",d=0,u,h=null,g=[],y=[];typeof i=="function"&&y.push(i);function _(){h&&(clearTimeout(h),h=null)}function C(){l==="pending"&&(l="aborted"),_(),g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function D(E,F){F&&(y=[]),typeof E=="function"&&y.push(E)}function j(){return{startTime:n,payload:e,status:l,queriesSent:d,queriesPending:g.length,subscribe:D,abort:C}}function L(){l="failed",y.forEach(E=>{E(void 0,u)})}function Ie(){g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function Je(E,F,de){const ee=F!=="success";switch(g=g.filter(P=>P!==E),l){case"pending":break;case"failed":if(ee||!s.dataAfterTimeout)return;break;default:return}if(F==="abort"){u=de,L();return}if(ee){u=de,g.length||(r.length?Y():L());return}if(_(),Ie(),!s.random){const P=s.resources.indexOf(E.resource);P!==-1&&P!==s.index&&(s.index=P)}l="completed",y.forEach(P=>{P(de)})}function Y(){if(l!=="pending")return;_();const E=r.shift();if(E===void 0){if(g.length){h=setTimeout(()=>{_(),l==="pending"&&(Ie(),L())},s.timeout);return}L();return}const F={status:"pending",resource:E,callback:(de,ee)=>{Je(F,de,ee)}};g.push(F),d++,h=setTimeout(Y,s.rotate),t(E,e,F.callback)}return setTimeout(Y),j}function Mi(s){const e={...ia,...s};let t=[];function i(){t=t.filter(n=>n().status==="pending")}function o(n,l,d){const u=oa(e,n,l,(h,g)=>{i(),d&&d(h,g)});return t.push(u),u}function a(n){return t.find(l=>n(l))||null}return{query:o,find:a,setIndex:n=>{e.index=n},getIndex:()=>e.index,cleanup:i}}function $t(s){let e;if(typeof s.resources=="string")e=[s.resources];else if(e=s.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const Be=Object.create(null),Ae=["https://api.simplesvg.com","https://api.unisvg.com"],He=[];for(;Ae.length>0;)Ae.length===1||Math.random()>.5?He.push(Ae.shift()):He.push(Ae.pop());Be[""]=$t({resources:["https://api.iconify.design"].concat(He)});function ji(s,e){const t=$t(e);return t===null?!1:(Be[s]=t,!0)}function Ke(s){return Be[s]}function sa(){return Object.keys(Be)}function zi(){}const xt=Object.create(null);function aa(s){if(!xt[s]){const e=Ke(s);if(!e)return;const t=Mi(e),i={config:e,redundancy:t};xt[s]=i}return xt[s]}function Fi(s,e,t){let i,o;if(typeof s=="string"){const a=wt(s);if(!a)return t(void 0,424),zi;o=a.send;const r=aa(s);r&&(i=r.redundancy)}else{const a=$t(s);if(a){i=Mi(a);const r=s.resources?s.resources[0]:"",n=wt(r);n&&(o=n.send)}}return!i||!o?(t(void 0,424),zi):i.query(e,o,t)().abort}const Di="iconify2",Oe="iconify",Ri=Oe+"-count",Ni=Oe+"-version",qi=36e5,ra=168;function kt(s,e){try{return s.getItem(e)}catch{}}function St(s,e,t){try{return s.setItem(e,t),!0}catch{}}function Ui(s,e){try{s.removeItem(e)}catch{}}function Et(s,e){return St(s,Ri,e.toString())}function At(s){return parseInt(kt(s,Ri))||0}const re={local:!0,session:!0},Vi={local:new Set,session:new Set};let Ot=!1;function na(s){Ot=s}let We=typeof window>"u"?{}:window;function Bi(s){const e=s+"Storage";try{if(We&&We[e]&&typeof We[e].length=="number")return We[e]}catch{}re[s]=!1}function Hi(s,e){const t=Bi(s);if(!t)return;const i=kt(t,Ni);if(i!==Di){if(i){const n=At(t);for(let l=0;l{const l=Oe+n.toString(),d=kt(t,l);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,n))return!0}catch{}Ui(t,l)}};let r=At(t);for(let n=r-1;n>=0;n--)a(n)||(n===r-1?(r--,Et(t,r)):Vi[s].add(n))}function Ki(){if(!Ot){na(!0);for(const s in re)Hi(s,e=>{const t=e.data,i=e.provider,o=t.prefix,a=X(i,o);if(!yt(a,t).length)return!1;const r=t.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,r):r,!0})}}function la(s,e){const t=s.lastModifiedCached;if(t&&t>=e)return t===e;if(s.lastModifiedCached=e,t)for(const i in re)Hi(i,o=>{const a=o.data;return o.provider!==s.provider||a.prefix!==s.prefix||a.lastModified===e});return!0}function da(s,e){Ot||Ki();function t(i){let o;if(!re[i]||!(o=Bi(i)))return;const a=Vi[i];let r;if(a.size)a.delete(r=Array.from(a).shift());else if(r=At(o),!Et(o,r+1))return;const n={cached:Math.floor(Date.now()/qi),provider:s.provider,data:e};return St(o,Oe+r.toString(),JSON.stringify(n))}e.lastModified&&!la(s,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Wi(){}function ca(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Xs(s)}))}function ua(s,e){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(e).sort():s.iconsToLoad=e,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:t,prefix:i}=s,o=s.iconsToLoad;delete s.iconsToLoad;let a;if(!o||!(a=wt(t)))return;a.prepare(t,i,o).forEach(n=>{Fi(t,n,l=>{if(typeof l!="object")n.icons.forEach(d=>{s.missing.add(d)});else try{const d=yt(s,l);if(!d.length)return;const u=s.pendingIcons;u&&d.forEach(h=>{u.delete(h)}),da(s,l)}catch(d){console.error(d)}ca(s)})})}))}const Tt=(s,e)=>{const t=ta(s,!0,Ti()),i=Qs(t);if(!i.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(i.loaded,i.missing,i.pending,Wi)}),()=>{l=!1}}const o=Object.create(null),a=[];let r,n;return i.pending.forEach(l=>{const{provider:d,prefix:u}=l;if(u===n&&d===r)return;r=d,n=u,a.push(X(d,u));const h=o[d]||(o[d]=Object.create(null));h[u]||(h[u]=[])}),i.pending.forEach(l=>{const{provider:d,prefix:u,name:h}=l,g=X(d,u),y=g.pendingIcons||(g.pendingIcons=new Set);y.has(h)||(y.add(h),o[d][u].push(h))}),a.forEach(l=>{const{provider:d,prefix:u}=l;o[d][u].length&&ua(l,o[d][u])}),e?ea(e,i,a):Wi},ha=s=>new Promise((e,t)=>{const i=typeof s=="string"?ke(s,!0):s;if(!i){t(s);return}Tt([i||s],o=>{if(o.length&&i){const a=Ee(i);if(a){e({...$e,...a});return}}t(s)})});function pa(s){try{const e=typeof s=="string"?JSON.parse(s):s;if(typeof e.body=="string")return{...e}}catch{}}function fa(s,e){const t=typeof s=="string"?ke(s,!0,!0):null;if(!t){const a=pa(s);return{value:s,data:a}}const i=Ee(t);if(i!==void 0||!t.prefix)return{value:s,name:t,data:i};const o=Tt([t],()=>e(s,t,Ee(t)));return{value:s,name:t,loading:o}}function Ct(s){return s.hasAttribute("inline")}let Gi=!1;try{Gi=navigator.vendor.indexOf("Apple")===0}catch{}function ba(s,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Gi||s.indexOf("{const _=[],C=y.hFlip,D=y.vFlip;let j=y.rotate;C?D?j+=2:(_.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),_.push("scale(-1 1)"),o.top=o.left=0):D&&(_.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),_.push("scale(1 -1)"),o.top=o.left=0);let L;switch(j<0&&(j-=Math.floor(j/4)*4),j=j%4,j){case 1:L=o.height/2+o.top,_.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:_.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:L=o.width/2+o.left,_.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}j%2===1&&(o.left!==o.top&&(L=o.left,o.left=o.top,o.top=L),o.width!==o.height&&(L=o.width,o.width=o.height,o.height=L)),_.length&&(a=''+a+"")});const r=i.width,n=i.height,l=o.width,d=o.height;let u,h;return r===null?(h=n===null?"1em":n==="auto"?d:n,u=Lt(h,l/d)):(u=r==="auto"?l:r,h=n===null?Lt(u,d/l):n==="auto"?d:n),{attributes:{width:u.toString(),height:h.toString(),viewBox:o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+d.toString()},body:a}}let Ge=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function va(s){Ge=s}function ya(){return Ge}function _a(s,e){const t=Ke(s);if(!t)return 0;let i;if(!t.maxURL)i=0;else{let o=0;t.resources.forEach(r=>{o=Math.max(o,r.length)});const a=e+".json?icons=";i=t.maxURL-o-t.path.length-a.length}return i}function wa(s){return s===404}const $a=(s,e,t)=>{const i=[],o=_a(s,e),a="icons";let r={type:a,provider:s,prefix:e,icons:[]},n=0;return t.forEach((l,d)=>{n+=l.length+1,n>=o&&d>0&&(i.push(r),r={type:a,provider:s,prefix:e,icons:[]},n=l.length),r.icons.push(l)}),i.push(r),i};function xa(s){if(typeof s=="string"){const e=Ke(s);if(e)return e.path}return"/"}const ka={prepare:$a,send:(s,e,t)=>{if(!Ge){t("abort",424);return}let i=xa(e.provider);switch(e.type){case"icons":{const a=e.prefix,n=e.icons.join(","),l=new URLSearchParams({icons:n});i+=a+".json?"+l.toString();break}case"custom":{const a=e.uri;i+=a.slice(0,1)==="/"?a.slice(1):a;break}default:t("abort",400);return}let o=503;Ge(s+i).then(a=>{const r=a.status;if(r!==200){setTimeout(()=>{t(wa(r)?"abort":"next",r)});return}return o=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?t("abort",a):t("next",o)});return}setTimeout(()=>{t("success",a)})}).catch(()=>{t("next",o)})}};function Ji(s,e){switch(s){case"local":case"session":re[s]=e;break;case"all":for(const t in re)re[t]=e;break}}function Qi(){Pi("",ka),Ti(!0);let s;try{s=window}catch{}if(s){if(Ki(),s.IconifyPreload!==void 0){const t=s.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Li(o))&&console.error(i)}catch{console.error(i)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(const i in t){const o="IconifyProviders["+i+"] is invalid.";try{const a=t[i];if(typeof a!="object"||!a||a.resources===void 0)continue;ji(i,a)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Ji(t,!0),disableCache:t=>Ji(t,!1),iconExists:Zs,getIcon:Js,listIcons:Gs,addIcon:Ci,addCollection:Li,calculateSize:Lt,buildIcon:Zi,loadIcons:Tt,loadIcon:ha,addAPIProvider:ji,_api:{getAPIConfig:Ke,setAPIModule:Pi,sendAPIQuery:Fi,setFetch:va,getFetch:ya,listAPIProviders:sa}}}function Xi(s,e){let t=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)t+=" "+i+'="'+e[i]+'"';return'"+s+""}function Sa(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ea(s){return'url("data:image/svg+xml,'+Sa(s)+'")'}const It={"background-color":"currentColor"},Yi={"background-color":"transparent"},eo={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},to={"-webkit-mask":It,mask:It,background:Yi};for(const s in to){const e=to[s];for(const t in eo)e[s+"-"+t]=eo[t]}function io(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}function Aa(s,e,t){const i=document.createElement("span");let o=s.body;o.indexOf("");const a=s.attributes,r=Xi(o,{...a,width:e.width+"",height:e.height+""}),n=Ea(r),l=i.style,d={"--svg":n,width:io(a.width),height:io(a.height),...t?It:Yi};for(const u in d)l.setProperty(u,d[u]);return i}function Oa(s){const e=document.createElement("span");return e.innerHTML=Xi(s.body,s.attributes),e.firstChild}function oo(s,e){const t=e.icon.data,i=e.customisations,o=Zi(t,i);i.preserveAspectRatio&&(o.attributes.preserveAspectRatio=i.preserveAspectRatio);const a=e.renderedMode;let r;switch(a){case"svg":r=Oa(o);break;default:r=Aa(o,{...$e,...t},a==="mask")}const n=Array.from(s.childNodes).find(l=>{const d=l.tagName&&l.tagName.toUpperCase();return d==="SPAN"||d==="SVG"});n?r.tagName==="SPAN"&&n.tagName===r.tagName?n.setAttribute("style",r.getAttribute("style")):s.replaceChild(r,n):s.appendChild(r)}const Pt="data-style";function so(s,e){let t=Array.from(s.childNodes).find(i=>i.hasAttribute&&i.hasAttribute(Pt));t||(t=document.createElement("style"),t.setAttribute(Pt,Pt),s.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"}function ao(s,e,t){const i=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:e,icon:s,lastRender:i}}function Ta(s="iconify-icon"){let e,t;try{e=window.customElements,t=window.HTMLElement}catch{return}if(!e||!t)return;const i=e.get(s);if(i)return i;const o=["icon","mode","inline","width","height","rotate","flip"],a=class extends t{constructor(){super();Me(this,"_shadowRoot");Me(this,"_state");Me(this,"_checkQueued",!1);const l=this._shadowRoot=this.attachShadow({mode:"open"}),d=Ct(this);so(l,d),this._state=ao({value:""},d),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(l){if(l==="inline"){const d=Ct(this),u=this._state;d!==u.inline&&(u.inline=d,so(this._shadowRoot,d))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return Ct(this)}set inline(l){this.setAttribute("inline",l?"true":null)}restartAnimation(){const l=this._state;if(l.rendered){const d=this._shadowRoot;if(l.renderedMode==="svg")try{d.lastChild.setCurrentTime(0);return}catch{}oo(d,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,d=this.getAttribute("icon");if(d!==l.icon.value){this._iconChanged(d);return}if(!l.rendered)return;const u=this.getAttribute("mode"),h=Si(this);(l.attrMode!==u||qs(l.customisations,h))&&this._renderIcon(l.icon,h,u)}_iconChanged(l){const d=fa(l,(u,h,g)=>{const y=this._state;if(y.rendered||this.getAttribute("icon")!==u)return;const _={value:u,name:h,data:g};_.data?this._gotIconData(_):y.icon=_});d.data?this._gotIconData(d):this._state=ao(d,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,Si(this),this.getAttribute("mode"))}_renderIcon(l,d,u){const h=ba(l.data.body,u),g=this._state.inline;oo(this._shadowRoot,this._state={rendered:!0,icon:l,inline:g,customisations:d,attrMode:u,renderedMode:h})}};o.forEach(n=>{n in a.prototype||Object.defineProperty(a.prototype,n,{get:function(){return this.getAttribute(n)},set:function(l){this.setAttribute(n,l)}})});const r=Qi();for(const n in r)a[n]=a.prototype[n]=r[n];return e.define(s,a),a}const Ca=Ta()||Qi(),{enableCache:Rn,disableCache:Nn,iconExists:qn,getIcon:Un,listIcons:Vn,addIcon:Bn,addCollection:Hn,calculateSize:Kn,buildIcon:Wn,loadIcons:Gn,loadIcon:Zn,addAPIProvider:Jn,_api:Qn}=Ca;class ro extends N{static get styles(){return x` +*/const xi=Object.freeze({left:0,top:0,width:16,height:16}),qe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$e=Object.freeze({...xi,...qe}),gt=Object.freeze({...$e,body:"",hidden:!1}),Ds=Object.freeze({width:null,height:null}),ki=Object.freeze({...Ds,...qe});function Rs(s,e=0){const t=s.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(s);return isNaN(o)?0:i(o)}else if(t!==s){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let a=parseFloat(s.slice(0,s.length-t.length));return isNaN(a)?0:(a=a/o,a%1===0?i(a):0)}}return e}const Ns=/[\s,]+/;function qs(s,e){e.split(Ns).forEach(t=>{switch(t.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}const Si={...ki,preserveAspectRatio:""};function Ei(s){const e={...Si},t=(i,o)=>s.getAttribute(i)||o;return e.width=t("width",null),e.height=t("height",null),e.rotate=Rs(t("rotate","")),qs(e,t("flip","")),e.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),e}function Us(s,e){for(const t in Si)if(s[t]!==e[t])return!0;return!1}const xe=/^[a-z0-9]+(-[a-z0-9]+)*$/,ke=(s,e,t,i="")=>{const o=s.split(":");if(s.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const n=o.pop(),l=o.pop(),d={provider:o.length>0?o[0]:i,prefix:l,name:n};return e&&!Ue(d)?null:d}const a=o[0],r=a.split("-");if(r.length>1){const n={provider:i,prefix:r.shift(),name:r.join("-")};return e&&!Ue(n)?null:n}if(t&&i===""){const n={provider:i,prefix:"",name:a};return e&&!Ue(n,t)?null:n}return null},Ue=(s,e)=>s?!!((s.provider===""||s.provider.match(xe))&&(e&&s.prefix===""||s.prefix.match(xe))&&s.name.match(xe)):!1;function Vs(s,e){const t={};!s.hFlip!=!e.hFlip&&(t.hFlip=!0),!s.vFlip!=!e.vFlip&&(t.vFlip=!0);const i=((s.rotate||0)+(e.rotate||0))%4;return i&&(t.rotate=i),t}function Ai(s,e){const t=Vs(s,e);for(const i in gt)i in qe?i in s&&!(i in t)&&(t[i]=qe[i]):i in e?t[i]=e[i]:i in s&&(t[i]=s[i]);return t}function Bs(s,e){const t=s.icons,i=s.aliases||Object.create(null),o=Object.create(null);function a(r){if(t[r])return o[r]=[];if(!(r in o)){o[r]=null;const n=i[r]&&i[r].parent,l=n&&a(n);l&&(o[r]=[n].concat(l))}return o[r]}return Object.keys(t).concat(Object.keys(i)).forEach(a),o}function Hs(s,e,t){const i=s.icons,o=s.aliases||Object.create(null);let a={};function r(n){a=Ai(i[n]||o[n],a)}return r(e),t.forEach(r),Ai(s,a)}function Ti(s,e){const t=[];if(typeof s!="object"||typeof s.icons!="object")return t;s.not_found instanceof Array&&s.not_found.forEach(o=>{e(o,null),t.push(o)});const i=Bs(s);for(const o in i){const a=i[o];a&&(e(o,Hs(s,o,a)),t.push(o))}return t}const Ks={provider:"",aliases:{},not_found:{},...xi};function vt(s,e){for(const t in e)if(t in s&&typeof s[t]!=typeof e[t])return!1;return!0}function Oi(s){if(typeof s!="object"||s===null)return null;const e=s;if(typeof e.prefix!="string"||!s.icons||typeof s.icons!="object"||!vt(s,Ks))return null;const t=e.icons;for(const o in t){const a=t[o];if(!o.match(xe)||typeof a.body!="string"||!vt(a,gt))return null}const i=e.aliases||Object.create(null);for(const o in i){const a=i[o],r=a.parent;if(!o.match(xe)||typeof r!="string"||!t[r]&&!i[r]||!vt(a,gt))return null}return e}const Ve=Object.create(null);function Gs(s,e){return{provider:s,prefix:e,icons:Object.create(null),missing:new Set}}function Y(s,e){const t=Ve[s]||(Ve[s]=Object.create(null));return t[e]||(t[e]=Gs(s,e))}function yt(s,e){return Oi(e)?Ti(e,(t,i)=>{i?s.icons[t]=i:s.missing.add(t)}):[]}function Ws(s,e,t){try{if(typeof t.body=="string")return s.icons[e]={...t},!0}catch{}return!1}function Zs(s,e){let t=[];return(typeof s=="string"?[s]:Object.keys(Ve)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(Ve[o]||{})).forEach(r=>{const n=Y(o,r);t=t.concat(Object.keys(n.icons).map(l=>(o!==""?"@"+o+":":"")+r+":"+l))})}),t}let Se=!1;function Ci(s){return typeof s=="boolean"&&(Se=s),Se}function Ee(s){const e=typeof s=="string"?ke(s,!0,Se):s;if(e){const t=Y(e.provider,e.prefix),i=e.name;return t.icons[i]||(t.missing.has(i)?null:void 0)}}function Ii(s,e){const t=ke(s,!0,Se);if(!t)return!1;const i=Y(t.provider,t.prefix);return Ws(i,t.name,e)}function Li(s,e){if(typeof s!="object")return!1;if(typeof e!="string"&&(e=s.provider||""),Se&&!e&&!s.prefix){let o=!1;return Oi(s)&&(s.prefix="",Ti(s,(a,r)=>{r&&Ii(a,r)&&(o=!0)})),o}const t=s.prefix;if(!Ue({provider:e,prefix:t,name:"a"}))return!1;const i=Y(e,t);return!!yt(i,s)}function Js(s){return!!Ee(s)}function Qs(s){const e=Ee(s);return e?{...$e,...e}:null}function Xs(s){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);s.sort((o,a)=>o.provider!==a.provider?o.provider.localeCompare(a.provider):o.prefix!==a.prefix?o.prefix.localeCompare(a.prefix):o.name.localeCompare(a.name));let i={provider:"",prefix:"",name:""};return s.forEach(o=>{if(i.name===o.name&&i.prefix===o.prefix&&i.provider===o.provider)return;i=o;const a=o.provider,r=o.prefix,n=o.name,l=t[a]||(t[a]=Object.create(null)),d=l[r]||(l[r]=Y(a,r));let u;n in d.icons?u=e.loaded:r===""||d.missing.has(n)?u=e.missing:u=e.pending;const p={provider:a,prefix:r,name:n};u.push(p)}),e}function Pi(s,e){s.forEach(t=>{const i=t.loaderCallbacks;i&&(t.loaderCallbacks=i.filter(o=>o.id!==e))})}function Ys(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const e=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const i=s.provider,o=s.prefix;e.forEach(a=>{const r=a.icons,n=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==o)return!0;const d=l.name;if(s.icons[d])r.loaded.push({provider:i,prefix:o,name:d});else if(s.missing.has(d))r.missing.push({provider:i,prefix:o,name:d});else return t=!0,!0;return!1}),r.pending.length!==n&&(t||Pi([s],a.id),a.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),a.abort))})}))}let ea=0;function ta(s,e,t){const i=ea++,o=Pi.bind(null,t,i);if(!e.pending.length)return o;const a={id:i,icons:e,callback:s,abort:o};return t.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(a)}),o}const _t=Object.create(null);function Mi(s,e){_t[s]=e}function wt(s){return _t[s]||_t[""]}function ia(s,e=!0,t=!1){const i=[];return s.forEach(o=>{const a=typeof o=="string"?ke(o,e,t):o;a&&i.push(a)}),i}var oa={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sa(s,e,t,i){const o=s.resources.length,a=s.random?Math.floor(Math.random()*o):s.index;let r;if(s.random){let E=s.resources.slice(0);for(r=[];E.length>1;){const z=Math.floor(Math.random()*E.length);r.push(E[z]),E=E.slice(0,z).concat(E.slice(z+1))}r=r.concat(E)}else r=s.resources.slice(a).concat(s.resources.slice(0,a));const n=Date.now();let l="pending",d=0,u,p=null,g=[],y=[];typeof i=="function"&&y.push(i);function w(){p&&(clearTimeout(p),p=null)}function T(){l==="pending"&&(l="aborted"),w(),g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function D(E,z){z&&(y=[]),typeof E=="function"&&y.push(E)}function j(){return{startTime:n,payload:e,status:l,queriesSent:d,queriesPending:g.length,subscribe:D,abort:T}}function I(){l="failed",y.forEach(E=>{E(void 0,u)})}function Le(){g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function Je(E,z,ce){const te=z!=="success";switch(g=g.filter(P=>P!==E),l){case"pending":break;case"failed":if(te||!s.dataAfterTimeout)return;break;default:return}if(z==="abort"){u=ce,I();return}if(te){u=ce,g.length||(r.length?ee():I());return}if(w(),Le(),!s.random){const P=s.resources.indexOf(E.resource);P!==-1&&P!==s.index&&(s.index=P)}l="completed",y.forEach(P=>{P(ce)})}function ee(){if(l!=="pending")return;w();const E=r.shift();if(E===void 0){if(g.length){p=setTimeout(()=>{w(),l==="pending"&&(Le(),I())},s.timeout);return}I();return}const z={status:"pending",resource:E,callback:(ce,te)=>{Je(z,ce,te)}};g.push(z),d++,p=setTimeout(ee,s.rotate),t(E,e,z.callback)}return setTimeout(ee),j}function ji(s){const e={...oa,...s};let t=[];function i(){t=t.filter(n=>n().status==="pending")}function o(n,l,d){const u=sa(e,n,l,(p,g)=>{i(),d&&d(p,g)});return t.push(u),u}function a(n){return t.find(l=>n(l))||null}return{query:o,find:a,setIndex:n=>{e.index=n},getIndex:()=>e.index,cleanup:i}}function $t(s){let e;if(typeof s.resources=="string")e=[s.resources];else if(e=s.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const Be=Object.create(null),Ae=["https://api.simplesvg.com","https://api.unisvg.com"],He=[];for(;Ae.length>0;)Ae.length===1||Math.random()>.5?He.push(Ae.shift()):He.push(Ae.pop());Be[""]=$t({resources:["https://api.iconify.design"].concat(He)});function Fi(s,e){const t=$t(e);return t===null?!1:(Be[s]=t,!0)}function Ke(s){return Be[s]}function aa(){return Object.keys(Be)}function zi(){}const xt=Object.create(null);function ra(s){if(!xt[s]){const e=Ke(s);if(!e)return;const t=ji(e),i={config:e,redundancy:t};xt[s]=i}return xt[s]}function Di(s,e,t){let i,o;if(typeof s=="string"){const a=wt(s);if(!a)return t(void 0,424),zi;o=a.send;const r=ra(s);r&&(i=r.redundancy)}else{const a=$t(s);if(a){i=ji(a);const r=s.resources?s.resources[0]:"",n=wt(r);n&&(o=n.send)}}return!i||!o?(t(void 0,424),zi):i.query(e,o,t)().abort}const Ri="iconify2",Te="iconify",Ni=Te+"-count",qi=Te+"-version",Ui=36e5,na=168;function kt(s,e){try{return s.getItem(e)}catch{}}function St(s,e,t){try{return s.setItem(e,t),!0}catch{}}function Vi(s,e){try{s.removeItem(e)}catch{}}function Et(s,e){return St(s,Ni,e.toString())}function At(s){return parseInt(kt(s,Ni))||0}const ne={local:!0,session:!0},Bi={local:new Set,session:new Set};let Tt=!1;function la(s){Tt=s}let Ge=typeof window>"u"?{}:window;function Hi(s){const e=s+"Storage";try{if(Ge&&Ge[e]&&typeof Ge[e].length=="number")return Ge[e]}catch{}ne[s]=!1}function Ki(s,e){const t=Hi(s);if(!t)return;const i=kt(t,qi);if(i!==Ri){if(i){const n=At(t);for(let l=0;l{const l=Te+n.toString(),d=kt(t,l);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,n))return!0}catch{}Vi(t,l)}};let r=At(t);for(let n=r-1;n>=0;n--)a(n)||(n===r-1?(r--,Et(t,r)):Bi[s].add(n))}function Gi(){if(!Tt){la(!0);for(const s in ne)Ki(s,e=>{const t=e.data,i=e.provider,o=t.prefix,a=Y(i,o);if(!yt(a,t).length)return!1;const r=t.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,r):r,!0})}}function da(s,e){const t=s.lastModifiedCached;if(t&&t>=e)return t===e;if(s.lastModifiedCached=e,t)for(const i in ne)Ki(i,o=>{const a=o.data;return o.provider!==s.provider||a.prefix!==s.prefix||a.lastModified===e});return!0}function ca(s,e){Tt||Gi();function t(i){let o;if(!ne[i]||!(o=Hi(i)))return;const a=Bi[i];let r;if(a.size)a.delete(r=Array.from(a).shift());else if(r=At(o),!Et(o,r+1))return;const n={cached:Math.floor(Date.now()/Ui),provider:s.provider,data:e};return St(o,Te+r.toString(),JSON.stringify(n))}e.lastModified&&!da(s,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Wi(){}function ua(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Ys(s)}))}function ha(s,e){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(e).sort():s.iconsToLoad=e,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:t,prefix:i}=s,o=s.iconsToLoad;delete s.iconsToLoad;let a;if(!o||!(a=wt(t)))return;a.prepare(t,i,o).forEach(n=>{Di(t,n,l=>{if(typeof l!="object")n.icons.forEach(d=>{s.missing.add(d)});else try{const d=yt(s,l);if(!d.length)return;const u=s.pendingIcons;u&&d.forEach(p=>{u.delete(p)}),ca(s,l)}catch(d){console.error(d)}ua(s)})})}))}const Ot=(s,e)=>{const t=ia(s,!0,Ci()),i=Xs(t);if(!i.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(i.loaded,i.missing,i.pending,Wi)}),()=>{l=!1}}const o=Object.create(null),a=[];let r,n;return i.pending.forEach(l=>{const{provider:d,prefix:u}=l;if(u===n&&d===r)return;r=d,n=u,a.push(Y(d,u));const p=o[d]||(o[d]=Object.create(null));p[u]||(p[u]=[])}),i.pending.forEach(l=>{const{provider:d,prefix:u,name:p}=l,g=Y(d,u),y=g.pendingIcons||(g.pendingIcons=new Set);y.has(p)||(y.add(p),o[d][u].push(p))}),a.forEach(l=>{const{provider:d,prefix:u}=l;o[d][u].length&&ha(l,o[d][u])}),e?ta(e,i,a):Wi},pa=s=>new Promise((e,t)=>{const i=typeof s=="string"?ke(s,!0):s;if(!i){t(s);return}Ot([i||s],o=>{if(o.length&&i){const a=Ee(i);if(a){e({...$e,...a});return}}t(s)})});function fa(s){try{const e=typeof s=="string"?JSON.parse(s):s;if(typeof e.body=="string")return{...e}}catch{}}function ba(s,e){const t=typeof s=="string"?ke(s,!0,!0):null;if(!t){const a=fa(s);return{value:s,data:a}}const i=Ee(t);if(i!==void 0||!t.prefix)return{value:s,name:t,data:i};const o=Ot([t],()=>e(s,t,Ee(t)));return{value:s,name:t,loading:o}}function Ct(s){return s.hasAttribute("inline")}let Zi=!1;try{Zi=navigator.vendor.indexOf("Apple")===0}catch{}function ma(s,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Zi||s.indexOf("{const w=[],T=y.hFlip,D=y.vFlip;let j=y.rotate;T?D?j+=2:(w.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),w.push("scale(-1 1)"),o.top=o.left=0):D&&(w.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),w.push("scale(1 -1)"),o.top=o.left=0);let I;switch(j<0&&(j-=Math.floor(j/4)*4),j=j%4,j){case 1:I=o.height/2+o.top,w.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:w.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:I=o.width/2+o.left,w.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}j%2===1&&(o.left!==o.top&&(I=o.left,o.left=o.top,o.top=I),o.width!==o.height&&(I=o.width,o.width=o.height,o.height=I)),w.length&&(a=''+a+"")});const r=i.width,n=i.height,l=o.width,d=o.height;let u,p;return r===null?(p=n===null?"1em":n==="auto"?d:n,u=It(p,l/d)):(u=r==="auto"?l:r,p=n===null?It(u,d/l):n==="auto"?d:n),{attributes:{width:u.toString(),height:p.toString(),viewBox:o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+d.toString()},body:a}}let We=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function ya(s){We=s}function _a(){return We}function wa(s,e){const t=Ke(s);if(!t)return 0;let i;if(!t.maxURL)i=0;else{let o=0;t.resources.forEach(r=>{o=Math.max(o,r.length)});const a=e+".json?icons=";i=t.maxURL-o-t.path.length-a.length}return i}function $a(s){return s===404}const xa=(s,e,t)=>{const i=[],o=wa(s,e),a="icons";let r={type:a,provider:s,prefix:e,icons:[]},n=0;return t.forEach((l,d)=>{n+=l.length+1,n>=o&&d>0&&(i.push(r),r={type:a,provider:s,prefix:e,icons:[]},n=l.length),r.icons.push(l)}),i.push(r),i};function ka(s){if(typeof s=="string"){const e=Ke(s);if(e)return e.path}return"/"}const Sa={prepare:xa,send:(s,e,t)=>{if(!We){t("abort",424);return}let i=ka(e.provider);switch(e.type){case"icons":{const a=e.prefix,n=e.icons.join(","),l=new URLSearchParams({icons:n});i+=a+".json?"+l.toString();break}case"custom":{const a=e.uri;i+=a.slice(0,1)==="/"?a.slice(1):a;break}default:t("abort",400);return}let o=503;We(s+i).then(a=>{const r=a.status;if(r!==200){setTimeout(()=>{t($a(r)?"abort":"next",r)});return}return o=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?t("abort",a):t("next",o)});return}setTimeout(()=>{t("success",a)})}).catch(()=>{t("next",o)})}};function Qi(s,e){switch(s){case"local":case"session":ne[s]=e;break;case"all":for(const t in ne)ne[t]=e;break}}function Xi(){Mi("",Sa),Ci(!0);let s;try{s=window}catch{}if(s){if(Gi(),s.IconifyPreload!==void 0){const t=s.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Li(o))&&console.error(i)}catch{console.error(i)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(const i in t){const o="IconifyProviders["+i+"] is invalid.";try{const a=t[i];if(typeof a!="object"||!a||a.resources===void 0)continue;Fi(i,a)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Qi(t,!0),disableCache:t=>Qi(t,!1),iconExists:Js,getIcon:Qs,listIcons:Zs,addIcon:Ii,addCollection:Li,calculateSize:It,buildIcon:Ji,loadIcons:Ot,loadIcon:pa,addAPIProvider:Fi,_api:{getAPIConfig:Ke,setAPIModule:Mi,sendAPIQuery:Di,setFetch:ya,getFetch:_a,listAPIProviders:aa}}}function Yi(s,e){let t=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)t+=" "+i+'="'+e[i]+'"';return'"+s+""}function Ea(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Aa(s){return'url("data:image/svg+xml,'+Ea(s)+'")'}const Lt={"background-color":"currentColor"},eo={"background-color":"transparent"},to={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},io={"-webkit-mask":Lt,mask:Lt,background:eo};for(const s in io){const e=io[s];for(const t in to)e[s+"-"+t]=to[t]}function oo(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}function Ta(s,e,t){const i=document.createElement("span");let o=s.body;o.indexOf("");const a=s.attributes,r=Yi(o,{...a,width:e.width+"",height:e.height+""}),n=Aa(r),l=i.style,d={"--svg":n,width:oo(a.width),height:oo(a.height),...t?Lt:eo};for(const u in d)l.setProperty(u,d[u]);return i}function Oa(s){const e=document.createElement("span");return e.innerHTML=Yi(s.body,s.attributes),e.firstChild}function so(s,e){const t=e.icon.data,i=e.customisations,o=Ji(t,i);i.preserveAspectRatio&&(o.attributes.preserveAspectRatio=i.preserveAspectRatio);const a=e.renderedMode;let r;switch(a){case"svg":r=Oa(o);break;default:r=Ta(o,{...$e,...t},a==="mask")}const n=Array.from(s.childNodes).find(l=>{const d=l.tagName&&l.tagName.toUpperCase();return d==="SPAN"||d==="SVG"});n?r.tagName==="SPAN"&&n.tagName===r.tagName?n.setAttribute("style",r.getAttribute("style")):s.replaceChild(r,n):s.appendChild(r)}const Pt="data-style";function ao(s,e){let t=Array.from(s.childNodes).find(i=>i.hasAttribute&&i.hasAttribute(Pt));t||(t=document.createElement("style"),t.setAttribute(Pt,Pt),s.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"}function ro(s,e,t){const i=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:e,icon:s,lastRender:i}}function Ca(s="iconify-icon"){let e,t;try{e=window.customElements,t=window.HTMLElement}catch{return}if(!e||!t)return;const i=e.get(s);if(i)return i;const o=["icon","mode","inline","width","height","rotate","flip"],a=class extends t{constructor(){super();Me(this,"_shadowRoot");Me(this,"_state");Me(this,"_checkQueued",!1);const l=this._shadowRoot=this.attachShadow({mode:"open"}),d=Ct(this);ao(l,d),this._state=ro({value:""},d),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(l){if(l==="inline"){const d=Ct(this),u=this._state;d!==u.inline&&(u.inline=d,ao(this._shadowRoot,d))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return Ct(this)}set inline(l){this.setAttribute("inline",l?"true":null)}restartAnimation(){const l=this._state;if(l.rendered){const d=this._shadowRoot;if(l.renderedMode==="svg")try{d.lastChild.setCurrentTime(0);return}catch{}so(d,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,d=this.getAttribute("icon");if(d!==l.icon.value){this._iconChanged(d);return}if(!l.rendered)return;const u=this.getAttribute("mode"),p=Ei(this);(l.attrMode!==u||Us(l.customisations,p))&&this._renderIcon(l.icon,p,u)}_iconChanged(l){const d=ba(l,(u,p,g)=>{const y=this._state;if(y.rendered||this.getAttribute("icon")!==u)return;const w={value:u,name:p,data:g};w.data?this._gotIconData(w):y.icon=w});d.data?this._gotIconData(d):this._state=ro(d,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,Ei(this),this.getAttribute("mode"))}_renderIcon(l,d,u){const p=ma(l.data.body,u),g=this._state.inline;so(this._shadowRoot,this._state={rendered:!0,icon:l,inline:g,customisations:d,attrMode:u,renderedMode:p})}};o.forEach(n=>{n in a.prototype||Object.defineProperty(a.prototype,n,{get:function(){return this.getAttribute(n)},set:function(l){this.setAttribute(n,l)}})});const r=Xi();for(const n in r)a[n]=a.prototype[n]=r[n];return e.define(s,a),a}const Ia=Ca()||Xi(),{enableCache:Nn,disableCache:qn,iconExists:Un,getIcon:Vn,listIcons:Bn,addIcon:Hn,addCollection:Kn,calculateSize:Gn,buildIcon:Wn,loadIcons:Zn,loadIcon:Jn,addAPIProvider:Qn,_api:Xn}=Ia;class no extends N{static get styles(){return x` :root { pointer-events: none; } @@ -399,14 +399,14 @@ .tooltip:hover { opacity: 0.25; } - `}static get properties(){return{...super.properties,icon:{type:String},tooltip:{type:String},tooltip_open:{type:Boolean},size:{type:String},slotted:{type:Boolean,attribute:!1}}}firstUpdated(){const e=this.shadowRoot.querySelector("slot[name=tooltip]");e&&e.addEventListener("slotchange",t=>{const o=t.target.assignedNodes();let a=!1;o.length>0&&(o[0].tagName==="SLOT"?a=o[0].assignedNodes().length>0:a=!0),this.slotted=a})}_toggleTooltip(){this.tooltip_open?this.tooltip_open=!1:this.tooltip_open=!0}tooltipClasses(){return{tooltip:!0,slotted:this.slotted}}render(){const e=this.tooltip?p`
    {const o=t.target.assignedNodes();let a=!1;o.length>0&&(o[0].tagName==="SLOT"?a=o[0].assignedNodes().length>0:a=!0),this.slotted=a})}_toggleTooltip(){this.tooltip_open?this.tooltip_open=!1:this.tooltip_open=!0}tooltipClasses(){return{tooltip:!0,slotted:this.slotted}}render(){const e=this.tooltip?h`
    ${this.tooltip} -
    `:null;return p` +
    `:null;return h`
    ${e}
    - `}}window.customElements.define("dt-icon",ro);class La extends se{static get styles(){return x` + `}}window.customElements.define("dt-icon",no);class La extends ae{static get styles(){return x` :host { margin-top: -0.25rem; width: 2rem; @@ -433,7 +433,7 @@ * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const ne=s=>s??O;class M extends N{static get formAssociated(){return!0}static get styles(){return[...super.styles,x` + */const le=s=>s??O;class M extends N{static get formAssociated(){return!0}static get styles(){return[...super.styles,x` .input-group { position: relative; } @@ -500,74 +500,74 @@ .invalid ~ .error-container { border-top-width: 0; } - `]}static get properties(){return{...super.properties,name:{type:String},label:{type:String},icon:{type:String},iconAltText:{type:String},private:{type:Boolean},privateLabel:{type:String},disabled:{type:Boolean},required:{type:Boolean},requiredMessage:{type:String},touched:{type:Boolean,state:!0},invalid:{type:Boolean,state:!0},error:{type:String},loading:{type:Boolean},saved:{type:Boolean},errorSlotted:{type:Boolean,attribute:!1}}}get _field(){return this.shadowRoot.querySelector("input, textarea, select")}get _focusTarget(){return this._field}constructor(){super(),this.savedTimeout=null,this.touched=!1,this.invalid=!1,this.internals=this.attachInternals(),this.addEventListener("invalid",e=>{e&&e.preventDefault(),this.touched=!0,this._validateRequired()})}firstUpdated(...e){super.firstUpdated(...e);const t=this.shadowRoot.querySelector("slot[name=error]");t&&t.addEventListener("slotchange",o=>{const r=o.target.assignedNodes();let n=!1;r.length>0&&(r[0].tagName==="SLOT"?n=r[0].assignedNodes().length>0:n=!0),this.errorSlotted=n});const i=M._jsonToFormData(this.value,this.name);this.internals.setFormValue(i),this._validateRequired()}static _buildFormData(e,t,i){if(t&&typeof t=="object"&&!(t instanceof Date)&&!(t instanceof File))Object.keys(t).forEach(o=>{this._buildFormData(e,t[o],i?`${i}[${o}]`:o)});else{const o=t??"";e.append(i,o)}}static _jsonToFormData(e,t){const i=new FormData;return M._buildFormData(i,e,t),i}_setFormValue(e){const t=M._jsonToFormData(e,this.name);this.internals.setFormValue(t,e),this._validateRequired(),this.touched=!0}_validateRequired(){}labelTemplate(){return this.label?p` + `]}static get properties(){return{...super.properties,name:{type:String},label:{type:String},icon:{type:String},iconAltText:{type:String},private:{type:Boolean},privateLabel:{type:String},disabled:{type:Boolean},required:{type:Boolean},requiredMessage:{type:String},touched:{type:Boolean,state:!0},invalid:{type:Boolean,state:!0},error:{type:String},loading:{type:Boolean},saved:{type:Boolean},errorSlotted:{type:Boolean,attribute:!1}}}get _field(){return this.shadowRoot.querySelector("input, textarea, select")}get _focusTarget(){return this._field}constructor(){super(),this.savedTimeout=null,this.touched=!1,this.invalid=!1,this.internals=this.attachInternals(),this.addEventListener("invalid",e=>{e&&e.preventDefault(),this.touched=!0,this._validateRequired()})}firstUpdated(...e){super.firstUpdated(...e);const t=this.shadowRoot.querySelector("slot[name=error]");t&&t.addEventListener("slotchange",o=>{const r=o.target.assignedNodes();let n=!1;r.length>0&&(r[0].tagName==="SLOT"?n=r[0].assignedNodes().length>0:n=!0),this.errorSlotted=n});const i=M._jsonToFormData(this.value,this.name);this.internals.setFormValue(i),this._validateRequired()}static _buildFormData(e,t,i){if(t&&typeof t=="object"&&!(t instanceof Date)&&!(t instanceof File))Object.keys(t).forEach(o=>{this._buildFormData(e,t[o],i?`${i}[${o}]`:o)});else{const o=t??"";e.append(i,o)}}static _jsonToFormData(e,t){const i=new FormData;return M._buildFormData(i,e,t),i}_setFormValue(e){const t=M._jsonToFormData(e,this.name);this.internals.setFormValue(t,e),this._validateRequired(),this.touched=!0}_validateRequired(){}labelTemplate(){return this.label?h` - ${this.icon?null:p``} + ${this.icon?null:h``} ${this.label} - `:""}_errorClasses(){return{"error-container":!0,slotted:this.errorSlotted}}renderIcons(){return p` + `:""}_errorClasses(){return{"error-container":!0,slotted:this.errorSlotted}}renderIcons(){return h` ${this.renderIconInvalid()} ${this.renderError()} ${this.renderIconLoading()} ${this.renderIconSaved()} - `}renderIconInvalid(){return this.touched&&this.invalid?p`
    + `}renderIconInvalid(){return this.touched&&this.invalid?h`
    ${this.internals.validationMessage} -
    `:null}renderIconLoading(){return this.loading?p``:null}renderIconSaved(){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?p` `:null}renderIconLoading(){return this.loading?h``:null}renderIconSaved(){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?h``:null}renderError(){return this.error?p`
    + >`:null}renderError(){return this.error?h`
    ${this.error} -
    `:null}render(){return p` +
    `:null}render(){return h` ${this.labelTemplate()} `}reset(){var e;(e=this._field)!=null&&e.reset&&this._field.reset(),this.value="",this._setFormValue("")}}/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{I:Ia}=rs,no=()=>document.createComment(""),Te=(s,e,t)=>{var a;const i=s._$AA.parentNode,o=e===void 0?s._$AB:e._$AA;if(t===void 0){const r=i.insertBefore(no(),o),n=i.insertBefore(no(),o);t=new Ia(r,n,s,s.options)}else{const r=t._$AB.nextSibling,n=t._$AM,l=n!==s;if(l){let d;(a=t._$AQ)==null||a.call(t,s),t._$AM=s,t._$AP!==void 0&&(d=s._$AU)!==n._$AU&&t._$AP(d)}if(r!==o||l){let d=t._$AA;for(;d!==r;){const u=d.nextSibling;i.insertBefore(d,o),d=u}}}return t},le=(s,e,t=s)=>(s._$AI(e,t),s),Pa={},Ma=(s,e=Pa)=>s._$AH=e,ja=s=>s._$AH,Mt=s=>{var i;(i=s._$AP)==null||i.call(s,!1,!0);let e=s._$AA;const t=s._$AB.nextSibling;for(;e!==t;){const o=e.nextSibling;e.remove(),e=o}};/** + */const{I:Pa}=ns,lo=()=>document.createComment(""),Oe=(s,e,t)=>{var a;const i=s._$AA.parentNode,o=e===void 0?s._$AB:e._$AA;if(t===void 0){const r=i.insertBefore(lo(),o),n=i.insertBefore(lo(),o);t=new Pa(r,n,s,s.options)}else{const r=t._$AB.nextSibling,n=t._$AM,l=n!==s;if(l){let d;(a=t._$AQ)==null||a.call(t,s),t._$AM=s,t._$AP!==void 0&&(d=s._$AU)!==n._$AU&&t._$AP(d)}if(r!==o||l){let d=t._$AA;for(;d!==r;){const u=d.nextSibling;i.insertBefore(d,o),d=u}}}return t},de=(s,e,t=s)=>(s._$AI(e,t),s),Ma={},ja=(s,e=Ma)=>s._$AH=e,Fa=s=>s._$AH,Mt=s=>{var i;(i=s._$AP)==null||i.call(s,!1,!0);let e=s._$AA;const t=s._$AB.nextSibling;for(;e!==t;){const o=e.nextSibling;e.remove(),e=o}};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const lo=(s,e,t)=>{const i=new Map;for(let o=e;o<=t;o++)i.set(s[o],o);return i},pe=ut(class extends ht{constructor(s){if(super(s),s.type!==ct.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);const o=[],a=[];let r=0;for(const n of s)o[r]=i?i(n,r):r,a[r]=t(n,r),r++;return{values:a,keys:o}}render(s,e,t){return this.dt(s,e,t).values}update(s,[e,t,i]){const o=ja(s),{values:a,keys:r}=this.dt(e,t,i);if(!Array.isArray(o))return this.ut=r,a;const n=this.ut??(this.ut=[]),l=[];let d,u,h=0,g=o.length-1,y=0,_=a.length-1;for(;h<=g&&y<=_;)if(o[h]===null)h++;else if(o[g]===null)g--;else if(n[h]===r[y])l[y]=le(o[h],a[y]),h++,y++;else if(n[g]===r[_])l[_]=le(o[g],a[_]),g--,_--;else if(n[h]===r[_])l[_]=le(o[h],a[_]),Te(s,l[_+1],o[h]),h++,_--;else if(n[g]===r[y])l[y]=le(o[g],a[y]),Te(s,o[h],o[g]),g--,y++;else if(d===void 0&&(d=lo(r,y,_),u=lo(n,h,g)),d.has(n[h]))if(d.has(n[g])){const C=u.get(r[y]),D=C!==void 0?o[C]:null;if(D===null){const j=Te(s,o[h]);le(j,a[y]),l[y]=j}else l[y]=le(D,a[y]),Te(s,o[h],D),o[C]=null;y++}else Mt(o[g]),g--;else Mt(o[h]),h++;for(;y<=_;){const C=Te(s,l[_+1]);le(C,a[y]),l[y++]=C}for(;h<=g;){const C=o[h++];C!==null&&Mt(C)}return this.ut=r,Ma(s,l),U}}),za=s=>class extends s{constructor(){super(),this.activeIndex=-1,this.filteredOptions=[],this.detectTap=!1}static get properties(){return{...super.properties,value:{type:Array,reflect:!0},query:{type:String,state:!0},options:{type:Array},filteredOptions:{type:Array,state:!0},open:{type:Boolean,state:!0},canUpdate:{type:Boolean,state:!0},activeIndex:{type:Number,state:!0},containerHeight:{type:Number,state:!0},loading:{type:Boolean}}}willUpdate(e){if(super.willUpdate(e),e&&!this.containerHeight&&this.shadowRoot.children&&this.shadowRoot.children.length){const t=this.shadowRoot.querySelector(".input-group");t&&(this.containerHeight=t.offsetHeight)}}updated(){this._scrollOptionListToActive();const e=this.shadowRoot.querySelector(".input-group");!e.style.getPropertyValue("--container-width")&&e.clientWidth>0&&e.style.setProperty("--container-width",`${e.clientWidth}px`)}_select(){console.error("Must implement `_select(value)` function"),this._clearSearch()}static _focusInput(e){e.target===e.currentTarget&&e.target.getElementsByTagName("input")[0].focus()}_inputFocusIn(e){(!e.relatedTarget||!["BUTTON","LI"].includes(e.relatedTarget.nodeName))&&(this.open=!0,this.activeIndex=-1)}_inputFocusOut(e){(!e.relatedTarget||!["BUTTON","LI"].includes(e.relatedTarget.nodeName))&&(this.open=!1,this.canUpdate=!0)}_inputKeyDown(e){}_inputKeyUp(e){switch(e.keyCode||e.which){case 38:this.open=!0,this._listHighlightPrevious();break;case 40:this.open=!0,this._listHighlightNext();break;case 9:this.activeIndex<0?this.open=!1:e.preventDefault(),this._keyboardSelectOption();break;case 13:this._keyboardSelectOption();break;case 27:this.open=!1,this.activeIndex=-1;break;default:this.open=!0,this.query=e.target.value;break}}_scrollOptionListToActive(){const e=this.shadowRoot.querySelector(".option-list"),t=this.shadowRoot.querySelector("button.active");if(e&&t){const i=t.offsetTop,o=t.offsetTop+t.clientHeight,a=e.scrollTop,r=e.scrollTop+e.clientHeight;o>r?e.scrollTo({top:o-e.clientHeight,behavior:"smooth"}):i-1&&(this.activeIndex+1>this.filteredOptions.length?this._select(this.query):this._select(this.filteredOptions[this.activeIndex].id))}_clickOption(e){e.target&&e.target.value&&this._select(e.target.value)}_clickAddNew(e){var t;e.target&&this._select((t=e.target.dataset)==null?void 0:t.label)}_clearSearch(){const e=this.shadowRoot.querySelector("input");e&&(e.value="")}_listHighlightNext(){this.allowAdd?this.activeIndex=Math.min(this.filteredOptions.length,this.activeIndex+1):this.activeIndex=Math.min(this.filteredOptions.length-1,this.activeIndex+1)}_listHighlightPrevious(){this.activeIndex=Math.max(0,this.activeIndex-1)}_renderOption(e,t){return p` -
  • - -
  • - `}_baseRenderOptions(){return this.filteredOptions.length?pe(this.filteredOptions,e=>e.id,(e,t)=>this._renderOption(e,t)):this.loading?p`
  • ${R("Loading options...")}
  • `:p`
  • ${R("No Data Available")}
  • `}_renderOptions(){let e=this._baseRenderOptions();return this.allowAdd&&this.query&&(Array.isArray(e)||(e=[e]),e.push(p`
  • - -
  • `)),e}};class Ze extends za(M){static get styles(){return[...super.styles,x` + */const co=(s,e,t)=>{const i=new Map;for(let o=e;o<=t;o++)i.set(s[o],o);return i},H=ut(class extends ht{constructor(s){if(super(s),s.type!==ct.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);const o=[],a=[];let r=0;for(const n of s)o[r]=i?i(n,r):r,a[r]=t(n,r),r++;return{values:a,keys:o}}render(s,e,t){return this.dt(s,e,t).values}update(s,[e,t,i]){const o=Fa(s),{values:a,keys:r}=this.dt(e,t,i);if(!Array.isArray(o))return this.ut=r,a;const n=this.ut??(this.ut=[]),l=[];let d,u,p=0,g=o.length-1,y=0,w=a.length-1;for(;p<=g&&y<=w;)if(o[p]===null)p++;else if(o[g]===null)g--;else if(n[p]===r[y])l[y]=de(o[p],a[y]),p++,y++;else if(n[g]===r[w])l[w]=de(o[g],a[w]),g--,w--;else if(n[p]===r[w])l[w]=de(o[p],a[w]),Oe(s,l[w+1],o[p]),p++,w--;else if(n[g]===r[y])l[y]=de(o[g],a[y]),Oe(s,o[p],o[g]),g--,y++;else if(d===void 0&&(d=co(r,y,w),u=co(n,p,g)),d.has(n[p]))if(d.has(n[g])){const T=u.get(r[y]),D=T!==void 0?o[T]:null;if(D===null){const j=Oe(s,o[p]);de(j,a[y]),l[y]=j}else l[y]=de(D,a[y]),Oe(s,o[p],D),o[T]=null;y++}else Mt(o[g]),g--;else Mt(o[p]),p++;for(;y<=w;){const T=Oe(s,l[w+1]);de(T,a[y]),l[y++]=T}for(;p<=g;){const T=o[p++];T!==null&&Mt(T)}return this.ut=r,ja(s,l),V}}),za=s=>class extends s{constructor(){super(),this.activeIndex=-1,this.filteredOptions=[],this.detectTap=!1}static get properties(){return{...super.properties,value:{type:Array,reflect:!0},query:{type:String,state:!0},options:{type:Array},filteredOptions:{type:Array,state:!0},open:{type:Boolean,state:!0},canUpdate:{type:Boolean,state:!0},activeIndex:{type:Number,state:!0},containerHeight:{type:Number,state:!0},loading:{type:Boolean},showAbove:{type:Boolean,state:!0}}}willUpdate(e){if(super.willUpdate(e),e&&!this.containerHeight&&this.shadowRoot.children&&this.shadowRoot.children.length){const t=this.shadowRoot.querySelector(".input-group");t&&(this.containerHeight=t.offsetHeight)}}updated(e){super.updated&&super.updated(e),this._scrollOptionListToActive();const t=this.shadowRoot.querySelector(".input-group");t&&!t.style.getPropertyValue("--container-width")&&t.clientWidth>0&&t.style.setProperty("--container-width",`${t.clientWidth}px`),e&&e.has("open")&&this.open&&this._checkPosition()}_checkPosition(){const e=this.shadowRoot.querySelector(".input-group");if(e){const t=e.getBoundingClientRect(),o=window.innerHeight-t.bottom,a=t.top;o<150&&a>o?this.showAbove=!0:this.showAbove=!1}}get optionListStyles(){const e={display:this.open?"block":"none"};return this.showAbove?(e.bottom=this.containerHeight?`${this.containerHeight}px`:"2.5rem",e.top="auto"):(e.top=this.containerHeight?`${this.containerHeight}px`:"2.5rem",e.bottom="auto"),e}_select(){console.error("Must implement `_select(value)` function"),this._clearSearch()}static _focusInput(e){e.target===e.currentTarget&&e.target.getElementsByTagName("input")[0].focus()}_inputFocusIn(e){(!e.relatedTarget||!["BUTTON","LI"].includes(e.relatedTarget.nodeName))&&(this.open=!0,this.activeIndex=-1)}_inputFocusOut(e){(!e.relatedTarget||!["BUTTON","LI"].includes(e.relatedTarget.nodeName))&&(this.open=!1,this.canUpdate=!0)}_inputKeyDown(e){}_inputKeyUp(e){switch(e.keyCode||e.which){case 38:this.open=!0,this._listHighlightPrevious();break;case 40:this.open=!0,this._listHighlightNext();break;case 9:this.activeIndex<0?this.open=!1:e.preventDefault(),this._keyboardSelectOption();break;case 13:this._keyboardSelectOption();break;case 27:this.open=!1,this.activeIndex=-1;break;default:this.open=!0,this.query=e.target.value;break}}_scrollOptionListToActive(){const e=this.shadowRoot.querySelector(".option-list"),t=this.shadowRoot.querySelector("button.active");if(e&&t){const i=t.offsetTop,o=t.offsetTop+t.clientHeight,a=e.scrollTop,r=e.scrollTop+e.clientHeight;o>r?e.scrollTo({top:o-e.clientHeight,behavior:"smooth"}):i-1&&(this.activeIndex+1>this.filteredOptions.length?this._select(this.query):this._select(this.filteredOptions[this.activeIndex].id))}_clickOption(e){e.target&&e.target.value&&this._select(e.target.value)}_clickAddNew(e){var t;e.target&&this._select((t=e.target.dataset)==null?void 0:t.label)}_clearSearch(){const e=this.shadowRoot.querySelector("input");e&&(e.value="")}_listHighlightNext(){this.allowAdd?this.activeIndex=Math.min(this.filteredOptions.length,this.activeIndex+1):this.activeIndex=Math.min(this.filteredOptions.length-1,this.activeIndex+1)}_listHighlightPrevious(){this.activeIndex=Math.max(0,this.activeIndex-1)}_renderOption(e,t){return h` +
  • + +
  • + `}_baseRenderOptions(){return this.filteredOptions.length?H(this.filteredOptions,e=>e.id,(e,t)=>this._renderOption(e,t)):this.loading?h`
  • ${R("Loading options...")}
  • `:h`
  • ${R("No Data Available")}
  • `}_renderOptions(){let e=this._baseRenderOptions();return this.allowAdd&&this.query&&(Array.isArray(e)||(e=[e]),e.push(h`
  • + +
  • `)),e}};class Ze extends za(M){static get styles(){return[...super.styles,x` :host { position: relative; font-family: var(--font-family, Helvetica, Arial, sans-serif); @@ -791,7 +791,7 @@ var(--dt-form-border-color-alert, var(--alert-color)) ); } - `]}static get properties(){return{...super.properties,placeholder:{type:String},containerHeight:{type:Number,state:!0}}}_select(e){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});if(this.value&&this.value.length)if(typeof this.value[0]=="string")this.value=[...this.value.filter(o=>o!==`-${e}`),e];else{let o=!1;const a=this.value.map(r=>{const n={...r};return r.id===e.id&&r.delete&&(delete n.delete,o=!0),n});o||a.push(e),this.value=a}else this.value=[e];i.detail.newValue=this.value,this.open=!1,this.activeIndex=-1,this.canUpdate=!0,this.dispatchEvent(i),this._setFormValue(this.value),this.query&&(this.query=""),this._clearSearch()}_remove(e){if(e.stopPropagation(),e.target&&e.target.dataset&&e.target.dataset.value){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});this.value=(this.value||[]).map(o=>o===e.target.dataset.value?`-${o}`:o),i.detail.newValue=this.value,this.dispatchEvent(i),this._setFormValue(this.value),this.open&&this.shadowRoot.querySelector("input").focus()}document.activeElement.blur()}updated(){super.updated(),this._updateContainerHeight()}_updateContainerHeight(){const e=this.shadowRoot.querySelector(".field-container");if(e){const t=e.offsetHeight;this.containerHeight!==t&&(this.containerHeight=t,this.requestUpdate())}}_filterOptions(){return this.filteredOptions=(this.options||[]).filter(e=>!(this.value||[]).includes(e.id)&&(!this.query||e.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase()))),this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e){const t=e.has("value"),i=e.has("query"),o=e.has("options");(t||i||o)&&this._filterOptions()}}_handleDivClick(){const e=this.renderRoot.querySelector("input");e&&e.focus()}_handleItemClick(e){e.stopPropagation(),document.activeElement.blur()}_renderSelectedOptions(){return this.options&&this.value&&this.value.filter(e=>e.charAt(0)!=="-").map(e=>p` + `]}static get properties(){return{...super.properties,placeholder:{type:String},containerHeight:{type:Number,state:!0}}}_select(e){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});if(this.value&&this.value.length)if(typeof this.value[0]=="string")this.value=[...this.value.filter(o=>o!==`-${e}`),e];else{let o=!1;const a=this.value.map(r=>{const n={...r};return r.id===e.id&&r.delete&&(delete n.delete,o=!0),n});o||a.push(e),this.value=a}else this.value=[e];i.detail.newValue=this.value,this.open=!1,this.activeIndex=-1,this.canUpdate=!0,this.dispatchEvent(i),this._setFormValue(this.value),this.query&&(this.query=""),this._clearSearch()}_remove(e){if(e.stopPropagation(),e.target&&e.target.dataset&&e.target.dataset.value){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});this.value=(this.value||[]).map(o=>o===e.target.dataset.value?`-${o}`:o),i.detail.newValue=this.value,this.dispatchEvent(i),this._setFormValue(this.value),this.open&&this.shadowRoot.querySelector("input").focus()}document.activeElement.blur()}updated(e){super.updated(e),this._updateContainerHeight()}_updateContainerHeight(){const e=this.shadowRoot.querySelector(".field-container");if(e){const t=e.offsetHeight;this.containerHeight!==t&&(this.containerHeight=t,this.requestUpdate())}}_filterOptions(){return this.filteredOptions=(this.options||[]).filter(e=>!(this.value||[]).includes(e.id)&&(!this.query||e.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase()))),this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e){const t=e.has("value"),i=e.has("query"),o=e.has("options");(t||i||o)&&this._filterOptions()}}_handleDivClick(){const e=this.renderRoot.querySelector("input");e&&e.focus()}_handleItemClick(e){e.stopPropagation(),document.activeElement.blur()}_renderSelectedOptions(){return this.options&&this.value&&this.value.filter(e=>e.charAt(0)!=="-").map(e=>h`
    - `)}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"field-container":!0,invalid:this.touched&&this.invalid}}render(){const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"};return p` + `)}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"field-container":!0,invalid:this.touched&&this.invalid}}render(){const e=this.optionListStyles;return h` ${this.labelTemplate()}
      ${this._renderOptions()} @@ -850,7 +850,7 @@ ${this.renderIcons()}
    - `}}window.customElements.define("dt-multi-select",Ze);class Fa extends N{static get styles(){return x` + `}}window.customElements.define("dt-multi-select",Ze);class Da extends N{static get styles(){return x` root { display: block; } @@ -879,16 +879,16 @@ } } } - `}static get properties(){return{key:{type:String},metric:{type:Object},active:{type:Boolean,reflect:!0},disabled:{type:Boolean},missingIcon:{type:String}}}renderIcon(){var o;const e=(o=window==null?void 0:window.wpApiShare)==null?void 0:o.template_dir,{metric:t,missingIcon:i=`${e}/dt-assets/images/groups/missing.svg`}=this;if(t["font-icon"]){const a=t["font-icon"].replace("mdi mdi-","mdi:");return p``}return p``}return h`${t}`}render(){const{metric:e,active:t,disabled:i}=this;return p`
    `}render(){const{metric:e,active:t,disabled:i}=this;return h`
    ${this.renderIcon()} -
    `}async _handleClick(e){if(this.disabled)return;const t=!this.active;this.active=t;const i=new CustomEvent("change",{detail:{key:this.key,active:t}});this.dispatchEvent(i)}}window.customElements.define("dt-church-health-icon",Fa);class co extends M{static get styles(){return[...super.styles,x` +
    `}async _handleClick(e){if(this.disabled)return;const t=!this.active;this.active=t;const i=new CustomEvent("change",{detail:{key:this.key,active:t}});this.dispatchEvent(i)}}window.customElements.define("dt-church-health-icon",Da);class uo extends M{static get styles(){return[...super.styles,x` .root { display: block; } @@ -1027,7 +1027,7 @@ font-size: 0.65em; color: var(--dt-toggle-icon-color-on, var(--success-color)); } - `]}static get properties(){return{...super.properties,id:{type:String},checked:{type:Boolean,reflect:!0},icons:{type:Boolean,default:!1}}}constructor(){super(),this.icons=!1}firstUpdated(){super.firstUpdated(),this.checked===void 0&&(this.checked=!1);const e=this.checked?"1":"0";this._setFormValue(e),this.value=this.checked}onChange(e){const t=e.target.checked,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.checked,newValue:t}});this.checked=t,this.value=t,this._setFormValue(this.checked?"1":"0"),this.dispatchEvent(i)}onClickToggle(e){e.preventDefault(),e.target.closest("label").querySelector("input").click()}render(){const e=p``,t=p``;return p` + `]}static get properties(){return{...super.properties,id:{type:String},checked:{type:Boolean,reflect:!0},icons:{type:Boolean,default:!1}}}constructor(){super(),this.icons=!1}firstUpdated(){super.firstUpdated(),this.checked===void 0&&(this.checked=!1);const e=this.checked?"1":"0";this._setFormValue(e),this.value=this.checked}onChange(e){const t=e.target.checked,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.checked,newValue:t}});this.checked=t,this.value=t,this._setFormValue(this.checked?"1":"0"),this.dispatchEvent(i)}onClickToggle(e){e.preventDefault(),e.target.closest("label").querySelector("input").click()}render(){const e=h``,t=h``;return h`
    ${this.labelTemplate()} @@ -1048,13 +1048,13 @@ ?disabled=${this.disabled} /> - ${this.icons?p` ${e} ${t} `:p``} + ${this.icons?h` ${e} ${t} `:h``} ${this.renderIcons()}
    - `}}window.customElements.define("dt-toggle",co);class uo extends Ze{static get styles(){return[...super.styles,x` + `}}window.customElements.define("dt-toggle",uo);class ho extends Ze{static get styles(){return[...super.styles,x` .health-circle__container { --icon-count: 9; /* Updated circle size based on dynamic width */ @@ -1144,7 +1144,7 @@ .error-container { margin-block-start: 0.5rem; } - `]}static get properties(){const e={...super.properties,missingIcon:{type:String}};return delete e.placeholder,delete e.containerHeight,e}_filterOptions(){const e=this.options||[];if(!Object.values(e).length)return[];const t=Object.entries(e);return this.filteredOptions=t.filter(([i,o])=>i!=="church_commitment"),this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e){const t=e.has("value"),i=e.has("options");(t||i)&&this._filterOptions()}}get isCommited(){return this.value?this.value.includes("church_commitment"):!1}render(){var e,t;return p` + `]}static get properties(){const e={...super.properties,missingIcon:{type:String}};return delete e.placeholder,delete e.containerHeight,e}_filterOptions(){const e=this.options||[];if(!Object.values(e).length)return[];const t=Object.entries(e);return this.filteredOptions=t.filter(([i,o])=>i!=="church_commitment"),this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e){const t=e.has("value"),i=e.has("options");(t||i)&&this._filterOptions()}}get isCommited(){return this.value?this.value.includes("church_commitment"):!1}render(){var e,t;return h`
    - ${this.filteredOptions.map(([i,o],a)=>p`h` ${this.renderError()}
    - `}handleIconClick(e){const{key:t,active:i}=e.detail;i?this._select(t):this._remove(e)}async handleToggleChange(e){const{field:t,newValue:i}=e.detail;i?this._select(t):this._remove(e)}}window.customElements.define("dt-church-health-circle",uo);class Ce extends Ze{static get properties(){return{...super.properties,postType:{type:String,reflect:!1},allowAdd:{type:Boolean}}}static get styles(){return[...super.styles,x` + `}handleIconClick(e){const{key:t,active:i}=e.detail;i?this._select(t):this._remove(e)}async handleToggleChange(e){const{field:t,newValue:i}=e.detail;i?this._select(t):this._remove(e)}}window.customElements.define("dt-church-health-circle",ho);class Ce extends Ze{static get properties(){return{...super.properties,postType:{type:String,reflect:!1},allowAdd:{type:Boolean}}}static get styles(){return[...super.styles,x` .selected-option a, .selected-option a:active, .selected-option a:visited { @@ -1253,7 +1253,7 @@ .input-group.allowAdd .icon-overlay { inset-inline-end: 3rem; } - `]}_addRecord(){const e=new CustomEvent("dt:add-new",{detail:{field:this.name,value:this.query}});this.dispatchEvent(e)}willUpdate(e){super.willUpdate(e),e&&e.has("open")&&this.open&&(!this.filteredOptions||!this.filteredOptions.length)&&this._filterOptions()}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.startsWith("-"));if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.id.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1;let r=a;r.length&&typeof r[0]=="string"&&(r=r.map(n=>({id:n}))),i.allOptions=r,i.filteredOptions=r.filter(n=>!e.includes(n.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_renderOption(e,t){return p` + `]}_addRecord(){const e=new CustomEvent("dt:add-new",{detail:{field:this.name,value:this.query}});this.dispatchEvent(e)}willUpdate(e){super.willUpdate(e),e&&e.has("open")&&this.open&&(!this.filteredOptions||!this.filteredOptions.length)&&this._filterOptions()}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.startsWith("-"));if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.id.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1;let r=a;r.length&&typeof r[0]=="string"&&(r=r.map(n=>({id:n}))),i.allOptions=r,i.filteredOptions=r.filter(n=>!e.includes(n.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_renderOption(e,t){return h`
  • - `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||typeof t=="string"&&t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}_renderSelectedOptions(){const e=this.options||this.allOptions;return(this.value||[]).filter(t=>!t.startsWith("-")).map(t=>{var a;let i=t;if(e){const r=e.filter(n=>n===t||n.id===t);r.length&&(i=r[0].label||r[0].id||t)}let o;if(!o&&((a=window==null?void 0:window.SHAREDFUNCTIONS)!=null&&a.createCustomFilter)){const r=window.SHAREDFUNCTIONS.createCustomFilter(this.name,[t]),n=this.label||this.name,l=[{id:`${this.name}_${t}`,name:`${n}: ${t}`}];o=window.SHAREDFUNCTIONS.create_url_for_list_query(this.postType,r,l)}return p` + `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||typeof t=="string"&&t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}_renderSelectedOptions(){const e=this.options||this.allOptions;return(this.value||[]).filter(t=>!t.startsWith("-")).map(t=>{var a;let i=t;if(e){const r=e.filter(n=>n===t||n.id===t);r.length&&(i=r[0].label||r[0].id||t)}let o;if(!o&&((a=window==null?void 0:window.SHAREDFUNCTIONS)!=null&&a.createCustomFilter)){const r=window.SHAREDFUNCTIONS.createCustomFilter(this.name,[t]),n=this.label||this.name,l=[{id:`${this.name}_${t}`,name:`${n}: ${t}`}];o=window.SHAREDFUNCTIONS.create_url_for_list_query(this.postType,r,l)}return h`
    - `})}render(){const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"};return p` + `})}render(){const e=this.optionListStyles;return h` ${this.labelTemplate()}
    - ${this.allowAdd?p``:null} -
      +
        ${this._renderOptions()}
      ${this.renderIcons()}
    - `}}window.customElements.define("dt-tags",Ce);class ho extends Ce{static get styles(){return[...super.styles,x` + `}}window.customElements.define("dt-tags",Ce);class po extends Ce{static get styles(){return[...super.styles,x` .selected-option a { border-inline-start: solid 3px transparent; } @@ -1358,7 +1358,7 @@ .invalid { border-color: var(--dt-form-border-color-alert, var(--alert-color)); } - `]}_clickOption(e){if(e.target&&e.target.value){const t=parseInt(e.target.value,10),i=this.filteredOptions.reduce((o,a)=>!o&&a.id==t?a:o,null);i&&this._select(i)}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]))}_remove(e){if(e.stopPropagation(),e.target&&e.target.dataset&&e.target.dataset.value){let t=e.target.dataset.value;const i=Number.parseInt(t);Number.isNaN(i)||(t=i);const o=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=(this.value||[]).map(a=>{const r={...a};return a.id===t&&(r.delete=!0),r}),o.detail.newValue=this.value,this.dispatchEvent(o),this.open&&this.shadowRoot.querySelector("input").focus(),this._validateRequired()}document.activeElement.blur()}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>i==null?void 0:i.id);if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1,i.filteredOptions=a.filter(r=>!e.includes(r.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.delete))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>p` + `]}_clickOption(e){if(e.target&&e.target.value){const t=parseInt(e.target.value,10),i=this.filteredOptions.reduce((o,a)=>!o&&a.id==t?a:o,null);i&&this._select(i)}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]))}_remove(e){if(e.stopPropagation(),e.target&&e.target.dataset&&e.target.dataset.value){let t=e.target.dataset.value;const i=Number.parseInt(t);Number.isNaN(i)||(t=i);const o=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=(this.value||[]).map(a=>{const r={...a};return a.id===t&&(r.delete=!0),r}),o.detail.newValue=this.value,this.dispatchEvent(o),this.open&&this.shadowRoot.querySelector("input").focus(),this._validateRequired()}document.activeElement.blur()}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>i==null?void 0:i.id);if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1,i.filteredOptions=a.filter(r=>!e.includes(r.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.delete))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>h`
    - `)}_renderOption(e,t){const i=p`circle-08 2Created using Figma`,o=e.status||{label:"",color:""};return p` + `)}_renderOption(e,t){const i=h`circle-08 2Created using Figma`,o=e.status||{label:"",color:""};return h`
  • - `}render(){const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"};return p` + `}render(){const e=this.optionListStyles;return h` ${this.labelTemplate()}
    - ${this.allowAdd?p``:null} -
      +
        ${this._renderOptions()}
      ${this.renderIcons()}
    - `}}window.customElements.define("dt-connection",ho);class po extends Ce{static get styles(){return[...super.styles,x` + `}}window.customElements.define("dt-connection",po);class fo extends Ce{static get styles(){return[...super.styles,x` .selected-option a { border-inline-start: solid 3px transparent; } @@ -1472,7 +1472,7 @@ li button svg use { fill: var(--dt-users-connection-icon-fill, var(--primary-color)); } - `]}static get properties(){return{...super.properties,single:{type:Boolean}}}_select(e){const t=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value}});if(this.value&&this.value.length){let i=!1,o=this.value.map(a=>{const r={...a};return a.id===e.id&&a.delete?(delete r.delete,i=!0):this.single&&!a.delete&&(r.delete=!0),r});i||o.push(e),this.single&&(o=o.filter(a=>!a.delete)),this.value=o}else this.value=[e];t.detail.newValue=this.value,this.open=!1,this.activeIndex=-1,this.canUpdate=!0,this.dispatchEvent(t),this._clearSearch()}_clickOption(e){if(e.target&&e.target.value){const t=parseInt(e.target.value,10),i=this.filteredOptions.reduce((o,a)=>!o&&a.id==t?a:o,null);i&&this._select(i),this.query=""}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="",this.query="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]),this.query="")}_remove(e){if(e.target&&e.target.dataset&&e.target.dataset.value){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value,remove:!0}});this.value=(this.value||[]).map(i=>{const o={...i};return i.id.toString()===e.target.dataset.value&&(o.delete=!0),o}),t.detail.newValue=this.value,this.dispatchEvent(t),this.open&&this.shadowRoot.querySelector("input").focus()}}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>Number(i==null?void 0:i.id));if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1,i.filteredOptions=a.filter(r=>!e.includes(r.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>p` + `]}static get properties(){return{...super.properties,single:{type:Boolean}}}_select(e){const t=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value}});if(this.value&&this.value.length){let i=!1,o=this.value.map(a=>{const r={...a};return a.id===e.id&&a.delete?(delete r.delete,i=!0):this.single&&!a.delete&&(r.delete=!0),r});i||o.push(e),this.single&&(o=o.filter(a=>!a.delete)),this.value=o}else this.value=[e];t.detail.newValue=this.value,this.open=!1,this.activeIndex=-1,this.canUpdate=!0,this.dispatchEvent(t),this._clearSearch()}_clickOption(e){if(e.target&&e.target.value){const t=parseInt(e.target.value,10),i=this.filteredOptions.reduce((o,a)=>!o&&a.id==t?a:o,null);i&&this._select(i),this.query=""}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="",this.query="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]),this.query="")}_remove(e){if(e.target&&e.target.dataset&&e.target.dataset.value){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value,remove:!0}});this.value=(this.value||[]).map(i=>{const o={...i};return i.id.toString()===e.target.dataset.value&&(o.delete=!0),o}),t.detail.newValue=this.value,this.dispatchEvent(t),this.open&&this.shadowRoot.querySelector("input").focus()}}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>Number(i==null?void 0:i.id));if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,postType:this.postType,query:this.query,onSuccess:a=>{i.loading=!1,i.filteredOptions=a.filter(r=>!e.includes(r.id))},onError:a=>{console.warn(a),i.loading=!1,this.canUpdate=!1}}});this.dispatchEvent(o)}return this.filteredOptions}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>h` - `)}_renderOption(e,t){const i=e.avatar?p`${e.label}`:p``;return p` + />`:h``;return h`
  • - `}}window.customElements.define("dt-users-connection",po);class fo extends N{static get styles(){return x` + `}}window.customElements.define("dt-users-connection",fo);class bo extends N{static get styles(){return x` :root { font-size: inherit; --dt-copy-text-color: #575757; @@ -1538,8 +1538,8 @@ :host([dir='rtl']) .copy_icon { transform: translate(1.5em, -0.3125em); } - `}static get properties(){return{value:{type:String},success:{type:Boolean},error:{type:Boolean}}}get inputStyles(){return this.success?{"--dt-text-border-color":"var(--copy-text-success-color, var(--success-color))","--dt-form-text-color":"var( --copy-text-success-color, var(--success-color))",color:"var( --copy-text-success-color, var(--success-color))"}:this.error?{"---dt-text-border-color":"var(--copy-text-alert-color, var(--alert-color))","--dt-form-text-color":"var(--copy-text-alert-color, var(--alert-color))"}:{}}get icon(){return this.success?"ic:round-check":"ic:round-content-copy"}async copy(){try{this.success=!1,this.error=!1,await navigator.clipboard.writeText(this.value),this.success=!0,this.error=!1}catch(e){console.log(e),this.success=!1,this.error=!0}}render(){return p` -
    + `}static get properties(){return{value:{type:String},success:{type:Boolean},error:{type:Boolean}}}get inputStyles(){return this.success?{"--dt-text-border-color":"var(--copy-text-success-color, var(--success-color))","--dt-form-text-color":"var( --copy-text-success-color, var(--success-color))",color:"var( --copy-text-success-color, var(--success-color))"}:this.error?{"---dt-text-border-color":"var(--copy-text-alert-color, var(--alert-color))","--dt-form-text-color":"var(--copy-text-alert-color, var(--alert-color))"}:{}}get icon(){return this.success?"ic:round-check":"ic:round-content-copy"}async copy(){try{this.success=!1,this.error=!1,await navigator.clipboard.writeText(this.value),this.success=!0,this.error=!1}catch(e){console.log(e),this.success=!1,this.error=!0}}render(){return h` +
    - `}}window.customElements.define("dt-copy-text",fo);class jt extends M{static get styles(){return[...super.styles,x` + `}}window.customElements.define("dt-copy-text",bo);class jt extends M{static get styles(){return[...super.styles,x` input { color: var(--dt-date-text-color, var(--dt-form-text-color, #000)); appearance: none; @@ -1675,7 +1675,7 @@ .icon-overlay { inset-inline-end: 5rem; } - `]}static get properties(){return{...super.properties,value:{type:String,reflect:!0},timestamp:{converter:e=>{let t=Number(e);if(t<1e12&&(t*=1e3),t)return t},reflect:!0}}}updateTimestamp(e){const t=e?new Date(e).getTime():0,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value,newValue:e}});this.timestamp=t,this.value=e,this._setFormValue(e),this.dispatchEvent(i)}_change(e){this.updateTimestamp(e.target.value)}clearInput(){this.updateTimestamp("")}showDatePicker(){this.shadowRoot.querySelector("input").showPicker()}_validateRequired(){const{value:e}=this;this.required&&!e?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid,disabled:this.disabled}}get fieldContainerClasses(){return{"field-container":!0,invalid:this.touched&&this.invalid}}render(){return this.timestamp?this.value=new Date(this.timestamp).toISOString().substring(0,10):this.value&&(this.timestamp=new Date(this.value).getTime()),p` + `]}static get properties(){return{...super.properties,value:{type:String,reflect:!0},timestamp:{converter:e=>{let t=Number(e);if(t<1e12&&(t*=1e3),t)return t},reflect:!0}}}updateTimestamp(e){const t=e?new Date(e).getTime():0,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value,newValue:e}});this.timestamp=t,this.value=e,this._setFormValue(e),this.dispatchEvent(i)}_change(e){this.updateTimestamp(e.target.value)}clearInput(){this.updateTimestamp("")}showDatePicker(){this.shadowRoot.querySelector("input").showPicker()}_validateRequired(){const{value:e}=this;this.required&&!e?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid,disabled:this.disabled}}get fieldContainerClasses(){return{"field-container":!0,invalid:this.touched&&this.invalid}}render(){return this.timestamp?this.value=new Date(this.timestamp).toISOString().substring(0,10):this.value&&(this.timestamp=new Date(this.value).getTime()),h` ${this.labelTemplate()}
    @@ -1709,11 +1709,11 @@ ${this.renderIcons()}
    - `}reset(){this.updateTimestamp(""),super.reset()}}window.customElements.define("dt-date",jt);class bo extends jt{static get styles(){return[...super.styles,x` + `}reset(){this.updateTimestamp(""),super.reset()}}window.customElements.define("dt-date",jt);class mo extends jt{static get styles(){return[...super.styles,x` input[type='datetime-local'] { max-width: calc(100% - 22px - 1rem); } - `]}static get properties(){return{...super.properties,tzoffset:{type:Number}}}constructor(){super(),this.tzoffset=new Date().getTimezoneOffset()*6e4}render(){return this.timestamp?this.value=new Date(this.timestamp-this.tzoffset).toISOString().substring(0,16):this.value&&(this.timestamp=new Date(this.value).getTime()),p` + `]}static get properties(){return{...super.properties,tzoffset:{type:Number}}}constructor(){super(),this.tzoffset=new Date().getTimezoneOffset()*6e4}render(){return this.timestamp?this.value=new Date(this.timestamp-this.tzoffset).toISOString().substring(0,16):this.value&&(this.timestamp=new Date(this.value).getTime()),h` ${this.labelTemplate()}
    @@ -1747,11 +1747,11 @@ ${this.renderIcons()}
    - `}}window.customElements.define("dt-datetime",bo);/** + `}}window.customElements.define("dt-datetime",mo);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function*Da(s,e){if(s!==void 0){let t=0;for(const i of s)yield e(i,t++)}}class mo extends Ce{static get properties(){return{...super.properties,filters:{type:Array}}}static get styles(){return[...super.styles,x` + */function*Ra(s,e){if(s!==void 0){let t=0;for(const i of s)yield e(i,t++)}}class go extends Ce{static get properties(){return{...super.properties,filters:{type:Array}}}static get styles(){return[...super.styles,x` .input-group { display: flex; } @@ -1772,7 +1772,7 @@ 8px ); } - `]}_clickOption(e){if(e.target&&e.target.value){const t=e.target.value,i=this.filteredOptions.reduce((o,a)=>!o&&a.id===t?a:o,null);this._select(i)}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]))}_remove(e){if(e.target&&e.target.dataset&&e.target.dataset.value){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=(this.value||[]).map(i=>{const o={...i};return i.id.toString()===e.target.dataset.value&&(o.delete=!0),o}),t.detail.newValue=this.value,this.dispatchEvent(t),this.open&&this.shadowRoot.querySelector("input").focus()}}updated(){super.updated();const e=this.shadowRoot.querySelector(".input-group"),t=e.style.getPropertyValue("--select-width"),i=this.shadowRoot.querySelector("select");!t&&(i==null?void 0:i.clientWidth)>0&&e.style.setProperty("--select-width",`${i.clientWidth}px`)}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>i==null?void 0:i.id.toString());if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=this.shadowRoot.querySelector("select"),a=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,query:this.query,filter:o==null?void 0:o.value,onSuccess:r=>{i.loading=!1,i.filteredOptions=r.filter(n=>!e.includes(n.id))},onError:r=>{console.warn(r),i.loading=!1}}});this.dispatchEvent(a)}return this.filteredOptions}_renderOption(e,t){return p` + `]}_clickOption(e){if(e.target&&e.target.value){const t=e.target.value,i=this.filteredOptions.reduce((o,a)=>!o&&a.id===t?a:o,null);this._select(i)}}_clickAddNew(e){var t,i;if(e.target){this._select({id:(t=e.target.dataset)==null?void 0:t.label,label:(i=e.target.dataset)==null?void 0:i.label,isNew:!0});const o=this.shadowRoot.querySelector("input");o&&(o.value="")}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.filteredOptions.length?this._select({id:this.query,label:this.query,isNew:!0}):this._select(this.filteredOptions[this.activeIndex]))}_remove(e){if(e.target&&e.target.dataset&&e.target.dataset.value){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=(this.value||[]).map(i=>{const o={...i};return i.id.toString()===e.target.dataset.value&&(o.delete=!0),o}),t.detail.newValue=this.value,this.dispatchEvent(t),this.open&&this.shadowRoot.querySelector("input").focus()}}updated(e){super.updated(e);const t=this.shadowRoot.querySelector(".input-group"),i=t.style.getPropertyValue("--select-width"),o=this.shadowRoot.querySelector("select");!i&&(o==null?void 0:o.clientWidth)>0&&t.style.setProperty("--select-width",`${o.clientWidth}px`)}_filterOptions(){var t;const e=(this.value||[]).filter(i=>!i.delete).map(i=>i==null?void 0:i.id.toString());if((t=this.options)!=null&&t.length)this.filteredOptions=(this.options||[]).filter(i=>!e.includes(i.id)&&(!this.query||i.label.toLocaleLowerCase().includes(this.query.toLocaleLowerCase())));else if(this.open||this.canUpdate){this.loading=!0,this.filteredOptions=[];const i=this,o=this.shadowRoot.querySelector("select"),a=new CustomEvent("dt:get-data",{bubbles:!0,detail:{field:this.name,query:this.query,filter:o==null?void 0:o.value,onSuccess:r=>{i.loading=!1,i.filteredOptions=r.filter(n=>!e.includes(n.id))},onError:r=>{console.warn(r),i.loading=!1}}});this.dispatchEvent(a)}return this.filteredOptions}_renderOption(e,t){return h`
  • - `}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>p` + `}_renderSelectedOptions(){return(this.value||[]).filter(e=>!e.delete).map(e=>h`
    - `)}render(){const e={display:this.open?"block":"none",top:`${this.containerHeight}px`};return p` + `)}render(){const e=this.optionListStyles;return h` ${this.labelTemplate()}
    @@ -1831,14 +1831,14 @@ ?disabled="${this.disabled}" @change="${this._filterOptions}" > - ${Da(this.filters,t=>p``)} + ${Ra(this.filters,t=>h``)} -
      +
        ${this._renderOptions()}
      ${this.renderIconInvalid()} ${this.renderError()}
    - `}}window.customElements.define("dt-location",mo);class Ra{constructor(e){this.token=e}async searchPlaces(e,t="en"){const i=new URLSearchParams({types:["country","region","postcode","district","place","locality","neighborhood","address"],limit:6,access_token:this.token,language:t}),o={method:"GET",headers:{"Content-Type":"application/json"}},a=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(e)}.json?${i}`,n=await(await fetch(a,o)).json();return n==null?void 0:n.features}async reverseGeocode(e,t,i="en"){const o=new URLSearchParams({types:["country","region","postcode","district","place","locality","neighborhood","address"],access_token:this.token,language:i}),a={method:"GET",headers:{"Content-Type":"application/json"}},r=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(e)},${encodeURI(t)}.json?${o}`,l=await(await fetch(r,a)).json();return l==null?void 0:l.features}}class Na{constructor(e,t,i){var o,a,r;if(this.token=e,this.window=t,!((r=(a=(o=t.google)==null?void 0:o.maps)==null?void 0:a.places)!=null&&r.AutocompleteService)){const n=i.createElement("script");n.src=`https://maps.googleapis.com/maps/api/js?libraries=places&key=${e}`,i.body.appendChild(n)}}async getPlacePredictions(e,t="en"){try{return await this._getPlacePredictionsLegacy(e,t)}catch(i){const o=await this._getPlaceSuggestionsRest(e,t);if(o)return o;throw{message:i}}}async _getPlacePredictionsLegacy(e,t="en"){return this.window.google?new Promise((i,o)=>{const a=new this.window.google.maps.places.AutocompleteService;window.gm_authFailure=function(){o("Google Maps API Key authentication failed")},a.getPlacePredictions({input:e,language:t},(r,n)=>{n!=="OK"?o(n):i(r)})}):null}async _getPlaceSuggestionsRest(e,t="en"){const i="https://places.googleapis.com/v1/places:autocomplete?key="+encodeURIComponent(this.token),a=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e})}),r=await a.json();if(!a.ok&&r.error)throw r.error;return(Array.isArray(r&&r.suggestions)?r.suggestions:[]).map(u=>u&&u.placePrediction?u.placePrediction:null).filter(Boolean).map(u=>{const h=u.placeId||(u.place?String(u.place).replace("places/",""):null),g=u.text&&u.text.text||[u.structuredFormat&&u.structuredFormat.mainText&&u.structuredFormat.mainText.text,u.structuredFormat&&u.structuredFormat.secondaryText&&u.structuredFormat.secondaryText.text].filter(Boolean).join(", ");return h&&g?{description:g,place_id:h}:null}).filter(Boolean)}async getPlaceDetails(e,t="en"){let i=null;if(this.window.google){const o=new window.google.maps.Geocoder;try{const{results:a}=await o.geocode({placeId:e.place_id,language:t}),r=a[0];i={lng:r.geometry.location.lng(),lat:r.geometry.location.lat(),level:this.convert_level(r.types[0]),label:e.description||r.formatted_address}}catch(a){i={error:a}}}return i}async reverseGeocode(e,t,i="en"){const a=`https://maps.googleapis.com/maps/api/geocode/json?${new URLSearchParams({key:this.token,latlng:`${t},${e}`,language:i,result_type:["point_of_interest","establishment","premise","street_address","neighborhood","sublocality","locality","colloquial_area","political","country"].join("|")})}`,n=await(await fetch(a,{method:"GET"})).json();return n==null?void 0:n.results}convert_level(e){switch(e){case"administrative_area_level_0":e="admin0";break;case"administrative_area_level_1":e="admin1";break;case"administrative_area_level_2":e="admin2";break;case"administrative_area_level_3":e="admin3";break;case"administrative_area_level_4":e="admin4";break;case"administrative_area_level_5":e="admin5";break}return e}}class go extends N{static get styles(){return x` + `}}window.customElements.define("dt-location",go);class Na{constructor(e){this.token=e}async searchPlaces(e,t="en"){const i=new URLSearchParams({types:["country","region","postcode","district","place","locality","neighborhood","address"],limit:6,access_token:this.token,language:t}),o={method:"GET",headers:{"Content-Type":"application/json"}},a=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(e)}.json?${i}`,n=await(await fetch(a,o)).json();return n==null?void 0:n.features}async reverseGeocode(e,t,i="en"){const o=new URLSearchParams({types:["country","region","postcode","district","place","locality","neighborhood","address"],access_token:this.token,language:i}),a={method:"GET",headers:{"Content-Type":"application/json"}},r=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURI(e)},${encodeURI(t)}.json?${o}`,l=await(await fetch(r,a)).json();return l==null?void 0:l.features}}class qa{constructor(e,t,i){var o,a,r;if(this.token=e,this.window=t,!((r=(a=(o=t.google)==null?void 0:o.maps)==null?void 0:a.places)!=null&&r.AutocompleteService)){const n=i.createElement("script");n.src=`https://maps.googleapis.com/maps/api/js?libraries=places&key=${e}`,i.body.appendChild(n)}}async getPlacePredictions(e,t="en"){try{return await this._getPlacePredictionsLegacy(e,t)}catch(i){const o=await this._getPlaceSuggestionsRest(e,t);if(o)return o;throw{message:i}}}async _getPlacePredictionsLegacy(e,t="en"){return this.window.google?new Promise((i,o)=>{const a=new this.window.google.maps.places.AutocompleteService;window.gm_authFailure=function(){o("Google Maps API Key authentication failed")},a.getPlacePredictions({input:e,language:t},(r,n)=>{n!=="OK"?o(n):i(r)})}):null}async _getPlaceSuggestionsRest(e,t="en"){const i="https://places.googleapis.com/v1/places:autocomplete?key="+encodeURIComponent(this.token),a=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e})}),r=await a.json();if(!a.ok&&r.error)throw r.error;return(Array.isArray(r&&r.suggestions)?r.suggestions:[]).map(u=>u&&u.placePrediction?u.placePrediction:null).filter(Boolean).map(u=>{const p=u.placeId||(u.place?String(u.place).replace("places/",""):null),g=u.text&&u.text.text||[u.structuredFormat&&u.structuredFormat.mainText&&u.structuredFormat.mainText.text,u.structuredFormat&&u.structuredFormat.secondaryText&&u.structuredFormat.secondaryText.text].filter(Boolean).join(", ");return p&&g?{description:g,place_id:p}:null}).filter(Boolean)}async getPlaceDetails(e,t="en"){let i=null;if(this.window.google){const o=new window.google.maps.Geocoder;try{const{results:a}=await o.geocode({placeId:e.place_id,language:t}),r=a[0];i={lng:r.geometry.location.lng(),lat:r.geometry.location.lat(),level:this.convert_level(r.types[0]),label:e.description||r.formatted_address}}catch(a){i={error:a}}}return i}async reverseGeocode(e,t,i="en"){const a=`https://maps.googleapis.com/maps/api/geocode/json?${new URLSearchParams({key:this.token,latlng:`${t},${e}`,language:i,result_type:["point_of_interest","establishment","premise","street_address","neighborhood","sublocality","locality","colloquial_area","political","country"].join("|")})}`,n=await(await fetch(a,{method:"GET"})).json();return n==null?void 0:n.results}convert_level(e){switch(e){case"administrative_area_level_0":e="admin0";break;case"administrative_area_level_1":e="admin1";break;case"administrative_area_level_2":e="admin2";break;case"administrative_area_level_3":e="admin3";break;case"administrative_area_level_4":e="admin4";break;case"administrative_area_level_5":e="admin5";break}return e}}class vo extends N{static get styles(){return x` :host { display: block; font-family: var(--font-family); @@ -2056,12 +2056,12 @@ /* Styles for the content inside the named slot */ font-size: 15px;; } - `}static get properties(){return{title:{type:String},context:{type:String},isHelp:{type:Boolean},isOpen:{type:Boolean},hideHeader:{type:Boolean},hideButton:{type:Boolean},buttonClass:{type:Object},buttonStyle:{type:Object},headerClass:{type:Object},imageSrc:{type:String},imageStyle:{type:Object},tileLabel:{type:String},buttonLabel:{type:String},dropdownListImg:{type:String},submitButton:{type:Boolean},closeButton:{type:Boolean},bottom:{type:Boolean}}}constructor(){super(),this.context="default",this.addEventListener("open",()=>this._openModal()),this.addEventListener("close",()=>this._closeModal())}_openModal(){this.isOpen=!0,this.shadowRoot.querySelector("dialog").showModal(),document.querySelector("body").style.overflow="hidden"}get formattedTitle(){if(!this.title)return"";const e=this.title.replace(/_/g," ");return e.charAt(0).toUpperCase()+e.slice(1)}_dialogHeader(e){return this.hideHeader?p``:p` + `}static get properties(){return{title:{type:String},context:{type:String},isHelp:{type:Boolean},isOpen:{type:Boolean},hideHeader:{type:Boolean},hideButton:{type:Boolean},buttonClass:{type:Object},buttonStyle:{type:Object},headerClass:{type:Object},imageSrc:{type:String},imageStyle:{type:Object},tileLabel:{type:String},buttonLabel:{type:String},dropdownListImg:{type:String},submitButton:{type:Boolean},closeButton:{type:Boolean},bottom:{type:Boolean}}}constructor(){super(),this.context="default",this.addEventListener("open",()=>this._openModal()),this.addEventListener("close",()=>this._closeModal())}_openModal(){this.isOpen=!0,this.shadowRoot.querySelector("dialog").showModal(),document.querySelector("body").style.overflow="hidden"}get formattedTitle(){if(!this.title)return"";const e=this.title.replace(/_/g," ");return e.charAt(0).toUpperCase()+e.slice(1)}_dialogHeader(e){return this.hideHeader?h``:h`

    ${this.formattedTitle}

    - `}_closeModal(){this.isOpen=!1,this.shadowRoot.querySelector("dialog").close(),document.querySelector("body").style.overflow="initial"}_cancelModal(){this._triggerClose("cancel")}_triggerClose(e){this.dispatchEvent(new CustomEvent("close",{detail:{action:e}}))}_dialogClick(e){if(e.target.tagName!=="DIALOG")return;const t=e.target.getBoundingClientRect();(t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width)===!1&&this._cancelModal()}_dialogKeypress(e){e.key==="Escape"&&this._cancelModal()}_helpMore(){return this.isHelp?p` + `}_closeModal(){this.isOpen=!1,this.shadowRoot.querySelector("dialog").close(),document.querySelector("body").style.overflow="initial"}_cancelModal(){this._triggerClose("cancel")}_triggerClose(e){this.dispatchEvent(new CustomEvent("close",{detail:{action:e}}))}_dialogClick(e){if(e.target.tagName!=="DIALOG")return;const t=e.target.getBoundingClientRect();(t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width)===!1&&this._cancelModal()}_dialogKeypress(e){e.key==="Escape"&&this._cancelModal()}_helpMore(){return this.isHelp?h`
    - `:null}firstUpdated(){this.isOpen&&this._openModal()}_onButtonClick(){this._triggerClose("button")}get classes(){return{...this.headerClass,"no-header":this.hideHeader,bottom:this.bottom}}render(){const e=p` + `:null}firstUpdated(){this.isOpen&&this._openModal()}_onButtonClick(){this._triggerClose("button")}get classes(){return{...this.headerClass,"no-header":this.hideHeader,bottom:this.bottom}}render(){const e=h` xmlns="http://www.w3.org/2000/svg"> - `;return p` + `;return h`
    - ${this.hideButton?null:p` + ${this.hideButton?null:h` `} - `}}window.customElements.define("dt-modal",go);class vo extends N{static get properties(){return{...super.properties,title:{type:String},isOpen:{type:Boolean},canEdit:{type:Boolean,state:!0},metadata:{type:Object},center:{type:Array},mapboxToken:{type:String,attribute:"mapbox-token"}}}static get styles(){return[x` + `}}window.customElements.define("dt-modal",vo);class yo extends N{static get properties(){return{...super.properties,title:{type:String},isOpen:{type:Boolean},canEdit:{type:Boolean,state:!0},metadata:{type:Object},center:{type:Array},mapboxToken:{type:String,attribute:"mapbox-token"}}}static get styles(){return[x` .map { width: 100%; min-width: 50vw; min-height: 50dvb; } - `]}constructor(){super(),this.addEventListener("open",e=>{this.shadowRoot.querySelector("dt-modal").dispatchEvent(new Event("open")),this.isOpen=!0}),this.addEventListener("close",e=>{this.shadowRoot.querySelector("dt-modal").dispatchEvent(new Event("close")),this.isOpen=!1})}connectedCallback(){if(super.connectedCallback(),this.canEdit=!this.metadata,window.mapboxgl)this.initMap();else{const e=document.createElement("script");e.src="https://api.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.js",e.onload=this.initMap.bind(this),document.body.appendChild(e)}}initMap(){if(!this.isOpen||!window.mapboxgl||!this.mapboxToken)return;const e=this.shadowRoot.querySelector("#map");if(e&&!this.map){this.map=new window.mapboxgl.Map({accessToken:this.mapboxToken,container:e,style:"mapbox://styles/mapbox/streets-v12",minZoom:1}),this.map.on("load",()=>this.map.resize()),this.center&&this.center.length&&(this.map.setCenter(this.center),this.map.setZoom(15));const t=new mapboxgl.NavigationControl;this.map.addControl(t,"bottom-right"),this.addPinFromMetadata(),this.map.on("click",i=>{this.canEdit&&(this.marker?this.marker.setLngLat(i.lngLat):this.marker=new mapboxgl.Marker().setLngLat(i.lngLat).addTo(this.map))})}}addPinFromMetadata(){if(this.metadata){const{lng:e,lat:t,level:i}=this.metadata;let o=15;i==="admin0"?o=3:i==="admin1"?o=6:i==="admin2"&&(o=10),this.map&&(this.map.setCenter([e,t]),this.map.setZoom(o),this.marker=new mapboxgl.Marker().setLngLat([e,t]).addTo(this.map))}}updated(e){window.mapboxgl&&(e.has("metadata")&&this.metadata&&this.metadata.lat&&this.addPinFromMetadata(),e.has("isOpen")&&this.isOpen&&this.initMap())}onClose(e){var t;((t=e==null?void 0:e.detail)==null?void 0:t.action)==="button"&&this.marker&&this.dispatchEvent(new CustomEvent("submit",{detail:{location:this.marker.getLngLat()}}))}render(){var e;return p` + `]}constructor(){super(),this.addEventListener("open",e=>{this.shadowRoot.querySelector("dt-modal").dispatchEvent(new Event("open")),this.isOpen=!0}),this.addEventListener("close",e=>{this.shadowRoot.querySelector("dt-modal").dispatchEvent(new Event("close")),this.isOpen=!1})}connectedCallback(){if(super.connectedCallback(),this.canEdit=!this.metadata,window.mapboxgl)this.initMap();else{const e=document.createElement("script");e.src="https://api.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.js",e.onload=this.initMap.bind(this),document.body.appendChild(e)}}initMap(){if(!this.isOpen||!window.mapboxgl||!this.mapboxToken)return;const e=this.shadowRoot.querySelector("#map");if(e&&!this.map){this.map=new window.mapboxgl.Map({accessToken:this.mapboxToken,container:e,style:"mapbox://styles/mapbox/streets-v12",minZoom:1}),this.map.on("load",()=>this.map.resize()),this.center&&this.center.length&&(this.map.setCenter(this.center),this.map.setZoom(15));const t=new mapboxgl.NavigationControl;this.map.addControl(t,"bottom-right"),this.addPinFromMetadata(),this.map.on("click",i=>{this.canEdit&&(this.marker?this.marker.setLngLat(i.lngLat):this.marker=new mapboxgl.Marker().setLngLat(i.lngLat).addTo(this.map))})}}addPinFromMetadata(){if(this.metadata){const{lng:e,lat:t,level:i}=this.metadata;let o=15;i==="admin0"?o=3:i==="admin1"?o=6:i==="admin2"&&(o=10),this.map&&(this.map.setCenter([e,t]),this.map.setZoom(o),this.marker=new mapboxgl.Marker().setLngLat([e,t]).addTo(this.map))}}updated(e){window.mapboxgl&&(e.has("metadata")&&this.metadata&&this.metadata.lat&&this.addPinFromMetadata(),e.has("isOpen")&&this.isOpen&&this.initMap())}onClose(e){var t;((t=e==null?void 0:e.detail)==null?void 0:t.action)==="button"&&this.marker&&this.dispatchEvent(new CustomEvent("submit",{detail:{location:this.marker.getLngLat()}}))}render(){var e;return h`
    - ${this.canEdit?p`
    ${R("Save")}
    `:null} + ${this.canEdit?h`
    ${R("Save")}
    `:null} - `}}window.customElements.define("dt-map-modal",vo);class qa extends N{static get properties(){return{id:{type:String,reflect:!0},placeholder:{type:String},mapboxToken:{type:String,attribute:"mapbox-token"},googleToken:{type:String,attribute:"google-token"},metadata:{type:Object},disabled:{type:Boolean},open:{type:Boolean,state:!0},query:{type:String,state:!0},activeIndex:{type:Number,state:!0},containerHeight:{type:Number,state:!0},loading:{type:Boolean},saved:{type:Boolean},invalid:{type:Boolean},filteredOptions:{type:Array,state:!0}}}static get styles(){return[...super.styles,x` + `}}window.customElements.define("dt-map-modal",yo);class Ua extends N{static get properties(){return{id:{type:String,reflect:!0},placeholder:{type:String},mapboxToken:{type:String,attribute:"mapbox-token"},googleToken:{type:String,attribute:"google-token"},metadata:{type:Object},disabled:{type:Boolean},open:{type:Boolean,state:!0},query:{type:String,state:!0},activeIndex:{type:Number,state:!0},containerHeight:{type:Number,state:!0},loading:{type:Boolean},saved:{type:Boolean},invalid:{type:Boolean},filteredOptions:{type:Array,state:!0}}}static get styles(){return[...super.styles,x` :host { --dt-location-map-border-color: var(--dt-form-border-color, #fefefe); position: relative; @@ -2390,7 +2390,7 @@ opacity: 0; animation: fadeOut 4s; } - `]}constructor(){super(),this.activeIndex=-1,this.filteredOptions=[],this.detectTap=!1,this.debounceTimer=null}connectedCallback(){super.connectedCallback(),this.addEventListener("autofocus",async()=>{await this.updateComplete;const e=this.shadowRoot.querySelector("input");e&&e.focus()}),this.mapboxToken&&(this.mapboxService=new Ra(this.mapboxToken))}firstUpdated(){var e;this.googleToken&&!((e=this.metadata)!=null&&e.lat)&&(this.googleGeocodeService=new Na(this.googleToken,window,document))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("autofocus",this.handleAutofocus)}updated(){this._scrollOptionListToActive();const e=this.shadowRoot.querySelector(".input-group");e.style.getPropertyValue("--container-width")||e.style.setProperty("--container-width",`${e.clientWidth}px`)}_scrollOptionListToActive(){const e=this.shadowRoot.querySelector(".option-list"),t=this.shadowRoot.querySelector("button.active");if(e&&t){const i=t.offsetTop,o=t.offsetTop+t.clientHeight,a=e.scrollTop,r=e.scrollTop+e.clientHeight;o>r?e.scrollTo({top:o-e.clientHeight,behavior:"smooth"}):i-1&&(this.activeIndex({label:t.description,place_id:t.place_id,source:"user",raw:t})),this.loading=!1}catch(e){console.error(e),this.error=e.message||"An error occurred while searching for locations.",this.loading=!1;return}}else if(this.mapboxToken&&this.mapboxService){this.saved=!1,this.loading=!0;const e=await this.mapboxService.searchPlaces(this.query,this.locale);this.filteredOptions=e.map(t=>({lng:t.center[0],lat:t.center[1],level:t.place_type[0],label:t.place_name,source:"user"})),this.loading=!1}}return this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e&&(e.has("query")&&(this.error=!1,clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this._filterOptions(),300)),!this.containerHeight&&this.shadowRoot.children&&this.shadowRoot.children.length)){const i=this.shadowRoot.querySelector(".input-group");i&&(this.containerHeight=i.offsetHeight)}}_change(){}_delete(){const e={detail:{metadata:this.metadata},bubbles:!1};this.dispatchEvent(new CustomEvent("delete",e))}_openMapModal(){this.shadowRoot.querySelector("dt-map-modal").dispatchEvent(new Event("open"))}async _onMapModalSubmit(e){var t,i;if((i=(t=e==null?void 0:e.detail)==null?void 0:t.location)!=null&&i.lat){const{location:o}=e==null?void 0:e.detail,{lat:a,lng:r}=o;if(this.googleGeocodeService){const n=await this.googleGeocodeService.reverseGeocode(r,a,this.locale);if(n&&n.length){const l=n[0];this._select({lng:l.geometry.location.lng,lat:l.geometry.location.lat,level:l.types&&l.types.length?l.types[0]:null,label:l.formatted_address,source:"user"})}}else if(this.mapboxService){const n=await this.mapboxService.reverseGeocode(r,a,this.locale);if(n&&n.length){const l=n[0];this._select({lng:l.center[0],lat:l.center[1],level:l.place_type[0],label:l.place_name,source:"user"})}}}}_renderOption(e,t,i){return p` + `]}constructor(){super(),this.activeIndex=-1,this.filteredOptions=[],this.detectTap=!1,this.debounceTimer=null}connectedCallback(){super.connectedCallback(),this.addEventListener("autofocus",async()=>{await this.updateComplete;const e=this.shadowRoot.querySelector("input");e&&e.focus()}),this.mapboxToken&&(this.mapboxService=new Na(this.mapboxToken))}firstUpdated(){var e;this.googleToken&&!((e=this.metadata)!=null&&e.lat)&&(this.googleGeocodeService=new qa(this.googleToken,window,document))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("autofocus",this.handleAutofocus)}updated(){this._scrollOptionListToActive();const e=this.shadowRoot.querySelector(".input-group");e.style.getPropertyValue("--container-width")||e.style.setProperty("--container-width",`${e.clientWidth}px`)}_scrollOptionListToActive(){const e=this.shadowRoot.querySelector(".option-list"),t=this.shadowRoot.querySelector("button.active");if(e&&t){const i=t.offsetTop,o=t.offsetTop+t.clientHeight,a=e.scrollTop,r=e.scrollTop+e.clientHeight;o>r?e.scrollTo({top:o-e.clientHeight,behavior:"smooth"}):i-1&&(this.activeIndex({label:t.description,place_id:t.place_id,source:"user",raw:t})),this.loading=!1}catch(e){console.error(e),this.error=e.message||"An error occurred while searching for locations.",this.loading=!1;return}}else if(this.mapboxToken&&this.mapboxService){this.saved=!1,this.loading=!0;const e=await this.mapboxService.searchPlaces(this.query,this.locale);this.filteredOptions=e.map(t=>({lng:t.center[0],lat:t.center[1],level:t.place_type[0],label:t.place_name,source:"user"})),this.loading=!1}}return this.filteredOptions}willUpdate(e){if(super.willUpdate(e),e&&(e.has("query")&&(this.error=!1,clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this._filterOptions(),300)),!this.containerHeight&&this.shadowRoot.children&&this.shadowRoot.children.length)){const i=this.shadowRoot.querySelector(".input-group");i&&(this.containerHeight=i.offsetHeight)}}_change(){}_delete(){const e={detail:{metadata:this.metadata},bubbles:!1};this.dispatchEvent(new CustomEvent("delete",e))}_openMapModal(){this.shadowRoot.querySelector("dt-map-modal").dispatchEvent(new Event("open"))}async _onMapModalSubmit(e){var t,i;if((i=(t=e==null?void 0:e.detail)==null?void 0:t.location)!=null&&i.lat){const{location:o}=e==null?void 0:e.detail,{lat:a,lng:r}=o;if(this.googleGeocodeService){const n=await this.googleGeocodeService.reverseGeocode(r,a,this.locale);if(n&&n.length){const l=n[0];this._select({lng:l.geometry.location.lng,lat:l.geometry.location.lat,level:l.types&&l.types.length?l.types[0]:null,label:l.formatted_address,source:"user"})}}else if(this.mapboxService){const n=await this.mapboxService.reverseGeocode(r,a,this.locale);if(n&&n.length){const l=n[0];this._select({lng:l.center[0],lat:l.center[1],level:l.place_type[0],label:l.place_name,source:"user"})}}}}_renderOption(e,t,i){return h`
  • - `}_renderOptions(){const e=[];return this.filteredOptions.length?e.push(...this.filteredOptions.map((t,i)=>this._renderOption(t,i))):this.loading?e.push(p`
  • ${R("Loading...")}
  • `):e.push(p`
  • ${R("No Data Available")}
  • `),e.push(this._renderOption({value:this.query,label:this.query},(this.filteredOptions||[]).length,p`${R("Use")}: "${this.query}"`)),e}get classes(){return{"field-container":!0,invalid:this.invalid}}render(){var o,a,r,n;const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"},t=!!((o=this.metadata)!=null&&o.label),i=((a=this.metadata)==null?void 0:a.lat)&&((r=this.metadata)==null?void 0:r.lng);return p` + `}_renderOptions(){const e=[];return this.filteredOptions.length?e.push(...this.filteredOptions.map((t,i)=>this._renderOption(t,i))):this.loading?e.push(h`
  • ${R("Loading...")}
  • `):e.push(h`
  • ${R("No Data Available")}
  • `),e.push(this._renderOption({value:this.query,label:this.query},(this.filteredOptions||[]).length,h`${R("Use")}: "${this.query}"`)),e}get classes(){return{"field-container":!0,invalid:this.invalid}}render(){var o,a,r,n;const e={display:this.open?"block":"none",top:this.containerHeight?`${this.containerHeight}px`:"2.5rem"},t=!!((o=this.metadata)!=null&&o.label),i=((a=this.metadata)==null?void 0:a.lat)&&((r=this.metadata)==null?void 0:r.lng);return h`
    - ${t&&i?p` + ${t&&i?h` `:null} - ${t?p` + ${t?h` - `:p` + `:h`
    -
      +
        ${this._renderOptions()}
      - ${this.loading?p``:null} ${this.renderIconSaved(i)} @@ -2467,9 +2467,9 @@ mapbox-token="${this.mapboxToken}" @submit=${this._onMapModalSubmit} > - `}renderIconSaved(e){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?p`{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?h``:null}}window.customElements.define("dt-location-map-item",qa);class yo extends M{static get properties(){return{...super.properties,placeholder:{type:String},value:{type:Array},locations:{type:Array,state:!0},open:{type:Boolean,state:!0},limit:{type:Number,attribute:"limit"},mapboxToken:{type:String,attribute:"mapbox-token"},googleToken:{type:String,attribute:"google-token"},activeItem:{type:String,state:!0}}}static get styles(){return[...super.styles,x` + >`:null}}window.customElements.define("dt-location-map-item",Ua);class _o extends M{static get properties(){return{...super.properties,placeholder:{type:String},value:{type:Array},locations:{type:Array,state:!0},open:{type:Boolean,state:!0},limit:{type:Number,attribute:"limit"},mapboxToken:{type:String,attribute:"mapbox-token"},googleToken:{type:String,attribute:"google-token"},activeItem:{type:String,state:!0}}}static get styles(){return[...super.styles,x` :host { font-family: Helvetica, Arial, sans-serif; } @@ -2492,16 +2492,16 @@ color: var(--success-color, #cc4b37); transform: scale(1.5); } - `]}constructor(){super(),this.limit=0,this.value=[],this.locations=[{id:Date.now()}]}_setFormValue(e){super._setFormValue(e),this.internals.setFormValue(JSON.stringify(e))}willUpdate(...e){super.willUpdate(...e),this.value&&this.value.filter(t=>!t.id)&&(this.value=[...this.value.map(t=>({...t,id:t.id||t.grid_meta_id}))]),this.updateLocationList()}firstUpdated(...e){super.firstUpdated(...e),this.internals.setFormValue(JSON.stringify(this.value))}updated(e){var t,i;if(e.has("value")){const o=e.get("value");o&&(o==null?void 0:o.length)!==((t=this.value)==null?void 0:t.length)&&this.focusNewLocation()}if(e.has("locations")){const o=e.get("locations");o&&(o==null?void 0:o.length)!==((i=this.locations)==null?void 0:i.length)&&this.focusNewLocation()}}focusNewLocation(){const e=this.shadowRoot.querySelectorAll("dt-location-map-item");e&&e.length&&e[e.length-1].dispatchEvent(new Event("autofocus"))}updateLocationList(){if(!this.disabled&&(this.open||!this.value||!this.value.length)){this.open=!0;const e=(this.value||[]).filter(i=>i.label),t=this.limit===0||e.lengthe.label)]}selectLocation(e){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}}),i={...e.detail.metadata,id:Date.now()};if(i.lat){const o=Math.round(i.lat*1e7)/1e7,a=Math.round(i.lng*10**7)/10**7;this.activeItem=`${o}/${a}`}else this.activeItem=i.label;this.value=[...(this.value||[]).filter(o=>o.label&&(!o.key||o.key!==i.key)&&(!o.id||o.id!==i.id)),i],this.updateLocationList(),t.detail.newValue=this.value,this.dispatchEvent(t),this._setFormValue(this.value)}deleteItem(e){var a;this.activeItem=void 0;const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}}),i=(a=e.detail)==null?void 0:a.metadata,o=i==null?void 0:i.grid_meta_id;o?this.value=(this.value||[]).filter(r=>r.grid_meta_id!==o):i.lat&&i.lng?this.value=(this.value||[]).filter(r=>r.lat!==i.lat&&r.lng!==i.lng):this.value=(this.value||[]).filter(r=>(!r.key||r.key!==i.key)&&(!r.id||r.id!==i.id)),this.updateLocationList(),t.detail.newValue=this.value,this.dispatchEvent(t),this._setFormValue(this.value)}addNew(){const e=(this.value||[]).filter(t=>t.label);(this.limit===0||e.length!t.label))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required")):(this.invalid=!1,this.internals.setValidity({}))}labelTemplate(){return this.label?p` + `]}constructor(){super(),this.limit=0,this.value=[],this.locations=[{id:Date.now()}]}_setFormValue(e){super._setFormValue(e),this.internals.setFormValue(JSON.stringify(e))}willUpdate(...e){super.willUpdate(...e),this.value&&this.value.filter(t=>!t.id)&&(this.value=[...this.value.map(t=>({...t,id:t.id||t.grid_meta_id}))]),this.updateLocationList()}firstUpdated(...e){super.firstUpdated(...e),this.internals.setFormValue(JSON.stringify(this.value))}updated(e){var t,i;if(e.has("value")){const o=e.get("value");o&&(o==null?void 0:o.length)!==((t=this.value)==null?void 0:t.length)&&this.focusNewLocation()}if(e.has("locations")){const o=e.get("locations");o&&(o==null?void 0:o.length)!==((i=this.locations)==null?void 0:i.length)&&this.focusNewLocation()}}focusNewLocation(){const e=this.shadowRoot.querySelectorAll("dt-location-map-item");e&&e.length&&e[e.length-1].dispatchEvent(new Event("autofocus"))}updateLocationList(){if(!this.disabled&&(this.open||!this.value||!this.value.length)){this.open=!0;const e=(this.value||[]).filter(i=>i.label),t=this.limit===0||e.lengthe.label)]}selectLocation(e){const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}}),i={...e.detail.metadata,id:Date.now()};if(i.lat){const o=Math.round(i.lat*1e7)/1e7,a=Math.round(i.lng*10**7)/10**7;this.activeItem=`${o}/${a}`}else this.activeItem=i.label;this.value=[...(this.value||[]).filter(o=>o.label&&(!o.key||o.key!==i.key)&&(!o.id||o.id!==i.id)),i],this.updateLocationList(),t.detail.newValue=this.value,this.dispatchEvent(t),this._setFormValue(this.value)}deleteItem(e){var a;this.activeItem=void 0;const t=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}}),i=(a=e.detail)==null?void 0:a.metadata,o=i==null?void 0:i.grid_meta_id;o?this.value=(this.value||[]).filter(r=>r.grid_meta_id!==o):i.lat&&i.lng?this.value=(this.value||[]).filter(r=>r.lat!==i.lat&&r.lng!==i.lng):this.value=(this.value||[]).filter(r=>(!r.key||r.key!==i.key)&&(!r.id||r.id!==i.id)),this.updateLocationList(),t.detail.newValue=this.value,this.dispatchEvent(t),this._setFormValue(this.value)}addNew(){const e=(this.value||[]).filter(t=>t.label);(this.limit===0||e.length!t.label))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required")):(this.invalid=!1,this.internals.setValidity({}))}labelTemplate(){return this.label?h` - ${this.icon?null:p``} + ${this.icon?null:h``} ${this.label} - ${!this.open&&(this.limit==0||this.locations.length - `,()=>p``)} + `,()=>h``)}
    - `}renderIcons(){let e=0,t=!1;for(const[a,r]of(this.value||[]).entries())!r.value&&a!==0?e+=1:r.delete&&!t&&(t=!0);let i=.5;t===!1&&(i+=3*e);const o=`padding-block-end: ${i.toString()}rem`;return p` + `}renderIcons(){let e=0,t=!1;for(const[a,r]of(this.value||[]).entries())!r.value&&a!==0?e+=1:r.delete&&!t&&(t=!0);let i=.5;t===!1&&(i+=3*e);const o=`padding-block-end: ${i.toString()}rem`;return h` ${this.renderIconInvalid()} ${this.renderError()} ${this.renderIconLoading(o)} ${this.renderIconSaved(o)} - `}renderIconLoading(e){return this.loading?p``:null}renderIconSaved(e){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?p``:null}renderIconSaved(e){return this.saved&&(this.savedTimeout&&clearTimeout(this.savedTimeout),this.savedTimeout=setTimeout(()=>{this.savedTimeout=null,this.saved=!1},5e3)),this.saved?h``:null}_renderInputFields(){return(!this.value||!this.value.length)&&(this.value=[{verified:!1,value:"",tempKey:Date.now().toString()}]),p` - ${pe((this.value??[]).filter(e=>!e.delete),e=>e.id,e=>this._inputFieldTemplate(e,this.value.length))} - `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t.value))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid}}render(){return p` + >`:null}_renderInputFields(){return(!this.value||!this.value.length)&&(this.value=[{verified:!1,value:"",tempKey:Date.now().toString()}]),h` + ${H((this.value??[]).filter(e=>!e.delete),e=>e.id,e=>this._inputFieldTemplate(e,this.value.length))} + `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t.value))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid}}render(){return h` ${this.labelTemplate()}
    ${this._renderInputFields()} ${this.renderIcons()}
    - `}}window.customElements.define("dt-multi-text",xo);class ko extends M{static get styles(){return[...super.styles,x` + `}}window.customElements.define("dt-multi-text",zt);class ko extends zt{static get styles(){return[...super.styles,x` + .icon-btn { + background-color: transparent; + border: none; + cursor: pointer; + height: 0.9em; + padding: 0; + color: var(--success-color, #cc4b37); + transform: scale(1.5); + } + + .groups-list { + position: relative; + } + + .option-list { + display: block; + position: absolute; + inset-inline-start: auto; + inset-inline-end: 0; + list-style: none; + margin-top: 0; + padding: 0; + border: 1px solid var(--dt-form-border-color, #CACACA); + background: var(--dt-form-background-color, #FEFEFE); + z-index: 10; + box-shadow: var(--shadow-1); + max-height: 150px; + } + + .option-list li { + border-block-start: 1px solid var(--dt-form-border-color, #CACACA); + outline: 0; + } + .option-list li div, + .option-list li button { + padding: 0.5rem 0.75rem; + color: var(--dt-multi-select-text-color, #0A0A0A); + font-weight: 100; + font-size: 1rem; + text-decoration: none; + text-align: inherit; + } + + .option-list li button { + display: block; + width: 100%; + border: 0; + background: transparent; + } + .option-list li button:hover, + .option-list li button.active { + cursor: pointer; + background: var(--dt-multi-select-option-hover-background, #F5F5F5); + } + .link-button { + background: none; + border: none; + padding-left: 0.5rem; + margin: 0; + color: #0000ee; /* Default blue link color (adjust as needed) */ + text-decoration: underline; + cursor: pointer; + } + .groups-no-value { + display: flex; + align-items: center; + min-height: 2.5rem; + } + .icon-overlay { + inset-inline-end: 0.5rem; + height: 100%; + } + .field-container:has(.btn-remove) ~ .icon-overlay { + inset-inline-end: 3rem; + } + .heading { + margin-top: .5rem; + margin-bottom: 0; + font-family: var(--font-family); + font-size: var(--dt-label-font-size, 14px); + font-weight: var(--dt-label-font-weight, 700); + color: var(--dt-label-color, #000); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + `]}static get properties(){return{...super.properties,groups:{type:Array},open:{type:Boolean,state:!0},activeIndex:{type:Number,state:!0},activeGroup:{type:String,state:!0},isDeleting:{type:Boolean,state:!0}}}constructor(){super(),this.open=!1,this.activeIndex=-1}_addItem(e){var i;const t={verified:!1,value:"",tempKey:Date.now().toString(),type:e.id};(i=this.value[0])!=null&&i.type?this.value=[...this.value,t]:this.value=[t],this.open=!1,this.activeIndex=-1,this.updateComplete.then(()=>{const o=this.renderRoot.querySelectorAll("input"),a=Array.from(o).find(r=>r.getAttribute("data-key")===t.tempKey);a==null||a.focus()})}_removeItem(e){const t=e.currentTarget.dataset.key;if(t){const i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:this.value}}),o=this.value.filter(a=>a.tempKey!==t).map(a=>{const r={...a};return(a.meta_id===t||a.tempKey===t)&&(r.delete=!0,this.activeGroup=r.type),r});this.value=o,i.detail.newValue=this.value,this.dispatchEvent(i),this._setFormValue(this.value)}}_change(e){var i,o;const t=(o=(i=e==null?void 0:e.currentTarget)==null?void 0:i.dataset)==null?void 0:o.key;if(t){const a=new CustomEvent("change",{detail:{field:this.name,oldValue:this.value}});this.value=this.value.map(r=>{var n;return r.meta_id===t||r.tempKey===t?(this.activeGroup=r.type,{...r,value:(n=e.target)==null?void 0:n.value}):r}),a.detail.newValue=this.value,this._setFormValue(this.value),this.dispatchEvent(a)}}handleClick(){if(this.renderRoot.querySelector(".icon-btn").focus(),this.groups){this.open=!this.open,this.activeIndex=-1;const e=this.renderRoot.querySelector(".option-list");e==null||e.focus()}else{const e={verified:!1,value:"",tempKey:Date.now().toString()};this.value=[...this.value,e]}}_handleButtonBlur(e){var t;(t=e.relatedTarget)!=null&&t.id.includes("group-")||(this.open=!1)}_inputKeyDown(e){const t=e.keyCode||e.which;if(this.groups)switch(t){case 38:e.preventDefault(),this.open=!0,this._listHighlightPrevious();break;case 40:e.preventDefault(),this.open=!0,this._listHighlightNext();break;case 9:this.activeIndex<0?this.open=!1:e.preventDefault(),this._keyboardSelectOption();break;case 13:e.preventDefault(),this.open?this._keyboardSelectOption():this.open=!0;break;case 27:this.open=!1,this.activeIndex=-1;break;default:this.open=!0,this.query=e.target.value;break}}_keyboardSelectOption(){this.activeIndex>-1&&(this.activeIndex+1>this.groups.length?this._addItem(this.query):this._addItem(this.groups[this.activeIndex]))}_listHighlightNext(){this.allowAdd?this.activeIndex=Math.min(this.groups.length,this.activeIndex+1):this.activeIndex=Math.min(this.groups.length-1,this.activeIndex+1)}_listHighlightPrevious(){this.activeIndex=Math.max(0,this.activeIndex-1)}_inputFieldTemplate(e,t){var i;return h` +
    + + + ${q(((i=this.value[0])==null?void 0:i.type)||!this.groups&&t>1,()=>h` + + `,()=>h``)} +
    + `}_renderGroup(e,t){return h` +
  • + +
  • + `}renderIcons(){const e=this.groups.findIndex(l=>l.id===this.activeGroup);this.loading&&(this.isDeleting=!1);for(const[l,d]of(this.value||[]).entries())d.delete&&!this.isDeleting&&(this.isDeleting=!0,this.activeGroup=d.type);const t=this.groups.map(l=>(this.value||[]).filter(d=>d.type===l.id&&!d.delete).length);let i=0,o=0;for(let l=t.length-1;l>e;l-=1)if(t[l]>0){o+=t[l];break}for(let l=0;l0){i+=t[l];break}let a=0,r=0;for(let l=this.groups.length-1;l>=0;l-=1){const d=this.groups[l];let u=0;l>e?(u=(this.value||[]).filter(p=>p.type===d.id&&!p.delete).length,u>0&&(r+=1)):l===e&&(u=(this.value||[]).filter(p=>p.type===d.id&&!p.delete).length-1,this.isDeleting&&u===0?i>0?u=i-1:o>0&&(r-=1):u=(this.value||[]).filter(p=>p.type===d.id&&!p.delete).length-1),a+=u}a!==0&&(a*=3,a+=r*2.5),a+=.5,console.log(a);const n=`padding-block-end: ${a.toString()}rem`;return h` + ${this.renderIconInvalid()} ${this.renderError()} + ${this.renderIconLoading(n)} ${this.renderIconSaved(n)} + `}_renderInputFields(){(!this.value||!this.value.length)&&(this.value=[{verified:!1,value:"",tempKey:Date.now().toString()}]);const e=this.value[0];return this.groups&&e&&e.type?this.groups.map(t=>{const i=(this.value??[]).filter(o=>!o.delete&&o.type===t.id);if(i.length>0)return h` +

    ${t.label}

    + ${H(i,o=>o.id,o=>this._inputFieldTemplate(o,this.value.length))} + `}):this.groups?h` +
    + No items to show. +
    + `:h` + ${H((this.value??[]).filter(t=>!t.delete),t=>t.id,t=>this._inputFieldTemplate(t,this.value.length))} + `}get classes(){return{"text-input":!0,invalid:this.touched&&this.invalid}}labelTemplate(){return this.label?h` + + ${this.icon?null:h``} + ${this.label} + + + ${this.open?h` +
    +
      + ${H(this.groups,e=>e.id,(e,t)=>this._renderGroup(e,t))} +
    +
    + `:""} +
    +
    + `:""}}window.customElements.define("dt-multi-text-groups",ko);class So extends M{static get styles(){return[...super.styles,x` :host { margin-bottom: var(--dt-multi-select-button-group-margin-bottom, 5px); --dt-button-font-size: var( @@ -3225,7 +3401,7 @@ .invalid ~ .error-container { border-top-width: 1px; } - `]}constructor(){super(),this.options=[]}static get properties(){return{value:{type:Array,reflect:!0},context:{type:String},options:{type:Array},outline:{type:Boolean}}}get _field(){return this.shadowRoot.querySelector(".input-group")}_select(e){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});if(this.value&&this.value.length){const o=this.value.includes(e);this.value=[...this.value.filter(a=>a!==e&&a!==`-${e}`),o?`-${e}`:e]}else this.value=[e];i.detail.newValue=this.value,this._setFormValue(this.value),this.dispatchEvent(i)}_clickOption(e){var t;(t=e==null?void 0:e.currentTarget)!=null&&t.value&&this._select(e.currentTarget.value)}_inputKeyUp(e){switch(e.keyCode||e.which){case 13:this._clickOption(e);break}}_renderButton(e){const i=(this.value??[]).includes(e.id)?"success":this.touched&&this.invalid?"alert":"inactive",o=this.outline??(this.touched&&this.invalid);return p` + `]}constructor(){super(),this.options=[]}static get properties(){return{value:{type:Array,reflect:!0},context:{type:String},options:{type:Array},outline:{type:Boolean}}}get _field(){return this.shadowRoot.querySelector(".input-group")}_select(e){const t=this.value,i=new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:t}});if(this.value&&this.value.length){const o=this.value.includes(e);this.value=[...this.value.filter(a=>a!==e&&a!==`-${e}`),o?`-${e}`:e]}else this.value=[e];i.detail.newValue=this.value,this._setFormValue(this.value),this.dispatchEvent(i)}_clickOption(e){var t;(t=e==null?void 0:e.currentTarget)!=null&&t.value&&this._select(e.currentTarget.value)}_inputKeyUp(e){switch(e.keyCode||e.which){case 13:this._clickOption(e);break}}_renderButton(e){const i=(this.value??[]).includes(e.id)?"success":this.touched&&this.invalid?"alert":"inactive",o=this.outline??(this.touched&&this.invalid);return h` - ${e.icon?p`${this.iconAltText}`:null} ${e.label} - `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"button-group":!0,invalid:this.touched&&this.invalid}}render(){return p` + `}_validateRequired(){const{value:e}=this;this.required&&(!e||e.every(t=>!t||t.charAt(0)==="-"))?(this.invalid=!0,this.internals.setValidity({valueMissing:!0},this.requiredMessage||"This field is required",this._field)):(this.invalid=!1,this.internals.setValidity({}))}get classes(){return{"button-group":!0,invalid:this.touched&&this.invalid}}render(){return h` ${this.labelTemplate()}
    - ${pe(this.options??[],e=>e.id,e=>this._renderButton(e))} + ${H(this.options??[],e=>e.id,e=>this._renderButton(e))}
    ${this.renderIcons()}
    - `}}window.customElements.define("dt-multi-select-button-group",ko);class So extends M{constructor(){super();Me(this,"_handleUploadStagedEvent",()=>{this.uploadStagedFiles()});this.value=[],this.acceptedFileTypes=["image/*","application/pdf"],this.maxFileSize=null,this.maxFiles=null,this.deleteEnabled=!0,this.downloadEnabled=!0,this.renameEnabled=!0,this.displayLayout="grid",this.fileTypeIcon="",this.autoUpload=!0,this.postType="",this.postId="",this.metaKey="",this.keyPrefix="",this.uploading=!1,this.stagedFiles=[],this._uploadZoneExpanded=!1,this._dragOver=!1,this._editingFileKey="",this._editingFileName="",this._dragLeaveTimeout=null,this._resizeObserver=null,this._keydownAttached=!1,this._suppressRenameBlurCommit=!1,this._standaloneFilesByKey=new Map}static get styles(){return[...super.styles,x` + `}}window.customElements.define("dt-multi-select-button-group",So);class Eo extends M{constructor(){super();Me(this,"_handleUploadStagedEvent",()=>{this.uploadStagedFiles()});this.value=[],this.acceptedFileTypes=["image/*","application/pdf"],this.maxFileSize=null,this.maxFiles=null,this.deleteEnabled=!0,this.downloadEnabled=!0,this.renameEnabled=!0,this.displayLayout="grid",this.fileTypeIcon="",this.autoUpload=!0,this.postType="",this.postId="",this.metaKey="",this.keyPrefix="",this.uploading=!1,this.stagedFiles=[],this._uploadZoneExpanded=!1,this._dragOver=!1,this._editingFileKey="",this._editingFileName="",this._dragLeaveTimeout=null,this._resizeObserver=null,this._keydownAttached=!1,this._suppressRenameBlurCommit=!1,this._standaloneFilesByKey=new Map}static get styles(){return[...super.styles,x` :host { display: block; } @@ -3264,7 +3440,10 @@ border-radius: 4px; text-align: center; background-color: var(--dt-upload-background-color, #fafafa); - transition: padding 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; + transition: + padding 0.2s ease, + background-color 0.2s ease, + border-color 0.2s ease; cursor: pointer; position: relative; width: 100%; @@ -3632,18 +3811,21 @@ word-wrap: break-word; word-break: break-word; } - `]}static get properties(){return{...super.properties,value:{type:Array,reflect:!0,converter:{fromAttribute:t=>{if(t==null||t==="")return[];try{const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}},toAttribute:t=>Array.isArray(t)&&t.length>0?JSON.stringify(t):""}},acceptedFileTypes:{type:Array,attribute:"accepted-file-types"},maxFileSize:{type:Number,attribute:"max-file-size"},maxFiles:{type:Number,attribute:"max-files"},deleteEnabled:{type:Boolean,attribute:"delete-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},downloadEnabled:{type:Boolean,attribute:"download-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},renameEnabled:{type:Boolean,attribute:"rename-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},displayLayout:{type:String,attribute:"display-layout"},fileTypeIcon:{type:String,attribute:"file-type-icon"},autoUpload:{type:Boolean,attribute:"auto-upload",converter:{fromAttribute:t=>{if(t==null)return!0;const i=String(t).toLowerCase().trim();return i!=="false"&&i!=="0"&&t!==!1}}},postType:{type:String,attribute:"post-type"},postId:{type:String,attribute:"post-id"},metaKey:{type:String,attribute:"meta-key"},keyPrefix:{type:String,attribute:"key-prefix"},uploading:{type:Boolean,state:!0},stagedFiles:{type:Array,state:!0},_uploadZoneExpanded:{type:Boolean,state:!0},_dragOver:{type:Boolean,state:!0},_editingFileKey:{type:String,state:!0},_editingFileName:{type:String,state:!0}}}connectedCallback(){super.connectedCallback(),this.addEventListener("dt:upload-files",this._handleUploadStagedEvent),this._boundKeydown=this._handleHostKeydown.bind(this)}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("dt:upload-files",this._handleUploadStagedEvent),this._removeKeydownListener(),this._cancelScheduledCollapse(),(t=this._resizeObserver)==null||t.disconnect()}_addKeydownListener(){this._keydownAttached||(this._keydownAttached=!0,this.addEventListener("keydown",this._boundKeydown,{capture:!0}))}_removeKeydownListener(){this._keydownAttached&&(this._keydownAttached=!1,this.removeEventListener("keydown",this._boundKeydown,{capture:!0}))}_handleHostKeydown(t){var o;if(!this._editingFileKey)return;const i=(o=this.shadowRoot)==null?void 0:o.querySelector(".file-name-edit");i&&(t.key==="Enter"||t.keyCode===13?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this._commitRename(this._editingFileKey,i.value)):(t.key==="Escape"||t.keyCode===27)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this._cancelRename()))}firstUpdated(t){Array.isArray(this.value)||(this.value=this._parseValue(this.value)),super.firstUpdated(t),this._setupResizeObserver()}updated(t){super.updated(t),t.has("value")&&this._setFormValue(this.value),(t.has("value")||t.has("stagedFiles")||t.has("error"))&&this.updateComplete.then(()=>this._refreshMasonry()),t.has("_editingFileKey")&&(this._editingFileKey?(this._addKeydownListener(),this.updateComplete.then(()=>{var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector(".file-name-edit");i&&(i.focus(),i.select())})):this._removeKeydownListener())}_setupResizeObserver(){typeof ResizeObserver>"u"||(this._resizeObserver=new ResizeObserver(()=>{this._refreshMasonry()}),this._resizeObserver.observe(this))}_refreshMasonry(){if(typeof window<"u"&&window.jQuery){const t=this;requestAnimationFrame(()=>{let i=null;window.masonGrid&&window.masonGrid.length&&window.masonGrid.masonry?i=window.masonGrid:i=window.jQuery(t).closest(".grid, .masonry-container, .masonry, [data-masonry]"),i&&i.length&&i.masonry&&i.masonry("layout")})}}_expandUploadZone(){this._uploadZoneExpanded=!0}_scheduleCollapse(){this._cancelScheduledCollapse(),this._dragLeaveTimeout=setTimeout(()=>{this._uploadZoneExpanded=!1,this._dragLeaveTimeout=null},300)}_cancelScheduledCollapse(){this._dragLeaveTimeout&&(clearTimeout(this._dragLeaveTimeout),this._dragLeaveTimeout=null)}uploadStagedFiles(){this.stagedFiles.length>0&&this._uploadFiles(this.stagedFiles)}_removeStagedFile(t){t>=0&&to!==t),this.requestUpdate())}_parseValue(t){if(Array.isArray(t))return t;if(typeof t=="string")try{const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}return[]}_formatFileSize(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}_isImage(t){return(t.type||"").toLowerCase().startsWith("image/")}_mdiToIconify(t){if(!t||typeof t!="string")return"";const i=t.trim();return i.startsWith("mdi:")?i:i.includes("mdi-")?`mdi:${i.replace(/.*mdi-/,"").replace(/\s/g,"-")}`:i.startsWith("mdi ")?`mdi:${i.replace(/^mdi\s+/,"").replace(/\s/g,"-")}`:i}_getFileTypeIconMapping(){return{"application/pdf":"mdi:file-pdf-box","text/plain":"mdi:text-box-edit-outline","application/rtf":"mdi:text-box-edit-outline","text/rtf":"mdi:text-box-edit-outline","text/csv":"mdi:text-box-edit-outline","text/html":"mdi:language-html5","application/msword":"mdi:microsoft-word","application/json":"mdi:code-json","application/xml":"mdi:file-xml-box",".pdf":"mdi:file-pdf-box",".txt":"mdi:text-box-edit-outline",".rtf":"mdi:text-box-edit-outline",".csv":"mdi:text-box-edit-outline",".html":"mdi:language-html5",".htm":"mdi:language-html5",".docx":"mdi:microsoft-word",".doc":"mdi:microsoft-word",".json":"mdi:code-json",".xml":"mdi:file-xml-box"}}_getFileTypeIcon(t){if(this.fileTypeIcon&&this.fileTypeIcon.trim())return this.fileTypeIcon.trim();const i=(t.type||"").toLowerCase(),o=this._getFileTypeIconMapping();if(i&&o[i])return o[i];if(t.name){const a=t.name.split(".");if(a.length>1){const r="."+a.pop().toLowerCase();if(o[r])return o[r]}}return null}_renderFileTypeIcon(t){const i=this._getFileTypeIcon(t);if(!i)return null;if(/^(https?:|\/|data:)/.test(i))return p``;const a=this._mdiToIconify(i);return a?p``:null}_getFilePreviewUrl(t){const i=t.thumbnail_key||t.large_thumbnail_key;if(this._isImage(t)){if(t.large_thumbnail_url)return t.large_thumbnail_url;if(t.thumbnail_url)return t.thumbnail_url;if(t.url)return t.url;if(i)return null}return null}_handleFileSelect(t){const i=Array.from(t.target.files||[]);i.length!==0&&(t.target.value="",this._processFiles(i))}_handleDrop(t){if(t.preventDefault(),t.stopPropagation(),this._dragOver=!1,t.currentTarget.classList.remove("drag-over"),this.disabled||this.uploading)return;const i=Array.from(t.dataTransfer.files||[]);i.length!==0&&this._processFiles(i)}_handleDragOver(t){t.preventDefault(),t.stopPropagation(),!this.disabled&&!this.uploading&&(this._dragOver=!0,this._expandUploadZone(),this._cancelScheduledCollapse(),t.currentTarget.classList.add("drag-over"))}_handleDragLeave(t){t.preventDefault(),t.stopPropagation(),this._dragOver=!1,t.currentTarget.classList.remove("drag-over"),this._scheduleCollapse()}_handleZoneClick(t){var i;if(!t.target.closest('input[type="file"]')&&(this._expandUploadZone(),this._cancelScheduledCollapse(),!this.disabled&&!this.uploading)){const o=(i=this.shadowRoot)==null?void 0:i.querySelector('input[type="file"]');o&&o.click()}}_handleZoneMouseEnter(){!this.disabled&&!this.uploading&&(this._expandUploadZone(),this._cancelScheduledCollapse())}_handleZoneMouseLeave(){this._scheduleCollapse()}_processFiles(t){const i=this._validateFiles(t);if(i.length===0)return;this.error="";const o=(this.value||[]).length+this.stagedFiles.length;if(this.maxFiles&&o+i.length>this.maxFiles){this.error=`${this.maxFiles} files allowed`;return}this.autoUpload?this._uploadFiles(i):(this.stagedFiles=[...this.stagedFiles,...i],this._uploadZoneExpanded=!1,this.requestUpdate(),this.updateComplete.then(()=>this._refreshMasonry()))}_validateFiles(t){const i=[],o=this.maxFileSize?this.maxFileSize*1024*1024:null,a=Array.isArray(this.acceptedFileTypes)?this.acceptedFileTypes:["image/*","application/pdf"],r=a.join(",");for(const n of t){if(o&&n.size>o){this.error=`File "${n.name}" exceeds ${this.maxFileSize} MB`;continue}if(r&&r!=="*"&&!a.some(d=>{if(d.startsWith("."))return n.name.toLowerCase().endsWith(d.toLowerCase());if(d.endsWith("/*")){const u=d.slice(0,-2);return(n.type||"").startsWith(u)}return n.type===d||n.name&&n.name.toLowerCase().endsWith(`.${d.split("/")[1]}`)})){this.error=`File type not allowed: ${n.name}`;continue}i.push(n)}return i}_isStandaloneMode(){return!this.postType||!this.postId||!this.metaKey}async _filesToMockFileObjects(t){const i=[];for(const o of t){const r={key:`standalone_${Date.now()}_${Math.random().toString(36).slice(2)}_${o.name}`,name:o.name,type:o.type||"application/octet-stream",size:o.size};if(this._isImage({type:o.type}))try{const n=URL.createObjectURL(o);i.push({...r,url:n,thumbnail_url:n})}catch{i.push({...r,url:"#"})}else i.push({...r,url:"#"})}return i}getPendingFilesForUpload(){const t=[...this.stagedFiles||[]],i=new Set(t.map(a=>`${(a==null?void 0:a.name)||""}::${(a==null?void 0:a.size)||0}::${(a==null?void 0:a.lastModified)||0}`)),o=this._parseValue(this.value);for(const a of o){const r=String((a==null?void 0:a.key)||a||"");if(!r)continue;const n=this._standaloneFilesByKey.get(r);if(!n)continue;const l=`${(n==null?void 0:n.name)||""}::${(n==null?void 0:n.size)||0}::${(n==null?void 0:n.lastModified)||0}`;i.has(l)||(t.push(n),i.add(l))}return t}async _uploadFiles(t){if(this._isStandaloneMode()){const o=this._parseValue(this.value);this.uploading=!0,this.loading=!0,this.error="";try{const a=await this._filesToMockFileObjects(t);a.forEach((n,l)=>{n!=null&&n.key&&t[l]&&this._standaloneFilesByKey.set(String(n.key),t[l])});const r=[...o,...a];this.value=r,this.stagedFiles=[],this._uploadZoneExpanded=!1,this.saved=!0,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:r}})),this._refreshMasonry()}catch(a){this.error=(a==null?void 0:a.message)||"Upload failed"}finally{this.uploading=!1,this.loading=!1}return}this.uploading=!0,this.loading=!0,this.error="";const i=new CustomEvent("dt:upload",{bubbles:!0,detail:{files:t,metaKey:this.metaKey,keyPrefix:this.keyPrefix||"",onSuccess:({result:o,fieldValue:a})=>{const r=this._parseValue(this.value);let n=r;const l=(o.uploaded_files||[]).filter(d=>d.uploaded&&d.file).map(d=>d.file);if(l.length>0){const d=new Set(r.map(h=>String(h.key||h))),u=[...r];for(const h of l){const g=String(h.key||h);d.has(g)||(u.push(h),d.add(g))}n=u,this.value=n}else Array.isArray(a)&&a.length>0&&(n=a,this.value=n);this.stagedFiles=[],this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:r,newValue:n}})),this._refreshMasonry(),this._uploadZoneExpanded=!1,this.saved=!0,this.uploading=!1,this.loading=!1},onError:o=>{console.error("Upload error:",o),this.error=o.message||"Upload failed",this.uploading=!1,this.loading=!1}}});this.dispatchEvent(i)}async _deleteFile(t){if(!this.deleteEnabled||!confirm("Are you sure you want to delete this file?"))return;if(this._isStandaloneMode()){const o=this._parseValue(this.value),a=o.find(n=>(n.key||n)===t);a&&a.url&&a.url.startsWith("blob:")&&URL.revokeObjectURL(a.url),a&&a.thumbnail_url&&a.thumbnail_url.startsWith("blob:")&&a.thumbnail_url!==a.url&&URL.revokeObjectURL(a.thumbnail_url),this._standaloneFilesByKey.delete(String(t));const r=o.filter(n=>(n.key||n)!==t);this.value=r,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:r}})),this.dispatchEvent(new CustomEvent("dt:delete-file",{bubbles:!0,detail:{fileKey:t,metaKey:this.metaKey||""}})),this.updateComplete.then(()=>this._refreshMasonry());return}if(!this.postType||!this.postId||!this.metaKey)return;this.loading=!0,this.error="";const i=new CustomEvent("dt:delete-file",{bubbles:!0,detail:{fileKey:t,metaKey:this.metaKey,onSuccess:()=>{const o=this._parseValue(this.value),a=o.filter(r=>(r.key||r)!==t);this.value=a,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:a}})),this.updateComplete.then(()=>this._refreshMasonry()),this.loading=!1},onError:o=>{console.error("Delete error:",o),this.error=o.message||"Delete failed",this.loading=!1}}});this.dispatchEvent(i)}async _renameFile(t,i){if(!this.renameEnabled)return;if(this._isStandaloneMode()){const a=this._parseValue(this.value),r=a.map(n=>(n.key||n)===t?{...n,name:i}:n);this.value=r,this._editingFileKey="",this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:a,newValue:r}})),this.dispatchEvent(new CustomEvent("dt:rename-file",{bubbles:!0,detail:{fileKey:t,newName:i,metaKey:this.metaKey||""}})),this.updateComplete.then(()=>this._refreshMasonry());return}if(!this.postType||!this.postId||!this.metaKey)return;this.loading=!0,this.error="";const o=new CustomEvent("dt:rename-file",{bubbles:!0,detail:{fileKey:t,newName:i,metaKey:this.metaKey,onSuccess:()=>{const a=this._parseValue(this.value),r=a.map(n=>(n.key||n)===t?{...n,name:i}:n);this.value=r,this._editingFileKey="",this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:a,newValue:r}})),this.updateComplete.then(()=>this._refreshMasonry()),this.loading=!1},onError:a=>{console.error("Rename error:",a),this.error=(a==null?void 0:a.message)||"Rename failed",this.loading=!1}}});this.dispatchEvent(o)}_startRename(t,i){!this.renameEnabled||this.disabled||(this._editingFileKey=typeof t=="string"?t:String(t),this._editingFileName=i||"")}_commitRename(t,i){if(this._suppressRenameBlurCommit){this._suppressRenameBlurCommit=!1;return}if(!this._editingFileKey||this._editingFileKey!==t)return;const o=(i??this._editingFileName??"").trim();if(this._editingFileKey="",this._editingFileName="",!o)return;const r=this._parseValue(this.value).find(l=>(l.key||l)===t),n=(r==null?void 0:r.name)||(typeof t=="string"?t.split("/").pop():"");o!==n&&this._renameFile(t,o)}_cancelRename(){this._suppressRenameBlurCommit=!0,this._editingFileKey="",this._editingFileName="",setTimeout(()=>{this._suppressRenameBlurCommit=!1},0)}_handleRenameBlur(t,i){if(this._suppressRenameBlurCommit){this._suppressRenameBlurCommit=!1;return}this._commitRename(t,i)}_downloadFile(t){if(!this.downloadEnabled)return;if(this._isStandaloneMode()){const r=t.url;if(!r)return;const n=t.key||t,l=t.name||(typeof n=="string"?n.split("/").pop():"download")||"download",d=document.createElement("a");d.href=r,d.download=l,d.target="_blank",d.rel="noopener",document.body.appendChild(d),d.click(),document.body.removeChild(d),this.dispatchEvent(new CustomEvent("dt:download-file",{bubbles:!0,detail:{fileKey:n,fileName:l,metaKey:this.metaKey||""}}));return}const i=t.key||t,o=t.name||(typeof i=="string"?i.split("/").pop():"download")||"download",a=new CustomEvent("dt:download-file",{bubbles:!0,detail:{fileKey:i,fileName:o,metaKey:this.metaKey,onSuccess:()=>{},onError:r=>{console.error("Download error:",r),this.error=r.message||"Download failed"}}});this.dispatchEvent(a)}_validateRequired(){var i,o,a,r;const t=Array.isArray(this.value)?this.value:[];this.required&&t.length===0?(this.invalid=!0,(o=(i=this.internals)==null?void 0:i.setValidity)==null||o.call(i,{valueMissing:!0},this.requiredMessage||"This field is required")):(this.invalid=!1,(r=(a=this.internals)==null?void 0:a.setValidity)==null||r.call(a,{}))}labelTemplate(){if(!this.label)return"";let t=null;if(this.icon&&this.icon.trim()){const i=this.icon.trim();if(i.startsWith("http://")||i.startsWith("https://")||i.startsWith("/")||i.startsWith("data:"))t=p`${this.iconAltText||`;else if(i.toLowerCase().includes("mdi")){const a=this._mdiToIconify(i);a&&(t=p``)}}return p` + `]}static get properties(){return{...super.properties,value:{type:Array,reflect:!0,converter:{fromAttribute:t=>{if(t==null||t==="")return[];try{const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}},toAttribute:t=>Array.isArray(t)&&t.length>0?JSON.stringify(t):""}},acceptedFileTypes:{type:Array,attribute:"accepted-file-types"},acceptedFileTypesLabel:{type:String,attribute:"accepted-file-types-label"},maxFileSize:{type:Number,attribute:"max-file-size"},maxFiles:{type:Number,attribute:"max-files"},deleteEnabled:{type:Boolean,attribute:"delete-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},downloadEnabled:{type:Boolean,attribute:"download-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},renameEnabled:{type:Boolean,attribute:"rename-enabled",converter:{fromAttribute:t=>t==null||t===""?!0:t!=="false"&&t!==!1}},displayLayout:{type:String,attribute:"display-layout"},fileTypeIcon:{type:String,attribute:"file-type-icon"},autoUpload:{type:Boolean,attribute:"auto-upload",converter:{fromAttribute:t=>{if(t==null)return!0;const i=String(t).toLowerCase().trim();return i!=="false"&&i!=="0"&&t!==!1}}},postType:{type:String,attribute:"post-type"},postId:{type:String,attribute:"post-id"},metaKey:{type:String,attribute:"meta-key"},keyPrefix:{type:String,attribute:"key-prefix"},uploading:{type:Boolean,state:!0},stagedFiles:{type:Array,state:!0},_uploadZoneExpanded:{type:Boolean,state:!0},_dragOver:{type:Boolean,state:!0},_editingFileKey:{type:String,state:!0},_editingFileName:{type:String,state:!0}}}connectedCallback(){super.connectedCallback(),this.addEventListener("dt:upload-files",this._handleUploadStagedEvent),this._boundKeydown=this._handleHostKeydown.bind(this)}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("dt:upload-files",this._handleUploadStagedEvent),this._removeKeydownListener(),this._cancelScheduledCollapse(),(t=this._resizeObserver)==null||t.disconnect()}_addKeydownListener(){this._keydownAttached||(this._keydownAttached=!0,this.addEventListener("keydown",this._boundKeydown,{capture:!0}))}_removeKeydownListener(){this._keydownAttached&&(this._keydownAttached=!1,this.removeEventListener("keydown",this._boundKeydown,{capture:!0}))}_handleHostKeydown(t){var o;if(!this._editingFileKey)return;const i=(o=this.shadowRoot)==null?void 0:o.querySelector(".file-name-edit");i&&(t.key==="Enter"||t.keyCode===13?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this._commitRename(this._editingFileKey,i.value)):(t.key==="Escape"||t.keyCode===27)&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this._cancelRename()))}firstUpdated(t){Array.isArray(this.value)||(this.value=this._parseValue(this.value)),super.firstUpdated(t)}updated(t){super.updated(t),t.has("value")&&this._setFormValue(this.value),t.has("_editingFileKey")&&(this._editingFileKey?(this._addKeydownListener(),this.updateComplete.then(()=>{var o;const i=(o=this.shadowRoot)==null?void 0:o.querySelector(".file-name-edit");i&&(i.focus(),i.select())})):this._removeKeydownListener())}_expandUploadZone(){this._uploadZoneExpanded=!0}_scheduleCollapse(){this._cancelScheduledCollapse(),this._dragLeaveTimeout=setTimeout(()=>{this._uploadZoneExpanded=!1,this._dragLeaveTimeout=null},300)}_cancelScheduledCollapse(){this._dragLeaveTimeout&&(clearTimeout(this._dragLeaveTimeout),this._dragLeaveTimeout=null)}uploadStagedFiles(){this.stagedFiles.length>0&&this._uploadFiles(this.stagedFiles)}_removeStagedFile(t){t>=0&&to!==t),this.requestUpdate())}_parseValue(t){if(Array.isArray(t))return t;if(typeof t=="string")try{const i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}return[]}_formatFileSize(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}_formatAcceptedTypes(){return this.acceptedFileTypesLabel?this.acceptedFileTypesLabel:(this.acceptedFileTypes||[]).join(", ")}_isImage(t){return(t.type||"").toLowerCase().startsWith("image/")}_mdiToIconify(t){if(!t||typeof t!="string")return"";const i=t.trim();return i.startsWith("mdi:")?i:i.includes("mdi-")?`mdi:${i.replace(/.*mdi-/,"").replace(/\s/g,"-")}`:i.startsWith("mdi ")?`mdi:${i.replace(/^mdi\s+/,"").replace(/\s/g,"-")}`:i}_getFileTypeIconMapping(){return{"application/pdf":"mdi:file-pdf-box","text/plain":"mdi:text-box-edit-outline","application/rtf":"mdi:text-box-edit-outline","text/rtf":"mdi:text-box-edit-outline","text/csv":"mdi:text-box-edit-outline","text/html":"mdi:language-html5","application/msword":"mdi:microsoft-word","application/json":"mdi:code-json","application/xml":"mdi:file-xml-box",".pdf":"mdi:file-pdf-box",".txt":"mdi:text-box-edit-outline",".rtf":"mdi:text-box-edit-outline",".csv":"mdi:text-box-edit-outline",".html":"mdi:language-html5",".htm":"mdi:language-html5",".docx":"mdi:microsoft-word",".doc":"mdi:microsoft-word",".json":"mdi:code-json",".xml":"mdi:file-xml-box"}}_getFileTypeIcon(t){if(this.fileTypeIcon&&this.fileTypeIcon.trim())return this.fileTypeIcon.trim();const i=(t.type||"").toLowerCase(),o=this._getFileTypeIconMapping();if(i&&o[i])return o[i];if(t.name){const a=t.name.split(".");if(a.length>1){const r="."+a.pop().toLowerCase();if(o[r])return o[r]}}return null}_renderFileTypeIcon(t){const i=this._getFileTypeIcon(t);if(!i)return null;if(/^(https?:|\/|data:)/.test(i))return h``;const a=this._mdiToIconify(i);return a?h``:null}_getFilePreviewUrl(t){const i=t.thumbnail_key||t.large_thumbnail_key;if(this._isImage(t)){if(t.large_thumbnail_url)return t.large_thumbnail_url;if(t.thumbnail_url)return t.thumbnail_url;if(t.url)return t.url;if(i)return null}return null}_handleFileSelect(t){const i=Array.from(t.target.files||[]);i.length!==0&&(t.target.value="",this._processFiles(i))}_handleDrop(t){if(t.preventDefault(),t.stopPropagation(),this._dragOver=!1,t.currentTarget.classList.remove("drag-over"),this.disabled||this.uploading)return;const i=Array.from(t.dataTransfer.files||[]);i.length!==0&&this._processFiles(i)}_handleDragOver(t){t.preventDefault(),t.stopPropagation(),!this.disabled&&!this.uploading&&(this._dragOver=!0,this._expandUploadZone(),this._cancelScheduledCollapse(),t.currentTarget.classList.add("drag-over"))}_handleDragLeave(t){t.preventDefault(),t.stopPropagation(),this._dragOver=!1,t.currentTarget.classList.remove("drag-over"),this._scheduleCollapse()}_handleZoneClick(t){var i;if(!t.target.closest('input[type="file"]')&&(this._expandUploadZone(),this._cancelScheduledCollapse(),!this.disabled&&!this.uploading)){const o=(i=this.shadowRoot)==null?void 0:i.querySelector('input[type="file"]');o&&o.click()}}_handleZoneMouseEnter(){!this.disabled&&!this.uploading&&(this._expandUploadZone(),this._cancelScheduledCollapse())}_handleZoneMouseLeave(){this._scheduleCollapse()}_processFiles(t){const i=this._validateFiles(t);if(i.length===0)return;this.error="";const o=(this.value||[]).length+this.stagedFiles.length;if(this.maxFiles&&o+i.length>this.maxFiles){this.error=`${this.maxFiles} files allowed`;return}this.autoUpload?this._uploadFiles(i):(this.stagedFiles=[...this.stagedFiles,...i],this._uploadZoneExpanded=!1,this.requestUpdate())}_validateFiles(t){const i=[],o=this.maxFileSize?this.maxFileSize*1024*1024:null,a=Array.isArray(this.acceptedFileTypes)?this.acceptedFileTypes:["image/*","application/pdf"],r=a.join(",");for(const n of t){if(o&&n.size>o){this.error=`File "${n.name}" exceeds ${this.maxFileSize} MB`;continue}if(r&&r!=="*"&&!a.some(d=>{if(d.startsWith("."))return n.name.toLowerCase().endsWith(d.toLowerCase());if(d.endsWith("/*")){const u=d.slice(0,-2);return(n.type||"").startsWith(u)}return n.type===d||n.name&&n.name.toLowerCase().endsWith(`.${d.split("/")[1]}`)})){this.error=`File type not allowed: ${n.name}`;continue}i.push(n)}return i}_isStandaloneMode(){return!this.postType||!this.postId||!this.metaKey}async _filesToMockFileObjects(t){const i=[];for(const o of t){const r={key:`standalone_${Date.now()}_${Math.random().toString(36).slice(2)}_${o.name}`,name:o.name,type:o.type||"application/octet-stream",size:o.size};if(this._isImage({type:o.type}))try{const n=URL.createObjectURL(o);i.push({...r,url:n,thumbnail_url:n})}catch{i.push({...r,url:"#"})}else i.push({...r,url:"#"})}return i}getPendingFilesForUpload(){const t=[...this.stagedFiles||[]],i=new Set(t.map(a=>`${(a==null?void 0:a.name)||""}::${(a==null?void 0:a.size)||0}::${(a==null?void 0:a.lastModified)||0}`)),o=this._parseValue(this.value);for(const a of o){const r=String((a==null?void 0:a.key)||a||"");if(!r)continue;const n=this._standaloneFilesByKey.get(r);if(!n)continue;const l=`${(n==null?void 0:n.name)||""}::${(n==null?void 0:n.size)||0}::${(n==null?void 0:n.lastModified)||0}`;i.has(l)||(t.push(n),i.add(l))}return t}async _uploadFiles(t){if(this._isStandaloneMode()){const o=this._parseValue(this.value);this.uploading=!0,this.loading=!0,this.error="";try{const a=await this._filesToMockFileObjects(t);a.forEach((n,l)=>{n!=null&&n.key&&t[l]&&this._standaloneFilesByKey.set(String(n.key),t[l])});const r=[...o,...a];this.value=r,this.stagedFiles=[],this._uploadZoneExpanded=!1,this.saved=!0,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:r}}))}catch(a){this.error=(a==null?void 0:a.message)||"Upload failed"}finally{this.uploading=!1,this.loading=!1}return}this.uploading=!0,this.loading=!0,this.error="";const i=new CustomEvent("dt:upload",{bubbles:!0,detail:{files:t,metaKey:this.metaKey,keyPrefix:this.keyPrefix||"",onSuccess:({result:o,fieldValue:a})=>{const r=this._parseValue(this.value);let n=r;const l=(o.uploaded_files||[]).filter(d=>d.uploaded&&d.file).map(d=>d.file);if(l.length>0){const d=new Set(r.map(p=>String(p.key||p))),u=[...r];for(const p of l){const g=String(p.key||p);d.has(g)||(u.push(p),d.add(g))}n=u,this.value=n}else Array.isArray(a)&&a.length>0&&(n=a,this.value=n);this.stagedFiles=[],this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:r,newValue:n}})),this._uploadZoneExpanded=!1,this.saved=!0,this.uploading=!1,this.loading=!1},onError:o=>{console.error("Upload error:",o),this.error=o.message||"Upload failed",this.uploading=!1,this.loading=!1}}});this.dispatchEvent(i)}async _deleteFile(t){if(!this.deleteEnabled||!confirm("Are you sure you want to delete this file?"))return;if(this._isStandaloneMode()){const o=this._parseValue(this.value),a=o.find(n=>(n.key||n)===t);a&&a.url&&a.url.startsWith("blob:")&&URL.revokeObjectURL(a.url),a&&a.thumbnail_url&&a.thumbnail_url.startsWith("blob:")&&a.thumbnail_url!==a.url&&URL.revokeObjectURL(a.thumbnail_url),this._standaloneFilesByKey.delete(String(t));const r=o.filter(n=>(n.key||n)!==t);this.value=r,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:r}})),this.dispatchEvent(new CustomEvent("dt:delete-file",{bubbles:!0,detail:{fileKey:t,metaKey:this.metaKey||""}}));return}if(!this.postType||!this.postId||!this.metaKey)return;this.loading=!0,this.error="";const i=new CustomEvent("dt:delete-file",{bubbles:!0,detail:{fileKey:t,metaKey:this.metaKey,onSuccess:()=>{const o=this._parseValue(this.value),a=o.filter(r=>(r.key||r)!==t);this.value=a,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:o,newValue:a}})),this.loading=!1},onError:o=>{console.error("Delete error:",o),this.error=o.message||"Delete failed",this.loading=!1}}});this.dispatchEvent(i)}async _renameFile(t,i){if(!this.renameEnabled)return;if(this._isStandaloneMode()){const a=this._parseValue(this.value),r=a.map(n=>(n.key||n)===t?{...n,name:i}:n);this.value=r,this._editingFileKey="",this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:a,newValue:r}})),this.dispatchEvent(new CustomEvent("dt:rename-file",{bubbles:!0,detail:{fileKey:t,newName:i,metaKey:this.metaKey||""}}));return}if(!this.postType||!this.postId||!this.metaKey)return;this.loading=!0,this.error="";const o=new CustomEvent("dt:rename-file",{bubbles:!0,detail:{fileKey:t,newName:i,metaKey:this.metaKey,onSuccess:()=>{const a=this._parseValue(this.value),r=a.map(n=>(n.key||n)===t?{...n,name:i}:n);this.value=r,this._editingFileKey="",this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{field:this.name,oldValue:a,newValue:r}})),this.loading=!1},onError:a=>{console.error("Rename error:",a),this.error=(a==null?void 0:a.message)||"Rename failed",this.loading=!1}}});this.dispatchEvent(o)}_startRename(t,i){!this.renameEnabled||this.disabled||(this._editingFileKey=typeof t=="string"?t:String(t),this._editingFileName=i||"")}_commitRename(t,i){if(this._suppressRenameBlurCommit){this._suppressRenameBlurCommit=!1;return}if(!this._editingFileKey||this._editingFileKey!==t)return;const o=(i??this._editingFileName??"").trim();if(this._editingFileKey="",this._editingFileName="",!o)return;const r=this._parseValue(this.value).find(l=>(l.key||l)===t),n=(r==null?void 0:r.name)||(typeof t=="string"?t.split("/").pop():"");o!==n&&this._renameFile(t,o)}_cancelRename(){this._suppressRenameBlurCommit=!0,this._editingFileKey="",this._editingFileName="",setTimeout(()=>{this._suppressRenameBlurCommit=!1},0)}_handleRenameBlur(t,i){if(this._suppressRenameBlurCommit){this._suppressRenameBlurCommit=!1;return}this._commitRename(t,i)}_downloadFile(t){if(!this.downloadEnabled)return;if(this._isStandaloneMode()){const r=t.url;if(!r)return;const n=t.key||t,l=t.name||(typeof n=="string"?n.split("/").pop():"download")||"download",d=document.createElement("a");d.href=r,d.download=l,d.target="_blank",d.rel="noopener",document.body.appendChild(d),d.click(),document.body.removeChild(d),this.dispatchEvent(new CustomEvent("dt:download-file",{bubbles:!0,detail:{fileKey:n,fileName:l,metaKey:this.metaKey||""}}));return}const i=t.key||t,o=t.name||(typeof i=="string"?i.split("/").pop():"download")||"download",a=new CustomEvent("dt:download-file",{bubbles:!0,detail:{fileKey:i,fileName:o,metaKey:this.metaKey,onSuccess:()=>{},onError:r=>{console.error("Download error:",r),this.error=r.message||"Download failed"}}});this.dispatchEvent(a)}_validateRequired(){var i,o,a,r;const t=Array.isArray(this.value)?this.value:[];this.required&&t.length===0?(this.invalid=!0,(o=(i=this.internals)==null?void 0:i.setValidity)==null||o.call(i,{valueMissing:!0},this.requiredMessage||"This field is required")):(this.invalid=!1,(r=(a=this.internals)==null?void 0:a.setValidity)==null||r.call(a,{}))}labelTemplate(){if(!this.label)return"";let t=null;if(this.icon&&this.icon.trim()){const i=this.icon.trim();if(i.startsWith("http://")||i.startsWith("https://")||i.startsWith("/")||i.startsWith("data:"))t=h`${this.iconAltText||`;else if(i.toLowerCase().includes("mdi")){const a=this._mdiToIconify(i);a&&(t=h``)}}return h` - ${t?p`${t}`:p``} + ${t?h`${t}`:h``} ${this.label} - `}render(){const t=this._parseValue(this.value),o=(this.displayLayout||"grid")==="grid";return p` + `}render(){const t=this._parseValue(this.value),o=(this.displayLayout||"grid")==="grid";return h`
    ${this.labelTemplate()}
    - - - + + +
    - ${B(this.stagedFiles.length>0&&!this.autoUpload,()=>p` -
    -
    Staged files (${this.stagedFiles.length})
    - ${pe(this.stagedFiles,(a,r)=>`${a.name}-${a.size}-${r}`,(a,r)=>p` -
    - ${a.name} (${this._formatFileSize(a.size)}) - + ${q(this.stagedFiles.length>0&&!this.autoUpload,()=>h` +
    +
    + Staged files (${this.stagedFiles.length})
    - `)} - -
    - `)} - - ${B(this.loading||this.saved,()=>p` + ${H(this.stagedFiles,(a,r)=>`${a.name}-${a.size}-${r}`,(a,r)=>h` +
    + ${a.name} (${this._formatFileSize(a.size)}) + +
    + `)} + +
    + `)} + ${q(this.loading||this.saved,()=>h`
    - ${this.renderIconLoading()} - ${this.renderIconSaved()} + ${this.renderIconLoading()} ${this.renderIconSaved()}
    `)} - - ${B(t.length>0,()=>p` -
    -
    - ${pe(t,a=>a.key||a,a=>{const r=typeof a.key=="string"?a.key:typeof a=="string"?a:String(a.key??a.name??""),n=a.name||(typeof r=="string"?r.split("/").pop():""),l=a.size,d=this._getFilePreviewUrl(a),u=this._isImage(a),h=this._editingFileKey===r;return p` -
    - ${B(d,()=>p` - {!d&&!a.url&&g.preventDefault()}} - > - ${n} - - `,()=>p` - ${a.url?p` - - ${this._renderFileTypeIcon(a)||(u?p``:p``)} - - `:p` -
    - ${this._renderFileTypeIcon(a)||(u?p``:p``)} -
    - `} - `)} - ${B(h,()=>p` - {this._editingFileName=g.target.value}} - @keydown=${g=>{g.key==="Enter"||g.keyCode===13?(g.preventDefault(),g.stopPropagation(),this._commitRename(r,g.target.value)):(g.key==="Escape"||g.keyCode===27)&&(g.preventDefault(),this._cancelRename())}} - @blur=${g=>this._handleRenameBlur(r,g.target.value)} - @click=${g=>g.stopPropagation()} - /> - `,()=>p` -
    {g.stopPropagation(),this.renameEnabled&&!this.disabled&&this._startRename(r,n)}} - @keydown=${g=>{this.renameEnabled&&!this.disabled&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),this._startRename(r,n))}} - > - ${n} -
    - `)} - ${B(l!=null,()=>p`
    ${this._formatFileSize(l)}
    `)} -
    - ${B(this.downloadEnabled&&a.url,()=>p` - + ${q(t.length>0,()=>h` +
    +
    + ${H(t,a=>a.key||a,a=>{const r=typeof a.key=="string"?a.key:typeof a=="string"?a:String(a.key??a.name??""),n=a.name||(typeof r=="string"?r.split("/").pop():""),l=a.size,d=this._getFilePreviewUrl(a),u=this._isImage(a),p=this._editingFileKey===r;return h` +
    + ${q(d,()=>h` + {!d&&!a.url&&g.preventDefault()}} + > + ${n} + + `,()=>h` + ${a.url?h` + + ${this._renderFileTypeIcon(a)||(u?h``:h``)} + + `:h` +
    + ${this._renderFileTypeIcon(a)||(u?h``:h``)} +
    + `} `)} - ${B(this.deleteEnabled&&!this.disabled,()=>p` - + ${q(p,()=>h` + {this._editingFileName=g.target.value}} + @keydown=${g=>{g.key==="Enter"||g.keyCode===13?(g.preventDefault(),g.stopPropagation(),this._commitRename(r,g.target.value)):(g.key==="Escape"||g.keyCode===27)&&(g.preventDefault(),this._cancelRename())}} + @blur=${g=>this._handleRenameBlur(r,g.target.value)} + @click=${g=>g.stopPropagation()} + /> + `,()=>h` +
    {g.stopPropagation(),this.renameEnabled&&!this.disabled&&this._startRename(r,n)}} + @keydown=${g=>{this.renameEnabled&&!this.disabled&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),this._startRename(r,n))}} + > + ${n} +
    `)} + ${q(l!=null,()=>h`
    + ${this._formatFileSize(l)} +
    `)} +
    + ${q(this.downloadEnabled&&a.url,()=>h` + + `)} + ${q(this.deleteEnabled&&!this.disabled,()=>h` + + `)} +
    -
    - `})} + `})} +
    -
    - `)} - - ${this.renderIconInvalid()} - ${this.renderError()} + `)} + ${this.renderIconInvalid()} ${this.renderError()}
    - `}}customElements.define("dt-file-upload",So);class Eo extends N{static get styles(){return x` + `}}customElements.define("dt-file-upload",Eo);class Ao extends N{static get styles(){return x` :host { display: block; } @@ -3869,7 +4094,7 @@ display: flex; align-items: center; } - `}static get properties(){return{context:{type:String},dismissable:{type:Boolean},timeout:{type:Number},hide:{type:Boolean},outline:{type:Boolean}}}get classes(){const e={"dt-alert":!0,"dt-alert--outline":this.outline},t=`dt-alert--${this.context}`;return e[t]=!0,e}constructor(){super(),this.context="default"}connectedCallback(){super.connectedCallback(),this.timeout&&setTimeout(()=>{this._dismiss()},this.timeout)}_dismiss(){this.hide=!0}render(){if(this.hide)return p``;const e=p` + `}static get properties(){return{context:{type:String},dismissable:{type:Boolean},timeout:{type:Number},hide:{type:Boolean},outline:{type:Boolean}}}get classes(){const e={"dt-alert":!0,"dt-alert--outline":this.outline},t=`dt-alert--${this.context}`;return e[t]=!0,e}constructor(){super(),this.context="default"}connectedCallback(){super.connectedCallback(),this.timeout&&setTimeout(()=>{this._dismiss()},this.timeout)}_dismiss(){this.hide=!0}render(){if(this.hide)return h``;const e=h` xmlns="http://www.w3.org/2000/svg"> - `;return p` + `;return h` - `}}window.customElements.define("dt-alert",Eo);class Ao extends N{static get styles(){return x` + `}}window.customElements.define("dt-alert",Ao);class To extends N{static get styles(){return x` :host { font-family: var(--dt-tile-font-family, var(--font-family)); font-size: var(--dt-tile-font-size, 14px); @@ -3984,10 +4209,10 @@ top: 0; transform: rotate(135deg); } - `}static get properties(){return{title:{type:String},expands:{type:Boolean},collapsed:{type:Boolean},gap:{type:String}}}get hasHeading(){return this.title||this.expands}_toggle(){this.collapsed=!this.collapsed}renderHeading(){return this.hasHeading?p` + `}static get properties(){return{title:{type:String},expands:{type:Boolean},collapsed:{type:Boolean},gap:{type:String}}}get hasHeading(){return this.title||this.expands}_toggle(){this.collapsed=!this.collapsed}renderHeading(){return this.hasHeading?h`

    ${this.title} - ${this.expands?p` + ${this.expands?h`

    - `:O}render(){return p` + `:O}render(){return h`
    ${this.renderHeading()}
    - `}}window.customElements.define("dt-tile",Ao);class Le{get api(){return this._api}constructor(e,t,i,o="wp-json"){this.postType=e,this.postId=t,this.nonce=i,this.debounceTimers={},this._api=new vi(this.nonce,o),this.apiRoot=this._api.apiRoot,this.autoSaveComponents=["dt-connection","dt-users-connection","dt-date","dt-datetime","dt-location","dt-location-map","dt-multi-select","dt-number","dt-single-select","dt-tags","dt-text","dt-textarea","dt-toggle","dt-multi-text","dt-multi-select-button-group","dt-button","dt-church-health-circle"],this.dynamicLoadComponents=["dt-connection","dt-tags","dt-modal","dt-button","dt-location","dt-users-connection"]}initialize(){this.postId&&this.enableAutoSave(),this.attachLoadEvents(),this.attachFileUploadEvents()}async attachLoadEvents(e){const t=document.querySelectorAll(e||this.dynamicLoadComponents.join(","));t&&t.forEach(i=>{i.dataset.eventDtGetData||(i.addEventListener("dt:get-data",this.handleGetDataEvent.bind(this)),i.dataset.eventDtGetData=!0)})}async checkDuplicates(e,t){const i=document.querySelector("dt-modal.duplicate-detected");if(i){const o=i.shadowRoot.querySelector(".duplicates-detected-button");o&&(o.style.display="none");const a=await this._api.checkDuplicateUsers(this.postType,this.postId);t&&a.ids.length>0&&o&&(o.style.display="block")}}enableAutoSave(e){const t=document.querySelectorAll(e||this.autoSaveComponents.join(","));t&&t.forEach(i=>{i.addEventListener("change",this.handleChangeEvent.bind(this))})}attachFileUploadEvents(e){const t=document.querySelectorAll(e||"dt-file-upload");t&&t.forEach(i=>{i.dataset.eventDtUpload||(i.addEventListener("dt:upload",this.handleUploadEvent.bind(this)),i.addEventListener("dt:delete-file",this.handleDeleteFileEvent.bind(this)),i.addEventListener("dt:rename-file",this.handleRenameFileEvent.bind(this)),i.addEventListener("dt:download-file",this.handleDownloadFileEvent.bind(this)),i.dataset.eventDtUpload=!0)})}async handleGetDataEvent(e){const t=e.detail;if(t){const{field:i,query:o,onSuccess:a,onError:r}=t;try{const n=e.target.tagName.toLowerCase();let l=[];switch(n){case"dt-button":l=await this._api.getContactInfo(this.postType,this.postId);break;case"dt-connection":{const d=t.postType||this.postType,u=await this._api.listPostsCompact(d,o),h={...u,posts:u.posts.filter(g=>g.ID!==parseInt(this.postId,10))};h!=null&&h.posts&&(l=Le.convertApiValue("dt-connection",h==null?void 0:h.posts));break}case"dt-users-connection":{const d=t.postType||this.postType,u=await this._api.searchUsers(d,o),h={...u,posts:u.filter(g=>g.ID!==parseInt(this.postId,10))};h!=null&&h.posts&&(l=Le.convertApiValue("dt-users-connection",h==null?void 0:h.posts));break}case"dt-location":{l=await this._api.getLocations(this.postType,i,t.filter,o),l=l.location_grid.map(d=>({id:d.ID,label:d.name}));break}case"dt-tags":default:l=await this._api.getMultiSelectValues(this.postType,i,o),l=l.map(d=>({id:d,label:d}));break}a(l)}catch(n){r(n)}}}async handleChangeEvent(e){const t=e.detail;if(t){const{field:i,newValue:o,oldValue:a,remove:r}=t,n=e.target.tagName.toLowerCase(),l=Le.convertValue(n,o,a);if(e.target.removeAttribute("saved"),e.target.setAttribute("loading",!0),n==="dt-number"){const d=`${this.postType}-${this.postId}-${i}`;this.debounce(d,async()=>{try{const u=await this._api.updatePost(this.postType,this.postId,{[i]:l});document.dispatchEvent(new CustomEvent("dt:post:update",{detail:{response:u,field:i,value:l,component:n}})),e.target.removeAttribute("loading"),e.target.setAttribute("error",""),e.target.setAttribute("saved",!0)}catch(u){console.error(u),e.target.removeAttribute("loading"),e.target.setAttribute("invalid",!0),e.target.setAttribute("error",u.message||u.toString())}},1e3)}else try{const d={[i]:l};if(n==="dt-location-map"){const h=l.values.filter(g=>!g.lng||!g.lat);d[i].values=l.values.filter(g=>g.lng&&g.lat),d.contact_address=h,d.contact_address.length===0&&delete d.contact_address,d[i].values.length===0&&delete d[i]}const u=await this._api.updatePost(this.postType,this.postId,d);if(document.dispatchEvent(new CustomEvent("dt:post:update",{detail:{response:u,field:i,value:l,component:n}})),n==="dt-location-map"){const h=e.target;h.value=u[i]}e.target.removeAttribute("loading"),e.target.setAttribute("error",""),e.target.setAttribute("saved",!0)}catch(d){console.error(d),e.target.removeAttribute("loading"),e.target.setAttribute("invalid",!0),e.target.setAttribute("error",d.message||d.toString())}}}async handleUploadEvent(e){const t=e.detail;if(!t)return;const{files:i,metaKey:o,keyPrefix:a,onSuccess:r,onError:n}=t,l=e.target;l.setAttribute("loading",!0),l.removeAttribute("saved"),l.removeAttribute("error");try{const d=await this._api.uploadFiles(this.postType,this.postId,i,o,a||""),h=(await this._api.getPost(this.postType,this.postId))[o]||[];r&&r({result:d,fieldValue:h})}catch(d){l.setAttribute("error",d.message||"Upload failed"),n&&n(d)}finally{l.removeAttribute("loading")}}async handleDeleteFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,metaKey:o,onSuccess:a,onError:r}=t,n=e.target;n.setAttribute("loading",!0),n.removeAttribute("saved"),n.removeAttribute("error");try{await this._api.deleteFile(this.postType,this.postId,o,i),a&&a()}catch(l){n.setAttribute("error",l.message||"Delete failed"),r&&r(l)}finally{n.removeAttribute("loading")}}async handleRenameFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,newName:o,metaKey:a,onSuccess:r,onError:n}=t,l=e.target;l.setAttribute("loading",!0),l.removeAttribute("saved"),l.removeAttribute("error");try{const d=await this._api.renameFile(this.postType,this.postId,a,i,o);r&&r(d)}catch(d){l.setAttribute("error",d.message||"Rename failed"),n&&n(d)}finally{l.removeAttribute("loading")}}async handleDownloadFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,fileName:o,metaKey:a,onSuccess:r,onError:n}=t,l=e.target;try{const d=await this._api.downloadFile(this.postType,this.postId,a,i),u=window.URL.createObjectURL(d),h=document.createElement("a");h.href=u,h.download=o||"download",document.body.appendChild(h),h.click(),document.body.removeChild(h),window.URL.revokeObjectURL(u),r&&r()}catch(d){l.setAttribute("error",d.message||"Download failed"),n&&n(d)}}debounce(e,t,i){this.debounceTimers[e]&&clearTimeout(this.debounceTimers[e]),this.debounceTimers[e]=setTimeout(()=>{t()},i)}static convertApiValue(e,t){let i=t;switch(e){case"dt-connection":i=t.map(o=>({id:o.ID,label:o.name??o.post_title,link:o.permalink,status:o.status}));break;case"dt-users-connection":t&&!Array.isArray(t)&&(t.id||t.ID)?i=[{id:t.id||t.ID,label:t.display,avatar:t.avatar||""}]:Array.isArray(t)&&(i=t.map(o=>({id:o.id||o.ID,label:o.display||o.name,avatar:o.avatar||""})));break}return i}static convertValue(e,t,i=null){let o=t;if(t)switch(e.toLowerCase()){case"dt-toggle":typeof t=="string"&&(o=t.toLowerCase()==="true");break;case"dt-church-health-circle":case"dt-multi-select":case"dt-multi-select-button-group":case"dt-tags":typeof t=="string"&&(o=[t]),o={values:o.map(r=>{if(typeof r=="string"){const l={value:r};return r.startsWith("-")&&(l.delete=!0,l.value=r.substring(1)),l}const n={value:r.id};return r.delete&&(n.delete=r.delete),n}),force_values:!1};break;case"dt-users-connection":{const r=[],n=o.filter(d=>!d.delete);if(n.length<=1){o=n.length===1?parseInt(n[0].id,10):"";break}const l=new Map((i||[]).map(d=>[d.id,d]));for(const d of o){const u=l.get(d.id),h={id:d.id,changes:{}};if(u){let g=!1;const y=new Set([...Object.keys(u),...Object.keys(d)]);for(const _ of y)d[_]!==u[_]&&(h.changes[_]=Object.prototype.hasOwnProperty.call(d,_)?d[_]:void 0,g=!0);if(g){r.push(h);break}}else{h.changes={...d},r.push(h);break}}o=r[0].id;break}case"dt-connection":typeof t=="string"&&(o=[{id:t}]),o={values:o.map(r=>{const n={value:r.id};return r.delete&&(n.delete=r.delete),n}),force_values:!1};break;case"dt-location":const a=new Set((i||[]).map(r=>r.id));typeof t=="string"?o=[{id:t}]:o=t.filter(r=>!(a.has(r.id)&&!r.delete)),o={values:o.map(r=>{const n={value:r.id};return r.delete&&(n.delete=r.delete),n}),force_values:!1};break;case"dt-location-map":if(o=t.filter(r=>!((i||[]).includes(r)&&!r.delete)),i)for(const r of i)t.some(l=>r.id&&l.id&&r.id===l.id||r.key&&l.key&&r.key===l.key&&(!l.lat||!l.lng))||(r.delete=!0,o.push(r));o={values:o.map(r=>{const n=r;return r.delete&&(n.delete=r.delete),n}),force_values:!1};break;case"dt-multi-text":Array.isArray(t)?o=t.map(r=>{const n={...r};return delete n.tempKey,n}):typeof t=="string"&&(o=[{value:t}]);break}return o}static valueArrayDiff(e,t){const i={value1:[],value2:[]};if(Array.isArray(e)||(e=[]),Array.isArray(t)||(t=[]),e.length>0&&typeof e[0]!="object")return i.value1=e.filter(n=>!t.includes(n)),i.value2=t.filter(n=>!e.includes(n)),i;const o=n=>JSON.stringify(n),a=new Map(e.map(n=>[o(n),n])),r=new Map(t.map(n=>[o(n),n]));for(const[n,l]of a)r.has(n)||i.value1.push(l);for(const[n,l]of r)a.has(n)||i.value2.push(l);return i}}const Ua="0.8.10",Va={s226be12a5b1a27e8:"ሰነዶቹን ያንብቡ",s33f85f24c0f5f008:"አስቀምጥ",s36cb242ac90353bc:"መስኮች",s41cb4006238ebd3b:"የጅምላ አርትዕ",s5e8250fb85d64c23:"ገጠመ",s625ad019db843f94:"ተጠቀም",sac83d7f9358b43db:m`${0} ዝርዝር`,sbf1ca928ec1deb62:"ተጨማሪ እገዛ ይፈልጋሉ?",sd1a8dc951b2b6a98:"በዝርዝሩ ውስጥ እንደ ዓምዶች የትኞቹን መስኮች እንደሚያሳዩ ይምረጡ",sf9aee319a006c9b4:"አክል",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ba=Object.freeze(Object.defineProperty({__proto__:null,templates:Va},Symbol.toStringTag,{value:"Module"})),Ha={s04ceadb276bbe149:"خيارات التحميل...",s226be12a5b1a27e8:"اقرأ الوثائق",s29e25f5e4622f847:"افتح",s33f85f24c0f5f008:"حفظ",s36cb242ac90353bc:"مجالات",s41cb4006238ebd3b:"التحرير بالجملة",s5e8250fb85d64c23:"غلق",s625ad019db843f94:"استخدام",s9d51bfd93b5dbeca:"عرض المحفوظات",sac83d7f9358b43db:m`${0}قائمة الأعضاء`,sb1bd536b63e9e995:"المجال الخاص: أنا فقط أستطيع رؤية محتواه",sb59d68ed12d46377:"جار التحميل",sbf1ca928ec1deb62:"هل تريد المزيد من المساعدة؟",scb9a1ff437efbd2a:m`حَدِّد جميع ${0} التي تريد تحديثها من القائمة ، وقم بتحديثها أدناه`,sd1a8dc951b2b6a98:"اختر المجالات المراد عرضها كأعمدة في القائمة",seafe6ef133ede7da:m`عرض 1 of ${0}`,sf9aee319a006c9b4:"لأضف",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},Ka=Object.freeze(Object.defineProperty({__proto__:null,templates:Ha},Symbol.toStringTag,{value:"Module"})),Wa={s226be12a5b1a27e8:"اقرأ الوثائق",s33f85f24c0f5f008:"حفظ",s36cb242ac90353bc:"مجالات",s41cb4006238ebd3b:"التحرير بالجملة",s5e8250fb85d64c23:"أغلق",s625ad019db843f94:"استخدام",sbf1ca928ec1deb62:"هل تريد المزيد من المساعدة؟",sd1a8dc951b2b6a98:"اختر المجالات المراد عرضها كأعمدة في القائمة",sf9aee319a006c9b4:"إضافة",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ga=Object.freeze(Object.defineProperty({__proto__:null,templates:Wa},Symbol.toStringTag,{value:"Module"})),Za={s226be12a5b1a27e8:"Прочетете документацията",s33f85f24c0f5f008:"Запазете",s36cb242ac90353bc:"Полета",s41cb4006238ebd3b:"Групово редактиране",s5e8250fb85d64c23:"Близо",s625ad019db843f94:"Използвайте",sbf1ca928ec1deb62:"Имате нужда от повече помощ?",sd1a8dc951b2b6a98:"Изберете кои полета да се показват като колони в списъка",sf9aee319a006c9b4:"Добавяне",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ja=Object.freeze(Object.defineProperty({__proto__:null,templates:Za},Symbol.toStringTag,{value:"Module"})),Qa={s226be12a5b1a27e8:"নথিপত্রাদি পাঠ করুন",s33f85f24c0f5f008:"সংরক্ষণ করুন",s36cb242ac90353bc:"ক্ষেত্র",s41cb4006238ebd3b:"বাল্ক এডিট",s5e8250fb85d64c23:"বন্ধ",s625ad019db843f94:"ব্যবহার",sbf1ca928ec1deb62:"আরও সাহায্য প্রয়োজন?",sd1a8dc951b2b6a98:"তালিকার কলাম হিসাবে কোন ক্ষেত্রগুলি প্রদর্শিত হবে তা চয়ন করুন",sf9aee319a006c9b4:"অ্যাড",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Xa=Object.freeze(Object.defineProperty({__proto__:null,templates:Qa},Symbol.toStringTag,{value:"Module"})),Ya={s04ceadb276bbe149:"Učitavanje opcija...",s226be12a5b1a27e8:"Pročitajte dokumentaciju",s29e25f5e4622f847:"Otvorite dijalog",s33f85f24c0f5f008:"Sačuvaj",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Skupno uređivanje",s5e8250fb85d64c23:"Zatvori",s625ad019db843f94:"Koristi",s9d51bfd93b5dbeca:"Prikaži arhivirano",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Privatno polje: Samo ja mogu vidjeti njegov sadržaj",sb59d68ed12d46377:"Učitavanje",sbf1ca928ec1deb62:"Trebate više pomoći?",scb9a1ff437efbd2a:m`Odaberite sve ${0} koje želite ažurirati sa liste i ažurirajte ih ispod`,sd1a8dc951b2b6a98:"Odaberite koja polja će se prikazati kao kolone na listi",seafe6ef133ede7da:m`Prikazuje se 1 od ${0}`,sf9aee319a006c9b4:"Dodati",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},er=Object.freeze(Object.defineProperty({__proto__:null,templates:Ya},Symbol.toStringTag,{value:"Module"})),tr={s226be12a5b1a27e8:"Přečtěte si dokumentaci",s33f85f24c0f5f008:"Uložit",s36cb242ac90353bc:"Pole",s41cb4006238ebd3b:"Hromadná úprava",s5e8250fb85d64c23:"Zavřít",s625ad019db843f94:"Použití",sbf1ca928ec1deb62:"Potřebujete další pomoc?",sd1a8dc951b2b6a98:"Vyberte pole, která chcete v seznamu zobrazit jako sloupce",sf9aee319a006c9b4:"Přidat",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},ir=Object.freeze(Object.defineProperty({__proto__:null,templates:tr},Symbol.toStringTag,{value:"Module"})),or={s226be12a5b1a27e8:"Lesen Sie die Dokumentation",s33f85f24c0f5f008:"Speichern",s36cb242ac90353bc:"Felder",s41cb4006238ebd3b:"Im Stapel bearbeiten",s5e8250fb85d64c23:"Schließen",s625ad019db843f94:"Verwenden",sbf1ca928ec1deb62:"Benötigen Sie weitere Hilfe?",sd1a8dc951b2b6a98:"Wählen Sie aus, welche Felder in der Liste als Spalte angezeigt werden sollen",sf9aee319a006c9b4:"Hinzufügen",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},sr=Object.freeze(Object.defineProperty({__proto__:null,templates:or},Symbol.toStringTag,{value:"Module"})),ar={s226be12a5b1a27e8:"Διαβάστε την τεκμηρίωση",s33f85f24c0f5f008:"Αποθήκευση",s36cb242ac90353bc:"Πεδία",s41cb4006238ebd3b:"Μαζική Επεξεργασία",s5e8250fb85d64c23:"Κλείσιμο",s625ad019db843f94:"Χρήση",sbf1ca928ec1deb62:"Χρειάζεστε περισσότερη βοήθεια;",sd1a8dc951b2b6a98:"Επιλέξτε ποια πεδία θα εμφανίζονται ως στήλες στη λίστα",sf9aee319a006c9b4:"Προσθήκη",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},rr=Object.freeze(Object.defineProperty({__proto__:null,templates:ar},Symbol.toStringTag,{value:"Module"})),nr={sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",sf9aee319a006c9b4:"Add",sbf1ca928ec1deb62:"Need more help?",s226be12a5b1a27e8:"Read the documentation",s5e8250fb85d64c23:"Close",s29e25f5e4622f847:"Open Dialog",s33f85f24c0f5f008:"Save",s49730f3d5751a433:"Loading...",s625ad019db843f94:"Use",sd1a8dc951b2b6a98:"Choose which fields to display as columns in the list",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s36cb242ac90353bc:"Fields",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},lr=Object.freeze(Object.defineProperty({__proto__:null,templates:nr},Symbol.toStringTag,{value:"Module"})),dr={s8900c9de2dbae68b:"No hay opciones disponibles",sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sf9aee319a006c9b4:"Añadir",sd1a8dc951b2b6a98:"Choose which fields to display as columns in the list",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sb9b8c412407d5691:"This is where the bulk edit form will go.",sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s36cb242ac90353bc:"Fields",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading",sbf1ca928ec1deb62:"Need more help?",s226be12a5b1a27e8:"Read the documentation",s5e8250fb85d64c23:"Close",s29e25f5e4622f847:"Open Dialog"},cr=Object.freeze(Object.defineProperty({__proto__:null,templates:dr},Symbol.toStringTag,{value:"Module"})),ur={s04ceadb276bbe149:"Cargando opciones...",s226be12a5b1a27e8:"Leer la documentación",s29e25f5e4622f847:"Abrir Diálogo",s33f85f24c0f5f008:"Guardar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edición masiva",s5e8250fb85d64c23:"Cerrar",s625ad019db843f94:"Usar",s9d51bfd93b5dbeca:"Mostrar archivado",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sb59d68ed12d46377:"Cargando",sbf1ca928ec1deb62:"¿Necesitas más ayuda?",scb9a1ff437efbd2a:m`Selecciona todos los ${0} que quieras actualizar del listado y actualízalos debajo`,sd1a8dc951b2b6a98:"Elige qué campos mostrar como columnas en el listado",seafe6ef133ede7da:m`Mostrando 1 de ${0}`,sf9aee319a006c9b4:"Agregar",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},hr=Object.freeze(Object.defineProperty({__proto__:null,templates:ur},Symbol.toStringTag,{value:"Module"})),pr={s04ceadb276bbe149:"Cargando opciones...",s226be12a5b1a27e8:"Lee la documentación",s29e25f5e4622f847:"Abrir Diálogo",s33f85f24c0f5f008:"Guardar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edición masiva",s5e8250fb85d64c23:"Cerrar",s625ad019db843f94:"Usar",s9d51bfd93b5dbeca:"Mostrar archivado",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sb59d68ed12d46377:"Cargando",sbf1ca928ec1deb62:"¿Necesitas más ayuda?",scb9a1ff437efbd2a:m`Selecciona todos los ${0} que quieras actualizar del listado y actualízalos debajo`,sd1a8dc951b2b6a98:"Elige qué campos mostrar como columnas en el listado",seafe6ef133ede7da:m`Mostrando 1 de ${0}`,sf9aee319a006c9b4:"Agregar",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},fr=Object.freeze(Object.defineProperty({__proto__:null,templates:pr},Symbol.toStringTag,{value:"Module"})),br={s04ceadb276bbe149:"در حال بارگیری گزینه‌ها...",s226be12a5b1a27e8:"راهنمای سایت",s29e25f5e4622f847:"جعبه محاوره ای را باز کنید",s33f85f24c0f5f008:"صرفه جویی",s36cb242ac90353bc:"حوزه‌ها",s41cb4006238ebd3b:"ویرایش انبوه",s5e8250fb85d64c23:"بستن",s625ad019db843f94:"استفاده کنید",s9d51bfd93b5dbeca:"نمایش بایگانی شده",sac83d7f9358b43db:m`لیست ${0}`,sb1bd536b63e9e995:"زمینه خصوصی: فقط من می توانم محتوای آن را داشته باشم",sb59d68ed12d46377:"بارگیری",sbf1ca928ec1deb62:"آیا به راهنمایی بیشتری نیاز دارید؟",scb9a1ff437efbd2a:m`همۀ ${0} مورد نظر برای به روزرسانی را از لیست انتخاب کنید و آن‌ها را در زیر به روز کنید`,sd1a8dc951b2b6a98:"انتخاب کنید که کدام یک از حوزه‌ها به‌عنوان ستون در لیست نمایش داده شوند",seafe6ef133ede7da:m`نمایش 1 از ${0}`,sf9aee319a006c9b4:"افزودن",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},mr=Object.freeze(Object.defineProperty({__proto__:null,templates:br},Symbol.toStringTag,{value:"Module"})),gr={s04ceadb276bbe149:"Chargement les options...",s226be12a5b1a27e8:"Lire la documentation",s29e25f5e4622f847:"Ouvrir la boîte de dialogue",s33f85f24c0f5f008:"sauver",s36cb242ac90353bc:"Champs",s41cb4006238ebd3b:"Modification groupée",s5e8250fb85d64c23:"Fermer",s625ad019db843f94:"Utiliser",s9d51bfd93b5dbeca:"Afficher Archivé",sac83d7f9358b43db:m`${0} Liste`,sb1bd536b63e9e995:"Champ privé : je suis le seul à voir son contenu",sb59d68ed12d46377:"Chargement",sbf1ca928ec1deb62:"Besoin d'aide ?",scb9a1ff437efbd2a:m`Sélectionnez tous les ${0} que vous souhaitez mettre à jour dans la liste et mettez-les à jour ci-dessous`,sd1a8dc951b2b6a98:"Choisissez les champs à afficher sous forme de colonnes dans la liste",seafe6ef133ede7da:m`Affichage de 1 sur ${0}`,sf9aee319a006c9b4:"Ajouter",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},vr=Object.freeze(Object.defineProperty({__proto__:null,templates:gr},Symbol.toStringTag,{value:"Module"})),yr={s226be12a5b1a27e8:"डॉक्यूमेंटेशन पढ़ें",s33f85f24c0f5f008:"बचाना",s36cb242ac90353bc:"खेत",s41cb4006238ebd3b:"थोक संपादित",s5e8250fb85d64c23:"बंद",s625ad019db843f94:"उपयोग",sbf1ca928ec1deb62:"क्या और मदद चाहिये?",sd1a8dc951b2b6a98:"सूची में कॉलम के रूप में प्रदर्शित करने के लिए कौन से फ़ील्ड चुनें",sf9aee319a006c9b4:"जोडें",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},_r=Object.freeze(Object.defineProperty({__proto__:null,templates:yr},Symbol.toStringTag,{value:"Module"})),wr={s04ceadb276bbe149:"Učitavanje opcija...",s226be12a5b1a27e8:"Pročitaj dokumentaciju",s29e25f5e4622f847:"Otvorite dijalog",s33f85f24c0f5f008:"Spremi",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Skupno uređivanje",s5e8250fb85d64c23:"Zatvoriti",s625ad019db843f94:"Koristi",s9d51bfd93b5dbeca:"Prikaži arhivirano",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Privatno polje: Samo ja mogu vidjeti njegov sadržaj",sb59d68ed12d46377:"Učitavanje",sbf1ca928ec1deb62:"Trebate li pomoć?",scb9a1ff437efbd2a:m`Odaberite sve${0}koje želite ažurirati s liste i ažurirajte ih ispod`,sd1a8dc951b2b6a98:"Izaberite polja koja će se prikazivati kao stupci na popisu",seafe6ef133ede7da:m`Prikazuje se 1 od${0}`,sf9aee319a006c9b4:"Dodaj",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},$r=Object.freeze(Object.defineProperty({__proto__:null,templates:wr},Symbol.toStringTag,{value:"Module"})),xr={s226be12a5b1a27e8:"Olvasd el a dokumentációt",s33f85f24c0f5f008:"Megment",s36cb242ac90353bc:"Mezők",s41cb4006238ebd3b:"Tömeges Szerkesztés",s5e8250fb85d64c23:"Bezár",s625ad019db843f94:"Használ",sbf1ca928ec1deb62:"Több segítség szükséges?",sd1a8dc951b2b6a98:"Válassza ki, melyik mezők jelenjenek meg oszlopként a listában",sf9aee319a006c9b4:"Hozzáadás",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},kr=Object.freeze(Object.defineProperty({__proto__:null,templates:xr},Symbol.toStringTag,{value:"Module"})),Sr={s226be12a5b1a27e8:"Bacalah dokumentasi",s33f85f24c0f5f008:"Simpan",s36cb242ac90353bc:"Larik",s41cb4006238ebd3b:"Edit Massal",s5e8250fb85d64c23:"Menutup",s625ad019db843f94:"Gunakan",sbf1ca928ec1deb62:"Perlukan bantuan lagi?",sd1a8dc951b2b6a98:"Pilih larik mana yang akan ditampilkan sebagai kolom dalam daftar",sf9aee319a006c9b4:"Tambah",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Er=Object.freeze(Object.defineProperty({__proto__:null,templates:Sr},Symbol.toStringTag,{value:"Module"})),Ar={s04ceadb276bbe149:"Caricando opzioni...",s226be12a5b1a27e8:"Leggi la documentazione",s29e25f5e4622f847:"Apri Dialogo",s33f85f24c0f5f008:"Salvare",s36cb242ac90353bc:"Campi",s41cb4006238ebd3b:"Modifica in blocco",s5e8250fb85d64c23:"Chiudi",s625ad019db843f94:"Uso",s9d51bfd93b5dbeca:"Visualizza Archiviati",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privato: Solo io posso vedere i suoi contenuti",sb59d68ed12d46377:"Caricando",sbf1ca928ec1deb62:"Hai bisogno di ulteriore assistenza?",scb9a1ff437efbd2a:m`Seleziona tutti i ${0}vuoi aggiornare dalla lista e aggiornali sotto`,sd1a8dc951b2b6a98:"Scegli quali campi visualizzare come colonne nell'elenco",seafe6ef133ede7da:m`Visualizzando 1 di ${0}`,sf9aee319a006c9b4:"Inserisci",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},Or=Object.freeze(Object.defineProperty({__proto__:null,templates:Ar},Symbol.toStringTag,{value:"Module"})),Tr={s226be12a5b1a27e8:"ドキュメントを読む",s33f85f24c0f5f008:"セーブ",s36cb242ac90353bc:"田畑",s41cb4006238ebd3b:"一括編集",s5e8250fb85d64c23:"閉じる",s625ad019db843f94:"使用する",sbf1ca928ec1deb62:"もっと助けが必要ですか?",sd1a8dc951b2b6a98:"リストの列として表示するフィールドを選択します",sf9aee319a006c9b4:"追加",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Cr=Object.freeze(Object.defineProperty({__proto__:null,templates:Tr},Symbol.toStringTag,{value:"Module"})),Lr={s226be12a5b1a27e8:"문서 읽기",s33f85f24c0f5f008:"구하다",s36cb242ac90353bc:"필드",s41cb4006238ebd3b:"대량 수정",s5e8250fb85d64c23:"닫기",s625ad019db843f94:"사용",sbf1ca928ec1deb62:"더 많은 도움이 필요하신가요?",sd1a8dc951b2b6a98:"목록에서 어떤 필드를 표시할지 고르세요",sf9aee319a006c9b4:"추가",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ir=Object.freeze(Object.defineProperty({__proto__:null,templates:Lr},Symbol.toStringTag,{value:"Module"})),Pr={s226be12a5b1a27e8:"Прочитај ја документацијата",s33f85f24c0f5f008:"Зачувај",s36cb242ac90353bc:"Полиња",s41cb4006238ebd3b:"Уреди повеќе",s5e8250fb85d64c23:"Затвори",s625ad019db843f94:"Користи",sbf1ca928ec1deb62:"Дали ти треба повеќе помош?",sd1a8dc951b2b6a98:"Избери кои полиња да се прикажат како колони во листата",sf9aee319a006c9b4:"Додади",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Mr=Object.freeze(Object.defineProperty({__proto__:null,templates:Pr},Symbol.toStringTag,{value:"Module"})),jr={s226be12a5b1a27e8:"कागदपत्रे वाचा.",s33f85f24c0f5f008:"जतन करा",s36cb242ac90353bc:"क्षेत्रे",s41cb4006238ebd3b:"बल्क एडिट करा",s5e8250fb85d64c23:"बंद करा",s625ad019db843f94:"वापर",sbf1ca928ec1deb62:"अधिक मदत आवश्यक आहे का?",sd1a8dc951b2b6a98:"यादीत कोणती क्षेत्रे स्तंभ म्हणून दर्शवली जावीत हे निवडा",sf9aee319a006c9b4:"समाविष्ट करा",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},zr=Object.freeze(Object.defineProperty({__proto__:null,templates:jr},Symbol.toStringTag,{value:"Module"})),Fr={s226be12a5b1a27e8:"စာရွက်စာတမ်းများကိုဖတ်ပါ",s33f85f24c0f5f008:"သိမ်းဆည်းပါ",s36cb242ac90353bc:"နယ်ပယ်ဒေသများ",s5e8250fb85d64c23:"ပိတ်သည်",s625ad019db843f94:"အသုံးပြုပါ",sbf1ca928ec1deb62:"နောက်ထပ်အကူအညီလိုပါသလား။",sd1a8dc951b2b6a98:"စာရင်းရှိကော်လံများအနေဖြင့်ဖော်ပြမည့်မည်သည့်နယ်ပယ်ဒေသများကိုရွေးချယ်ပါ",sf9aee319a006c9b4:"ထည့်ပါ",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Dr=Object.freeze(Object.defineProperty({__proto__:null,templates:Fr},Symbol.toStringTag,{value:"Module"})),Rr={s226be12a5b1a27e8:"कागजात पढ्नुहोस्",s33f85f24c0f5f008:"सुरक्षित गर्नुहोस",s36cb242ac90353bc:"क्षेत्रहरू",s41cb4006238ebd3b:"थोक सम्पादन",s5e8250fb85d64c23:"बन्द गर्नुहोस",s625ad019db843f94:"प्रयोग गर्नुहोस्",sbf1ca928ec1deb62:"थप मद्दत चाहिन्छ?",sd1a8dc951b2b6a98:"सूचीमा स्तम्भहरूको रूपमा कुन क्षेत्रहरू प्रदर्शन गर्ने छनौट गर्नुहोस्",sf9aee319a006c9b4:"थप",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Nr=Object.freeze(Object.defineProperty({__proto__:null,templates:Rr},Symbol.toStringTag,{value:"Module"})),qr={s04ceadb276bbe149:"aan het laden.....",s226be12a5b1a27e8:"Lees de documentatie",s29e25f5e4622f847:"Dialoogvenster openen",s33f85f24c0f5f008:"Opslaan",s36cb242ac90353bc:"Velden",s41cb4006238ebd3b:"Bulkbewerking",s5e8250fb85d64c23:"sluit",s625ad019db843f94:"Gebruiken",sac83d7f9358b43db:m`${0} Lijst`,sb1bd536b63e9e995:"Privéveld: alleen ik kan de inhoud zien",sb59d68ed12d46377:"aan het laden",sbf1ca928ec1deb62:"Meer hulp nodig?",sd1a8dc951b2b6a98:"Kies welke velden u als kolommen in de lijst wilt weergeven",seafe6ef133ede7da:m`1 van ${0} laten zien`,sf9aee319a006c9b4:"Toevoegen",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,s9d51bfd93b5dbeca:"Show Archived"},Ur=Object.freeze(Object.defineProperty({__proto__:null,templates:qr},Symbol.toStringTag,{value:"Module"})),Vr={s226be12a5b1a27e8:"ਦਸਤਾਵੇਜ਼ ਪੜ੍ਹੋ",s33f85f24c0f5f008:"ਸੇਵ",s36cb242ac90353bc:"ਖੇਤਰ",s41cb4006238ebd3b:"ਥੋਕ ਸੰਪਾਦਨ",s5e8250fb85d64c23:"ਬੰਦ ਕਰੋ",s625ad019db843f94:"ਵਰਤੋਂ",sbf1ca928ec1deb62:"ਹੋਰ ਮਦਦ ਦੀ ਲੋੜ ਹੈ?",sd1a8dc951b2b6a98:"ਸੂਚੀ ਵਿੱਚ ਕਾਲਮ ਦੇ ਰੂਪ ਵਿੱਚ ਪ੍ਰਦਰਸ਼ਿਤ ਕਰਨ ਲਈ ਕਿਹੜੇ ਖੇਤਰ ਚੁਣੋ",sf9aee319a006c9b4:"ਸ਼ਾਮਲ ਕਰੋ",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Br=Object.freeze(Object.defineProperty({__proto__:null,templates:Vr},Symbol.toStringTag,{value:"Module"})),Hr={s226be12a5b1a27e8:"Przeczytaj dokumentację",s33f85f24c0f5f008:"Zapisać",s36cb242ac90353bc:"Pola",s41cb4006238ebd3b:"Edycja zbiorcza",s5e8250fb85d64c23:"Zamknij",s625ad019db843f94:"Posługiwać się",sbf1ca928ec1deb62:"Potrzebujesz pomocy?",sd1a8dc951b2b6a98:"Wybierz, które pola mają być wyświetlane jako kolumny na liście",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Kr=Object.freeze(Object.defineProperty({__proto__:null,templates:Hr},Symbol.toStringTag,{value:"Module"})),Wr={s226be12a5b1a27e8:"Leia a documentação",s33f85f24c0f5f008:"Salvar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edição em massa",s5e8250fb85d64c23:"Fechar",s625ad019db843f94:"Usar",sbf1ca928ec1deb62:"Precisa de mais ajuda?",sd1a8dc951b2b6a98:"Escolha quais campos exibir como colunas na lista",sf9aee319a006c9b4:"Adicionar",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Gr=Object.freeze(Object.defineProperty({__proto__:null,templates:Wr},Symbol.toStringTag,{value:"Module"})),Zr={s226be12a5b1a27e8:"Citiți documentația",s33f85f24c0f5f008:"Salvați",s36cb242ac90353bc:"Câmpuri",s41cb4006238ebd3b:"Editare masivă",s5e8250fb85d64c23:"Închide",s625ad019db843f94:"Utilizare",sbf1ca928ec1deb62:"Ai nevoie de mai mult ajutor?",sd1a8dc951b2b6a98:"Alegeți câmpurile care să fie afișate în coloane în listă",sf9aee319a006c9b4:"Adăuga",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Jr=Object.freeze(Object.defineProperty({__proto__:null,templates:Zr},Symbol.toStringTag,{value:"Module"})),Qr={s226be12a5b1a27e8:"Читать документацию",s33f85f24c0f5f008:"Сохранить",s36cb242ac90353bc:"Поля",s41cb4006238ebd3b:"Массовое редактирование",s5e8250fb85d64c23:"Закрыть",s625ad019db843f94:"Использовать",sbf1ca928ec1deb62:"Нужна дополнительная помощь?",sd1a8dc951b2b6a98:"Выберите, какие поля отображать как столбцы в списке",sf9aee319a006c9b4:"Добавить",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Xr=Object.freeze(Object.defineProperty({__proto__:null,templates:Qr},Symbol.toStringTag,{value:"Module"})),Yr={s226be12a5b1a27e8:"Preberite dokumentacijo",s33f85f24c0f5f008:"Shrani",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Urejanje v velikem obsegu",s5e8250fb85d64c23:"Zapri",s625ad019db843f94:"Uporaba",sbf1ca928ec1deb62:"Potrebujete več pomoči?",sd1a8dc951b2b6a98:"Izberite, katera polja naj bodo prikazana kot stolpci na seznamu",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},en=Object.freeze(Object.defineProperty({__proto__:null,templates:Yr},Symbol.toStringTag,{value:"Module"})),tn={s226be12a5b1a27e8:"Pročitajte dokumentaciju",s33f85f24c0f5f008:"Sačuvaj",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"masovno uređivanje",s5e8250fb85d64c23:"Zatvori",s625ad019db843f94:"Koristiti",sbf1ca928ec1deb62:"Treba vam više pomoći?",sd1a8dc951b2b6a98:"Izaberite koja polja da se prikazuju kao kolone na listi",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},on=Object.freeze(Object.defineProperty({__proto__:null,templates:tn},Symbol.toStringTag,{value:"Module"})),sn={s04ceadb276bbe149:"Inapakia chaguo...",s226be12a5b1a27e8:"Soma nyaraka",s29e25f5e4622f847:"Fungua Kidirisha",s33f85f24c0f5f008:"Hifadhi",s36cb242ac90353bc:"Mashamba",s41cb4006238ebd3b:"Hariri kwa Wingi",s5e8250fb85d64c23:"Funga",s625ad019db843f94:"Tumia",s9d51bfd93b5dbeca:"Onyesha Kumbukumbu",sac83d7f9358b43db:m`Orodha ya${0}`,sb1bd536b63e9e995:"Sehemu ya Faragha: Ni mimi pekee ninayeweza kuona maudhui yake",sb59d68ed12d46377:"Inapakia",sbf1ca928ec1deb62:"Unahitaji msaada zaidi?",scb9a1ff437efbd2a:m`Chagua ${0} zote ungependa kusasisha kutoka kwenye orodha, na uzisasishe hapa chini.`,sd1a8dc951b2b6a98:"Chagua ni sehemu zipi zitaonyeshwa kama safu wima kwenye orodha",seafe6ef133ede7da:m`Inaonyesha 1 kati ya ${0}`,sf9aee319a006c9b4:"Ongeza",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},an=Object.freeze(Object.defineProperty({__proto__:null,templates:sn},Symbol.toStringTag,{value:"Module"})),rn={s226be12a5b1a27e8:"อ่านเอกสาร",s33f85f24c0f5f008:"บันทึก",s36cb242ac90353bc:"ฟิลด์",s41cb4006238ebd3b:"แก้ไขเป็นกลุ่ม",s5e8250fb85d64c23:"ปิด",s625ad019db843f94:"ใช้",sbf1ca928ec1deb62:"ต้องการความช่วยเหลือเพิ่มเติมหรือไม่?",sd1a8dc951b2b6a98:"เลือกฟิลด์ที่จะแสดงเป็นคอลัมน์ในรายการ",sf9aee319a006c9b4:"เพิ่ม",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},nn=Object.freeze(Object.defineProperty({__proto__:null,templates:rn},Symbol.toStringTag,{value:"Module"})),ln={s226be12a5b1a27e8:"Basahin ang dokumentasyon",s33f85f24c0f5f008:"I-save",s36cb242ac90353bc:"Mga Field",s41cb4006238ebd3b:"Maramihang Pag-edit",s5e8250fb85d64c23:"Isara",s625ad019db843f94:"Gamitin",sbf1ca928ec1deb62:"Kailangan mo pa ba ng tulong?",sd1a8dc951b2b6a98:"Piliin kung aling mga field ang ipapakita bilang mga column sa listahan",sf9aee319a006c9b4:"Idagdag",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},dn=Object.freeze(Object.defineProperty({__proto__:null,templates:ln},Symbol.toStringTag,{value:"Module"})),cn={s04ceadb276bbe149:"Seçenekler Yükleniyor...",s226be12a5b1a27e8:"Belgeleri oku",s29e25f5e4622f847:"İletişim Kutusunu Aç",s33f85f24c0f5f008:"Kaydet",s36cb242ac90353bc:"Alanlar",s41cb4006238ebd3b:"Toplu Düzenleme",s5e8250fb85d64c23:"Kapat",s625ad019db843f94:"Kullan",s9d51bfd93b5dbeca:"Arşivlenmiş Göster",sac83d7f9358b43db:m`${0} Listesi`,sb1bd536b63e9e995:"Özel Alan: İçeriğini sadece ben görebilirim",sb59d68ed12d46377:"Yükleniyor",sbf1ca928ec1deb62:"Daha fazla yardıma ihtiyacınız var mı?",scb9a1ff437efbd2a:m`Listeden güncellemek istediğiniz tüm ${0} 'i seçin ve aşağıda güncelleyin`,sd1a8dc951b2b6a98:"Listede Hangi Alanların Sütun Olarak Görüntüleneceğini Seçin",seafe6ef133ede7da:m`Gösteriliyor 1 of ${0}`,sf9aee319a006c9b4:"Ekle",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},un=Object.freeze(Object.defineProperty({__proto__:null,templates:cn},Symbol.toStringTag,{value:"Module"})),hn={s226be12a5b1a27e8:"Прочитайте документацію",s33f85f24c0f5f008:"Зберегти",s36cb242ac90353bc:"Поля",s41cb4006238ebd3b:"Масове редагування",s5e8250fb85d64c23:"Закрити",s625ad019db843f94:"Використати",sbf1ca928ec1deb62:"Потрібна додаткова допомога?",sd1a8dc951b2b6a98:"Виберіть, яке поле відображати у вигляді стовпців у списку",sf9aee319a006c9b4:"Додати",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},pn=Object.freeze(Object.defineProperty({__proto__:null,templates:hn},Symbol.toStringTag,{value:"Module"})),fn={s226be12a5b1a27e8:"Đọc tài liệu",s33f85f24c0f5f008:"Lưu",s36cb242ac90353bc:"Trường",s41cb4006238ebd3b:"Chỉnh sửa Hàng loạt",s5e8250fb85d64c23:"Đóng",s625ad019db843f94:"Sử dụng",sbf1ca928ec1deb62:"Bạn cần trợ giúp thêm?",sd1a8dc951b2b6a98:"Chọn các trường để hiển thị dưới dạng cột trong danh sách",sf9aee319a006c9b4:"Bổ sung",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},bn=Object.freeze(Object.defineProperty({__proto__:null,templates:fn},Symbol.toStringTag,{value:"Module"})),mn={s226be12a5b1a27e8:"阅读文档",s33f85f24c0f5f008:"保存",s36cb242ac90353bc:"字段",s41cb4006238ebd3b:"批量编辑",s5e8250fb85d64c23:"关",s625ad019db843f94:"使用",sbf1ca928ec1deb62:"需要更多帮助吗?",sd1a8dc951b2b6a98:"选择哪些字段要在列表中显示为列",sf9aee319a006c9b4:"添加",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},gn=Object.freeze(Object.defineProperty({__proto__:null,templates:mn},Symbol.toStringTag,{value:"Module"})),vn={s04ceadb276bbe149:"正在載入選項...",s226be12a5b1a27e8:"閱讀文檔",s29e25f5e4622f847:"開啟對話視窗",s33f85f24c0f5f008:"儲存",s36cb242ac90353bc:"欄位",s41cb4006238ebd3b:"大量編輯",s5e8250fb85d64c23:"關",s625ad019db843f94:"使用",s9d51bfd93b5dbeca:"顯示已儲存",sac83d7f9358b43db:m`${0} 清單`,sb1bd536b63e9e995:"私人欄位:只有我可以看見內容",sb59d68ed12d46377:"載入中",sbf1ca928ec1deb62:"需要更多幫助嗎?",scb9a1ff437efbd2a:m`從清單中選取要更新的項目${0},並在下面進行更新`,sd1a8dc951b2b6a98:"選擇哪些欄位要顯示為列表中的直行",seafe6ef133ede7da:m`第1頁 (共${0}頁)`,sf9aee319a006c9b4:"新增",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},yn=Object.freeze(Object.defineProperty({__proto__:null,templates:vn},Symbol.toStringTag,{value:"Module"}));$.ApiService=vi,$.ComponentService=Le,$.DtAlert=Eo,$.DtBase=N,$.DtButton=yi,$.DtChurchHealthCircle=uo,$.DtConnection=ho,$.DtCopyText=fo,$.DtDate=jt,$.DtDatetime=bo,$.DtFileUpload=So,$.DtFormBase=M,$.DtIcon=ro,$.DtLabel=wi,$.DtLocation=mo,$.DtLocationMap=yo,$.DtMapModal=vo,$.DtModal=go,$.DtMultiSelect=Ze,$.DtMultiSelectButtonGroup=ko,$.DtMultiText=xo,$.DtNumberField=_o,$.DtSingleSelect=wo,$.DtTags=Ce,$.DtText=zt,$.DtTextArea=$o,$.DtTile=Ao,$.DtToggle=co,$.DtUsersConnection=po,$.version=Ua,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}); + `}}window.customElements.define("dt-tile",To);class Ie{get api(){return this._api}constructor(e,t,i,o="wp-json"){this.postType=e,this.postId=t,this.nonce=i,this.debounceTimers={},this._api=new yi(this.nonce,o),this.apiRoot=this._api.apiRoot,this.autoSaveComponents=["dt-connection","dt-users-connection","dt-date","dt-datetime","dt-location","dt-location-map","dt-multi-select","dt-number","dt-single-select","dt-tags","dt-text","dt-textarea","dt-toggle","dt-multi-text","dt-multi-text-groups","dt-multi-select-button-group","dt-button","dt-church-health-circle"],this.dynamicLoadComponents=["dt-connection","dt-tags","dt-modal","dt-button","dt-location","dt-users-connection"]}initialize(){this.postId&&this.enableAutoSave(),this.attachLoadEvents(),this.attachFileUploadEvents()}async attachLoadEvents(e){const t=document.querySelectorAll(e||this.dynamicLoadComponents.join(","));t&&t.forEach(i=>{i.dataset.eventDtGetData||(i.addEventListener("dt:get-data",this.handleGetDataEvent.bind(this)),i.dataset.eventDtGetData=!0)})}async checkDuplicates(e,t){const i=document.querySelector("dt-modal.duplicate-detected");if(i){const o=i.shadowRoot.querySelector(".duplicates-detected-button");o&&(o.style.display="none");const a=await this._api.checkDuplicateUsers(this.postType,this.postId);t&&a.ids.length>0&&o&&(o.style.display="block")}}enableAutoSave(e){const t=document.querySelectorAll(e||this.autoSaveComponents.join(","));t&&t.forEach(i=>{i.addEventListener("change",this.handleChangeEvent.bind(this))})}attachFileUploadEvents(e){const t=document.querySelectorAll(e||"dt-file-upload");t&&t.forEach(i=>{i.dataset.eventDtUpload||(i.addEventListener("dt:upload",this.handleUploadEvent.bind(this)),i.addEventListener("dt:delete-file",this.handleDeleteFileEvent.bind(this)),i.addEventListener("dt:rename-file",this.handleRenameFileEvent.bind(this)),i.addEventListener("dt:download-file",this.handleDownloadFileEvent.bind(this)),i.dataset.eventDtUpload=!0)})}async handleGetDataEvent(e){const t=e.detail;if(t){const{field:i,query:o,onSuccess:a,onError:r}=t;try{const n=e.target.tagName.toLowerCase();let l=[];switch(n){case"dt-button":l=await this._api.getContactInfo(this.postType,this.postId);break;case"dt-connection":{const d=t.postType||this.postType,u=await this._api.listPostsCompact(d,o),p={...u,posts:u.posts.filter(g=>g.ID!==parseInt(this.postId,10))};p!=null&&p.posts&&(l=Ie.convertApiValue("dt-connection",p==null?void 0:p.posts));break}case"dt-users-connection":{const d=t.postType||this.postType,u=await this._api.searchUsers(d,o),p={...u,posts:u.filter(g=>g.ID!==parseInt(this.postId,10))};p!=null&&p.posts&&(l=Ie.convertApiValue("dt-users-connection",p==null?void 0:p.posts));break}case"dt-location":{l=await this._api.getLocations(this.postType,i,t.filter,o),l=l.location_grid.map(d=>({id:d.ID,label:d.name}));break}case"dt-tags":default:l=await this._api.getMultiSelectValues(this.postType,i,o),l=l.map(d=>({id:d,label:d}));break}a(l)}catch(n){r(n)}}}async handleChangeEvent(e){const t=e.detail;if(t){const{field:i,newValue:o,oldValue:a,remove:r}=t,n=e.target.tagName.toLowerCase(),l=Ie.convertValue(n,o,a);if(e.target.removeAttribute("saved"),e.target.setAttribute("loading",!0),n==="dt-number"){const d=`${this.postType}-${this.postId}-${i}`;this.debounce(d,async()=>{try{const u=await this._api.updatePost(this.postType,this.postId,{[i]:l});document.dispatchEvent(new CustomEvent("dt:post:update",{detail:{response:u,field:i,value:l,component:n}})),e.target.removeAttribute("loading"),e.target.setAttribute("error",""),e.target.setAttribute("saved",!0)}catch(u){console.error(u),e.target.removeAttribute("loading"),e.target.setAttribute("invalid",!0),e.target.setAttribute("error",u.message||u.toString())}},1e3)}else try{const d={[i]:l};if(n==="dt-location-map"){const p=l.values.filter(g=>!g.lng||!g.lat);d[i].values=l.values.filter(g=>g.lng&&g.lat),d.contact_address=p,d.contact_address.length===0&&delete d.contact_address,d[i].values.length===0&&delete d[i]}const u=await this._api.updatePost(this.postType,this.postId,d);if(document.dispatchEvent(new CustomEvent("dt:post:update",{detail:{response:u,field:i,value:l,component:n}})),n==="dt-location-map"||n==="dt-multi-text-groups"){const p=e.target;p.value=u[i]}e.target.removeAttribute("loading"),e.target.setAttribute("error",""),e.target.setAttribute("saved",!0)}catch(d){console.error(d),e.target.removeAttribute("loading"),e.target.setAttribute("invalid",!0),e.target.setAttribute("error",d.message||d.toString())}}}async handleUploadEvent(e){const t=e.detail;if(!t)return;const{files:i,metaKey:o,keyPrefix:a,onSuccess:r,onError:n}=t,l=e.target;l.setAttribute("loading",!0),l.removeAttribute("saved"),l.removeAttribute("error");try{const d=await this._api.uploadFiles(this.postType,this.postId,i,o,a||""),p=(await this._api.getPost(this.postType,this.postId))[o]||[];r&&r({result:d,fieldValue:p})}catch(d){l.setAttribute("error",d.message||"Upload failed"),n&&n(d)}finally{l.removeAttribute("loading")}}async handleDeleteFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,metaKey:o,onSuccess:a,onError:r}=t,n=e.target;n.setAttribute("loading",!0),n.removeAttribute("saved"),n.removeAttribute("error");try{await this._api.deleteFile(this.postType,this.postId,o,i),a&&a()}catch(l){n.setAttribute("error",l.message||"Delete failed"),r&&r(l)}finally{n.removeAttribute("loading")}}async handleRenameFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,newName:o,metaKey:a,onSuccess:r,onError:n}=t,l=e.target;l.setAttribute("loading",!0),l.removeAttribute("saved"),l.removeAttribute("error");try{const d=await this._api.renameFile(this.postType,this.postId,a,i,o);r&&r(d)}catch(d){l.setAttribute("error",d.message||"Rename failed"),n&&n(d)}finally{l.removeAttribute("loading")}}async handleDownloadFileEvent(e){const t=e.detail;if(!t)return;const{fileKey:i,fileName:o,metaKey:a,onSuccess:r,onError:n}=t,l=e.target;try{const d=await this._api.downloadFile(this.postType,this.postId,a,i),u=window.URL.createObjectURL(d),p=document.createElement("a");p.href=u,p.download=o||"download",document.body.appendChild(p),p.click(),document.body.removeChild(p),window.URL.revokeObjectURL(u),r&&r()}catch(d){l.setAttribute("error",d.message||"Download failed"),n&&n(d)}}debounce(e,t,i){this.debounceTimers[e]&&clearTimeout(this.debounceTimers[e]),this.debounceTimers[e]=setTimeout(()=>{t()},i)}static convertApiValue(e,t){let i=t;switch(e){case"dt-connection":i=t.map(o=>({id:o.ID,label:o.name??o.post_title,link:o.permalink,status:o.status}));break;case"dt-users-connection":t&&!Array.isArray(t)&&(t.id||t.ID)?i=[{id:t.id||t.ID,label:t.display,avatar:t.avatar||""}]:Array.isArray(t)&&(i=t.map(o=>({id:o.id||o.ID,label:o.display||o.name,avatar:o.avatar||""})));break}return i}static convertValue(e,t,i=null){let o=t;if(t)switch(e.toLowerCase()){case"dt-toggle":typeof t=="string"&&(o=t.toLowerCase()==="true");break;case"dt-church-health-circle":case"dt-multi-select":case"dt-multi-select-button-group":case"dt-tags":typeof t=="string"&&(o=[t]),o={values:o.map(n=>{if(typeof n=="string"){const d={value:n};return n.startsWith("-")&&(d.delete=!0,d.value=n.substring(1)),d}const l={value:n.id};return n.delete&&(l.delete=n.delete),l}),force_values:!1};break;case"dt-users-connection":{const n=[],l=o.filter(u=>!u.delete);if(l.length<=1){o=l.length===1?parseInt(l[0].id,10):"";break}const d=new Map((i||[]).map(u=>[u.id,u]));for(const u of o){const p=d.get(u.id),g={id:u.id,changes:{}};if(p){let y=!1;const w=new Set([...Object.keys(p),...Object.keys(u)]);for(const T of w)u[T]!==p[T]&&(g.changes[T]=Object.prototype.hasOwnProperty.call(u,T)?u[T]:void 0,y=!0);if(y){n.push(g);break}}else{g.changes={...u},n.push(g);break}}o=n[0].id;break}case"dt-connection":typeof t=="string"&&(o=[{id:t}]),o={values:o.map(n=>{const l={value:n.id};return n.delete&&(l.delete=n.delete),l}),force_values:!1};break;case"dt-location":const a=new Set((i||[]).map(n=>n.id));typeof t=="string"?o=[{id:t}]:o=t.filter(n=>!(a.has(n.id)&&!n.delete)),o={values:o.map(n=>{const l={value:n.id};return n.delete&&(l.delete=n.delete),l}),force_values:!1};break;case"dt-location-map":if(o=t.filter(n=>!((i||[]).includes(n)&&!n.delete)),i)for(const n of i)t.some(d=>n.id&&d.id&&n.id===d.id||n.key&&d.key&&n.key===d.key&&(!d.lat||!d.lng))||(n.delete=!0,o.push(n));o={values:o.map(n=>{const l=n;return n.delete&&(l.delete=n.delete),l}),force_values:!1};break;case"dt-multi-text":Array.isArray(t)?o=t.map(n=>{const l={...n};return delete l.tempKey,l}):typeof t=="string"&&(o=[{value:t}]);break;case"dt-multi-text-groups":let r=[];Array.isArray(t)?r=t.filter(n=>n.value!=="").map(n=>{const l={...n};return delete l.tempKey,l}):typeof t=="string"&&(r=[{value:t}]),o={values:r,force_values:!1};break}return o}static valueArrayDiff(e,t){const i={value1:[],value2:[]};if(Array.isArray(e)||(e=[]),Array.isArray(t)||(t=[]),e.length>0&&typeof e[0]!="object")return i.value1=e.filter(n=>!t.includes(n)),i.value2=t.filter(n=>!e.includes(n)),i;const o=n=>JSON.stringify(n),a=new Map(e.map(n=>[o(n),n])),r=new Map(t.map(n=>[o(n),n]));for(const[n,l]of a)r.has(n)||i.value1.push(l);for(const[n,l]of r)a.has(n)||i.value2.push(l);return i}}const Va="0.8.11",Ba={s226be12a5b1a27e8:"ሰነዶቹን ያንብቡ",s33f85f24c0f5f008:"አስቀምጥ",s36cb242ac90353bc:"መስኮች",s41cb4006238ebd3b:"የጅምላ አርትዕ",s5e8250fb85d64c23:"ገጠመ",s625ad019db843f94:"ተጠቀም",sac83d7f9358b43db:m`${0} ዝርዝር`,sbf1ca928ec1deb62:"ተጨማሪ እገዛ ይፈልጋሉ?",sd1a8dc951b2b6a98:"በዝርዝሩ ውስጥ እንደ ዓምዶች የትኞቹን መስኮች እንደሚያሳዩ ይምረጡ",sf9aee319a006c9b4:"አክል",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ha=Object.freeze(Object.defineProperty({__proto__:null,templates:Ba},Symbol.toStringTag,{value:"Module"})),Ka={s04ceadb276bbe149:"خيارات التحميل...",s226be12a5b1a27e8:"اقرأ الوثائق",s29e25f5e4622f847:"افتح",s33f85f24c0f5f008:"حفظ",s36cb242ac90353bc:"مجالات",s41cb4006238ebd3b:"التحرير بالجملة",s5e8250fb85d64c23:"غلق",s625ad019db843f94:"استخدام",s9d51bfd93b5dbeca:"عرض المحفوظات",sac83d7f9358b43db:m`${0}قائمة الأعضاء`,sb1bd536b63e9e995:"المجال الخاص: أنا فقط أستطيع رؤية محتواه",sb59d68ed12d46377:"جار التحميل",sbf1ca928ec1deb62:"هل تريد المزيد من المساعدة؟",scb9a1ff437efbd2a:m`حَدِّد جميع ${0} التي تريد تحديثها من القائمة ، وقم بتحديثها أدناه`,sd1a8dc951b2b6a98:"اختر المجالات المراد عرضها كأعمدة في القائمة",seafe6ef133ede7da:m`عرض 1 of ${0}`,sf9aee319a006c9b4:"لأضف",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},Ga=Object.freeze(Object.defineProperty({__proto__:null,templates:Ka},Symbol.toStringTag,{value:"Module"})),Wa={s226be12a5b1a27e8:"اقرأ الوثائق",s33f85f24c0f5f008:"حفظ",s36cb242ac90353bc:"مجالات",s41cb4006238ebd3b:"التحرير بالجملة",s5e8250fb85d64c23:"أغلق",s625ad019db843f94:"استخدام",sbf1ca928ec1deb62:"هل تريد المزيد من المساعدة؟",sd1a8dc951b2b6a98:"اختر المجالات المراد عرضها كأعمدة في القائمة",sf9aee319a006c9b4:"إضافة",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Za=Object.freeze(Object.defineProperty({__proto__:null,templates:Wa},Symbol.toStringTag,{value:"Module"})),Ja={s226be12a5b1a27e8:"Прочетете документацията",s33f85f24c0f5f008:"Запазете",s36cb242ac90353bc:"Полета",s41cb4006238ebd3b:"Групово редактиране",s5e8250fb85d64c23:"Близо",s625ad019db843f94:"Използвайте",sbf1ca928ec1deb62:"Имате нужда от повече помощ?",sd1a8dc951b2b6a98:"Изберете кои полета да се показват като колони в списъка",sf9aee319a006c9b4:"Добавяне",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Qa=Object.freeze(Object.defineProperty({__proto__:null,templates:Ja},Symbol.toStringTag,{value:"Module"})),Xa={s226be12a5b1a27e8:"নথিপত্রাদি পাঠ করুন",s33f85f24c0f5f008:"সংরক্ষণ করুন",s36cb242ac90353bc:"ক্ষেত্র",s41cb4006238ebd3b:"বাল্ক এডিট",s5e8250fb85d64c23:"বন্ধ",s625ad019db843f94:"ব্যবহার",sbf1ca928ec1deb62:"আরও সাহায্য প্রয়োজন?",sd1a8dc951b2b6a98:"তালিকার কলাম হিসাবে কোন ক্ষেত্রগুলি প্রদর্শিত হবে তা চয়ন করুন",sf9aee319a006c9b4:"অ্যাড",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ya=Object.freeze(Object.defineProperty({__proto__:null,templates:Xa},Symbol.toStringTag,{value:"Module"})),er={s04ceadb276bbe149:"Učitavanje opcija...",s226be12a5b1a27e8:"Pročitajte dokumentaciju",s29e25f5e4622f847:"Otvorite dijalog",s33f85f24c0f5f008:"Sačuvaj",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Skupno uređivanje",s5e8250fb85d64c23:"Zatvori",s625ad019db843f94:"Koristi",s9d51bfd93b5dbeca:"Prikaži arhivirano",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Privatno polje: Samo ja mogu vidjeti njegov sadržaj",sb59d68ed12d46377:"Učitavanje",sbf1ca928ec1deb62:"Trebate više pomoći?",scb9a1ff437efbd2a:m`Odaberite sve ${0} koje želite ažurirati sa liste i ažurirajte ih ispod`,sd1a8dc951b2b6a98:"Odaberite koja polja će se prikazati kao kolone na listi",seafe6ef133ede7da:m`Prikazuje se 1 od ${0}`,sf9aee319a006c9b4:"Dodati",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},tr=Object.freeze(Object.defineProperty({__proto__:null,templates:er},Symbol.toStringTag,{value:"Module"})),ir={s226be12a5b1a27e8:"Přečtěte si dokumentaci",s33f85f24c0f5f008:"Uložit",s36cb242ac90353bc:"Pole",s41cb4006238ebd3b:"Hromadná úprava",s5e8250fb85d64c23:"Zavřít",s625ad019db843f94:"Použití",sbf1ca928ec1deb62:"Potřebujete další pomoc?",sd1a8dc951b2b6a98:"Vyberte pole, která chcete v seznamu zobrazit jako sloupce",sf9aee319a006c9b4:"Přidat",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},or=Object.freeze(Object.defineProperty({__proto__:null,templates:ir},Symbol.toStringTag,{value:"Module"})),sr={s226be12a5b1a27e8:"Lesen Sie die Dokumentation",s33f85f24c0f5f008:"Speichern",s36cb242ac90353bc:"Felder",s41cb4006238ebd3b:"Im Stapel bearbeiten",s5e8250fb85d64c23:"Schließen",s625ad019db843f94:"Verwenden",sbf1ca928ec1deb62:"Benötigen Sie weitere Hilfe?",sd1a8dc951b2b6a98:"Wählen Sie aus, welche Felder in der Liste als Spalte angezeigt werden sollen",sf9aee319a006c9b4:"Hinzufügen",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},ar=Object.freeze(Object.defineProperty({__proto__:null,templates:sr},Symbol.toStringTag,{value:"Module"})),rr={s226be12a5b1a27e8:"Διαβάστε την τεκμηρίωση",s33f85f24c0f5f008:"Αποθήκευση",s36cb242ac90353bc:"Πεδία",s41cb4006238ebd3b:"Μαζική Επεξεργασία",s5e8250fb85d64c23:"Κλείσιμο",s625ad019db843f94:"Χρήση",sbf1ca928ec1deb62:"Χρειάζεστε περισσότερη βοήθεια;",sd1a8dc951b2b6a98:"Επιλέξτε ποια πεδία θα εμφανίζονται ως στήλες στη λίστα",sf9aee319a006c9b4:"Προσθήκη",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},nr=Object.freeze(Object.defineProperty({__proto__:null,templates:rr},Symbol.toStringTag,{value:"Module"})),lr={sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",sf9aee319a006c9b4:"Add",sbf1ca928ec1deb62:"Need more help?",s226be12a5b1a27e8:"Read the documentation",s5e8250fb85d64c23:"Close",s29e25f5e4622f847:"Open Dialog",s33f85f24c0f5f008:"Save",s49730f3d5751a433:"Loading...",s625ad019db843f94:"Use",sd1a8dc951b2b6a98:"Choose which fields to display as columns in the list",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s36cb242ac90353bc:"Fields",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},dr=Object.freeze(Object.defineProperty({__proto__:null,templates:lr},Symbol.toStringTag,{value:"Module"})),cr={s8900c9de2dbae68b:"No hay opciones disponibles",sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sf9aee319a006c9b4:"Añadir",sd1a8dc951b2b6a98:"Choose which fields to display as columns in the list",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sb9b8c412407d5691:"This is where the bulk edit form will go.",sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s36cb242ac90353bc:"Fields",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading",sbf1ca928ec1deb62:"Need more help?",s226be12a5b1a27e8:"Read the documentation",s5e8250fb85d64c23:"Close",s29e25f5e4622f847:"Open Dialog"},ur=Object.freeze(Object.defineProperty({__proto__:null,templates:cr},Symbol.toStringTag,{value:"Module"})),hr={s04ceadb276bbe149:"Cargando opciones...",s226be12a5b1a27e8:"Leer la documentación",s29e25f5e4622f847:"Abrir Diálogo",s33f85f24c0f5f008:"Guardar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edición masiva",s5e8250fb85d64c23:"Cerrar",s625ad019db843f94:"Usar",s9d51bfd93b5dbeca:"Mostrar archivado",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sb59d68ed12d46377:"Cargando",sbf1ca928ec1deb62:"¿Necesitas más ayuda?",scb9a1ff437efbd2a:m`Selecciona todos los ${0} que quieras actualizar del listado y actualízalos debajo`,sd1a8dc951b2b6a98:"Elige qué campos mostrar como columnas en el listado",seafe6ef133ede7da:m`Mostrando 1 de ${0}`,sf9aee319a006c9b4:"Agregar",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},pr=Object.freeze(Object.defineProperty({__proto__:null,templates:hr},Symbol.toStringTag,{value:"Module"})),fr={s04ceadb276bbe149:"Cargando opciones...",s226be12a5b1a27e8:"Lee la documentación",s29e25f5e4622f847:"Abrir Diálogo",s33f85f24c0f5f008:"Guardar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edición masiva",s5e8250fb85d64c23:"Cerrar",s625ad019db843f94:"Usar",s9d51bfd93b5dbeca:"Mostrar archivado",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privado: Solo yo puedo ver su contenido",sb59d68ed12d46377:"Cargando",sbf1ca928ec1deb62:"¿Necesitas más ayuda?",scb9a1ff437efbd2a:m`Selecciona todos los ${0} que quieras actualizar del listado y actualízalos debajo`,sd1a8dc951b2b6a98:"Elige qué campos mostrar como columnas en el listado",seafe6ef133ede7da:m`Mostrando 1 de ${0}`,sf9aee319a006c9b4:"Agregar",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},br=Object.freeze(Object.defineProperty({__proto__:null,templates:fr},Symbol.toStringTag,{value:"Module"})),mr={s04ceadb276bbe149:"در حال بارگیری گزینه‌ها...",s226be12a5b1a27e8:"راهنمای سایت",s29e25f5e4622f847:"جعبه محاوره ای را باز کنید",s33f85f24c0f5f008:"صرفه جویی",s36cb242ac90353bc:"حوزه‌ها",s41cb4006238ebd3b:"ویرایش انبوه",s5e8250fb85d64c23:"بستن",s625ad019db843f94:"استفاده کنید",s9d51bfd93b5dbeca:"نمایش بایگانی شده",sac83d7f9358b43db:m`لیست ${0}`,sb1bd536b63e9e995:"زمینه خصوصی: فقط من می توانم محتوای آن را داشته باشم",sb59d68ed12d46377:"بارگیری",sbf1ca928ec1deb62:"آیا به راهنمایی بیشتری نیاز دارید؟",scb9a1ff437efbd2a:m`همۀ ${0} مورد نظر برای به روزرسانی را از لیست انتخاب کنید و آن‌ها را در زیر به روز کنید`,sd1a8dc951b2b6a98:"انتخاب کنید که کدام یک از حوزه‌ها به‌عنوان ستون در لیست نمایش داده شوند",seafe6ef133ede7da:m`نمایش 1 از ${0}`,sf9aee319a006c9b4:"افزودن",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},gr=Object.freeze(Object.defineProperty({__proto__:null,templates:mr},Symbol.toStringTag,{value:"Module"})),vr={s04ceadb276bbe149:"Chargement les options...",s226be12a5b1a27e8:"Lire la documentation",s29e25f5e4622f847:"Ouvrir la boîte de dialogue",s33f85f24c0f5f008:"sauver",s36cb242ac90353bc:"Champs",s41cb4006238ebd3b:"Modification groupée",s5e8250fb85d64c23:"Fermer",s625ad019db843f94:"Utiliser",s9d51bfd93b5dbeca:"Afficher Archivé",sac83d7f9358b43db:m`${0} Liste`,sb1bd536b63e9e995:"Champ privé : je suis le seul à voir son contenu",sb59d68ed12d46377:"Chargement",sbf1ca928ec1deb62:"Besoin d'aide ?",scb9a1ff437efbd2a:m`Sélectionnez tous les ${0} que vous souhaitez mettre à jour dans la liste et mettez-les à jour ci-dessous`,sd1a8dc951b2b6a98:"Choisissez les champs à afficher sous forme de colonnes dans la liste",seafe6ef133ede7da:m`Affichage de 1 sur ${0}`,sf9aee319a006c9b4:"Ajouter",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},yr=Object.freeze(Object.defineProperty({__proto__:null,templates:vr},Symbol.toStringTag,{value:"Module"})),_r={s226be12a5b1a27e8:"डॉक्यूमेंटेशन पढ़ें",s33f85f24c0f5f008:"बचाना",s36cb242ac90353bc:"खेत",s41cb4006238ebd3b:"थोक संपादित",s5e8250fb85d64c23:"बंद",s625ad019db843f94:"उपयोग",sbf1ca928ec1deb62:"क्या और मदद चाहिये?",sd1a8dc951b2b6a98:"सूची में कॉलम के रूप में प्रदर्शित करने के लिए कौन से फ़ील्ड चुनें",sf9aee319a006c9b4:"जोडें",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},wr=Object.freeze(Object.defineProperty({__proto__:null,templates:_r},Symbol.toStringTag,{value:"Module"})),$r={s04ceadb276bbe149:"Učitavanje opcija...",s226be12a5b1a27e8:"Pročitaj dokumentaciju",s29e25f5e4622f847:"Otvorite dijalog",s33f85f24c0f5f008:"Spremi",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Skupno uređivanje",s5e8250fb85d64c23:"Zatvoriti",s625ad019db843f94:"Koristi",s9d51bfd93b5dbeca:"Prikaži arhivirano",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Privatno polje: Samo ja mogu vidjeti njegov sadržaj",sb59d68ed12d46377:"Učitavanje",sbf1ca928ec1deb62:"Trebate li pomoć?",scb9a1ff437efbd2a:m`Odaberite sve${0}koje želite ažurirati s liste i ažurirajte ih ispod`,sd1a8dc951b2b6a98:"Izaberite polja koja će se prikazivati kao stupci na popisu",seafe6ef133ede7da:m`Prikazuje se 1 od${0}`,sf9aee319a006c9b4:"Dodaj",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},xr=Object.freeze(Object.defineProperty({__proto__:null,templates:$r},Symbol.toStringTag,{value:"Module"})),kr={s226be12a5b1a27e8:"Olvasd el a dokumentációt",s33f85f24c0f5f008:"Megment",s36cb242ac90353bc:"Mezők",s41cb4006238ebd3b:"Tömeges Szerkesztés",s5e8250fb85d64c23:"Bezár",s625ad019db843f94:"Használ",sbf1ca928ec1deb62:"Több segítség szükséges?",sd1a8dc951b2b6a98:"Válassza ki, melyik mezők jelenjenek meg oszlopként a listában",sf9aee319a006c9b4:"Hozzáadás",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Sr=Object.freeze(Object.defineProperty({__proto__:null,templates:kr},Symbol.toStringTag,{value:"Module"})),Er={s226be12a5b1a27e8:"Bacalah dokumentasi",s33f85f24c0f5f008:"Simpan",s36cb242ac90353bc:"Larik",s41cb4006238ebd3b:"Edit Massal",s5e8250fb85d64c23:"Menutup",s625ad019db843f94:"Gunakan",sbf1ca928ec1deb62:"Perlukan bantuan lagi?",sd1a8dc951b2b6a98:"Pilih larik mana yang akan ditampilkan sebagai kolom dalam daftar",sf9aee319a006c9b4:"Tambah",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ar=Object.freeze(Object.defineProperty({__proto__:null,templates:Er},Symbol.toStringTag,{value:"Module"})),Tr={s04ceadb276bbe149:"Caricando opzioni...",s226be12a5b1a27e8:"Leggi la documentazione",s29e25f5e4622f847:"Apri Dialogo",s33f85f24c0f5f008:"Salvare",s36cb242ac90353bc:"Campi",s41cb4006238ebd3b:"Modifica in blocco",s5e8250fb85d64c23:"Chiudi",s625ad019db843f94:"Uso",s9d51bfd93b5dbeca:"Visualizza Archiviati",sac83d7f9358b43db:m`${0} Lista`,sb1bd536b63e9e995:"Campo Privato: Solo io posso vedere i suoi contenuti",sb59d68ed12d46377:"Caricando",sbf1ca928ec1deb62:"Hai bisogno di ulteriore assistenza?",scb9a1ff437efbd2a:m`Seleziona tutti i ${0}vuoi aggiornare dalla lista e aggiornali sotto`,sd1a8dc951b2b6a98:"Scegli quali campi visualizzare come colonne nell'elenco",seafe6ef133ede7da:m`Visualizzando 1 di ${0}`,sf9aee319a006c9b4:"Inserisci",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},Or=Object.freeze(Object.defineProperty({__proto__:null,templates:Tr},Symbol.toStringTag,{value:"Module"})),Cr={s226be12a5b1a27e8:"ドキュメントを読む",s33f85f24c0f5f008:"セーブ",s36cb242ac90353bc:"田畑",s41cb4006238ebd3b:"一括編集",s5e8250fb85d64c23:"閉じる",s625ad019db843f94:"使用する",sbf1ca928ec1deb62:"もっと助けが必要ですか?",sd1a8dc951b2b6a98:"リストの列として表示するフィールドを選択します",sf9aee319a006c9b4:"追加",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Ir=Object.freeze(Object.defineProperty({__proto__:null,templates:Cr},Symbol.toStringTag,{value:"Module"})),Lr={s226be12a5b1a27e8:"문서 읽기",s33f85f24c0f5f008:"구하다",s36cb242ac90353bc:"필드",s41cb4006238ebd3b:"대량 수정",s5e8250fb85d64c23:"닫기",s625ad019db843f94:"사용",sbf1ca928ec1deb62:"더 많은 도움이 필요하신가요?",sd1a8dc951b2b6a98:"목록에서 어떤 필드를 표시할지 고르세요",sf9aee319a006c9b4:"추가",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Pr=Object.freeze(Object.defineProperty({__proto__:null,templates:Lr},Symbol.toStringTag,{value:"Module"})),Mr={s226be12a5b1a27e8:"Прочитај ја документацијата",s33f85f24c0f5f008:"Зачувај",s36cb242ac90353bc:"Полиња",s41cb4006238ebd3b:"Уреди повеќе",s5e8250fb85d64c23:"Затвори",s625ad019db843f94:"Користи",sbf1ca928ec1deb62:"Дали ти треба повеќе помош?",sd1a8dc951b2b6a98:"Избери кои полиња да се прикажат како колони во листата",sf9aee319a006c9b4:"Додади",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},jr=Object.freeze(Object.defineProperty({__proto__:null,templates:Mr},Symbol.toStringTag,{value:"Module"})),Fr={s226be12a5b1a27e8:"कागदपत्रे वाचा.",s33f85f24c0f5f008:"जतन करा",s36cb242ac90353bc:"क्षेत्रे",s41cb4006238ebd3b:"बल्क एडिट करा",s5e8250fb85d64c23:"बंद करा",s625ad019db843f94:"वापर",sbf1ca928ec1deb62:"अधिक मदत आवश्यक आहे का?",sd1a8dc951b2b6a98:"यादीत कोणती क्षेत्रे स्तंभ म्हणून दर्शवली जावीत हे निवडा",sf9aee319a006c9b4:"समाविष्ट करा",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},zr=Object.freeze(Object.defineProperty({__proto__:null,templates:Fr},Symbol.toStringTag,{value:"Module"})),Dr={s226be12a5b1a27e8:"စာရွက်စာတမ်းများကိုဖတ်ပါ",s33f85f24c0f5f008:"သိမ်းဆည်းပါ",s36cb242ac90353bc:"နယ်ပယ်ဒေသများ",s5e8250fb85d64c23:"ပိတ်သည်",s625ad019db843f94:"အသုံးပြုပါ",sbf1ca928ec1deb62:"နောက်ထပ်အကူအညီလိုပါသလား။",sd1a8dc951b2b6a98:"စာရင်းရှိကော်လံများအနေဖြင့်ဖော်ပြမည့်မည်သည့်နယ်ပယ်ဒေသများကိုရွေးချယ်ပါ",sf9aee319a006c9b4:"ထည့်ပါ",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s41cb4006238ebd3b:"Bulk Edit",s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Rr=Object.freeze(Object.defineProperty({__proto__:null,templates:Dr},Symbol.toStringTag,{value:"Module"})),Nr={s226be12a5b1a27e8:"कागजात पढ्नुहोस्",s33f85f24c0f5f008:"सुरक्षित गर्नुहोस",s36cb242ac90353bc:"क्षेत्रहरू",s41cb4006238ebd3b:"थोक सम्पादन",s5e8250fb85d64c23:"बन्द गर्नुहोस",s625ad019db843f94:"प्रयोग गर्नुहोस्",sbf1ca928ec1deb62:"थप मद्दत चाहिन्छ?",sd1a8dc951b2b6a98:"सूचीमा स्तम्भहरूको रूपमा कुन क्षेत्रहरू प्रदर्शन गर्ने छनौट गर्नुहोस्",sf9aee319a006c9b4:"थप",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},qr=Object.freeze(Object.defineProperty({__proto__:null,templates:Nr},Symbol.toStringTag,{value:"Module"})),Ur={s04ceadb276bbe149:"aan het laden.....",s226be12a5b1a27e8:"Lees de documentatie",s29e25f5e4622f847:"Dialoogvenster openen",s33f85f24c0f5f008:"Opslaan",s36cb242ac90353bc:"Velden",s41cb4006238ebd3b:"Bulkbewerking",s5e8250fb85d64c23:"sluit",s625ad019db843f94:"Gebruiken",sac83d7f9358b43db:m`${0} Lijst`,sb1bd536b63e9e995:"Privéveld: alleen ik kan de inhoud zien",sb59d68ed12d46377:"aan het laden",sbf1ca928ec1deb62:"Meer hulp nodig?",sd1a8dc951b2b6a98:"Kies welke velden u als kolommen in de lijst wilt weergeven",seafe6ef133ede7da:m`1 van ${0} laten zien`,sf9aee319a006c9b4:"Toevoegen",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,s9d51bfd93b5dbeca:"Show Archived"},Vr=Object.freeze(Object.defineProperty({__proto__:null,templates:Ur},Symbol.toStringTag,{value:"Module"})),Br={s226be12a5b1a27e8:"ਦਸਤਾਵੇਜ਼ ਪੜ੍ਹੋ",s33f85f24c0f5f008:"ਸੇਵ",s36cb242ac90353bc:"ਖੇਤਰ",s41cb4006238ebd3b:"ਥੋਕ ਸੰਪਾਦਨ",s5e8250fb85d64c23:"ਬੰਦ ਕਰੋ",s625ad019db843f94:"ਵਰਤੋਂ",sbf1ca928ec1deb62:"ਹੋਰ ਮਦਦ ਦੀ ਲੋੜ ਹੈ?",sd1a8dc951b2b6a98:"ਸੂਚੀ ਵਿੱਚ ਕਾਲਮ ਦੇ ਰੂਪ ਵਿੱਚ ਪ੍ਰਦਰਸ਼ਿਤ ਕਰਨ ਲਈ ਕਿਹੜੇ ਖੇਤਰ ਚੁਣੋ",sf9aee319a006c9b4:"ਸ਼ਾਮਲ ਕਰੋ",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Hr=Object.freeze(Object.defineProperty({__proto__:null,templates:Br},Symbol.toStringTag,{value:"Module"})),Kr={s226be12a5b1a27e8:"Przeczytaj dokumentację",s33f85f24c0f5f008:"Zapisać",s36cb242ac90353bc:"Pola",s41cb4006238ebd3b:"Edycja zbiorcza",s5e8250fb85d64c23:"Zamknij",s625ad019db843f94:"Posługiwać się",sbf1ca928ec1deb62:"Potrzebujesz pomocy?",sd1a8dc951b2b6a98:"Wybierz, które pola mają być wyświetlane jako kolumny na liście",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Gr=Object.freeze(Object.defineProperty({__proto__:null,templates:Kr},Symbol.toStringTag,{value:"Module"})),Wr={s226be12a5b1a27e8:"Leia a documentação",s33f85f24c0f5f008:"Salvar",s36cb242ac90353bc:"Campos",s41cb4006238ebd3b:"Edição em massa",s5e8250fb85d64c23:"Fechar",s625ad019db843f94:"Usar",sbf1ca928ec1deb62:"Precisa de mais ajuda?",sd1a8dc951b2b6a98:"Escolha quais campos exibir como colunas na lista",sf9aee319a006c9b4:"Adicionar",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Zr=Object.freeze(Object.defineProperty({__proto__:null,templates:Wr},Symbol.toStringTag,{value:"Module"})),Jr={s226be12a5b1a27e8:"Citiți documentația",s33f85f24c0f5f008:"Salvați",s36cb242ac90353bc:"Câmpuri",s41cb4006238ebd3b:"Editare masivă",s5e8250fb85d64c23:"Închide",s625ad019db843f94:"Utilizare",sbf1ca928ec1deb62:"Ai nevoie de mai mult ajutor?",sd1a8dc951b2b6a98:"Alegeți câmpurile care să fie afișate în coloane în listă",sf9aee319a006c9b4:"Adăuga",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Qr=Object.freeze(Object.defineProperty({__proto__:null,templates:Jr},Symbol.toStringTag,{value:"Module"})),Xr={s226be12a5b1a27e8:"Читать документацию",s33f85f24c0f5f008:"Сохранить",s36cb242ac90353bc:"Поля",s41cb4006238ebd3b:"Массовое редактирование",s5e8250fb85d64c23:"Закрыть",s625ad019db843f94:"Использовать",sbf1ca928ec1deb62:"Нужна дополнительная помощь?",sd1a8dc951b2b6a98:"Выберите, какие поля отображать как столбцы в списке",sf9aee319a006c9b4:"Добавить",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},Yr=Object.freeze(Object.defineProperty({__proto__:null,templates:Xr},Symbol.toStringTag,{value:"Module"})),en={s226be12a5b1a27e8:"Preberite dokumentacijo",s33f85f24c0f5f008:"Shrani",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"Urejanje v velikem obsegu",s5e8250fb85d64c23:"Zapri",s625ad019db843f94:"Uporaba",sbf1ca928ec1deb62:"Potrebujete več pomoči?",sd1a8dc951b2b6a98:"Izberite, katera polja naj bodo prikazana kot stolpci na seznamu",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},tn=Object.freeze(Object.defineProperty({__proto__:null,templates:en},Symbol.toStringTag,{value:"Module"})),on={s226be12a5b1a27e8:"Pročitajte dokumentaciju",s33f85f24c0f5f008:"Sačuvaj",s36cb242ac90353bc:"Polja",s41cb4006238ebd3b:"masovno uređivanje",s5e8250fb85d64c23:"Zatvori",s625ad019db843f94:"Koristiti",sbf1ca928ec1deb62:"Treba vam više pomoći?",sd1a8dc951b2b6a98:"Izaberite koja polja da se prikazuju kao kolone na listi",sf9aee319a006c9b4:"Dodaj",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},sn=Object.freeze(Object.defineProperty({__proto__:null,templates:on},Symbol.toStringTag,{value:"Module"})),an={s04ceadb276bbe149:"Inapakia chaguo...",s226be12a5b1a27e8:"Soma nyaraka",s29e25f5e4622f847:"Fungua Kidirisha",s33f85f24c0f5f008:"Hifadhi",s36cb242ac90353bc:"Mashamba",s41cb4006238ebd3b:"Hariri kwa Wingi",s5e8250fb85d64c23:"Funga",s625ad019db843f94:"Tumia",s9d51bfd93b5dbeca:"Onyesha Kumbukumbu",sac83d7f9358b43db:m`Orodha ya${0}`,sb1bd536b63e9e995:"Sehemu ya Faragha: Ni mimi pekee ninayeweza kuona maudhui yake",sb59d68ed12d46377:"Inapakia",sbf1ca928ec1deb62:"Unahitaji msaada zaidi?",scb9a1ff437efbd2a:m`Chagua ${0} zote ungependa kusasisha kutoka kwenye orodha, na uzisasishe hapa chini.`,sd1a8dc951b2b6a98:"Chagua ni sehemu zipi zitaonyeshwa kama safu wima kwenye orodha",seafe6ef133ede7da:m`Inaonyesha 1 kati ya ${0}`,sf9aee319a006c9b4:"Ongeza",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},rn=Object.freeze(Object.defineProperty({__proto__:null,templates:an},Symbol.toStringTag,{value:"Module"})),nn={s226be12a5b1a27e8:"อ่านเอกสาร",s33f85f24c0f5f008:"บันทึก",s36cb242ac90353bc:"ฟิลด์",s41cb4006238ebd3b:"แก้ไขเป็นกลุ่ม",s5e8250fb85d64c23:"ปิด",s625ad019db843f94:"ใช้",sbf1ca928ec1deb62:"ต้องการความช่วยเหลือเพิ่มเติมหรือไม่?",sd1a8dc951b2b6a98:"เลือกฟิลด์ที่จะแสดงเป็นคอลัมน์ในรายการ",sf9aee319a006c9b4:"เพิ่ม",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},ln=Object.freeze(Object.defineProperty({__proto__:null,templates:nn},Symbol.toStringTag,{value:"Module"})),dn={s226be12a5b1a27e8:"Basahin ang dokumentasyon",s33f85f24c0f5f008:"I-save",s36cb242ac90353bc:"Mga Field",s41cb4006238ebd3b:"Maramihang Pag-edit",s5e8250fb85d64c23:"Isara",s625ad019db843f94:"Gamitin",sbf1ca928ec1deb62:"Kailangan mo pa ba ng tulong?",sd1a8dc951b2b6a98:"Piliin kung aling mga field ang ipapakita bilang mga column sa listahan",sf9aee319a006c9b4:"Idagdag",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},cn=Object.freeze(Object.defineProperty({__proto__:null,templates:dn},Symbol.toStringTag,{value:"Module"})),un={s04ceadb276bbe149:"Seçenekler Yükleniyor...",s226be12a5b1a27e8:"Belgeleri oku",s29e25f5e4622f847:"İletişim Kutusunu Aç",s33f85f24c0f5f008:"Kaydet",s36cb242ac90353bc:"Alanlar",s41cb4006238ebd3b:"Toplu Düzenleme",s5e8250fb85d64c23:"Kapat",s625ad019db843f94:"Kullan",s9d51bfd93b5dbeca:"Arşivlenmiş Göster",sac83d7f9358b43db:m`${0} Listesi`,sb1bd536b63e9e995:"Özel Alan: İçeriğini sadece ben görebilirim",sb59d68ed12d46377:"Yükleniyor",sbf1ca928ec1deb62:"Daha fazla yardıma ihtiyacınız var mı?",scb9a1ff437efbd2a:m`Listeden güncellemek istediğiniz tüm ${0} 'i seçin ve aşağıda güncelleyin`,sd1a8dc951b2b6a98:"Listede Hangi Alanların Sütun Olarak Görüntüleneceğini Seçin",seafe6ef133ede7da:m`Gösteriliyor 1 of ${0}`,sf9aee319a006c9b4:"Ekle",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},hn=Object.freeze(Object.defineProperty({__proto__:null,templates:un},Symbol.toStringTag,{value:"Module"})),pn={s226be12a5b1a27e8:"Прочитайте документацію",s33f85f24c0f5f008:"Зберегти",s36cb242ac90353bc:"Поля",s41cb4006238ebd3b:"Масове редагування",s5e8250fb85d64c23:"Закрити",s625ad019db843f94:"Використати",sbf1ca928ec1deb62:"Потрібна додаткова допомога?",sd1a8dc951b2b6a98:"Виберіть, яке поле відображати у вигляді стовпців у списку",sf9aee319a006c9b4:"Додати",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},fn=Object.freeze(Object.defineProperty({__proto__:null,templates:pn},Symbol.toStringTag,{value:"Module"})),bn={s226be12a5b1a27e8:"Đọc tài liệu",s33f85f24c0f5f008:"Lưu",s36cb242ac90353bc:"Trường",s41cb4006238ebd3b:"Chỉnh sửa Hàng loạt",s5e8250fb85d64c23:"Đóng",s625ad019db843f94:"Sử dụng",sbf1ca928ec1deb62:"Bạn cần trợ giúp thêm?",sd1a8dc951b2b6a98:"Chọn các trường để hiển thị dưới dạng cột trong danh sách",sf9aee319a006c9b4:"Bổ sung",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},mn=Object.freeze(Object.defineProperty({__proto__:null,templates:bn},Symbol.toStringTag,{value:"Module"})),gn={s226be12a5b1a27e8:"阅读文档",s33f85f24c0f5f008:"保存",s36cb242ac90353bc:"字段",s41cb4006238ebd3b:"批量编辑",s5e8250fb85d64c23:"关",s625ad019db843f94:"使用",sbf1ca928ec1deb62:"需要更多帮助吗?",sd1a8dc951b2b6a98:"选择哪些字段要在列表中显示为列",sf9aee319a006c9b4:"添加",sb1bd536b63e9e995:"Private Field: Only I can see its content",s04ceadb276bbe149:"Loading options...",sd2e180dab4fbcfb9:"No Data Available",s29e25f5e4622f847:"Open Dialog",s49730f3d5751a433:"Loading...",scb9a1ff437efbd2a:m`Select all the ${0} you want to update from the list, and update them below`,sac83d7f9358b43db:m`${0} List`,seafe6ef133ede7da:m`Showing 1 of ${0}`,s9d51bfd93b5dbeca:"Show Archived",sb59d68ed12d46377:"Loading"},vn=Object.freeze(Object.defineProperty({__proto__:null,templates:gn},Symbol.toStringTag,{value:"Module"})),yn={s04ceadb276bbe149:"正在載入選項...",s226be12a5b1a27e8:"閱讀文檔",s29e25f5e4622f847:"開啟對話視窗",s33f85f24c0f5f008:"儲存",s36cb242ac90353bc:"欄位",s41cb4006238ebd3b:"大量編輯",s5e8250fb85d64c23:"關",s625ad019db843f94:"使用",s9d51bfd93b5dbeca:"顯示已儲存",sac83d7f9358b43db:m`${0} 清單`,sb1bd536b63e9e995:"私人欄位:只有我可以看見內容",sb59d68ed12d46377:"載入中",sbf1ca928ec1deb62:"需要更多幫助嗎?",scb9a1ff437efbd2a:m`從清單中選取要更新的項目${0},並在下面進行更新`,sd1a8dc951b2b6a98:"選擇哪些欄位要顯示為列表中的直行",seafe6ef133ede7da:m`第1頁 (共${0}頁)`,sf9aee319a006c9b4:"新增",sd2e180dab4fbcfb9:"No Data Available",s49730f3d5751a433:"Loading..."},_n=Object.freeze(Object.defineProperty({__proto__:null,templates:yn},Symbol.toStringTag,{value:"Module"}));_.ApiService=yi,_.ComponentService=Ie,_.DtAlert=Ao,_.DtBase=N,_.DtButton=_i,_.DtChurchHealthCircle=ho,_.DtConnection=po,_.DtCopyText=bo,_.DtDate=jt,_.DtDatetime=mo,_.DtFileUpload=Eo,_.DtFormBase=M,_.DtIcon=no,_.DtLabel=$i,_.DtLocation=go,_.DtLocationMap=_o,_.DtMapModal=yo,_.DtModal=vo,_.DtMultiSelect=Ze,_.DtMultiSelectButtonGroup=So,_.DtMultiText=zt,_.DtMultiTextGroups=ko,_.DtNumberField=wo,_.DtSingleSelect=$o,_.DtTags=Ce,_.DtText=Ft,_.DtTextArea=xo,_.DtTile=To,_.DtToggle=uo,_.DtUsersConnection=fo,_.version=Va,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}); diff --git a/dt-assets/js/details.js b/dt-assets/js/details.js index 381a1d2228..96912d839a 100644 --- a/dt-assets/js/details.js +++ b/dt-assets/js/details.js @@ -82,53 +82,6 @@ jQuery(document).ready(function ($) { }; } - /* field type: link */ - $('input.link-input').change(function () { - const link_input = $(this); - const fieldKey = $(link_input).data('field-key'); - const type = $(link_input).data('type'); - const meta_id = $(link_input).data('meta-id'); - const value = $(link_input).val(); - - if ($(link_input).prop('required') && value === '') { - return; - } - - const fieldValues = { - values: [ - { - value, - type, - meta_id, - }, - ], - }; - $(`#${fieldKey}-spinner`).addClass('active'); - rest_api - .update_post(post_type, post_id, { [fieldKey]: fieldValues }) - .then((newPost) => { - $(`#${fieldKey}-spinner`).removeClass('active'); - post = newPost; - - // Make sure a key exists for the new link field. - if (post && post[fieldKey] && post[fieldKey].length > 0) { - let updated_values = post[fieldKey].filter((option) => { - return option['type'] === type && option['value'] === value; - }); - - // This ensures any immediate updates, are assigned to correct link input and not to a new/duplicated input field. - if ( - updated_values && - updated_values[0] && - updated_values[0]['meta_id'] - ) { - $(link_input).data('meta-id', updated_values[0]['meta_id']); - } - } - }) - .catch(window.handleAjaxError); - }); - /* field type: datetime */ $('.dt_date_time_group').each(function setTimePickers() { const timestamp = this.dataset.timestamp; diff --git a/dt-assets/js/merge-post-details.js b/dt-assets/js/merge-post-details.js index 32a1187936..33786f7363 100644 --- a/dt-assets/js/merge-post-details.js +++ b/dt-assets/js/merge-post-details.js @@ -228,10 +228,11 @@ jQuery(function ($) { return typeahead && !window.lodash.isEmpty(typeahead.items); } - case 'link': + case 'link': { return !window.lodash.isEmpty( - $(td_field_input).find('input.link-input').not('[value=""]'), + $(td_field_input).find('dt-multi-text-groups').not('[value=""]'), ); + } case 'communication_channel': return !window.lodash.isEmpty( @@ -314,54 +315,13 @@ jQuery(function ($) { case 'communication_channel': case 'location_meta': case 'location': + case 'link': // Disable field accordingly, based on read-only flag $(td) .find('#' + field_id) .prop('disabled', read_only); break; - case 'link': { - // Disable/Display field accordingly, based on read-only flag - $(td).find('input.link-input').prop('disabled', read_only); - $(td).find('button.link-delete-button').prop('disabled', read_only); - - // Ensure add link functionality is suppressed. - $(td).find('div.add-link-dropdown').remove(); - - if (!read_only) { - $(td) - .find('input.link-input') - .each(function (idx, input) { - if (window.lodash.isEmpty($(input).val())) { - $(input).parent().hide(); - } - }); - - /** - * Remove - */ - - $(document).on('click', '.link-delete-button', (evt) => { - const delete_but = $(evt.currentTarget); - - // Keep a record of deleted meta_ids. - let meta_id = $(delete_but).data('meta-id'); - let deleted_items = $(field_meta).val() - ? JSON.parse($(field_meta).val()) - : []; - if (!window.lodash.includes(deleted_items, meta_id)) { - deleted_items.push(meta_id); - $(field_meta).val(JSON.stringify(deleted_items)); - } - - // Finally, remove from parent. - $(delete_but).parent().parent().remove(); - }); - } - - break; - } - case 'user_select': { let user_select_typeahead_field_input = '.js-typeahead-' + field_id; @@ -562,73 +522,70 @@ jQuery(function ($) { } case 'link': { - // Determine selector source field link inputs to be processed. - let source_field_link_inputs = []; - let tr = $(selector).parent().parent(); - $(tr) - .find('.td-field-input input.link-input') - .each(function (idx, input) { - if ($(input).val()) { - source_field_link_inputs.push(input); - } - }); + // Determine if we are adding values from the merge contact or the primary contact + let baseURI = selector.prop('baseURI'); + let mergeFieldID = selector.prop('dataset').merge_field_id; + let currentID = mergeFieldID.substring(0, mergeFieldID.indexOf('_')); + let dupeID = baseURI.substring( + baseURI.indexOf('dupeid=') + 'dupeid='.length, + ); + let mergeContact = currentID === dupeID; - // Delete/Add updated post record, based on identified source field inputs. - let main_updated_fields_div = $('#main_updated_fields_div'); - let link_field_meta_input = $(main_updated_fields_div) - .find(`.link-list-${update_field_id}`) - .parent() - .parent() - .find('#field_meta'); - let deleted_items = $(link_field_meta_input).val() - ? JSON.parse($(link_field_meta_input).val()) - : []; - - // Locate by link field values. - $.each(source_field_link_inputs, function (idx, input) { - let link_list_section_div = $(main_updated_fields_div).find( - `.link-list-${update_field_id} .link-section--${$(input).data('type')}`, - ); - let matched_input = $(link_list_section_div).find( - `.input-group input[value="${$(input).val()}"].link-input`, - ); + // Determine values to be updated + const sourceValue = sourceField.val() || []; + let mergedValue = mergedField.val() || []; - // Handle accordingly, based on incoming selected state. + // Update values accordingly + for (const sourceItem of sourceValue) { + const valIdx = mergedValue.findIndex( + (x) => x.meta_id === sourceItem.meta_id, + ); if (is_selected) { - // Add new updated link fields. - if (matched_input.length === 0) { - $(link_list_section_div).append(` -
    - -
    - -
    -
    `); - - // Remove any previously deleted entries. - window.lodash.remove(deleted_items, function (meta_id) { - return meta_id === $(input).data('meta-id'); - }); - $(link_field_meta_input).val(JSON.stringify(deleted_items)); + if (mergeContact) { + if (sourceItem.meta_id != null) { + sourceItem.tempKey = sourceItem.meta_id; + sourceItem.meta_id = null; + } + mergedValue.push(sourceItem); + } else { + if (valIdx < 0) { + mergedValue.push(sourceItem); + } else { + // set delete to false IF source item has delete as false + if (!sourceItem.delete) { + mergedValue[valIdx].delete = false; + } + } } } else { - // Remove new updated link fields. - if (matched_input.length > 0) { - $(matched_input).parent().remove(); - - // Keep a record of deleted meta_ids. - if ( - !window.lodash.includes( - deleted_items, - $(matched_input).data('meta-id'), - ) - ) { - deleted_items.push($(matched_input).data('meta-id')); - $(link_field_meta_input).val(JSON.stringify(deleted_items)); + // Remove, if present and not still selected anywhere else! + if ( + !is_field_value_still_selected( + update_field_id, + field_type, + sourceItem, + ) + ) { + if (valIdx >= 0) { + if (mergeContact) { + mergedValue.splice(valIdx, 1); + } else { + // set delete to true + mergedValue[valIdx].delete = true; + } } } } - }); + } + + // if there is an empty value, remove it + const emptyIdx = mergedValue.findIndex((x) => !x.value && x.tempKey); + if (mergedValue.length > 1 && emptyIdx > -1) { + mergedValue.splice(emptyIdx, 1); + } + + // set value attribute of element + mergedField.attr('value', JSON.stringify(mergedValue)); break; } @@ -1400,61 +1357,6 @@ jQuery(function ($) { break; } - case 'link': { - // Determine values to be processed - let link_entries = []; - let link_deletions = field_meta.val() - ? JSON.parse(field_meta.val()) - : []; - - // Package values and any deletions - $(td) - .find('.input-group input.link-input') - .each(function (idx, input) { - let link_type = $(input).data('type'); - let link_meta_id = $(input).data('meta-id'); - let link_val = $(input).val(); - - let has_value = is_link_field_value_already_in_primary( - post_field_id, - link_type, - link_meta_id, - link_val, - true, - ); - let matched_meta_id = is_link_field_value_already_in_primary( - post_field_id, - link_type, - link_meta_id, - link_val, - false, - ); - - if (link_val && !has_value) { - link_entries.push({ - value: link_val, - type: link_type, - meta_id: matched_meta_id ? link_meta_id : '', - }); - } - }); - - $.each(link_deletions, function (idx, deleted_meta_id) { - link_entries.push({ - meta_id: deleted_meta_id, - delete: true, - }); - }); - - // If present, capture entries - if (link_entries) { - values[post_field_id] = { - values: link_entries, - }; - } - break; - } - case 'user_select': { let user_select_typeahead = window.Typeahead['.js-typeahead-' + field_id]; diff --git a/dt-assets/js/new-bulk-record.js b/dt-assets/js/new-bulk-record.js index 473e3b5ac6..179c4c5fc5 100644 --- a/dt-assets/js/new-bulk-record.js +++ b/dt-assets/js/new-bulk-record.js @@ -117,19 +117,6 @@ jQuery(function ($) { new_post[$(entry).attr('id')] = $(entry).val(); } }); - $('.link-input').each((index, entry) => { - let fieldKey = $(entry).data('field-key'); - let type = $(entry).data('type'); - if ($(entry).val()) { - if (!Object.prototype.hasOwnProperty.call(new_post, fieldKey)) { - new_post[fieldKey] = { values: [] }; - } - new_post[fieldKey].values.push({ - value: $(entry).val(), - type: type, - }); - } - }); $('.dt_textarea').each((index, entry) => { if ($(entry).val()) { new_post[$(entry).attr('id')] = $(entry).val(); diff --git a/dt-assets/js/new-record.js b/dt-assets/js/new-record.js index 65fda0c228..48c014de05 100644 --- a/dt-assets/js/new-record.js +++ b/dt-assets/js/new-record.js @@ -263,19 +263,6 @@ jQuery(function ($) { new_post[$(entry).attr('id')] = $(entry).val(); } }); - $('.link-input').each((index, entry) => { - let fieldKey = $(entry).data('field-key'); - let type = $(entry).data('type'); - if ($(entry).val()) { - if (!Object.prototype.hasOwnProperty.call(new_post, fieldKey)) { - new_post[fieldKey] = { values: [] }; - } - new_post[fieldKey].values.push({ - value: $(entry).val(), - type: type, - }); - } - }); // location_meta if (typeof window.selected_location_grid_meta !== 'undefined') { diff --git a/dt-core/global-functions.php b/dt-core/global-functions.php index 01424773c2..d11cc4aaa8 100755 --- a/dt-core/global-functions.php +++ b/dt-core/global-functions.php @@ -657,6 +657,9 @@ function render_field_for_display( $field_key, $fields, $post, $show_extra_contr case 'file_upload': DT_Components::render_file_upload( $field_key, $fields, $post, $params ); break; + case 'link': + DT_Components::render_link( $field_key, $fields, $post, $params ); + break; default: $is_legacy = true; break; @@ -666,60 +669,6 @@ function render_field_for_display( $field_key, $fields, $post, $show_extra_contr $is_empty_post = !is_array( $post ) || count( array_keys( $post ) ) <= 1; // if this is a new post, it only has a post_type key $hide_label = isset( $params['hide_label'] ) && $params['hide_label'] === true; ?> - -
    > - - - - "> - - - - - - - - - -
    - " min="" max="" onwheel="return false;" /> - - - -
    @@ -837,34 +730,6 @@ class="text-input" value="" - -
    - - - > -
    - -
    -
    - - (string) $key, + 'label' => $value['label'] ?? $key + ]; + }, array_keys( $default_options ), $default_options); + ?> + + groups='' + value=""> + + +