@creaditor/web-starterkit 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/3847.creaditor.bundle.js +173 -116
  2. package/dist/3847.creaditor.bundle.js.gz +0 -0
  3. package/dist/5156.creaditor.bundle.js +1 -1
  4. package/dist/5156.creaditor.bundle.js.gz +0 -0
  5. package/dist/5909.creaditor.bundle.js +19 -19
  6. package/dist/5909.creaditor.bundle.js.gz +0 -0
  7. package/dist/7209.creaditor.bundle.js +32 -30
  8. package/dist/7209.creaditor.bundle.js.gz +0 -0
  9. package/dist/767.creaditor.bundle.js +26 -70
  10. package/dist/767.creaditor.bundle.js.gz +0 -0
  11. package/dist/8547.creaditor.bundle.js +1 -1
  12. package/dist/8547.creaditor.bundle.js.gz +0 -0
  13. package/dist/8646.creaditor.bundle.js +36 -37
  14. package/dist/8646.creaditor.bundle.js.gz +0 -0
  15. package/dist/creaditor.bundle.js +554 -224
  16. package/dist/creaditor.bundle.js.gz +0 -0
  17. package/dist/service-worker.js +1 -1
  18. package/dist/service-worker.js.gz +0 -0
  19. package/package.json +2 -2
  20. package/dist/1260.creaditor.bundle.js +0 -459
  21. package/dist/1260.creaditor.bundle.js.gz +0 -0
  22. package/dist/1393.creaditor.bundle.js +0 -1
  23. package/dist/1393.creaditor.bundle.js.gz +0 -0
  24. package/dist/1452.creaditor.bundle.js +0 -23
  25. package/dist/1452.creaditor.bundle.js.gz +0 -0
  26. package/dist/1565.creaditor.bundle.js +0 -1216
  27. package/dist/1565.creaditor.bundle.js.gz +0 -0
  28. package/dist/1756.creaditor.bundle.js +0 -1
  29. package/dist/1756.creaditor.bundle.js.gz +0 -0
  30. package/dist/1936.creaditor.bundle.js +0 -177
  31. package/dist/1936.creaditor.bundle.js.LICENSE.txt +0 -29
  32. package/dist/1936.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  33. package/dist/1936.creaditor.bundle.js.gz +0 -0
  34. package/dist/2438.creaditor.bundle.js +0 -67
  35. package/dist/2438.creaditor.bundle.js.gz +0 -0
  36. package/dist/2834.creaditor.bundle.js +0 -14
  37. package/dist/2834.creaditor.bundle.js.LICENSE.txt +0 -5
  38. package/dist/2834.creaditor.bundle.js.gz +0 -0
  39. package/dist/307.creaditor.bundle.js +0 -23
  40. package/dist/307.creaditor.bundle.js.gz +0 -0
  41. package/dist/3095.creaditor.bundle.js +0 -194
  42. package/dist/3095.creaditor.bundle.js.gz +0 -0
  43. package/dist/365.creaditor.bundle.js +0 -26
  44. package/dist/365.creaditor.bundle.js.gz +0 -0
  45. package/dist/3778.creaditor.bundle.js +0 -1
  46. package/dist/3778.creaditor.bundle.js.gz +0 -0
  47. package/dist/3932.creaditor.bundle.js +0 -30
  48. package/dist/3932.creaditor.bundle.js.gz +0 -0
  49. package/dist/4217.creaditor.bundle.js +0 -105
  50. package/dist/4217.creaditor.bundle.js.gz +0 -0
  51. package/dist/453.creaditor.bundle.js.LICENSE.txt +0 -5
  52. package/dist/4569.creaditor.bundle.js +0 -887
  53. package/dist/4569.creaditor.bundle.js.gz +0 -0
  54. package/dist/4739.creaditor.bundle.js +0 -1
  55. package/dist/4739.creaditor.bundle.js.gz +0 -0
  56. package/dist/4970.creaditor.bundle.js +0 -1316
  57. package/dist/4970.creaditor.bundle.js.gz +0 -0
  58. package/dist/5340.creaditor.bundle.js +0 -157
  59. package/dist/5340.creaditor.bundle.js.gz +0 -0
  60. package/dist/5428.creaditor.bundle.js +0 -23
  61. package/dist/5428.creaditor.bundle.js.gz +0 -0
  62. package/dist/5813.creaditor.bundle.js +0 -613
  63. package/dist/5813.creaditor.bundle.js.LICENSE.txt +0 -10
  64. package/dist/5813.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  65. package/dist/5813.creaditor.bundle.js.gz +0 -0
  66. package/dist/6151.creaditor.bundle.js +0 -1
  67. package/dist/6151.creaditor.bundle.js.gz +0 -0
  68. package/dist/6459.creaditor.bundle.js +0 -23
  69. package/dist/6459.creaditor.bundle.js.gz +0 -0
  70. package/dist/6713.creaditor.bundle.js +0 -151
  71. package/dist/6713.creaditor.bundle.js.gz +0 -0
  72. package/dist/763.creaditor.bundle.js +0 -1
  73. package/dist/763.creaditor.bundle.js.gz +0 -0
  74. package/dist/7759.creaditor.bundle.js +0 -25
  75. package/dist/7759.creaditor.bundle.js.gz +0 -0
  76. package/dist/8141.creaditor.bundle.js.LICENSE.txt +0 -5
  77. package/dist/8303.creaditor.bundle.js +0 -57
  78. package/dist/8303.creaditor.bundle.js.LICENSE.txt +0 -10
  79. package/dist/8303.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  80. package/dist/8303.creaditor.bundle.js.gz +0 -0
  81. package/dist/8305.creaditor.bundle.js +0 -32
  82. package/dist/8305.creaditor.bundle.js.gz +0 -0
  83. package/dist/8386.creaditor.bundle.js +0 -1420
  84. package/dist/8386.creaditor.bundle.js.gz +0 -0
  85. package/dist/84702e107adede1a967468c78921d455.mp4 +0 -0
  86. package/dist/8478.creaditor.bundle.js +0 -1
  87. package/dist/8478.creaditor.bundle.js.gz +0 -0
  88. package/dist/8676.creaditor.bundle.js +0 -24
  89. package/dist/8676.creaditor.bundle.js.gz +0 -0
  90. package/dist/88.creaditor.bundle.js +0 -1
  91. package/dist/88.creaditor.bundle.js.gz +0 -0
  92. package/dist/8876.creaditor.bundle.js +0 -25
  93. package/dist/8876.creaditor.bundle.js.LICENSE.txt +0 -32
  94. package/dist/8876.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  95. package/dist/8876.creaditor.bundle.js.gz +0 -0
  96. package/dist/9089.creaditor.bundle.js +0 -21
  97. package/dist/9089.creaditor.bundle.js.gz +0 -0
  98. package/dist/9162.creaditor.bundle.js +0 -24
  99. package/dist/9162.creaditor.bundle.js.gz +0 -0
  100. package/dist/9184.creaditor.bundle.js +0 -23
  101. package/dist/9184.creaditor.bundle.js.gz +0 -0
  102. package/dist/9193.creaditor.bundle.js +0 -1
  103. package/dist/9193.creaditor.bundle.js.gz +0 -0
  104. package/dist/9338.creaditor.bundle.js +0 -1
  105. package/dist/9338.creaditor.bundle.js.gz +0 -0
  106. package/dist/951.creaditor.bundle.js +0 -1
  107. package/dist/951.creaditor.bundle.js.gz +0 -0
