@orangelogic/design-system 4.53.0 → 4.54.0

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 (112) hide show
  1. package/library/chunks/{array-line-clamp.DKxxZlon.js → array-line-clamp.B0CgDqAd.js} +2 -2
  2. package/library/chunks/{asset-link-format.B_gS4nTL.js → asset-link-format.B0bxKsRR.js} +9 -9
  3. package/library/chunks/{bicolor-picker.DrQWK6-q.js → bicolor-picker.DB9EVS8f.js} +1 -1
  4. package/library/chunks/{block-width.-jEx3KZ4.js → block-width.DPq3qimI.js} +33 -33
  5. package/library/chunks/{border-input-group.PiWnqlx7.js → border-input-group.fjG64WIi.js} +2 -2
  6. package/library/chunks/{button.DnOMjl_G.js → button.BnTohvSe.js} +1 -1
  7. package/library/chunks/{checkbox.aFoOxk2j.js → checkbox.BdSpQlwf.js} +1 -1
  8. package/library/chunks/{color-picker.DkVQou0p.js → color-picker.DkbU0_4f.js} +8 -8
  9. package/library/chunks/{color-swatch-group.C85bEtP3.js → color-swatch-group.D99_BsTs.js} +27 -27
  10. package/library/chunks/{color-swatch.Biz89VJr.js → color-swatch.CvynJPeG.js} +1 -1
  11. package/library/chunks/{config-manager.Cc9QkEey.js → config-manager.C-RYOYzN.js} +26 -26
  12. package/library/chunks/{configs-controller.DBzBhYjU.js → configs-controller.kn8RjF1m.js} +19 -19
  13. package/library/chunks/{confirm-popover.DpVrPWXU.js → confirm-popover.buH5MWGz.js} +2 -2
  14. package/library/chunks/{corner-position-input-group.vhSOueRn.js → corner-position-input-group.C76I7S9W.js} +3 -3
  15. package/library/chunks/{diff.DZjfy2VU.js → diff.Bmdpmpvo.js} +1 -1
  16. package/library/chunks/{document-viewer.BRJqmyum.js → document-viewer.B82zT0Zq.js} +4 -4
  17. package/library/chunks/{dom.BsVeSE01.js → dom.BLHsooDR.js} +1 -1
  18. package/library/chunks/{dropdown.CKad9CvP.js → dropdown.EJbgwPgi.js} +2 -2
  19. package/library/chunks/{dynamic-select.DmTXLyzH.js → dynamic-select.3VAXf0Tb.js} +3 -3
  20. package/library/chunks/{element-clamp.CwFlUOET.js → element-clamp.M1QI20RB.js} +1 -1
  21. package/library/chunks/{file-on-demand.Cuj5wcYW.js → file-on-demand.CftwNAbV.js} +10 -10
  22. package/library/chunks/{folder-select.DpQEZDg1.js → folder-select.D8VOcyyD.js} +15 -15
  23. package/library/chunks/{form.JYXtmwQ2.js → form.D_eBa3AQ.js} +1 -1
  24. package/library/chunks/{input.D1UkXp3F.js → input.Cqg_VUUU.js} +1 -1
  25. package/library/chunks/{line-clamp.COXyDBRB.js → line-clamp.DfbWHPf2.js} +1 -1
  26. package/library/chunks/{markdown.CgWP0X61.js → markdown.DX6E6sHb.js} +1 -1
  27. package/library/chunks/option.g339be2v.js +136 -0
  28. package/library/chunks/{padding-input-group.CGDq3Cct.js → padding-input-group.B0hKvaQw.js} +1 -1
  29. package/library/chunks/{pagination.Mr-XiQBd.js → pagination.C1a6I0Np.js} +4 -4
  30. package/library/chunks/{position-picker.DzRyAx7a.js → position-picker.ZNQJCQeD.js} +1 -1
  31. package/library/chunks/{radio-card.jROctGtI.js → radio-card.DIbQQQHJ.js} +1 -1
  32. package/library/chunks/{radio-group.DSnDDjKe.js → radio-group.CHlxPcrs.js} +1 -1
  33. package/library/chunks/{range.CQzHuhd9.js → range.BbymfcRB.js} +1 -1
  34. package/library/chunks/{select.CEgt2ciT.js → select.jh554mmg.js} +151 -99
  35. package/library/chunks/{shadow-input-group.C13mC7rW.js → shadow-input-group.CVVmDUWM.js} +2 -2
  36. package/library/chunks/{share-option-list.CdQeYk-I.js → share-option-list.DJhjvLt5.js} +1 -1
  37. package/library/chunks/sidebar.DvMb2Ug6.js +120 -0
  38. package/library/chunks/{size-input-group.DtldCuqS.js → size-input-group.CS5sCYFS.js} +2 -2
  39. package/library/chunks/{src.CYwPx1Vw.js → src.CcXIUp6p.js} +27 -27
  40. package/library/chunks/{src.BJpSLSUr.js → src.DY4Vfem2.js} +3 -3
  41. package/library/chunks/{step.BlnWLzqI.js → step.QBmFqnA4.js} +1 -1
  42. package/library/chunks/{stepper-wizard.t7enm9Uz.js → stepper-wizard.D0zrSaVI.js} +2 -2
  43. package/library/chunks/{stepper.DzhUPTLW.js → stepper.BBZ3Sunl.js} +1 -1
  44. package/library/chunks/{string.DAuTpyw8.js → string.9yahdkB8.js} +39 -1
  45. package/library/chunks/{switch.CBho2RVW.js → switch.BM9msK5T.js} +1 -1
  46. package/library/chunks/{tab-group.BSdtDqou.js → tab-group.DkF7nLim.js} +4 -4
  47. package/library/chunks/{tab.C0oUx7MY.js → tab.ACKD6jJ8.js} +1 -1
  48. package/library/chunks/{tag.B2S21_nF.js → tag.uwkILLDo.js} +1 -1
  49. package/library/chunks/{textarea.BgWdR_7D.js → textarea.CHSZI8vt.js} +1 -1
  50. package/library/chunks/{timecode.DME2imtx.js → timecode.DjI1OTXD.js} +1 -1
  51. package/library/chunks/{tree.CnEAk97A.js → tree.Dc1p0HOj.js} +10 -4
  52. package/library/chunks/{typeface.Dr9m4SZE.js → typeface.DacggLTX.js} +1 -1
  53. package/library/components/array-line-clamp.js +1 -1
  54. package/library/components/asset-link-format.js +1 -1
  55. package/library/components/atoms.js +31 -31
  56. package/library/components/bicolor-picker.js +1 -1
  57. package/library/components/border-input-group.js +1 -1
  58. package/library/components/button.js +1 -1
  59. package/library/components/checkbox.js +1 -1
  60. package/library/components/color-picker.js +1 -1
  61. package/library/components/color-swatch-group.js +1 -1
  62. package/library/components/color-swatch.js +1 -1
  63. package/library/components/confirm-popover.js +1 -1
  64. package/library/components/corner-position-input-group.js +1 -1
  65. package/library/components/diff.js +1 -1
  66. package/library/components/document-viewer.js +1 -1
  67. package/library/components/dropdown.js +1 -1
  68. package/library/components/dynamic-select.js +1 -1
  69. package/library/components/element-clamp.js +1 -1
  70. package/library/components/file-on-demand.js +1 -1
  71. package/library/components/folder-select.js +1 -1
  72. package/library/components/input.js +1 -1
  73. package/library/components/line-clamp.js +1 -1
  74. package/library/components/markdown.js +1 -1
  75. package/library/components/molecules.js +15 -15
  76. package/library/components/option.js +1 -1
  77. package/library/components/organisms.js +3 -3
  78. package/library/components/padding-input-group.js +1 -1
  79. package/library/components/pagination.js +1 -1
  80. package/library/components/position-picker.js +1 -1
  81. package/library/components/radio-card.js +1 -1
  82. package/library/components/radio-group.js +1 -1
  83. package/library/components/range.js +1 -1
  84. package/library/components/select.js +1 -1
  85. package/library/components/shadow-input-group.js +1 -1
  86. package/library/components/share-option-list.js +1 -1
  87. package/library/components/sidebar.js +1 -1
  88. package/library/components/size-input-group.js +1 -1
  89. package/library/components/step.js +1 -1
  90. package/library/components/stepper-wizard.js +1 -1
  91. package/library/components/stepper.js +1 -1
  92. package/library/components/switch.js +1 -1
  93. package/library/components/tab-group.js +1 -1
  94. package/library/components/tab.js +1 -1
  95. package/library/components/tag.js +1 -1
  96. package/library/components/textarea.js +1 -1
  97. package/library/components/timecode.js +1 -1
  98. package/library/components/tree-item.js +1 -1
  99. package/library/components/tree.js +1 -1
  100. package/library/components/typeface.js +1 -1
  101. package/library/components/types.js +12629 -12629
  102. package/library/package.json +1 -1
  103. package/library/packages/atoms/src/components/option/option.d.ts +15 -2
  104. package/library/packages/atoms/src/components/select/select.d.ts +23 -2
  105. package/library/packages/molecules/src/sidebar/sidebar.d.ts +16 -2
  106. package/library/packages/types/src/sidebar.d.ts +2 -0
  107. package/library/packages/utils/src/string/string.d.ts +20 -0
  108. package/library/react-web-component.d.ts +22 -2
  109. package/library/utils.js +26 -26
  110. package/package.json +1 -1
  111. package/library/chunks/option.Da60zYvc.js +0 -100
  112. package/library/chunks/sidebar.CwAW3KaC.js +0 -100
