@heartlandone/vega 2.85.0 → 2.86.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 (115) hide show
  1. package/dist/cjs/{app-globals-54327b0a.js → app-globals-3080f55a.js} +5 -5
  2. package/dist/cjs/{code-block-6da521e6.js → code-block-c6c70464.js} +6 -0
  3. package/dist/cjs/{component-value-history-controller-slimmer.abstract-f3f35f94.js → component-value-history-controller-slimmer.abstract-a523b747.js} +2 -2
  4. package/dist/cjs/{content-state-89fafb3b.js → content-state-efd3b1a7.js} +1 -1
  5. package/dist/cjs/{image-annotation-action-025389a7.js → image-annotation-action-93bace08.js} +2 -2
  6. package/dist/cjs/index.cjs.js +6 -6
  7. package/dist/cjs/loader.cjs.js +6 -6
  8. package/dist/cjs/{public-rules-fc52d624.js → public-rules-3cd0f182.js} +3 -3
  9. package/dist/cjs/{range-93cc8ab1.js → range-c9bde0b4.js} +1 -1
  10. package/dist/cjs/{rich-text-editor-required-rule-fd3711fb.js → rich-text-editor-required-rule-d1f0509c.js} +1 -1
  11. package/dist/cjs/{split-cell-operation-532fb9f0.js → split-cell-operation-6a59c9b0.js} +2 -2
  12. package/dist/cjs/{token-extension-4f6ed976.js → token-extension-d7d2ead6.js} +19 -6
  13. package/dist/cjs/vega-calendar_4.cjs.entry.js +4 -3
  14. package/dist/cjs/vega-code-block.cjs.entry.js +3 -3
  15. package/dist/cjs/vega-date-picker_2.cjs.entry.js +13 -1
  16. package/dist/cjs/vega-dialog_2.cjs.entry.js +1 -1
  17. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  18. package/dist/cjs/vega-input-phone-number.cjs.entry.js +11 -1
  19. package/dist/cjs/vega-left-nav_5.cjs.entry.js +12 -10
  20. package/dist/cjs/vega-rich-text-content.cjs.entry.js +3 -3
  21. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +6 -6
  22. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +3 -3
  23. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +157 -24
  24. package/dist/cjs/vega-time-picker_2.cjs.entry.js +5 -11
  25. package/dist/cjs/vega.cjs.js +6 -6
  26. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +2 -2
  27. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +2 -1
  28. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +3 -0
  29. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +17 -1
  30. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +31 -1
  31. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +10 -0
  32. package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +1 -1
  33. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.js +10 -8
  34. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-zindex-controller.js +2 -2
  35. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +6 -0
  36. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +8 -2
  37. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +1 -0
  38. package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.js +1 -0
  39. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +1 -0
  40. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.js +5 -1
  41. package/dist/collection/components/vega-selection-tile/slimmers/renderers/vega-selection-tile-renderer.js +71 -10
  42. package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/slimmers/renderers/vega-selection-tile-group-renderer.js +39 -11
  43. package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.css +1 -3
  44. package/dist/collection/components/vega-selection-tile/vega-selection-tile.css +23 -18
  45. package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +45 -1
  46. package/dist/collection/components/vega-time-picker/vega-time-picker.js +6 -12
  47. package/dist/esm/{app-globals-b1999c09.js → app-globals-37536ac9.js} +5 -5
  48. package/dist/esm/{code-block-e43c8120.js → code-block-10be3916.js} +6 -0
  49. package/dist/esm/{component-value-history-controller-slimmer.abstract-60c1910e.js → component-value-history-controller-slimmer.abstract-82d51b7a.js} +2 -2
  50. package/dist/esm/{content-state-d363f2ca.js → content-state-afeb700d.js} +1 -1
  51. package/dist/esm/{image-annotation-action-008ca25b.js → image-annotation-action-bad7c565.js} +2 -2
  52. package/dist/esm/index.js +6 -6
  53. package/dist/esm/loader.js +6 -6
  54. package/dist/esm/{public-rules-1561e357.js → public-rules-f54e6f39.js} +3 -3
  55. package/dist/esm/{range-784d5ec8.js → range-f32f9185.js} +1 -1
  56. package/dist/esm/{rich-text-editor-required-rule-8768bc8d.js → rich-text-editor-required-rule-627fd7e4.js} +1 -1
  57. package/dist/esm/{split-cell-operation-35ce149b.js → split-cell-operation-90c30861.js} +2 -2
  58. package/dist/esm/{token-extension-23b5ab65.js → token-extension-728c0678.js} +19 -6
  59. package/dist/esm/vega-calendar_4.entry.js +4 -3
  60. package/dist/esm/vega-code-block.entry.js +3 -3
  61. package/dist/esm/vega-date-picker_2.entry.js +13 -1
  62. package/dist/esm/vega-dialog_2.entry.js +1 -1
  63. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  64. package/dist/esm/vega-input-phone-number.entry.js +11 -1
  65. package/dist/esm/vega-left-nav_5.entry.js +12 -10
  66. package/dist/esm/vega-rich-text-content.entry.js +3 -3
  67. package/dist/esm/vega-rich-text-editor_4.entry.js +6 -6
  68. package/dist/esm/vega-rich-text-table-properties_3.entry.js +3 -3
  69. package/dist/esm/vega-selection-tile_2.entry.js +157 -24
  70. package/dist/esm/vega-time-picker_2.entry.js +5 -11
  71. package/dist/esm/vega.js +6 -6
  72. package/dist/sri/vega-sri-manifest.json +78 -78
  73. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +1 -0
  74. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +8 -0
  75. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +2 -0
  76. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.d.ts +2 -1
  77. package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +2 -0
  78. package/dist/types/components/vega-rich-text-editor/interface.d.ts +5 -0
  79. package/dist/types/components/vega-selection-tile/slimmers/renderers/vega-selection-tile-renderer.d.ts +12 -0
  80. package/dist/types/components/vega-selection-tile/vega-selection-tile-group/slimmers/renderers/vega-selection-tile-group-renderer.d.ts +0 -1
  81. package/dist/types/components/vega-selection-tile/vega-selection-tile.d.ts +2 -0
  82. package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +5 -11
  83. package/dist/types/components.d.ts +14 -4
  84. package/dist/types/types/public-api.d.ts +1 -0
  85. package/dist/vega/index.esm.js +1 -1
  86. package/dist/vega/{p-2ae5acfc.entry.js → p-268e84e0.entry.js} +1 -1
  87. package/dist/vega/p-2edc066c.entry.js +1 -0
  88. package/dist/vega/{p-386895e9.js → p-33234385.js} +1 -1
  89. package/dist/vega/{p-487ecdb0.entry.js → p-3d0ba2c6.entry.js} +1 -1
  90. package/dist/vega/{p-c15a58b5.entry.js → p-4c90d013.entry.js} +1 -1
  91. package/dist/vega/p-5087fa1e.entry.js +1 -0
  92. package/dist/vega/{p-1d30cab2.js → p-51b2b3de.js} +1 -1
  93. package/dist/vega/p-5f377954.js +1 -1
  94. package/dist/vega/{p-a07c5dae.js → p-6817b9bd.js} +1 -1
  95. package/dist/vega/{p-fcb0d4d8.js → p-7730bace.js} +1 -1
  96. package/dist/vega/p-818da356.js +1 -0
  97. package/dist/vega/{p-fb05335d.js → p-84eb3b9c.js} +1 -1
  98. package/dist/vega/{p-77300901.js → p-93afdfc3.js} +1 -1
  99. package/dist/vega/p-a9f34735.entry.js +1 -0
  100. package/dist/vega/{p-c2e1f33d.entry.js → p-aaf44879.entry.js} +1 -1
  101. package/dist/vega/p-af00e6e2.entry.js +1 -0
  102. package/dist/vega/p-ce61d23f.entry.js +1 -0
  103. package/dist/vega/p-d4e519a0.js +1 -0
  104. package/dist/vega/{p-fcce494e.js → p-e1709e59.js} +1 -1
  105. package/dist/vega/{p-77754d62.entry.js → p-e95cb28f.entry.js} +1 -1
  106. package/dist/vega/{p-5904616e.js → p-f5f5a0d9.js} +1 -1
  107. package/dist/vega/vega.esm.js +1 -1
  108. package/package.json +1 -1
  109. package/dist/vega/p-56c1a8ac.entry.js +0 -1
  110. package/dist/vega/p-64b566be.entry.js +0 -1
  111. package/dist/vega/p-887b3e2d.entry.js +0 -1
  112. package/dist/vega/p-9763fbbe.entry.js +0 -1
  113. package/dist/vega/p-bceee942.entry.js +0 -1
  114. package/dist/vega/p-c74060a7.js +0 -1
  115. package/dist/vega/p-f54fb4e5.js +0 -1