Binary file
@@ -1 +0,0 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1756],{81756(e,t,a){a.d(t,{default:()=>o});const s=e=>{{const{component:t,commands:a,helpers:s}=e;return{select:e=>{let{changeTab:t,tab:a}=e;"design"!==a.text&&t("design")},tabs:e=>{const t=[{text:"design"}];return t.forEach(t=>t.selected=t.selected=t.text===e),t},layout:e=>{let{tab:t,changeTab:s,tabs:r}=e;return[{type:"gallery",text:"שינוי תמונת קאבר",onChange:e=>{let t=e.detail;Array.isArray(t)&&(t=t[0]),a.execCommand("coverImage",{src:t.src})}}]}}}},r=[{type:"facebook",tags:["facebook","fb"],icon:"https://www.facebook.com/images/fb_icon_325x325.png",svg:'<path d="M12.001 2C6.47813 2 2.00098 6.47715 2.00098 12C2.00098 16.9913 5.65783 21.1283 10.4385 21.8785V14.8906H7.89941V12H10.4385V9.79688C10.4385 7.29063 11.9314 5.90625 14.2156 5.90625C15.3097 5.90625 16.4541 6.10156 16.4541 6.10156V8.5625H15.1931C13.9509 8.5625 13.5635 9.33334 13.5635 10.1242V12H16.3369L15.8936 14.8906H13.5635V21.8785C18.3441 21.1283 22.001 16.9913 22.001 12C22.001 6.47715 17.5238 2 12.001 2Z"></path>',text:"facebook"},{type:"instagram",tags:["instagram","insta","ig"],icon:"https://www.instagram.com/static/images/ico/favicon.ico/36b3ee2d91ed.ico",svg:'<path d="M13.0281 2.00098C14.1535 2.00284 14.7238 2.00879 15.2166 2.02346L15.4107 2.02981C15.6349 2.03778 15.8561 2.04778 16.1228 2.06028C17.1869 2.10944 17.9128 2.27778 18.5503 2.52528C19.2094 2.77944 19.7661 3.12278 20.3219 3.67861C20.8769 4.23444 21.2203 4.79278 21.4753 5.45028C21.7219 6.08694 21.8903 6.81361 21.9403 7.87778C21.9522 8.14444 21.9618 8.36564 21.9697 8.58989L21.976 8.78397C21.9906 9.27672 21.9973 9.8471 21.9994 10.9725L22.0002 11.7182C22.0003 11.8093 22.0003 11.9033 22.0003 12.0003L22.0002 12.2824L21.9996 13.0281C21.9977 14.1535 21.9918 14.7238 21.9771 15.2166L21.9707 15.4107C21.9628 15.6349 21.9528 15.8561 21.9403 16.1228C21.8911 17.1869 21.7219 17.9128 21.4753 18.5503C21.2211 19.2094 20.8769 19.7661 20.3219 20.3219C19.7661 20.8769 19.2069 21.2203 18.5503 21.4753C17.9128 21.7219 17.1869 21.8903 16.1228 21.9403C15.8561 21.9522 15.6349 21.9618 15.4107 21.9697L15.2166 21.976C14.7238 21.9906 14.1535 21.9973 13.0281 21.9994L12.2824 22.0002C12.1913 22.0003 12.0973 22.0003 12.0003 22.0003L11.7182 22.0002L10.9725 21.9996C9.8471 21.9977 9.27672 21.9918 8.78397 21.9771L8.58989 21.9707C8.36564 21.9628 8.14444 21.9528 7.87778 21.9403C6.81361 21.8911 6.08861 21.7219 5.45028 21.4753C4.79194 21.2211 4.23444 20.8769 3.67861 20.3219C3.12278 19.7661 2.78028 19.2069 2.52528 18.5503C2.27778 17.9128 2.11028 17.1869 2.06028 16.1228C2.0484 15.8561 2.03871 15.6349 2.03086 15.4107L2.02457 15.2166C2.00994 14.7238 2.00327 14.1535 2.00111 13.0281L2.00098 10.9725C2.00284 9.8471 2.00879 9.27672 2.02346 8.78397L2.02981 8.58989C2.03778 8.36564 2.04778 8.14444 2.06028 7.87778C2.10944 6.81278 2.27778 6.08778 2.52528 5.45028C2.77944 4.79194 3.12278 4.23444 3.67861 3.67861C4.23444 3.12278 4.79278 2.78028 5.45028 2.52528C6.08778 2.27778 6.81278 2.11028 7.87778 2.06028C8.14444 2.0484 8.36564 2.03871 8.58989 2.03086L8.78397 2.02457C9.27672 2.00994 9.8471 2.00327 10.9725 2.00111L13.0281 2.00098ZM12.0003 7.00028C9.23738 7.00028 7.00028 9.23981 7.00028 12.0003C7.00028 14.7632 9.23981 17.0003 12.0003 17.0003C14.7632 17.0003 17.0003 14.7607 17.0003 12.0003C17.0003 9.23738 14.7607 7.00028 12.0003 7.00028ZM12.0003 9.00028C13.6572 9.00028 15.0003 10.3429 15.0003 12.0003C15.0003 13.6572 13.6576 15.0003 12.0003 15.0003C10.3434 15.0003 9.00028 13.6576 9.00028 12.0003C9.00028 10.3434 10.3429 9.00028 12.0003 9.00028ZM17.2503 5.50028C16.561 5.50028 16.0003 6.06018 16.0003 6.74943C16.0003 7.43867 16.5602 7.99944 17.2503 7.99944C17.9395 7.99944 18.5003 7.43954 18.5003 6.74943C18.5003 6.06018 17.9386 5.49941 17.2503 5.50028Z"></path>',text:"instagram"}],n=e=>{let{helpers:t,template:a}=e;return{set:(e,t,a)=>!0}},o=()=>{const e="social";return{name:e,create:t=>{let{createElement:a,compose:o,helpers:C}=t;const c=document.createElement("div");return(Array.isArray(o?.props?.items)?o.props.items:[]).forEach(e=>{const t=function(e,t){const a=document.createElement("div"),s=String(e||t||"").toLowerCase();if(!s)return null;const n=r.find(e=>(Array.isArray(e.tags)?e.tags:[e.tags]).some(e=>-1!==s.indexOf(String(e).toLowerCase())));return n?(a.innerHTML=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">${n.svg}</svg>`,a):null}(e?.url,e?.src);t&&c.appendChild(t)}),a({name:e,id:o.id,template:c,defaultProps:{},validator:n({template:c,helpers:C}),schema:o.schema,onSelect:()=>{},onDeselect:()=>{},elementProps:o,remove:()=>{c.remove()},createEditor:s})}}}}}]);
Binary file
@@ -1,177 +0,0 @@
1
- /*! For license information please see 1936.creaditor.bundle.js.LICENSE.txt */
2
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1936],{54061(){const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),s=new WeakMap;class n{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const i=this.t;if(e&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=s.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&s.set(i,t))}return t}toString(){return this.cssText}}const o=(i,s)=>{e?i.adoptedStyleSheets=s.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):s.forEach(e=>{const s=document.createElement("style"),n=t.litNonce;void 0!==n&&s.setAttribute("nonce",n),s.textContent=e.cssText,i.appendChild(s)})},r=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,i))(e)})(t):t;var l;const h=window,a=h.trustedTypes,d=a?a.emptyScript:"",c=h.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},p=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:p},f="finalized";class $ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);void 0!==s&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const n=this[t];this[e]=s,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(f))return!1;this[f]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(r(t))}else void 0!==t&&e.push(r(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach(t=>t(this))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return o(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=v){var s;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:u).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,n=s._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=s.getPropertyOptions(n),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:u;this._$El=n,this[n]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach(t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var _;$[f]=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==c||c({ReactiveElement:$}),(null!==(l=h.reactiveElementVersions)&&void 0!==l?l:h.reactiveElementVersions=[]).push("1.6.3");const y=window,g=y.trustedTypes,m=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,x="?"+b,w=`<${x}>`,E=document,S=()=>E.createComment(""),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,T=t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,N=/>/g,M=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,O=/"/g,I=/^(?:script|style|textarea|title)$/i,z=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),B=z(1),j=(z(2),Symbol.for("lit-noChange")),L=Symbol.for("lit-nothing"),V=new WeakMap,D=E.createTreeWalker(E,129,null,!1);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==m?m.createHTML(e):e}const W=(t,e)=>{const i=t.length-1,s=[];let n,o=2===e?"<svg>":"",r=U;for(let e=0;e<i;e++){const i=t[e];let l,h,a=-1,d=0;for(;d<i.length&&(r.lastIndex=d,h=r.exec(i),null!==h);)d=r.lastIndex,r===U?"!--"===h[1]?r=H:void 0!==h[1]?r=N:void 0!==h[2]?(I.test(h[2])&&(n=RegExp("</"+h[2],"g")),r=M):void 0!==h[3]&&(r=M):r===M?">"===h[0]?(r=null!=n?n:U,a=-1):void 0===h[1]?a=-2:(a=r.lastIndex-h[2].length,l=h[1],r=void 0===h[3]?M:'"'===h[3]?O:R):r===O||r===R?r=M:r===H||r===N?r=U:(r=M,n=void 0);const c=r===M&&t[e+1].startsWith("/>")?" ":"";o+=r===U?i+w:a>=0?(s.push(l),i.slice(0,a)+A+i.slice(a)+b+c):i+b+(-2===a?(s.push(void 0),e):c)}return[G(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),s]};class F{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const r=t.length-1,l=this.parts,[h,a]=W(t,e);if(this.el=F.createElement(h,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=D.nextNode())&&l.length<r;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(A)||e.startsWith(b)){const i=a[o++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+A).split(b),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?X:"@"===e[1]?tt:Z})}else l.push({type:6,index:n})}for(const e of t)s.removeAttribute(e)}if(I.test(s.tagName)){const t=s.textContent.split(b),e=t.length-1;if(e>0){s.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],S()),D.nextNode(),l.push({type:2,index:++n});s.append(t[e],S())}}}else if(8===s.nodeType)if(s.data===x)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=s.data.indexOf(b,t+1));)l.push({type:7,index:n}),t+=b.length-1}n++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,s){var n,o,r,l;if(e===j)return e;let h=void 0!==s?null===(n=i._$Co)||void 0===n?void 0:n[s]:i._$Cl;const a=k(e)?void 0:e._$litDirective$;return(null==h?void 0:h.constructor)!==a&&(null===(o=null==h?void 0:h._$AO)||void 0===o||o.call(h,!1),void 0===a?h=void 0:(h=new a(t),h._$AT(t,i,s)),void 0!==s?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[s]=h:i._$Cl=h),void 0!==h&&(e=q(t,h._$AS(t,e.values),h,s)),e}class K{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:E).importNode(i,!0);D.currentNode=n;let o=D.nextNode(),r=0,l=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new Q(o,o.nextSibling,this,t):1===h.type?e=new h.ctor(o,h.name,h.strings,this,t):6===h.type&&(e=new et(o,this,t)),this._$AV.push(e),h=s[++l]}r!==(null==h?void 0:h.index)&&(o=D.nextNode(),r++)}return D.currentNode=E,n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,s){var n;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(n=null==s?void 0:s.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),k(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==j&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):T(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==L&&k(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,n="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=F.createElement(G(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new K(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new F(t)),e}T(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new Q(this.k(S()),this.k(S()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,s,n){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(void 0===n)t=q(this,t,e,0),o=!k(t)||t!==this._$AH&&t!==j,o&&(this._$AH=t);else{const s=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=q(this,s[i+r],e,r),l===j&&(l=this._$AH[r]),o||(o=!k(l)||l!==this._$AH[r]),l===L?t=L:t!==L&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}o&&!s&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}const Y=g?g.emptyScript:"";class X extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==L?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class tt extends Z{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=q(this,t,e,0))&&void 0!==i?i:L)===j)return;const s=this._$AH,n=t===L&&s!==L||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==L&&(s===L||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const it={O:A,P:b,A:x,C:1,M:W,L:K,R:T,D:q,I:Q,V:Z,H:X,N:tt,U:J,F:et},st=y.litHtmlPolyfillSupport;null==st||st(F,Q),(null!==(_=y.litHtmlVersions)&&void 0!==_?_:y.litHtmlVersions=[]).push("2.8.0");var nt,ot;class rt extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var s,n;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let r=o._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;o._$litPart$=r=new Q(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return j}}rt.finalized=!0,rt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:rt});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:rt});(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.3.3");const ht=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function at(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):ht(t,e)}var dt;null===(dt=window.HTMLSlotElement)||void 0===dt||dt.prototype.assignedElements;const{I:ct}=it,ut=()=>document.createComment(""),pt=(t,e,i)=>{var s;const n=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(ut(),o),s=n.insertBefore(ut(),o);i=new ct(e,s,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(s=i._$AQ)||void 0===s||s.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==o||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,o),t=e}}}return i},vt=(t,e,i=t)=>(t._$AI(e,i),t),ft={},$t=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const s=t._$AB.nextSibling;for(;i!==s;){const t=i.nextSibling;i.remove(),i=t}},_t=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const mt=(t,e)=>{var i,s;const n=t._$AN;if(void 0===n)return!1;for(const t of n)null===(s=(i=t)._$AO)||void 0===s||s.call(i,e,!1),mt(t,e);return!0},At=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},bt=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Et(e)}};function xt(t){void 0!==this._$AN?(At(this),this._$AM=t,bt(this)):this._$AM=t}function wt(t,e=!1,i=0){const s=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(s))for(let t=i;t<s.length;t++)mt(s[t],!1),At(s[t]);else null!=s&&(mt(s,!1),At(s));else mt(this,t)}const Et=t=>{var e,i,s,n;t.type==_t&&(null!==(e=(s=t)._$AP)&&void 0!==e||(s._$AP=wt),null!==(i=(n=t)._$AQ)&&void 0!==i||(n._$AQ=xt))};class St extends gt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),bt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?null===(i=this.reconnected)||void 0===i||i.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),e&&(mt(this,t),At(this))}setValue(t){if((t=>void 0===t.strings)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const kt=()=>new Ct;class Ct{}const Tt=new WeakMap,Pt=yt(class extends St{render(t){return L}update(t,[e]){var i;const s=e!==this.G;return s&&void 0!==this.G&&this.ot(void 0),(s||this.rt!==this.lt)&&(this.G=e,this.dt=null===(i=t.options)||void 0===i?void 0:i.host,this.ot(this.lt=t.element)),L}ot(t){var e;if("function"==typeof this.G){const i=null!==(e=this.dt)&&void 0!==e?e:globalThis;let s=Tt.get(i);void 0===s&&(s=new WeakMap,Tt.set(i,s)),void 0!==s.get(this.G)&&this.G.call(this.dt,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.dt,t)}else this.G.value=t}get rt(){var t,e,i;return"function"==typeof this.G?null===(e=Tt.get(null!==(t=this.dt)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.G):null===(i=this.G)||void 0===i?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),Ut=(t,e,i)=>{const s=new Map;for(let n=e;n<=i;n++)s.set(t[n],n);return s},Ht=yt(class extends gt{constructor(t){if(super(t),t.type!==_t)throw Error("repeat() can only be used in text expressions")}ct(t,e,i){let s;void 0===i?i=e:void 0!==e&&(s=e);const n=[],o=[];let r=0;for(const e of t)n[r]=s?s(e,r):r,o[r]=i(e,r),r++;return{values:o,keys:n}}render(t,e,i){return this.ct(t,e,i).values}update(t,[e,i,s]){var n;const o=(t=>t._$AH)(t),{values:r,keys:l}=this.ct(e,i,s);if(!Array.isArray(o))return this.ut=l,r;const h=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],a=[];let d,c,u=0,p=o.length-1,v=0,f=r.length-1;for(;u<=p&&v<=f;)if(null===o[u])u++;else if(null===o[p])p--;else if(h[u]===l[v])a[v]=vt(o[u],r[v]),u++,v++;else if(h[p]===l[f])a[f]=vt(o[p],r[f]),p--,f--;else if(h[u]===l[f])a[f]=vt(o[u],r[f]),pt(t,a[f+1],o[u]),u++,f--;else if(h[p]===l[v])a[v]=vt(o[p],r[v]),pt(t,o[u],o[p]),p--,v++;else if(void 0===d&&(d=Ut(l,v,f),c=Ut(h,u,p)),d.has(h[u]))if(d.has(h[p])){const e=c.get(l[v]),i=void 0!==e?o[e]:null;if(null===i){const e=pt(t,o[u]);vt(e,r[v]),a[v]=e}else a[v]=vt(i,r[v]),pt(t,o[u],i),o[e]=null;v++}else $t(o[p]),p--;else $t(o[u]),u++;for(;v<=f;){const e=pt(t,a[f+1]);vt(e,r[v]),a[v++]=e}for(;u<=p;){const t=o[u++];null!==t&&$t(t)}return this.ut=l,((t,e=ft)=>{t._$AH=e})(t,a),j}});var Nt=function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};let Mt=class extends rt{constructor(){super(),this.removeable=!0,this.inputValue="",this.placeholder="",this.max="50",this.primaryText="#fff",this.primary="#845EC2",this.maxItems=20,this.focused=!1,this.items=[],this.suggestions=[],this.filtered=[],this.opened=!1,this.freeSolo=!0,this.setFocus=this.setFocus.bind(this),this.addItem=this.addItem.bind(this),this.keypress=this.keypress.bind(this),this.onTabClicked=this.onTabClicked.bind(this),this.keyCount=0,this.items=[],this.focused=!1,this.inputRef=kt(),this.suggestionElRef=kt()}setFocus(){if(this.inputRef.value!==document.activeElement){this.inputRef.value.focus()}}removeItems(t){this.value=this.items[t];const e=[...this.items];e.splice(t,1),this.items=e;const i=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(i)}addItem(t){const e=[...this.items],i=this.inputRef.value;let s;s=t?t.split(","):i.value.split(","),s.forEach(t=>{const s=t.replace(/,/g,"");if(s&&s.trim()&&-1===this.items.findIndex(t=>t.value===s)){if(!this.freeSolo&&-1===this.suggestions.findIndex(t=>t.value===s))return;e.push({value:s}),i.value="",this.items=e,this.filtered=this.suggestions.filter(t=>t.value.includes(this.inputValue)&&-1===this.items.findIndex(e=>e.value===t.value));const t=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}})}onTabClicked(t){const e=this.inputRef.value;"Tab"===t.key&&this.focused&&e.value.trim()&&(this.addItem(),t.preventDefault())}keypress(t){","===t.key||"Enter"===t.key?(this.opened=!1,this.addItem()):this.opened=!0;const e=this.inputRef.value;if(0===e.value.length&&"Backspace"===t.key&&this.keyCount++,"Backspace"===t.key&&""===e.value&&this.keyCount>1){this.keyCount=0;const t=[...this.items];t.pop(),this.items=t}this.inputValue=e.value,this.inputValue.trim()?this.filtered=this.suggestions.filter(t=>t.value.includes(this.inputValue)&&-1===this.items.findIndex(e=>e.value===t.value)):this.filtered=this.suggestions}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.onTabClicked),setTimeout(()=>{this.filtered=this.suggestions.filter(t=>t.value.includes(this.inputValue)&&-1===this.items.findIndex(e=>e.value===t.value))},50)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.onTabClicked)}render(){return B`<div class="container" @click=${this.setFocus}>
3
- <span
4
- >${Ht(this.items,t=>t.value,(t,e)=>B`<div
5
- .style="background:${this.primary};color:${this.primaryText}"
6
- class="chips"
7
- >
8
- <div>
9
- ${t.value}
10
- ${this.removeable?B`<button
11
- @click=${()=>this.removeItems(e)}
12
- class="remove_button"
13
- >
14
- <svg
15
- xmlns="http://www.w3.org/2000/svg"
16
- viewBox="0 0 24 24"
17
- width="13"
18
- height="20"
19
- fill="${this.primaryText}"
20
- >
21
- <path fill="none" d="M0 0h24v24H0z" />
22
- <path
23
- d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"
24
- />
25
- </svg>
26
- </button>`:null}
27
- </div>
28
- </div>`)}
29
- <input
30
- dir="auto"
31
- ${Pt(this.inputRef)}
32
- .placeholder=${this.placeholder}
33
- .max=${this.max}
34
- @keyup=${this.keypress}
35
- @focus=${()=>{this.focused=!0,this.suggestions.length>0&&setTimeout(()=>{this.opened=!0},200)}}
36
- @blur=${()=>{this.focused=!1,setTimeout(()=>{this.opened=!1},200)}}
37
- /></span>
38
- </div>`}};Mt.styles=((t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new n(s,t,i)})`
39
- .full-width {
40
- width: 100%;
41
- }
42
- .container {
43
- border: 1px solid grey;
44
- border-radius: 0.25rem;
45
- line-height: 1.5;
46
- background: padding-box rgb(255, 255, 255);
47
- outline: 1px solid transparent;
48
- font-family: Arial, Helvetica, sans-serif;
49
- box-sizing: border-box;
50
- position: relative;
51
- }
52
- .container:focus {
53
- border-color: blue;
54
- }
55
- .suggestion-btn {
56
- background: #fff;
57
- }
58
- .suggestion-btn:hover {
59
- background: #f5f5f5;
60
- }
61
- .suggestions-holder {
62
- position: absolute;
63
- top: 105%;
64
- left: 0;
65
- width: 100%;
66
- height: 100%;
67
- background-color: #fff;
68
- /* transition: all 0.3s ease-in-out; */
69
- }
70
- .suggestions-content {
71
- top: 105%;
72
- left: 0;
73
- max-height: 400px;
74
- overflow-y: auto;
75
- overflow-x: hidden;
76
- max-width: 400px;
77
- width: 100%;
78
- padding: 10px;
79
- box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
80
- z-index: 99;
81
- }
82
- .chips {
83
- border-radius: 30px;
84
- padding: 0 28px;
85
- background-color: blue;
86
- color: #fff;
87
- display: inline-block;
88
- margin: 5px;
89
- position: relative;
90
- font-family: Arial, Helvetica, sans-serif;
91
- font-size: 14px;
92
- animation: jackInTheBox 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
93
- }
94
-
95
- @keyframes jackInTheBox {
96
- from {
97
- opacity: 0;
98
- transform: scale(0.1) rotate(30deg);
99
- transform-origin: center bottom;
100
- }
101
-
102
- 50% {
103
- transform: rotate(-10deg);
104
- }
105
-
106
- 70% {
107
- transform: rotate(3deg);
108
- }
109
-
110
- to {
111
- opacity: 1;
112
- transform: scale(1);
113
- }
114
- }
115
- .remove_button {
116
- padding: 1px;
117
- background-color: #484553a6;
118
- border-radius: 100%;
119
- height: 17px;
120
- display: flex;
121
- align-items: center;
122
- justify-content: center;
123
- position: absolute;
124
- right: 2px;
125
- top: 50%;
126
- transform: translateY(-50%);
127
- transition: transform 0.2s ease-in-out;
128
- }
129
- .remove_button:hover {
130
- transform: translateY(-50%) scale(1.2);
131
- }
132
- input {
133
- height: 30px;
134
- display: inline-block;
135
- padding: 10px;
136
- font-size: 14px;
137
- font-weight: 400;
138
- line-height: 1.5;
139
- color: #212529;
140
- background: #fff;
141
- background-clip: padding-box;
142
- border: 1px solid #ced4da;
143
- -webkit-appearance: none;
144
- -moz-appearance: none;
145
- appearance: none;
146
- margin: 0;
147
- font-family: Arial;
148
- border: none;
149
- outline: none;
150
- box-sizing: border-box;
151
- }
152
- input:hover {
153
- border: none;
154
- outline: none;
155
- }
156
- button {
157
- position: relative;
158
- display: inline-block;
159
- font-weight: 400;
160
- text-align: center;
161
- white-space: nowrap;
162
- vertical-align: middle;
163
- -webkit-user-select: none;
164
- -moz-user-select: none;
165
- -ms-user-select: none;
166
- user-select: none;
167
- border: 1px solid transparent;
168
- font-family: Arial;
169
- padding: 0.375rem 0.35rem;
170
- font-size: 13px;
171
- line-height: 1.5;
172
- border-radius: 3px;
173
- text-transform: none;
174
- transition: color 0.15s ease-in-out, background 0.15s ease-in-out,
175
- border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
176
- }
177
- `,Nt([at({type:Boolean})],Mt.prototype,"removeable",void 0),Nt([at({type:String})],Mt.prototype,"value",void 0),Nt([at({type:String})],Mt.prototype,"inputValue",void 0),Nt([at({type:String})],Mt.prototype,"placeholder",void 0),Nt([at({type:String})],Mt.prototype,"max",void 0),Nt([at({type:String})],Mt.prototype,"primaryText",void 0),Nt([at({type:String})],Mt.prototype,"primary",void 0),Nt([at({type:Number})],Mt.prototype,"maxItems",void 0),Nt([at({type:Boolean})],Mt.prototype,"focused",void 0),Nt([at({type:Array})],Mt.prototype,"items",void 0),Nt([at({type:Array})],Mt.prototype,"suggestions",void 0),Nt([at({type:Array})],Mt.prototype,"filtered",void 0),Nt([at({type:Boolean})],Mt.prototype,"opened",void 0),Nt([at({type:Boolean})],Mt.prototype,"freeSolo",void 0),Mt=Nt([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:s}=e;return{kind:i,elements:s,finisher(e){customElements.define(t,e)}}})(t,e))("cdtr-chips-input")],Mt)},70980(t,e,i){i.d(e,{W:()=>l});var s=i(80181),n=i(16655);const o="important",r=" !"+o,l=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{const s=t[i];return null==s?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?i.removeProperty(t):i[t]=null);for(const t in e){const s=e[t];if(null!=s){this.ft.add(t);const e="string"==typeof s&&s.endsWith(r);t.includes("-")||e?i.setProperty(t,e?s.slice(0,-11):s,e?o:""):i[t]=s}}return s.c0}})}}]);
@@ -1,29 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
-
7
- /**
8
- * @license
9
- * Copyright 2018 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */
12
-
13
- /**
14
- * @license
15
- * Copyright 2019 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */
18
-
19
- /**
20
- * @license
21
- * Copyright 2020 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */
24
-
25
- /**
26
- * @license
27
- * Copyright 2021 Google LLC
28
- * SPDX-License-Identifier: BSD-3-Clause
29
- */
Binary file
@@ -1,67 +0,0 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2438],{22438(t,e,i){i.r(e),i.d(e,{NextButton:()=>r});var n=i(59929),s=i(86319),o=i(93432),a=i(90090);class r extends n.WF{constructor(){super(),this.channel="",this.isLoading=!1,this.isLocked=!1,this.lockTimer=null}connectedCallback(){super.connectedCallback(),this.onNextStep||(this.onNextStep=s.M.get("config","onNextStep")),this.channel||(this.channel=s.M.get("config","channel")||"")}disconnectedCallback(){super.disconnectedCallback(),this.clearTimers()}clearTimers(){this.lockTimer&&(clearTimeout(this.lockTimer),this.lockTimer=null)}async handleClick(){if(!this.isLocked&&!this.isLoading){this.isLoading=!0,this.isLocked=!0,this.lockTimer=setTimeout(()=>{this.clearTimers(),this.isLoading=!1,this.isLocked=!1},1e4);try{!!s.M.get("config","access")&&"web"===this.channel&&(await(0,a.bK)({}),this.snackbar(s.M.get("lang","published")||"Published")),"function"==typeof this.onNextStep&&await this.onNextStep({toHTML:o.FE,toJSON:o.U2})}catch(t){console.error("Error in publish/onNextStep:",t),this.snackbar(s.M.get("lang","publishError")||"Publish failed")}finally{this.clearTimers(),this.isLoading=!1,this.isLocked=!1}}}snackbar(t){const e=s.M.get("commands");e?.snackbar?.(t)}render(){const t=!!s.M.get("config","access");if(!(this.onNextStep||"web"===this.channel&&t))return null;const e="web"===this.channel?"publish":"next";return n.qy`
2
- <paper-button
3
- @click=${this.handleClick}
4
- class="next-button"
5
- ?disabled=${this.isLocked}
6
- >
7
- ${this.isLoading?n.qy`
8
- <div class="loading-spinner"></div>
9
- `:n.qy`
10
- <div class="button-content ${this.isLoading?"loading":""}">
11
- <lang-text text=${e}></lang-text>
12
- </div>
13
- `}
14
- </paper-button>
15
- `}}r.styles=n.AH`
16
- :host {
17
- display: block;
18
- }
19
-
20
- .next-button {
21
- background: var(--primary);
22
- color: var(--primary-text);
23
- fill: var(--primary-text);
24
- text-transform: none;
25
- color: #fff;
26
- height: 52px;
27
- border-radius: 0;
28
- width: 90px;
29
- transform: translateX(-4px);
30
- position: relative;
31
- overflow: hidden;
32
- }
33
-
34
- .next-button:disabled {
35
- opacity: 0.6;
36
- cursor: not-allowed;
37
- }
38
-
39
- .loading-spinner {
40
- position: absolute;
41
- top: 50%;
42
- left: 50%;
43
- transform: translate(-50%, -50%);
44
- width: 20px;
45
- height: 20px;
46
- border: 2px solid transparent;
47
- border-top: 2px solid #fff;
48
- border-radius: 50%;
49
- animation: spin 1s linear infinite;
50
- }
51
-
52
- @keyframes spin {
53
- 0% { transform: translate(-50%, -50%) rotate(0deg); }
54
- 100% { transform: translate(-50%, -50%) rotate(360deg); }
55
- }
56
-
57
- .button-content {
58
- opacity: 1;
59
- transition: opacity 0.3s ease;
60
- }
61
-
62
- .button-content.loading {
63
- opacity: 0;
64
- }
65
-
66
-
67
- `,r.properties={onNextStep:{type:Function},channel:{type:String},isLoading:{type:Boolean},isLocked:{type:Boolean},lockTimer:{type:Number}},customElements.define("cdtr-next-button",r)}}]);
Binary file
@@ -1,14 +0,0 @@
1
- /*! For license information please see 2834.creaditor.bundle.js.LICENSE.txt */
2
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2834],{70453(t,e,s){s.r(e),s.d(e,{TitleEditor:()=>o});var n=s(59929),r=s(70980);class o extends n.WF{constructor(){super(),this.pb="6px"}render(){const t={fontWeight:this.bold?700:400,paddingBottom:this.pb};return n.qy`<span style=${(0,r.W)(t)}><slot></slot></span>`}}o.styles=n.AH`
3
- :host {
4
- display: block;
5
- font-size: 13px;
6
- font-weight: 500;
7
- color: var(--text-dark-color);
8
- font-family: var(--font-family);
9
- -webkit-font-smoothing: antialiased;
10
- text-align: var(--text-align-locale);
11
- direction: var(--direction-locale);
12
- user-select: none;
13
- }
14
- `,o.properties={bold:{type:Boolean},pb:{type:String}},customElements.define("cdtr-title",o)},70980(t,e,s){s.d(e,{W:()=>l});var n=s(80181),r=s(16655);const o="important",i=" !"+o,l=(0,r.u$)(class extends r.WL{constructor(t){if(super(t),t.type!==r.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const n=t[s];return null==n?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const n=e[t];if(null!=n){this.ft.add(t);const e="string"==typeof n&&n.endsWith(i);t.includes("-")||e?s.setProperty(t,e?n.slice(0,-11):n,e?o:""):s[t]=n}}return n.c0}})}}]);
@@ -1,5 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2018 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
Binary file
@@ -1,23 +0,0 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[307],{307(t,i,e){e.r(i),e.d(i,{TimeIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
2
- xmlns="http://www.w3.org/2000/svg"
3
- viewBox="0 0 24 24"
4
- style="${this.iconStyle}"
5
- width="${this.width}"
6
- height="${this.height}"
7
- >
8
- <path fill="none" d="M0 0h24v24H0z" />
9
- <path
10
- d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm1-8h4v2h-6V7h2v5z"
11
- />
12
- </svg>`}}s.styles=h.AH`
13
- :host {
14
- display: inherit;
15
- --cdtr-icon-width: 20px;
16
- --cdtr-icon-height: 20px;
17
- }
18
- svg {
19
- width: var(--cdtr-icon-width);
20
- height: var(--cdtr-icon-height);
21
- color: var(--cdtr-icon-color);
22
- }
23
- `,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-time-icon",s)}}]);
Binary file
@@ -1,194 +0,0 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3095],{73095(e,t,o){o.r(t),o.d(t,{default:()=>r});var n=o(59929),i=o(21421),s=o(69600);class r extends n.WF{constructor(){super(),this.contentRef=(0,i._)(),this.toggle=this.toggle.bind(this),this.onEnter=this.onEnter.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.overflow=!0,this.maxHeight=300,this.left=0,this.top=0,this.custom=!1,this.opened=!1}close(){this.toggle()}onBouncing(e){this.searchText=e.target.value;const t=new UIEvent("search",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}render(){return n.qy`
2
- <slot @click=${()=>this.toggle()} tabindex="0" name="trigger"></slot>
3
- ${this.opened?n.qy` <div
4
- @mouseup=${this.onClickOutside}
5
- @mousemove=${this.onPointerMove}
6
- class="backdrop"
7
- style="z-index:${(0,s.A)()};"
8
- >
9
- <div
10
- ${(0,i.K)(this.contentRef)}
11
- @mouseup=${this.preventClosing}
12
- style="z-index:${(0,s.A)()};left:${this.left}px;top:${this.top}px;"
13
- class="dropdown-content fade-in ${this.custom?"":"dropdown-background"}"
14
- >
15
- ${this.search?n.qy`<cdtr-input
16
- @input=${this.onBouncing}
17
- type="search"
18
- value=${this.searchText}
19
- ></cdtr-input>`:null}
20
- <slot name="content"></slot>
21
- </div>
22
- </div>`:null}
23
- `}preventClosing(e){return e.stopPropagation(),setTimeout(()=>{this.calcRects()},0),!1}onClickOutside(){this.toggle(!1)}updated(){this.opened&&(setTimeout(()=>{this.calcRects()},0),this.contentRef.value?.classList.add("fade-in"),this.contentRef.value.style.maxHeight=`${this.maxHeight}px`)}calcRects(){let e=0,t=0;const o=this.getBoundingClientRect(),n=this.contentRef?.value?.getBoundingClientRect();n&&(e=o.left,t=o.top,e<0&&(e=0),t<0&&(t=0),e+n.width>window.innerWidth&&(e=window.innerWidth-n.width),t+n.height>window.innerHeight&&(t=window.innerHeight-n.height),this.left=e,this.top=t,this.contentRef.value.style.left=`${o.left}px`,this.contentRef.value.style.top=`${t+o.height}px`,this.contentRef.value.style.overflow=this.overflow?"hidden auto":"hidden")}toggle(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e||!this.opened;t?(window.removeEventListener("keydown",this.onKeydown),window.addEventListener("keydown",this.onKeydown),this.style.removeProperty("--cdtr-item-hover"),this.opened=t,setTimeout(()=>{const e=this.focusedItem=this.querySelector("cdtr-dropdown-item[focused]")||this.querySelector("cdtr-dropdown-item");e&&e.focus()},20)):(window.removeEventListener("keydown",this.onKeydown),this.contentRef.value?.classList.add("fade-out"),setTimeout(()=>{this.opened=t},150)),this.setAttribute("aria-expanded",t)}onEnter(e){e.target===this&&13===e.keyCode&&this.toggle()}onPointerMove(){this.style.removeProperty("--cdtr-item-hover")}onKeydown(e){40!==e.keyCode&&38!==e.keyCode||this.style.setProperty("--cdtr-item-hover","transparent"),this.focusedItem&&40===e.keyCode&&this.focusedItem.nextElementSibling&&"CDTR-DROPDOWN-ITEM"===this.focusedItem.nextElementSibling.nodeName?(this.focusedItem=this.focusedItem.nextElementSibling,this.focusedItem&&this.focusedItem.focus()):this.focusedItem&&38===e.keyCode&&this.focusedItem.previousElementSibling&&"CDTR-DROPDOWN-ITEM"===this.focusedItem.previousElementSibling.nodeName?(this.focusedItem=this.focusedItem.previousElementSibling,this.focusedItem&&this.focusedItem.focus()):27===e.keyCode&&this.toggle();const t=new UIEvent("keypress",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("tabindex","0"),this.setAttribute("aria-disabled","false"),this.setAttribute("aria-haspopup","true"),this.setAttribute("aria-expanded",this.opened),this.addEventListener("keydown",this.onEnter),setTimeout(()=>{this.opened&&this.toggle(!0)},50)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this.onKeydown)}patch(e){this.value=e,this.toggle(!1);const t=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t),setTimeout(()=>{this.focus()},0)}}r.styles=n.AH`
24
- :host {
25
- display: inline-block;
26
- overflow: hidden;
27
- box-sizing: border-box;
28
- }
29
-
30
- .backdrop {
31
- position: fixed;
32
- top: 0;
33
- left: 0;
34
- width: 100%;
35
- height: 100%;
36
- background: transparent;
37
- overflow: hidden;
38
- }
39
- /* padding lives here so custom content stays flush against the panel */
40
- .dropdown-background {
41
- background: #fff;
42
- padding: 4px;
43
- }
44
- .dropdown-content {
45
- box-sizing: border-box;
46
- min-width: 180px;
47
- min-height: 40px;
48
- position: fixed;
49
- border-radius: 10px;
50
- border: 1px solid #eceef1;
51
- /* layered depth: a tight ambient edge + a soft key shadow */
52
- box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06),
53
- 0 8px 24px -6px rgba(16, 24, 40, 0.16);
54
- transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
55
- }
56
- .fade-in {
57
- animation: fade-in 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
58
- }
59
- .fade-out {
60
- animation: fade-out 140ms ease both;
61
- opacity: 0;
62
- }
63
- @keyframes fade-in {
64
- from {
65
- opacity: 0;
66
- transform: translateY(-6px) scale(0.98);
67
- }
68
- to {
69
- opacity: 1;
70
- transform: none;
71
- }
72
- }
73
- @keyframes fade-out {
74
- from {
75
- opacity: 1;
76
- }
77
- to {
78
- opacity: 0;
79
- transform: translateY(-4px);
80
- }
81
- }
82
- @media (prefers-reduced-motion: reduce) {
83
- .fade-in,
84
- .fade-out {
85
- animation-duration: 1ms;
86
- transform: none;
87
- }
88
- }
89
- `,r.properties={search:{type:Boolean},searchText:{type:String},left:{type:Number},top:{type:Number},opened:{type:Boolean},maxHeight:{type:Number},overflow:{type:Boolean},value:{type:String},custom:{type:String}};class d extends n.WF{constructor(){super(),this.minWidth=50}render(){return n.qy`<paper-button style="min-width:${this.minWidth}px"
90
- ><slot></slot> <cdtr-dd-arrow-icon></cdtr-dd-arrow-icon
91
- ></paper-button>`}}d.properties={minWidth:{type:Number}},d.styles=n.AH`
92
- paper-button {
93
- display: flex;
94
- align-items: center;
95
- justify-content: space-between;
96
- gap: 8px;
97
- text-transform: capitalize;
98
- width: 100%;
99
- line-height: 1.4;
100
- font-size: 13px;
101
- font-weight: 500;
102
- color: rgb(33, 37, 41);
103
- background: rgb(255, 255, 255);
104
- background-clip: padding-box;
105
- border: 1px solid var(--input-border-color, #ced4da);
106
- appearance: none;
107
- border-radius: 8px;
108
- transition: border-color 0.15s ease-in-out 0s,
109
- box-shadow 0.15s ease-in-out 0s, background-color 0.15s ease-in-out 0s;
110
- margin: 0px;
111
- font-family: var(--font-family, "Inter", Arial, sans-serif);
112
- box-sizing: border-box;
113
- padding: 7px 10px;
114
- cursor: pointer;
115
- }
116
- paper-button:hover {
117
- border-color: #9aa1a9;
118
- background: #fbfbfc;
119
- }
120
- paper-button:focus,
121
- paper-button:focus-within {
122
- outline: none;
123
- border-color: var(--cdtr-dropdown-accent, #7c5cf6);
124
- box-shadow: 0 0 0 3px rgba(124, 92, 246, 0.2);
125
- }
126
- `;class a extends n.WF{constructor(){super(),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}focus(){this.shadowRoot.querySelector(".dropdown-item").focus()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}onClick(e){if(this.notClickable)return;const t=this.closest("cdtr-dropdown");t&&t.patch(this.value,e,this)}onPress(e){if(13===e.keyCode){const t=new UIEvent("click",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t);const o=this.closest("cdtr-dropdown");o&&o.patch(this.value,e,this)}}connectedCallback(){super.connectedCallback(),this.selected&&this.scrollIntoView({behavior:"smooth",block:"start"})}render(){return n.qy`<div role="button"
127
- @click=${this.onClick}
128
- @keydown=${this.onPress}
129
- @blur=${this.onBlur}
130
- @focus=${this.onFocus}
131
- class="dropdown-item"
132
- tabindex="0"
133
- >
134
- <slot></slot>
135
- ${this.selected?n.qy` <svg
136
- class="check"
137
- fill="currentColor"
138
- xmlns="http://www.w3.org/2000/svg"
139
- viewBox="0 0 24 24"
140
- aria-hidden="true"
141
- >
142
- <path fill="none" d="M0 0h24v24H0z" />
143
- <path
144
- d="M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z"
145
- />
146
- </svg>`:null}
147
- </div>`}}a.properties={focused:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},value:{type:String,reflect:!0},notClickable:{type:Boolean}},a.styles=n.AH`
148
- .dropdown-item {
149
- position: relative;
150
- box-sizing: border-box;
151
- display: flex;
152
- align-items: center;
153
- justify-content: space-between;
154
- gap: 10px;
155
- width: 100%;
156
- padding: 8px 12px;
157
- border-radius: 6px;
158
- font-family: var(--font-family, "Inter", Arial, sans-serif);
159
- font-size: 13px;
160
- line-height: 1.4;
161
- color: #212529;
162
- cursor: pointer;
163
- user-select: none;
164
- transition: background-color 120ms ease, color 120ms ease,
165
- box-shadow 120ms ease;
166
- }
167
- /* hover = a translucent violet wash: ephemeral pointer feedback. The
168
- parent sets --cdtr-item-hover to transparent while arrow-key
169
- navigating so it never competes with the keyboard cursor below. */
170
- .dropdown-item:hover {
171
- background: var(--cdtr-item-hover, rgba(124, 92, 246, 0.1));
172
- }
173
- /* keyboard cursor: stronger wash + a left accent bar, so "where am I"
174
- reads at a glance and is distinct from both hover and selected */
175
- .dropdown-item:focus {
176
- outline: none;
177
- background: rgba(124, 92, 246, 0.16);
178
- color: var(--cdtr-dropdown-accent-ink, #5a3cc9);
179
- box-shadow: inset 3px 0 0 var(--cdtr-dropdown-accent, #7c5cf6);
180
- }
181
- /* selected = the committed choice: a SOLID chip (opaque, not a wash),
182
- accent text, weight, and a check — so it can't be mistaken for hover */
183
- :host([selected]) .dropdown-item {
184
- color: var(--cdtr-dropdown-accent-ink, #5a3cc9);
185
- font-weight: 600;
186
- background: var(--cdtr-dropdown-selected-bg, #efeaff);
187
- }
188
- .check {
189
- width: 16px;
190
- height: 16px;
191
- flex: none;
192
- color: var(--cdtr-dropdown-accent, #7c5cf6);
193
- }
194
- `,customElements.get("cdtr-dropdown-item")||customElements.define("cdtr-dropdown-item",a),customElements.get("cdtr-dropdown-button")||customElements.define("cdtr-dropdown-button",d),customElements.get("cdtr-dropdown")||customElements.define("cdtr-dropdown",r)}}]);
Binary file
@@ -1,26 +0,0 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[365],{50365(t,e,i){i.r(e),i.d(e,{SpacingIcon:()=>V});var H=i(59929);class V extends H.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return H.qy`<svg
2
- style="${this.iconStyle}"
3
- width="${this.width}"
4
- height="${this.height}"
5
- viewBox="0 0 24 24"
6
- fill="none"
7
- xmlns="http://www.w3.org/2000/svg"
8
- >
9
- <path
10
- fill-rule="evenodd"
11
- clip-rule="evenodd"
12
- d="M11 3H13V4V5H11V4V3ZM17 4V3H20C20.2652 3 20.5196 3.10536 20.7071 3.29289C20.8946 3.48043 21 3.73478 21 4V7H20H19V5H17V4ZM16 4V5H14V4H16ZM7 3H4C3.73478 3 3.48043 3.10536 3.29289 3.29289C3.10536 3.48043 3 3.73478 3 4V7H4H5V5H7V4V3ZM10 5H8V4H10V5ZM20 11H21V13H20H19V11H20ZM5 13V11H4H3V13H4H5ZM3 17V20C3 20.2652 3.10536 20.5196 3.29289 20.7071C3.48043 20.8946 3.73478 21 4 21H7V20V19H5V17H4H3ZM5 16H4V14H5V16ZM19 16V14H20V16H19ZM19 17V19H17V20V21H20C20.2652 21 20.5196 20.8946 20.7071 20.7071C20.8946 20.5196 21 20.2652 21 20V17H20H19ZM14 19H16V20H14V19ZM13 19H11V20V21H13V20V19ZM10 19H8V20H10V19ZM20 10H19V8H20V10ZM5 10V8H4V10H5Z"
13
- fill="black"
14
- />
15
- </svg> `}}V.styles=H.AH`
16
- :host {
17
- display: inherit;
18
- --cdtr-icon-width: 20px;
19
- --cdtr-icon-height: 20px;
20
- }
21
- svg {
22
- width: var(--cdtr-icon-width);
23
- height: var(--cdtr-icon-height);
24
- color: var(--cdtr-icon-color);
25
- }
26
- `,V.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-spacing-icon",V)}}]);
Binary file