@@ -6,7 +6,7 @@ import { t as u } from "./slot.CZUlACxT.js";
6
6
  import { t as d } from "./watch.Ub5r8btz.js";
7
7
  import { t as f } from "./when.BUskJLtZ.js";
8
8
  import { t as p } from "./debounce.Ci-xdsHE.js";
9
- import { g as m } from "./string.DAuTpyw8.js";
9
+ import { v as m } from "./string.9yahdkB8.js";
10
10
  import { t as h } from "./unsafe-html.Cb838aX7.js";
11
11
  //#region ../../packages/atoms/src/components/diff/diff.styles.ts
12
12
  var g = t`:host,.cx-diff__content{display:inline}.cx-diff__del,.cx-diff__old{background-color:var(--cx-diff-deleted-bg,var(--cx-color-neutral-200));color:var(--cx-diff-deleted-color,inherit);margin-inline-end:var(--cx-diff-gap,var(--cx-spacing-2x-small));text-decoration:line-through}.cx-diff__ins,.cx-diff__new{background-color:var(--cx-diff-inserted-bg,var(--cx-color-success-200));color:var(--cx-diff-inserted-color,inherit)}`, _ = "(function(){let e=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`],t=[`<table>`];function n(t){return t?e.includes(t.match(/^<(\\w+)/)?.[1]?.toLowerCase()||t.match(/^<\\/(\\w+)/)?.[1]?.toLowerCase()||``):!1}function r(e){return!e||n(e.key)?!1:/<([a-z]+)(?![^>]*\\/>)[^>]*>/.test(e.key)}function i(e){return!e||n(e.key)?!1:/<\\/\\w+>/.test(e.key)}let a=/* @__PURE__ */ RegExp(`^<(iframe|object|math|svg|script|video|head|style|a|source)\\b`);function o(e){return e===`>`}function s(e){return e===`<`}function c(e){return/^\\s+$/.test(e)}function l(e){let t=e.match(/^\\s*<([^!>][^>]*)>\\s*$/);return!!t&&t[1].trim().split(` `)[0]}function u(e){return!l(e)}function d(e){return/^<!--/.test(e)}function f(e){return/-->$/.test(e)}function p(e){let t=a.exec(e);return t&&t[1]}function m(e,t){return e.substring(e.length-t.length-2)===`</`+t}function h(e){let t=/^<img[\\s>]/.test(e);return!/^<source[\\s>]/.test(e)&&(t||u(e)||!!p(e)||n(e))}function g(e){return{key:e,string:e}}function _(e,t,n,r){this.segment=r,this.length=n,this.startInBefore=e+r.beforeIndex,this.startInAfter=t+r.afterIndex,this.endInBefore=this.startInBefore+this.length-1,this.endInAfter=this.startInAfter+this.length-1,this.segmentStartInBefore=e,this.segmentStartInAfter=t,this.segmentEndInBefore=this.segmentStartInBefore+this.length-1,this.segmentEndInAfter=this.segmentStartInAfter+this.length-1}function v(e){let t=`char`,n=``,r=``,i=[];for(let l=0;l<e.length;l++){let u=e[l];switch(t){case`tag`:var a=p(n);a?(t=`atomic_tag`,r=a,n+=u):d(n)?(t=`html_comment`,n+=u):o(u)?(n+=`>`,i.push(g(n)),n=``,t=c(u)?`whitespace`:`char`):n+=u;break;case`atomic_tag`:o(u)&&m(n,r)?(n+=`>`,i.push(g(n)),n=``,r=``,t=`char`):n+=u;break;case`html_comment`:n+=u,f(n)&&(n=``,t=`char`);break;case`char`:s(u)?(n&&i.push(g(n)),n=`<`,t=`tag`):/\\s/.test(u)?(n&&i.push(g(n)),n=u,t=`whitespace`):/[\\w\\d#@]/.test(u)?n+=u:/&/.test(u)?(n&&i.push(g(n)),n=u):(n+=u,i.push(g(n)),n=``);break;case`whitespace`:s(u)?(n&&i.push(g(n)),n=`<`,t=`tag`):c(u)?n+=u:(n&&i.push(g(n)),n=u,t=`char`);break;default:throw Error(`Unknown mode `+t)}}return n&&i.push(g(n)),i}function y(e){let t=/^<img.*src=['\"]([^\"']*)['\"].*>$/.exec(e);if(t)return`<img src=\"`+t[1]+`\">`;let n=/^<a.*href=['\"]([^\"']*)['\"]/.exec(e);if(n)return`<a href=\"`+n[1]+`\"></a>`;let r=/^<object.*data=['\"]([^\"']*)['\"]/.exec(e);if(r)return`<object src=\"`+r[1]+`\"></object>`;if(/^<(svg|math|video)[\\s>]/.test(e)){let t=e.indexOf(`data-uuid=\"`);return t===-1?e:e.slice(0,t)+e.slice(t+44)}let i=/^<iframe.*src=['\"]([^\"']*)['\"].*>/.exec(e);if(i)return`<iframe src=\"`+i[1]+`\"></iframe>`;let a=/<([^\\s>]+)[\\s>]/.exec(e);return a?`<`+a[1].toLowerCase()+`>`:e&&e.replace(/(\\s+|&nbsp;|&#160;)/g,` `)}function b(e){return e.reduce((e,t,n)=>(e[t.key]?e[t.key].push(n):e[t.key]=[n],e),Object.create(null))}function x(e,t){return t.endInBefore<e.startInBefore&&t.endInAfter<e.startInAfter?-1:+(t.startInBefore>e.endInBefore&&t.startInAfter>e.endInAfter)}function S(){this._root=null}S.prototype={add:function(e){let t={left:null,right:null,value:e},n=this._root;if(n)for(;;){let r=x(n.value,e);if(r===-1){if(n.left)n=n.left;else{n.left=t;break}}else if(r===1){if(n.right)n=n.right;else{n.right=t;break}}else break}else this._root=t},toArray:function(){function e(t,n){return t&&(e(t.left,n),n.push(t.value),e(t.right,n)),n}return e(this._root,[])}};function C(e,n,a){let o=e.beforeTokens,s=e.afterMap,c=null,l=null;for(var u=0;u<o.length;u++){var d=!1;let f=o.length-u;if(l&&f<l.length)break;let p=o[u];if(t.includes(y(p.key)))continue;if(p.key===` `){c=u;continue}c===u-1&&(d=!0);let m=s[p.key];if(m)for(let o of m){let s=l?l.length:0,c=w(e,u,o,s,d);if(c&&c.length>s){let e=0,o=``,s=``,u=0,d=0,f=0;for(let t=c.endInBefore;t>=c.startInBefore;t--)i(n[t])?e++:r(n[t])&&e>0&&e--;for(let e=c.endInAfter;e>=c.startInAfter;e--)i(a[e])?u++:r(a[e])&&u>0&&u--;let p=c.startInBefore-1,m=c.startInAfter-1,h=!0,g=n.length+a.length,_=0;for(;(p>=0||m>=0)&&!(_>g);)if(_++,p>=0&&!o&&(r(n[p])?d>0?d--:e>0?(o=n[p].string,e--):o=n[p].string:i(n[p])&&d++,p--),m>=0&&!s&&(r(a[m])?f>0?f--:u>0?(s=a[m].string,u--):s=a[m].string:i(a[m])&&f++,m--),o&&s||o&&m<0||s&&p<0){if(o!==s||t.includes(y(o))){h=!1;break}o=``,s=``;continue}h&&(l=c)}}}return l||null}function w(e,n,r,i,a){let o=e.beforeTokens,s=e.afterTokens,c=n+i,l=r+i;if(c>=o.length||l>=s.length)return;let u=``;if(i){let e=o[c].key;if(e!==s[l].key&&!t.includes(y(e)))return}let d=!0,f=1,p=n+f,m=r+f;for(;d&&p<o.length&&m<s.length;){u=o[p].key;let e=s[m].key;u===e&&!t.includes(y(u))?(f++,p=n+f,m=r+f):d=!1}if(a&&n>0&&r>0){let e=o[n-1].key,t=s[r-1].key;e===` `&&t===` `&&(n--,r--,f++)}return new _(n,r,f,e)}function T(e,t,n,r){return{afterIndex:r,afterMap:b(t),afterTokens:t,beforeIndex:n,beforeMap:b(e),beforeTokens:e}}function E(e){let t=new S,n,r=[e],i=e.beforeTokens,a=e.afterTokens;for(;r.length;)if(e=r.pop(),n=C(e,i,a),n&&n.length){if(n.segmentStartInBefore>0&&n.segmentStartInAfter>0){let t=e.beforeTokens.slice(0,n.segmentStartInBefore),i=e.afterTokens.slice(0,n.segmentStartInAfter);r.push(T(t,i,e.beforeIndex,e.afterIndex))}let i=e.beforeTokens.slice(n.segmentEndInBefore+1),a=e.afterTokens.slice(n.segmentEndInAfter+1),o=e.beforeIndex+n.segmentEndInBefore+1,s=e.afterIndex+n.segmentEndInAfter+1;i.length&&a.length&&r.push(T(i,a,o,s)),t.add(n)}return t.toArray()}function D(e,t){if(!e)throw Error(`Missing beforeTokens`);if(!t)throw Error(`Missing afterTokens`);let n=0,r=0,i=[],a=T(e,t,0,0),o=E(a);o.push(new _(e.length,t.length,0,a));for(let e=0;e<o.length;e++){let t=o[e],a=`none`;n===t.startInBefore?r!==t.startInAfter&&(a=`insert`):(a=`delete`,r!==t.startInAfter&&(a=`replace`)),a!==`none`&&i.push({action:a,endInAfter:a===`delete`?null:t.startInAfter-1,endInBefore:a===`insert`?null:t.startInBefore-1,startInAfter:r,startInBefore:n}),t.length!==0&&i.push({action:`equal`,endInAfter:t.endInAfter,endInBefore:t.endInBefore,startInAfter:t.startInAfter,startInBefore:t.startInBefore}),n=t.endInBefore+1,r=t.endInAfter+1}let s=[],c={action:`none`,endInAfter:null,endInBefore:null,startInAfter:0,startInBefore:0};function l(t){return t.action!==`equal`||(t.endInBefore??0)-t.startInBefore!==0?!1:/^\\s$/.test(e.slice(t.startInBefore,(t.endInBefore??0)+1))}for(let e=0;e<i.length;e++){let t=i[e];l(t)&&c.action===`replace`||t.action===`replace`&&c.action===`replace`?(c.endInBefore=t.endInBefore,c.endInAfter=t.endInAfter):(s.push(t),c=t)}return s}function O(e){this.tokens=e,this.notes=e.reduce((e,t,i)=>{e.notes.push({insertedTag:r({key:t}),isWrappable:h(t)});let a=!n(t)&&l(t),o=e.tagStack[e.tagStack.length-1];return a&&(o&&`/`+o.tag===a?(e.notes[o.position].insertedTag=!0,e.tagStack.pop()):e.tagStack.push({position:i,tag:a})),e},{notes:[],tagStack:[]}).notes}O.prototype.combine=function(e,t){let n=this.notes,r=this.tokens.slice();return r.reduce((e,i,a)=>{n[a].insertedTag&&(r[a]=t(r[a])),e.status===null&&(e.status=n[a].isWrappable);let o=n[a].isWrappable;return o!==e.status&&(e.list.push({isWrappable:e.status,tokens:r.slice(e.lastIndex,a)}),e.lastIndex=a,e.status=o),a===r.length-1&&e.list.push({isWrappable:e.status,tokens:r.slice(e.lastIndex,a+1)}),e},{lastIndex:0,list:[],status:null}).list.map(e).join(``)};function k(e,t,n,r,i){let a=new O(t);r=r?r+`-`:``;let o=` data-`+r+`operation-index=\"`+n+`\"`;return i&&(o+=` class=\"`+i+`\"`),a.combine(t=>{if(t.isWrappable){let n=t.tokens.join(``);return n.trim()?`<`+e+o+`>`+n+`</`+e+`>`:n}return t.tokens.join(``)},t=>{let i=` data-diff-node=\"`+e+`\"`;return i+=` data-`+r+`operation-index=\"`+n+`\"`,t.replace(/>\\s*$/,i+`$&`)})}let A={delete:function(e,t,n,r,i,a){return k(`del`,t.slice(e.startInBefore,(e.endInBefore??0)+1).map(e=>e.string),r,i,a)},equal:function(e,t,n){return n.slice(e.startInAfter,(e.endInAfter??0)+1).reduce((e,t)=>e+t.string,``)},insert:function(e,t,n,r,i,a){return k(`ins`,n.slice(e.startInAfter,(e.endInAfter??0)+1).map(e=>e.string),r,i,a)},replace:function(e,t,n){let r=t.slice(e.startInBefore,(e.endInBefore??0)+1).reduce((e,t)=>e+t.string,``),i=n.slice(e.startInAfter,(e.endInAfter??0)+1).reduce((e,t)=>e+t.string,``);return r===i?i:A.delete.apply(null,arguments)+A.insert.apply(null,arguments)}};function j(e,t,n,r,i){return n.reduce((n,a,o)=>n+A[a.action](a,e,t,o,r,i),``)}function M(e){return e.replaceAll(/(\\w+)=(\"[^\"]*\")/g,(e,t,n)=>`${t}=${n.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}`)}function N(e){return e.replaceAll(/(\\w+)=(\"[^\"]*\")/g,(e,t,n)=>`${t}=${n.replaceAll(`&lt;`,`<`).replaceAll(`&gt;`,`>`)}`)}function P(e,t,n,r,i){if(e===t)return e;i&&(a=RegExp(`^<(`+i.replace(/\\s*/g,``).replace(/,/g,`|`)+`)\\b`));let o=M(e),s=M(t),c=v(o),l=v(s);return N(j(c,l,D(c,l),r,n))}function F(e){let t=/<[^>]*\\sstyle=\"([^\"]*)\"[^>]*>/,n=e.match(t),r=n?.[1]?Object.fromEntries(n[1].split(`;`).map(e=>e.split(`:`))):{},i=``,a=``;Object.keys(r).filter(e=>e?e.includes(`border`)||e.includes(`padding`)||[`width`,`height`].includes(e)?(i+=`${e}:${r[e]};`,!1):!0:!1).forEach(e=>{a+=`${e}:${r[e]};`});let o=n?e.replace(t,e=>e.replace(/style=\"[^\"]*\"/,`style=\"${i}\"`)):e;return[a,o]}typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&(self.onmessage=function(e){if(e.data.type===`cx-diff-request`){let{id:t,newValue:n,oldValue:r}=e.data.payload;try{let e=P(r,n);self.postMessage({payload:{id:t,result:e},type:`cx-diff-response`})}catch{self.postMessage({payload:{id:t,result:``},type:`cx-diff-response`})}}if(e.data.type===`diffHTMLRequest`){let{changeRecordID:t,newValue:n,oldValue:r}=e.data.payload;try{let e=P(r,n).replaceAll(/<ins[^>]*>/g,`<span class=\"mce-item-ins-node\">`).replaceAll(`</ins>`,`</span>`).replaceAll(/<del[^>]*>/g,`<span class=\"mce-item-del-node\">`).replaceAll(`</del>`,`</span>`),i=[`video`,`code`,`iframe`],a=RegExp(`<(${i.join(`|`)})[^>]*>`,`g`),o=RegExp(`<\\/(${i.join(`|`)})[^>]*>`,`g`);e=e.replaceAll(a,e=>{let t=F(e);return`<span class=\"block-wrapper\" style=\"${t[0]}\">${t[1]}`}).replaceAll(o,e=>`${e}</span>`).replaceAll(/* @__PURE__ */ RegExp(`<(img)[^>]*>`,`g`),e=>{let t=F(e);return`<span class=\"block-wrapper\" style=\"${t[0]}\">${t[1]}</span>`}),self.postMessage({payload:{changeRecordID:t,diff:e,newValue:n,oldValue:r},type:`diffHTML`})}catch{self.postMessage({payload:{changeRecordID:t,diff:``,newValue:n,oldValue:r},type:`diffHTML`})}}})})();", v = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", _], { type: "text/javascript;charset=utf-8" });