@@ -1,3 +1,3 @@
1
- import{g as t,e,c as n,h as s,A as r,T as i,q as o,H as a,r as l,l as c,t as h,u,v as d,w as m,x as w,I as T,n as p,S as g,j as E,B as f,y as k,d as R,z as B,D as x,o as I,E as b,s as O,N as L,F as y,G as N,J as C,K as A,m as H,L as j,M as v,O as S,P as $,Q as D,U as M,W as P,X as F,Y as z,Z as V,_ as U,$ as W,a0 as G,a1 as J,a2 as K,R as Y,a3 as X,p as Q,a4 as Z,a5 as _,a6 as q,b as tt,a7 as et,a8 as nt,a9 as st,aa as rt}from"./p-fb05335d.js";import{g as it}from"./p-8b5d3a52.js";import{i as ot}from"./p-e4c4ea35.js";import{C as at}from"./p-2d0d575f.js";import{d as lt}from"./p-f28a6074.js";import{c as ct,d as ht}from"./p-6c43d54a.js";import{r as ut,i as dt}from"./p-6e70d3cc.js";import{c as mt}from"./p-a841cf13.js";import{L as wt}from"./p-6e1ab235.js";class RTEListItemBlock extends e{constructor(t,e,n){super(t,"list-item",n),this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new RTEListItemBlock(t.id,void 0,e);s.children=t.nodes.map((t=>n.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const e=RTEListBlock.from(t);return e.parent=s,e})));const{annotations:r}=t;return r&&Object.entries(r).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);ot(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(t){return[`<li${super.generateAttributeString(t)}>`,this.getChildrenHtml(t),"</li>"].join("")}cloneWithNodes(t){const e=new RTEListItemBlock(it());return e.children=[],e.apply(new s(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new RTEListItemBlock(it())}clone(t){var e;const n=new RTEListItemBlock(this.id);return n.children=this.children.map((t=>t.clone(n))),n.annotationMap=super.cloneAnnotations(),n.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(n))),n.parent=t,n}}r.register(i.name,RTEListItemBlock.name,new o),r.register(a.name,RTEListItemBlock.name,new l),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEListItemBlock.name,new h),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEListItemBlock.name,new u),r.register(c.DELETE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEListItemBlock.name,new d),r.register(c.REPLACE_CHILD_NODES,RTEListItemBlock.name,new m),r.register(c.REPLACE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){t.newList.forEach((t=>{t.parent=e})),e.nestList=t.newList}}),r.register(c.MERGE_TWO_BLOCKS_NODES,RTEListItemBlock.name,new w),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.parent.apply(t)}});class Tt extends f{constructor(){super(...arguments),this.type=k.LIST}static getDefaultStyles(){return{paddingLeft:"8px",marginLeft:"16px"}}renderStyle(t){return(null==t?void 0:t.standalone)?Tt.getDefaultStyles():null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new Tt}toJSON(){}}class RTEListBlock extends R{constructor(t,e,n){super(t),this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&this.annotationMap.set(k.LIST,new Tt)}static from(t,e={autoMatchFormat:!0}){const n=new RTEListBlock(t.id,t.type,e),{annotations:s}=t;return s&&Object.entries(s).forEach((([t,e])=>{const s=this.createAnnotationEntity(t,e);ot(s)&&n.annotationMap.set(...s)})),n.children=t.blocks.map((t=>{const s=RTEListItemBlock.from(t,e);return s.parent=n,s})),n}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return I.from(e);case"customClass":return x.from(e);case"customStyle":return B.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag();return[`<${e}${super.generateAttributeString(t)}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new RTEListBlock(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}r.register(c.TRANSFORM_LIST_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,r=e.parent.createList(t.listType);if(n.every((t=>t.parent===e)))r.apply(new s(e.children)),e.parent.apply(new T(e,r)),e.parent.apply(new p(e)),n.forEach((t=>t.children.map((t=>t.apply(new g)))));else{const n=t.selectedBlocks.map((t=>e.parent.toListItem(t)));r.apply(new s(n)),e.parent.apply(new T(e,r)),t.selectedBlocks.forEach((t=>{t.parent.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}}}),r.register(c.TRANSFORM_PARAGRAPH_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){let n=!1,r=!1;const i=t.selectedBlocks,o=i.map((t=>(t.children.map((t=>t.apply(new g))),t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),this.toParagraph(t))));if(n)e.parent.apply(new E(e,...o));else if(r)e.parent.apply(new T(e,...o));else{const t=e.children.indexOf(i[0]),n=e.children.indexOf(i[i.length-1]),r=e.parent.createList(e.type);r.apply(new s(e.children.slice(0,t)));const a=e.parent.createList(e.type);a.apply(new s(e.children.slice(n+1))),e.parent.apply(new E(e,r,...o,a)),e.parent.apply(new p(e))}i.map((t=>{e.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}toParagraph(t){const n=new e(it(),"paragraph");return n.apply(new s(t.children)),n.annotationMap=t.annotationMap,n}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new T(e,t.imageBlockToBeInserted):t)}});class pt{}class gt{constructor(t,e){this.childrenOutput=[],this.currentStrategy=t,this.currentElements=e}setChildrenOutput(t){this.childrenOutput=t}toDto(t={autoMatchFormat:!0,skipCustomAnnotations:!0}){const e=this.currentStrategy.handle(this.currentElements,t);return this.childrenOutput.length>0&&e&&this.currentStrategy.appendChildBlocks(e,this.childrenOutput.map((e=>e.toDto(t))).filter(ot)),e}}const Et=new class{constructor(){this.elementToBlockStrategies=[],this.elementToNodeStrategies=[]}registerElementToBlockStrategy(t){this.hasDuplicateStrategy(t,this.elementToBlockStrategies)||this.elementToBlockStrategies.unshift(t)}registerElementToNodeStrategy(t){this.hasDuplicateStrategy(t,this.elementToNodeStrategies)||this.elementToNodeStrategies.unshift(t)}getElementToBlockStrategies(){return this.elementToBlockStrategies}getElementToNodeStrategies(){return this.elementToNodeStrategies}hasDuplicateStrategy(t,e){return e.includes(t)}},ft=new class{process(t,e={autoMatchFormat:!0,skipCustomAnnotations:!0}){const n=this.getElementToBlockStrategies(),s=[];for(let r=0;r<t.length;r++){if(this.isInvalidElement(t[r],e))continue;let i=0;for(const o of n)if(i=o.canHandle(t,r,e),i>0){const n=t.slice(r,r+i),a=new gt(o,n);1===i&&o.shouldProceedToElementChildren()&&a.setChildrenOutput(this.process(Array.from(n[0].childNodes),e)),s.push(a),r+=i-1;break}if(0===i&&r<t.length){const n=Array.from(t[r].childNodes),i=this.process(Array.from(n),e);i.length>0&&s.push(...i)}}return s}isInvalidElement(t,e){return t.nodeType===Node.COMMENT_NODE||!1!==e.autoMatchFormat&&["META","STYLE"].includes(t.nodeName)}getElementToBlockStrategies(){return Et.getElementToBlockStrategies()}};class kt extends t{handleAction(t,e){const n=t.entityToBeAppended;e.children&&(n.forEach((t=>{t.parent=e})),e.children=e.children.concat(n))}}class Rt extends t{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[...t.childrenToBeInserted,t.referChildren])}replaceElementWithElements(t,e,n){t.children&&(n.forEach((e=>{e.parent=t})),t.children=t.children.flatMap((t=>t===e?n:t)))}}class Bt extends Rt{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[t.referChildren,...t.childrenToBeInserted])}}class xt extends L{constructor(t,e){super(),this.type=y.IMAGE,this.size=t,this.alt=e}static from(t,e){return[y.IMAGE,new xt(t,e)]}static getDefaultStyles(){return{verticalAlign:"bottom"}}toJSON(){return ot(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}clone(){return new xt(this.size,this.alt)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.size?`v-rte--image-size-${this.size}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e=xt.getDefaultStyles();switch(this.size){case"sm":return Object.assign(Object.assign({},e),{width:"25%"});case"md":return Object.assign(Object.assign({},e),{width:"50%"});case"lg":return Object.assign(Object.assign({},e),{width:"100%"})}}}xt.BASE_STYLES={verticalAlign:"bottom"};class RTEImageNode extends N{constructor(t,e,n,s){super(t,s),this.type=C.IMAGE,this.url=e,this.parent=n}static from(t,e,n={autoMatchFormat:!0}){const s=new RTEImageNode(t.id,t.url,e),r=!!n.autoMatchFormat,i=Object.assign({},t.annotations),{size:o}=i,a=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(n[s[r]]=t[s[r]])}return n}(i,["size"]),l=Object.assign(Object.assign({},a),{size:null!=o?o:r?"md":void 0});return s.annotationMap=new Map(Object.keys(l).map((t=>"size"===t||"alt"===t?xt.from(l.size,l.alt):this.createAnnotationEntity(t,l[t]))).filter(ot)),s}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof xt||t instanceof A)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return""==t.alt&&delete t.alt,Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"image",url:this.url})}clone(t){return new RTEImageNode(this.id,this.url,t,super.cloneAnnotations())}toHtml(t){const e=this.getAnnotationByType(y.IMAGE);return`<img${super.generateAttributeString(t,...[e&&e.alt?`alt="${e.alt}"`:null,`src="${this.url}"`,e&&e.size?`data-size="${e.size}"`:null].filter(ot))}>`}doAnnotationActionApply(t){const e=r.get(H.name,RTEImageNode.name);e&&e.execute(t,this)}doModifyActionApply(t){r.executeTheStrategy(t,this)}}r.register(c.UPDATE_IMAGE_NODE_URL,RTEImageNode.name,new class extends t{handleAction(t,e){e.url=t.url}}),r.register(H.name,RTEImageNode.name,new class extends t{handleAction(t,e){const n=t.toAnnotation();e.annotationMap.set(n.type,n)}});class It extends v{constructor(t,e){super(),this.type=c.INSERT_NEW_PARAGRAPH,this.startContainerNode=t,this.startOffset=e}}class RTEImageBlock extends R{constructor(t){super(t),this.type="image",this.children=[]}static from(t,e={autoMatchFormat:!0}){const n=new RTEImageBlock(t.id),{annotations:s}=t;return n.children=t.nodes.map((t=>RTEImageNode.from(t,n,e))),s&&super.convertAnnotationsToMap(n.annotationMap,s),n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=super.generateAttributeString(t),n=this.children.map((e=>e.toHtml(t))).join("");return super.shouldRenderAsInternalWrapper()?n:[`<div${e}>`,n,"</div>"].join("")}isNotEmpty(){return this.children.length>0&&this.children.some((t=>t.url.length>0))}getLastNode(){return this.children[this.children.length-1]}createNewImageBlock(){return new RTEImageBlock(it())}clone(t){const e=new RTEImageBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}}r.register(c.MERGE_TWO_BLOCKS_NODES,RTEImageBlock.name,new w),r.register(c.REPLACE_CHILD_NODES,RTEImageBlock.name,new m),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEImageBlock.name,new class extends t{handleAction(t,e){t.newBlock=this.splitImageNodes(t.splitPointNode,t.startOffsetOfNode,e)}splitImageNodes(t,e,n){const s=n.children.indexOf(t);if(s>-1){const t=n.children.slice(0,s+e),r=n.children.slice(s+e);n.apply(new j(t));const i=this.cloneWithNodes(r,n);return n.parent.apply(new T(n,i)),i}}cloneWithNodes(t,e){const n=e.createNewImageBlock();return n.children=[],n.apply(new s(t)),n}}),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=new It(t.startContainerNode,t.startOffset);e.apply(n);const s=n.newBlock;s&&(t.lineBreakNode=s.children[0])}}),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEImageBlock.name,new class extends t{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,r){const i=e.from({id:it(),type:"paragraph",nodes:[{id:it(),type:"text",text:"\n"}]});r.parent.apply(new T(r,i));const o=this.concatBlocksNodes(t.slice(1));return(0===o.length||o[0]&&""===o[0].text)&&o.push(new n(it(),"\n",i)),i.apply(new s(o)),i.children[0]}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new p(t)))})),e}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=t.splitPointNode,r=t.startOffsetOfNode,i=t.imageBlockToBeInserted;e.children.length<1?e.apply(new s(i.children)):this.isCaretPositionAtBlockEnd(e,n,r)?e.parent.apply(new T(e,i)):this.isCaretPositionAtBlockStart(e,n,r)?e.parent.apply(new E(e,i)):(e.apply(new S(n,r)),e.parent.apply(new T(e,i)))}}),r.register(a.name,RTEImageBlock.name,new l);class RTEHtmlBlock extends R{constructor(t,e){super(t),this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const n=new RTEHtmlBlock(t.id,t.htmlTag),{annotations:s}=t;return s&&super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTEHtmlBlock(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return!0}toHtml(t){const e=this.htmlTag,n=super.generateAttributeString(t);return $.has(this.htmlTag)?`<${e}${n}>`:[`<${e}${n}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}class bt extends v{constructor(t){super(),this.type=c.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class Ot extends D{handleAction(t,e){const{startContainerNode:n}=t;n.isContentEditable()?n.isTextNode()&&this.deleteTextNodeContent(t,e):this.deleteDecoratorNodeContent(t,e);const s=e.parent;s&&e.isListItemBlock()&&0===s.children.length&&s.parent.apply(new p(s))}deleteTextNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;if(0!==s&&!n.isEmpty()){const r=n.text.slice(0,s-1)+n.text.slice(s);if(n.apply(new M(r)),r)return void(t.previousNode=n);{const s=this.getPreviousNode(n);return s&&s.parent===e&&"\n"===s.text||1===e.children.length?void(t.previousNode=n):(e.apply(new p(n)),void(t.previousNode=s))}}{let s=this.getPreviousNode(n),r=null;const i=n.isEmpty();if(e.children.length&&s&&s.parent!==e)i&&e.apply(new p(n)),e.type===s.parent.type&&s.parent.apply(new bt(e));else if(this.isContentFirstNode(n)&&i&&(r=this.getNextNode(n)),i&&e.apply(new p(n)),s&&s.isTextNode()&&(s.isEmpty()||!s.isContentEditable()&&s.parent===e)){const t=s;s=this.getPreviousNode(s),t.parent.apply(new p(t)),s||i||(r=n)}0===e.children.length&&e.parent.apply(new p(e)),s?t.previousNode=s:r&&(t.nextNode=r)}}deleteDecoratorNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;let r=this.getPreviousNode(n),i=null;if(0!==s){const t=e;this.isContentFirstNode(n)&&(i=this.getNextNode(n)),1===t.children.length?t.parent.apply(new p(t)):t.apply(new p(n))}else{const e=r;e&&!e.isContentEditable()&&(r=this.getPreviousNode(e),e.parent.apply(new p(e)),r||(t.nextNode=n))}r?t.previousNode=r:i&&(t.nextNode=i)}}class Lt extends t{handleAction(t,e){const{startContainerNode:n}=t;t.newBlock=this.breakSingleBlock(n,t.startOffset,e)}breakSingleBlock(t,e,n){const s=this.getNewParagraph(t);if(s){if(this.isCaretPositionAtBlockEnd(n,t,e))n.parent.apply(new T(n,s));else{if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new S(t,e);return n.apply(s),s.newBlock}n.parent.apply(new E(n,s))}return s}}getNewParagraph(t){const e=this.createNewParagraph("");if(e){let n=e.children[0];return t.isTextNode()&&t.isContentEditable()&&(e.children=[],n=t.cloneWithText(""),n.annotationMap.delete(y.LINK),e.apply(new s([n]))),e}}}class yt extends v{constructor(t,e,n=!1){super(),this.isFlushable=!0,this.type=c.UPDATE_CURSOR_POSITION,this.immediatelyRun=!1,this.nextFocusNode=t,this.offset=e,this.immediatelyRun=n,this.immediatelyRun&&(this.isFlushable=!1)}}class Nt extends t{handleAction(t,e){const{rteRange:n,nodeToBeInserted:s}=t,{startNode:r,startOffset:i}=n;if(r){const t=e;if(r.isContentEditable()&&r.isTextNode())if("\n"!==r.text&&r.text&&0!==i){const e=r.text.substring(0,i),n=r.text.substring(i),o=r.cloneWithText(e),a=r.cloneWithText(n),l=[o,s];n&&l.push(a),t.apply(new E(r,...l)),t.apply(new p(r))}else t.apply(new E(r,s));else t.apply(0!==i?new T(r,s):new E(r,s));this.updateCursorPosition(s)}}updateCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new yt(t))}}class Ct extends t{handleAction(t,e){const{text:n,offset:s,decoratorNode:r}=t,i=this.createNewParagraph(n);if(i){const t=i.children[0];e.apply(0!==s?new T(r,t):new E(r,t)),this.setTheCursorPosition(t)}}setTheCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new yt(t))}}class At extends t{handleAction(t,e){t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset,e)}breakSingleListItemBlock(t,e,n){const r=n.createNewListItem(),i=this.copyInlineStyleToNewNode(t);if(r.apply(new s([i])),this.isCaretPositionAtBlockEnd(n,t,e))return this.breakListItemAtEnd(r,n);if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new S(t,e);return n.apply(s),s.newBlock}return n.parent.apply(new E(n,r)),r}breakListItemAtEnd(t,n){const r=n.parent.children[n.parent.children.length-1],i=1===n.children.length&&n.children[0].isEmpty();if(n===r&&i){const r=n.parent.parent;if("list-item"!==r.type){const i=e.from({id:it(),type:"paragraph",nodes:[]});return i.apply(new s(t.children)),r.apply(new T(n.parent,i)),n.parent.apply(new p(n)),i}r.parent.apply(new T(r,t)),n.parent.apply(new p(n))}else n.parent.apply(new T(n,t));return t}copyInlineStyleToNewNode(t){const e=t.cloneWithText("");return e.annotationMap.delete(y.LINK),e}}class Ht extends v{constructor(t){super(),this.type=c.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class jt extends P{handleAction(t,e){super.handleAction(t,e);const n=e.parent;0===e.children.length&&n&&n.apply("list-item"===n.type?new Ht(e):new p(e))}}class vt extends t{handleAction(t,e){if(e.parent){const{blocksToBeInserted:n,startNode:s,startOffset:r}=t;let i=e;if(s===e.children[0]&&0===r)e.parent.apply(new E(e,...n));else{const t=new S(s,r);e.apply(t),e.parent.apply(new T(e,...n)),i=t.newBlock}t.futureFocusBlock=i}}}const St=new class{registerBlockBasicStrategies(t){r.register(c.DELETE_CHILDREN,t,t===RTEListBlock.name?new jt:new P),r.register(c.APPEND_CHILDREN,t,new kt),r.register(c.INSERT_CHILDREN_BEFORE,t,new Rt),r.register(c.INSERT_CHILDREN_AFTER,t,new Bt),r.register(c.DELETE_BLOCK_CONTENT,t,new Ot),r.register(c.INSERT_NEW_PARAGRAPH,t,t===RTEListItemBlock.name?new At:new Lt),r.register(c.INSERT_TEXT_TO_DECORATOR_NODE,t,new Ct),r.register(c.INSERT_NODE_TO_NEAREST_ROOT,t,new Nt),r.register(c.PASTE_CONTENT,t,new vt)}};class $t{}class Dt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isBold(t)||e.bold?{bold:!0}:{}}isBold(t){return"STRONG"===t.nodeName||"B"===t.nodeName||t.style.fontWeight===F||t.style.fontWeight===z||t.classList.contains("v-rte--bold")}}class Mt extends $t{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getAttributes(t);return Object.keys(e).length>0?{customAttribute:e}:{}}getAttributes(t){return t.getAttributeNames().filter((t=>"style"!==t&&"class"!==t&&this.isValidAttr(t))).reduce(((e,n)=>(e[n]=t.getAttribute(n),e)),{})}isValidAttr(t){return/^[a-zA-Z_][\w-]*$/.test(t)}}class Pt extends $t{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getCustomClass(t);return e.length>0?{customClass:e}:{}}getCustomClass(t){return t.classList.toString().split(" ").filter((t=>!t.includes("v-rte")&&""!==t))}}class Ft extends $t{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=V(t);return Object.keys(e).length>0?{customStyle:e}:{}}}class zt extends $t{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getIndent(t);return e?{indent:e}:{}}getIndent(t){const e=t.style;let n;if(e.marginLeft)n=e.marginLeft;else{if(!e.margin)return null;{const t=e.margin.split(" ");switch(t.length){case 4:n=t[3];break;case 2:case 3:n=t[1];break;default:n=t[0]}}}const s=Number(n.replace("px",""));return s&&s>=0?Math.floor(s/16):null}}class Vt extends $t{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getTextAlign(t);return e?{textAlign:e}:{}}getTextAlign(t){const e=t.classList;if(e.contains("v-rte--horizontal-alignment-left"))return"left";if(e.contains("v-rte--horizontal-alignment-center"))return"center";if(e.contains("v-rte--horizontal-alignment-right"))return"right";if(e.contains("v-rte--horizontal-alignment-justify"))return"justify";switch(t.style.textAlign){case"center":return"center";case"right":return"right";case"justify":return"justify";case"left":return"left";default:return null}}}class Ut extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isCode(t)||e.code?{code:!0}:{}}isCode(t){return t.classList.contains("v-rte--code")||"CODE"===t.nodeName||"PRE"===t.nodeName||"monospace"===t.style.fontFamily||"Roboto Mono"===t.style.fontFamily.replace(/["']/g,"")}}class Wt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){const n=this.getColor(t)||e.textColor;return n?{textColor:n}:{}}getColor(t){var e;const n=null===(e=ut(t.style.color))||void 0===e?void 0:e.toUpperCase();if(n){const t=U.filter((t=>t.key!==W.key)).find((t=>t.light===n||t.dark===n));return t?t.key:null}for(const e of U)if(t.style.color.includes(e.key))return e.key;return null}}class Gt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isItalic(t)||e.italic?{italic:!0}:{}}isItalic(t){return"I"===t.nodeName||t.style.fontStyle===G||"EM"===t.nodeName||t.classList.contains("v-rte--italic")}}class Jt extends $t{canHandle(t,e){return!!e.autoMatchFormat&&"RTETextBlock"===t.name}handle(t){const e=this.getTextStyle(t);return e?{textStyle:e}:{}}getTextStyle(t){const e=this.getElementTypeByDataType(t);if(e)return e;const n=this.getElementTypeByNodeName(t);if(n)return n;const s=this.getElementTypeByFontSize(t);if(s)return s;return this.getElementTypeByClassName(t)||null}getElementTypeByDataType(t){return t.nodeType!==Node.TEXT_NODE&&t.hasAttribute("data-type")?t.getAttribute("data-type"):null}getElementTypeByFontSize(t){var e;switch(null===(e=t.style)||void 0===e?void 0:e.fontSize){case"36px":return"title";case"28px":return"subtitle";case"22px":return"heading-1";case"20px":return"heading-2";case"18px":return"heading-3";default:return null}}getElementTypeByNodeName(t){switch(t.nodeName){case"P":return"paragraph";case"H1":return"heading-1";case"H2":return"heading-2";case"H3":return"heading-3";case"H4":return"heading-4";case"H5":return"heading-5";case"H6":return"heading-6";default:return null}}getElementTypeByClassName(t){if(t.className){const e=/\bv-rte-(?:-text-style-)?(title|subtitle|heading-1|heading-2|heading-3|heading-4|heading-5|heading-6|paragraph)\b/.exec(t.className);if(e)return e[1]}return null}}class Kt{static isTitleOrSubtitle(t){if("DIV"===t.nodeName){const e=Kt.textStyleHandler.getTextStyle(t);return"title"===e||"subtitle"===e}return!1}static isLinkElement(t){return"A"===t.nodeName}}Kt.textStyleHandler=new Jt;class Yt extends $t{constructor(){super(...arguments),this.handlers=[new Mt,new Pt,new Ft]}canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return e.link?{link:e.link}:Kt.isLinkElement(t)?{link:this.generateLinkAnnotations(t)}:{}}generateLinkAnnotations(t){const e={href:t.getAttribute("href")||"",groupKey:it()};return this.handlers.forEach((n=>{Object.assign(e,n.handle(t))})),e}}class Xt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isStrikethrough(t)||e.strikethrough?{strikethrough:!0}:{}}isStrikethrough(t){return t.style.textDecoration.includes(J)||"S"===t.nodeName||"DEL"===t.nodeName||t.classList.contains("v-rte--strikethrough")}}class Qt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isUnderline(t)||e.underline?{underline:!0}:{}}isUnderline(t){return t.style.textDecoration.includes(K)||"U"===t.nodeName||"INS"===t.nodeName||t.classList.contains("v-rte--underline")}}class Zt extends $t{canHandle(t){return"RTEImageNode"===t.name}handle(t){const e=this.getImageSize(t);return e?{size:e}:{}}getImageSize(t){return t.getAttribute("data-size")?t.getAttribute("data-size"):null}}class _t extends $t{canHandle(t){return"RTEImageNode"===t.name}handle(t){return t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:{}}}const qt=new Set(["P","H1","H2","H3","H4","H5","H6","LI"]),te=new Set(["P","H1","H2","H3","H4","H5","H6","LI","UL","OL","IMG","CODE"]),ee=new Set(["BR","VEGA-RICH-TEXT-LINK-EDITOR","CODE","A"]),ne=new Set(["TABLE","THEAD","TBODY","TFOOT","TR","DL"]),se=new Set(["ABBR","B","BDI","BDO","CITE","DEL","DFN","EM","I","INS","KBD","MARK","METER","OUTPUT","PROGRESS","Q","S","SAMP","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR"]);function re(t){return qt.has(t.parentElement.nodeName)}class ie extends $t{constructor(){super(...arguments),this.customAttributeHandler=new Mt,this.customStyleAnnotationHandler=new Ft,this.customClassAnnotationHandler=new Pt}canHandle(t,e){return"RTETextNode"===t.name&&!1===e.autoMatchFormat}handle(t,e){if(te.has(t.nodeName)&&!ee.has(t.nodeName))return{};const n=this.generateInlineHtmlAnnotation(t,Object.assign({},e));return n?{inlineHtml:n}:{}}generateInlineHtmlAnnotation(t,e){let{inlineHtml:s}=e;const r=Array.from(t.childNodes).some((t=>t.nodeType===Node.ELEMENT_NODE));if(!n.supportsHtmlTag(t.nodeName.toLowerCase())||r){const e=Object.assign(Object.assign({htmlTag:t.nodeName.toLowerCase()},r?{groupId:it()}:{}),{customAttribute:this.customAttributeHandler.handle(t).customAttribute,customStyle:this.customStyleAnnotationHandler.handle(t).customStyle,customClass:this.customClassAnnotationHandler.handle(t).customClass});s=s?this.appendToInlineHtmlChain(s,e,t.parentNode):e}return s?Object.assign({},s):null}appendToInlineHtmlChain(t,e,n){return t.child&&n&&t.child.htmlTag===n.nodeName.toLowerCase()?Object.assign(Object.assign({},t),{child:this.appendToInlineHtmlChain(t.child,e,n)}):Object.assign(Object.assign({},t),{child:e})}}const oe=new class{constructor(){this.handlers=[new Vt,new zt,new Dt,new Gt,new Qt,new Xt,new Wt,new Yt,new Ut,new Zt,new _t,new Mt,new Pt,new Ft,new Jt,new ie]}registerHandler(t){this.handlers.unshift(t)}generate(t,e,n={autoMatchFormat:!0}){n&&n.filterInlineStyles&&Y.executeTheStrategyRefillAction(t.name,e);const s=Kt.isLinkElement(e)&&"RTETextNode"===t.name,r=this.handlers.filter((t=>!(!n.autoMatchFormat&&s)||t instanceof Yt)).filter((r=>e.nodeType!==Node.TEXT_NODE&&r.canHandle(t,{skipCustomAnnotations:n.skipCustomAnnotations||s,autoMatchFormat:n.autoMatchFormat}))).reduce(((t,s)=>{const r=s.handle(e,n.parentAnnotations);return Object.assign(Object.assign({},t),r)}),{});this.removeTextStyleDefaultsFromCustomStyle(r);const i=Y.getStrategies(t.name);for(const t of i)(n.autoMatchFormat||t.alwaysFilter)&&t.filterAnnotations(r);return r}removeTextStyleDefaultsFromCustomStyle(t){const e="textStyle"in t?t.textStyle:void 0,n=t.customStyle;if(!e||!n)return t;const s=X.getDefaultStyles(e);if(!s)return t;for(const t of Object.keys(s))n[t]===s[t]&&delete n[t];return 0===Object.keys(n).length&&delete t.customStyle,t}};class ae extends pt{constructor(){super(...arguments),this.annotationHandler=new Jt}generateChildNodes(t,e,s){const r=[],i=!(!s||!1!==s.autoMatchFormat),o=Object.assign({},e);return t.forEach((t=>{const a=Et.getElementToNodeStrategies().find((e=>e.canHandle([t],0,s)>0));let l=null;if(a&&(l=a.handle([t],s,o)),l)r.push(l);else if(dt(t)&&t.childNodes.length>0){const a=oe.generate(n,t,Object.assign({parentAnnotations:i?{inlineHtml:o.inlineHtml,link:o.link,code:o.code}:e},s));r.push(...this.generateChildNodes(Array.from(t.childNodes),a,s))}})),r}matchTextBlockType(t){var e;return null!==(e=this.annotationHandler.handle(t).textStyle)&&void 0!==e?e:"paragraph"}}class le extends ae{canHandle(t,e){return"PRE"!==t[e].tagName&&"CODE"!==t[e].tagName||!t[e].hasAttribute("data-language")?0:1}handle(t){const e=t[0];if(e){const t=e.textContent,n=e.dataset.language;return b.from({id:it(),type:"code-block",content:t,language:n})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class ce extends ae{createRTEImageBlock(t,e){const n=!(e&&e.autoMatchFormat||!t.parentNode||"DIV"===t.parentNode.nodeName);return RTEImageBlock.from({id:it(),type:"image",nodes:[{id:it(),type:"image",url:t.src,annotations:oe.generate(RTEImageNode,t,e)}],annotations:Object.assign(Object.assign({},oe.generate(RTEImageBlock,t.parentElement,e)),{internalWrapper:n})},e)}}class he extends pt{shouldProceedToElementChildren(){return!1}appendChildBlocks(){}generateTextNode(t,e){return{id:it(),type:"text",text:t,annotations:e}}}class ue extends Q{constructor(){super(...arguments),this.stylesToBeFiltered={}}get alwaysFilter(){return!0}filterAnnotations(t){const{textAlign:e,customStyle:n}=t;return e&&n?(this.stylesToBeFiltered=_.getDefaultStyles(e),super.filterAnnotations(t)):t}}class de extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=X.getDefaultStyles("paragraph"),this.type="paragraph",this.elementTagName="p"}filterAnnotations(t){return t}canFilter(t){return Z.isTextBlock(t.constructor.name)&&t.type===this.type}canRefill(t,e){const n=this.classNameToBeAdded?`.${this.classNameToBeAdded}`:this.elementTagName;return Z.isTextBlock(t)&&e.matches(n)}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}class me extends de{constructor(t){super(),this.type="heading-1",this.elementTagName="h1",this.type=`heading-${t}`,this.elementTagName=`h${t}`,this.stylesToBeFiltered=X.getDefaultStyles(this.type)}}class we extends de{constructor(t){super(),this.type="title",this.elementTagName="div",this.classNameToBeAdded="v-rte-title",this.type=t,this.classNameToBeAdded=`v-rte-${t}`,this.stylesToBeFiltered=X.getDefaultStyles(this.type)}}class Te extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=Te.BOLD_STYLES,this.elementTagName="span",this.parentBlockTypes=["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title"],this.parentElementSelectors=["h1","h2","h3","h4","h5","h6",".v-rte-title"],this.toBeCheckedSelector=this.parentElementSelectors.join(",")}filterAnnotations(t){return t}canFilter(t){return Z.isTextNode(t.constructor.name)&&this.parentBlockIsHeadingOrTitle(t)}canRefill(t,e){return Z.isTextNode(t)&&"SPAN"===e.nodeName&&this.isHeadingOrTitleChild(e)}toCssText(){return`${this.parentElementSelectors.map((t=>`.${Te.RTE_CONTENT_CONTAINER_CLASS_NAME} ${t}`)).join(",")} { ${this.convertStylesMapToCssText()} }`}parentBlockIsHeadingOrTitle(t){const e=t.parent;return!!e&&this.parentBlockTypes.includes(e.type)}isHeadingOrTitleChild(t){let e=t.parentElement;for(;e;){if(e.matches(this.toBeCheckedSelector))return!0;if(Te.NON_HEADING_TITLE_ELEMENT_TAGS.includes(e.tagName))return!1;e=e.parentElement}return!1}}Te.BOLD_STYLES={fontWeight:"700"},Te.NON_HEADING_TITLE_ELEMENT_TAGS=["TD","TH","TR","TABLE","THEAD","TBODY","DIV","BODY"];class pe extends me{constructor(t){super(t),this.classNameToBeAdded=`v-rte-h${t}`,this.elementTagName="li"}canFilter(t){return Z.isListItemBlock(t.constructor.name)&&this.isBlockOrNodeStylesMatchFilterStyles(t,["fontSize","lineHeight"])}canRefill(t,e){return Z.isListItemBlock(t)&&e.matches(this.elementTagName)&&e.classList.contains(this.classNameToBeAdded)}}class ge extends we{constructor(t){super(t),this.classNameToBeAdded=`v-rte-${t}`,this.elementTagName="li"}canFilter(t){return Z.isListItemBlock(t.constructor.name)&&this.isBlockOrNodeStylesMatchFilterStyles(t,["fontSize","lineHeight"])}canRefill(t,e){return Z.isListItemBlock(t)&&e.matches(this.elementTagName)&&e.classList.contains(this.classNameToBeAdded)}}tt.registerRTEDTOClass("paragraph",e),tt.registerRTEDTOClass("title",e),tt.registerRTEDTOClass("subtitle",e),tt.registerRTEDTOClass("heading-1",e),tt.registerRTEDTOClass("heading-2",e),tt.registerRTEDTOClass("heading-3",e),tt.registerRTEDTOClass("heading-4",e),tt.registerRTEDTOClass("heading-5",e),tt.registerRTEDTOClass("heading-6",e),tt.registerRTEDTOClass("heading-6",e),tt.registerRTEDTOClass("list-item",RTEListItemBlock),tt.registerRTEDTOClass("bullet-list",RTEListBlock),tt.registerRTEDTOClass("number-list",RTEListBlock),tt.registerRTEDTOClass("image",RTEImageBlock),tt.registerRTEDTOClass("code-block",b),tt.registerRTEDTOClass("html-block",RTEHtmlBlock),tt.registerRTEDTOClass("text",n),tt.registerRTEDTOClass("image",RTEImageNode),St.registerBlockBasicStrategies(e.name),St.registerBlockBasicStrategies(RTEListBlock.name),St.registerBlockBasicStrategies(RTEListItemBlock.name),St.registerBlockBasicStrategies(RTEImageBlock.name),St.registerBlockBasicStrategies(RTEHtmlBlock.name),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e,n){let s=0;for(let r=e;r<t.length&&this.isInlineCandidate(t[r],n);r++)s++;return s}handle(t,s){const r=t[0].parentElement,i=s&&s.autoMatchFormat,o=this.generateChildNodes(t,i?oe.generate(n,r,Object.assign(Object.assign({},s),{skipCustomAnnotations:!0})):{},s),a=i?super.matchTextBlockType(r):this.matchTextBlockTypeByTagName(r),l=!i&&!a;return e.from(Object.assign({id:it(),type:a||"paragraph",nodes:o},l?{annotations:{internalWrapper:l}}:{annotations:oe.generate(e,r,s)}),s)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}matchTextBlockTypeByTagName(t){switch(t.nodeName){case"P":return"paragraph";default:return null}}isInlineCandidate(t,e){return t.nodeType===Node.TEXT_NODE||!!ee.has(t.nodeName)||!this.isDedicatedBlockTag(t.nodeName)&&(!(!1!==e.autoMatchFormat||!re(t))||this.isInlineLeafOrWrapper(t))}isDedicatedBlockTag(t){return te.has(t)&&!ee.has(t)}isInlineLeafOrWrapper(t){return 0===t.childNodes.length?se.has(t.nodeName):this.isTextOnlyElement(t)?se.has(t.nodeName)||ee.has(t.nodeName):this.hasOnlyInlineDescendants(t)}isTextOnlyElement(t){const e=Array.from(t.childNodes);return!e.some((t=>t.nodeType===Node.ELEMENT_NODE))&&e.some((t=>t.nodeType===Node.TEXT_NODE))}hasOnlyInlineDescendants(t){for(let e=0;e<t.children.length;e++){const n=t.children[e];if(this.isDedicatedBlockTag(n.nodeName))return!1;if(!n.hasChildNodes())return!1;if(!this.hasOnlyInlineDescendants(n))return!1}return!0}}),Et.registerElementToBlockStrategy(new class extends ce{canHandle(t,e){const n=t[e];return n.nodeType===Node.ELEMENT_NODE&&""===n.textContent&&n.querySelector("img")?1:0}handle(t,e){const n=t[0].querySelector("img");return this.createRTEImageBlock(n,e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ce{canHandle(t,e){return"VEGA-RICH-TEXT-IMAGE-EDITOR"===t[e].tagName?1:0}handle(t,e){const n=t[0],s=n.querySelector("img");if(ot(s))return RTEImageBlock.from({id:it(),type:"image",nodes:[{id:it(),type:"image",url:s.src,annotations:oe.generate(RTEImageNode,n,e)}],annotations:oe.generate(RTEImageBlock,n.parentElement,e)},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ce{canHandle(t,e){return"IMG"===t[e].tagName?1:0}handle(t,e){return this.createRTEImageBlock(t[0],e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){return["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title","subtitle"].includes(super.matchTextBlockType(t[e]))?1:0}handle(t,n){const s=this.generateChildNodes(Array.from(t[0].childNodes),{},n);return 0===s.length?null:e.from({id:it(),type:super.matchTextBlockType(t[0]),nodes:s,annotations:oe.generate(e,t[0],n)},n)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){if(!["UL","OL"].includes(t[e].parentElement.nodeName)&&t.some((t=>"LI"===t.nodeName))){let n=0;for(let s=e;s<t.length&&"LI"===t[s].nodeName;s++)n++;return n}return"LI"===t[e].tagName?1:0}handle(t,e){const n=t[0];return["UL","OL"].includes(n.parentElement.nodeName)?RTEListItemBlock.from(this.generateListItemBlockDTO(n,e),e):this.generateWithListBlock(t,e)}appendChildBlocks(t,e){t.nestList=e.filter((t=>["bullet-list","number-list"].includes(t.type)))}shouldProceedToElementChildren(){return!0}generateWithListBlock(t,e){return RTEListBlock.from({id:it(),type:"bullet-list",blocks:t.map((t=>this.generateListItemBlockDTO(t,e)))},e)}generateListItemBlockDTO(t,e){return{id:it(),type:"list-item",annotations:oe.generate(RTEListItemBlock,t,e),nodes:this.generateChildNodes(Array.from(t.childNodes.length?t.childNodes:[t]).filter((t=>!["UL","OL"].includes(t.nodeName))),oe.generate(n,t,Object.assign(Object.assign({},e),{skipCustomAnnotations:!0})),e)}}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){const n=t[e],s=n.parentElement,r="LI"!==n.nodeName,i=n.nodeType===Node.TEXT_NODE&&""===n.textContent.trim(),o=ot(s)&&["UL","OL"].includes(s.nodeName);return r&&!i&&o?1:0}handle(t,e){const n=this.generateChildNodes(t,{},e);return RTEListItemBlock.from({id:it(),type:"list-item",nodes:n,annotations:{}},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){return"OL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:it(),type:"number-list",blocks:[],annotations:oe.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){return"UL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:it(),type:"bullet-list",blocks:[],annotations:oe.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e,n){const s=t[e];return s.nodeType===Node.TEXT_NODE||this.isInlineTagWithoutBlockChildren(s,n)||te.has(s.nodeName)&&!this.shouldFallBackToHtmlBlock(s)||n.autoMatchFormat||!this.isCustomHtmlContainer(s)||Kt.isTitleOrSubtitle(s)?0:1}handle(t,e){return RTEHtmlBlock.from(this.generateHtmlBlock(t[0],e),e)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}isInlineTagWithoutBlockChildren(t,e){if(re(t))return!(0===t.childNodes.length&&""===t.textContent&&!ee.has(t.nodeName)&&!se.has(t.nodeName));const n=Array.from(t.childNodes);return!(n.some((t=>t.nodeType===Node.ELEMENT_NODE))||!n.some((t=>t.nodeType===Node.TEXT_NODE)))&&(!1!==e.autoMatchFormat||!ne.has(t.parentElement.nodeName)&&(se.has(t.nodeName)||ee.has(t.nodeName)))}shouldFallBackToHtmlBlock(t){const e=Array.from(t.childNodes);if(0===e.length)return!1;const n=t.parentElement.nodeName;return"UL"!==n&&"OL"!==n&&e.every((t=>t.nodeType===Node.ELEMENT_NODE&&""===t.textContent&&!ee.has(t.nodeName)&&!se.has(t.nodeName)))}isCustomHtmlContainer(t){return"DIV"!==t.nodeName||t.childNodes.length>0&&"IMG"!==t.childNodes[0].nodeName}generateHtmlBlock(t,e){return{id:it(),type:"html-block",htmlTag:t.nodeName.toLowerCase(),annotations:oe.generate(RTEHtmlBlock,t,e),children:[]}}}),
1
+ import{g as t,e,c as n,h as s,A as r,T as i,q as o,H as a,r as l,l as c,t as h,u,v as d,w as m,x as w,I as T,n as p,S as g,j as E,B as f,y as k,d as R,z as B,D as x,o as I,E as b,s as O,N as L,F as y,G as N,J as C,K as A,m as H,L as j,M as v,O as S,P as $,Q as D,U as M,W as P,X as F,Y as z,Z as V,_ as U,$ as W,a0 as G,a1 as J,a2 as K,R as Y,a3 as X,p as Q,a4 as Z,a5 as _,a6 as q,b as tt,a7 as et,a8 as nt,a9 as st,aa as rt}from"./p-84eb3b9c.js";import{g as it}from"./p-8b5d3a52.js";import{i as ot}from"./p-e4c4ea35.js";import{C as at}from"./p-2d0d575f.js";import{d as lt}from"./p-f28a6074.js";import{c as ct,d as ht}from"./p-6c43d54a.js";import{r as ut,i as dt}from"./p-6e70d3cc.js";import{c as mt}from"./p-a841cf13.js";import{L as wt}from"./p-6e1ab235.js";class RTEListItemBlock extends e{constructor(t,e,n){super(t,"list-item",n),this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new RTEListItemBlock(t.id,void 0,e);s.children=t.nodes.map((t=>n.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const e=RTEListBlock.from(t);return e.parent=s,e})));const{annotations:r}=t;return r&&Object.entries(r).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);ot(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(t){return[`<li${super.generateAttributeString(t)}>`,this.getChildrenHtml(t),"</li>"].join("")}cloneWithNodes(t){const e=new RTEListItemBlock(it());return e.children=[],e.apply(new s(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new RTEListItemBlock(it())}clone(t){var e;const n=new RTEListItemBlock(this.id);return n.children=this.children.map((t=>t.clone(n))),n.annotationMap=super.cloneAnnotations(),n.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(n))),n.parent=t,n}}r.register(i.name,RTEListItemBlock.name,new o),r.register(a.name,RTEListItemBlock.name,new l),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEListItemBlock.name,new h),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEListItemBlock.name,new u),r.register(c.DELETE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEListItemBlock.name,new d),r.register(c.REPLACE_CHILD_NODES,RTEListItemBlock.name,new m),r.register(c.REPLACE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){t.newList.forEach((t=>{t.parent=e})),e.nestList=t.newList}}),r.register(c.MERGE_TWO_BLOCKS_NODES,RTEListItemBlock.name,new w),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.parent.apply(t)}});class Tt extends f{constructor(){super(...arguments),this.type=k.LIST}static getDefaultStyles(){return{paddingLeft:"8px",marginLeft:"16px"}}renderStyle(t){return(null==t?void 0:t.standalone)?Tt.getDefaultStyles():null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new Tt}toJSON(){}}class RTEListBlock extends R{constructor(t,e,n){super(t),this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&this.annotationMap.set(k.LIST,new Tt)}static from(t,e={autoMatchFormat:!0}){const n=new RTEListBlock(t.id,t.type,e),{annotations:s}=t;return s&&Object.entries(s).forEach((([t,e])=>{const s=this.createAnnotationEntity(t,e);ot(s)&&n.annotationMap.set(...s)})),n.children=t.blocks.map((t=>{const s=RTEListItemBlock.from(t,e);return s.parent=n,s})),n}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return I.from(e);case"customClass":return x.from(e);case"customStyle":return B.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag();return[`<${e}${super.generateAttributeString(t)}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new RTEListBlock(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}r.register(c.TRANSFORM_LIST_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,r=e.parent.createList(t.listType);if(n.every((t=>t.parent===e)))r.apply(new s(e.children)),e.parent.apply(new T(e,r)),e.parent.apply(new p(e)),n.forEach((t=>t.children.map((t=>t.apply(new g)))));else{const n=t.selectedBlocks.map((t=>e.parent.toListItem(t)));r.apply(new s(n)),e.parent.apply(new T(e,r)),t.selectedBlocks.forEach((t=>{t.parent.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}}}),r.register(c.TRANSFORM_PARAGRAPH_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){let n=!1,r=!1;const i=t.selectedBlocks,o=i.map((t=>(t.children.map((t=>t.apply(new g))),t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),this.toParagraph(t))));if(n)e.parent.apply(new E(e,...o));else if(r)e.parent.apply(new T(e,...o));else{const t=e.children.indexOf(i[0]),n=e.children.indexOf(i[i.length-1]),r=e.parent.createList(e.type);r.apply(new s(e.children.slice(0,t)));const a=e.parent.createList(e.type);a.apply(new s(e.children.slice(n+1))),e.parent.apply(new E(e,r,...o,a)),e.parent.apply(new p(e))}i.map((t=>{e.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}toParagraph(t){const n=new e(it(),"paragraph");return n.apply(new s(t.children)),n.annotationMap=t.annotationMap,n}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new T(e,t.imageBlockToBeInserted):t)}});class pt{}class gt{constructor(t,e){this.childrenOutput=[],this.currentStrategy=t,this.currentElements=e}setChildrenOutput(t){this.childrenOutput=t}toDto(t={autoMatchFormat:!0,skipCustomAnnotations:!0}){const e=this.currentStrategy.handle(this.currentElements,t);return this.childrenOutput.length>0&&e&&this.currentStrategy.appendChildBlocks(e,this.childrenOutput.map((e=>e.toDto(t))).filter(ot)),e}}const Et=new class{constructor(){this.elementToBlockStrategies=[],this.elementToNodeStrategies=[]}registerElementToBlockStrategy(t){this.hasDuplicateStrategy(t,this.elementToBlockStrategies)||this.elementToBlockStrategies.unshift(t)}registerElementToNodeStrategy(t){this.hasDuplicateStrategy(t,this.elementToNodeStrategies)||this.elementToNodeStrategies.unshift(t)}getElementToBlockStrategies(){return this.elementToBlockStrategies}getElementToNodeStrategies(){return this.elementToNodeStrategies}hasDuplicateStrategy(t,e){return e.includes(t)}},ft=new class{process(t,e={autoMatchFormat:!0,skipCustomAnnotations:!0}){const n=this.getElementToBlockStrategies(),s=[];for(let r=0;r<t.length;r++){if(this.isInvalidElement(t[r],e))continue;let i=0;for(const o of n)if(i=o.canHandle(t,r,e),i>0){const n=t.slice(r,r+i),a=new gt(o,n);1===i&&o.shouldProceedToElementChildren()&&a.setChildrenOutput(this.process(Array.from(n[0].childNodes),e)),s.push(a),r+=i-1;break}if(0===i&&r<t.length){const n=Array.from(t[r].childNodes),i=this.process(Array.from(n),e);i.length>0&&s.push(...i)}}return s}isInvalidElement(t,e){return t.nodeType===Node.COMMENT_NODE||!1!==e.autoMatchFormat&&["META","STYLE"].includes(t.nodeName)}getElementToBlockStrategies(){return Et.getElementToBlockStrategies()}};class kt extends t{handleAction(t,e){const n=t.entityToBeAppended;e.children&&(n.forEach((t=>{t.parent=e})),e.children=e.children.concat(n))}}class Rt extends t{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[...t.childrenToBeInserted,t.referChildren])}replaceElementWithElements(t,e,n){t.children&&(n.forEach((e=>{e.parent=t})),t.children=t.children.flatMap((t=>t===e?n:t)))}}class Bt extends Rt{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[t.referChildren,...t.childrenToBeInserted])}}class xt extends L{constructor(t,e){super(),this.type=y.IMAGE,this.size=t,this.alt=e}static from(t,e){return[y.IMAGE,new xt(t,e)]}static getDefaultStyles(){return{verticalAlign:"bottom"}}toJSON(){return ot(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}clone(){return new xt(this.size,this.alt)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.size?`v-rte--image-size-${this.size}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e=xt.getDefaultStyles();switch(this.size){case"sm":return Object.assign(Object.assign({},e),{width:"25%"});case"md":return Object.assign(Object.assign({},e),{width:"50%"});case"lg":return Object.assign(Object.assign({},e),{width:"100%"})}}}xt.BASE_STYLES={verticalAlign:"bottom"};class RTEImageNode extends N{constructor(t,e,n,s){super(t,s),this.type=C.IMAGE,this.url=e,this.parent=n}static from(t,e,n={autoMatchFormat:!0}){const s=new RTEImageNode(t.id,t.url,e),r=!!n.autoMatchFormat,i=Object.assign({},t.annotations),{size:o}=i,a=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(n[s[r]]=t[s[r]])}return n}(i,["size"]),l=Object.assign(Object.assign({},a),{size:null!=o?o:r?"md":void 0});return s.annotationMap=new Map(Object.keys(l).map((t=>"size"===t||"alt"===t?xt.from(l.size,l.alt):this.createAnnotationEntity(t,l[t]))).filter(ot)),s}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof xt||t instanceof A)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return""==t.alt&&delete t.alt,Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"image",url:this.url})}clone(t){return new RTEImageNode(this.id,this.url,t,super.cloneAnnotations())}toHtml(t){const e=this.getAnnotationByType(y.IMAGE);return`<img${super.generateAttributeString(t,...[e&&e.alt?`alt="${e.alt}"`:null,`src="${this.url}"`,e&&e.size?`data-size="${e.size}"`:null].filter(ot))}>`}doAnnotationActionApply(t){const e=r.get(H.name,RTEImageNode.name);e&&e.execute(t,this)}doModifyActionApply(t){r.executeTheStrategy(t,this)}}r.register(c.UPDATE_IMAGE_NODE_URL,RTEImageNode.name,new class extends t{handleAction(t,e){e.url=t.url}}),r.register(H.name,RTEImageNode.name,new class extends t{handleAction(t,e){const n=t.toAnnotation();e.annotationMap.set(n.type,n)}});class It extends v{constructor(t,e){super(),this.type=c.INSERT_NEW_PARAGRAPH,this.startContainerNode=t,this.startOffset=e}}class RTEImageBlock extends R{constructor(t){super(t),this.type="image",this.children=[]}static from(t,e={autoMatchFormat:!0}){const n=new RTEImageBlock(t.id),{annotations:s}=t;return n.children=t.nodes.map((t=>RTEImageNode.from(t,n,e))),s&&super.convertAnnotationsToMap(n.annotationMap,s),n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=super.generateAttributeString(t),n=this.children.map((e=>e.toHtml(t))).join("");return super.shouldRenderAsInternalWrapper()?n:[`<div${e}>`,n,"</div>"].join("")}isNotEmpty(){return this.children.length>0&&this.children.some((t=>t.url.length>0))}getLastNode(){return this.children[this.children.length-1]}createNewImageBlock(){return new RTEImageBlock(it())}clone(t){const e=new RTEImageBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}}r.register(c.MERGE_TWO_BLOCKS_NODES,RTEImageBlock.name,new w),r.register(c.REPLACE_CHILD_NODES,RTEImageBlock.name,new m),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEImageBlock.name,new class extends t{handleAction(t,e){t.newBlock=this.splitImageNodes(t.splitPointNode,t.startOffsetOfNode,e)}splitImageNodes(t,e,n){const s=n.children.indexOf(t);if(s>-1){const t=n.children.slice(0,s+e),r=n.children.slice(s+e);n.apply(new j(t));const i=this.cloneWithNodes(r,n);return n.parent.apply(new T(n,i)),i}}cloneWithNodes(t,e){const n=e.createNewImageBlock();return n.children=[],n.apply(new s(t)),n}}),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=new It(t.startContainerNode,t.startOffset);e.apply(n);const s=n.newBlock;s&&(t.lineBreakNode=s.children[0])}}),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEImageBlock.name,new class extends t{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,r){const i=e.from({id:it(),type:"paragraph",nodes:[{id:it(),type:"text",text:"\n"}]});r.parent.apply(new T(r,i));const o=this.concatBlocksNodes(t.slice(1));return(0===o.length||o[0]&&""===o[0].text)&&o.push(new n(it(),"\n",i)),i.apply(new s(o)),i.children[0]}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new p(t)))})),e}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=t.splitPointNode,r=t.startOffsetOfNode,i=t.imageBlockToBeInserted;e.children.length<1?e.apply(new s(i.children)):this.isCaretPositionAtBlockEnd(e,n,r)?e.parent.apply(new T(e,i)):this.isCaretPositionAtBlockStart(e,n,r)?e.parent.apply(new E(e,i)):(e.apply(new S(n,r)),e.parent.apply(new T(e,i)))}}),r.register(a.name,RTEImageBlock.name,new l);class RTEHtmlBlock extends R{constructor(t,e){super(t),this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const n=new RTEHtmlBlock(t.id,t.htmlTag),{annotations:s}=t;return s&&super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTEHtmlBlock(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return!0}toHtml(t){const e=this.htmlTag,n=super.generateAttributeString(t);return $.has(this.htmlTag)?`<${e}${n}>`:[`<${e}${n}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}class bt extends v{constructor(t){super(),this.type=c.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class Ot extends D{handleAction(t,e){const{startContainerNode:n}=t;n.isContentEditable()?n.isTextNode()&&this.deleteTextNodeContent(t,e):this.deleteDecoratorNodeContent(t,e);const s=e.parent;s&&e.isListItemBlock()&&0===s.children.length&&s.parent.apply(new p(s))}deleteTextNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;if(0!==s&&!n.isEmpty()){const r=n.text.slice(0,s-1)+n.text.slice(s);if(n.apply(new M(r)),r)return void(t.previousNode=n);{const s=this.getPreviousNode(n);return s&&s.parent===e&&"\n"===s.text||1===e.children.length?void(t.previousNode=n):(e.apply(new p(n)),void(t.previousNode=s))}}{let s=this.getPreviousNode(n),r=null;const i=n.isEmpty();if(e.children.length&&s&&s.parent!==e)i&&e.apply(new p(n)),e.type===s.parent.type&&s.parent.apply(new bt(e));else if(this.isContentFirstNode(n)&&i&&(r=this.getNextNode(n)),i&&e.apply(new p(n)),s&&s.isTextNode()&&(s.isEmpty()||!s.isContentEditable()&&s.parent===e)){const t=s;s=this.getPreviousNode(s),t.parent.apply(new p(t)),s||i||(r=n)}0===e.children.length&&e.parent.apply(new p(e)),s?t.previousNode=s:r&&(t.nextNode=r)}}deleteDecoratorNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;let r=this.getPreviousNode(n),i=null;if(0!==s){const t=e;this.isContentFirstNode(n)&&(i=this.getNextNode(n)),1===t.children.length?t.parent.apply(new p(t)):t.apply(new p(n))}else{const e=r;e&&!e.isContentEditable()&&(r=this.getPreviousNode(e),e.parent.apply(new p(e)),r||(t.nextNode=n))}r?t.previousNode=r:i&&(t.nextNode=i)}}class Lt extends t{handleAction(t,e){const{startContainerNode:n}=t;t.newBlock=this.breakSingleBlock(n,t.startOffset,e)}breakSingleBlock(t,e,n){const s=this.getNewParagraph(t);if(s){if(this.isCaretPositionAtBlockEnd(n,t,e))n.parent.apply(new T(n,s));else{if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new S(t,e);return n.apply(s),s.newBlock}n.parent.apply(new E(n,s))}return s}}getNewParagraph(t){const e=this.createNewParagraph("");if(e){let n=e.children[0];return t.isTextNode()&&t.isContentEditable()&&(e.children=[],n=t.cloneWithText(""),n.annotationMap.delete(y.LINK),e.apply(new s([n]))),e}}}class yt extends v{constructor(t,e,n=!1){super(),this.isFlushable=!0,this.type=c.UPDATE_CURSOR_POSITION,this.immediatelyRun=!1,this.nextFocusNode=t,this.offset=e,this.immediatelyRun=n,this.immediatelyRun&&(this.isFlushable=!1)}}class Nt extends t{handleAction(t,e){const{rteRange:n,nodeToBeInserted:s}=t,{startNode:r,startOffset:i}=n;if(r){const t=e;if(r.isContentEditable()&&r.isTextNode())if("\n"!==r.text&&r.text&&0!==i){const e=r.text.substring(0,i),n=r.text.substring(i),o=r.cloneWithText(e),a=r.cloneWithText(n),l=[o,s];n&&l.push(a),t.apply(new E(r,...l)),t.apply(new p(r))}else t.apply(new E(r,s));else t.apply(0!==i?new T(r,s):new E(r,s));this.updateCursorPosition(s)}}updateCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new yt(t))}}class Ct extends t{handleAction(t,e){const{text:n,offset:s,decoratorNode:r}=t,i=this.createNewParagraph(n);if(i){const t=i.children[0];e.apply(0!==s?new T(r,t):new E(r,t)),this.setTheCursorPosition(t)}}setTheCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new yt(t))}}class At extends t{handleAction(t,e){t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset,e)}breakSingleListItemBlock(t,e,n){const r=n.createNewListItem(),i=this.copyInlineStyleToNewNode(t);if(r.apply(new s([i])),this.isCaretPositionAtBlockEnd(n,t,e))return this.breakListItemAtEnd(r,n);if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new S(t,e);return n.apply(s),s.newBlock}return n.parent.apply(new E(n,r)),r}breakListItemAtEnd(t,n){const r=n.parent.children[n.parent.children.length-1],i=1===n.children.length&&n.children[0].isEmpty();if(n===r&&i){const r=n.parent.parent;if("list-item"!==r.type){const i=e.from({id:it(),type:"paragraph",nodes:[]});return i.apply(new s(t.children)),r.apply(new T(n.parent,i)),n.parent.apply(new p(n)),i}r.parent.apply(new T(r,t)),n.parent.apply(new p(n))}else n.parent.apply(new T(n,t));return t}copyInlineStyleToNewNode(t){const e=t.cloneWithText("");return e.annotationMap.delete(y.LINK),e}}class Ht extends v{constructor(t){super(),this.type=c.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class jt extends P{handleAction(t,e){super.handleAction(t,e);const n=e.parent;0===e.children.length&&n&&n.apply("list-item"===n.type?new Ht(e):new p(e))}}class vt extends t{handleAction(t,e){if(e.parent){const{blocksToBeInserted:n,startNode:s,startOffset:r}=t;let i=e;if(s===e.children[0]&&0===r)e.parent.apply(new E(e,...n));else{const t=new S(s,r);e.apply(t),e.parent.apply(new T(e,...n)),i=t.newBlock}t.futureFocusBlock=i}}}const St=new class{registerBlockBasicStrategies(t){r.register(c.DELETE_CHILDREN,t,t===RTEListBlock.name?new jt:new P),r.register(c.APPEND_CHILDREN,t,new kt),r.register(c.INSERT_CHILDREN_BEFORE,t,new Rt),r.register(c.INSERT_CHILDREN_AFTER,t,new Bt),r.register(c.DELETE_BLOCK_CONTENT,t,new Ot),r.register(c.INSERT_NEW_PARAGRAPH,t,t===RTEListItemBlock.name?new At:new Lt),r.register(c.INSERT_TEXT_TO_DECORATOR_NODE,t,new Ct),r.register(c.INSERT_NODE_TO_NEAREST_ROOT,t,new Nt),r.register(c.PASTE_CONTENT,t,new vt)}};class $t{}class Dt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isBold(t)||e.bold?{bold:!0}:{}}isBold(t){return"STRONG"===t.nodeName||"B"===t.nodeName||t.style.fontWeight===F||t.style.fontWeight===z||t.classList.contains("v-rte--bold")}}class Mt extends $t{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getAttributes(t);return Object.keys(e).length>0?{customAttribute:e}:{}}getAttributes(t){return t.getAttributeNames().filter((t=>"style"!==t&&"class"!==t&&this.isValidAttr(t))).reduce(((e,n)=>(e[n]=t.getAttribute(n),e)),{})}isValidAttr(t){return/^[a-zA-Z_][\w-]*$/.test(t)}}class Pt extends $t{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getCustomClass(t);return e.length>0?{customClass:e}:{}}getCustomClass(t){return t.classList.toString().split(" ").filter((t=>!t.includes("v-rte")&&""!==t))}}class Ft extends $t{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=V(t);return Object.keys(e).length>0?{customStyle:e}:{}}}class zt extends $t{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getIndent(t);return e?{indent:e}:{}}getIndent(t){const e=t.style;let n;if(e.marginLeft)n=e.marginLeft;else{if(!e.margin)return null;{const t=e.margin.split(" ");switch(t.length){case 4:n=t[3];break;case 2:case 3:n=t[1];break;default:n=t[0]}}}const s=Number(n.replace("px",""));return s&&s>=0?Math.floor(s/16):null}}class Vt extends $t{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getTextAlign(t);return e?{textAlign:e}:{}}getTextAlign(t){const e=t.classList;if(e.contains("v-rte--horizontal-alignment-left"))return"left";if(e.contains("v-rte--horizontal-alignment-center"))return"center";if(e.contains("v-rte--horizontal-alignment-right"))return"right";if(e.contains("v-rte--horizontal-alignment-justify"))return"justify";switch(t.style.textAlign){case"center":return"center";case"right":return"right";case"justify":return"justify";case"left":return"left";default:return null}}}class Ut extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isCode(t)||e.code?{code:!0}:{}}isCode(t){return t.classList.contains("v-rte--code")||"CODE"===t.nodeName||"PRE"===t.nodeName||"monospace"===t.style.fontFamily||"Roboto Mono"===t.style.fontFamily.replace(/["']/g,"")}}class Wt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){const n=this.getColor(t)||e.textColor;return n?{textColor:n}:{}}getColor(t){var e;const n=null===(e=ut(t.style.color))||void 0===e?void 0:e.toUpperCase();if(n){const t=U.filter((t=>t.key!==W.key)).find((t=>t.light===n||t.dark===n));return t?t.key:null}for(const e of U)if(t.style.color.includes(e.key))return e.key;return null}}class Gt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isItalic(t)||e.italic?{italic:!0}:{}}isItalic(t){return"I"===t.nodeName||t.style.fontStyle===G||"EM"===t.nodeName||t.classList.contains("v-rte--italic")}}class Jt extends $t{canHandle(t,e){return!!e.autoMatchFormat&&"RTETextBlock"===t.name}handle(t){const e=this.getTextStyle(t);return e?{textStyle:e}:{}}getTextStyle(t){const e=this.getElementTypeByDataType(t);if(e)return e;const n=this.getElementTypeByNodeName(t);if(n)return n;const s=this.getElementTypeByFontSize(t);if(s)return s;return this.getElementTypeByClassName(t)||null}getElementTypeByDataType(t){return t.nodeType!==Node.TEXT_NODE&&t.hasAttribute("data-type")?t.getAttribute("data-type"):null}getElementTypeByFontSize(t){var e;switch(null===(e=t.style)||void 0===e?void 0:e.fontSize){case"36px":return"title";case"28px":return"subtitle";case"22px":return"heading-1";case"20px":return"heading-2";case"18px":return"heading-3";default:return null}}getElementTypeByNodeName(t){switch(t.nodeName){case"P":return"paragraph";case"H1":return"heading-1";case"H2":return"heading-2";case"H3":return"heading-3";case"H4":return"heading-4";case"H5":return"heading-5";case"H6":return"heading-6";default:return null}}getElementTypeByClassName(t){if(t.className){const e=/\bv-rte-(?:-text-style-)?(title|subtitle|heading-1|heading-2|heading-3|heading-4|heading-5|heading-6|paragraph)\b/.exec(t.className);if(e)return e[1]}return null}}class Kt{static isTitleOrSubtitle(t){if("DIV"===t.nodeName){const e=Kt.textStyleHandler.getTextStyle(t);return"title"===e||"subtitle"===e}return!1}static isLinkElement(t){return"A"===t.nodeName}}Kt.textStyleHandler=new Jt;class Yt extends $t{constructor(){super(...arguments),this.handlers=[new Mt,new Pt,new Ft]}canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return e.link?{link:e.link}:Kt.isLinkElement(t)?{link:this.generateLinkAnnotations(t)}:{}}generateLinkAnnotations(t){const e={href:t.getAttribute("href")||"",groupKey:it()};return this.handlers.forEach((n=>{Object.assign(e,n.handle(t))})),e}}class Xt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isStrikethrough(t)||e.strikethrough?{strikethrough:!0}:{}}isStrikethrough(t){return t.style.textDecoration.includes(J)||"S"===t.nodeName||"DEL"===t.nodeName||t.classList.contains("v-rte--strikethrough")}}class Qt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isUnderline(t)||e.underline?{underline:!0}:{}}isUnderline(t){return t.style.textDecoration.includes(K)||"U"===t.nodeName||"INS"===t.nodeName||t.classList.contains("v-rte--underline")}}class Zt extends $t{canHandle(t){return"RTEImageNode"===t.name}handle(t){const e=this.getImageSize(t);return e?{size:e}:{}}getImageSize(t){return t.getAttribute("data-size")?t.getAttribute("data-size"):null}}class _t extends $t{canHandle(t){return"RTEImageNode"===t.name}handle(t){return t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:{}}}const qt=new Set(["P","H1","H2","H3","H4","H5","H6","LI"]),te=new Set(["P","H1","H2","H3","H4","H5","H6","LI","UL","OL","IMG","CODE"]),ee=new Set(["BR","VEGA-RICH-TEXT-LINK-EDITOR","CODE","A"]),ne=new Set(["TABLE","THEAD","TBODY","TFOOT","TR","DL"]),se=new Set(["ABBR","B","BDI","BDO","CITE","DEL","DFN","EM","I","INS","KBD","MARK","METER","OUTPUT","PROGRESS","Q","S","SAMP","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR"]);function re(t){return qt.has(t.parentElement.nodeName)}class ie extends $t{constructor(){super(...arguments),this.customAttributeHandler=new Mt,this.customStyleAnnotationHandler=new Ft,this.customClassAnnotationHandler=new Pt}canHandle(t,e){return"RTETextNode"===t.name&&!1===e.autoMatchFormat}handle(t,e){if(te.has(t.nodeName)&&!ee.has(t.nodeName))return{};const n=this.generateInlineHtmlAnnotation(t,Object.assign({},e));return n?{inlineHtml:n}:{}}generateInlineHtmlAnnotation(t,e){let{inlineHtml:s}=e;const r=Array.from(t.childNodes).some((t=>t.nodeType===Node.ELEMENT_NODE));if(!n.supportsHtmlTag(t.nodeName.toLowerCase())||r){const e=Object.assign(Object.assign({htmlTag:t.nodeName.toLowerCase()},r?{groupId:it()}:{}),{customAttribute:this.customAttributeHandler.handle(t).customAttribute,customStyle:this.customStyleAnnotationHandler.handle(t).customStyle,customClass:this.customClassAnnotationHandler.handle(t).customClass});s=s?this.appendToInlineHtmlChain(s,e,t.parentNode):e}return s?Object.assign({},s):null}appendToInlineHtmlChain(t,e,n){return t.child&&n&&t.child.htmlTag===n.nodeName.toLowerCase()?Object.assign(Object.assign({},t),{child:this.appendToInlineHtmlChain(t.child,e,n)}):Object.assign(Object.assign({},t),{child:e})}}const oe=new class{constructor(){this.handlers=[new Vt,new zt,new Dt,new Gt,new Qt,new Xt,new Wt,new Yt,new Ut,new Zt,new _t,new Mt,new Pt,new Ft,new Jt,new ie]}registerHandler(t){this.handlers.unshift(t)}generate(t,e,n={autoMatchFormat:!0}){n&&n.filterInlineStyles&&Y.executeTheStrategyRefillAction(t.name,e);const s=Kt.isLinkElement(e)&&"RTETextNode"===t.name,r=this.handlers.filter((t=>!(!n.autoMatchFormat&&s)||t instanceof Yt)).filter((r=>e.nodeType!==Node.TEXT_NODE&&r.canHandle(t,{skipCustomAnnotations:n.skipCustomAnnotations||s,autoMatchFormat:n.autoMatchFormat}))).reduce(((t,s)=>{const r=s.handle(e,n.parentAnnotations);return Object.assign(Object.assign({},t),r)}),{});this.removeTextStyleDefaultsFromCustomStyle(r);const i=Y.getStrategies(t.name);for(const t of i)(n.autoMatchFormat||t.alwaysFilter)&&t.filterAnnotations(r);return r}removeTextStyleDefaultsFromCustomStyle(t){const e="textStyle"in t?t.textStyle:void 0,n=t.customStyle;if(!e||!n)return t;const s=X.getDefaultStyles(e);if(!s)return t;for(const t of Object.keys(s))n[t]===s[t]&&delete n[t];return 0===Object.keys(n).length&&delete t.customStyle,t}};class ae extends pt{constructor(){super(...arguments),this.annotationHandler=new Jt}generateChildNodes(t,e,s){const r=[],i=!(!s||!1!==s.autoMatchFormat),o=Object.assign({},e);return t.forEach((t=>{const a=Et.getElementToNodeStrategies().find((e=>e.canHandle([t],0,s)>0));let l=null;if(a&&(l=a.handle([t],s,o)),l)r.push(l);else if(dt(t)&&t.childNodes.length>0){const a=oe.generate(n,t,Object.assign({parentAnnotations:i?{inlineHtml:o.inlineHtml,link:o.link,code:o.code}:e},s));r.push(...this.generateChildNodes(Array.from(t.childNodes),a,s))}})),r}matchTextBlockType(t){var e;return null!==(e=this.annotationHandler.handle(t).textStyle)&&void 0!==e?e:"paragraph"}}class le extends ae{canHandle(t,e){return"PRE"!==t[e].tagName&&"CODE"!==t[e].tagName||!t[e].hasAttribute("data-language")?0:1}handle(t){const e=t[0];if(e){const t=e.textContent,n=e.dataset.language;return b.from({id:it(),type:"code-block",content:t,language:n})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class ce extends ae{createRTEImageBlock(t,e){const n=!(e&&e.autoMatchFormat||!t.parentNode||"DIV"===t.parentNode.nodeName);return RTEImageBlock.from({id:it(),type:"image",nodes:[{id:it(),type:"image",url:t.src,annotations:oe.generate(RTEImageNode,t,e)}],annotations:Object.assign(Object.assign({},oe.generate(RTEImageBlock,t.parentElement,e)),{internalWrapper:n})},e)}}class he extends pt{shouldProceedToElementChildren(){return!1}appendChildBlocks(){}generateTextNode(t,e){return{id:it(),type:"text",text:t,annotations:e}}}class ue extends Q{constructor(){super(...arguments),this.stylesToBeFiltered={}}get alwaysFilter(){return!0}filterAnnotations(t){const{textAlign:e,customStyle:n}=t;return e&&n?(this.stylesToBeFiltered=_.getDefaultStyles(e),super.filterAnnotations(t)):t}}class de extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=X.getDefaultStyles("paragraph"),this.type="paragraph",this.elementTagName="p"}filterAnnotations(t){return t}canFilter(t){return Z.isTextBlock(t.constructor.name)&&t.type===this.type}canRefill(t,e){const n=this.classNameToBeAdded?`.${this.classNameToBeAdded}`:this.elementTagName;return Z.isTextBlock(t)&&e.matches(n)}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}class me extends de{constructor(t){super(),this.type="heading-1",this.elementTagName="h1",this.type=`heading-${t}`,this.elementTagName=`h${t}`,this.stylesToBeFiltered=X.getDefaultStyles(this.type)}}class we extends de{constructor(t){super(),this.type="title",this.elementTagName="div",this.classNameToBeAdded="v-rte-title",this.type=t,this.classNameToBeAdded=`v-rte-${t}`,this.stylesToBeFiltered=X.getDefaultStyles(this.type)}}class Te extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=Te.BOLD_STYLES,this.elementTagName="span",this.parentBlockTypes=["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title"],this.parentElementSelectors=["h1","h2","h3","h4","h5","h6",".v-rte-title"],this.toBeCheckedSelector=this.parentElementSelectors.join(",")}filterAnnotations(t){return t}canFilter(t){return Z.isTextNode(t.constructor.name)&&this.parentBlockIsHeadingOrTitle(t)}canRefill(t,e){return Z.isTextNode(t)&&"SPAN"===e.nodeName&&this.isHeadingOrTitleChild(e)}toCssText(){return`${this.parentElementSelectors.map((t=>`.${Te.RTE_CONTENT_CONTAINER_CLASS_NAME} ${t}`)).join(",")} { ${this.convertStylesMapToCssText()} }`}parentBlockIsHeadingOrTitle(t){const e=t.parent;return!!e&&this.parentBlockTypes.includes(e.type)}isHeadingOrTitleChild(t){let e=t.parentElement;for(;e;){if(e.matches(this.toBeCheckedSelector))return!0;if(Te.NON_HEADING_TITLE_ELEMENT_TAGS.includes(e.tagName))return!1;e=e.parentElement}return!1}}Te.BOLD_STYLES={fontWeight:"700"},Te.NON_HEADING_TITLE_ELEMENT_TAGS=["TD","TH","TR","TABLE","THEAD","TBODY","DIV","BODY"];class pe extends me{constructor(t){super(t),this.classNameToBeAdded=`v-rte-h${t}`,this.elementTagName="li"}canFilter(t){return Z.isListItemBlock(t.constructor.name)&&this.isBlockOrNodeStylesMatchFilterStyles(t,["fontSize","lineHeight"])}canRefill(t,e){return Z.isListItemBlock(t)&&e.matches(this.elementTagName)&&e.classList.contains(this.classNameToBeAdded)}}class ge extends we{constructor(t){super(t),this.classNameToBeAdded=`v-rte-${t}`,this.elementTagName="li"}canFilter(t){return Z.isListItemBlock(t.constructor.name)&&this.isBlockOrNodeStylesMatchFilterStyles(t,["fontSize","lineHeight"])}canRefill(t,e){return Z.isListItemBlock(t)&&e.matches(this.elementTagName)&&e.classList.contains(this.classNameToBeAdded)}}tt.registerRTEDTOClass("paragraph",e),tt.registerRTEDTOClass("title",e),tt.registerRTEDTOClass("subtitle",e),tt.registerRTEDTOClass("heading-1",e),tt.registerRTEDTOClass("heading-2",e),tt.registerRTEDTOClass("heading-3",e),tt.registerRTEDTOClass("heading-4",e),tt.registerRTEDTOClass("heading-5",e),tt.registerRTEDTOClass("heading-6",e),tt.registerRTEDTOClass("heading-6",e),tt.registerRTEDTOClass("list-item",RTEListItemBlock),tt.registerRTEDTOClass("bullet-list",RTEListBlock),tt.registerRTEDTOClass("number-list",RTEListBlock),tt.registerRTEDTOClass("image",RTEImageBlock),tt.registerRTEDTOClass("code-block",b),tt.registerRTEDTOClass("html-block",RTEHtmlBlock),tt.registerRTEDTOClass("text",n),tt.registerRTEDTOClass("image",RTEImageNode),St.registerBlockBasicStrategies(e.name),St.registerBlockBasicStrategies(RTEListBlock.name),St.registerBlockBasicStrategies(RTEListItemBlock.name),St.registerBlockBasicStrategies(RTEImageBlock.name),St.registerBlockBasicStrategies(RTEHtmlBlock.name),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e,n){let s=0;for(let r=e;r<t.length&&this.isInlineCandidate(t[r],n);r++)s++;return s}handle(t,s){const r=t[0].parentElement,i=s&&s.autoMatchFormat,o=this.generateChildNodes(t,i?oe.generate(n,r,Object.assign(Object.assign({},s),{skipCustomAnnotations:!0})):{},s),a=i?super.matchTextBlockType(r):this.matchTextBlockTypeByTagName(r),l=!i&&!a;return e.from(Object.assign({id:it(),type:a||"paragraph",nodes:o},l?{annotations:{internalWrapper:l}}:{annotations:oe.generate(e,r,s)}),s)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}matchTextBlockTypeByTagName(t){switch(t.nodeName){case"P":return"paragraph";default:return null}}isInlineCandidate(t,e){return t.nodeType===Node.TEXT_NODE||!!ee.has(t.nodeName)||!this.isDedicatedBlockTag(t.nodeName)&&(!(!1!==e.autoMatchFormat||!re(t))||this.isInlineLeafOrWrapper(t))}isDedicatedBlockTag(t){return te.has(t)&&!ee.has(t)}isInlineLeafOrWrapper(t){return 0===t.childNodes.length?se.has(t.nodeName):this.isTextOnlyElement(t)?se.has(t.nodeName)||ee.has(t.nodeName):this.hasOnlyInlineDescendants(t)}isTextOnlyElement(t){const e=Array.from(t.childNodes);return!e.some((t=>t.nodeType===Node.ELEMENT_NODE))&&e.some((t=>t.nodeType===Node.TEXT_NODE))}hasOnlyInlineDescendants(t){for(let e=0;e<t.children.length;e++){const n=t.children[e];if(this.isDedicatedBlockTag(n.nodeName))return!1;if(!n.hasChildNodes())return!1;if(!this.hasOnlyInlineDescendants(n))return!1}return!0}}),Et.registerElementToBlockStrategy(new class extends ce{canHandle(t,e){const n=t[e];return n.nodeType===Node.ELEMENT_NODE&&""===n.textContent&&n.querySelector("img")?1:0}handle(t,e){const n=t[0].querySelector("img");return this.createRTEImageBlock(n,e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ce{canHandle(t,e){return"VEGA-RICH-TEXT-IMAGE-EDITOR"===t[e].tagName?1:0}handle(t,e){const n=t[0],s=n.querySelector("img");if(ot(s))return RTEImageBlock.from({id:it(),type:"image",nodes:[{id:it(),type:"image",url:s.src,annotations:oe.generate(RTEImageNode,n,e)}],annotations:oe.generate(RTEImageBlock,n.parentElement,e)},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ce{canHandle(t,e){return"IMG"===t[e].tagName?1:0}handle(t,e){return this.createRTEImageBlock(t[0],e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){return["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title","subtitle"].includes(super.matchTextBlockType(t[e]))?1:0}handle(t,n){const s=this.generateChildNodes(Array.from(t[0].childNodes),{},n);return 0===s.length?null:e.from({id:it(),type:super.matchTextBlockType(t[0]),nodes:s,annotations:oe.generate(e,t[0],n)},n)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){if(!["UL","OL"].includes(t[e].parentElement.nodeName)&&t.some((t=>"LI"===t.nodeName))){let n=0;for(let s=e;s<t.length&&"LI"===t[s].nodeName;s++)n++;return n}return"LI"===t[e].tagName?1:0}handle(t,e){const n=t[0];return["UL","OL"].includes(n.parentElement.nodeName)?RTEListItemBlock.from(this.generateListItemBlockDTO(n,e),e):this.generateWithListBlock(t,e)}appendChildBlocks(t,e){t.nestList=e.filter((t=>["bullet-list","number-list"].includes(t.type)))}shouldProceedToElementChildren(){return!0}generateWithListBlock(t,e){return RTEListBlock.from({id:it(),type:"bullet-list",blocks:t.map((t=>this.generateListItemBlockDTO(t,e)))},e)}generateListItemBlockDTO(t,e){return{id:it(),type:"list-item",annotations:oe.generate(RTEListItemBlock,t,e),nodes:this.generateChildNodes(Array.from(t.childNodes.length?t.childNodes:[t]).filter((t=>!["UL","OL"].includes(t.nodeName))),oe.generate(n,t,Object.assign(Object.assign({},e),{skipCustomAnnotations:!0})),e)}}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){const n=t[e],s=n.parentElement,r="LI"!==n.nodeName,i=n.nodeType===Node.TEXT_NODE&&""===n.textContent.trim(),o=ot(s)&&["UL","OL"].includes(s.nodeName);return r&&!i&&o?1:0}handle(t,e){const n=this.generateChildNodes(t,{},e);return RTEListItemBlock.from({id:it(),type:"list-item",nodes:n,annotations:{}},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){return"OL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:it(),type:"number-list",blocks:[],annotations:oe.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){return"UL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:it(),type:"bullet-list",blocks:[],annotations:oe.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e,n){const s=t[e];return s.nodeType===Node.TEXT_NODE||this.isInlineTagWithoutBlockChildren(s,n)||te.has(s.nodeName)&&!this.shouldFallBackToHtmlBlock(s)||n.autoMatchFormat||!this.isCustomHtmlContainer(s)||Kt.isTitleOrSubtitle(s)?0:1}handle(t,e){return RTEHtmlBlock.from(this.generateHtmlBlock(t[0],e),e)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}isInlineTagWithoutBlockChildren(t,e){if(re(t))return!(0===t.childNodes.length&&""===t.textContent&&!ee.has(t.nodeName)&&!se.has(t.nodeName));const n=Array.from(t.childNodes);return!(n.some((t=>t.nodeType===Node.ELEMENT_NODE))||!n.some((t=>t.nodeType===Node.TEXT_NODE)))&&(!1!==e.autoMatchFormat||!ne.has(t.parentElement.nodeName)&&(se.has(t.nodeName)||ee.has(t.nodeName)))}shouldFallBackToHtmlBlock(t){const e=Array.from(t.childNodes);if(0===e.length)return!1;const n=t.parentElement.nodeName;return"UL"!==n&&"OL"!==n&&e.every((t=>t.nodeType===Node.ELEMENT_NODE&&""===t.textContent&&!ee.has(t.nodeName)&&!se.has(t.nodeName)))}isCustomHtmlContainer(t){return"DIV"!==t.nodeName||t.childNodes.length>0&&"IMG"!==t.childNodes[0].nodeName}generateHtmlBlock(t,e){return{id:it(),type:"html-block",htmlTag:t.nodeName.toLowerCase(),annotations:oe.generate(RTEHtmlBlock,t,e),children:[]}}}),
2
2
  //!important: Code block strategies must be registered after HtmlBlockStrategy because registerElementToBlockStrategy uses unshift, giving later registrations higher priority.
3
3
  Et.registerElementToBlockStrategy(new le),Et.registerElementToBlockStrategy(new class extends le{canHandle(t,e){return"VEGA-CODE-BLOCK"===t[e].tagName&&0==!!t[e].querySelector("vega-code-block")||this.isCodeBlockContainer(t[e])?1:0}handle(t){const e=this.isCodeBlockContainer(t[0])?t[0].querySelector("vega-code-block"):t[0],n=e.querySelector("code");if(n)return super.handle([n]);if(e.hasAttribute("data-content")){const t=document.createElement("code");return t.textContent=e.dataset.content,t.dataset.language=e.dataset.language,super.handle([t])}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isCodeBlockContainer(t){return"PRE"===t.tagName&&t.classList.contains("code-block-container")&&1===t.querySelectorAll("vega-code-block").length}}),Et.registerElementToNodeStrategy(new class extends he{canHandle(t,e){const n=t[e];return!dt(n)||"BR"!==n.nodeName&&0!==n.childNodes.length?0:1}handle(t,e,s){const r=!(!e||!1!==e.autoMatchFormat),i=Object.assign({},s),o=t[0],a=oe.generate(n,o,Object.assign({parentAnnotations:r?{inlineHtml:i.inlineHtml,link:i.link,code:i.code}:s},e));if("BR"===o.nodeName)return this.generateTextNode("\n",a);if(0===o.childNodes.length){const t=r?mt(Object.assign(Object.assign({},n.supportsHtmlTag(o.nodeName.toLowerCase())?a:{}),{inlineHtml:a.inlineHtml})):a;return Object.assign({},this.generateTextNode("",t))}}}),Et.registerElementToNodeStrategy(new class extends he{canHandle(t,e){return t[e].nodeType===Node.TEXT_NODE?1:0}handle(t,e,s){const r=Object.assign({},s),i=!(!e||!1!==e.autoMatchFormat),o=t[0],a=o.parentNode.nodeName.toLowerCase(),l=i&&!n.supportsHtmlTag(a),c=this.generateTextNode(String(o.textContent),i?mt(Object.assign(Object.assign({},"span"===a?r:{link:r.link,code:"code"===a?r.code:void 0}),{inlineHtml:r.inlineHtml,plainText:l||void 0})):r);return Object.assign({},c)}}),Y.register(e.name,new ue),Y.register(RTEListBlock.name,new ue),Y.register(RTEListItemBlock.name,new ue),Y.register(n.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered={}}get alwaysFilter(){return!0}filterAnnotations(t){const e=t,n=e.customStyle;if(!n)return t;e.bold&&n.fontWeight===z&&delete n.fontWeight,e.italic&&n.fontStyle===G&&delete n.fontStyle;const s=this.normalizeTextDecoration(n.textDecoration);return s&&this.shouldRemoveTextDecoration(s,e)&&delete n.textDecoration,0===Object.keys(n).length&&delete e.customStyle,t}normalizeTextDecoration(t){if(!t)return;const e=t.trim().toLowerCase().split(/\s+/);return e.some((t=>t!==K&&t!==J))?void 0:Array.from(new Set(e)).sort().join(" ")}shouldRemoveTextDecoration(t,e){const n=[];return e.underline&&n.push(K),e.strikethrough&&n.push(J),0!==n.length&&t===n.sort().join(" ")}}),Y.register(e.name,new de),Y.register(e.name,new me(1)),Y.register(e.name,new me(2)),Y.register(e.name,new me(3)),Y.register(e.name,new me(4)),Y.register(e.name,new me(5)),Y.register(e.name,new me(6)),Y.register(e.name,new we("title")),Y.register(e.name,new we("subtitle")),Y.register(n.name,new Te),Y.register(n.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=q.getDefaultStyles(),this.elementTagName="code"}filterAnnotations(t){const{code:e,customStyle:n}=t;return e&&n?super.filterAnnotations(t):t}canFilter(t){return Z.isCodeNode(t)}canRefill(t,e){return Z.isTextNode(t)&&e.matches(this.elementTagName)}toCssText(){return`.${Q.RTE_CONTENT_CONTAINER_CLASS_NAME} ${this.elementTagName} { ${this.convertStylesMapToCssText(Object.assign(Object.assign({},this.stylesToBeFiltered),{fontWeight:"500"}))} }`}}),Y.register(n.name,new et),Y.register(RTEImageNode.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=xt.getDefaultStyles(),this.elementTagName="img"}get alwaysFilter(){return!0}canFilter(t){return Z.isImageNode(t)}canRefill(t,e){return e.tagName.toLowerCase()===this.elementTagName}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}),Y.register(b.name,new nt),Y.register(st.name,new rt),Y.register(RTEListBlock.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=Tt.getDefaultStyles(),this.elementTagName="ol,ul"}canFilter(t){return Z.isListBlock(t.constructor.name)}canRefill(t,e){return Z.isListBlock(t)&&e.matches(this.elementTagName)}toCssText(){return`${this.elementTagName.split(",").map((t=>`.${Q.RTE_CONTENT_CONTAINER_CLASS_NAME} ${t.trim()}`)).join(", ")} { ${this.convertStylesMapToCssText(this.stylesToBeFiltered)} }`}}),Y.register(RTEListItemBlock.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=X.getDefaultStyles("paragraph"),this.elementTagName="li",this.headingOrTitleClassNamePattern=/^v-rte-(h[1-6]|title|subtitle)$/}canFilter(t){const e=!t.getStyles().fontSize||this.isBlockOrNodeStylesMatchFilterStyles(t,["fontSize","lineHeight"]);return Z.isListItemBlock(t.constructor.name)&&e}canRefill(t,e){return Z.isListItemBlock(t)&&e.matches(this.elementTagName)&&this.isElementNotHeadingOrTitle(e)}toCssText(){return this.buildCssTextForStyles(this.elementTagName)}isElementNotHeadingOrTitle(t){return!t.className.split(" ").some((t=>this.headingOrTitleClassNamePattern.test(t.trim())))}}),Y.register(RTEListItemBlock.name,new pe(1)),Y.register(RTEListItemBlock.name,new pe(2)),Y.register(RTEListItemBlock.name,new pe(3)),Y.register(RTEListItemBlock.name,new pe(4)),Y.register(RTEListItemBlock.name,new pe(5)),Y.register(RTEListItemBlock.name,new pe(6)),Y.register(RTEListItemBlock.name,new ge("title")),Y.register(RTEListItemBlock.name,new ge("subtitle"));class Ee{static preserve(t){const e=t.replace(/\s+style=/g," data-style=");return new fe(e)}}class fe{constructor(t){this.processedHtml=t}getProcessedHtml(){return this.processedHtml}restore(t){this.walkNodes(t)}walkNodes(t){t.forEach((t=>{if(dt(t)){const e=t.getAttribute("data-style");e&&(t.style.cssText=e,t.removeAttribute("data-style")),t.children.length>0&&this.walkNodes(Array.from(t.children))}}))}}class ke{process(t){return t.replace(/(<[^>]+>)(\s+)(<[^>]+>)/g,((t,e,n,s)=>{const r=this.extractOpeningTagName(e),i=this.extractClosingTagName(s);return r&&i&&r===i?`${e}${n}${s}`:`${e}${s}`}))}extractOpeningTagName(t){const e=t.match(/<(\w[\w-]*)/);return e?e[1]:null}extractClosingTagName(t){const e=t.match(/<\/(\w[\w-]*)/);return e?e[1]:null}}class Re{process(t){return t.replace(/(>)[\n\t]+(?=.)/g,"$1")}}class Be{process(t){return t.replace(/(.?)[\n\t]+(?=<)/g,"$1")}}class xe{constructor(){this.processors=[new ke,new Re,new Be]}clean(t){if(!t||0===t.trim().length)return t;let e,n=t;do{e=n;for(const t of this.processors)n=t.process(n)}while(n!==e);return n}}class VegaRTEContent{constructor(t){t.forEach((t=>{t.parent=this})),this.children=t}static fromJSON(t,e={autoMatchFormat:!0}){const n=t.map((t=>{const n=tt.getRTEBlockClass(t.type);if(n)return n.from(t,e);throw new Error(`[Vega] Unknown block type: ${t.type}`)}));return new VegaRTEContent(n)}static createEmptyContent(t={autoMatchFormat:!0}){return VegaRTEContent.fromJSON([{id:it(),type:"paragraph",annotations:{internalWrapper:!t.autoMatchFormat},nodes:[{id:it(),annotations:{plainText:!t.autoMatchFormat},type:"text",text:""}]}],t)}static fromHtml(t,e={autoMatchFormat:!0,skipCustomAnnotations:!1}){const n=(new xe).clean(t),s=Ee.preserve(n),r=s.getProcessedHtml(),i=(new DOMParser).parseFromString(r,"text/html").body,o=Array.from(i.childNodes);s.restore(o);const a=ft.process(o,e).filter(ot).map((t=>t.toDto(e))).filter(ot);return new VegaRTEContent(a)}static generateContentStyles(t){return Y.generateAllStylesContent(null==t?void 0:t.enableFontImports)}clone(t=!1){return new VegaRTEContent(t?this.children.map((t=>t.clone(this))):[...this.children])}toJSON(){return this.children.map((t=>t.toJSON()))}toHtml(t){return t&&(ot(t.autoMatchFormat)||ot(t.skipCustomAnnotations))&&wt.warn("The 'options' parameter's properties 'autoMatchFormat' and 'skipCustomAnnotations' in toHtml method are deprecated and will be removed in the future."),this.isEmpty()?"":this.children.map((e=>e.toHtml({filterInlineStyles:null==t?void 0:t.filterInlineStyles}))).join("")}isEmpty(){return 0===this.children.length||1===this.children.length&&!this.children[0].isNotEmpty()}apply(t){if(r.executeTheStrategy(t,this),t.executedFlag&&t.isFlushable){const t=O.getDOMByEntity(this);t&&at.notify(lt.getSubject(t,ht),{})}}getLastNode(){return 0===this.children.length?null:this.children[this.children.length-1].getLastNode()}toListItem(t){t.children.map((t=>t.apply(new g)));const e=new RTEListItemBlock(it());return e.apply(new s(t.children)),e.annotationMap=t.annotationMap,e}createList(t){return new RTEListBlock(it(),t)}findNodeById(t){return this.findNodeInBlocksById(t,this.children)}findNodeInBlocksById(t,e){for(const n of e){if("children"in n)for(const e of n.children)if(e.id===t)return e;if(n instanceof RTEListItemBlock&&n.nestList)for(const e of n.nestList){const n=this.findNodeInBlocksById(t,e.children);if(n)return n}if(n instanceof RTEListBlock&&n.children){const e=this.findNodeInBlocksById(t,n.children);if(e)return e}}return null}}r.register(c.DELETE_CHILDREN,VegaRTEContent.name,new P),r.register(c.APPEND_CHILDREN,VegaRTEContent.name,new kt),r.register(c.INSERT_CHILDREN_BEFORE,VegaRTEContent.name,new Rt),r.register(c.INSERT_CHILDREN_AFTER,VegaRTEContent.name,new Bt),r.register(c.TRANSFORM_TO_CODE_BLOCK,VegaRTEContent.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,s=new b(it(),this.getCodeContent(n),"plainText");e.apply(new E(n[0],s)),t.newCodeBlock=s,this.removeSelectBlocks(n,e)}getCodeContent(t){return t.filter((t=>"image"!==t.type&&"list-item"!==t.type)).map((t=>t.children.map((t=>t.text)).join(""))).join("\n")}removeSelectBlocks(t,e){for(let n=0;n<t.length;n++)e.apply(new p(t[n]))}}),r.register(c.UPDATE_CURSOR_POSITION,VegaRTEContent.name,new class extends t{handleAction(t,e){const{offset:n,nextFocusNode:s,immediatelyRun:r}=t,i=O.getDOMByEntity(e);i&&at.notify(lt.getSubject(i,ct),{node:s,offset:n,updateDirectly:r})}});export{$t as A,ae as B,Et as E,It as I,bt as M,vt as P,St as R,Ee as S,yt as U,VegaRTEContent as V,pt as a,RTEImageBlock as b,Rt as c,RTEListItemBlock as d,RTEListBlock as e,RTEImageNode as f,xt as g,oe as h,ft as i}