@@ -11,18 +11,18 @@ import { t as icon_button_default } from "./icon-button.BAUsYiQh.js";
11
11
  import { t as n$1 } from "./when.BUskJLtZ.js";
12
12
  import { t as icon_default } from "./icon.CeQpEaQz.js";
13
13
  import { t as spinner_default } from "./spinner.DsWszid8.js";
14
- import { t as button_default } from "./button.DnOMjl_G.js";
14
+ import { t as button_default } from "./button.BnTohvSe.js";
15
15
  import { a as ResizeDirection, i as HeightMode, n as ResizableElement, t as resizable_component_styles_default } from "./resizable-component.styles.v9pbLDG5.js";
16
16
  import { t as resize_observer_default } from "./resize-observer.D9EHlnZI.js";
17
17
  import { t as tooltip_default } from "./tooltip.DJl5qcTx.js";
18
18
  import { a as ObjectFit } from "./src.BJhIYoMP.js";
19
19
  import { t as typography_default } from "./typography.B0mkhqTB.js";
20
- import { t as dropdown_default } from "./dropdown.CKad9CvP.js";
20
+ import { t as dropdown_default } from "./dropdown.EJbgwPgi.js";
21
21
  import { t as focusWhenVisible } from "./focus-when-visible.DKscgyKo.js";