@@ -1 +1 @@
1
- import{p as e,b as i}from"./p-6b2342e0.js";import{g as a}from"./p-f54fb4e5.js";import"./p-18e8d9b7.js";import"./p-6e1ab235.js";import"./p-5a25014f.js";import"./p-c74060a7.js";import"./p-8b5d3a52.js";import"./p-6e70d3cc.js";import"./p-593e0f80.js";import"./p-6a334573.js";import"./p-781fd6e0.js";import"./p-262ec334.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-b75ee3ba.js";import"./p-f1c672e4.js";import"./p-9af0e2e7.js";import"./p-3b791b5d.js";import"./p-2d0d575f.js";import"./p-a528714c.js";import"./p-5904616e.js";import"./p-fb05335d.js";import"./p-f28a6074.js";import"./p-331a62d5.js";import"./p-6c43d54a.js";import"./p-02841589.js";import"./p-e4c4ea35.js";import"./p-d884c644.js";import"./p-8aee6b74.js";import"./p-fb5ea4b2.js";import"./p-4866e390.js";import"./p-f0e828d8.js";import"./p-a841cf13.js";import"./p-b6c3ce6d.js";import"./p-a7b5f497.js";import"./p-e1fbfd20.js";import"./p-e6adf829.js";import"./p-1d30cab2.js";import"./p-77e64f26.js";import"./p-0c667d6a.js";import"./p-1bc5b3bc.js";import"./p-c801c85d.js";import"./p-5bf3ab33.js";import"./p-abd7aeaa.js";import"./p-5f377954.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>(a(),i(JSON.parse('[["p-f604f2c9",[[1,"vega-pagination",{"current":[1538],"total":[2],"pageSize":[1026,"page-size"],"extensions":[16],"layout":[1],"pageSizeSelectorOptions":[1040],"dropdownProps":[16],"currentBreakpoint":[32],"pageCount":[32],"isAllActive":[32]}]]],["p-35d77c9c",[[1,"vega-page-notification",{"notificationTitle":[1,"title"],"message":[1],"type":[1],"duration":[2],"showCloseButton":[4,"show-close-button"],"actionButtons":[16],"close":[64]}],[1,"vega-page-notification-list"]]],["p-c2388937",[[1,"vega-color-picker",{"value":[1537],"hint":[1],"disabled":[516],"required":[516],"label":[1],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"colors":[16],"isInline":[4,"is-inline"],"columns":[2]}]]],["p-d37636a5",[[1,"vega-stepper",{"stepperId":[513,"id"],"max":[514],"min":[514],"value":[1538],"label":[1],"inputDisabled":[4,"input-disabled"],"disabled":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"buttonVariant":[1,"button-variant"]}]]],["p-23b38467",[[1,"vega-app-header-button",{"dropdown":[16],"size":[1],"labelConfig":[16],"label":[513],"showLabel":[4,"show-label"],"avatar":[16],"avatarPosition":[1,"avatar-position"],"showBorder":[4,"show-border"],"showMenuArrowIcon":[4,"show-menu-arrow-icon"],"selected":[4],"isDropdownShow":[32],"currentBreakpoint":[32]}]]],["p-4afafeb3",[[1,"vega-button-link",{"link":[1],"size":[1],"icon":[513],"iconType":[1,"icon-type"],"iconAlign":[1,"icon-align"],"label":[1537],"disabled":[4],"danger":[4],"eventful":[4],"target":[1]}]]],["p-effb285f",[[1,"vega-chip",{"text":[1],"clickable":[4],"variant":[1],"size":[1],"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"statusColor":[1,"status-color"],"chipType":[1,"chip-type"],"showCloseIcon":[4,"show-close-icon"],"icon":[1],"iconAlign":[1,"icon-align"],"iconColor":[1,"icon-color"],"currentBreakpoint":[32],"currentSize":[32]}]]],["p-a49c25c2",[[1,"vega-item-toggle",{"itemToggleStatusMap":[16],"statusMap":[16],"isToggled":[1028,"is-toggled"],"toggleItemStatus":[32]}]]],["p-dffbbc3d",[[1,"vega-checkbox",{"identifier":[1],"value":[1032],"checked":[1028],"indeterminate":[1540],"disabled":[516],"size":[1],"required":[516],"isValid":[1540,"is-valid"],"groupDisabled":[32],"showError":[32],"setValue":[64]}],[1,"vega-checkbox-group",{"label":[1],"value":[1040],"vegaFlexProp":[16],"disabled":[516],"required":[516],"hint":[1],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16]}]]],["p-7f46cc1e",[[1,"vega-hint"]]],["p-69c11b7b",[[1,"vega-textarea",{"placeholder":[1],"hint":[1],"disabled":[516],"label":[1],"labelSuffixButtonConfig":[16],"showCounter":[4,"show-counter"],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"required":[1540],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"resizable":[4],"rows":[2],"validationRules":[16],"currentCharCount":[32]},[[0,"input","handleValueTextarea"]]]]],["p-9fc8bd1f",[[1,"vega-toggle-switch",{"checked":[1540],"value":[1540],"size":[1],"label":[1],"required":[516],"disabled":[516],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"]}]]],["p-3c456e91",[[1,"vega-button-group",{"variant":[1],"size":[1],"iconAlign":[1,"icon-align"],"disabled":[4],"allItemsDisabled":[32]}],[1,"vega-button-group-item",{"icon":[1],"label":[1],"iconOnly":[4,"icon-only"],"disabled":[516],"itemKey":[1,"item-key"],"dropdownProps":[16],"dropdownSource":[16],"variant":[32],"size":[32],"iconAlign":[32],"parentDisabled":[32],"allItemsDisabled":[32]}]]],["p-096d186d",[[1,"vega-loading-indicator",{"shape":[1],"size":[1],"mode":[1],"percent":[2],"label":[1],"hint":[1],"status":[1],"currentBreakpoint":[32]}],[1,"vega-loader-wrapper"]]],["p-fa91805b",[[1,"vega-radio-group",{"label":[1],"value":[1537],"name":[1],"vegaFlexProp":[16],"required":[516],"hint":[1],"isValid":[1540,"is-valid"],"disabled":[516],"autoValidation":[516,"auto-validation"],"validationRules":[16]}],[1,"vega-radio",{"value":[1],"name":[1],"checked":[1028],"disabled":[4],"size":[1],"groupDisabled":[32],"showError":[32]}]]],["p-25572ea7",[[1,"vega-carousel",{"perPage":[2,"per-page"],"itemsPerPage":[2,"items-per-page"],"showSlider":[4,"show-slider"],"spacing":[1],"canSwipe":[4,"can-swipe"],"page":[32],"totalPages":[32],"nextPage":[64],"prevPage":[64],"goToPage":[64]}]]],["p-3d92d2af",[[1,"vega-input-credit-card",{"required":[1540],"disabled":[516],"label":[1],"hint":[1],"size":[1],"placeholder":[1],"hideCardNumberOnBlur":[4,"hide-card-number-on-blur"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"isValid":[1540,"is-valid"],"value":[1537]}]]],["p-13e7f906",[[1,"vega-table",{"columns":[16],"groupColumns":[16],"dataSource":[1040],"rowSelection":[1040],"rowExpandable":[4,"row-expandable"],"rowClickable":[4,"row-clickable"],"rowDraggable":[4,"row-draggable"],"rowDivider":[4,"row-divider"],"columnDivider":[4,"column-divider"],"striped":[4],"density":[1],"paddingX":[16],"showHeader":[4,"show-header"],"pagination":[16],"emptyDescription":[1,"empty-description"],"rowKey":[1,"row-key"],"scrollConfig":[16],"sortConfig":[16],"selectedRowKeySet":[32],"expandedRowKeySet":[32],"currentBreakpoint":[32],"sortersMap":[32],"currentData":[32],"currentClickedRowKey":[32],"currentPage":[32],"pageSize":[32],"editingRows":[32],"isSelectedAll":[32],"isTemplateRenderMode":[32],"columnStructureModel":[32],"expandableRows":[32],"hasExpandableRow":[32],"openExpandRow":[64],"closeExpandRow":[64],"closeAllExpandRow":[64],"toggleExpandRow":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64],"startRowEditMode":[64],"stopRowEditMode":[64],"stopAllRowEditMode":[64],"getRowData":[64],"getRowsData":[64],"getFormRef":[64],"addNewRow":[64],"saveEditRow":[64],"saveAllEditRows":[64],"getEditingRowsKey":[64],"removeRow":[64]}],[1,"vega-table-body"],[1,"vega-table-cell",{"textAlign":[1,"text-align"],"breakpoint":[1],"overflow":[1],"width":[1],"currentBreakpoint":[32],"density":[32],"rowDivider":[32],"columnDivider":[32],"clickable":[32],"checked":[32],"striped":[32],"expanded":[32],"renderInput":[32]}],[1,"vega-table-expand-row",{"rowKey":[1,"row-key"],"striped":[4],"currentBreakpoint":[32],"withMultipleSelection":[32],"withRowDraggable":[32],"expanded":[32],"checked":[32],"colSpan":[32]}],[1,"vega-table-foot",{"fixed":[32],"rowDivider":[32]}],[1,"vega-table-foot-cell",{"breakpoint":[1],"textAlign":[1,"text-align"],"width":[1],"currentBreakpoint":[32],"density":[32],"columnDivider":[32]}],[1,"vega-table-foot-row",{"currentBreakpoint":[32],"hasExpandableRow":[32],"selectionType":[32],"paddingX":[32],"columnDivider":[32],"draggable":[32],"density":[32]}],[1,"vega-table-head",{"fixed":[32]}],[1,"vega-table-head-cell",{"breakpoint":[1],"sorter":[1],"sortOrder":[1025,"sort-order"],"textAlign":[1,"text-align"],"width":[1],"sortConfig":[16],"pinned":[1],"currentBreakpoint":[32],"density":[32],"columnDivider":[32],"renderInput":[32]}],[1,"vega-table-head-row",{"selectAllDisabled":[4,"select-all-disabled"],"hideSelectAll":[4,"hide-select-all"],"currentBreakpoint":[32],"hasExpandableRow":[32],"selectionType":[32],"paddingX":[32],"checkedAll":[32],"columnDivider":[32],"density":[32],"isEmptyTable":[32],"isTemplateRenderMode":[32],"renderInput":[32],"draggable":[32]}],[1,"vega-table-row",{"rowKey":[1,"row-key"],"striped":[4],"rowDivider":[4,"row-divider"],"currentBreakpoint":[32],"clicked":[32],"hasExpandableRow":[32],"expandable":[32],"clickable":[32],"paddingX":[32],"selectionType":[32],"checked":[32],"expanded":[32],"columnDivider":[32],"density":[32],"draggable":[32]}]]],["p-7f74cd41",[[1,"vega-dropdown",{"size":[8],"trigger":[1],"translocation":[16],"source":[1040],"positionRelativeTo":[1,"position-relative-to"],"selectType":[1,"select-type"],"selectedSourceKey":[1025,"selected-source-key"],"prefixIconSlot":[4,"prefix-icon-slot"],"maxHeight":[2,"max-height"],"searchable":[4],"matchTargetWidth":[4,"match-target-width"],"minWidth":[8,"min-width"],"maxWidth":[8,"max-width"],"itemDisplayRule":[1,"item-display-rule"],"itemTooltipProps":[16],"matchContainerHeight":[4,"match-container-height"],"caseSensitive":[4,"case-sensitive"],"dynamicOption":[4,"dynamic-option"],"useDefaultFilter":[4,"use-default-filter"],"isLoading":[4,"is-loading"],"placement":[1],"alignment":[1],"isLazyLoading":[4,"is-lazy-loading"],"searchTriggerBy":[1,"search-trigger-by"],"isScreenPosition":[4,"is-screen-position"],"resettable":[4],"virtualizationThreshold":[2,"virtualization-threshold"],"preserveValueIfNotInSource":[4,"preserve-value-if-not-in-source"],"searchNoResultsText":[1,"search-no-results-text"],"searchString":[32],"isDropdownShow":[32],"sourceForRender":[32],"show":[64],"hide":[64],"search":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64]}],[1,"vega-dropdown-content-box"],[1,"vega-dropdown-group",{"label":[1],"divide":[4]}],[1,"vega-dropdown-item",{"label":[1],"itemKey":[513,"item-key"],"count":[2],"prefixIcon":[1,"prefix-icon"],"disabled":[4],"height":[2],"danger":[4],"selectType":[32],"prefixIconSlot":[32],"selected":[32],"itemDisplayRule":[32],"itemTooltipProps":[32]}],[1,"vega-virtual-scroll",{"source":[16],"approxItemHeight":[2,"approx-item-height"],"viewportMaxHeight":[2,"viewport-max-height"],"isLoading":[4,"is-loading"],"virtualizationThreshold":[2,"virtualization-threshold"],"sourceItemIdentifier":[1,"source-item-identifier"],"renderItem":[16],"positionConfig":[32],"scrollTop":[32],"scrollToIndex":[64]}]]],["p-56c1a8ac",[[1,"vega-left-nav",{"open":[1028],"headerConfig":[16],"source":[16],"footnote":[1],"showAsOverlay":[4,"show-as-overlay"],"autoCollapseOnOverlay":[4,"auto-collapse-on-overlay"],"autoCollapseGroups":[8,"auto-collapse-groups"],"currentBranding":[32],"openState":[32],"toggle":[64]}],[1,"vega-left-nav-group",{"icon":[1],"label":[1],"openByDefault":[4,"open-by-default"],"itemKey":[1,"item-key"],"autoCollapseGroups":[32]}],[1,"vega-left-nav-link",{"icon":[1],"selected":[1540],"customSelectionEnabled":[4,"custom-selection-enabled"],"url":[1],"counterBadge":[16],"itemKey":[1,"item-key"],"target":[1]}],[1,"vega-left-nav-section",{"sectionHeader":[16],"itemKey":[1,"item-key"]}],[1,"vega-nav-card",{"source":[16],"maxHeight":[520,"max-height"],"currentMaxHeight":[32]}]]],["p-887b3e2d",[[1,"vega-calendar",{"viewMode":[1025,"view-mode"],"events":[16],"timeFormat":[1,"time-format"],"isDateDisabled":[16],"moreActionDropdownProps":[16],"showEventColorBar":[4,"show-event-color-bar"],"showSwitchView":[4,"show-switch-view"],"enableDateClick":[4,"enable-date-click"],"showWeekends":[4,"show-weekends"],"enabledEventPreview":[4,"enabled-event-preview"],"timezone":[1],"calendarView":[32],"currentPeriod":[32],"postOperationDate":[32],"showAllEventsInDayOrWeekView":[32],"calendarEvents":[32]}],[1,"vega-calendar-event",{"calendarEvent":[16],"timeFormat":[32],"slotMode":[32],"showColorBar":[32]}],[1,"vega-calendar-event-preview",{"previewPayload":[32],"currentEvent":[32]}],[1,"vega-calendar-event-slot",{"eventKey":[513,"event-key"]}]]],["p-c2e1f33d",[[1,"vega-rich-text-editor",{"label":[1],"required":[516],"placeholder":[1],"disabled":[4],"hint":[1],"rows":[2],"value":[1040],"toolbarItems":[16],"allowSourceEdit":[4,"allow-source-edit"],"sourceEditConfig":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"textStyleItems":[16],"extensions":[16],"richTextContentEditable":[32],"selectionMap":[32],"isInDarkMode":[32],"sourceView":[32]}],[1,"vega-rich-text-editor-toolbar-button",{"disabled":[4],"hidden":[4],"selected":[4],"showArrowIcon":[4,"show-arrow-icon"],"icon":[1],"iconColor":[1,"icon-color"]}],[1,"vega-rich-text-image-editor",{"alt":[513],"size":[1537],"currentPage":[32],"selected":[32]}],[1,"vega-rich-text-link-editor",{"status":[1025],"record":[16],"resetStatusAfterHide":[4,"reset-status-after-hide"],"target":[16],"show":[64]}]]],["p-487ecdb0",[[1,"vega-rich-text-table-properties",{"defaultValue":[16],"styleMap":[16],"type":[513],"colors":[16],"isInDarkMode":[32]}],[1,"vega-rich-text-table-selection-widget",{"isSelected":[32]}],[1,"vega-rich-text-table-setting",{"hasCaption":[4,"has-caption"],"selectedCells":[1040],"target":[16],"isColumnDropdownOpen":[32],"isMergeCellsDropdownOpen":[32]}]]],["p-2ae5acfc",[[1,"vega-date-picker",{"mode":[1],"value":[1537],"label":[1],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"format":[1],"size":[1],"validationRules":[16],"minDate":[1537,"min-date"],"maxDate":[1537,"max-date"],"placeholder":[1],"clearButton":[4,"clear-button"],"readOnly":[4,"read-only"],"allowRepick":[4,"allow-repick"],"dropdownConfig":[16],"showClearIcon":[4,"show-clear-icon"],"showYearMonthDropdowns":[4,"show-year-month-dropdowns"],"disabled":[516],"timezone":[1],"isDateDisabled":[16],"isMobileDevice":[32],"isCalendarShow":[32],"doClose":[64],"doOpen":[64]}],[1,"vega-date-picker-calendar",{"size":[1],"mode":[1],"selection":[1025],"format":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"clearButton":[4,"clear-button"],"staticHeight":[4,"static-height"],"timezone":[1],"showYearMonthDropdowns":[4,"show-year-month-dropdowns"],"yearMonthDropdownProps":[16],"dualMonths":[4,"dual-months"],"isDateDisabled":[16],"dateIndicator":[16],"isMobileDevice":[32],"today":[32],"currentPeriod":[32],"hoverDate":[32],"calendarSelection":[32],"maxCalendarDate":[32],"minCalendarDate":[32],"isDualMonths":[32],"reset":[64],"triggerRepick":[64]}]]],["p-98a6cd8e",[[1,"vega-popover",{"size":[8],"placement":[1],"alignment":[1],"positionRelativeTo":[1,"position-relative-to"],"trigger":[1],"showArrow":[4,"show-arrow"],"isScreenPosition":[4,"is-screen-position"],"padding":[1],"isPopoverShow":[32],"show":[64],"hide":[64]}],[1,"vega-popover-content-box",{"showArrow":[4,"show-arrow"],"padding":[1]}]]],["p-0b5b0fd2",[[1,"vega-progress-tracker",{"current":[1026],"direction":[1],"steps":[16],"completedStepArray":[16],"completedSteps":[16],"canClickStep":[4,"can-click-step"],"allowNoCurrentStep":[4,"allow-no-current-step"],"currentSteps":[32],"currentDirection":[32],"nextStep":[64],"prevStep":[64],"setCurrent":[64],"getCurrent":[64]}],[1,"vega-progress-tracker-step",{"stepKey":[513,"step-key"],"clickable":[516],"progressStatus":[32],"isCurrent":[32]}]]],["p-79c12a64",[[1,"vega-selection-chip",{"label":[1],"size":[1],"variant":[1],"disabled":[1028],"checked":[1540],"block":[4],"disabledTooltip":[16],"swatchColor":[1,"swatch-color"],"value":[1],"showError":[32],"currentBreakpoint":[32],"selectType":[32]}],[1,"vega-selection-chip-group",{"label":[1],"hint":[1],"selectType":[1,"select-type"],"value":[1025],"required":[4],"disabled":[4],"validationRules":[16],"isValid":[1540,"is-valid"]}]]],["p-64b566be",[[1,"vega-selection-tile",{"titleText":[1,"title"],"note":[1],"prefixIcon":[1,"prefix-icon"],"disabled":[1028],"checked":[1028],"selectType":[1025,"select-type"],"value":[1],"showError":[32],"distributeEvenly":[32]}],[1,"vega-selection-tile-group",{"label":[1],"hint":[1],"distributeEvenly":[4,"distribute-evenly"],"selectType":[1,"select-type"],"value":[1025],"layout":[1],"required":[4],"disabled":[4],"validationRules":[16],"isValid":[1540,"is-valid"]}]]],["p-9f36abf9",[[1,"vega-tab-group",{"selectedTabDataTarget":[1025,"selected-tab-data-target"],"gap":[1],"showCloseButton":[4,"show-close-button"],"tabItems":[1040],"positionRelativeTo":[1,"position-relative-to"],"variant":[1],"overflow":[1],"tabPages":[32],"tabWidthArray":[32],"currentPageIndex":[32]}],[1,"vega-tab-group-panel",{"isActive":[4,"is-active"]}]]],["p-3e64fa38",[[1,"vega-time-picker",{"label":[1],"mode":[1],"required":[516],"placeholder":[1],"increments":[2],"timeFormat":[513,"time-format"],"value":[1537],"size":[1],"disabled":[516],"readOnly":[4,"read-only"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"positionRelativeTo":[1,"position-relative-to"],"dropdownSource":[32],"isDropdownShow":[32],"selectedTimeValue":[32]}],[1,"vega-time-picker-dropdown"]]],["p-606d7113",[[1,"vega-accordion",{"drawsBackground":[4,"draws-background"],"prefixIcon":[1,"prefix-icon"],"accordionTitle":[1,"accordion-title"],"expandIconAlign":[1,"expand-icon-align"],"expand":[1028],"iconPosition":[1,"icon-position"],"showExpandIcon":[4,"show-expand-icon"],"groupId":[1,"group-id"]}]]],["p-115d6053",[[1,"vega-app-footer",{"content":[1],"termOfUseLabel":[1,"term-of-use-label"],"termOfUseUrl":[1,"term-of-use-url"],"termOfUseUrlTarget":[1,"term-of-use-url-target"],"termOfUseUrlId":[1,"term-of-use-url-id"],"privacyPolicyLabel":[1,"privacy-policy-label"],"privacyPolicyUrl":[1,"privacy-policy-url"],"privacyPolicyUrlTarget":[1,"privacy-policy-url-target"],"privacyPolicyUrlId":[1,"privacy-policy-url-id"],"hideDefaultLinks":[4,"hide-default-links"],"additionalLinks":[16],"showDisclaimer":[4,"show-disclaimer"],"disclaimerUrlTarget":[1,"disclaimer-url-target"],"currentBranding":[32]}]]],["p-e7a4b760",[[1,"vega-backdrop",{"color":[1],"visible":[4],"duration":[2]}]]],["p-e47b2c4c",[[1,"vega-banner",{"type":[1],"bannerTitle":[1,"banner-title"],"content":[1],"actionButtons":[16],"showCloseButton":[4,"show-close-button"],"isOpen":[4,"is-open"],"doClose":[64]}]]],["p-1deedff2",[[1,"vega-bar-chart",{"options":[16]}]]],["p-264b3309",[[1,"vega-brand-logo",{"name":[1],"size":[1],"theme":[1],"isInDarkMode":[32]}]]],["p-a050c24d",[[1,"vega-breadcrumb",{"maxItems":[8,"max-items"],"items":[16],"compactOnMobile":[4,"compact-on-mobile"],"lastItemClickable":[4,"last-item-clickable"]}]]],["p-571a6d15",[[1,"vega-card",{"padding":[1],"margin":[1],"variant":[1],"backgroundColor":[1,"background-color"]}]]],["p-77754d62",[[1,"vega-code-block",{"readOnly":[4,"read-only"],"disabled":[4],"showCopyButton":[4,"show-copy-button"],"showLineNumber":[4,"show-line-number"],"value":[1040],"doFocus":[64]}]]],["p-c8fe46fd",[[1,"vega-color-swatch",{"color":[1],"selected":[1540],"label":[1],"size":[1],"disabled":[516],"variant":[1],"shape":[1]}]]],["p-ed26f4c8",[[1,"vega-color-swatch-picker",{"value":[1025],"label":[1],"disabled":[4],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"colors":[16],"swatchGridColumns":[8,"swatch-grid-columns"],"showInput":[4,"show-input"],"inputPlaceholder":[1,"input-placeholder"],"inputPrefixIcon":[1,"input-prefix-icon"],"showClearButton":[4,"show-clear-button"],"inputFormatter":[1,"input-formatter"],"internalColor":[32],"isPopoverOpen":[32]}]]],["p-4530f0e1",[[1,"vega-combo-box",{"label":[1],"required":[516],"source":[1040],"value":[1040],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"disabled":[516],"placeholder":[1],"hint":[1],"size":[1],"vegaDropdownProps":[16],"useDefaultFilter":[4,"use-default-filter"],"close":[64],"open":[64]}]]],["p-2c1a85dd",[[1,"vega-counter-badge",{"dot":[4],"color":[1],"count":[2],"offset":[16]}]]],["p-45aaaef6",[[1,"vega-divider",{"direction":[1],"variant":[1],"margin":[1],"currentBreakpoint":[32]}]]],["p-358b4a06",[[1,"vega-field-error",{"message":[1]}]]],["p-c51ebb14",[[1,"vega-file-uploader",{"label":[1],"variant":[1],"hint":[1],"value":[1040],"disabled":[4],"maxCount":[2,"max-count"],"required":[4],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"],"accept":[1]}]]],["p-0bb0b521",[[1,"vega-flag-icon",{"country":[1],"size":[1]}]]],["p-2fb26f4f",[[1,"vega-image-uploader",{"value":[1040],"accept":[1],"status":[1537],"showPreviewButton":[4,"show-preview-button"],"showRemoveButton":[4,"show-remove-button"],"showReplaceButton":[4,"show-replace-button"],"disabled":[516],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"label":[1],"hint":[1],"actionTitle":[1,"action-title"],"actionSubTitle":[1,"action-sub-title"],"width":[8],"height":[8],"isInDarkMode":[32],"getContentURL":[64]}]]],["p-73c6669e",[[1,"vega-input-numeric",{"prefixText":[1,"prefix-text"],"suffixText":[1,"suffix-text"],"prefixIcon":[1,"prefix-icon"],"value":[1025],"size":[1],"placeholder":[1],"thousandComma":[4,"thousand-comma"],"integerOnly":[4,"integer-only"],"disabled":[4],"minorIncrement":[2,"minor-increment"],"majorIncrement":[2,"major-increment"],"label":[1],"hint":[1],"required":[4],"validationRules":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"showClearIcon":[4,"show-clear-icon"],"min":[514],"max":[514],"isCompactInputWidth":[32]}]]],["p-bc74d7e7",[[1,"vega-input-passcode",{"label":[1],"disabled":[516],"size":[1],"hint":[1],"length":[2],"inputType":[1,"input-type"],"value":[1537],"required":[1540],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"],"vegaInputValues":[32]}]]],["p-9763fbbe",[[1,"vega-input-phone-number",{"label":[1],"size":[1],"required":[1540],"disabled":[516],"countryCode":[1537,"country-code"],"allowedCountryCodes":[16],"emptyValueEnabled":[4,"empty-value-enabled"],"value":[1537],"validationRules":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"placeholder":[1],"hint":[1],"phoneNumberInputValue":[32]}]]],["p-afd1b519",[[1,"vega-input-range",{"label":[1],"value":[1040],"prefixIcon":[513,"prefix-icon"],"showClearIcon":[4,"show-clear-icon"],"min":[514],"max":[514],"required":[1540],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"size":[1],"placeholder":[16],"disabled":[516],"hint":[1],"stack":[1]}]]],["p-d8180e42",[[1,"vega-line-chart",{"options":[16],"reRender":[64]}]]],["p-a46e977b",[[1,"vega-pie-chart",{"options":[16],"reRender":[64]}]]],["p-c15a58b5",[[1,"vega-rich-text-content",{"content":[1040],"extensions":[16],"placeholder":[32],"contentEditable":[32],"extensionStyles":[32],"isInDarkMode":[32],"vegaFocus":[64]}]]],["p-295326ca",[[1,"vega-section-title",{"titleText":[1,"title"],"description":[1],"icon":[1],"iconAlign":[1,"icon-align"],"iconColor":[1,"icon-color"],"size":[1]}]]],["p-411ea209",[[1,"vega-segment-control",{"block":[4],"size":[1],"segments":[16],"selected":[1025],"variant":[1],"isOverflowBlockSegments":[32]}]]],["p-d402eb7b",[[1,"vega-signature-capture",{"mode":[1],"label":[1],"required":[516],"showClearBtn":[4,"show-clear-btn"],"placeholder":[1],"placeholderIcon":[1,"placeholder-icon"],"disabled":[4],"value":[1040],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"height":[8],"currentBreakpoint":[32],"isDrawing":[32],"clear":[64]}]]],["p-0b4880bd",[[1,"vega-skeleton",{"type":[513],"width":[8],"height":[8],"animated":[4],"corners":[1]}]]],["p-51fcb07f",[[1,"vega-slot-container"]]],["p-bceee942",[[1,"vega-dialog",{"dialogTitle":[1,"dialog-title"],"content":[1],"type":[1],"okButton":[16],"handleOk":[16],"cancelButton":[16],"handleCancel":[16],"showCancel":[4,"show-cancel"],"modalProps":[16],"currentBreakpoint":[32]}],[1,"vega-modal",{"backdrop":[1],"size":[8],"height":[8],"open":[1028],"animation":[4],"modalTitle":[1,"modal-title"],"backdropColor":[1,"backdrop-color"],"isVerticallyCenter":[4,"is-vertically-center"],"isVerticallyCentered":[4,"is-vertically-centered"],"showCloseButton":[4,"show-close-button"],"padding":[1],"margin":[1],"contentMaxHeight":[8,"content-max-height"],"handleClose":[16],"currentBreakpoint":[32],"openState":[32],"sectionPaddingState":[32],"modal":[64]},[[10,"click","listenDataTarget"],[0,"click","listenDataDismiss"],[1,"mousedown","listenMouseDown"],[1,"mouseup","listenMouseUp"]]]]],["p-9f064488",[[1,"vega-font",{"variant":[1],"color":[1],"disableResponsive":[4,"disable-responsive"],"textAlign":[1,"text-align"],"as":[1],"currentBreakpoint":[32]}]]],["p-ecbb63a5",[[1,"vega-form",{"isValid":[1028,"is-valid"],"isTouched":[1028,"is-touched"],"disableBlurValidation":[1028,"disable-blur-validation"],"useNativeForm":[4,"use-native-form"],"action":[1],"method":[1],"valid":[64],"getValue":[64],"setValue":[64],"reset":[64],"setValidationStates":[64]}]]],["p-7702a906",[[1,"vega-grid",{"column":[8],"row":[8],"gap":[1],"justifyItems":[1,"justify-items"]}]]],["p-59c6dcf7",[[1,"vega-input-select",{"label":[1],"labelSuffixButtonConfig":[16],"required":[516],"selectedLabel":[16],"selectType":[1,"select-type"],"source":[1040],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[4,"auto-validation"],"validationRules":[16],"prefixIcon":[1,"prefix-icon"],"disabled":[516],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"selectedLabelTooltipProps":[16],"dropdownItemTooltipProps":[16],"size":[1],"sourceLazyLoadCallback":[16],"isDropdownShow":[32],"currentBreakpoint":[32],"isLazyLoading":[32],"selectedItem":[32],"doClose":[64],"doOpen":[64],"doChange":[64]}]]],["p-da8bb883",[[1,"vega-pagination-page-selector-mobile",{"type":[1],"pageCount":[2,"page-count"],"current":[1538],"total":[2]}]]],["p-6fadee27",[[1,"vega-pagination-page-size-selector-mobile",{"type":[1],"pageSize":[1026,"page-size"],"pageSizeSelectorOptions":[1040],"total":[2],"current":[1538],"dropdownProps":[16],"isAllActive":[4,"is-all-active"]}]]],["p-a9528dbd",[[1,"vega-sidenav",{"source":[16],"footnote":[1],"headerConfig":[16],"openByDefault":[1,"open-by-default"],"openState":[32],"toggle":[64]},[[10,"click","collapseSidenavByBackDropClick"]]],[1,"vega-sidenav-group",{"icon":[1],"label":[1],"openState":[32]}],[1,"vega-sidenav-link",{"icon":[1],"selected":[1540],"url":[1],"showSideBarOnClickLink":[4,"show-side-bar-on-click-link"],"openState":[32]}]]],["p-9e2b7718",[[1,"vega-button",{"size":[1],"variant":[1],"icon":[1],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"block":[4],"type":[1],"loading":[4],"currentBreakpoint":[32]}]]],["p-d10ae46a",[[1,"vega-box",{"padding":[1],"margin":[1],"display":[1],"border":[1],"borderStyle":[1,"border-style"],"shadow":[1],"borderColor":[1,"border-color"],"backgroundColor":[1,"background-color"],"width":[8],"height":[8],"minHeight":[8,"min-height"],"maxHeight":[8,"max-height"],"responsiveClass":[1,"responsive-class"],"corners":[1],"flexBasis":[1,"flex-basis"],"flexGrow":[8,"flex-grow"],"flexShrink":[8,"flex-shrink"],"order":[8],"flex":[8],"alignSelf":[1,"align-self"],"justifySelf":[1,"justify-self"],"gridColumn":[8,"grid-column"],"gridRow":[8,"grid-row"],"gridArea":[8,"grid-area"],"currentBreakpoint":[32]}]]],["p-cf2838c7",[[1,"vega-tooltip-content-box",{"text":[1]}],[1,"vega-tooltip",{"size":[8],"minWidth":[8,"min-width"],"maxWidth":[8,"max-width"],"trigger":[1],"content":[1],"text":[1],"placement":[1],"alignment":[1],"positionRelativeTo":[1,"position-relative-to"],"disableInteractive":[4,"disable-interactive"],"isTooltipShow":[32]}]]],["p-78099a83",[[1,"vega-icon",{"icon":[513],"size":[1],"color":[1]}]]],["p-9eb00537",[[1,"vega-button-circle",{"size":[1],"variant":[1],"icon":[513],"label":[513],"disabled":[4],"danger":[4],"type":[1],"iconColor":[1,"icon-color"],"showTooltip":[4,"show-tooltip"],"tooltip":[16]}]]],["p-423762ae",[[1,"vega-input",{"label":[513],"labelSuffixButtonProps":[16],"labelSuffixButtonConfig":[16],"value":[1537],"valueUpdateTrigger":[1,"value-update-trigger"],"type":[513],"name":[1],"autocomplete":[1],"inputmode":[1],"enterkeyhint":[1],"readOnly":[4,"read-only"],"prefixIcon":[513,"prefix-icon"],"email":[516],"required":[1540],"min":[514],"max":[514],"minLength":[514,"min-length"],"maxLength":[514,"max-length"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"size":[1],"placeholder":[1],"disabled":[516],"hint":[1],"maskConfig":[16],"disableCopyPaste":[4,"disable-copy-paste"],"suggestionsDropdownSource":[16],"prefixText":[32],"suffixText":[32],"isCompactInputWidth":[32],"isPasswordDisplay":[32],"suggestionsDropdownConfig":[32],"doFocus":[64],"doBlur":[64],"showSuggestionsDropdown":[64],"hideSuggestionsDropdown":[64]}]]],["p-c601b331",[[1,"vega-field-label",{"suffixButtonProps":[16],"suffixButtonConfig":[16],"label":[1025],"isFieldRequired":[4,"is-field-required"],"disabled":[4]}]]],["p-82039afd",[[1,"vega-text",{"overflow":[1],"tooltip":[16]}]]],["p-9297f4a9",[[1,"vega-flex",{"gap":[1],"margin":[1],"breakpoint":[1],"direction":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"flexWrap":[1,"flex-wrap"],"flex":[8],"flexBasis":[1,"flex-basis"],"flexGrow":[8,"flex-grow"],"flexShrink":[8,"flex-shrink"],"useNativeFlex":[4,"use-native-flex"],"currentBreakpoint":[32]}]]]]'),e))));
1
+ import{p as e,b as i}from"./p-6b2342e0.js";import{g as a}from"./p-d4e519a0.js";import"./p-18e8d9b7.js";import"./p-6e1ab235.js";import"./p-5a25014f.js";import"./p-818da356.js";import"./p-8b5d3a52.js";import"./p-6e70d3cc.js";import"./p-593e0f80.js";import"./p-6a334573.js";import"./p-781fd6e0.js";import"./p-262ec334.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-b75ee3ba.js";import"./p-f1c672e4.js";import"./p-9af0e2e7.js";import"./p-3b791b5d.js";import"./p-2d0d575f.js";import"./p-a528714c.js";import"./p-f5f5a0d9.js";import"./p-84eb3b9c.js";import"./p-f28a6074.js";import"./p-331a62d5.js";import"./p-6c43d54a.js";import"./p-02841589.js";import"./p-e4c4ea35.js";import"./p-d884c644.js";import"./p-8aee6b74.js";import"./p-fb5ea4b2.js";import"./p-4866e390.js";import"./p-f0e828d8.js";import"./p-a841cf13.js";import"./p-b6c3ce6d.js";import"./p-a7b5f497.js";import"./p-e1fbfd20.js";import"./p-e6adf829.js";import"./p-51b2b3de.js";import"./p-77e64f26.js";import"./p-0c667d6a.js";import"./p-1bc5b3bc.js";import"./p-c801c85d.js";import"./p-5bf3ab33.js";import"./p-abd7aeaa.js";import"./p-5f377954.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>(a(),i(JSON.parse('[["p-f604f2c9",[[1,"vega-pagination",{"current":[1538],"total":[2],"pageSize":[1026,"page-size"],"extensions":[16],"layout":[1],"pageSizeSelectorOptions":[1040],"dropdownProps":[16],"currentBreakpoint":[32],"pageCount":[32],"isAllActive":[32]}]]],["p-35d77c9c",[[1,"vega-page-notification",{"notificationTitle":[1,"title"],"message":[1],"type":[1],"duration":[2],"showCloseButton":[4,"show-close-button"],"actionButtons":[16],"close":[64]}],[1,"vega-page-notification-list"]]],["p-c2388937",[[1,"vega-color-picker",{"value":[1537],"hint":[1],"disabled":[516],"required":[516],"label":[1],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"colors":[16],"isInline":[4,"is-inline"],"columns":[2]}]]],["p-d37636a5",[[1,"vega-stepper",{"stepperId":[513,"id"],"max":[514],"min":[514],"value":[1538],"label":[1],"inputDisabled":[4,"input-disabled"],"disabled":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"buttonVariant":[1,"button-variant"]}]]],["p-23b38467",[[1,"vega-app-header-button",{"dropdown":[16],"size":[1],"labelConfig":[16],"label":[513],"showLabel":[4,"show-label"],"avatar":[16],"avatarPosition":[1,"avatar-position"],"showBorder":[4,"show-border"],"showMenuArrowIcon":[4,"show-menu-arrow-icon"],"selected":[4],"isDropdownShow":[32],"currentBreakpoint":[32]}]]],["p-4afafeb3",[[1,"vega-button-link",{"link":[1],"size":[1],"icon":[513],"iconType":[1,"icon-type"],"iconAlign":[1,"icon-align"],"label":[1537],"disabled":[4],"danger":[4],"eventful":[4],"target":[1]}]]],["p-effb285f",[[1,"vega-chip",{"text":[1],"clickable":[4],"variant":[1],"size":[1],"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"statusColor":[1,"status-color"],"chipType":[1,"chip-type"],"showCloseIcon":[4,"show-close-icon"],"icon":[1],"iconAlign":[1,"icon-align"],"iconColor":[1,"icon-color"],"currentBreakpoint":[32],"currentSize":[32]}]]],["p-a49c25c2",[[1,"vega-item-toggle",{"itemToggleStatusMap":[16],"statusMap":[16],"isToggled":[1028,"is-toggled"],"toggleItemStatus":[32]}]]],["p-dffbbc3d",[[1,"vega-checkbox",{"identifier":[1],"value":[1032],"checked":[1028],"indeterminate":[1540],"disabled":[516],"size":[1],"required":[516],"isValid":[1540,"is-valid"],"groupDisabled":[32],"showError":[32],"setValue":[64]}],[1,"vega-checkbox-group",{"label":[1],"value":[1040],"vegaFlexProp":[16],"disabled":[516],"required":[516],"hint":[1],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16]}]]],["p-7f46cc1e",[[1,"vega-hint"]]],["p-69c11b7b",[[1,"vega-textarea",{"placeholder":[1],"hint":[1],"disabled":[516],"label":[1],"labelSuffixButtonConfig":[16],"showCounter":[4,"show-counter"],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"required":[1540],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"resizable":[4],"rows":[2],"validationRules":[16],"currentCharCount":[32]},[[0,"input","handleValueTextarea"]]]]],["p-9fc8bd1f",[[1,"vega-toggle-switch",{"checked":[1540],"value":[1540],"size":[1],"label":[1],"required":[516],"disabled":[516],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"]}]]],["p-3c456e91",[[1,"vega-button-group",{"variant":[1],"size":[1],"iconAlign":[1,"icon-align"],"disabled":[4],"allItemsDisabled":[32]}],[1,"vega-button-group-item",{"icon":[1],"label":[1],"iconOnly":[4,"icon-only"],"disabled":[516],"itemKey":[1,"item-key"],"dropdownProps":[16],"dropdownSource":[16],"variant":[32],"size":[32],"iconAlign":[32],"parentDisabled":[32],"allItemsDisabled":[32]}]]],["p-096d186d",[[1,"vega-loading-indicator",{"shape":[1],"size":[1],"mode":[1],"percent":[2],"label":[1],"hint":[1],"status":[1],"currentBreakpoint":[32]}],[1,"vega-loader-wrapper"]]],["p-fa91805b",[[1,"vega-radio-group",{"label":[1],"value":[1537],"name":[1],"vegaFlexProp":[16],"required":[516],"hint":[1],"isValid":[1540,"is-valid"],"disabled":[516],"autoValidation":[516,"auto-validation"],"validationRules":[16]}],[1,"vega-radio",{"value":[1],"name":[1],"checked":[1028],"disabled":[4],"size":[1],"groupDisabled":[32],"showError":[32]}]]],["p-25572ea7",[[1,"vega-carousel",{"perPage":[2,"per-page"],"itemsPerPage":[2,"items-per-page"],"showSlider":[4,"show-slider"],"spacing":[1],"canSwipe":[4,"can-swipe"],"page":[32],"totalPages":[32],"nextPage":[64],"prevPage":[64],"goToPage":[64]}]]],["p-3d92d2af",[[1,"vega-input-credit-card",{"required":[1540],"disabled":[516],"label":[1],"hint":[1],"size":[1],"placeholder":[1],"hideCardNumberOnBlur":[4,"hide-card-number-on-blur"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"isValid":[1540,"is-valid"],"value":[1537]}]]],["p-13e7f906",[[1,"vega-table",{"columns":[16],"groupColumns":[16],"dataSource":[1040],"rowSelection":[1040],"rowExpandable":[4,"row-expandable"],"rowClickable":[4,"row-clickable"],"rowDraggable":[4,"row-draggable"],"rowDivider":[4,"row-divider"],"columnDivider":[4,"column-divider"],"striped":[4],"density":[1],"paddingX":[16],"showHeader":[4,"show-header"],"pagination":[16],"emptyDescription":[1,"empty-description"],"rowKey":[1,"row-key"],"scrollConfig":[16],"sortConfig":[16],"selectedRowKeySet":[32],"expandedRowKeySet":[32],"currentBreakpoint":[32],"sortersMap":[32],"currentData":[32],"currentClickedRowKey":[32],"currentPage":[32],"pageSize":[32],"editingRows":[32],"isSelectedAll":[32],"isTemplateRenderMode":[32],"columnStructureModel":[32],"expandableRows":[32],"hasExpandableRow":[32],"openExpandRow":[64],"closeExpandRow":[64],"closeAllExpandRow":[64],"toggleExpandRow":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64],"startRowEditMode":[64],"stopRowEditMode":[64],"stopAllRowEditMode":[64],"getRowData":[64],"getRowsData":[64],"getFormRef":[64],"addNewRow":[64],"saveEditRow":[64],"saveAllEditRows":[64],"getEditingRowsKey":[64],"removeRow":[64]}],[1,"vega-table-body"],[1,"vega-table-cell",{"textAlign":[1,"text-align"],"breakpoint":[1],"overflow":[1],"width":[1],"currentBreakpoint":[32],"density":[32],"rowDivider":[32],"columnDivider":[32],"clickable":[32],"checked":[32],"striped":[32],"expanded":[32],"renderInput":[32]}],[1,"vega-table-expand-row",{"rowKey":[1,"row-key"],"striped":[4],"currentBreakpoint":[32],"withMultipleSelection":[32],"withRowDraggable":[32],"expanded":[32],"checked":[32],"colSpan":[32]}],[1,"vega-table-foot",{"fixed":[32],"rowDivider":[32]}],[1,"vega-table-foot-cell",{"breakpoint":[1],"textAlign":[1,"text-align"],"width":[1],"currentBreakpoint":[32],"density":[32],"columnDivider":[32]}],[1,"vega-table-foot-row",{"currentBreakpoint":[32],"hasExpandableRow":[32],"selectionType":[32],"paddingX":[32],"columnDivider":[32],"draggable":[32],"density":[32]}],[1,"vega-table-head",{"fixed":[32]}],[1,"vega-table-head-cell",{"breakpoint":[1],"sorter":[1],"sortOrder":[1025,"sort-order"],"textAlign":[1,"text-align"],"width":[1],"sortConfig":[16],"pinned":[1],"currentBreakpoint":[32],"density":[32],"columnDivider":[32],"renderInput":[32]}],[1,"vega-table-head-row",{"selectAllDisabled":[4,"select-all-disabled"],"hideSelectAll":[4,"hide-select-all"],"currentBreakpoint":[32],"hasExpandableRow":[32],"selectionType":[32],"paddingX":[32],"checkedAll":[32],"columnDivider":[32],"density":[32],"isEmptyTable":[32],"isTemplateRenderMode":[32],"renderInput":[32],"draggable":[32]}],[1,"vega-table-row",{"rowKey":[1,"row-key"],"striped":[4],"rowDivider":[4,"row-divider"],"currentBreakpoint":[32],"clicked":[32],"hasExpandableRow":[32],"expandable":[32],"clickable":[32],"paddingX":[32],"selectionType":[32],"checked":[32],"expanded":[32],"columnDivider":[32],"density":[32],"draggable":[32]}]]],["p-7f74cd41",[[1,"vega-dropdown",{"size":[8],"trigger":[1],"translocation":[16],"source":[1040],"positionRelativeTo":[1,"position-relative-to"],"selectType":[1,"select-type"],"selectedSourceKey":[1025,"selected-source-key"],"prefixIconSlot":[4,"prefix-icon-slot"],"maxHeight":[2,"max-height"],"searchable":[4],"matchTargetWidth":[4,"match-target-width"],"minWidth":[8,"min-width"],"maxWidth":[8,"max-width"],"itemDisplayRule":[1,"item-display-rule"],"itemTooltipProps":[16],"matchContainerHeight":[4,"match-container-height"],"caseSensitive":[4,"case-sensitive"],"dynamicOption":[4,"dynamic-option"],"useDefaultFilter":[4,"use-default-filter"],"isLoading":[4,"is-loading"],"placement":[1],"alignment":[1],"isLazyLoading":[4,"is-lazy-loading"],"searchTriggerBy":[1,"search-trigger-by"],"isScreenPosition":[4,"is-screen-position"],"resettable":[4],"virtualizationThreshold":[2,"virtualization-threshold"],"preserveValueIfNotInSource":[4,"preserve-value-if-not-in-source"],"searchNoResultsText":[1,"search-no-results-text"],"searchString":[32],"isDropdownShow":[32],"sourceForRender":[32],"show":[64],"hide":[64],"search":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64]}],[1,"vega-dropdown-content-box"],[1,"vega-dropdown-group",{"label":[1],"divide":[4]}],[1,"vega-dropdown-item",{"label":[1],"itemKey":[513,"item-key"],"count":[2],"prefixIcon":[1,"prefix-icon"],"disabled":[4],"height":[2],"danger":[4],"selectType":[32],"prefixIconSlot":[32],"selected":[32],"itemDisplayRule":[32],"itemTooltipProps":[32]}],[1,"vega-virtual-scroll",{"source":[16],"approxItemHeight":[2,"approx-item-height"],"viewportMaxHeight":[2,"viewport-max-height"],"isLoading":[4,"is-loading"],"virtualizationThreshold":[2,"virtualization-threshold"],"sourceItemIdentifier":[1,"source-item-identifier"],"renderItem":[16],"positionConfig":[32],"scrollTop":[32],"scrollToIndex":[64]}]]],["p-5087fa1e",[[1,"vega-left-nav",{"open":[1028],"headerConfig":[16],"source":[16],"footnote":[1],"showAsOverlay":[4,"show-as-overlay"],"autoCollapseOnOverlay":[4,"auto-collapse-on-overlay"],"autoCollapseGroups":[8,"auto-collapse-groups"],"currentBranding":[32],"openState":[32],"toggle":[64]}],[1,"vega-left-nav-group",{"icon":[1],"label":[1],"openByDefault":[4,"open-by-default"],"itemKey":[1,"item-key"],"autoCollapseGroups":[32]}],[1,"vega-left-nav-link",{"icon":[1],"selected":[1540],"customSelectionEnabled":[4,"custom-selection-enabled"],"url":[1],"counterBadge":[16],"itemKey":[1,"item-key"],"target":[1]}],[1,"vega-left-nav-section",{"sectionHeader":[16],"itemKey":[1,"item-key"]}],[1,"vega-nav-card",{"source":[16],"maxHeight":[520,"max-height"],"currentMaxHeight":[32]}]]],["p-af00e6e2",[[1,"vega-calendar",{"viewMode":[1025,"view-mode"],"events":[16],"timeFormat":[1,"time-format"],"isDateDisabled":[16],"moreActionDropdownProps":[16],"showEventColorBar":[4,"show-event-color-bar"],"showSwitchView":[4,"show-switch-view"],"enableDateClick":[4,"enable-date-click"],"showWeekends":[4,"show-weekends"],"enabledEventPreview":[4,"enabled-event-preview"],"timezone":[1],"calendarView":[32],"currentPeriod":[32],"postOperationDate":[32],"showAllEventsInDayOrWeekView":[32],"calendarEvents":[32]}],[1,"vega-calendar-event",{"calendarEvent":[16],"timeFormat":[32],"slotMode":[32],"showColorBar":[32]}],[1,"vega-calendar-event-preview",{"previewPayload":[32],"currentEvent":[32]}],[1,"vega-calendar-event-slot",{"eventKey":[513,"event-key"]}]]],["p-aaf44879",[[1,"vega-rich-text-editor",{"label":[1],"required":[516],"placeholder":[1],"disabled":[4],"hint":[1],"rows":[2],"value":[1040],"toolbarItems":[16],"allowSourceEdit":[4,"allow-source-edit"],"sourceEditConfig":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"textStyleItems":[16],"extensions":[16],"richTextContentEditable":[32],"selectionMap":[32],"isInDarkMode":[32],"sourceView":[32]}],[1,"vega-rich-text-editor-toolbar-button",{"disabled":[4],"hidden":[4],"selected":[4],"showArrowIcon":[4,"show-arrow-icon"],"icon":[1],"iconColor":[1,"icon-color"]}],[1,"vega-rich-text-image-editor",{"alt":[513],"size":[1537],"currentPage":[32],"selected":[32]}],[1,"vega-rich-text-link-editor",{"status":[1025],"record":[16],"resetStatusAfterHide":[4,"reset-status-after-hide"],"target":[16],"show":[64]}]]],["p-3d0ba2c6",[[1,"vega-rich-text-table-properties",{"defaultValue":[16],"styleMap":[16],"type":[513],"colors":[16],"isInDarkMode":[32]}],[1,"vega-rich-text-table-selection-widget",{"isSelected":[32]}],[1,"vega-rich-text-table-setting",{"hasCaption":[4,"has-caption"],"selectedCells":[1040],"target":[16],"isColumnDropdownOpen":[32],"isMergeCellsDropdownOpen":[32]}]]],["p-268e84e0",[[1,"vega-date-picker",{"mode":[1],"value":[1537],"label":[1],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"format":[1],"size":[1],"validationRules":[16],"minDate":[1537,"min-date"],"maxDate":[1537,"max-date"],"placeholder":[1],"clearButton":[4,"clear-button"],"readOnly":[4,"read-only"],"allowRepick":[4,"allow-repick"],"dropdownConfig":[16],"showClearIcon":[4,"show-clear-icon"],"showYearMonthDropdowns":[4,"show-year-month-dropdowns"],"disabled":[516],"timezone":[1],"isDateDisabled":[16],"isMobileDevice":[32],"isCalendarShow":[32],"doClose":[64],"doOpen":[64]}],[1,"vega-date-picker-calendar",{"size":[1],"fillContainer":[4,"fill-container"],"mode":[1],"selection":[1025],"format":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"clearButton":[4,"clear-button"],"staticHeight":[4,"static-height"],"timezone":[1],"showYearMonthDropdowns":[4,"show-year-month-dropdowns"],"yearMonthDropdownProps":[16],"dualMonths":[4,"dual-months"],"isDateDisabled":[16],"dateIndicator":[16],"isMobileDevice":[32],"today":[32],"currentPeriod":[32],"hoverDate":[32],"calendarSelection":[32],"maxCalendarDate":[32],"minCalendarDate":[32],"isDualMonths":[32],"reset":[64],"triggerRepick":[64]}]]],["p-98a6cd8e",[[1,"vega-popover",{"size":[8],"placement":[1],"alignment":[1],"positionRelativeTo":[1,"position-relative-to"],"trigger":[1],"showArrow":[4,"show-arrow"],"isScreenPosition":[4,"is-screen-position"],"padding":[1],"isPopoverShow":[32],"show":[64],"hide":[64]}],[1,"vega-popover-content-box",{"showArrow":[4,"show-arrow"],"padding":[1]}]]],["p-0b5b0fd2",[[1,"vega-progress-tracker",{"current":[1026],"direction":[1],"steps":[16],"completedStepArray":[16],"completedSteps":[16],"canClickStep":[4,"can-click-step"],"allowNoCurrentStep":[4,"allow-no-current-step"],"currentSteps":[32],"currentDirection":[32],"nextStep":[64],"prevStep":[64],"setCurrent":[64],"getCurrent":[64]}],[1,"vega-progress-tracker-step",{"stepKey":[513,"step-key"],"clickable":[516],"progressStatus":[32],"isCurrent":[32]}]]],["p-79c12a64",[[1,"vega-selection-chip",{"label":[1],"size":[1],"variant":[1],"disabled":[1028],"checked":[1540],"block":[4],"disabledTooltip":[16],"swatchColor":[1,"swatch-color"],"value":[1],"showError":[32],"currentBreakpoint":[32],"selectType":[32]}],[1,"vega-selection-chip-group",{"label":[1],"hint":[1],"selectType":[1,"select-type"],"value":[1025],"required":[4],"disabled":[4],"validationRules":[16],"isValid":[1540,"is-valid"]}]]],["p-ce61d23f",[[1,"vega-selection-tile",{"titleText":[1,"title"],"note":[1],"prefixIcon":[1,"prefix-icon"],"disabled":[1028],"checked":[1028],"selectType":[1025,"select-type"],"value":[1],"showError":[32],"distributeEvenly":[32]}],[1,"vega-selection-tile-group",{"label":[1],"hint":[1],"distributeEvenly":[4,"distribute-evenly"],"selectType":[1,"select-type"],"value":[1025],"layout":[1],"required":[4],"disabled":[4],"validationRules":[16],"isValid":[1540,"is-valid"]}]]],["p-9f36abf9",[[1,"vega-tab-group",{"selectedTabDataTarget":[1025,"selected-tab-data-target"],"gap":[1],"showCloseButton":[4,"show-close-button"],"tabItems":[1040],"positionRelativeTo":[1,"position-relative-to"],"variant":[1],"overflow":[1],"tabPages":[32],"tabWidthArray":[32],"currentPageIndex":[32]}],[1,"vega-tab-group-panel",{"isActive":[4,"is-active"]}]]],["p-3e64fa38",[[1,"vega-time-picker",{"label":[1],"mode":[1],"required":[516],"placeholder":[1],"increments":[2],"timeFormat":[513,"time-format"],"value":[1537],"size":[1],"disabled":[516],"readOnly":[4,"read-only"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"positionRelativeTo":[1,"position-relative-to"],"dropdownSource":[32],"isDropdownShow":[32],"selectedTimeValue":[32]}],[1,"vega-time-picker-dropdown"]]],["p-606d7113",[[1,"vega-accordion",{"drawsBackground":[4,"draws-background"],"prefixIcon":[1,"prefix-icon"],"accordionTitle":[1,"accordion-title"],"expandIconAlign":[1,"expand-icon-align"],"expand":[1028],"iconPosition":[1,"icon-position"],"showExpandIcon":[4,"show-expand-icon"],"groupId":[1,"group-id"]}]]],["p-115d6053",[[1,"vega-app-footer",{"content":[1],"termOfUseLabel":[1,"term-of-use-label"],"termOfUseUrl":[1,"term-of-use-url"],"termOfUseUrlTarget":[1,"term-of-use-url-target"],"termOfUseUrlId":[1,"term-of-use-url-id"],"privacyPolicyLabel":[1,"privacy-policy-label"],"privacyPolicyUrl":[1,"privacy-policy-url"],"privacyPolicyUrlTarget":[1,"privacy-policy-url-target"],"privacyPolicyUrlId":[1,"privacy-policy-url-id"],"hideDefaultLinks":[4,"hide-default-links"],"additionalLinks":[16],"showDisclaimer":[4,"show-disclaimer"],"disclaimerUrlTarget":[1,"disclaimer-url-target"],"currentBranding":[32]}]]],["p-e7a4b760",[[1,"vega-backdrop",{"color":[1],"visible":[4],"duration":[2]}]]],["p-e47b2c4c",[[1,"vega-banner",{"type":[1],"bannerTitle":[1,"banner-title"],"content":[1],"actionButtons":[16],"showCloseButton":[4,"show-close-button"],"isOpen":[4,"is-open"],"doClose":[64]}]]],["p-1deedff2",[[1,"vega-bar-chart",{"options":[16]}]]],["p-264b3309",[[1,"vega-brand-logo",{"name":[1],"size":[1],"theme":[1],"isInDarkMode":[32]}]]],["p-a050c24d",[[1,"vega-breadcrumb",{"maxItems":[8,"max-items"],"items":[16],"compactOnMobile":[4,"compact-on-mobile"],"lastItemClickable":[4,"last-item-clickable"]}]]],["p-571a6d15",[[1,"vega-card",{"padding":[1],"margin":[1],"variant":[1],"backgroundColor":[1,"background-color"]}]]],["p-e95cb28f",[[1,"vega-code-block",{"readOnly":[4,"read-only"],"disabled":[4],"showCopyButton":[4,"show-copy-button"],"showLineNumber":[4,"show-line-number"],"value":[1040],"doFocus":[64]}]]],["p-c8fe46fd",[[1,"vega-color-swatch",{"color":[1],"selected":[1540],"label":[1],"size":[1],"disabled":[516],"variant":[1],"shape":[1]}]]],["p-ed26f4c8",[[1,"vega-color-swatch-picker",{"value":[1025],"label":[1],"disabled":[4],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"colors":[16],"swatchGridColumns":[8,"swatch-grid-columns"],"showInput":[4,"show-input"],"inputPlaceholder":[1,"input-placeholder"],"inputPrefixIcon":[1,"input-prefix-icon"],"showClearButton":[4,"show-clear-button"],"inputFormatter":[1,"input-formatter"],"internalColor":[32],"isPopoverOpen":[32]}]]],["p-4530f0e1",[[1,"vega-combo-box",{"label":[1],"required":[516],"source":[1040],"value":[1040],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"disabled":[516],"placeholder":[1],"hint":[1],"size":[1],"vegaDropdownProps":[16],"useDefaultFilter":[4,"use-default-filter"],"close":[64],"open":[64]}]]],["p-2c1a85dd",[[1,"vega-counter-badge",{"dot":[4],"color":[1],"count":[2],"offset":[16]}]]],["p-45aaaef6",[[1,"vega-divider",{"direction":[1],"variant":[1],"margin":[1],"currentBreakpoint":[32]}]]],["p-358b4a06",[[1,"vega-field-error",{"message":[1]}]]],["p-c51ebb14",[[1,"vega-file-uploader",{"label":[1],"variant":[1],"hint":[1],"value":[1040],"disabled":[4],"maxCount":[2,"max-count"],"required":[4],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"],"accept":[1]}]]],["p-0bb0b521",[[1,"vega-flag-icon",{"country":[1],"size":[1]}]]],["p-2fb26f4f",[[1,"vega-image-uploader",{"value":[1040],"accept":[1],"status":[1537],"showPreviewButton":[4,"show-preview-button"],"showRemoveButton":[4,"show-remove-button"],"showReplaceButton":[4,"show-replace-button"],"disabled":[516],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"label":[1],"hint":[1],"actionTitle":[1,"action-title"],"actionSubTitle":[1,"action-sub-title"],"width":[8],"height":[8],"isInDarkMode":[32],"getContentURL":[64]}]]],["p-73c6669e",[[1,"vega-input-numeric",{"prefixText":[1,"prefix-text"],"suffixText":[1,"suffix-text"],"prefixIcon":[1,"prefix-icon"],"value":[1025],"size":[1],"placeholder":[1],"thousandComma":[4,"thousand-comma"],"integerOnly":[4,"integer-only"],"disabled":[4],"minorIncrement":[2,"minor-increment"],"majorIncrement":[2,"major-increment"],"label":[1],"hint":[1],"required":[4],"validationRules":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"showClearIcon":[4,"show-clear-icon"],"min":[514],"max":[514],"isCompactInputWidth":[32]}]]],["p-bc74d7e7",[[1,"vega-input-passcode",{"label":[1],"disabled":[516],"size":[1],"hint":[1],"length":[2],"inputType":[1,"input-type"],"value":[1537],"required":[1540],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"],"vegaInputValues":[32]}]]],["p-a9f34735",[[1,"vega-input-phone-number",{"label":[1],"size":[1],"required":[1540],"disabled":[516],"countryCode":[1537,"country-code"],"allowedCountryCodes":[16],"emptyValueEnabled":[4,"empty-value-enabled"],"value":[1537],"validationRules":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"placeholder":[1],"hint":[1],"phoneNumberInputValue":[32]}]]],["p-afd1b519",[[1,"vega-input-range",{"label":[1],"value":[1040],"prefixIcon":[513,"prefix-icon"],"showClearIcon":[4,"show-clear-icon"],"min":[514],"max":[514],"required":[1540],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"size":[1],"placeholder":[16],"disabled":[516],"hint":[1],"stack":[1]}]]],["p-d8180e42",[[1,"vega-line-chart",{"options":[16],"reRender":[64]}]]],["p-a46e977b",[[1,"vega-pie-chart",{"options":[16],"reRender":[64]}]]],["p-4c90d013",[[1,"vega-rich-text-content",{"content":[1040],"extensions":[16],"placeholder":[32],"contentEditable":[32],"extensionStyles":[32],"isInDarkMode":[32],"vegaFocus":[64]}]]],["p-295326ca",[[1,"vega-section-title",{"titleText":[1,"title"],"description":[1],"icon":[1],"iconAlign":[1,"icon-align"],"iconColor":[1,"icon-color"],"size":[1]}]]],["p-411ea209",[[1,"vega-segment-control",{"block":[4],"size":[1],"segments":[16],"selected":[1025],"variant":[1],"isOverflowBlockSegments":[32]}]]],["p-d402eb7b",[[1,"vega-signature-capture",{"mode":[1],"label":[1],"required":[516],"showClearBtn":[4,"show-clear-btn"],"placeholder":[1],"placeholderIcon":[1,"placeholder-icon"],"disabled":[4],"value":[1040],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"height":[8],"currentBreakpoint":[32],"isDrawing":[32],"clear":[64]}]]],["p-0b4880bd",[[1,"vega-skeleton",{"type":[513],"width":[8],"height":[8],"animated":[4],"corners":[1]}]]],["p-51fcb07f",[[1,"vega-slot-container"]]],["p-2edc066c",[[1,"vega-dialog",{"dialogTitle":[1,"dialog-title"],"content":[1],"type":[1],"okButton":[16],"handleOk":[16],"cancelButton":[16],"handleCancel":[16],"showCancel":[4,"show-cancel"],"modalProps":[16],"currentBreakpoint":[32]}],[1,"vega-modal",{"backdrop":[1],"size":[8],"height":[8],"open":[1028],"animation":[4],"modalTitle":[1,"modal-title"],"backdropColor":[1,"backdrop-color"],"isVerticallyCenter":[4,"is-vertically-center"],"isVerticallyCentered":[4,"is-vertically-centered"],"showCloseButton":[4,"show-close-button"],"padding":[1],"margin":[1],"contentMaxHeight":[8,"content-max-height"],"handleClose":[16],"currentBreakpoint":[32],"openState":[32],"sectionPaddingState":[32],"modal":[64]},[[10,"click","listenDataTarget"],[0,"click","listenDataDismiss"],[1,"mousedown","listenMouseDown"],[1,"mouseup","listenMouseUp"]]]]],["p-9f064488",[[1,"vega-font",{"variant":[1],"color":[1],"disableResponsive":[4,"disable-responsive"],"textAlign":[1,"text-align"],"as":[1],"currentBreakpoint":[32]}]]],["p-ecbb63a5",[[1,"vega-form",{"isValid":[1028,"is-valid"],"isTouched":[1028,"is-touched"],"disableBlurValidation":[1028,"disable-blur-validation"],"useNativeForm":[4,"use-native-form"],"action":[1],"method":[1],"valid":[64],"getValue":[64],"setValue":[64],"reset":[64],"setValidationStates":[64]}]]],["p-7702a906",[[1,"vega-grid",{"column":[8],"row":[8],"gap":[1],"justifyItems":[1,"justify-items"]}]]],["p-59c6dcf7",[[1,"vega-input-select",{"label":[1],"labelSuffixButtonConfig":[16],"required":[516],"selectedLabel":[16],"selectType":[1,"select-type"],"source":[1040],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[4,"auto-validation"],"validationRules":[16],"prefixIcon":[1,"prefix-icon"],"disabled":[516],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"selectedLabelTooltipProps":[16],"dropdownItemTooltipProps":[16],"size":[1],"sourceLazyLoadCallback":[16],"isDropdownShow":[32],"currentBreakpoint":[32],"isLazyLoading":[32],"selectedItem":[32],"doClose":[64],"doOpen":[64],"doChange":[64]}]]],["p-da8bb883",[[1,"vega-pagination-page-selector-mobile",{"type":[1],"pageCount":[2,"page-count"],"current":[1538],"total":[2]}]]],["p-6fadee27",[[1,"vega-pagination-page-size-selector-mobile",{"type":[1],"pageSize":[1026,"page-size"],"pageSizeSelectorOptions":[1040],"total":[2],"current":[1538],"dropdownProps":[16],"isAllActive":[4,"is-all-active"]}]]],["p-a9528dbd",[[1,"vega-sidenav",{"source":[16],"footnote":[1],"headerConfig":[16],"openByDefault":[1,"open-by-default"],"openState":[32],"toggle":[64]},[[10,"click","collapseSidenavByBackDropClick"]]],[1,"vega-sidenav-group",{"icon":[1],"label":[1],"openState":[32]}],[1,"vega-sidenav-link",{"icon":[1],"selected":[1540],"url":[1],"showSideBarOnClickLink":[4,"show-side-bar-on-click-link"],"openState":[32]}]]],["p-9e2b7718",[[1,"vega-button",{"size":[1],"variant":[1],"icon":[1],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"block":[4],"type":[1],"loading":[4],"currentBreakpoint":[32]}]]],["p-d10ae46a",[[1,"vega-box",{"padding":[1],"margin":[1],"display":[1],"border":[1],"borderStyle":[1,"border-style"],"shadow":[1],"borderColor":[1,"border-color"],"backgroundColor":[1,"background-color"],"width":[8],"height":[8],"minHeight":[8,"min-height"],"maxHeight":[8,"max-height"],"responsiveClass":[1,"responsive-class"],"corners":[1],"flexBasis":[1,"flex-basis"],"flexGrow":[8,"flex-grow"],"flexShrink":[8,"flex-shrink"],"order":[8],"flex":[8],"alignSelf":[1,"align-self"],"justifySelf":[1,"justify-self"],"gridColumn":[8,"grid-column"],"gridRow":[8,"grid-row"],"gridArea":[8,"grid-area"],"currentBreakpoint":[32]}]]],["p-cf2838c7",[[1,"vega-tooltip-content-box",{"text":[1]}],[1,"vega-tooltip",{"size":[8],"minWidth":[8,"min-width"],"maxWidth":[8,"max-width"],"trigger":[1],"content":[1],"text":[1],"placement":[1],"alignment":[1],"positionRelativeTo":[1,"position-relative-to"],"disableInteractive":[4,"disable-interactive"],"isTooltipShow":[32]}]]],["p-78099a83",[[1,"vega-icon",{"icon":[513],"size":[1],"color":[1]}]]],["p-9eb00537",[[1,"vega-button-circle",{"size":[1],"variant":[1],"icon":[513],"label":[513],"disabled":[4],"danger":[4],"type":[1],"iconColor":[1,"icon-color"],"showTooltip":[4,"show-tooltip"],"tooltip":[16]}]]],["p-423762ae",[[1,"vega-input",{"label":[513],"labelSuffixButtonProps":[16],"labelSuffixButtonConfig":[16],"value":[1537],"valueUpdateTrigger":[1,"value-update-trigger"],"type":[513],"name":[1],"autocomplete":[1],"inputmode":[1],"enterkeyhint":[1],"readOnly":[4,"read-only"],"prefixIcon":[513,"prefix-icon"],"email":[516],"required":[1540],"min":[514],"max":[514],"minLength":[514,"min-length"],"maxLength":[514,"max-length"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"size":[1],"placeholder":[1],"disabled":[516],"hint":[1],"maskConfig":[16],"disableCopyPaste":[4,"disable-copy-paste"],"suggestionsDropdownSource":[16],"prefixText":[32],"suffixText":[32],"isCompactInputWidth":[32],"isPasswordDisplay":[32],"suggestionsDropdownConfig":[32],"doFocus":[64],"doBlur":[64],"showSuggestionsDropdown":[64],"hideSuggestionsDropdown":[64]}]]],["p-c601b331",[[1,"vega-field-label",{"suffixButtonProps":[16],"suffixButtonConfig":[16],"label":[1025],"isFieldRequired":[4,"is-field-required"],"disabled":[4]}]]],["p-82039afd",[[1,"vega-text",{"overflow":[1],"tooltip":[16]}]]],["p-9297f4a9",[[1,"vega-flex",{"gap":[1],"margin":[1],"breakpoint":[1],"direction":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"flexWrap":[1,"flex-wrap"],"flex":[8],"flexBasis":[1,"flex-basis"],"flexGrow":[8,"flex-grow"],"flexShrink":[8,"flex-shrink"],"useNativeFlex":[4,"use-native-flex"],"currentBreakpoint":[32]}]]]]'),e))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heartlandone/vega",
3
- "version": "2.85.0",
3
+ "version": "2.86.0",
4
4
  "description": "Vega - the design system of Heartland Payment Systems",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{h as e,F as t,r as i,c as o,H as n,g as a}from"./p-6b2342e0.js";import{s}from"./p-519a7d55.js";import{c as r,M as l,V as c,I as d}from"./p-6e1ab235.js";import{s as p}from"./p-6bd5c49b.js";import{V as h,I as f}from"./p-4415ad28.js";import{P as v}from"./p-81dd00d0.js";import{e as u}from"./p-272440e8.js";import{F as g}from"./p-18e8d9b7.js";import{l as m,m as x,f as b}from"./p-6e70d3cc.js";import{V as C}from"./p-e1fbfd20.js";import{I as w}from"./p-781fd6e0.js";import{g as y}from"./p-49a2e141.js";import{I as j}from"./p-5657f768.js";import{c as k}from"./p-6b5cb920.js";import{Q as O,R,S,a as L,T as H}from"./p-9af0e2e7.js";import{C as I}from"./p-2bb5a232.js";import{D as A,d as z}from"./p-f28a6074.js";import{N as V,O as M,P as N,Q as E,R as _}from"./p-6c43d54a.js";import{c as G}from"./p-c31a32f4.js";import{B as D}from"./p-7cd2b93b.js";import{V as W}from"./p-8aee6b74.js";import{c as B}from"./p-1ec763ab.js";import{c as U}from"./p-613ddaab.js";import{C as T}from"./p-2d0d575f.js";import{O as Z}from"./p-331a62d5.js";import{S as F}from"./p-af5cb9bc.js";import{c as K}from"./p-2a9960c9.js";import{f as P}from"./p-c85e743d.js";import"./p-b75ee3ba.js";import"./p-5a25014f.js";import"./p-e6adf829.js";import"./p-593e0f80.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-262ec334.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-4cefd7fe.js";import"./p-e4c4ea35.js";import"./p-d884c644.js";import"./p-3b791b5d.js";import"./p-a528714c.js";import"./p-f1c672e4.js";import"./p-4866e390.js";import"./p-f0e828d8.js";import"./p-fb5ea4b2.js";import"./p-a841cf13.js";import"./p-031c0cf7.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-1a869f0e.js";var X=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class $ extends v{constructor(){super({callback:()=>{this.updateMainContentUI(this.openState)}}),this.isVoiceOverClick=!1,this.triggerElement=null,this.handleClickEvent=e=>{this.isVoiceOverClick=m(e)}}componentDidLoad(){!0===this.open?(this.openState="open",g.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.add("disableAnimation")):this.openState="close",window.addEventListener("click",this.handleClickEvent,{capture:!0})}componentDidRender(){}async toggle(){"close"===this.openState?(this.triggerElement=document.activeElement,this.openState="open"):this.openState="close"}watchOpen(e){this.openState=e?"open":"close"}watchOpenState(e){this.updateMainContentUI(e),"open"===e?this.open=!0:(this.open=!1,g.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.contains("disableAnimation")&&this.host.classList.remove("disableAnimation")),this.stateUpdateEventEmitter.emit(this.openState),"open"===e?this.focusFirstFocusableInDialog():this.focusFirstFocusableOutsideDialog()}watchShowAsOverlay(){this.updateMainContentUI(this.openState)}setOpenState(e){this.openState=e}focusFirstFocusableInDialog(){if(!this.isVoiceOverClick)return;const e=this.host,t=x(e);t&&u((()=>t.focus()),e,300)}focusFirstFocusableOutsideDialog(){var e;const t=this.triggerElement;this.triggerElement=null;const i=this.host;if(t&&t.isConnected)return void(null!==(e=x(t))&&void 0!==e?e:t).focus();const o=this.findFirstFocusableOutside(i);o&&o.focus()}findFirstFocusableOutside(e){const t=i=>{const o=Array.from(i.children);for(const i of o){if(i===e||e.contains(i))continue;if(i.contains(e)){const e=t(i);if(e)return e;continue}const o=x(i);if(o)return o}return null};return t(document.body)}updateMainContentUI(e){const t=document.querySelector("body"),i=document.querySelector("vega-left-nav + .vega-left-nav-content");"open"===e?(this.host.style.display="flex",setTimeout((()=>{this.host.classList.add("open"),i&&!this.backdropController.shouldShowBackdrop()?(null==t||t.classList.remove("vega-overflow-hidden"),i.classList.add("open")):(null==t||t.classList.add("vega-overflow-hidden"),i&&i.classList.remove("open"))}))):(this.host.classList.remove("open"),null==t||t.classList.remove("vega-overflow-hidden"),i&&i.classList.remove("open"),u((()=>{this.open||(this.host.style.display="none")}),this.host))}}X([r()],$.prototype,"host",void 0),X([r({writable:!0})],$.prototype,"open",void 0),X([r({writable:!0})],$.prototype,"openState",void 0),X([r()],$.prototype,"stateUpdateEventEmitter",void 0),X([r()],$.prototype,"backdropController",void 0),X([l("componentDidLoad")],$.prototype,"componentDidLoad",null),X([l("componentDidRender")],$.prototype,"componentDidRender",null),X([l("toggle")],$.prototype,"toggle",null),X([l("watchOpen")],$.prototype,"watchOpen",null),X([l("watchOpenState")],$.prototype,"watchOpenState",null),X([l("watchShowAsOverlay")],$.prototype,"watchShowAsOverlay",null);const Q=()=>e("div",{class:"header-footer-separator-container"},e("div",{class:"header-footer-separator"}));var q=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class J extends c{componentWillLoad(){this.hasHeaderSlot=!!this.host.querySelector('[slot="header-slot"]')}render(){return this.renderHeader()}renderHeader(){const{title:i,subtitle:o}=this.headerConfig;return e(t,null,e("div",{class:"header-container"},this.hasHeaderSlot?e("slot",{name:"header-slot"}):i?e("div",{class:"header-title"},i):this.renderHeaderLogo(),o&&e("div",{class:"header-subtitle"},o)),e(Q,null))}renderHeaderLogo(){return"gp"===this.currentBranding?e("vega-brand-logo",{name:"global-payments",size:"small"}):"genius"===this.currentBranding?e("vega-brand-logo",{name:"genius",size:"small"}):e("vega-icon",{icon:C.getIconKey("heartland-logo")})}}C.register({"heartland-logo":{icon:'<svg width="142" height="26" viewBox="0 0 142 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H5.38012V9.88886H14.7732V0H20.2857V24.7222H14.9056V13.9144H5.42422V24.7659H0V0ZM81.3186 0H86.4784V24.7222H81.3186V0ZM141.868 0.0435179H136.708C136.708 3.19395 136.708 6.38814 136.664 9.58233C135.959 8.53217 134.856 7.78833 133.666 7.48204C131.461 6.86946 129.079 7.35077 127.227 8.70716C125.727 9.97612 124.669 11.7264 124.317 13.6516C123.92 15.4894 123.92 17.4147 124.317 19.2962C124.669 21.1339 125.684 22.7966 127.182 23.8906C128.77 24.8969 130.667 25.2907 132.519 25.0282C134.283 24.8531 135.826 23.8468 136.664 22.2716C136.664 22.824 136.703 23.3764 136.742 23.9288C136.762 24.2077 136.782 24.4867 136.796 24.7656H142C141.912 23.5843 141.868 22.3591 141.868 21.1777V0.0435179ZM129.784 13.039C130.137 11.9889 130.976 10.9388 132.166 10.6762C133.357 10.3262 134.636 10.6762 135.518 11.5514C136.444 12.4702 136.753 13.8267 136.841 15.0956C136.885 16.7583 136.753 18.4648 135.959 19.9525C135.076 21.4839 132.916 22.2716 131.284 21.3964C130.094 20.7401 129.609 19.3399 129.388 18.071C129.124 16.3645 129.256 14.6581 129.784 13.039ZM70.3382 4.15601L75.4537 2.31827V7.52523H79.5991V10.9382H75.4537V17.1515C75.4096 18.1142 75.4537 19.0768 75.5859 20.0394C75.6742 20.5645 76.1152 21.0021 76.6443 21.1334C77.6146 21.3084 78.5847 21.3084 79.5549 21.1771V24.5026C77.7469 25.0276 75.8506 25.1589 73.9984 24.9401C72.94 24.8088 71.9258 24.3276 71.2202 23.5399C70.6028 22.7085 70.3382 21.7021 70.3823 20.6958C70.3382 15.1826 70.3382 9.66925 70.3382 4.15601ZM35.5 8.2703C33.6037 7.04514 31.3106 6.56382 29.1056 7.00138C26.9889 7.35143 25.1367 8.48907 23.946 10.2831C22.4907 12.3396 22.1379 14.9212 22.2261 17.3716C22.3584 19.4718 22.9758 21.7909 24.4752 23.3224C25.9746 24.8538 28.1795 25.3789 30.2522 25.4664C32.0603 25.5539 33.9124 25.1601 35.5441 24.3725C37.264 23.4099 38.3665 21.6158 38.4546 19.6469H33.7361C33.6037 20.2595 33.2509 20.8283 32.81 21.3095C32.2808 21.7471 31.6193 22.0097 30.9577 22.0097C29.8553 22.1409 28.7969 21.7471 28.0473 20.9158C27.2534 19.9094 27.077 18.5967 27.1211 17.4153H38.8515C38.9838 15.7963 38.8075 14.1774 38.4106 12.6021C37.9696 10.8519 36.9553 9.32044 35.5 8.2703ZM27.2975 14.1774C27.2975 13.1272 27.6503 12.1208 28.3118 11.2895C29.5025 9.93302 32.0603 10.0205 32.9864 11.5958C33.4274 12.3833 33.6037 13.3022 33.6037 14.1774H27.2975ZM42.5126 8.75203C44.056 7.39558 46.2169 7.00178 48.2014 6.95802C50.1859 6.91427 52.3908 7.30807 54.0225 8.62074C55.2131 9.5834 55.6983 11.1586 55.7865 12.6463C55.8368 13.696 55.8297 14.7314 55.8225 15.7689V15.769C55.8171 16.5478 55.8117 17.3278 55.8306 18.1158C55.8389 18.5271 55.8425 18.9415 55.8461 19.3576V19.3576C55.8618 21.1545 55.8777 22.982 56.2715 24.723H51.553C51.4206 23.9791 51.3766 23.1915 51.3766 22.4039C50.4504 23.8478 48.9069 24.8105 47.1871 25.0293C45.776 25.2043 44.3207 25.0293 42.9536 24.5042C41.7629 23.9353 40.8368 22.8852 40.484 21.5725C39.9548 19.8661 40.2635 18.0283 41.2778 16.5844C42.2921 15.3154 43.6592 14.4403 45.2468 14.0465C46.9417 13.606 48.6735 13.5686 50.3747 13.5319C50.5325 13.5285 50.6901 13.5251 50.8474 13.5214C50.8474 13.4493 50.8477 13.377 50.848 13.3045V13.3038V13.3032V13.3026C50.8514 12.4946 50.8548 11.662 50.4504 10.9399C49.6567 9.80219 48.1132 9.53961 46.9666 10.3273C46.8343 10.4148 46.7461 10.5023 46.6579 10.5898C46.2169 11.0711 45.9964 11.7274 46.0847 12.3838H41.0132C40.9691 11.0711 41.4983 9.71469 42.5126 8.75203ZM47.0989 17.0657C46.4374 17.2844 45.8641 17.7657 45.5113 18.3783C45.0263 19.4285 45.3349 20.6536 46.261 21.3537C47.5399 22.1851 49.2598 21.8351 50.0977 20.5661C50.8914 19.3847 50.8914 17.9408 50.8914 16.5844C49.6126 16.4531 48.2896 16.5844 47.0989 17.0657ZM96.1373 6.95649C94.1088 6.95649 91.9474 7.35029 90.4039 8.70676C89.3901 9.66934 88.8168 11.0258 88.8605 12.426H93.9322C93.844 11.7259 94.1525 10.982 94.6821 10.5007C95.7405 9.66934 97.2394 9.80063 98.1658 10.7633C98.7448 11.5023 98.742 12.5111 98.7395 13.428C98.7393 13.4882 98.7392 13.5481 98.7392 13.6074C96.7543 13.6074 94.7704 13.6511 92.8738 14.1762C91.3741 14.5701 90.0071 15.4451 89.0816 16.7141C87.9786 18.3331 87.8021 20.3458 88.5519 22.1398C89.037 23.3212 89.9634 24.2401 91.1538 24.6777C92.477 25.0714 93.844 25.2027 95.2109 25.0277C96.8863 24.8527 98.3424 23.7151 99.2679 22.4023C99.2679 23.19 99.3125 23.9338 99.4445 24.7214H104.119C103.671 22.7031 103.674 20.573 103.678 18.5029V18.5028V18.5016V18.5003C103.678 18.3274 103.678 18.1549 103.678 17.983C103.678 16.189 103.678 14.3513 103.634 12.5135C103.502 11.1133 103.061 9.58184 101.914 8.66297C100.326 7.35029 98.1658 6.95649 96.1373 6.95649ZM93.5354 18.1143C93.9322 17.5455 94.5493 17.1516 95.2554 16.9329C96.4013 16.5828 97.5925 16.4953 98.7392 16.5828L98.7394 16.7751C98.7413 18.0786 98.7434 19.4825 97.9447 20.6084C97.1074 21.8335 95.4311 22.1835 94.1525 21.396C93.0941 20.6521 92.8293 19.2081 93.5354 18.1143ZM112.982 7.74535C114.526 6.95774 116.334 6.73897 118.01 7.13276C119.641 7.43906 121.009 8.53297 121.671 10.0644C122.123 11.1017 122.163 12.221 122.204 13.3359L122.204 13.3364C122.214 13.6322 122.225 13.9276 122.243 14.2212V24.7226H116.952V13.2148C116.952 12.2522 116.379 11.3771 115.496 10.8958C113.953 10.1957 112.145 10.8083 111.351 12.2959C110.93 13.169 110.941 14.1409 110.951 15.0687V15.0698C110.952 15.2111 110.954 15.3514 110.954 15.4901V24.6789H105.75V13.4336C105.75 13.0309 105.752 12.6264 105.754 12.2206C105.761 10.5979 105.768 8.95287 105.662 7.30779H110.602L110.63 7.84104C110.664 8.49637 110.699 9.15749 110.734 9.84562C111.263 9.01425 112.057 8.27042 112.982 7.74535ZM68.8393 7.35106C67.5163 7.21979 66.1933 7.48232 65.0026 8.09491C64.0325 8.7075 63.3268 9.58258 62.8859 10.7202C62.8859 9.6286 62.8419 8.53696 62.798 7.44526L62.7977 7.43857H57.9467C58.1672 9.58258 58.2554 11.7704 58.2114 13.9144C58.2114 15.125 58.2065 16.3356 58.2016 17.5462C58.1918 19.9674 58.1819 22.3886 58.2114 24.8097H63.3268V15.8398C63.3268 14.7021 63.5915 13.3894 64.5617 12.6893C65.7965 11.8142 67.384 11.8142 68.8393 11.9454V7.35106Z" fill="#596063" /></svg>',autoSize:!0}}),q([r()],J.prototype,"host",void 0),q([r()],J.prototype,"headerConfig",void 0),q([r()],J.prototype,"currentBranding",void 0),q([l("componentWillLoad")],J.prototype,"componentWillLoad",null);var Y=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ee extends c{componentWillLoad(){this.hasFooterSlot=!!this.host.querySelector('[slot="footer-slot"]')}render(){return this.renderFooter()}renderFooter(){return(this.footnote||this.hasFooterSlot)&&e(t,null,e(Q,null),e("div",{class:"footer-container"},this.hasFooterSlot?e("slot",{name:"footer-slot"}):e("div",{class:"footer-footnote"},this.footnote)))}}Y([r()],ee.prototype,"host",void 0),Y([r()],ee.prototype,"footnote",void 0),Y([l("componentWillLoad")],ee.prototype,"componentWillLoad",null);var te=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ie extends c{watchOpenState(){this.updateZIndex()}updateZIndex(){const e=this.backdropController.getBackdrop();"open"==this.openState?(w.setZIndex(e,"base"),w.setZIndex(this.host,"base")):u((()=>{w.removeZIndex(e,"base"),w.removeZIndex(this.host,"base")}),this.host,300)}}te([r()],ie.prototype,"host",void 0),te([r()],ie.prototype,"openState",void 0),te([r()],ie.prototype,"backdropController",void 0),te([l("watchOpenState")],ie.prototype,"watchOpenState",null);var oe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ne extends v{constructor(){super({callback:()=>{this.updateBackdropUI(this.openState)}})}connectedCallback(){this.backdrop=this.createBackdrop()}disconnectedCallback(){this.backdrop&&this.backdrop.remove()}watchOpenState(e){this.updateBackdropUI(e)}watchShowAsOverlay(){this.updateBackdropUI(this.openState)}getBackdrop(){return this.backdrop}shouldShowBackdrop(){return!(this.isLargeScreen()&&!this.showAsOverlay)}createBackdrop(){const e=document.createElement("vega-backdrop");return e.visible=!1,e.duration=150,e.addEventListener("vegaClick",(()=>{this.openStateController.setOpenState("close")})),document.body.append(e),e}updateBackdropUI(e){const t=document.querySelector("vega-left-nav + .vega-left-nav-content");this.backdrop.visible="open"===e&&!(t&&!this.shouldShowBackdrop())}isLargeScreen(){const e=y();return"L"==e||"XL"==e}}oe([r()],ne.prototype,"openState",void 0),oe([r()],ne.prototype,"showAsOverlay",void 0),oe([r()],ne.prototype,"openStateController",void 0),oe([l("connectedCallback")],ne.prototype,"connectedCallback",null),oe([l("disconnectedCallback")],ne.prototype,"disconnectedCallback",null),oe([l("watchOpenState")],ne.prototype,"watchOpenState",null),oe([l("watchShowAsOverlay")],ne.prototype,"watchShowAsOverlay",null);class ae extends c{render(){var t;return e("div",{class:"vega-nav-list-container"},(null===(t=this.source)||void 0===t?void 0:t.length)?this.renderListBySource():e("slot",null))}renderListBySource(){return e(t,null,this.source.map((i=>e(t,null,this.renderLeftNavSourceItem(i)))))}renderLeftNavSourceItem(e){return"section"==e.type?this.renderSection(e):"group"==e.type?this.renderGroup(e):this.renderLink(e)}renderSection(t){var i;return e("vega-left-nav-section",{itemKey:t.key,sectionHeader:t.sectionHeader},null===(i=t.children)||void 0===i?void 0:i.map((e=>"group"==e.type?this.renderGroup(e):this.renderLink(e))))}renderGroup(t){var i;return e("vega-left-nav-group",{itemKey:t.key,key:t.key||t.name,icon:t.icon,label:t.name,"open-by-default":t.openByDefault},null===(i=t.children)||void 0===i?void 0:i.map((e=>"group"==e.type?this.renderGroup(e):this.renderLink(e))))}renderLink(t){return e("vega-left-nav-link",{itemKey:t.key,key:t.key||t.name,icon:t.icon,url:t.url,target:t.target,selected:t.selected,counterBadge:t.counterBadge},t.name)}}!function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)}([r()],ae.prototype,"source",void 0);var se=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class re extends c{registerMenuClickObserver(){A.addUniqueObserverToNode(this.host,V,(()=>{this.shouldAutoCollapse()&&this.openStateController.setOpenState("close")}))}unregisterMenuClickObserver(){A.removeUniqueObserverFromNode(this.host,V)}shouldAutoCollapse(){return this.autoCollapseOnOverlay&&this.backdropController.shouldShowBackdrop()&&"open"===this.openState}}se([r()],re.prototype,"host",void 0),se([r()],re.prototype,"openState",void 0),se([r()],re.prototype,"autoCollapseOnOverlay",void 0),se([r()],re.prototype,"showAsOverlay",void 0),se([r()],re.prototype,"backdropController",void 0),se([r()],re.prototype,"openStateController",void 0),se([l("connectedCallback")],re.prototype,"registerMenuClickObserver",null),se([l("disconnectedCallback")],re.prototype,"unregisterMenuClickObserver",null);const le=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the left nav",payloadValue:e=>!e.source||0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the left nav",payloadValue:e=>!!e.source&&e.source.length>0}];var ce=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const de=class{constructor(e){i(this,e),this.vegaStateUpdate=o(this,"vegaStateUpdate",7),this.stateUpdate=o(this,"stateUpdate",7),this.globalSlimmers={},this.headerRenderer=new J,this.footerRenderer=new ee,this.openStateController=new $,this.backdropController=new ne,this.zIndexController=new ie,this.listRenderer=new ae,this.vegaLeftNavAutoCollapseController=new re,this.stateUpdateEventEmitter=k(de,O),this.componentGlobalStyleSlimmer=new I(".vega-left-nav-content{transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-duration:200ms;transition-property:margin}vega-left-nav.disableAnimation+.vega-left-nav-content.open{transition-duration:0s}.vega-left-nav-content.open{margin-left:300px}"),this.vegaComponentUsageRuntimeMetricsSlimmer=new h(le),this.autoCollapseGroupsNotifySlimmer=G(de,"autoCollapseGroups","watchAutoCollapseGroups"),this.brandSwitchControllerSlimmer=new D,this.currentBranding=W.getBranding(),this.openState="close",this.open=!1,this.headerConfig={},this.footnote="",this.showAsOverlay=!0,this.autoCollapseOnOverlay=!1,this.autoCollapseGroups=!1}watchOpenState(){}watchOpen(){}watchShowAsOverlay(){}watchAutoCollapseGroups(){}componentWillLoad(){"string"==typeof this.autoCollapseGroups&&(this.autoCollapseGroups.includes("true")?this.autoCollapseGroups=!0:this.autoCollapseGroups.includes("false")&&(this.autoCollapseGroups=!1))}async toggle(){}render(){return p(e("slot",null)),s(e(n,null,this.headerRenderer.render(),this.listRenderer.render(),this.footerRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{openState:["watchOpenState"],open:["watchOpen"],showAsOverlay:["watchShowAsOverlay"],autoCollapseGroups:["watchAutoCollapseGroups"]}}};ce([f()],de.prototype,"globalSlimmers",void 0),ce([d()],de.prototype,"headerRenderer",void 0),ce([d()],de.prototype,"footerRenderer",void 0),ce([d()],de.prototype,"openStateController",void 0),ce([d()],de.prototype,"backdropController",void 0),ce([d()],de.prototype,"zIndexController",void 0),ce([d()],de.prototype,"listRenderer",void 0),ce([d()],de.prototype,"vegaLeftNavAutoCollapseController",void 0),ce([d()],de.prototype,"stateUpdateEventEmitter",void 0),ce([d()],de.prototype,"componentGlobalStyleSlimmer",void 0),ce([d()],de.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ce([d()],de.prototype,"autoCollapseGroupsNotifySlimmer",void 0),ce([d()],de.prototype,"brandSwitchControllerSlimmer",void 0),ce([j((e=>[{keyCode:"Escape",activeElementInScope:()=>{const t=e.backdropController.getBackdrop();return t&&t.visible?[document.body]:[e.host]},callback:()=>{const t=e.backdropController.getBackdrop();t&&t.visible&&e.openStateController.setOpenState("close")}}]))],de.prototype,"host",void 0),de.style=':host{display:none;flex-direction:column;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:fixed;top:0px;right:0px;bottom:0px;left:0px;text-align:left;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);width:300px;transition-duration:200ms;transition-property:transform;transform:translateX(-320px)}:host(.open.disableAnimation){transition-duration:0s}:host(.open){transform:translateX(0px)}.header-container{padding-left:24px;padding-right:24px;padding-top:24px;padding-bottom:16px}.header-container .header-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:28px;font-weight:700;line-height:36px;letter-spacing:0px}}.header-container .header-subtitle{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px;margin-top:2px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}.header-footer-separator-container{padding-left:12px;padding-right:12px}.header-footer-separator{width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}.vega-nav-list-container{flex-grow:1;padding-left:12px;padding-right:12px;padding-top:12px;overflow-y:auto;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-nav-list-container .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}.footer-container{padding-top:16px;padding-bottom:16px;padding-left:24px;padding-right:24px}.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}body.vega-overflow-hidden{overflow:hidden}.header-container vega-icon[icon="v-internal-icon heartland-logo"]+.header-subtitle{margin-top:8px}';var pe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class he extends c{constructor(){super(...arguments),this.handleClick=e=>{const t=e.currentTarget;if(t&&"$1"===t.dataset.root){e.preventDefault(),this.vegaLeftNavGroupOpenStateController.toggle();const t=this.vegaLeftNavGroupOpenStateController.isOpen();this.groupClickEventEmitter.emit(t?"EXPAND":"COLLAPSE"),this.notifyOtherGroup()}}}getGroupContainer(){return this.groupContainer}render(){return e("div",{class:"vega-li-main "+(this.openByDefault?"open":""),ref:e=>this.groupContainer=e},e("a",{href:`#${this.label}`,role:"button",tabIndex:0,"data-root":"$1",onClick:this.handleClick,"aria-label":this.label||"No label defined"},this.icon&&e("div",{class:"vega-links-icon"},e("div",{class:"prefix-icon"},e("vega-icon",{icon:this.icon,size:"size-16"}))),e("span",{class:"vega-links-name"},this.label),e("div",{class:"suffix-icons"},e("vega-icon",{icon:C.getIconKey("chevron-down"),size:"size-12"}),e("vega-icon",{icon:C.getIconKey("chevron-up"),size:"size-12"}))),e("div",{class:"vega-nav-list-sub"},e("slot",null)))}notifyOtherGroup(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,M),{host:this.host})}}C.register({"chevron-up":B,"chevron-down":U}),pe([r()],he.prototype,"host",void 0),pe([r()],he.prototype,"autoCollapseGroups",void 0),pe([r()],he.prototype,"icon",void 0),pe([r()],he.prototype,"label",void 0),pe([r()],he.prototype,"groupClickEventEmitter",void 0),pe([r()],he.prototype,"vegaLeftNavHierarchyController",void 0),pe([r()],he.prototype,"openByDefault",void 0),pe([r()],he.prototype,"itemKey",void 0),pe([r()],he.prototype,"vegaLeftNavGroupOpenStateController",void 0);var fe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ve extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,N),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,N),this.observer))}isAcceptableObserver(e){return!this.host.contains(e.host)}shouldCollapse(){return"on-link-click"===this.autoCollapseGroups||!0===this.autoCollapseGroups||!1===this.autoCollapseGroups||"always"===this.autoCollapseGroups}observerListener(){this.shouldCollapse()&&this.vegaLeftNavGroupOpenStateController.close()}}fe([r()],ve.prototype,"host",void 0),fe([r()],ve.prototype,"autoCollapseGroups",void 0),fe([r()],ve.prototype,"vegaLeftNavGroupOpenStateController",void 0),fe([r()],ve.prototype,"vegaLeftNavHierarchyController",void 0),fe([r()],ve.prototype,"openByDefault",void 0),fe([l("disconnectedCallback")],ve.prototype,"disconnectedCallback",null),fe([l("componentWillLoad")],ve.prototype,"componentWillLoad",null);var ue=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ge extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,M),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,M),this.observer))}isAcceptableObserver(e){return e.host!==this.host&&!this.host.contains(e.host)}shouldCollapse(){return 1==this.autoCollapseGroups||"on-group-click"===this.autoCollapseGroups||"always"===this.autoCollapseGroups}observerListener(){this.shouldCollapse()&&this.vegaLeftNavGroupOpenStateController.close()}}ue([r()],ge.prototype,"host",void 0),ue([r()],ge.prototype,"autoCollapseGroups",void 0),ue([r()],ge.prototype,"vegaLeftNavGroupOpenStateController",void 0),ue([r()],ge.prototype,"vegaLeftNavHierarchyController",void 0),ue([l("disconnectedCallback")],ge.prototype,"disconnectedCallback",null),ue([l("componentWillLoad")],ge.prototype,"componentWillLoad",null);var me=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class xe extends F{constructor(){super({parent:"vega-left-nav",subStates:[{subStateName:"autoCollapseGroups",parentStateName:"autoCollapseGroups"}]})}}me([r()],xe.prototype,"host",void 0),me([r({writable:!0})],xe.prototype,"autoCollapseGroups",void 0);class be extends c{isOpen(){return this.renderer.getGroupContainer().classList.contains("open")}open(){this.renderer.getGroupContainer().classList.add("open")}close(){this.renderer.getGroupContainer().classList.remove("open")}toggle(){this.isOpen()?this.close():this.open()}}!function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)}([r()],be.prototype,"renderer",void 0);var Ce=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class we extends c{componentWillLoad(){const e=b(this.host,"vega-left-nav"),t=b(this.host,"vega-nav-card");(e||t)&&(this.parent=e||t)}getTopParent(){return this.parent}}Ce([r()],we.prototype,"host",void 0),Ce([l("componentWillLoad")],we.prototype,"componentWillLoad",null);var ye=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class je extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,E),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&!this.openByDefault&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,E),this.observer))}isAcceptableObserver(e){return this.host.contains(e.host)}observerListener(){this.vegaLeftNavGroupOpenStateController.open()}}ye([r()],je.prototype,"host",void 0),ye([r()],je.prototype,"vegaLeftNavGroupOpenStateController",void 0),ye([r()],je.prototype,"vegaLeftNavHierarchyController",void 0),ye([r()],je.prototype,"openByDefault",void 0),ye([l("disconnectedCallback")],je.prototype,"disconnectedCallback",null),ye([l("componentWillLoad")],je.prototype,"componentWillLoad",null);var ke=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Oe=class{constructor(e){i(this,e),this.vegaGroupClick=o(this,"vegaGroupClick",7),this.groupClick=o(this,"groupClick",7),this.globalSlimmers={},this.renderer=new he,this.vegaLeftNavHierarchyController=new we,this.linkClickObserverController=new ve,this.otherGroupsClickObserverController=new ge,this.groupClickEventEmitter=k(Oe,R),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.vegaLeftNavGroupStateController=new xe,this.vegaLeftNavGroupOpenStateController=new be,this.vegaLeftNavGroupForInitializeSelectedController=new je,this.autoCollapseGroups=!1,this.label="",this.openByDefault=!1}render(){return p(e("slot",null)),e(n,{"data-key":this.itemKey},s(this.renderer.render(),this.host))}get host(){return a(this)}};ke([f()],Oe.prototype,"globalSlimmers",void 0),ke([d()],Oe.prototype,"renderer",void 0),ke([d()],Oe.prototype,"vegaLeftNavHierarchyController",void 0),ke([d()],Oe.prototype,"linkClickObserverController",void 0),ke([d()],Oe.prototype,"otherGroupsClickObserverController",void 0),ke([d()],Oe.prototype,"groupClickEventEmitter",void 0),ke([d()],Oe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupStateController",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupOpenStateController",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupForInitializeSelectedController",void 0),Oe.style=':host{display:block}.suffix-icons{padding-left:8px}.suffix-icons vega-icon,.vega-li-main.open>a>.suffix-icons vega-icon:first-of-type{display:none}.suffix-icons vega-icon:first-of-type,.vega-li-main.open>a>.suffix-icons vega-icon:last-of-type{display:inline-flex}.vega-nav-list-sub{display:none}.vega-li-main.open>.vega-nav-list-sub{display:block}.vega-li-main>a{display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px;cursor:pointer;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}.vega-li-main>a:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.vega-li-main>a:hover{background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1))}.vega-li-main>a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}.vega-links-icon{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-right:12px;box-sizing:border-box}.vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}::slotted(vega-left-nav-group){padding-left:32px}::slotted(vega-left-nav-link){padding-left:32px}';var Re=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Se extends c{constructor(){super(...arguments),this.handleClick=()=>{this.selected||this.customSelectionEnabled||this.controller.setSelected(!0),this.menuClickEventEmitter.emit(),this.notifyVegaLeftNav(),this.notifyVegaLeftGroup()}}render(){return e(n,{class:!0===this.selected?"selected":"","data-key":this.itemKey},e("a",{href:this.url||"javascript:void(0);",target:this.target,onClick:this.handleClick},this.icon&&e("div",{class:"vega-links-icon"},e("div",{class:"prefix-icon"},e("vega-icon",{icon:this.icon,size:"size-16"}))),e("span",{class:"vega-links-name"},e("slot",null)),!!this.deprecatedPropertySlimmer.getValue()&&e("div",{class:"vega-counter-badge"},e("vega-counter-badge",{count:this.deprecatedPropertySlimmer.getValue(),color:this.counterBadge.color}))))}notifyVegaLeftNav(){const e=b(this.host,"vega-left-nav");e&&T.notify(z.getSubject(e,V),{host:this.host})}notifyVegaLeftGroup(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,N),{host:this.host})}}Re([r()],Se.prototype,"host",void 0),Re([r()],Se.prototype,"selected",void 0),Re([r()],Se.prototype,"url",void 0),Re([r()],Se.prototype,"counterBadge",void 0),Re([r()],Se.prototype,"icon",void 0),Re([r()],Se.prototype,"menuClickEventEmitter",void 0),Re([r()],Se.prototype,"controller",void 0),Re([r()],Se.prototype,"deprecatedPropertySlimmer",void 0),Re([r()],Se.prototype,"customSelectionEnabled",void 0),Re([r()],Se.prototype,"itemKey",void 0),Re([r()],Se.prototype,"target",void 0),Re([r()],Se.prototype,"vegaLeftNavHierarchyController",void 0);var Le=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class He extends c{disconnectedCallback(){const e=this.getObserverSubject();e&&T.unregister(e,this.observer)}componentWillLoad(){this.observer=new Z(this.isAcceptableNavListObserver.bind(this),this.observerListener.bind(this));const e=this.getObserverSubject();e&&T.register(e,this.observer)}isAcceptableNavListObserver(e){return e instanceof HTMLElement&&b(this.host,".vega-nav-list-container")===b(e,".vega-nav-list-container")}}Le([l("disconnectedCallback")],He.prototype,"disconnectedCallback",null),Le([l("componentWillLoad")],He.prototype,"componentWillLoad",null);var Ie=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ae extends He{componentWillRender(){if(this.selected){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,E),{host:this.host})}}componentDidRender(){if(this.selected){const e=this.getObserverSubject();e&&T.notify(e,this.host)}}setSelected(e){this.customSelectionEnabled||(this.selected=e)}observerListener(e){e!==this.host&&this.setSelected(!1)}getObserverSubject(){const e=this.vegaLeftNavHierarchyController.getTopParent();return e?z.getSubject(e,_):null}}Ie([r()],Ae.prototype,"host",void 0),Ie([r({writable:!0})],Ae.prototype,"selected",void 0),Ie([r()],Ae.prototype,"customSelectionEnabled",void 0),Ie([r()],Ae.prototype,"vegaLeftNavHierarchyController",void 0),Ie([l("componentWillRender")],Ae.prototype,"componentWillRender",null),Ie([l("componentDidRender")],Ae.prototype,"componentDidRender",null);var ze=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Ve=class{constructor(e){i(this,e),this.vegaMenuClick=o(this,"vegaMenuClick",7),this.menuClick=o(this,"menuClick",7),this.globalSlimmers={},this.renderer=new Se,this.vegaLeftNavHierarchyController=new we,this.controller=new Ae,this.menuClickEventEmitter=k(Ve,S),this.deprecatedPropertySlimmer=K(Ve,"counterBadge.count","counterBadge.counter",void 0),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.selected=!1,this.customSelectionEnabled=!1,this.target="_self"}render(){return p(e("slot",null)),s(this.renderer.render(),this.host)}get host(){return a(this)}};ze([f()],Ve.prototype,"globalSlimmers",void 0),ze([d()],Ve.prototype,"renderer",void 0),ze([d()],Ve.prototype,"vegaLeftNavHierarchyController",void 0),ze([d()],Ve.prototype,"controller",void 0),ze([d()],Ve.prototype,"menuClickEventEmitter",void 0),ze([d()],Ve.prototype,"deprecatedPropertySlimmer",void 0),ze([d()],Ve.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ve.style=':host{display:block}:host(.selected) .vega-links-icon{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.selected) a{background-color:rgba(var(--v-bg-selected, 0, 151, 255, 0.3))}:host .vega-counter-badge{position:relative;width:32px;height:20px}:host vega-counter-badge{position:absolute;top:10px;left:18px}:host a{display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px;cursor:pointer;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}:host a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}:host .vega-links-icon{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-right:12px;box-sizing:border-box}:host .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}:host(:not(.selected)) a:hover{background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1))}:host>a:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}';var Me=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ne extends c{render(){return e(n,{"data-key":this.itemKey},this.renderSectionHeader(),e("slot",null),this.renderListSeparator())}renderListSeparator(){return e("div",{class:"list-separator-container"},e("div",{class:"list-separator"}))}renderSectionHeader(){var t;return(null===(t=this.sectionHeader)||void 0===t?void 0:t.title)&&e("div",{class:"section-header"},e("div",{class:"section-header-title"},this.sectionHeader.title),this.sectionHeader.actionTitle&&e("vega-button-link",{label:this.sectionHeader.actionTitle,size:"small",link:this.sectionHeader.actionLink,eventful:this.sectionHeader.actionEventful,ref:e=>{A.addUniqueObserverToNode(e,L,(()=>{this.actionClickEventEmitter.emit()}))}}))}}Me([r()],Ne.prototype,"sectionHeader",void 0),Me([r()],Ne.prototype,"actionClickEventEmitter",void 0),Me([r()],Ne.prototype,"itemKey",void 0);var Ee=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const _e=class{constructor(e){i(this,e),this.vegaActionClick=o(this,"vegaActionClick",7),this.actionClick=o(this,"actionClick",7),this.globalSlimmers={},this.renderer=new Ne,this.actionClickEventEmitter=k(_e,H),this.vegaComponentUsageRuntimeMetricsSlimmer=new h}render(){return p(e("slot",null)),s(this.renderer.render(),this.host)}get host(){return a(this)}};Ee([f()],_e.prototype,"globalSlimmers",void 0),Ee([d()],_e.prototype,"renderer",void 0),Ee([d()],_e.prototype,"actionClickEventEmitter",void 0),Ee([d()],_e.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),_e.style=':host{display:block}:host(:last-child) .list-separator-container{display:none}.list-separator-container{padding-left:12px;padding-right:12px;padding-top:20px;padding-bottom:20px}.list-separator{width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}.section-header{display:flex;align-items:center;gap:12px;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:4px}.section-header>.section-header-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;flex:1 1 0%;overflow:hidden;text-transform:uppercase}@media screen and (min-width: 768px) and (max-width: 1023px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}.section-header>vega-button-link{flex-basis:0}';var Ge=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class De extends v{constructor(){super({callback:()=>{this.updateMaxHeight()}})}watchMaxHeight(){this.updateMaxHeight()}updateMaxHeight(){const e=P(this.maxHeight,"widthAndHeight");this.currentMaxHeight=e}}Ge([r()],De.prototype,"maxHeight",void 0),Ge([r({writable:!0})],De.prototype,"currentMaxHeight",void 0),Ge([l("watchMaxHeight")],De.prototype,"watchMaxHeight",null);const We=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the nav card",payloadValue:e=>!e.source||0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the nav card",payloadValue:e=>!!e.source&&e.source.length>0}];var Be=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Ue=class{constructor(e){i(this,e),this.globalSlimmers={},this.listRenderer=new ae,this.maxHeightController=new De,this.vegaComponentUsageRuntimeMetricsSlimmer=new h(We)}watchMaxHeight(){}render(){return p(e("slot",null)),s(e(n,{style:{maxHeight:this.currentMaxHeight}},this.listRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{maxHeight:["watchMaxHeight"]}}};Be([f()],Ue.prototype,"globalSlimmers",void 0),Be([d()],Ue.prototype,"listRenderer",void 0),Be([d()],Ue.prototype,"maxHeightController",void 0),Be([d()],Ue.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ue.style=":host{display:block;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:12px;box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));text-align:left;overflow-y:auto;width:300px}.vega-nav-list-container{padding:12px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-nav-list-container .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}";export{de as vega_left_nav,Oe as vega_left_nav_group,Ve as vega_left_nav_link,_e as vega_left_nav_section,Ue as vega_nav_card}