22
- import { t as input_default } from "./input.D1UkXp3F.js";
22
+ import { t as input_default } from "./input.Cqg_VUUU.js";
23
23
  import { t as menu_default } from "./menu.DNeN3pz0.js";
24
24
  import { t as menu_item_default } from "./menu-item.CCbtHE5R.js";
25
- import { Y as fetchCortexApi } from "./src.BJpSLSUr.js";
25
+ import { Y as fetchCortexApi } from "./src.DY4Vfem2.js";
26
26
  import { t as drawer_default } from "./drawer.Ba0CKg86.js";
27
27
  import { t as progress_bar_default } from "./progress-bar.BfHPsueW.js";
28
28
  import { a as require_react, n as w, r as require_client, t as require_jsx_runtime } from "./jsx-runtime.BqxT1jD6.js";
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./lit.CyJqR2kf.js";
2
- import { g as t } from "./string.DAuTpyw8.js";
2
+ import { v as t } from "./string.9yahdkB8.js";
3
3
  //#region ../../packages/utils/src/dom/dom.ts
4
4
  var n = (e) => e.nodeType === Node.ELEMENT_NODE, r = (e, t) => {
5
5
  if (!e) return !1;
@@ -14,9 +14,9 @@ import { t as y } from "./if-defined.B29V_rEp.js";
14
14
  import { t as b } from "./active-elements.Tk45XSNQ.js";
15
15
  import { t as x } from "./focus-when-visible.DKscgyKo.js";
16
16
  import { t as S } from "./tabbable.BSwpOHdm.js";
17
- import { t as C } from "./input.D1UkXp3F.js";
17
+ import { t as C } from "./input.Cqg_VUUU.js";
18
18
  import { t as w } from "./menu.DNeN3pz0.js";
19
- import { t as T } from "./textarea.BgWdR_7D.js";
19
+ import { t as T } from "./textarea.CHSZI8vt.js";
20
20
  //#region ../../packages/utils/src/custom-element/escapable-overlays.ts
21
21
  var E = [], D = class {
22
22
  constructor(e) {
@@ -10,10 +10,10 @@ import { t as f } from "./if-defined.B29V_rEp.js";
10
10
  import { t as p } from "./when.BUskJLtZ.js";
11
11
  import { t as m } from "./style-map.DPGQIxip.js";
12
12
  import { t as h } from "./debounce.Ci-xdsHE.js";
13
- import { t as g } from "./button.DnOMjl_G.js";
13
+ import { t as g } from "./button.BnTohvSe.js";
14
14
  import { t as _ } from "./repeat.CKv9FPlC.js";
15
- import { n as v, t as y } from "./option.Da60zYvc.js";
16
- import { t as b } from "./select.CEgt2ciT.js";
15
+ import { n as v, t as y } from "./option.g339be2v.js";
16
+ import { t as b } from "./select.jh554mmg.js";
17
17
  import { t as x } from "./map.ByDuLduF.js";
18
18
  import { t as S } from "./keyed.zYwdaCfO.js";
19
19
  import { t as C } from "./_baseIteratee.DWc2-Bvm.js";
@@ -8,7 +8,7 @@ import { t as m } from "./i18n.CQPiI18Q.js";
8
8
  import { t as h } from "./watch.Ub5r8btz.js";
9
9
  import { t as g } from "./class-map.D8nsNOVJ.js";
10
10
  import { n as _, t as v } from "./animation-registry.DKd2AOcC.js";
11
- import { t as y } from "./button.DnOMjl_G.js";
11
+ import { t as y } from "./button.BnTohvSe.js";
12
12
  //#region ../../packages/atoms/src/components/element-clamp/element-clamp.styles.ts
13
13
  var b = t`:host{--toggler-color:var(--cx-color-primary);display:block;overflow:hidden}.element-clamp{overflow-anchor:none}.element-clamp--disabled{opacity:.5}.element-clamp-icon{transition:var(--cx-transition-medium) rotate ease;flex:none;align-items:center;display:flex}.details--open .element-clamp-icon{rotate:90deg}.details--open.details--rtl .element-clamp-icon{rotate:-90deg}.element-clamp--open slot[name=expand-icon],.element-clamp:not(.element-clamp--open) slot[name=collapse-icon]{display:none}.element-clamp__content{display:block;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`, x = class extends o {
14
14
  static #e = this.styles = [c, b];
@@ -12,20 +12,20 @@ import { t as v } from "./icon.CeQpEaQz.js";
12
12
  import { t as ee } from "./spinner.DsWszid8.js";
13
13
  import { t as te } from "./style-map.DPGQIxip.js";
14
14
  import { t as ne } from "./debounce.Ci-xdsHE.js";
15
- import { t as re } from "./button.DnOMjl_G.js";
16
- import { d as y } from "./string.DAuTpyw8.js";
15
+ import { t as re } from "./button.BnTohvSe.js";
16
+ import { p as y } from "./string.9yahdkB8.js";
17
17
  import { t as b } from "./tooltip.DJl5qcTx.js";
18
- import { t as x } from "./line-clamp.COXyDBRB.js";
18
+ import { t as x } from "./line-clamp.DfbWHPf2.js";
19
19
  import { t as S } from "./number.CNp5LKkv.js";
20
20
  import { t as C } from "./typography.B0mkhqTB.js";
21
21
  import { t as ie } from "./avatar.Ce0OZHBT.js";
22
22
  import { t as w } from "./repeat.CKv9FPlC.js";
23
- import { t as ae } from "./input.D1UkXp3F.js";
24
- import { t as oe } from "./option.Da60zYvc.js";
23
+ import { t as ae } from "./input.Cqg_VUUU.js";
24
+ import { t as oe } from "./option.g339be2v.js";
25
25
  import { t as se } from "./space.Dd8jezXK.js";
26
- import { t as ce } from "./select.CEgt2ciT.js";
27
- import { t as le } from "./tab.C0oUx7MY.js";
28
- import { t as T } from "./tab-group.BSdtDqou.js";
26
+ import { t as ce } from "./select.jh554mmg.js";
27
+ import { t as le } from "./tab.ACKD6jJ8.js";
28
+ import { t as T } from "./tab-group.DkF7nLim.js";
29
29
  import { t as ue } from "./tab-panel.BxeoKuSv.js";
30
30
  import { t as E } from "./dialog.DprCsbFG.js";
31
31
  import { t as de } from "./divider.CqSNZCU8.js";
@@ -33,8 +33,8 @@ import { t as fe } from "./progress-bar.BfHPsueW.js";
33
33
  import { o as D, u as O } from "./url.BCc06dE7.js";
34
34
  import k from "../components/format-bytes.js";
35
35
  import { t as pe } from "./relative-time.BcpFkSZT.js";
36
- import { a as A, i as me, n as he, t as j } from "./tree.CnEAk97A.js";
37
- import { t as ge } from "./confirm-popover.DpVrPWXU.js";
36
+ import { a as A, i as me, n as he, t as j } from "./tree.Dc1p0HOj.js";
37
+ import { t as ge } from "./confirm-popover.buH5MWGz.js";
38
38
  import { t as _e } from "./_baseIteratee.DWc2-Bvm.js";
39
39
  import { t as ve } from "./choose.C2vpqhLc.js";
40
40
  import { t as ye } from "./_baseXor.Ca5K0ORC.js";
@@ -11,17 +11,17 @@ import { t as m } from "./when.BUskJLtZ.js";
11
11
  import { t as h } from "./icon.CeQpEaQz.js";
12
12
  import { t as g } from "./style-map.DPGQIxip.js";
13
13
  import { t as _ } from "./debounce.Ci-xdsHE.js";
14
- import { t as v } from "./button.DnOMjl_G.js";
15
- import { c as y, d as b, i as x } from "./string.DAuTpyw8.js";
16
- import { t as S } from "./line-clamp.COXyDBRB.js";
17
- import { t as C } from "./tag.B2S21_nF.js";
14
+ import { t as v } from "./button.BnTohvSe.js";
15
+ import { i as y, p as b, u as x } from "./string.9yahdkB8.js";
16
+ import { t as S } from "./line-clamp.DfbWHPf2.js";
17
+ import { t as C } from "./tag.uwkILLDo.js";
18
18
  import { t as w } from "./repeat.CKv9FPlC.js";
19
- import { t as T } from "./input.D1UkXp3F.js";
19
+ import { t as T } from "./input.Cqg_VUUU.js";
20
20
  import { t as E } from "./space.Dd8jezXK.js";
21
- import { t as D } from "./select.CEgt2ciT.js";
21
+ import { t as D } from "./select.jh554mmg.js";
22
22
  import { t as O } from "./template.Cyvih0XQ.js";
23
23
  import { s as k } from "./asset-link-format.COPyGdND.js";
24
- import { a as A, i as j } from "./tree.CnEAk97A.js";
24
+ import { a as A, i as j } from "./tree.Dc1p0HOj.js";
25
25
  import { l as M, m as N, p as P, t as F } from "./string-array.Dstcqyjm.js";
26
26
  import { t as I } from "./choose.C2vpqhLc.js";
27
27
  //#region ../../node_modules/axios/index.js
@@ -170,12 +170,12 @@ var K = /* @__PURE__ */ function(e) {
170
170
  }
171
171
  async syncBoxes() {
172
172
  if (this.selection !== "multiple" || (await this.updateComplete, !this.treeItem)) return;
173
- let e = this.fullPath, t = y({
173
+ let e = this.fullPath, t = x({
174
174
  id: this.folderId,
175
175
  path: e
176
176
  }), n = b(e), r = this.currentRootIDsSet.has(t), i = !1;
177
177
  if (e) for (let e of this.currentRootIDsSet) {
178
- let t = x(e);
178
+ let t = y(e);
179
179
  if (!t.path.trim() || !t.id.trim()) continue;
180
180
  let r = b(t.path);
181
181
  if (r.startsWith(n) && r !== n) {
@@ -194,7 +194,7 @@ var K = /* @__PURE__ */ function(e) {
194
194
  return e`<cx-icon class="folder-select-tree__item__icon" name=${this.icon || "folder"} variant=${n}></cx-icon>`;
195
195
  }
196
196
  render() {
197
- return e`<cx-tree-item class=${f({ "folder-select-tree-item": !0 })} data-id=${this.folderId} data-url=${p(this.url)} data-name=${p(this.name?.trim() || void 0)} data-representative-asset-id=${p(this.representativeAssetId || void 0)} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection === "multiple" ? this.currentRootIDsSet.has(y({
197
+ return e`<cx-tree-item class=${f({ "folder-select-tree-item": !0 })} data-id=${this.folderId} data-url=${p(this.url)} data-name=${p(this.name?.trim() || void 0)} data-representative-asset-id=${p(this.representativeAssetId || void 0)} role="option" ?lazy=${this.hasChildren && this.data === null} ?selected=${this.selection === "multiple" ? this.currentRootIDsSet.has(x({
198
198
  id: this.folderId,
199
199
  path: this.fullPath
200
200
  })) : this.selectedValue === this.folderId} ?disabled-sync-checkboxes=${this.selection === "multiple"} .selectable=${this.selectable} @cx-lazy-load=${this.handleLazyLoad} @cx-after-collapse=${this.handleAfterCollapse}><cx-space class="folder-select-tree-item__label" direction="horizontal" spacing="x-small" align-items="center" wrap="nowrap">${this.renderIcon()}<cx-line-clamp lines="1" class="folder-select-tree-item__title">${O(this.name, this.searchTerm)}</cx-line-clamp></cx-space>${w(this.data || [], (e) => e.id, (t) => e`<cx-folder-select-tree-item slot="children" folder-id=${t.id} full-path=${t.fullPath} name=${t.title} doc-type=${t.docType} icon-name=${p(t.iconName || void 0)} icon-image-url=${p(t.iconImageUrl || void 0)} icon-color=${p(t.iconColor || void 0)} representative-asset-id=${t.representativeAssetId} selected-value=${this.selectedValue} selection=${this.selection} token=${this.token} bearer-token=${this.bearerToken} ?exclude-virtual-folders=${this.excludeVirtualFolders} ?reload-on-expand=${this.reloadOnExpand} ?has-children=${t.hasChildren} ?is-font-icon=${t.isFontIcon} ?selectable=${this.selectable} base-url=${this.baseUrl} url=${p(t.url ?? void 0)} .api=${this.api} .currentRootIDsSet=${this.currentRootIDsSet} .removedIDs=${this.removedIDs} value=${t.url}></cx-folder-select-tree-item>`)}
@@ -352,7 +352,7 @@ var J = q, Y = class extends o {
352
352
  if (this.selection !== "multiple") return;
353
353
  let t = e.target, n = t.dataset.id ?? "", r = t.closest("cx-folder-select-tree-item")?.fullPath;
354
354
  if (await t.updateComplete, !n.trim() || !r?.trim()) return;
355
- let i = y({
355
+ let i = x({
356
356
  id: n,
357
357
  path: r
358
358
  });
@@ -391,7 +391,7 @@ var J = q, Y = class extends o {
391
391
  t.length !== this.preloadedFolders.length && (this.preloadedFolders = t), this.removeDeselectedRootIDs(e), await this.preloadSelectedFolders();
392
392
  }
393
393
  removeDeselectedRootIDs(e) {
394
- let t = new Set([...this.currentRootIDsSet].filter((t) => e.has(x(t).id)));
394
+ let t = new Set([...this.currentRootIDsSet].filter((t) => e.has(y(t).id)));
395
395
  t.size !== this.currentRootIDsSet.size && (this.currentRootIDsSet = t);
396
396
  }
397
397
  async fetchFolders() {
@@ -427,7 +427,7 @@ var J = q, Y = class extends o {
427
427
  }
428
428
  async preloadSelectedFolders() {
429
429
  if (this.selection !== "multiple" || !this.selectedValue || !this.api) return !1;
430
- let e = new Set(this.selectedValue.split(/[\s,]+/).filter(Boolean)), t = new Set([...this.currentRootIDsSet].map((e) => x(e).id)), n = /* @__PURE__ */ new Set([...t, ...this.#r]), r = [...e].filter((e) => !n.has(e));
430
+ let e = new Set(this.selectedValue.split(/[\s,]+/).filter(Boolean)), t = new Set([...this.currentRootIDsSet].map((e) => y(e).id)), n = /* @__PURE__ */ new Set([...t, ...this.#r]), r = [...e].filter((e) => !n.has(e));
431
431
  if (r.length === 0) return !1;
432
432
  r.forEach((e) => this.#r.add(e)), this.preloading = !0;
433
433
  let i = [];
@@ -456,7 +456,7 @@ var J = q, Y = class extends o {
456
456
  if (this.selection !== "multiple" || !this.selectedValue) return !1;
457
457
  let n = new Set(this.selectedValue.split(/[\s,]+/).map((e) => e.trim()).filter(Boolean)), r = !1;
458
458
  for (let t of e) if (t.fullPath && n.has(t.id)) {
459
- let e = y({
459
+ let e = x({
460
460
  id: t.id,
461
461
  path: t.fullPath
462
462
  });
@@ -619,7 +619,7 @@ var X = Y, Z = t`:host{flex-direction:column;width:100%;height:100%;min-height:0
619
619
  e && (await e.updateComplete, this.emit("cx-selection-change", { detail: { selection: e.selectedItems } }));
620
620
  }
621
621
  syncValueFromTree() {
622
- this.treeEl && (this.value = [...this.treeEl.currentRootIDsSet].map((e) => x(e).id).filter(Boolean).join(" "));
622
+ this.treeEl && (this.value = [...this.treeEl.currentRootIDsSet].map((e) => y(e).id).filter(Boolean).join(" "));
623
623
  }
624
624
  syncSelectValue() {
625
625
  this.selectEl && (this.selectEl.value = this.selection === "multiple" ? this.value.split(/[\s,]+/).filter(Boolean) : this.value);
@@ -1,4 +1,4 @@
1
- import { h as e } from "./dom.BsVeSE01.js";
1
+ import { h as e } from "./dom.BLHsooDR.js";
2
2
  //#region ../../packages/utils/src/custom-element/form.ts
3
3
  var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakSet(), a = /* @__PURE__ */ new WeakMap(), o = class {
4
4
  constructor(n, r) {
@@ -10,7 +10,7 @@ import { t as p } from "./class-map.D8nsNOVJ.js";
10
10
  import { t as m } from "./if-defined.B29V_rEp.js";
11
11
  import { t as h } from "./when.BUskJLtZ.js";
12
12
  import { t as g } from "./icon.CeQpEaQz.js";
13
- import { t as _ } from "./form.JYXtmwQ2.js";
13
+ import { t as _ } from "./form.D_eBa3AQ.js";
14
14
  import { t as v } from "./form-control.styles.Cec6lJbi.js";
15
15
  import { t as y } from "./default-value.opqQgoRT.js";
16
16
  import { t as b } from "./live.DBO71pfx.js";
@@ -5,7 +5,7 @@ import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
6
  import { c as u } from "./browser.Ct4pHP9I.js";
7
7
  import { t as d } from "./debounce.Ci-xdsHE.js";
8
- import { t as f } from "./button.DnOMjl_G.js";
8
+ import { t as f } from "./button.BnTohvSe.js";
9
9
  import { t as p } from "./resize-observer.D9EHlnZI.js";
10
10
  import { t as m } from "./tooltip.DJl5qcTx.js";
11
11
  //#region ../../packages/atoms/src/components/line-clamp/line-clamp.styles.ts
@@ -5,7 +5,7 @@ import { t as l } from "./custom-element.BEMYNDK1.js";
5
5
  import { t as u } from "./i18n.CQPiI18Q.js";
6
6
  import { t as d } from "./watch.Ub5r8btz.js";
7
7
  import { n as f, t as p } from "./icon-button.BAUsYiQh.js";
8
- import { g as m } from "./string.DAuTpyw8.js";
8
+ import { v as m } from "./string.9yahdkB8.js";
9
9
  import { t as h } from "./unsafe-html.Cb838aX7.js";
10
10
  //#region ../../packages/base/src/cortex-light-element.ts
11
11
  var g = class extends c {
@@ -0,0 +1,136 @@
1
+ import { c as e, d as t, r as n } from "./lit.CyJqR2kf.js";
2
+ import { a as r, i, n as a, r as o, t as s } from "./cortex-element.DTrNUtdr.js";
3
+ import { t as c } from "./query.B1yi7t71.js";
4
+ import { t as l } from "./component.styles.0xM1ZmBs.js";
5
+ import { t as u } from "./custom-element.BEMYNDK1.js";
6
+ import { t as d } from "./i18n.CQPiI18Q.js";
7
+ import { t as f } from "./watch.Ub5r8btz.js";
8
+ import { t as p } from "./class-map.D8nsNOVJ.js";
9
+ import { t as m } from "./when.BUskJLtZ.js";
10
+ import { t as h } from "./icon.CeQpEaQz.js";
11
+ import { t as g } from "./space.Dd8jezXK.js";
12
+ //#region ../../packages/types/src/option.ts
13
+ var _ = /* @__PURE__ */ function(e) {
14
+ return e.Left = "left", e.Right = "right", e;
15
+ }({}), v = t`:host{-webkit-user-select:none;user-select:none;display:block}:host(:focus){outline:none}.option{font:var(--cx-font-label-small);font-family:var(--option-font-family), var(--cx-font-sans);font-weight:var(--option-font-weight,var(--cx-font-weight-medium));letter-spacing:var(--cx-letter-spacing-normal);color:var(--option-color,var(--cx-color-neutral-700));padding:var(--cx-spacing-x-small) var(--cx-spacing-medium) var(--cx-spacing-x-small) var(--cx-spacing-x-small);transition:var(--cx-transition-fast) fill;cursor:pointer;align-items:center;display:flex;position:relative}.option:not(.option--show-check){padding-inline:var(--cx-spacing-small)}.option--hover:not(.option--current):not(.option--disabled){background-color:var(--cx-menu-item-background-color-hover)}.option--current,.option--current.option--disabled{background-color:var(--cx-menu-item-background-color-hover);opacity:1}.option--selected{color:var(--option-selected-color,var(--cx-color-primary));font-weight:var(--option-selected-font-weight,var(--cx-font-weight-regular))}.option--disabled{opacity:.5;cursor:default;outline:none}.option__content{flex:1}.option__label,.option__matched-label{line-height:var(--cx-line-height-medium);flex:auto;display:inline-block}.option__label--replaced{display:none!important}.option__match{color:inherit;font-weight:var(--cx-font-weight-bold);background:0 0}.option .option__check{visibility:hidden;flex:none;justify-content:center;align-items:center;padding-inline-end:var(--cx-spacing-2x-small);display:none}.option--show-check .option__check{display:block}.option--show-check.option--selected .option__check{visibility:visible}.option__help-text{color:var(--option-help-text-color,var(--cx-color-neutral-600));font-weight:var(--option-help-text-font-weight,var(--cx-font-weight-regular))}.option--selected .option__content .option__help-text{color:var(--option-selected-help-text-color,var(--cx-color-primary));font-weight:var(--option-selected-help-text-font-weight,var(--cx-font-weight-regular))}.option__prefix,.option__suffix{flex:none;align-items:center;display:flex}.option__prefix::slotted(*){margin-inline-end:var(--cx-spacing-x-small)}.option__suffix::slotted(*){margin-inline-start:var(--cx-spacing-x-small)}.option__prefix{align-self:var(--prefix-alignment,center)}.option__suffix{align-self:var(--suffix-alignment,center)}.option__check{align-self:var(--check-alignment,center)}@media (forced-colors:active){:host(:hover:not([aria-disabled=true])) .option{outline-offset:-1px;outline:1px dashed selecteditem}}`, y = class extends s {
16
+ constructor(...e) {
17
+ super(...e), this.localize = new d(this), this.current = !1, this.selected = !1, this.hasHover = !1, this.value = "", this.disabled = !1, this.showCheck = !1, this.checkPlacement = _.Left, this.matchRanges = [], this.#n = null;
18
+ }
19
+ static #e = this.styles = [l, v];
20
+ static #t = this.dependencies = {
21
+ "cx-icon": h,
22
+ "cx-space": g
23
+ };
24
+ #n;
25
+ connectedCallback() {
26
+ super.connectedCallback(), this.matchRanges.length > 0 && this.requestUpdate(), this.#r();
27
+ }
28
+ disconnectedCallback() {
29
+ super.disconnectedCallback(), this.#n?.disconnect(), this.#n = null;
30
+ }
31
+ updated(e) {
32
+ super.updated(e), e.has("matchRanges") && this.#r();
33
+ }
34
+ #r() {
35
+ this.matchRanges.length > 0 && this.isConnected && !this.#n ? (this.#n = new MutationObserver(() => this.requestUpdate()), this.#n.observe(this, {
36
+ characterData: !0,
37
+ subtree: !0
38
+ })) : this.matchRanges.length === 0 && this.#n && (this.#n.disconnect(), this.#n = null);
39
+ }
40
+ runFirstUpdated() {
41
+ this.setAttribute("role", "option"), this.setAttribute("aria-selected", "false");
42
+ }
43
+ handleDefaultSlotChange() {
44
+ this.matchRanges.length > 0 && this.requestUpdate();
45
+ let e = this.getTextLabel();
46
+ if (this.cachedTextLabel === void 0) {
47
+ this.cachedTextLabel = e;
48
+ return;
49
+ }
50
+ e !== this.cachedTextLabel && (this.cachedTextLabel = e, this.emit("slotchange", {
51
+ bubbles: !0,
52
+ cancelable: !1,
53
+ composed: !1
54
+ }));
55
+ }
56
+ handleMouseEnter() {
57
+ this.hasHover = !0;
58
+ }
59
+ handleMouseLeave() {
60
+ this.hasHover = !1;
61
+ }
62
+ handleDisabledChange() {
63
+ this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
64
+ }
65
+ handleSelectedChange() {
66
+ this.setAttribute("aria-selected", this.selected ? "true" : "false");
67
+ }
68
+ handleValueChange() {
69
+ typeof this.value != "string" && (this.value = String(this.value)), this.value.includes(" ") && (console.error("Option values cannot include a space. All spaces have been replaced with underscores.", this), this.value = this.value.replace(/ /g, "_"));
70
+ }
71
+ getTextLabel() {
72
+ let e = this.childNodes, t = "";
73
+ return [...e].forEach((e) => {
74
+ e.nodeType === Node.ELEMENT_NODE && (e.hasAttribute("slot") || (t += e.textContent)), e.nodeType === Node.TEXT_NODE && (t += e.textContent);
75
+ }), t.trim();
76
+ }
77
+ #i() {
78
+ return [...this.children].some((e) => !e.hasAttribute("slot"));
79
+ }
80
+ #a() {
81
+ if (this.matchRanges.length === 0 || this.#i()) return n;
82
+ let t = this.getTextLabel(), r = [], i = 0;
83
+ for (let { end: a, start: o } of this.matchRanges) {
84
+ if (o < i || o >= a || a > t.length) return n;
85
+ r.push(t.slice(i, o), e`<mark part="match" class="option__match">${t.slice(o, a)}</mark>`), i = a;
86
+ }
87
+ return r.push(t.slice(i)), e`<span part="label" class="option__matched-label">${r}</span>`;
88
+ }
89
+ render() {
90
+ let t = this.#a();
91
+ return e`<div part="base" class=${p({
92
+ option: !0,
93
+ "option--current": this.current,
94
+ "option--disabled": this.disabled,
95
+ "option--hover": this.hasHover,
96
+ "option--selected": this.selected,
97
+ "option--show-check": this.showCheck
98
+ })} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave}>${m(this.checkPlacement === _.Left, () => e`<cx-icon part="checked-icon" class="option__check" name="check" library="system" aria-hidden="true"></cx-icon>`)}<slot part="prefix" name="prefix" class="option__prefix"></slot><cx-space part="content" class="option__content" direction="vertical" spacing="3x-small"><slot part="label" class=${p({
99
+ option__label: !0,
100
+ "option__label--replaced": t !== n
101
+ })} @slotchange=${this.handleDefaultSlotChange}></slot>${t}<slot part="help-text" name="help-text" class="option__help-text"></slot></cx-space><slot part="suffix" name="suffix" class="option__suffix"></slot>${m(this.checkPlacement === _.Right, () => e`<cx-icon part="checked-icon" class="option__check" name="check" library="system" aria-hidden="true"></cx-icon>`)}</div>`;
102
+ }
103
+ };
104
+ a([c(".option__label"), o("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], y.prototype, "defaultSlot", void 0), a([i(), o("design:type", Object)], y.prototype, "current", void 0), a([i(), o("design:type", Object)], y.prototype, "selected", void 0), a([i(), o("design:type", Object)], y.prototype, "hasHover", void 0), a([r({ reflect: !0 }), o("design:type", Object)], y.prototype, "value", void 0), a([r({
105
+ reflect: !0,
106
+ type: Boolean
107
+ }), o("design:type", Object)], y.prototype, "disabled", void 0), a([r({
108
+ attribute: "show-check",
109
+ reflect: !0,
110
+ type: Boolean
111
+ }), o("design:type", Object)], y.prototype, "showCheck", void 0), a([r({
112
+ attribute: "check-placement",
113
+ reflect: !0,
114
+ type: String
115
+ }), o("design:type", _ === void 0 ? Object : _)], y.prototype, "checkPlacement", void 0), a([r({
116
+ attribute: !1,
117
+ hasChanged: (e, t = []) => e.length !== t.length || e.some((e, n) => e.start !== t[n].start || e.end !== t[n].end)
118
+ }), o("design:type", Array)], y.prototype, "matchRanges", void 0), a([
119
+ f("disabled"),
120
+ o("design:type", Function),
121
+ o("design:paramtypes", []),
122
+ o("design:returntype", void 0)
123
+ ], y.prototype, "handleDisabledChange", null), a([
124
+ f("selected"),
125
+ o("design:type", Function),
126
+ o("design:paramtypes", []),
127
+ o("design:returntype", void 0)
128
+ ], y.prototype, "handleSelectedChange", null), a([
129
+ f("value"),
130
+ o("design:type", Function),
131
+ o("design:paramtypes", []),
132
+ o("design:returntype", void 0)
133
+ ], y.prototype, "handleValueChange", null), y = a([u("cx-option")], y);
134
+ var b = y;
135
+ //#endregion
136
+ export { _ as n, b as t };
@@ -3,7 +3,7 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./component.styles.0xM1ZmBs.js";
4
4
  import { t as s } from "./custom-element.BEMYNDK1.js";
5
5
  import { t as c } from "./repeat.CKv9FPlC.js";
6
- import { t as l } from "./input.D1UkXp3F.js";
6
+ import { t as l } from "./input.Cqg_VUUU.js";
7
7
  import { t as u } from "./parse.CDrJ-NY7.js";
8
8
  import { t as d } from "./input-group.Dmd8XcxL.js";
9
9
  //#region ../../packages/molecules/src/padding-input-group/padding-input-group.styles.ts
@@ -7,15 +7,15 @@ import { t as u } from "./watch.Ub5r8btz.js";
7
7
  import { t as d } from "./class-map.D8nsNOVJ.js";
8
8
  import { n as f, t as p } from "./icon-button.BAUsYiQh.js";
9
9
  import { t as m } from "./when.BUskJLtZ.js";
10
- import { t as h } from "./button.DnOMjl_G.js";
10
+ import { t as h } from "./button.BnTohvSe.js";
11
11
  import { t as g } from "./tooltip.DJl5qcTx.js";
12
12
  import { t as _ } from "./typography.B0mkhqTB.js";
13
13
  import { t as v } from "./math.od1DVmRk.js";
14
14
  import { t as y } from "./repeat.CKv9FPlC.js";
15
- import { t as b } from "./input.D1UkXp3F.js";
16
- import { t as x } from "./option.Da60zYvc.js";
15
+ import { t as b } from "./input.Cqg_VUUU.js";
16
+ import { t as x } from "./option.g339be2v.js";
17
17
  import { t as S } from "./space.Dd8jezXK.js";
18
- import { t as C } from "./select.CEgt2ciT.js";
18
+ import { t as C } from "./select.jh554mmg.js";
19
19
  //#region ../../packages/types/src/pagination.ts
20
20
  var w = /* @__PURE__ */ function(e) {
21
21
  return e.Both = "both", e.Pages = "pages", e.Rows = "rows", e;
@@ -7,7 +7,7 @@ import { n as l } from "./position-picker.dY_vgF_H.js";
7
7
  import { t as u } from "./grid.CK4PRwur.js";
8
8
  import { t as d } from "./grid-item.CSieaU5T.js";
9
9
  import { t as f } from "./radio.DhPbmKbQ.js";
10
- import { t as p } from "./radio-group.DSnDDjKe.js";
10
+ import { t as p } from "./radio-group.CHlxPcrs.js";
11
11
  //#region ../../packages/molecules/src/position-picker/position-picker.styles.ts
12
12
  var m = t`.position-picker__column{width:fit-content}.position-picker__column::part(base){justify-content:center;align-items:center;gap:var(--cx-spacing-x-small);flex-direction:column;display:flex}.position-picker__radio{--checked-color:var(--cx-color-neutral-0);--checked-border-color:var(--cx-color-neutral-0);--checked-background-color:var(--cx-color-primary);--checked-hover-border-color:var(--cx-color-neutral-0);--checked-hover-background-color:var(--cx-color-primary)}`, h = class extends a {
13
13
  constructor(...e) {
@@ -6,7 +6,7 @@ import { t as l } from "./custom-element.BEMYNDK1.js";
6
6
  import { t as u } from "./slot.CZUlACxT.js";
7
7
  import { t as d } from "./watch.Ub5r8btz.js";
8
8
  import { t as f } from "./class-map.D8nsNOVJ.js";
9
- import { t as p } from "./line-clamp.COXyDBRB.js";
9
+ import { t as p } from "./line-clamp.DfbWHPf2.js";
10
10
  import { t as m } from "./card.3c-X4hqR.js";
11
11
  import { t as h } from "./radio.DhPbmKbQ.js";
12
12
  //#region ../../packages/atoms/src/components/radio-card/radio-card.styles.ts
@@ -7,7 +7,7 @@ import { t as u } from "./slot.CZUlACxT.js";
7
7
  import { t as d } from "./watch.Ub5r8btz.js";
8
8
  import { t as f } from "./class-map.D8nsNOVJ.js";
9
9
  import { t as p } from "./style-map.DPGQIxip.js";
10
- import { a as m, n as h, o as g, t as _ } from "./form.JYXtmwQ2.js";
10
+ import { a as m, n as h, o as g, t as _ } from "./form.D_eBa3AQ.js";
11
11
  import { t as v } from "./button-group.CPfXrqyq.js";
12
12
  import { t as y } from "./form-control.styles.Cec6lJbi.js";
13
13
  import { t as b } from "./default-value.opqQgoRT.js";
@@ -11,7 +11,7 @@ import { t as m } from "./class-map.D8nsNOVJ.js";
11
11
  import { t as h } from "./if-defined.B29V_rEp.js";
12
12
  import { t as g } from "./style-map.DPGQIxip.js";
13
13
  import { t as _ } from "./debounce.Ci-xdsHE.js";
14
- import { t as v } from "./form.JYXtmwQ2.js";
14
+ import { t as v } from "./form.D_eBa3AQ.js";
15
15
  import { t as y } from "./resize-observer.D9EHlnZI.js";
16
16
  import { t as b } from "./tooltip.DJl5qcTx.js";
17
17
  import { t as x } from "./form-control.styles.Cec6lJbi.js";