ku4web-components 6.6.0 → 6.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. package/dist/cjs/{index-f2d8a1e9.js → index-17a9a722.js} +1 -1
  2. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +1 -1
  3. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  4. package/dist/cjs/ku4-carousel.cjs.entry.js +1 -1
  5. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  6. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  7. package/dist/cjs/ku4-feature.cjs.entry.js +1 -1
  8. package/dist/cjs/ku4-focus-trap.cjs.entry.js +1 -1
  9. package/dist/cjs/ku4-form.cjs.entry.js +1 -1
  10. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  11. package/dist/cjs/ku4-label.cjs.entry.js +1 -1
  12. package/dist/cjs/ku4-mask.cjs.entry.js +1 -1
  13. package/dist/cjs/ku4-modal.cjs.entry.js +1 -1
  14. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  15. package/dist/cjs/ku4-preview.cjs.entry.js +1 -1
  16. package/dist/cjs/ku4-tab-list.cjs.entry.js +1 -1
  17. package/dist/cjs/ku4-tab-panel.cjs.entry.js +1 -1
  18. package/dist/cjs/ku4-tab.cjs.entry.js +1 -1
  19. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  20. package/dist/cjs/ku4-tooltip.cjs.entry.js +1 -1
  21. package/dist/cjs/ku4-validation.cjs.entry.js +20 -16
  22. package/dist/cjs/ku4web-components.cjs.js +2 -2
  23. package/dist/cjs/loader.cjs.js +2 -2
  24. package/dist/cjs/{shadow-css-dcc70d0c.js → shadow-css-d26f27a8.js} +1 -1
  25. package/dist/esm/{index-733be374.js → index-765794a2.js} +1 -1
  26. package/dist/esm/ku4-carousel-controls.entry.js +1 -1
  27. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  28. package/dist/esm/ku4-carousel.entry.js +1 -1
  29. package/dist/esm/ku4-col.entry.js +1 -1
  30. package/dist/esm/ku4-drawer.entry.js +1 -1
  31. package/dist/esm/ku4-feature.entry.js +1 -1
  32. package/dist/esm/ku4-focus-trap.entry.js +1 -1
  33. package/dist/esm/ku4-form.entry.js +1 -1
  34. package/dist/esm/ku4-grid.entry.js +1 -1
  35. package/dist/esm/ku4-label.entry.js +1 -1
  36. package/dist/esm/ku4-mask.entry.js +1 -1
  37. package/dist/esm/ku4-modal.entry.js +1 -1
  38. package/dist/esm/ku4-panel.entry.js +1 -1
  39. package/dist/esm/ku4-preview.entry.js +1 -1
  40. package/dist/esm/ku4-tab-list.entry.js +1 -1
  41. package/dist/esm/ku4-tab-panel.entry.js +1 -1
  42. package/dist/esm/ku4-tab.entry.js +1 -1
  43. package/dist/esm/ku4-table.entry.js +1 -1
  44. package/dist/esm/ku4-tooltip.entry.js +1 -1
  45. package/dist/esm/ku4-validation.entry.js +20 -16
  46. package/dist/esm/ku4web-components.js +2 -2
  47. package/dist/esm/loader.js +2 -2
  48. package/dist/esm/{shadow-css-6763030b.js → shadow-css-e4879d51.js} +1 -1
  49. package/dist/esm-es5/{index-733be374.js → index-765794a2.js} +1 -1
  50. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  51. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  52. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  53. package/dist/esm-es5/ku4-col.entry.js +1 -1
  54. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  55. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  56. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  57. package/dist/esm-es5/ku4-form.entry.js +1 -1
  58. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  59. package/dist/esm-es5/ku4-label.entry.js +1 -1
  60. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  61. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  62. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  63. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  64. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  65. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  66. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  67. package/dist/esm-es5/ku4-table.entry.js +1 -1
  68. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  69. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  70. package/dist/esm-es5/ku4web-components.js +1 -1
  71. package/dist/esm-es5/loader.js +1 -1
  72. package/dist/esm-es5/{shadow-css-6763030b.js → shadow-css-e4879d51.js} +0 -0
  73. package/dist/ku4web-components/ku4web-components.esm.js +1 -1
  74. package/dist/ku4web-components/ku4web-components.js +1 -1
  75. package/dist/ku4web-components/{p-e4f68eae.system.entry.js → p-05a99806.system.entry.js} +1 -1
  76. package/dist/ku4web-components/{p-125bd18e.entry.js → p-0b2a3cfa.entry.js} +1 -1
  77. package/dist/ku4web-components/{p-961a30c5.system.entry.js → p-0cba397e.system.entry.js} +1 -1
  78. package/dist/ku4web-components/{p-d6a448ca.entry.js → p-0f4f858e.entry.js} +1 -1
  79. package/dist/ku4web-components/{p-bf64d160.system.entry.js → p-1357338f.system.entry.js} +1 -1
  80. package/dist/ku4web-components/{p-1ebacbe9.entry.js → p-142b7dce.entry.js} +1 -1
  81. package/dist/ku4web-components/{p-475a4157.system.js → p-158d613d.system.js} +1 -1
  82. package/dist/ku4web-components/{p-45e76c86.entry.js → p-18bb7b9b.entry.js} +1 -1
  83. package/dist/ku4web-components/{p-c7d12bf2.system.entry.js → p-2b88cb44.system.entry.js} +1 -1
  84. package/dist/ku4web-components/{p-ddd266bf.entry.js → p-49b9e642.entry.js} +1 -1
  85. package/dist/ku4web-components/{p-80624e03.system.entry.js → p-534f855b.system.entry.js} +1 -1
  86. package/dist/ku4web-components/{p-4d02829b.entry.js → p-567889f3.entry.js} +1 -1
  87. package/dist/ku4web-components/{p-cc0eb4db.entry.js → p-567c14ea.entry.js} +1 -1
  88. package/dist/ku4web-components/{p-eb4821f6.entry.js → p-5dc43516.entry.js} +1 -1
  89. package/dist/ku4web-components/{p-85c36a3e.system.js → p-622fa398.system.js} +0 -0
  90. package/dist/ku4web-components/{p-c99dc027.entry.js → p-66e49732.entry.js} +1 -1
  91. package/dist/ku4web-components/{p-4d4a49a4.system.entry.js → p-77b1edbc.system.entry.js} +1 -1
  92. package/dist/ku4web-components/{p-5a024700.system.entry.js → p-7c000b31.system.entry.js} +1 -1
  93. package/dist/ku4web-components/{p-ab80d126.entry.js → p-82c0ff4b.entry.js} +1 -1
  94. package/dist/ku4web-components/p-8319ab00.entry.js +1 -0
  95. package/dist/ku4web-components/{p-eb27616a.entry.js → p-8474fb5c.entry.js} +1 -1
  96. package/dist/ku4web-components/{p-3c2f545a.entry.js → p-9098ae6e.entry.js} +1 -1
  97. package/dist/ku4web-components/{p-52645384.js → p-934f94af.js} +2 -2
  98. package/dist/ku4web-components/{p-0b394531.system.entry.js → p-9be0de59.system.entry.js} +1 -1
  99. package/dist/ku4web-components/{p-bf5cd1f9.system.entry.js → p-ac260744.system.entry.js} +1 -1
  100. package/dist/ku4web-components/{p-b6d5f681.system.entry.js → p-ae65e754.system.entry.js} +1 -1
  101. package/dist/ku4web-components/p-b1ca85ef.system.entry.js +1 -0
  102. package/dist/ku4web-components/{p-8246983c.entry.js → p-b73da6fd.entry.js} +1 -1
  103. package/dist/ku4web-components/{p-b3083404.system.entry.js → p-bdf70b2e.system.entry.js} +1 -1
  104. package/dist/ku4web-components/{p-d3fdb931.entry.js → p-c1f37401.entry.js} +1 -1
  105. package/dist/ku4web-components/{p-543fea51.system.entry.js → p-caf84e52.system.entry.js} +1 -1
  106. package/dist/ku4web-components/{p-f58c2ed4.system.js → p-d12104ec.system.js} +1 -1
  107. package/dist/ku4web-components/{p-5c27da12.entry.js → p-d7103e97.entry.js} +1 -1
  108. package/dist/ku4web-components/{p-8cb960db.entry.js → p-ddb63577.entry.js} +1 -1
  109. package/dist/ku4web-components/{p-6d2cd66b.entry.js → p-e0f035a4.entry.js} +1 -1
  110. package/dist/ku4web-components/{p-77105e17.system.entry.js → p-e468ba85.system.entry.js} +1 -1
  111. package/dist/ku4web-components/{p-905e4aac.js → p-e9f93813.js} +0 -0
  112. package/dist/ku4web-components/{p-eaa6e688.system.entry.js → p-ec5d86de.system.entry.js} +1 -1
  113. package/dist/ku4web-components/{p-2d695081.system.entry.js → p-ef22004b.system.entry.js} +1 -1
  114. package/dist/ku4web-components/{p-5ae82777.entry.js → p-f2ac3124.entry.js} +1 -1
  115. package/dist/ku4web-components/{p-85fb65c1.system.entry.js → p-f9b280d3.system.entry.js} +1 -1
  116. package/dist/ku4web-components/{p-bd1c1486.entry.js → p-fbbfd0e9.entry.js} +1 -1
  117. package/dist/ku4web-components/{p-30c68717.system.entry.js → p-fc9d0277.system.entry.js} +1 -1
  118. package/dist/ku4web-components/{p-83add0bd.system.entry.js → p-fded7eeb.system.entry.js} +1 -1
  119. package/dist/ku4web-components/{p-ea032bb1.system.entry.js → p-ffe26c05.system.entry.js} +1 -1
  120. package/package.json +5 -6
  121. package/dist/ku4web-components/p-0c30e23a.entry.js +0 -1
  122. package/dist/ku4web-components/p-6d37f778.system.entry.js +0 -1
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return u([t,e])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(a){s=[6,a];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-733be374.js";import{K as Key}from"./index-bb8d5d62.js";import{u as uid}from"./uid-d593801c.js";import"./index-77bdf1f1.js";var ku4TabListCss=":host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}";var Ku4TabList=function(){function t(t){registerInstance(this,t)}t.prototype.handleTabClick=function(t){var e=t.target;this.tabs.includes(e)&&this.open(e)};t.prototype.handleTabKeyUp=function(t){var e=t.target,n=t.detail;if(!this.tabs.includes(e)){return}if(Key.left.didFire(n)){this.open(this.previous(e))}if(Key.right.didFire(n)){this.open(this.next(e))}};t.prototype.open=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.reset().select(t)]}))}))};t.prototype.select=function(t){t.select();return this};t.prototype.deselect=function(t){t.deselect();return this};t.prototype.reset=function(){var t=this;this.tabs.forEach((function(e){return t.deselect(e)}));return this};t.prototype.previous=function(t){var e=this,n=e.tabs,r=e.tabs.length;var i=n.indexOf(t)-1;return n[i>-1?i:r-1]};t.prototype.next=function(t){var e=this,n=e.tabs,r=e.tabs.length;var i=n.indexOf(t)+1;return n[i<r?i:0]};t.prototype.componentDidRender=function(){var t=[];var e=[];[].slice.call(this.host.children).forEach((function(n){if(n.tagName==="KU4-TAB"){t.push(n)}if(n.tagName==="KU4-TAB-PANEL"){e.push(n)}}));this.tabs=t;this.tabs.forEach((function(t,n){return t.connect(e[n])}))};t.prototype.render=function(){return h(Host,{id:this.host.id||uid(),role:"tablist","aria-owns":this.host.id||uid()},h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4TabList.style=ku4TabListCss;export{Ku4TabList as ku4_tab_list};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{u(r.next(t))}catch(e){o(e)}}function a(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(s,a)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return u([t,e])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(a){s=[6,a];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-765794a2.js";import{K as Key}from"./index-bb8d5d62.js";import{u as uid}from"./uid-d593801c.js";import"./index-77bdf1f1.js";var ku4TabListCss=":host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}";var Ku4TabList=function(){function t(t){registerInstance(this,t)}t.prototype.handleTabClick=function(t){var e=t.target;this.tabs.includes(e)&&this.open(e)};t.prototype.handleTabKeyUp=function(t){var e=t.target,n=t.detail;if(!this.tabs.includes(e)){return}if(Key.left.didFire(n)){this.open(this.previous(e))}if(Key.right.didFire(n)){this.open(this.next(e))}};t.prototype.open=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.reset().select(t)]}))}))};t.prototype.select=function(t){t.select();return this};t.prototype.deselect=function(t){t.deselect();return this};t.prototype.reset=function(){var t=this;this.tabs.forEach((function(e){return t.deselect(e)}));return this};t.prototype.previous=function(t){var e=this,n=e.tabs,r=e.tabs.length;var i=n.indexOf(t)-1;return n[i>-1?i:r-1]};t.prototype.next=function(t){var e=this,n=e.tabs,r=e.tabs.length;var i=n.indexOf(t)+1;return n[i<r?i:0]};t.prototype.componentDidRender=function(){var t=[];var e=[];[].slice.call(this.host.children).forEach((function(n){if(n.tagName==="KU4-TAB"){t.push(n)}if(n.tagName==="KU4-TAB-PANEL"){e.push(n)}}));this.tabs=t;this.tabs.forEach((function(t,n){return t.connect(e[n])}))};t.prototype.render=function(){return h(Host,{id:this.host.id||uid(),role:"tablist","aria-owns":this.host.id||uid()},h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4TabList.style=ku4TabListCss;export{Ku4TabList as ku4_tab_list};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(a,s)}l((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return l([t,e])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(s){a=[6,s];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-733be374.js";import{u as uid}from"./uid-d593801c.js";import"./index-77bdf1f1.js";var ku4TabPanelCss=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:auto}@media only screen and (min-width: 768px){:host{display:none;border-top:1px solid #ccc;border-bottom:1px solid #ccc;max-height:initial !important;-webkit-transition:none;transition:none;-ms-flex-order:2;order:2}:host([selected]){display:block;max-height:initial !important;-webkit-transition:none;transition:none}}";var Ku4TabPanel=function(){function t(t){registerInstance(this,t);this.selected=false;this.maxHeight=this.selected?"none":"0px"}t.prototype.handleTransitionEnd=function(){this.maxHeight=this.selected?"none":"0px"};t.prototype.select=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.selected){return[2]}this.selected=true;if(this.hasTransition){this.maxHeight="".concat(this.host.scrollHeight,"px")}else{this.handleTransitionEnd()}return[2]}))}))};t.prototype.deselect=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.selected){return[2]}this.selected=false;this.host.style.maxHeight="".concat(this.host.scrollHeight,"px");if(this.hasTransition){this.maxHeight="0px"}else{this.handleTransitionEnd()}return[2]}))}))};t.prototype.connect=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){t.$assignPanel(this);this.tab=t;return[2]}))}))};Object.defineProperty(t.prototype,"hasTransition",{get:function(){var t=window.getComputedStyle(this.host).getPropertyValue("transition");return!/none/.test(t)},enumerable:false,configurable:true});t.prototype.render=function(){var t=this,e=t.selected,n=t.tab,i=t.maxHeight;return h(Host,{role:"tabpanel",id:this.host.id||uid(),"aria-hidden":e?"false":"true","aria-labelledby":n&&n.id,tabIndex:e?0:-1,style:{maxHeight:i}},h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4TabPanel.style=ku4TabPanelCss;export{Ku4TabPanel as ku4_tab_panel};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(a,s)}l((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return l([t,e])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(s){a=[6,s];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-765794a2.js";import{u as uid}from"./uid-d593801c.js";import"./index-77bdf1f1.js";var ku4TabPanelCss=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:auto}@media only screen and (min-width: 768px){:host{display:none;border-top:1px solid #ccc;border-bottom:1px solid #ccc;max-height:initial !important;-webkit-transition:none;transition:none;-ms-flex-order:2;order:2}:host([selected]){display:block;max-height:initial !important;-webkit-transition:none;transition:none}}";var Ku4TabPanel=function(){function t(t){registerInstance(this,t);this.selected=false;this.maxHeight=this.selected?"none":"0px"}t.prototype.handleTransitionEnd=function(){this.maxHeight=this.selected?"none":"0px"};t.prototype.select=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.selected){return[2]}this.selected=true;if(this.hasTransition){this.maxHeight="".concat(this.host.scrollHeight,"px")}else{this.handleTransitionEnd()}return[2]}))}))};t.prototype.deselect=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.selected){return[2]}this.selected=false;this.host.style.maxHeight="".concat(this.host.scrollHeight,"px");if(this.hasTransition){this.maxHeight="0px"}else{this.handleTransitionEnd()}return[2]}))}))};t.prototype.connect=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){t.$assignPanel(this);this.tab=t;return[2]}))}))};Object.defineProperty(t.prototype,"hasTransition",{get:function(){var t=window.getComputedStyle(this.host).getPropertyValue("transition");return!/none/.test(t)},enumerable:false,configurable:true});t.prototype.render=function(){var t=this,e=t.selected,n=t.tab,i=t.maxHeight;return h(Host,{role:"tabpanel",id:this.host.id||uid(),"aria-hidden":e?"false":"true","aria-labelledby":n&&n.id,tabIndex:e?0:-1,style:{maxHeight:i}},h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4TabPanel.style=ku4TabPanelCss;export{Ku4TabPanel as ku4_tab_panel};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,r){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(e){i(e)}}function c(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?o(t.value):n(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(a){if(r)throw new TypeError("Generator is already executing.");while(o)try{if(r=1,n&&(i=a[0]&2?n["return"]:a[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;if(n=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;n=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1];i=a;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(a);break}if(i[2])o.ops.pop();o.trys.pop();continue}a=e.call(t,o)}catch(c){a=[6,c];n=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-733be374.js";import{u as uid}from"./uid-d593801c.js";import"./index-77bdf1f1.js";var ku4TabCss='button{margin:0;padding:0;border:none;background:transparent;-webkit-appearance:none}:host{position:relative;display:block;width:100%;padding:20px 30px;background-color:#eee;text-align:center;color:#aaa;cursor:pointer}:host(:focus){background-color:#eee;color:#666;z-index:2}:host(:hover){background-color:#eee;color:#666}:host(:active){background-color:#fff;color:#333}:host([selected]){border-top:1px solid #ccc;border-bottom:1px solid #ccc;background-color:#fff;color:#444}button{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}@media only screen and (min-width: 768px){:host{width:auto;border-top:1px solid #ccc;border-right:1px solid #ccc;border-top-left-radius:4px;border-top-right-radius:4px;background-color:#eee}:host(:first-of-type){border-left:1px solid #ccc}:host([selected]){padding-bottom:1px;border-top:1px solid #ccc;border-bottom:none}:host([selected]):after{content:" ";position:absolute;display:block;left:0;bottom:-1px;width:100%;height:1px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:inherit}}';var Ku4Tab=function(){function t(t){registerInstance(this,t);this.tabClick=createEvent(this,"ku4TabClick",7);this.tabKeyUp=createEvent(this,"ku4TabKeyup",7);this.selected=false}t.prototype.handleClick=function(t){this.tabClick.emit(t)};t.prototype.handleKeyUp=function(t){this.tabKeyUp.emit(t)};t.prototype.select=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.selected=true;this.panel.select();this.host.focus();return[2]}))}))};t.prototype.deselect=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.selected=false;this.panel.deselect();return[2]}))}))};t.prototype.connect=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){t.connect(this);return[2]}))}))};Object.defineProperty(t.prototype,"id",{get:function(){return this.host.id||uid()},enumerable:false,configurable:true});t.prototype.$assignPanel=function(t){this.panel=t};t.prototype.render=function(){var t=this,e=t.selected,o=t.panel;return h(Host,{id:this.host.id||uid(),role:"tab",type:"button",tabIndex:e?0:-1,"aria-controls":o&&o.id,"aria-selected":e?"true":"false"},h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4Tab.style=ku4TabCss;export{Ku4Tab as ku4_tab};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,r){function n(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(e){i(e)}}function c(t){try{s(r["throw"](t))}catch(e){i(e)}}function s(t){t.done?o(t.value):n(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return s([t,e])}}function s(a){if(r)throw new TypeError("Generator is already executing.");while(o)try{if(r=1,n&&(i=a[0]&2?n["return"]:a[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;if(n=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;n=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1];i=a;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(a);break}if(i[2])o.ops.pop();o.trys.pop();continue}a=e.call(t,o)}catch(c){a=[6,c];n=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-765794a2.js";import{u as uid}from"./uid-d593801c.js";import"./index-77bdf1f1.js";var ku4TabCss='button{margin:0;padding:0;border:none;background:transparent;-webkit-appearance:none}:host{position:relative;display:block;width:100%;padding:20px 30px;background-color:#eee;text-align:center;color:#aaa;cursor:pointer}:host(:focus){background-color:#eee;color:#666;z-index:2}:host(:hover){background-color:#eee;color:#666}:host(:active){background-color:#fff;color:#333}:host([selected]){border-top:1px solid #ccc;border-bottom:1px solid #ccc;background-color:#fff;color:#444}button{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}@media only screen and (min-width: 768px){:host{width:auto;border-top:1px solid #ccc;border-right:1px solid #ccc;border-top-left-radius:4px;border-top-right-radius:4px;background-color:#eee}:host(:first-of-type){border-left:1px solid #ccc}:host([selected]){padding-bottom:1px;border-top:1px solid #ccc;border-bottom:none}:host([selected]):after{content:" ";position:absolute;display:block;left:0;bottom:-1px;width:100%;height:1px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:inherit}}';var Ku4Tab=function(){function t(t){registerInstance(this,t);this.tabClick=createEvent(this,"ku4TabClick",7);this.tabKeyUp=createEvent(this,"ku4TabKeyup",7);this.selected=false}t.prototype.handleClick=function(t){this.tabClick.emit(t)};t.prototype.handleKeyUp=function(t){this.tabKeyUp.emit(t)};t.prototype.select=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.selected=true;this.panel.select();this.host.focus();return[2]}))}))};t.prototype.deselect=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.selected=false;this.panel.deselect();return[2]}))}))};t.prototype.connect=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){t.connect(this);return[2]}))}))};Object.defineProperty(t.prototype,"id",{get:function(){return this.host.id||uid()},enumerable:false,configurable:true});t.prototype.$assignPanel=function(t){this.panel=t};t.prototype.render=function(){var t=this,e=t.selected,o=t.panel;return h(Host,{id:this.host.id||uid(),role:"tab",type:"button",tabIndex:e?0:-1,"aria-controls":o&&o.id,"aria-selected":e?"true":"false"},h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4Tab.style=ku4TabCss;export{Ku4Tab as ku4_tab};
@@ -1 +1 @@
1
- import{r as registerInstance,h,g as getElement}from"./index-733be374.js";var ku4TableCss="ku4-table{position:relative;display:block}@media only screen and (min-width: 1px) and (max-width: 767px){@supports (display: contents){ku4-table[stack-xs=column] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-xs=column] thead,ku4-table[stack-xs=column] tbody,ku4-table[stack-xs=column] tfoot,ku4-table[stack-xs=column] tr{display:contents}ku4-table[stack-xs=column] thead .ku4-head-header{display:none}ku4-table[stack-xs=column] tbody th,ku4-table[stack-xs=column] tfoot th{position:absolute;display:block;width:0;height:0;margin:0;padding:0;line-height:0;font-size:0}ku4-table[stack-xs=column] tbody td,ku4-table[stack-xs=column] tfoot td{display:-ms-flexbox;display:flex}ku4-table[stack-xs=column] tbody td:before,ku4-table[stack-xs=column] tfoot td:before{content:attr(data-ku4-row-header)}}ku4-table[stack-xs=row] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-xs=row] thead th,ku4-table[stack-xs=row] thead td{display:none}ku4-table[stack-xs=row] thead,ku4-table[stack-xs=row] tbody,ku4-table[stack-xs=row] tfoot,ku4-table[stack-xs=row] tr,ku4-table[stack-xs=row] th,ku4-table[stack-xs=row] td{display:block}ku4-table[stack-xs=row] tbody td:before,ku4-table[stack-xs=row] tfoot td:before{content:attr(data-ku4-column-header)}}@media only screen and (min-width: 768px) and (max-width: 991px){@supports (display: contents){ku4-table[stack-sm=column] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-sm=column] thead,ku4-table[stack-sm=column] tbody,ku4-table[stack-sm=column] tfoot,ku4-table[stack-sm=column] tr{display:contents}ku4-table[stack-sm=column] thead .ku4-head-header{display:none}ku4-table[stack-sm=column] tbody th,ku4-table[stack-sm=column] tfoot th{position:absolute;display:block;width:0;height:0;margin:0;padding:0;line-height:0;font-size:0}ku4-table[stack-sm=column] tbody td,ku4-table[stack-sm=column] tfoot td{display:-ms-flexbox;display:flex}ku4-table[stack-sm=column] tbody td:before,ku4-table[stack-sm=column] tfoot td:before{content:attr(data-ku4-row-header)}}ku4-table[stack-sm=row] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-sm=row] thead th,ku4-table[stack-sm=row] thead td{display:none}ku4-table[stack-sm=row] thead,ku4-table[stack-sm=row] tbody,ku4-table[stack-sm=row] tfoot,ku4-table[stack-sm=row] tr,ku4-table[stack-sm=row] th,ku4-table[stack-sm=row] td{display:block}ku4-table[stack-sm=row] tbody td:before,ku4-table[stack-sm=row] tfoot td:before{content:attr(data-ku4-column-header)}}";var Ku4Table=function(){function t(t){registerInstance(this,t);this.stackXs="";this.stackSm=""}t.prototype.stack=function(){var t=[].slice.call(this.host.querySelectorAll("thead th"));var e=[].slice.call(this.host.querySelectorAll("tbody th"));var a=[].slice.call(this.host.querySelectorAll("tfoot th"));var o=e.length>0;var s=this.host.querySelector("thead tr :first-child");if(o){s.classList.add("ku4-head-header")}t.forEach((function(t,e){t.style.order=e+!o}));[].slice.call(this.host.querySelectorAll("tbody tr")).forEach((function(a,s){[].slice.call(a.querySelectorAll("td")).forEach((function(a,l){a.style.order=l+1;try{var c=t[l+o];var r=e[s];a.setAttribute("data-ku4-column-header",c.getAttribute("data-ku4-stack-header")||c.textContent);a.setAttribute("data-ku4-row-header",r.getAttribute("data-ku4-stack-header")||r.textContent)}catch(u){}}))}));[].slice.call(this.host.querySelectorAll("tfoot tr")).forEach((function(e,s){[].slice.call(e.querySelectorAll("td")).forEach((function(e,l){e.style.order=l+1;try{var c=t[l+o];var r=a[s];e.setAttribute("data-ku4-column-header",c.getAttribute("data-ku4-stack-header")||c.textContent);e.setAttribute("data-ku4-row-header",r.getAttribute("data-ku4-stack-header")||r.textContent)}catch(u){}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.stack();this.mutationObserver=new MutationObserver((function(){return t.stack()}));this.mutationObserver.observe(this.host,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){try{this.mutationObserver.disconnect()}catch(t){}};t.prototype.render=function(){return h("slot",null)};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4Table.style=ku4TableCss;export{Ku4Table as ku4_table};
1
+ import{r as registerInstance,h,g as getElement}from"./index-765794a2.js";var ku4TableCss="ku4-table{position:relative;display:block}@media only screen and (min-width: 1px) and (max-width: 767px){@supports (display: contents){ku4-table[stack-xs=column] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-xs=column] thead,ku4-table[stack-xs=column] tbody,ku4-table[stack-xs=column] tfoot,ku4-table[stack-xs=column] tr{display:contents}ku4-table[stack-xs=column] thead .ku4-head-header{display:none}ku4-table[stack-xs=column] tbody th,ku4-table[stack-xs=column] tfoot th{position:absolute;display:block;width:0;height:0;margin:0;padding:0;line-height:0;font-size:0}ku4-table[stack-xs=column] tbody td,ku4-table[stack-xs=column] tfoot td{display:-ms-flexbox;display:flex}ku4-table[stack-xs=column] tbody td:before,ku4-table[stack-xs=column] tfoot td:before{content:attr(data-ku4-row-header)}}ku4-table[stack-xs=row] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-xs=row] thead th,ku4-table[stack-xs=row] thead td{display:none}ku4-table[stack-xs=row] thead,ku4-table[stack-xs=row] tbody,ku4-table[stack-xs=row] tfoot,ku4-table[stack-xs=row] tr,ku4-table[stack-xs=row] th,ku4-table[stack-xs=row] td{display:block}ku4-table[stack-xs=row] tbody td:before,ku4-table[stack-xs=row] tfoot td:before{content:attr(data-ku4-column-header)}}@media only screen and (min-width: 768px) and (max-width: 991px){@supports (display: contents){ku4-table[stack-sm=column] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-sm=column] thead,ku4-table[stack-sm=column] tbody,ku4-table[stack-sm=column] tfoot,ku4-table[stack-sm=column] tr{display:contents}ku4-table[stack-sm=column] thead .ku4-head-header{display:none}ku4-table[stack-sm=column] tbody th,ku4-table[stack-sm=column] tfoot th{position:absolute;display:block;width:0;height:0;margin:0;padding:0;line-height:0;font-size:0}ku4-table[stack-sm=column] tbody td,ku4-table[stack-sm=column] tfoot td{display:-ms-flexbox;display:flex}ku4-table[stack-sm=column] tbody td:before,ku4-table[stack-sm=column] tfoot td:before{content:attr(data-ku4-row-header)}}ku4-table[stack-sm=row] table{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}ku4-table[stack-sm=row] thead th,ku4-table[stack-sm=row] thead td{display:none}ku4-table[stack-sm=row] thead,ku4-table[stack-sm=row] tbody,ku4-table[stack-sm=row] tfoot,ku4-table[stack-sm=row] tr,ku4-table[stack-sm=row] th,ku4-table[stack-sm=row] td{display:block}ku4-table[stack-sm=row] tbody td:before,ku4-table[stack-sm=row] tfoot td:before{content:attr(data-ku4-column-header)}}";var Ku4Table=function(){function t(t){registerInstance(this,t);this.stackXs="";this.stackSm=""}t.prototype.stack=function(){var t=[].slice.call(this.host.querySelectorAll("thead th"));var e=[].slice.call(this.host.querySelectorAll("tbody th"));var a=[].slice.call(this.host.querySelectorAll("tfoot th"));var o=e.length>0;var s=this.host.querySelector("thead tr :first-child");if(o){s.classList.add("ku4-head-header")}t.forEach((function(t,e){t.style.order=e+!o}));[].slice.call(this.host.querySelectorAll("tbody tr")).forEach((function(a,s){[].slice.call(a.querySelectorAll("td")).forEach((function(a,l){a.style.order=l+1;try{var c=t[l+o];var r=e[s];a.setAttribute("data-ku4-column-header",c.getAttribute("data-ku4-stack-header")||c.textContent);a.setAttribute("data-ku4-row-header",r.getAttribute("data-ku4-stack-header")||r.textContent)}catch(u){}}))}));[].slice.call(this.host.querySelectorAll("tfoot tr")).forEach((function(e,s){[].slice.call(e.querySelectorAll("td")).forEach((function(e,l){e.style.order=l+1;try{var c=t[l+o];var r=a[s];e.setAttribute("data-ku4-column-header",c.getAttribute("data-ku4-stack-header")||c.textContent);e.setAttribute("data-ku4-row-header",r.getAttribute("data-ku4-stack-header")||r.textContent)}catch(u){}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.stack();this.mutationObserver=new MutationObserver((function(){return t.stack()}));this.mutationObserver.observe(this.host,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){try{this.mutationObserver.disconnect()}catch(t){}};t.prototype.render=function(){return h("slot",null)};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4Table.style=ku4TableCss;export{Ku4Table as ku4_table};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,o,e,i){function n(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{h(i.next(t))}catch(o){r(o)}}function a(t){try{h(i["throw"](t))}catch(o){r(o)}}function h(t){t.done?e(t.value):n(t.value).then(s,a)}h((i=i.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(o){return h([t,o])}}function h(s){if(i)throw new TypeError("Generator is already executing.");while(e)try{if(i=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;n=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1];r=s;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(s);break}if(r[2])e.ops.pop();e.trys.pop();continue}s=o.call(t,e)}catch(a){s=[6,a];n=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-733be374.js";import{C,j,M}from"./index-77bdf1f1.js";var ku4TooltipCss=":host{position:fixed;display:none;opacity:0;z-index:2;background-color:#fff;border:solid 1px #ccc}:host([visible]){display:block;opacity:1;-webkit-transition:opacity 0.4s;transition:opacity 0.4s}:host .arrow{position:absolute;width:var(--ku4-tooltip-arrow-size, 14px);height:var(--ku4-tooltip-arrow-size, 14px);background-color:inherit;-webkit-transform:rotate(45deg);transform:rotate(45deg);border:inherit;-webkit-box-shadow:var(--ku4-tooltip-arrow-box-shadow, none);box-shadow:var(--ku4-tooltip-arrow-box-shadow, none)}:host .content{position:relative}:host([top]) .arrow{top:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-left:none !important}:host([left]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-left:none !important;border-bottom:none !important}:host([bottom]) .arrow{left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));bottom:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-bottom:none !important;border-right:none !important}:host([right]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));right:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-right:none !important}";var Ku4Tooltip=function(){function t(t){registerInstance(this,t);this.isShowing=false;this.show=this.show.bind(this);this.hide=this.hide.bind(this);this._show=this._show.bind(this);this._hide=this._hide.bind(this);this._toggle=this._toggle.bind(this);this.hideTimeout=new C(200).onTimeout(this._hide)}t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.hideTimeout.clear();if(this.host.contains(t)){return[2]}else{this.isShowing=true;this.host.setAttribute("visible","true");this.calcualatePosition(t);this.scrollListener=j((function(){return o.calcualatePosition(t)}));window.addEventListener("scroll",this.scrollListener,{passive:true})}return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.hideTimeout.clear().start();return[2]}))}))};t.prototype._show=function(t){this.show(t.target)};t.prototype._hide=function(){window.removeEventListener("scroll",this.scrollListener);this.host.removeAttribute("visible");this.isShowing=false};t.prototype._toggle=function(t){this.isShowing?this._hide():this._show(t)};t.prototype.calcualatePosition=function(t){var o=t.getBoundingClientRect(),e=o.left,i=o.top,n=o.width,r=o.height;var s=this.host.getBoundingClientRect(),a=s.left,h=s.top,l=s.width,c=s.height;var u=new M(e,i,n,r);var p=new M(a,h,l,c);if(this.top){this.host.style.left="".concat(u.origin.x+u.dimensions.x/2-p.dimensions.x/2,"px");this.host.style.top="".concat(u.origin.y-p.dimensions.y-15,"px")}else if(this.left){this.host.style.left="".concat(u.origin.x-p.dimensions.x-15,"px");this.host.style.top="".concat(u.origin.y+u.dimensions.y/2-p.dimensions.y/2,"px")}else if(this.bottom){this.host.style.left="".concat(u.origin.x+u.dimensions.x/2-p.dimensions.x/2,"px");this.host.style.top="".concat(u.origin.y+u.dimensions.y+15,"px")}else if(this.right){this.host.style.left="".concat(u.origin.x+u.dimensions.x+15,"px");this.host.style.top="".concat(u.origin.y+u.dimensions.y/2-p.dimensions.y/2,"px")}else{this.host.style.left="".concat(u.origin.x+u.dimensions.x/2-p.dimensions.x/2,"px");this.host.style.top="".concat(u.origin.y+u.dimensions.y+15,"px")}};t.prototype.componentWillLoad=function(){var t=this;var o=this,e=o.debug,i=o.element,n=o.host,r=o.top,s=o.left,a=o.bottom,h=o.right;if(!(r||s||a||h)){this.host.setAttribute("bottom","")}document.querySelectorAll(i).forEach((function(o){n.addEventListener("mouseover",t._show);o.addEventListener("mouseover",t._show);o.addEventListener("touchstart",t._toggle,{passive:true});if(e){return}n.addEventListener("mouseout",t.hide);o.addEventListener("mouseout",t.hide)}))};t.prototype.disconnectedCallback=function(){var t=this;var o=this,e=o.debug,i=o.element,n=o.hideTimeout,r=o.host;document.querySelectorAll(i).forEach((function(o){r.removeEventListener("mouseover",t._show);o.removeEventListener("mouseover",t._show);o.removeEventListener("touchstart",t._toggle);if(e){return}r.removeEventListener("mouseout",t.hide);o.removeEventListener("mouseout",t.hide)}));n.clear()};t.prototype.render=function(){return h(Host,{role:"tooltip"},h("div",{class:"arrow"}),h("div",{class:"content"},h("slot",null)))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4Tooltip.style=ku4TooltipCss;export{Ku4Tooltip as ku4_tooltip};
1
+ var __awaiter=this&&this.__awaiter||function(t,o,e,i){function n(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{h(i.next(t))}catch(o){r(o)}}function a(t){try{h(i["throw"](t))}catch(o){r(o)}}function h(t){t.done?e(t.value):n(t.value).then(s,a)}h((i=i.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(o){return h([t,o])}}function h(s){if(i)throw new TypeError("Generator is already executing.");while(e)try{if(i=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;n=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1];r=s;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(s);break}if(r[2])e.ops.pop();e.trys.pop();continue}s=o.call(t,e)}catch(a){s=[6,a];n=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host,g as getElement}from"./index-765794a2.js";import{C,j,M}from"./index-77bdf1f1.js";var ku4TooltipCss=":host{position:fixed;display:none;opacity:0;z-index:2;background-color:#fff;border:solid 1px #ccc}:host([visible]){display:block;opacity:1;-webkit-transition:opacity 0.4s;transition:opacity 0.4s}:host .arrow{position:absolute;width:var(--ku4-tooltip-arrow-size, 14px);height:var(--ku4-tooltip-arrow-size, 14px);background-color:inherit;-webkit-transform:rotate(45deg);transform:rotate(45deg);border:inherit;-webkit-box-shadow:var(--ku4-tooltip-arrow-box-shadow, none);box-shadow:var(--ku4-tooltip-arrow-box-shadow, none)}:host .content{position:relative}:host([top]) .arrow{top:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-left:none !important}:host([left]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));left:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-left:none !important;border-bottom:none !important}:host([bottom]) .arrow{left:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));bottom:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-bottom:none !important;border-right:none !important}:host([right]) .arrow{top:calc(50% - var(--ku4-tooltip-arrow-offset, 7px));right:calc(100% - var(--ku4-tooltip-arrow-offset, 7px));border-top:none !important;border-right:none !important}";var Ku4Tooltip=function(){function t(t){registerInstance(this,t);this.isShowing=false;this.show=this.show.bind(this);this.hide=this.hide.bind(this);this._show=this._show.bind(this);this._hide=this._hide.bind(this);this._toggle=this._toggle.bind(this);this.hideTimeout=new C(200).onTimeout(this._hide)}t.prototype.show=function(t){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.hideTimeout.clear();if(this.host.contains(t)){return[2]}else{this.isShowing=true;this.host.setAttribute("visible","true");this.calcualatePosition(t);this.scrollListener=j((function(){return o.calcualatePosition(t)}));window.addEventListener("scroll",this.scrollListener,{passive:true})}return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.hideTimeout.clear().start();return[2]}))}))};t.prototype._show=function(t){this.show(t.target)};t.prototype._hide=function(){window.removeEventListener("scroll",this.scrollListener);this.host.removeAttribute("visible");this.isShowing=false};t.prototype._toggle=function(t){this.isShowing?this._hide():this._show(t)};t.prototype.calcualatePosition=function(t){var o=t.getBoundingClientRect(),e=o.left,i=o.top,n=o.width,r=o.height;var s=this.host.getBoundingClientRect(),a=s.left,h=s.top,l=s.width,c=s.height;var u=new M(e,i,n,r);var p=new M(a,h,l,c);if(this.top){this.host.style.left="".concat(u.origin.x+u.dimensions.x/2-p.dimensions.x/2,"px");this.host.style.top="".concat(u.origin.y-p.dimensions.y-15,"px")}else if(this.left){this.host.style.left="".concat(u.origin.x-p.dimensions.x-15,"px");this.host.style.top="".concat(u.origin.y+u.dimensions.y/2-p.dimensions.y/2,"px")}else if(this.bottom){this.host.style.left="".concat(u.origin.x+u.dimensions.x/2-p.dimensions.x/2,"px");this.host.style.top="".concat(u.origin.y+u.dimensions.y+15,"px")}else if(this.right){this.host.style.left="".concat(u.origin.x+u.dimensions.x+15,"px");this.host.style.top="".concat(u.origin.y+u.dimensions.y/2-p.dimensions.y/2,"px")}else{this.host.style.left="".concat(u.origin.x+u.dimensions.x/2-p.dimensions.x/2,"px");this.host.style.top="".concat(u.origin.y+u.dimensions.y+15,"px")}};t.prototype.componentWillLoad=function(){var t=this;var o=this,e=o.debug,i=o.element,n=o.host,r=o.top,s=o.left,a=o.bottom,h=o.right;if(!(r||s||a||h)){this.host.setAttribute("bottom","")}document.querySelectorAll(i).forEach((function(o){n.addEventListener("mouseover",t._show);o.addEventListener("mouseover",t._show);o.addEventListener("touchstart",t._toggle,{passive:true});if(e){return}n.addEventListener("mouseout",t.hide);o.addEventListener("mouseout",t.hide)}))};t.prototype.disconnectedCallback=function(){var t=this;var o=this,e=o.debug,i=o.element,n=o.hideTimeout,r=o.host;document.querySelectorAll(i).forEach((function(o){r.removeEventListener("mouseover",t._show);o.removeEventListener("mouseover",t._show);o.removeEventListener("touchstart",t._toggle);if(e){return}r.removeEventListener("mouseout",t.hide);o.removeEventListener("mouseout",t.hide)}));n.clear()};t.prototype.render=function(){return h(Host,{role:"tooltip"},h("div",{class:"arrow"}),h("div",{class:"content"},h("slot",null)))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Ku4Tooltip.style=ku4TooltipCss;export{Ku4Tooltip as ku4_tooltip};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function a(t){try{o(n.next(t))}catch(e){r(e)}}function l(t){try{o(n["throw"](t))}catch(e){r(e)}}function o(t){t.done?i(t.value):s(t.value).then(a,l)}o((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(t){return function(e){return o([t,e])}}function o(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,s&&(r=a[0]&2?s["return"]:a[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;if(s=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(l){a=[6,l];s=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-733be374.js";import{t,R,Y}from"./index-77bdf1f1.js";var validate=function(t,e,i,n){return i?i.some((function(t){return t===e}))&&t.every((function(t){return t.test(e)})):n?n.value===e&&t.every((function(t){return t.test(e)})):t.every((function(t){return t.test(e)}))};var ku4ValidationCss=":host{visibility:hidden !important}:host([invalid]){visibility:visible !important}:host([disabled]){visibility:hidden !important}:host([invalid][disabled]){visibility:hidden !important}:host([invalid][hidden]){visibility:hidden !important}";var Ku4Validation=function(){function e(e){registerInstance(this,e);this.didValidate=createEvent(this,"validate",7);this.pattern=".*";this.flags="";this.method="";var i=this.pattern.split(" ");var n=this.flags.split(" ");var s=this.method.trim();this.regex=i.map((function(t,e){return new RegExp(t,n[e])}));this.validationMethod=t.isNullOrEmpty(s)?function(){return true}:new Function("value",/^return/.test(s)?s:"return ".concat(s));this.handleInput=this.handleInput.bind(this);this.handleChange=this.handleChange.bind(this);this.handleBlur=this.handleBlur.bind(this);this.handleReset=this.handleReset.bind(this)}e.prototype.validate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.assert()]}))}))};e.prototype.handleInput=function(){(this.input.type==="file"||t.isFalse(this.isValid))&&this.assert()};e.prototype.handleChange=function(){(this.input.type==="file"||t.isFalse(this.isValid))&&this.assert()};e.prototype.handleBlur=function(){this.assert()};e.prototype.handleReset=function(){this.isValid=true;this.invalid=!this.isValid;this.input.setAttribute("aria-invalid",this.invalid)};e.prototype.assert=function(){var e=this,i=e.ele,n=e.validOptions,s=e.input,r=e.regex,a=e.checked;if(s.type==="file"&&t.isNullOrEmpty(s.value)){return}var l=this.isValid;this.isValid=this.disabled?true:t.isBool(a)?s.checked===a:validate(r,s.value,n,i)&&this.validationMethod(s.value);this.invalid=!this.isValid;s.setAttribute("aria-invalid",this.invalid);if(t.isFalse(l)&&this.isValid){this.didValidate.emit(this.isValid)}return this.isValid};e.prototype.componentWillLoad=function(){var e=this;this.input=document.getElementById(this.for);if(t.exists(this.input)){this.ele=document.getElementById(this.element)||document.querySelector(this.element);this.validOptions=t.exists(this.values)?this.values.split(","):this.ele&&this.ele.nodeName==="DATALIST"&&[].slice.call(this.ele.querySelectorAll("option")).map((function(t){return t.value}));var i=this.input.getAttribute("aria-describedby");var n=this.host.getAttribute("id")||R.uid();this.host.setAttribute("id",n);if(t.isNullOrEmpty(i)){this.input.setAttribute("aria-describedby",n)}Y(0).then((function(){e.input.addEventListener("input",e.handleInput);e.input.addEventListener("change",e.handleChange);e.input.addEventListener("blur",e.handleBlur)}));if(t.isFunction(this.host.closest)){this.form=this.host.closest("form");if(this.form&&this.form.addEventListener){this.form.addEventListener("reset",this.handleReset)}}}else{console.error("ku4-validation must have a valid `for` referencing target field `id`.")}};e.prototype.disconnectedCallback=function(){if(this.input&&this.input.removeEventListener){this.input.removeEventListener("input",this.handleInput);this.input.removeEventListener("change",this.handleChange);this.input.removeEventListener("blur",this.handleBlur)}if(this.form&&this.form.removeEventListener){this.form.removeEventListener("reset",this.handleReset)}};e.prototype.render=function(){return h(Host,{role:"alert","aria-live":"assertive"},h("slot",null))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Ku4Validation.style=ku4ValidationCss;export{Ku4Validation as ku4_validation};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function a(t){try{l(n.next(t))}catch(e){s(e)}}function o(t){try{l(n["throw"](t))}catch(e){s(e)}}function l(t){t.done?i(t.value):r(t.value).then(a,o)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(e){return l([t,e])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(a[0]===6&&i.label<s[1]){i.label=s[1];s=a;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(a);break}if(s[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(o){a=[6,o];r=0}finally{n=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-765794a2.js";import{t,R,Y}from"./index-77bdf1f1.js";var validate=function(t,e,i,n){return i?i.some((function(t){return t===e}))&&(t||[]).every((function(t){return t.test(e)})):n?n.value===e&&(t||[]).every((function(t){return t.test(e)})):(t||[]).every((function(t){return t.test(e)}))};var ku4ValidationCss=":host{visibility:hidden !important}:host([invalid]){visibility:visible !important}:host([disabled]){visibility:hidden !important}:host([invalid][disabled]){visibility:hidden !important}:host([invalid][hidden]){visibility:hidden !important}";var Ku4Validation=function(){function e(e){registerInstance(this,e);this.didValidate=createEvent(this,"validate",7);this.pattern=".*";this.flags="";this.method="";var i=this.pattern.split(" ");var n=this.flags.split(" ");var r=t.isString(this.method)?this.method.trim():this.method;this.regex=i.map((function(t,e){return new RegExp(t,n[e])}));this.validationMethod=t.isNullOrEmpty(r)?function(){return true}:t.isString(r)?new Function("value, input, form",/^return/.test(r)?r:"return ".concat(r)):t.isFunction(r)?r:function(){return true};this.handleInput=this.handleInput.bind(this);this.handleChange=this.handleChange.bind(this);this.handleBlur=this.handleBlur.bind(this);this.handleReset=this.handleReset.bind(this)}e.prototype.validate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.assert()];case 1:return[2,t.sent()]}}))}))};e.prototype.handleInput=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:e=this.input.type==="file"||t.isFalse(this.isValid);if(!e)return[3,2];return[4,this.assert()];case 1:e=i.sent();i.label=2;case 2:e;return[2]}}))}))};e.prototype.handleChange=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:e=this.input.type==="file"||t.isFalse(this.isValid);if(!e)return[3,2];return[4,this.assert()];case 1:e=i.sent();i.label=2;case 2:e;return[2]}}))}))};e.prototype.handleBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.assert()];case 1:t.sent();return[2]}}))}))};e.prototype.handleReset=function(){this.isValid=true;this.invalid=!this.isValid;this.input.setAttribute("aria-invalid",this.invalid)};e.prototype.assert=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n,r,s,a,o,l,u,h,d,c;return __generator(this,(function(f){switch(f.label){case 0:e=this,i=e.ele,n=e.validOptions,r=e.input,s=e.regex,a=e.checked,o=e.form;if(r.type==="file"&&t.isNullOrEmpty(r.value)){return[2]}l=this.isValid;u=this;if(!this.disabled)return[3,1];h=true;return[3,6];case 1:if(!t.isBool(a))return[3,2];d=r.checked===a;return[3,5];case 2:c=validate(s,r.value,n,i);if(!c)return[3,4];return[4,this.validationMethod(r.value,r,o)];case 3:c=f.sent();f.label=4;case 4:d=c;f.label=5;case 5:h=d;f.label=6;case 6:u.isValid=h;this.invalid=!this.isValid;r.setAttribute("aria-invalid",this.invalid);if(t.isFalse(l)&&this.isValid){this.didValidate.emit(this.isValid)}return[2,this.isValid]}}))}))};e.prototype.componentWillLoad=function(){var e=this;this.input=document.getElementById(this.for);if(t.exists(this.input)){this.ele=document.getElementById(this.element)||document.querySelector(this.element);this.validOptions=t.exists(this.values)?this.values.split(","):this.ele&&this.ele.nodeName==="DATALIST"&&[].slice.call(this.ele.querySelectorAll("option")).map((function(t){return t.value}));var i=this.input.getAttribute("aria-describedby");var n=this.host.getAttribute("id")||R.uid();this.host.setAttribute("id",n);if(t.isNullOrEmpty(i)){this.input.setAttribute("aria-describedby",n)}Y(0).then((function(){e.input.addEventListener("input",e.handleInput);e.input.addEventListener("change",e.handleChange);e.input.addEventListener("blur",e.handleBlur)}));if(t.isFunction(this.host.closest)){this.form=this.host.closest("form");if(this.form&&this.form.addEventListener){this.form.addEventListener("reset",this.handleReset)}}}else{console.error("ku4-validation must have a valid `for` referencing target field `id`.")}};e.prototype.disconnectedCallback=function(){if(this.input&&this.input.removeEventListener){this.input.removeEventListener("input",this.handleInput);this.input.removeEventListener("change",this.handleChange);this.input.removeEventListener("blur",this.handleBlur)}if(this.form&&this.form.removeEventListener){this.form.removeEventListener("reset",this.handleReset)}};e.prototype.render=function(){return h(Host,{role:"alert","aria-live":"assertive"},h("slot",null))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();Ku4Validation.style=ku4ValidationCss;export{Ku4Validation as ku4_validation};
@@ -1 +1 @@
1
- import{d as doc,N as NAMESPACE,w as win,p as promiseResolve,b as bootstrapLazy}from"./index-733be374.js";var patchBrowser=function(){var e=Array.from(doc.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(NAMESPACE,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===NAMESPACE}));var t={};if("onbeforeload"in e&&!history.scrollRestoration){return{then:function(){}}}{t.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,win.location.href)).href}return promiseResolve(t)};patchBrowser().then((function(e){return bootstrapLazy([["ku4-carousel",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["ku4-carousel-controls",[[1,"ku4-carousel-controls",{for:[1]}]]],["ku4-carousel-slide",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["ku4-col",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["ku4-drawer",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["ku4-feature",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["ku4-focus-trap",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["ku4-form",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["ku4-grid",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["ku4-label",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["ku4-mask",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["ku4-modal",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["ku4-panel",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-preview",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["ku4-tab",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["ku4-tab-list",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["ku4-tab-panel",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-table",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["ku4-tooltip",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["ku4-validation",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],e)}));
1
+ import{d as doc,N as NAMESPACE,w as win,p as promiseResolve,b as bootstrapLazy}from"./index-765794a2.js";var patchBrowser=function(){var e=Array.from(doc.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(NAMESPACE,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===NAMESPACE}));var t={};if("onbeforeload"in e&&!history.scrollRestoration){return{then:function(){}}}{t.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,win.location.href)).href}return promiseResolve(t)};patchBrowser().then((function(e){return bootstrapLazy([["ku4-carousel",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["ku4-carousel-controls",[[1,"ku4-carousel-controls",{for:[1]}]]],["ku4-carousel-slide",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["ku4-col",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["ku4-drawer",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["ku4-feature",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["ku4-focus-trap",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["ku4-form",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["ku4-grid",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["ku4-label",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["ku4-mask",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["ku4-modal",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["ku4-panel",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-preview",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["ku4-tab",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["ku4-tab-list",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["ku4-tab-panel",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-table",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["ku4-tooltip",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["ku4-validation",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],e)}));
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-733be374.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["ku4-carousel",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["ku4-carousel-controls",[[1,"ku4-carousel-controls",{for:[1]}]]],["ku4-carousel-slide",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["ku4-col",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["ku4-drawer",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["ku4-feature",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["ku4-focus-trap",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["ku4-form",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["ku4-grid",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["ku4-label",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["ku4-mask",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["ku4-modal",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["ku4-panel",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-preview",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["ku4-tab",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["ku4-tab-list",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["ku4-tab-panel",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-table",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["ku4-tooltip",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["ku4-validation",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],t)}))};export{defineCustomElements};
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-765794a2.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["ku4-carousel",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["ku4-carousel-controls",[[1,"ku4-carousel-controls",{for:[1]}]]],["ku4-carousel-slide",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["ku4-col",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["ku4-drawer",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["ku4-feature",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["ku4-focus-trap",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["ku4-form",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["ku4-grid",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["ku4-label",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["ku4-mask",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["ku4-modal",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["ku4-panel",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-preview",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["ku4-tab",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["ku4-tab-list",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["ku4-tab-panel",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["ku4-table",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["ku4-tooltip",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["ku4-validation",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],t)}))};export{defineCustomElements};
@@ -1 +1 @@
1
- import{d as e,N as t,w as s,p as a,b as o}from"./p-52645384.js";(()=>{const o=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),l={};return"onbeforeload"in o&&!history.scrollRestoration?{then(){}}:(l.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,s.location.href)).href,a(l))})().then((e=>o([["p-eb27616a",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["p-4d02829b",[[1,"ku4-carousel-controls",{for:[1]}]]],["p-8246983c",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["p-bd1c1486",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["p-45e76c86",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["p-cc0eb4db",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["p-125bd18e",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["p-d3fdb931",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["p-6d2cd66b",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["p-1ebacbe9",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["p-d6a448ca",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["p-ab80d126",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["p-eb4821f6",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-c99dc027",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["p-5c27da12",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["p-8cb960db",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["p-ddd266bf",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-3c2f545a",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["p-5ae82777",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["p-0c30e23a",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],e)));
1
+ import{d as e,N as t,w as s,p as a,b as o}from"./p-934f94af.js";(()=>{const o=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${t}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===t)),l={};return"onbeforeload"in o&&!history.scrollRestoration?{then(){}}:(l.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,s.location.href)).href,a(l))})().then((e=>o([["p-8474fb5c",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["p-567889f3",[[1,"ku4-carousel-controls",{for:[1]}]]],["p-b73da6fd",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["p-fbbfd0e9",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["p-18bb7b9b",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["p-567c14ea",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["p-0b2a3cfa",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["p-c1f37401",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["p-e0f035a4",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["p-142b7dce",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["p-0f4f858e",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["p-82c0ff4b",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["p-5dc43516",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-66e49732",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["p-d7103e97",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["p-ddb63577",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["p-49b9e642",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-9098ae6e",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["p-f2ac3124",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["p-8319ab00",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],e)));
@@ -115,7 +115,7 @@ DOMTokenList
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
117
  // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
118
- var url = new URL('./p-475a4157.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
118
+ var url = new URL('./p-158d613d.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
119
  System.import(url.href);
120
120
  };
121
121
 
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(s){a=[6,s];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-f58c2ed4.system.js","./p-563d1517.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.r;n=e.h;r=e.g},function(e){i=e.t}],execute:function(){var o=':host{position:relative;display:block}input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:20px;height:20px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}input[type=radio]:checked:after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;background-color:#333}';var a=e("ku4_carousel_controls",function(){function e(e){t(this,e);this.carousel=document.getElementById(this.for);this.handleSlide=this.handleSlide.bind(this);this.handleChange=this.handleChange.bind(this)}Object.defineProperty(e.prototype,"slides",{get:function(){return[].slice.call(this.carousel.children)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"controls",{get:function(){return[].slice.call(this.host.children)},enumerable:false,configurable:true});e.prototype.handleSlide=function(e){this.controls.forEach((function(e){e.removeAttribute("current");e.checked=false}));try{var t=this.controls[e.detail-1];t.setAttribute("current",e.detail);t.checked=true}catch(e){}};e.prototype.handleChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return __generator(this,(function(c){switch(c.label){case 0:t=this,n=t.carousel,r=t.slides,i=t.controls;o=e.target.getAttribute("slide");a=isNaN(o)?r.findIndex((function(e){return e.getAttribute("name")===o}))+1:parseInt(o);s=isNaN(a)?i.indexOf(e.target)+1:a;return[4,n.slideTo(s)];case 1:c.sent();try{e.target.setAttribute("current",s)}catch(e){}return[2]}}))}))};e.prototype.componentWillLoad=function(){var e=this;var t=this,n=t.carousel,r=t.controls;try{n.addEventListener("slide",this.handleSlide,{passive:true});r.forEach((function(t,n){if(n===0){t.setAttribute("current",n+1)}if(t.nodeName==="INPUT"){t.addEventListener("change",e.handleChange)}else{t.addEventListener("keydown",e.handleChange);t.addEventListener("mousedown",e.handleChange,{passive:true});t.addEventListener("touchstart",e.handleChange,{passive:true})}}))}catch(o){if(!i.exists(n)){throw new ReferenceError("ku4-carousel-controls must connect to a ku4-carousel.")}}};e.prototype.disconnectedCallback=function(){var e=this;var t=this,n=t.carousel,r=t.controls;n.removeEventListener("slide",this.handleSlide);r.forEach((function(t){t.removeEventListener("change",e.handleChange);t.removeEventListener("keydown",e.handleChange);t.removeEventListener("mousedown",e.handleChange);t.removeEventListener("touchstart",e.handleChange)}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());a.style=o}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r["throw"](e))}catch(t){o(t)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(s){a=[6,s];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-d12104ec.system.js","./p-563d1517.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.r;n=e.h;r=e.g},function(e){i=e.t}],execute:function(){var o=':host{position:relative;display:block}input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:20px;height:20px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}input[type=radio]:checked:after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;margin:0;padding:0;border:solid 1px #888;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;background-color:#333}';var a=e("ku4_carousel_controls",function(){function e(e){t(this,e);this.carousel=document.getElementById(this.for);this.handleSlide=this.handleSlide.bind(this);this.handleChange=this.handleChange.bind(this)}Object.defineProperty(e.prototype,"slides",{get:function(){return[].slice.call(this.carousel.children)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"controls",{get:function(){return[].slice.call(this.host.children)},enumerable:false,configurable:true});e.prototype.handleSlide=function(e){this.controls.forEach((function(e){e.removeAttribute("current");e.checked=false}));try{var t=this.controls[e.detail-1];t.setAttribute("current",e.detail);t.checked=true}catch(e){}};e.prototype.handleChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return __generator(this,(function(c){switch(c.label){case 0:t=this,n=t.carousel,r=t.slides,i=t.controls;o=e.target.getAttribute("slide");a=isNaN(o)?r.findIndex((function(e){return e.getAttribute("name")===o}))+1:parseInt(o);s=isNaN(a)?i.indexOf(e.target)+1:a;return[4,n.slideTo(s)];case 1:c.sent();try{e.target.setAttribute("current",s)}catch(e){}return[2]}}))}))};e.prototype.componentWillLoad=function(){var e=this;var t=this,n=t.carousel,r=t.controls;try{n.addEventListener("slide",this.handleSlide,{passive:true});r.forEach((function(t,n){if(n===0){t.setAttribute("current",n+1)}if(t.nodeName==="INPUT"){t.addEventListener("change",e.handleChange)}else{t.addEventListener("keydown",e.handleChange);t.addEventListener("mousedown",e.handleChange,{passive:true});t.addEventListener("touchstart",e.handleChange,{passive:true})}}))}catch(o){if(!i.exists(n)){throw new ReferenceError("ku4-carousel-controls must connect to a ku4-carousel.")}}};e.prototype.disconnectedCallback=function(){var e=this;var t=this,n=t.carousel,r=t.controls;n.removeEventListener("slide",this.handleSlide);r.forEach((function(t){t.removeEventListener("change",e.handleChange);t.removeEventListener("keydown",e.handleChange);t.removeEventListener("mousedown",e.handleChange);t.removeEventListener("touchstart",e.handleChange)}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());a.style=o}}}));
@@ -1 +1 @@
1
- import{r as t,h as s,g as i}from"./p-52645384.js";import{t as h,o as e}from"./p-5a54ccf4.js";import{E as n,K as a}from"./p-e8b35187.js";const r=(t,s)=>{t.forEach(s?t=>{t.currentAriaHidden=t.getAttribute("aria-hidden"),t.setAttribute("aria-hidden",s)}:t=>{t.currentAriaHidden?t.setAttribute("aria-hidden",t.currentAriaHidden):t.removeAttribute("aria-hidden")})},o=["A","BUTTON","INPUT","SELECT","TEXTAREA"],c=t=>[].slice.call(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')),{tab:u}=a,d=a.tab.shift,p=a.tab.alt,l=a.tab.alt.shift,w=class{constructor(s){t(this,s),this.iframes=[],this.active=!1,this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.handleMouse=this.handleMouse.bind(this)}activeHandler(t){t?this.handleActivate():this.handleDeactivate()}async activate(t){this.lastActiveElement=t||document.querySelector(this.return||null),this.active=!0}async deactivate(){this.active=!1}handleActivate(){this.lastActiveElement=this.lastActiveElement||document.activeElement,this.lastActiveElement&&this.lastActiveElement.blur&&this.lastActiveElement.blur(),this.addEventListeners(this.elements),r(this.outerElements,!0),window.requestAnimationFrame((()=>{const t=document.querySelector(this.initial||null)||this.focusableElements[0]||this.trapElements[0];t.blur(),t.focus(),this.activateTraps()}))}handleDeactivate(){this.removeEventListeners(this.elements),this.deactivateTraps(),r(this.outerElements),this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus(),this.lastActiveElement=null}handleKeyDown(t){if(d.didFire(t)||l.didFire(t))try{if(this.iframes.length>0&&(this.trapElements[1]===t.target||!h.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((s=>s.contains(t.target)))))return;if(this.trapElements[0]===t.target)return this.trapElements[1].focus(),n.mute(t);const s=this.focusableElements.indexOf(t.target)-1;return this.focusableElements[s<0?this.focusableElements.length-1:s].focus(),n.mute(t)}catch(t){return n.mute(t)}if(u.didFire(t)||p.didFire(t))try{if(this.iframes.length>0&&(this.trapElements[0]===t.target||!h.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((s=>s.contains(t.target)))))return;if(this.trapElements[1]===t.target)return this.trapElements[0].focus(),n.mute(t);const s=this.focusableElements.indexOf(t.target)+1;return this.focusableElements[s>=this.focusableElements.length?0:s].focus(),n.mute(t)}catch(t){return n.mute(t)}}handleKeyUp(t){const s=this.trapElements.indexOf(t.target);return 0===s&&(d.didFire(t)||l.didFire(t))?((this.focusableElements[this.focusableElements.length-1]||this.trapElements[1]).focus(),n.mute(t)):1===s&&(u.didFire(t)||p.didFire(t))?((this.focusableElements[0]||this.trapElements[0]).focus(),n.mute(t)):void 0}handleMouse(t){this.elements.some((s=>s===t.target))||n.mute(t)}addEventListeners(t){t.forEach((t=>t.addEventListener("keydown",this.handleKeyDown,{passive:!0}))),t.forEach((t=>t.addEventListener("keyup",this.handleKeyUp,{passive:!0}))),window.addEventListener("click",this.handleMouse,{passive:!0}),window.addEventListener("mousedown",this.handleMouse,{passive:!0}),window.addEventListener("mouseup",this.handleMouse,{passive:!0}),window.addEventListener("touchstart",this.handleMouse,{passive:!0})}removeEventListeners(t){t.forEach((t=>t.removeEventListener("keydown",this.handleKeyDown))),t.forEach((t=>t.removeEventListener("keyup",this.handleKeyUp))),window.removeEventListener("click",this.handleMouse),window.removeEventListener("mousedown",this.handleMouse),window.removeEventListener("mouseup",this.handleMouse),window.addEventListener("touchstart",this.handleMouse,{passive:!0})}activateTraps(){this.setTraps(0)}deactivateTraps(){this.setTraps(-1)}setTraps(t){[].slice.call(this.host.querySelectorAll("[ku4-focus-trap], [ku4-focus-wrap]")).forEach((s=>s.setAttribute("tabindex",t)))}wrap(t){const s=document.createDocumentFragment();s.appendChild(this.createWrapTag()),s.appendChild(t.cloneNode()),s.appendChild(this.createWrapTag()),t.parentNode.replaceChild(s,t)}createTrapTag(){return this.createTag("ku4-focus-trap")}createWrapTag(){return this.createTag("ku4-focus-wrap")}createTag(t){const s=document.createElement("button");return s.setAttribute(t,""),s.setAttribute("tabindex","0"),s.setAttribute("aria-hidden","true"),s.style.position="static",s.style.display="block",s.style.width="0",s.style.height="0",s.style.margin="0",s.style.padding="0",s.style.border="none",s.style.outline="none",s}initialize(){const t=[].slice.call(this.host.querySelectorAll("*")),s=[].slice.call(document.querySelectorAll(this.include||null)||[]),i=[].slice.call(document.querySelectorAll(this.exclude)||[]);let n=[];var a;(this.excludeShadow||"").split(",").forEach((t=>{if(!h.isNullOrEmpty(t))try{const s=t.trim().replace(/\s/,"|").split("|"),i=document.querySelector(s[0]).shadowRoot.querySelectorAll(s[1]);n=n.concat([].slice.call(i||[]))}catch(s){console.error("Invalid shadow selector",t)}})),this.iframes=[].slice.call(this.host.querySelectorAll("iframe")||[]),this.iframes.forEach((t=>this.wrap(t))),this.elements=e([...(a=this.host,[].slice.call(a.querySelectorAll(':not([tabindex="-1"])'))),...s]),this.focusableElements=this.elements.reduce(((t,s)=>((t=>{const s=t.getAttribute("tabindex");return(o.includes(t.tagName.toUpperCase())||t.getAttribute("href"))&&(!s||isNaN(s)||parseInt(s)>-1)})(s)&&!this.trapElements.includes(s)&&t.push(s),t)),[]),this.outerElements=[...c(document.body),...i,...n].filter((i=>!(i===this.host||t.includes(i)||s.includes(i))))}componentDidLoad(){const t=this.createTrapTag(),s=this.createTrapTag();this.trapElements=[t,s],this.host.insertBefore(t,this.host.firstChild),this.host.appendChild(s),this.initialize(),this.active?this.handleActivate():this.handleDeactivate()}disconnectedCallback(){this.active&&this.handleDeactivate()}render(){return s("slot",null)}get host(){return i(this)}static get watchers(){return{active:["activeHandler"]}}};w.style=":host{position:static}";export{w as ku4_focus_trap}
1
+ import{r as t,h as s,g as i}from"./p-934f94af.js";import{t as h,o as e}from"./p-5a54ccf4.js";import{E as n,K as a}from"./p-e8b35187.js";const r=(t,s)=>{t.forEach(s?t=>{t.currentAriaHidden=t.getAttribute("aria-hidden"),t.setAttribute("aria-hidden",s)}:t=>{t.currentAriaHidden?t.setAttribute("aria-hidden",t.currentAriaHidden):t.removeAttribute("aria-hidden")})},o=["A","BUTTON","INPUT","SELECT","TEXTAREA"],c=t=>[].slice.call(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')),{tab:u}=a,d=a.tab.shift,p=a.tab.alt,l=a.tab.alt.shift,w=class{constructor(s){t(this,s),this.iframes=[],this.active=!1,this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.handleMouse=this.handleMouse.bind(this)}activeHandler(t){t?this.handleActivate():this.handleDeactivate()}async activate(t){this.lastActiveElement=t||document.querySelector(this.return||null),this.active=!0}async deactivate(){this.active=!1}handleActivate(){this.lastActiveElement=this.lastActiveElement||document.activeElement,this.lastActiveElement&&this.lastActiveElement.blur&&this.lastActiveElement.blur(),this.addEventListeners(this.elements),r(this.outerElements,!0),window.requestAnimationFrame((()=>{const t=document.querySelector(this.initial||null)||this.focusableElements[0]||this.trapElements[0];t.blur(),t.focus(),this.activateTraps()}))}handleDeactivate(){this.removeEventListeners(this.elements),this.deactivateTraps(),r(this.outerElements),this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus(),this.lastActiveElement=null}handleKeyDown(t){if(d.didFire(t)||l.didFire(t))try{if(this.iframes.length>0&&(this.trapElements[1]===t.target||!h.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((s=>s.contains(t.target)))))return;if(this.trapElements[0]===t.target)return this.trapElements[1].focus(),n.mute(t);const s=this.focusableElements.indexOf(t.target)-1;return this.focusableElements[s<0?this.focusableElements.length-1:s].focus(),n.mute(t)}catch(t){return n.mute(t)}if(u.didFire(t)||p.didFire(t))try{if(this.iframes.length>0&&(this.trapElements[0]===t.target||!h.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((s=>s.contains(t.target)))))return;if(this.trapElements[1]===t.target)return this.trapElements[0].focus(),n.mute(t);const s=this.focusableElements.indexOf(t.target)+1;return this.focusableElements[s>=this.focusableElements.length?0:s].focus(),n.mute(t)}catch(t){return n.mute(t)}}handleKeyUp(t){const s=this.trapElements.indexOf(t.target);return 0===s&&(d.didFire(t)||l.didFire(t))?((this.focusableElements[this.focusableElements.length-1]||this.trapElements[1]).focus(),n.mute(t)):1===s&&(u.didFire(t)||p.didFire(t))?((this.focusableElements[0]||this.trapElements[0]).focus(),n.mute(t)):void 0}handleMouse(t){this.elements.some((s=>s===t.target))||n.mute(t)}addEventListeners(t){t.forEach((t=>t.addEventListener("keydown",this.handleKeyDown,{passive:!0}))),t.forEach((t=>t.addEventListener("keyup",this.handleKeyUp,{passive:!0}))),window.addEventListener("click",this.handleMouse,{passive:!0}),window.addEventListener("mousedown",this.handleMouse,{passive:!0}),window.addEventListener("mouseup",this.handleMouse,{passive:!0}),window.addEventListener("touchstart",this.handleMouse,{passive:!0})}removeEventListeners(t){t.forEach((t=>t.removeEventListener("keydown",this.handleKeyDown))),t.forEach((t=>t.removeEventListener("keyup",this.handleKeyUp))),window.removeEventListener("click",this.handleMouse),window.removeEventListener("mousedown",this.handleMouse),window.removeEventListener("mouseup",this.handleMouse),window.addEventListener("touchstart",this.handleMouse,{passive:!0})}activateTraps(){this.setTraps(0)}deactivateTraps(){this.setTraps(-1)}setTraps(t){[].slice.call(this.host.querySelectorAll("[ku4-focus-trap], [ku4-focus-wrap]")).forEach((s=>s.setAttribute("tabindex",t)))}wrap(t){const s=document.createDocumentFragment();s.appendChild(this.createWrapTag()),s.appendChild(t.cloneNode()),s.appendChild(this.createWrapTag()),t.parentNode.replaceChild(s,t)}createTrapTag(){return this.createTag("ku4-focus-trap")}createWrapTag(){return this.createTag("ku4-focus-wrap")}createTag(t){const s=document.createElement("button");return s.setAttribute(t,""),s.setAttribute("tabindex","0"),s.setAttribute("aria-hidden","true"),s.style.position="static",s.style.display="block",s.style.width="0",s.style.height="0",s.style.margin="0",s.style.padding="0",s.style.border="none",s.style.outline="none",s}initialize(){const t=[].slice.call(this.host.querySelectorAll("*")),s=[].slice.call(document.querySelectorAll(this.include||null)||[]),i=[].slice.call(document.querySelectorAll(this.exclude)||[]);let n=[];var a;(this.excludeShadow||"").split(",").forEach((t=>{if(!h.isNullOrEmpty(t))try{const s=t.trim().replace(/\s/,"|").split("|"),i=document.querySelector(s[0]).shadowRoot.querySelectorAll(s[1]);n=n.concat([].slice.call(i||[]))}catch(s){console.error("Invalid shadow selector",t)}})),this.iframes=[].slice.call(this.host.querySelectorAll("iframe")||[]),this.iframes.forEach((t=>this.wrap(t))),this.elements=e([...(a=this.host,[].slice.call(a.querySelectorAll(':not([tabindex="-1"])'))),...s]),this.focusableElements=this.elements.reduce(((t,s)=>((t=>{const s=t.getAttribute("tabindex");return(o.includes(t.tagName.toUpperCase())||t.getAttribute("href"))&&(!s||isNaN(s)||parseInt(s)>-1)})(s)&&!this.trapElements.includes(s)&&t.push(s),t)),[]),this.outerElements=[...c(document.body),...i,...n].filter((i=>!(i===this.host||t.includes(i)||s.includes(i))))}componentDidLoad(){const t=this.createTrapTag(),s=this.createTrapTag();this.trapElements=[t,s],this.host.insertBefore(t,this.host.firstChild),this.host.appendChild(s),this.initialize(),this.active?this.handleActivate():this.handleDeactivate()}disconnectedCallback(){this.active&&this.handleDeactivate()}render(){return s("slot",null)}get host(){return i(this)}static get watchers(){return{active:["activeHandler"]}}};w.style=":host{position:static}";export{w as ku4_focus_trap}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function s(t){try{u(n.next(t))}catch(e){a(e)}}function o(t){try{u(n["throw"](t))}catch(e){a(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(o){s=[6,o];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-f58c2ed4.system.js","./p-563d1517.system.js","./p-eb21757a.system.js"],(function(t){"use strict";var e,r,n,i,a,s,o;return{setters:[function(t){e=t.r;r=t.h;n=t.g},function(t){i=t.t;a=t.o},function(t){s=t.E;o=t.K}],execute:function(){var u=function(t,e){if(!e){t.forEach((function(t){if(!t.currentAriaHidden){t.removeAttribute("aria-hidden")}else{t.setAttribute("aria-hidden",t.currentAriaHidden)}}))}else{t.forEach((function(t){t.currentAriaHidden=t.getAttribute("aria-hidden");t.setAttribute("aria-hidden",e)}))}};var l=["A","BUTTON","INPUT","SELECT","TEXTAREA"];var c=function(t){var e=t.getAttribute("tabindex");return(l.includes(t.tagName.toUpperCase())||t.getAttribute("href"))&&(!e||isNaN(e)||parseInt(e)>-1)};var h=function(t){return[].slice.call(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))};var d=function(t){return[].slice.call(t.querySelectorAll(':not([tabindex="-1"])'))};var f=":host{position:static}";var p=o.tab;var v=o.tab.shift;var m=o.tab.alt;var y=o.tab.alt.shift;var E=t("ku4_focus_trap",function(){function t(t){e(this,t);this.iframes=[];this.active=false;this.handleKeyDown=this.handleKeyDown.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleMouse=this.handleMouse.bind(this)}t.prototype.activeHandler=function(t){t?this.handleActivate():this.handleDeactivate()};t.prototype.activate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.lastActiveElement=t||document.querySelector(this.return||null);this.active=true;return[2]}))}))};t.prototype.deactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.active=false;return[2]}))}))};t.prototype.handleActivate=function(){var t=this;this.lastActiveElement=this.lastActiveElement||document.activeElement;if(this.lastActiveElement&&this.lastActiveElement.blur){this.lastActiveElement.blur()}this.addEventListeners(this.elements);u(this.outerElements,true);window.requestAnimationFrame((function(){var e=document.querySelector(t.initial||null)||t.focusableElements[0]||t.trapElements[0];e.blur();e.focus();t.activateTraps()}))};t.prototype.handleDeactivate=function(){this.removeEventListeners(this.elements);this.deactivateTraps();u(this.outerElements);if(this.lastActiveElement&&this.lastActiveElement.focus){this.lastActiveElement.focus()}this.lastActiveElement=null};t.prototype.handleKeyDown=function(t){if(v.didFire(t)||y.didFire(t)){try{if(this.iframes.length>0&&(this.trapElements[1]===t.target||!i.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(e){return e.contains(t.target)})))){return}if(this.trapElements[0]===t.target){this.trapElements[1].focus();return s.mute(t)}var e=this.focusableElements.indexOf(t.target)-1;var r=e<0?this.focusableElements.length-1:e;this.focusableElements[r].focus();return s.mute(t)}catch(t){return s.mute(t)}}if(p.didFire(t)||m.didFire(t)){try{if(this.iframes.length>0&&(this.trapElements[0]===t.target||!i.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(e){return e.contains(t.target)})))){return}if(this.trapElements[1]===t.target){this.trapElements[0].focus();return s.mute(t)}var e=this.focusableElements.indexOf(t.target)+1;var r=e>=this.focusableElements.length?0:e;this.focusableElements[r].focus();return s.mute(t)}catch(t){return s.mute(t)}}};t.prototype.handleKeyUp=function(t){var e=this.trapElements.indexOf(t.target);if(e===0&&(v.didFire(t)||y.didFire(t))){var r=this.focusableElements[this.focusableElements.length-1]||this.trapElements[1];r.focus();return s.mute(t)}if(e===1&&(p.didFire(t)||m.didFire(t))){var r=this.focusableElements[0]||this.trapElements[0];r.focus();return s.mute(t)}};t.prototype.handleMouse=function(t){if(!this.elements.some((function(e){return e===t.target}))){s.mute(t)}};t.prototype.addEventListeners=function(t){var e=this;t.forEach((function(t){return t.addEventListener("keydown",e.handleKeyDown,{passive:true})}));t.forEach((function(t){return t.addEventListener("keyup",e.handleKeyUp,{passive:true})}));window.addEventListener("click",this.handleMouse,{passive:true});window.addEventListener("mousedown",this.handleMouse,{passive:true});window.addEventListener("mouseup",this.handleMouse,{passive:true});window.addEventListener("touchstart",this.handleMouse,{passive:true})};t.prototype.removeEventListeners=function(t){var e=this;t.forEach((function(t){return t.removeEventListener("keydown",e.handleKeyDown)}));t.forEach((function(t){return t.removeEventListener("keyup",e.handleKeyUp)}));window.removeEventListener("click",this.handleMouse);window.removeEventListener("mousedown",this.handleMouse);window.removeEventListener("mouseup",this.handleMouse);window.addEventListener("touchstart",this.handleMouse,{passive:true})};t.prototype.activateTraps=function(){this.setTraps(0)};t.prototype.deactivateTraps=function(){this.setTraps(-1)};t.prototype.setTraps=function(t){[].slice.call(this.host.querySelectorAll("[ku4-focus-trap], [ku4-focus-wrap]")).forEach((function(e){return e.setAttribute("tabindex",t)}))};t.prototype.wrap=function(t){var e=document.createDocumentFragment();e.appendChild(this.createWrapTag());e.appendChild(t.cloneNode());e.appendChild(this.createWrapTag());t.parentNode.replaceChild(e,t)};t.prototype.createTrapTag=function(){return this.createTag("ku4-focus-trap")};t.prototype.createWrapTag=function(){return this.createTag("ku4-focus-wrap")};t.prototype.createTag=function(t){var e=document.createElement("button");e.setAttribute(t,"");e.setAttribute("tabindex","0");e.setAttribute("aria-hidden","true");e.style.position="static";e.style.display="block";e.style.width="0";e.style.height="0";e.style.margin="0";e.style.padding="0";e.style.border="none";e.style.outline="none";return e};t.prototype.initialize=function(){var t=this;var e=[].slice.call(this.host.querySelectorAll("*"));var r=[].slice.call(document.querySelectorAll(this.include||null)||[]);var n=[].slice.call(document.querySelectorAll(this.exclude)||[]);var s=[];(this.excludeShadow||"").split(",").forEach((function(t){if(i.isNullOrEmpty(t)){return}try{var e=t.trim().replace(/\s/,"|").split("|");var r=document.querySelector(e[0]).shadowRoot.querySelectorAll(e[1]);s=s.concat([].slice.call(r||[]))}catch(n){console.error("Invalid shadow selector",t)}}));this.iframes=[].slice.call(this.host.querySelectorAll("iframe")||[]);this.iframes.forEach((function(e){return t.wrap(e)}));this.elements=a(__spreadArray(__spreadArray([],d(this.host),true),r,true));this.focusableElements=this.elements.reduce((function(e,r){if(c(r)&&!t.trapElements.includes(r)){e.push(r)}return e}),[]);this.outerElements=__spreadArray(__spreadArray(__spreadArray([],h(document.body),true),n,true),s,true).filter((function(n){return!(n===t.host||e.includes(n)||r.includes(n))}))};t.prototype.componentDidLoad=function(){var t=this.createTrapTag();var e=this.createTrapTag();this.trapElements=[t,e];this.host.insertBefore(t,this.host.firstChild);this.host.appendChild(e);this.initialize();if(this.active){this.handleActivate()}else{this.handleDeactivate()}};t.prototype.disconnectedCallback=function(){if(this.active){this.handleDeactivate()}};t.prototype.render=function(){return r("slot",null)};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"]}},enumerable:false,configurable:true});return t}());E.style=f}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function s(t){try{u(n.next(t))}catch(e){a(e)}}function o(t){try{u(n["throw"](t))}catch(e){a(e)}}function u(t){t.done?r(t.value):i(t.value).then(s,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(o){s=[6,o];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-d12104ec.system.js","./p-563d1517.system.js","./p-eb21757a.system.js"],(function(t){"use strict";var e,r,n,i,a,s,o;return{setters:[function(t){e=t.r;r=t.h;n=t.g},function(t){i=t.t;a=t.o},function(t){s=t.E;o=t.K}],execute:function(){var u=function(t,e){if(!e){t.forEach((function(t){if(!t.currentAriaHidden){t.removeAttribute("aria-hidden")}else{t.setAttribute("aria-hidden",t.currentAriaHidden)}}))}else{t.forEach((function(t){t.currentAriaHidden=t.getAttribute("aria-hidden");t.setAttribute("aria-hidden",e)}))}};var l=["A","BUTTON","INPUT","SELECT","TEXTAREA"];var c=function(t){var e=t.getAttribute("tabindex");return(l.includes(t.tagName.toUpperCase())||t.getAttribute("href"))&&(!e||isNaN(e)||parseInt(e)>-1)};var h=function(t){return[].slice.call(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))};var d=function(t){return[].slice.call(t.querySelectorAll(':not([tabindex="-1"])'))};var f=":host{position:static}";var p=o.tab;var v=o.tab.shift;var m=o.tab.alt;var y=o.tab.alt.shift;var E=t("ku4_focus_trap",function(){function t(t){e(this,t);this.iframes=[];this.active=false;this.handleKeyDown=this.handleKeyDown.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleMouse=this.handleMouse.bind(this)}t.prototype.activeHandler=function(t){t?this.handleActivate():this.handleDeactivate()};t.prototype.activate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.lastActiveElement=t||document.querySelector(this.return||null);this.active=true;return[2]}))}))};t.prototype.deactivate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.active=false;return[2]}))}))};t.prototype.handleActivate=function(){var t=this;this.lastActiveElement=this.lastActiveElement||document.activeElement;if(this.lastActiveElement&&this.lastActiveElement.blur){this.lastActiveElement.blur()}this.addEventListeners(this.elements);u(this.outerElements,true);window.requestAnimationFrame((function(){var e=document.querySelector(t.initial||null)||t.focusableElements[0]||t.trapElements[0];e.blur();e.focus();t.activateTraps()}))};t.prototype.handleDeactivate=function(){this.removeEventListeners(this.elements);this.deactivateTraps();u(this.outerElements);if(this.lastActiveElement&&this.lastActiveElement.focus){this.lastActiveElement.focus()}this.lastActiveElement=null};t.prototype.handleKeyDown=function(t){if(v.didFire(t)||y.didFire(t)){try{if(this.iframes.length>0&&(this.trapElements[1]===t.target||!i.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(e){return e.contains(t.target)})))){return}if(this.trapElements[0]===t.target){this.trapElements[1].focus();return s.mute(t)}var e=this.focusableElements.indexOf(t.target)-1;var r=e<0?this.focusableElements.length-1:e;this.focusableElements[r].focus();return s.mute(t)}catch(t){return s.mute(t)}}if(p.didFire(t)||m.didFire(t)){try{if(this.iframes.length>0&&(this.trapElements[0]===t.target||!i.isNull(t.target.getAttribute("ku4-focus-wrap"))||this.iframes.some((function(e){return e.contains(t.target)})))){return}if(this.trapElements[1]===t.target){this.trapElements[0].focus();return s.mute(t)}var e=this.focusableElements.indexOf(t.target)+1;var r=e>=this.focusableElements.length?0:e;this.focusableElements[r].focus();return s.mute(t)}catch(t){return s.mute(t)}}};t.prototype.handleKeyUp=function(t){var e=this.trapElements.indexOf(t.target);if(e===0&&(v.didFire(t)||y.didFire(t))){var r=this.focusableElements[this.focusableElements.length-1]||this.trapElements[1];r.focus();return s.mute(t)}if(e===1&&(p.didFire(t)||m.didFire(t))){var r=this.focusableElements[0]||this.trapElements[0];r.focus();return s.mute(t)}};t.prototype.handleMouse=function(t){if(!this.elements.some((function(e){return e===t.target}))){s.mute(t)}};t.prototype.addEventListeners=function(t){var e=this;t.forEach((function(t){return t.addEventListener("keydown",e.handleKeyDown,{passive:true})}));t.forEach((function(t){return t.addEventListener("keyup",e.handleKeyUp,{passive:true})}));window.addEventListener("click",this.handleMouse,{passive:true});window.addEventListener("mousedown",this.handleMouse,{passive:true});window.addEventListener("mouseup",this.handleMouse,{passive:true});window.addEventListener("touchstart",this.handleMouse,{passive:true})};t.prototype.removeEventListeners=function(t){var e=this;t.forEach((function(t){return t.removeEventListener("keydown",e.handleKeyDown)}));t.forEach((function(t){return t.removeEventListener("keyup",e.handleKeyUp)}));window.removeEventListener("click",this.handleMouse);window.removeEventListener("mousedown",this.handleMouse);window.removeEventListener("mouseup",this.handleMouse);window.addEventListener("touchstart",this.handleMouse,{passive:true})};t.prototype.activateTraps=function(){this.setTraps(0)};t.prototype.deactivateTraps=function(){this.setTraps(-1)};t.prototype.setTraps=function(t){[].slice.call(this.host.querySelectorAll("[ku4-focus-trap], [ku4-focus-wrap]")).forEach((function(e){return e.setAttribute("tabindex",t)}))};t.prototype.wrap=function(t){var e=document.createDocumentFragment();e.appendChild(this.createWrapTag());e.appendChild(t.cloneNode());e.appendChild(this.createWrapTag());t.parentNode.replaceChild(e,t)};t.prototype.createTrapTag=function(){return this.createTag("ku4-focus-trap")};t.prototype.createWrapTag=function(){return this.createTag("ku4-focus-wrap")};t.prototype.createTag=function(t){var e=document.createElement("button");e.setAttribute(t,"");e.setAttribute("tabindex","0");e.setAttribute("aria-hidden","true");e.style.position="static";e.style.display="block";e.style.width="0";e.style.height="0";e.style.margin="0";e.style.padding="0";e.style.border="none";e.style.outline="none";return e};t.prototype.initialize=function(){var t=this;var e=[].slice.call(this.host.querySelectorAll("*"));var r=[].slice.call(document.querySelectorAll(this.include||null)||[]);var n=[].slice.call(document.querySelectorAll(this.exclude)||[]);var s=[];(this.excludeShadow||"").split(",").forEach((function(t){if(i.isNullOrEmpty(t)){return}try{var e=t.trim().replace(/\s/,"|").split("|");var r=document.querySelector(e[0]).shadowRoot.querySelectorAll(e[1]);s=s.concat([].slice.call(r||[]))}catch(n){console.error("Invalid shadow selector",t)}}));this.iframes=[].slice.call(this.host.querySelectorAll("iframe")||[]);this.iframes.forEach((function(e){return t.wrap(e)}));this.elements=a(__spreadArray(__spreadArray([],d(this.host),true),r,true));this.focusableElements=this.elements.reduce((function(e,r){if(c(r)&&!t.trapElements.includes(r)){e.push(r)}return e}),[]);this.outerElements=__spreadArray(__spreadArray(__spreadArray([],h(document.body),true),n,true),s,true).filter((function(n){return!(n===t.host||e.includes(n)||r.includes(n))}))};t.prototype.componentDidLoad=function(){var t=this.createTrapTag();var e=this.createTrapTag();this.trapElements=[t,e];this.host.insertBefore(t,this.host.firstChild);this.host.appendChild(e);this.initialize();if(this.active){this.handleActivate()}else{this.handleDeactivate()}};t.prototype.disconnectedCallback=function(){if(this.active){this.handleDeactivate()}};t.prototype.render=function(){return r("slot",null)};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"]}},enumerable:false,configurable:true});return t}());E.style=f}}}));
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-52645384.js";import{a as i,Y as e,t as h}from"./p-5a54ccf4.js";const n=class{constructor(s){t(this,s),this.charIndexes=[],this.reverseCharIndexes=[],this.previousValue="",this.currentValue="",this.touchStart=!1,this.template="",this.ban="",this.pattern="",this.char="_",this.hidden=!1,this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleInput=this.handleInput.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.init()}init(){this.chars=this.char&&new RegExp(this.char),this.banned=this.ban&&new RegExp(this.ban);const t=this.pattern.replace(/[\s\n]/gm,"");return this.patterns=t.substr(1).split(t[0]).map((t=>{try{return t&&new RegExp(t)||null}catch(s){}})),this.charIndexes=this.template.split("").reduce(((t,s,i)=>(this.chars.test(s)&&t.push(i),t)),[]),this.reverseCharIndexes=[...this.charIndexes].reverse(),this}templateHandler(t,s){const{input:e,previousCharIndex:h,previousValue:n,currentValue:r,value:a,char:o}=this,c=i.unmask(n,s,o).length<i.unmask(r,s,o).length?h+1:h;this.init().value=i.mask(i.unmask(a,s,o),t,o),e.setSelectionRange(c,c)}charHandler(t,s){const{value:e,template:h}=this;this.init().value=i.mask(i.unmask(e,h,s),h,t)}get previousCharIndex(){return this.reverseCharIndexes.find((t=>this.selectionStart>t))||this.charIndexes[0]}get value(){return this.currentValue}set value(t){const{chars:s,hidden:i,input:e}=this,h=t.search(s);this.currentValue=t,e.value=i&&h>-1?t.substring(0,h):t}handleTouchStart(){this.touchStart=!0}handleFocus(){if(window.document.documentMode)return;const{input:t,template:s,char:h,chars:n,touchStart:r}=this,a=i.unmask(t.value,s,h),o=i.unmask(this.value,s,h);this.value=i.mask(a!==o?a:o,s,h),e(0).then((()=>{const s=t.value.search(n),i=s<0?t.value.length:s;this.input.setSelectionRange(s<0&&!r?0:i,i),this.touchStart=!1}))}handleBlur(){const{template:t,char:s}=this;h.isEmpty(i.unmask(this.value,t,s))&&(this.value="")}handleKeyDown(t){if(window.document.documentMode)return;const{banned:s,hidden:e,template:h,char:n}=this;t.key&&1===t.key.length&&s&&s.test(t.key)&&!(t.altKey||t.ctrlKey||t.metaKey)&&t.preventDefault(),this.previousValue=e?i.mask(i.unmask(t.target.value,h,n),h,n):t.target.value,this.selectionStart=t.target.selectionStart,this.selectionEnd=t.target.selectionEnd}handleInput(t){if(window.document.documentMode)return;const{input:s,template:e,char:n,chars:r,previousValue:a,banned:o,selectionStart:c,selectionEnd:l,previousCharIndex:u,patterns:d,charIndexes:p,reverseCharIndexes:f}=this;if(r.test(this.previousValue)||"input"===t.type&&!t.inputType||"insertFromPaste"===t.inputType||"deleteContentBackward"===t.inputType||"deleteContentForward"===t.inputType||"deleteByCut"===t.inputType||c!==l){if("insertFromPaste"===t.inputType)try{return navigator.clipboard.readText().then((t=>{const u=i.unmask(t,e,n).replace(new RegExp(o,"g"),"");if(h.isNullOrEmpty(u))return this.value=a,void s.setSelectionRange(c,c);if(!o||!o.test(u)){let t=a;if(c<l){const s=f.find((t=>t<=c-1)),h=f.find((t=>t<=l-1)),r=p.findIndex((t=>t===s)),o=p.findIndex((t=>t===h)),u=i.unmask(a,e,n),d=u.substring(0,r+1)+u.substring(o+1,a.length);t=i.mask(d,e,n)}const h=p.find((t=>t>=c)),o=p.findIndex((t=>t===h)),d=i.unmask(t,e,n);t=d.substring(0,o)+u+d.substring(o,a.length),this.value=i.mask(t,e,n);const v=p[o+u.length]||this.value.search(r)||this.value.length;s.setSelectionRange(v,v)}})),this.value=a,void s.setSelectionRange(c,c)}catch(t){return this.value=a,void s.setSelectionRange(c,c)}if("deleteContentBackward"!==t.inputType&&"deleteByCut"!==t.inputType){if("deleteContentForward"===t.inputType){const t=p.find((t=>t>=c)),h=p.findIndex((s=>s===t)),r=i.unmask(a,e,n),o=r.substring(0,h)+r.substring(h+1,a.length);return this.value=i.mask(o,e,n),void s.setSelectionRange(c,c)}if(!(t.altKey||t.ctrlKey||t.metaKey))if(t.data)if(r.test(a.charAt(c))||c===e.length){const h=i.unmask(a,e,n);this.value=i.mask(h+t.data,e,n);const o=this.value.search(r),c=o<0?e.length:o;s.setSelectionRange(c,c);const l=p.findIndex((t=>t>=c));this.validate(t.data,d[l<0?p.length-1:l-1])}else{let h=a;if(c<l){const t=f.find((t=>t<=c-1)),s=f.find((t=>t<=l-1)),r=p.findIndex((s=>s===t)),o=p.findIndex((t=>t===s)),u=i.unmask(a,e,n),d=u.substring(0,r+1)+u.substring(o+1,a.length);h=i.mask(d,e,n)}const r=p.find((t=>t>=c)),o=p.findIndex((t=>t===r)),u=i.unmask(h,e,n);h=u.substring(0,o)+t.data+u.substring(o,a.length);const v=p.find((t=>t>r));this.value=i.mask(h,e,n),s.setSelectionRange(v,v);const m=p.findIndex((t=>t>=v));this.validate(t.data,d[m<0?p.length-1:m-1])}else if("input"!==t.type||t.inputType)this.value=a,s.setSelectionRange(c,c);else{const{value:s}=t.target,h=p.find((t=>t>=c)),r=p.findIndex((t=>t===h)),a=i.unmask(s,e,n),l=s.replace(new RegExp(o,"g"),""),u=a.substring(0,r)+l,f=p.find((t=>t>h)),v=p.findIndex((t=>t>=f)),m=v<0?p.length-1:v-1;this.value=i.mask(u,e,n),this.validate(u,d[m])}}else{const t=f.find((t=>t<=c-1)),h=f.find((t=>t<=l-1)),r=p.findIndex((s=>s===t)),o=p.findIndex((t=>t===h)),d=i.unmask(a,e,n);if(r<o){const t=d.substring(0,r+1)+d.substring(o+1,a.length);this.value=i.mask(t,e,n),t&&r>-1?s.setSelectionRange(u+1,u+1):s.setSelectionRange(u,u)}else{const t=d.substring(0,r)+d.substring(o+1,a.length);this.value=i.mask(t,e,n),s.setSelectionRange(u,u)}}}else this.value=a}validate(t,s){const{previousValue:i,input:e,value:n,selectionStart:r}=this;h.exists(s)&&!(s.test(t)||/\(\?[!<=]/.test(s.toString())&&s.test(n))&&(this.value=i,e.setSelectionRange(r,r))}componentWillLoad(){this.input=document.getElementById(this.for),h.exists(this.input)?(this.input.addEventListener("focus",this.handleFocus),this.input.addEventListener("blur",this.handleBlur),this.input.addEventListener("keydown",this.handleKeyDown),this.input.addEventListener("input",this.handleInput),this.input.addEventListener("ku4-mask-input",this.handleInput),this.input.addEventListener("touchstart",this.handleTouchStart,{passive:!0})):console.error("ku4-mask must have a valid `for` referencing target field `id`.")}disconnectedCallback(){this.input&&this.input.removeEventListener&&(this.input.removeEventListener("focus",this.handleFocus),this.input.removeEventListener("blur",this.handleBlur),this.input.removeEventListener("keydown",this.handleKeyDown),this.input.removeEventListener("input",this.handleInput),this.input.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}))}render(){return s("slot",null)}static get watchers(){return{template:["templateHandler"],char:["charHandler"]}}};n.style=":host{display:none}";export{n as ku4_mask}
1
+ import{r as t,h as s}from"./p-934f94af.js";import{a as i,Y as e,t as h}from"./p-5a54ccf4.js";const n=class{constructor(s){t(this,s),this.charIndexes=[],this.reverseCharIndexes=[],this.previousValue="",this.currentValue="",this.touchStart=!1,this.template="",this.ban="",this.pattern="",this.char="_",this.hidden=!1,this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleInput=this.handleInput.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.init()}init(){this.chars=this.char&&new RegExp(this.char),this.banned=this.ban&&new RegExp(this.ban);const t=this.pattern.replace(/[\s\n]/gm,"");return this.patterns=t.substr(1).split(t[0]).map((t=>{try{return t&&new RegExp(t)||null}catch(s){}})),this.charIndexes=this.template.split("").reduce(((t,s,i)=>(this.chars.test(s)&&t.push(i),t)),[]),this.reverseCharIndexes=[...this.charIndexes].reverse(),this}templateHandler(t,s){const{input:e,previousCharIndex:h,previousValue:n,currentValue:r,value:a,char:o}=this,c=i.unmask(n,s,o).length<i.unmask(r,s,o).length?h+1:h;this.init().value=i.mask(i.unmask(a,s,o),t,o),e.setSelectionRange(c,c)}charHandler(t,s){const{value:e,template:h}=this;this.init().value=i.mask(i.unmask(e,h,s),h,t)}get previousCharIndex(){return this.reverseCharIndexes.find((t=>this.selectionStart>t))||this.charIndexes[0]}get value(){return this.currentValue}set value(t){const{chars:s,hidden:i,input:e}=this,h=t.search(s);this.currentValue=t,e.value=i&&h>-1?t.substring(0,h):t}handleTouchStart(){this.touchStart=!0}handleFocus(){if(window.document.documentMode)return;const{input:t,template:s,char:h,chars:n,touchStart:r}=this,a=i.unmask(t.value,s,h),o=i.unmask(this.value,s,h);this.value=i.mask(a!==o?a:o,s,h),e(0).then((()=>{const s=t.value.search(n),i=s<0?t.value.length:s;this.input.setSelectionRange(s<0&&!r?0:i,i),this.touchStart=!1}))}handleBlur(){const{template:t,char:s}=this;h.isEmpty(i.unmask(this.value,t,s))&&(this.value="")}handleKeyDown(t){if(window.document.documentMode)return;const{banned:s,hidden:e,template:h,char:n}=this;t.key&&1===t.key.length&&s&&s.test(t.key)&&!(t.altKey||t.ctrlKey||t.metaKey)&&t.preventDefault(),this.previousValue=e?i.mask(i.unmask(t.target.value,h,n),h,n):t.target.value,this.selectionStart=t.target.selectionStart,this.selectionEnd=t.target.selectionEnd}handleInput(t){if(window.document.documentMode)return;const{input:s,template:e,char:n,chars:r,previousValue:a,banned:o,selectionStart:c,selectionEnd:l,previousCharIndex:u,patterns:d,charIndexes:p,reverseCharIndexes:f}=this;if(r.test(this.previousValue)||"input"===t.type&&!t.inputType||"insertFromPaste"===t.inputType||"deleteContentBackward"===t.inputType||"deleteContentForward"===t.inputType||"deleteByCut"===t.inputType||c!==l){if("insertFromPaste"===t.inputType)try{return navigator.clipboard.readText().then((t=>{const u=i.unmask(t,e,n).replace(new RegExp(o,"g"),"");if(h.isNullOrEmpty(u))return this.value=a,void s.setSelectionRange(c,c);if(!o||!o.test(u)){let t=a;if(c<l){const s=f.find((t=>t<=c-1)),h=f.find((t=>t<=l-1)),r=p.findIndex((t=>t===s)),o=p.findIndex((t=>t===h)),u=i.unmask(a,e,n),d=u.substring(0,r+1)+u.substring(o+1,a.length);t=i.mask(d,e,n)}const h=p.find((t=>t>=c)),o=p.findIndex((t=>t===h)),d=i.unmask(t,e,n);t=d.substring(0,o)+u+d.substring(o,a.length),this.value=i.mask(t,e,n);const v=p[o+u.length]||this.value.search(r)||this.value.length;s.setSelectionRange(v,v)}})),this.value=a,void s.setSelectionRange(c,c)}catch(t){return this.value=a,void s.setSelectionRange(c,c)}if("deleteContentBackward"!==t.inputType&&"deleteByCut"!==t.inputType){if("deleteContentForward"===t.inputType){const t=p.find((t=>t>=c)),h=p.findIndex((s=>s===t)),r=i.unmask(a,e,n),o=r.substring(0,h)+r.substring(h+1,a.length);return this.value=i.mask(o,e,n),void s.setSelectionRange(c,c)}if(!(t.altKey||t.ctrlKey||t.metaKey))if(t.data)if(r.test(a.charAt(c))||c===e.length){const h=i.unmask(a,e,n);this.value=i.mask(h+t.data,e,n);const o=this.value.search(r),c=o<0?e.length:o;s.setSelectionRange(c,c);const l=p.findIndex((t=>t>=c));this.validate(t.data,d[l<0?p.length-1:l-1])}else{let h=a;if(c<l){const t=f.find((t=>t<=c-1)),s=f.find((t=>t<=l-1)),r=p.findIndex((s=>s===t)),o=p.findIndex((t=>t===s)),u=i.unmask(a,e,n),d=u.substring(0,r+1)+u.substring(o+1,a.length);h=i.mask(d,e,n)}const r=p.find((t=>t>=c)),o=p.findIndex((t=>t===r)),u=i.unmask(h,e,n);h=u.substring(0,o)+t.data+u.substring(o,a.length);const v=p.find((t=>t>r));this.value=i.mask(h,e,n),s.setSelectionRange(v,v);const m=p.findIndex((t=>t>=v));this.validate(t.data,d[m<0?p.length-1:m-1])}else if("input"!==t.type||t.inputType)this.value=a,s.setSelectionRange(c,c);else{const{value:s}=t.target,h=p.find((t=>t>=c)),r=p.findIndex((t=>t===h)),a=i.unmask(s,e,n),l=s.replace(new RegExp(o,"g"),""),u=a.substring(0,r)+l,f=p.find((t=>t>h)),v=p.findIndex((t=>t>=f)),m=v<0?p.length-1:v-1;this.value=i.mask(u,e,n),this.validate(u,d[m])}}else{const t=f.find((t=>t<=c-1)),h=f.find((t=>t<=l-1)),r=p.findIndex((s=>s===t)),o=p.findIndex((t=>t===h)),d=i.unmask(a,e,n);if(r<o){const t=d.substring(0,r+1)+d.substring(o+1,a.length);this.value=i.mask(t,e,n),t&&r>-1?s.setSelectionRange(u+1,u+1):s.setSelectionRange(u,u)}else{const t=d.substring(0,r)+d.substring(o+1,a.length);this.value=i.mask(t,e,n),s.setSelectionRange(u,u)}}}else this.value=a}validate(t,s){const{previousValue:i,input:e,value:n,selectionStart:r}=this;h.exists(s)&&!(s.test(t)||/\(\?[!<=]/.test(s.toString())&&s.test(n))&&(this.value=i,e.setSelectionRange(r,r))}componentWillLoad(){this.input=document.getElementById(this.for),h.exists(this.input)?(this.input.addEventListener("focus",this.handleFocus),this.input.addEventListener("blur",this.handleBlur),this.input.addEventListener("keydown",this.handleKeyDown),this.input.addEventListener("input",this.handleInput),this.input.addEventListener("ku4-mask-input",this.handleInput),this.input.addEventListener("touchstart",this.handleTouchStart,{passive:!0})):console.error("ku4-mask must have a valid `for` referencing target field `id`.")}disconnectedCallback(){this.input&&this.input.removeEventListener&&(this.input.removeEventListener("focus",this.handleFocus),this.input.removeEventListener("blur",this.handleBlur),this.input.removeEventListener("keydown",this.handleKeyDown),this.input.removeEventListener("input",this.handleInput),this.input.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}))}render(){return s("slot",null)}static get watchers(){return{template:["templateHandler"],char:["charHandler"]}}};n.style=":host{display:none}";export{n as ku4_mask}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,r){function a(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,n){function i(t){try{u(r.next(t))}catch(e){n(e)}}function s(t){try{u(r["throw"](t))}catch(e){n(e)}}function u(t){t.done?o(t.value):a(t.value).then(i,s)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return u([t,e])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(o)try{if(r=1,a&&(n=i[0]&2?a["return"]:i[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,i[1])).done)return n;if(a=0,n)i=[i[0]&2,n.value];switch(i[0]){case 0:case 1:n=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;a=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){o=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){o.label=i[1];break}if(i[0]===6&&o.label<n[1]){o.label=n[1];n=i;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(i);break}if(n[2])o.ops.pop();o.trys.pop();continue}i=e.call(t,o)}catch(s){i=[6,s];a=0}finally{r=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-f58c2ed4.system.js","./p-563d1517.system.js","./p-eb21757a.system.js"],(function(t){"use strict";var e,o,r,a,n,i,s,u,c;return{setters:[function(t){e=t.r;o=t.c;r=t.h;a=t.H;n=t.g},function(t){i=t.L;s=t.Y;u=t.c},function(t){c=t.S}],execute:function(){var l="@-webkit-keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@-webkit-keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;overflow:hidden;background-color:var(--ku4-carousel-background-color, #fff)}.slide-container{position:relative;width:100%;height:100%;overflow:hidden}.controls .next,.controls .prev{position:absolute;display:var(--ku4-carousel-controls-display, block);top:var(--ku4-carousel-controls-top, 0);border:var(--ku4-carousel-controls-border, none);background-color:var(--ku4-carousel-controls-background-color, #fff);font-family:var(--ku4-carousel-controls-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-controls-font-weight, 400);font-size:var(--ku4-carousel-controls-font-size, 8px);line-height:var(--ku4-carousel-controls-line-height, 12px);opacity:var(--ku4-carousel-controls-opacity, 0.2);z-index:var(--ku4-carousel-controls-z-index, 2)}.controls .next:focus,.controls .prev:focus{background-color:var(--ku4-carousel-controls-focus-background-color, transparent);outline:var(--ku4-carousel-controls-focus-outline, none);opacity:var(--ku4-carousel-controls-focus-opacity, 0.2)}.controls .next:hover,.controls .prev:hover{background-color:var(--ku4-carousel-controls-hover-background-color, transparent);opacity:var(--ku4-carousel-controls-hover-opacity, 1)}.controls .next{right:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-next-background-image);background-repeat:var(--ku4-carousel-controls-next-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-background-size, 100% 100%)}.controls .next:focus{background-image:var(--ku4-carousel-controls-next-focus-background-image);background-repeat:var(--ku4-carousel-controls-next-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-focus-background-size, 100% 100%)}.controls .next:hover{background-image:var(--ku4-carousel-controls-next-hover-background-image);background-repeat:var(--ku4-carousel-controls-next-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-hover-background-size, 100% 100%)}.controls .prev{left:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-previous-background-image);background-repeat:var(--ku4-carousel-controls-previous-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-background-size, 100% 100%)}.controls .prev:focus{background-image:var(--ku4-carousel-controls-previous-focus-background-image);background-repeat:var(--ku4-carousel-controls-previous-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-focus-background-size, 100% 100%)}.controls .prev:hover{background-image:var(--ku4-carousel-controls-previous-hover-background-image);background-repeat:var(--ku4-carousel-controls-previous-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-hover-background-size, 100% 100%)}.pages{position:absolute;display:var(--ku4-carousel-pages-display, block);top:var(--ku4-carousel-pages-top, auto);bottom:var(--ku4-carousel-pages-bottom, 4px);width:var(--ku4-carousel-pages-width, auto);height:var(--ku4-carousel-pages-height, 20px);background-color:var(--ku4-carousel-pages-background-color, transparent);opacity:var(--ku4-carousel-pages-opacity, 0.5);text-align:center;z-index:3}.pages-text{display:inline-block;padding:var(--ku4-carousel-pages-text-padding, 4px);font-family:var(--ku4-carousel-pages-text-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-pages-text-font-weight, 600);font-size:var(--ku4-carousel-pages-text-font-size, 14px);line-height:var(--ku4-carousel-pages-text-line-height, 16px);color:var(--ku4-carousel-pages-text-color, #aaa)}::slotted(*){position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;top:0;left:-100%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(.inactive){position:absolute;height:100%;left:0}::slotted(.inactive.prev){-webkit-animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.inactive.next){-webkit-animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active){position:relative;top:0;left:0;width:auto;height:100%;z-index:1}::slotted(.active.prev){-webkit-animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active.next){-webkit-animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (hover: hover){.controls:hover{background-color:var(--ku4-carousel-controls-focus-background-color, #fff)}}";var d=t("ku4_carousel",function(){function t(t){var r=this;e(this,t);this.didSlide=o(this,"slide",7);this.swipeTolerance=44;this.auto=false;this.noSwipe=false;this.delay=8e3;this.interval=new i(this.delay).onInterval((function(){if(r.host.isConnected){r.display("next")}else{r.disconnectedCallback()}}));this.handleMouse=this.handleMouse.bind(this)}t.prototype.next=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.hasSlides){return[2,this]}return[4,this.pause()];case 1:t.sent();return[2,this.display("next")]}}))}))};t.prototype.previous=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.hasSlides){return[2,this]}return[4,this.pause()];case 1:t.sent();return[2,this.display("prev")]}}))}))};t.prototype.slideTo=function(t){return __awaiter(this,void 0,void 0,(function(){var e,o,r,a,n;var i=this;return __generator(this,(function(u){switch(u.label){case 0:return[4,this.pause()];case 1:u.sent();e=this.slides;o=isNaN(t)?e.findIndex((function(e){return e.getAttribute("name")===t}))+1:parseInt(t);if(!!(o===this.currentSlideNumber||o<1||this.rolodex.length<o))return[3,5];r=o-this.currentSlideNumber;a=r<0?"prev":"next";n=Math.abs(r);u.label=2;case 2:if(!(0<--n))return[3,4];return[4,s(10).then((function(){return i.rolodex[a]}))];case 3:u.sent();return[3,2];case 4:this.display(a);u.label=5;case 5:return[2]}}))}))};t.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.interval.clear();return[2]}))}))};t.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,o;return __generator(this,(function(r){t=this,e=t.auto,o=t.interval;e&&o.start();return[2]}))}))};Object.defineProperty(t.prototype,"slides",{get:function(){return[].slice.call(this.host.children)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasSlides",{get:function(){return this.rolodex&&this.rolodex.length>1},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentSlideNumber",{get:function(){var t=this.rolodex;return t&&(t.isEmpty?0:t.index+1)},enumerable:false,configurable:true});t.prototype.display=function(t){var e=this;window.requestAnimationFrame((function(){var o=e.slideState,r=o.previous,a=o.current;var n=e.rolodex[t];if(r){r.deactivate()}a.slideOut(t);n.slideIn(t);e.slideState={previous:a,current:n};e.didSlide.emit(e.currentSlideNumber)}));return this};t.prototype.handleMouse=function(t){if(!this.host.contains(t.relatedTarget)){this.play()}};t.prototype.componentWillLoad=function(){var t=this;if(!this.noSwipe){this.swipe=new c(this.host,this.swipeTolerance).onLeft((function(){return t.next()})).onRight((function(){return t.previous()}))}var e;try{e=this.host.querySelectorAll(":scope > ku4-carousel-slide")}catch(o){e=[].slice.call(this.host.querySelectorAll("ku4-carousel-slide")).reduce((function(e,o){if(o.parentNode===t.host){e.push(o)}return e}),[])}this.rolodex=new u(e);this.rolodex.current&&this.rolodex.current.activate&&this.rolodex.current.activate();this.slideState={current:this.rolodex.current};if(this.auto){this.host.addEventListener("mouseout",this.handleMouse);this.play()}};t.prototype.connectedCallback=function(){if(this.swipe){this.swipe.destroy()}this.host.removeEventListener("mouseout",this.handleMouse);this.interval.clear()};t.prototype.disconnectedCallback=function(){if(this.swipe){this.swipe.destroy()}this.host.removeEventListener("mouseout",this.handleMouse);this.interval.clear()};t.prototype.render=function(){var t=this;var e=this,o=e.hasSlides,n=e.currentSlideNumber,i=n===void 0?1:n;return r(a,{"aria-roledescription":"carousel",current:i},o&&r("section",{class:"controls"},r("button",{type:"button",class:"prev",onClick:function(){return t.previous()},"aria-label":"previous slide"}),r("button",{type:"button",class:"next",onClick:function(){return t.next()},"aria-label":"next slide"})),r("section",{class:"slide-container","aria-live":"polite"},r("slot",null)),o&&r("section",{class:"pages"},r("span",{class:"pages-text"},"".concat(i," of ").concat(this.rolodex.length))))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());d.style=l}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,r){function a(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,n){function i(t){try{u(r.next(t))}catch(e){n(e)}}function s(t){try{u(r["throw"](t))}catch(e){n(e)}}function u(t){t.done?o(t.value):a(t.value).then(i,s)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return u([t,e])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(o)try{if(r=1,a&&(n=i[0]&2?a["return"]:i[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,i[1])).done)return n;if(a=0,n)i=[i[0]&2,n.value];switch(i[0]){case 0:case 1:n=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;a=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(i[0]===6||i[0]===2)){o=0;continue}if(i[0]===3&&(!n||i[1]>n[0]&&i[1]<n[3])){o.label=i[1];break}if(i[0]===6&&o.label<n[1]){o.label=n[1];n=i;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(i);break}if(n[2])o.ops.pop();o.trys.pop();continue}i=e.call(t,o)}catch(s){i=[6,s];a=0}finally{r=n=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-d12104ec.system.js","./p-563d1517.system.js","./p-eb21757a.system.js"],(function(t){"use strict";var e,o,r,a,n,i,s,u,c;return{setters:[function(t){e=t.r;o=t.c;r=t.h;a=t.H;n=t.g},function(t){i=t.L;s=t.Y;u=t.c},function(t){c=t.S}],execute:function(){var l="@-webkit-keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-left{0%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@keyframes ku4-carousel-enter-right{0%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}100%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}}@-webkit-keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-left{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);opacity:0}}@-webkit-keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}@keyframes ku4-carousel-exit-right{0%{top:0;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);opacity:1}100%{top:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);opacity:0}}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;overflow:hidden;background-color:var(--ku4-carousel-background-color, #fff)}.slide-container{position:relative;width:100%;height:100%;overflow:hidden}.controls .next,.controls .prev{position:absolute;display:var(--ku4-carousel-controls-display, block);top:var(--ku4-carousel-controls-top, 0);border:var(--ku4-carousel-controls-border, none);background-color:var(--ku4-carousel-controls-background-color, #fff);font-family:var(--ku4-carousel-controls-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-controls-font-weight, 400);font-size:var(--ku4-carousel-controls-font-size, 8px);line-height:var(--ku4-carousel-controls-line-height, 12px);opacity:var(--ku4-carousel-controls-opacity, 0.2);z-index:var(--ku4-carousel-controls-z-index, 2)}.controls .next:focus,.controls .prev:focus{background-color:var(--ku4-carousel-controls-focus-background-color, transparent);outline:var(--ku4-carousel-controls-focus-outline, none);opacity:var(--ku4-carousel-controls-focus-opacity, 0.2)}.controls .next:hover,.controls .prev:hover{background-color:var(--ku4-carousel-controls-hover-background-color, transparent);opacity:var(--ku4-carousel-controls-hover-opacity, 1)}.controls .next{right:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-next-background-image);background-repeat:var(--ku4-carousel-controls-next-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-background-size, 100% 100%)}.controls .next:focus{background-image:var(--ku4-carousel-controls-next-focus-background-image);background-repeat:var(--ku4-carousel-controls-next-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-focus-background-size, 100% 100%)}.controls .next:hover{background-image:var(--ku4-carousel-controls-next-hover-background-image);background-repeat:var(--ku4-carousel-controls-next-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-next-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-next-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-next-hover-background-size, 100% 100%)}.controls .prev{left:0;width:var(--ku4-carousel-controls-next-width, 40px);height:var(--ku4-carousel-controls-next-height, 100%);background-image:var(--ku4-carousel-controls-previous-background-image);background-repeat:var(--ku4-carousel-controls-previous-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-background-size, 100% 100%)}.controls .prev:focus{background-image:var(--ku4-carousel-controls-previous-focus-background-image);background-repeat:var(--ku4-carousel-controls-previous-focus-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-focus-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-focus-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-focus-background-size, 100% 100%)}.controls .prev:hover{background-image:var(--ku4-carousel-controls-previous-hover-background-image);background-repeat:var(--ku4-carousel-controls-previous-hover-background-repeat, no-repeat);background-position-x:var(--ku4-carousel-controls-previous-hover-background-position-x, 0);background-position-y:var(--ku4-carousel-controls-previous-hover-background-position-y, 50%);background-size:var(--ku4-carousel-controls-previous-hover-background-size, 100% 100%)}.pages{position:absolute;display:var(--ku4-carousel-pages-display, block);top:var(--ku4-carousel-pages-top, auto);bottom:var(--ku4-carousel-pages-bottom, 4px);width:var(--ku4-carousel-pages-width, auto);height:var(--ku4-carousel-pages-height, 20px);background-color:var(--ku4-carousel-pages-background-color, transparent);opacity:var(--ku4-carousel-pages-opacity, 0.5);text-align:center;z-index:3}.pages-text{display:inline-block;padding:var(--ku4-carousel-pages-text-padding, 4px);font-family:var(--ku4-carousel-pages-text-font-family, Helvetica, Arial, sans-serif);font-weight:var(--ku4-carousel-pages-text-font-weight, 600);font-size:var(--ku4-carousel-pages-text-font-size, 14px);line-height:var(--ku4-carousel-pages-text-line-height, 16px);color:var(--ku4-carousel-pages-text-color, #aaa)}::slotted(*){position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;top:0;left:-100%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(.inactive){position:absolute;height:100%;left:0}::slotted(.inactive.prev){-webkit-animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);animation-name:var(--ku4-carousel-animation-inactive-previous-name, ku4-carousel-exit-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.inactive.next){-webkit-animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);animation-name:var(--ku4-carousel-animation-inactive-next-name, ku4-carousel-exit-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function);animation-timing-function:var(--ku4-carousel-animation-timing-function);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active){position:relative;top:0;left:0;width:auto;height:100%;z-index:1}::slotted(.active.prev){-webkit-animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);animation-name:var(--ku4-carousel-animation-active-previous-name, ku4-carousel-enter-left);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}::slotted(.active.next){-webkit-animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);animation-name:var(--ku4-carousel-animation-active-next-name, ku4-carousel-enter-right);-webkit-animation-duration:var(--ku4-carousel-animation-duration, 0.4s);animation-duration:var(--ku4-carousel-animation-duration, 0.4s);-webkit-animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);animation-timing-function:var(--ku4-carousel-animation-timing-function, ease);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (hover: hover){.controls:hover{background-color:var(--ku4-carousel-controls-focus-background-color, #fff)}}";var d=t("ku4_carousel",function(){function t(t){var r=this;e(this,t);this.didSlide=o(this,"slide",7);this.swipeTolerance=44;this.auto=false;this.noSwipe=false;this.delay=8e3;this.interval=new i(this.delay).onInterval((function(){if(r.host.isConnected){r.display("next")}else{r.disconnectedCallback()}}));this.handleMouse=this.handleMouse.bind(this)}t.prototype.next=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.hasSlides){return[2,this]}return[4,this.pause()];case 1:t.sent();return[2,this.display("next")]}}))}))};t.prototype.previous=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.hasSlides){return[2,this]}return[4,this.pause()];case 1:t.sent();return[2,this.display("prev")]}}))}))};t.prototype.slideTo=function(t){return __awaiter(this,void 0,void 0,(function(){var e,o,r,a,n;var i=this;return __generator(this,(function(u){switch(u.label){case 0:return[4,this.pause()];case 1:u.sent();e=this.slides;o=isNaN(t)?e.findIndex((function(e){return e.getAttribute("name")===t}))+1:parseInt(t);if(!!(o===this.currentSlideNumber||o<1||this.rolodex.length<o))return[3,5];r=o-this.currentSlideNumber;a=r<0?"prev":"next";n=Math.abs(r);u.label=2;case 2:if(!(0<--n))return[3,4];return[4,s(10).then((function(){return i.rolodex[a]}))];case 3:u.sent();return[3,2];case 4:this.display(a);u.label=5;case 5:return[2]}}))}))};t.prototype.pause=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.interval.clear();return[2]}))}))};t.prototype.play=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,o;return __generator(this,(function(r){t=this,e=t.auto,o=t.interval;e&&o.start();return[2]}))}))};Object.defineProperty(t.prototype,"slides",{get:function(){return[].slice.call(this.host.children)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasSlides",{get:function(){return this.rolodex&&this.rolodex.length>1},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentSlideNumber",{get:function(){var t=this.rolodex;return t&&(t.isEmpty?0:t.index+1)},enumerable:false,configurable:true});t.prototype.display=function(t){var e=this;window.requestAnimationFrame((function(){var o=e.slideState,r=o.previous,a=o.current;var n=e.rolodex[t];if(r){r.deactivate()}a.slideOut(t);n.slideIn(t);e.slideState={previous:a,current:n};e.didSlide.emit(e.currentSlideNumber)}));return this};t.prototype.handleMouse=function(t){if(!this.host.contains(t.relatedTarget)){this.play()}};t.prototype.componentWillLoad=function(){var t=this;if(!this.noSwipe){this.swipe=new c(this.host,this.swipeTolerance).onLeft((function(){return t.next()})).onRight((function(){return t.previous()}))}var e;try{e=this.host.querySelectorAll(":scope > ku4-carousel-slide")}catch(o){e=[].slice.call(this.host.querySelectorAll("ku4-carousel-slide")).reduce((function(e,o){if(o.parentNode===t.host){e.push(o)}return e}),[])}this.rolodex=new u(e);this.rolodex.current&&this.rolodex.current.activate&&this.rolodex.current.activate();this.slideState={current:this.rolodex.current};if(this.auto){this.host.addEventListener("mouseout",this.handleMouse);this.play()}};t.prototype.connectedCallback=function(){if(this.swipe){this.swipe.destroy()}this.host.removeEventListener("mouseout",this.handleMouse);this.interval.clear()};t.prototype.disconnectedCallback=function(){if(this.swipe){this.swipe.destroy()}this.host.removeEventListener("mouseout",this.handleMouse);this.interval.clear()};t.prototype.render=function(){var t=this;var e=this,o=e.hasSlides,n=e.currentSlideNumber,i=n===void 0?1:n;return r(a,{"aria-roledescription":"carousel",current:i},o&&r("section",{class:"controls"},r("button",{type:"button",class:"prev",onClick:function(){return t.previous()},"aria-label":"previous slide"}),r("button",{type:"button",class:"next",onClick:function(){return t.next()},"aria-label":"next slide"})),r("section",{class:"slide-container","aria-live":"polite"},r("slot",null)),o&&r("section",{class:"pages"},r("span",{class:"pages-text"},"".concat(i," of ").concat(this.rolodex.length))))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());d.style=l}}}));
@@ -1 +1 @@
1
- import{r as i,h as t,H as s,g as e}from"./p-52645384.js";import{Y as h,t as a,R as l}from"./p-5a54ccf4.js";const o=class{constructor(t){i(this,t),this.handleFocus=this.handleFocus.bind(this),this.handleChange=this.handleChange.bind(this),this.handleInput=this.handleInput.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.handleReset=this.handleReset.bind(this)}handleFocus(){h(100).then((()=>{this.empty=a.isNullOrEmpty(this.field.value)}))}handleChange(){this.empty=a.isNullOrEmpty(this.field.value)}handleInput(){this.empty=a.isNullOrEmpty(this.field.value)}handleKeyUp(){this.empty=a.isNullOrEmpty(this.field.value)}handleReset(){this.empty=!0}componentWillLoad(){this.field=this.host.querySelector("input, select, textarea"),this.empty=a.isNullOrEmpty(this.field.value),this.placeholder=this.field.getAttribute("placeholder"),this.field.addEventListener("focus",this.handleFocus),this.field.addEventListener("change",this.handleChange),this.field.addEventListener("input",this.handleInput),this.field.addEventListener("keyup",this.handleKeyUp);const i=this.field.getAttribute("aria-labelledby"),t=this.host.getAttribute("id")||l.uid();this.host.setAttribute("id",t),a.isNullOrEmpty(i)&&this.field.setAttribute("aria-labelledby",t),a.isFunction(this.host.closest)&&(this.form=this.host.closest("form"),this.form&&this.form.addEventListener&&this.form.addEventListener("reset",this.handleReset))}disconnectedCallback(){this.field&&this.field.removeEventListener&&(this.field.removeEventListener("focus",this.handleFocus),this.field.removeEventListener("change",this.handleChange),this.field.removeEventListener("input",this.handleInput),this.field.removeEventListener("keyup",this.handleKeyUp),this.form&&this.form.removeEventListener&&this.form.removeEventListener("reset",this.handleReset))}render(){const{empty:i,value:e,placeholder:h}=this;return t(s,null,t("label",{htmlFor:this.for,class:i?"empty":""},e||h),t("slot",null))}get host(){return e(this)}};o.style=":host{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;line-height:14px}::slotted(*){padding:6px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;font-size:18px;-webkit-appearance:none}label{position:absolute;display:var(--ku4-label-display, inline);top:var(--ku4-label-top, -6px);left:var(--ku4-label-left, 8px);padding:var(--ku4-label-padding, 0 4px);font-size:inherit;line-height:inherit;background-color:var(--ku4-label-background-color, inherit);color:inherit;z-index:1;white-space:nowrap;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}label.empty{opacity:0;-webkit-transition:all 0.1s ease;transition:all 0.1s ease}";export{o as ku4_label}
1
+ import{r as i,h as t,H as s,g as e}from"./p-934f94af.js";import{Y as h,t as a,R as l}from"./p-5a54ccf4.js";const o=class{constructor(t){i(this,t),this.handleFocus=this.handleFocus.bind(this),this.handleChange=this.handleChange.bind(this),this.handleInput=this.handleInput.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.handleReset=this.handleReset.bind(this)}handleFocus(){h(100).then((()=>{this.empty=a.isNullOrEmpty(this.field.value)}))}handleChange(){this.empty=a.isNullOrEmpty(this.field.value)}handleInput(){this.empty=a.isNullOrEmpty(this.field.value)}handleKeyUp(){this.empty=a.isNullOrEmpty(this.field.value)}handleReset(){this.empty=!0}componentWillLoad(){this.field=this.host.querySelector("input, select, textarea"),this.empty=a.isNullOrEmpty(this.field.value),this.placeholder=this.field.getAttribute("placeholder"),this.field.addEventListener("focus",this.handleFocus),this.field.addEventListener("change",this.handleChange),this.field.addEventListener("input",this.handleInput),this.field.addEventListener("keyup",this.handleKeyUp);const i=this.field.getAttribute("aria-labelledby"),t=this.host.getAttribute("id")||l.uid();this.host.setAttribute("id",t),a.isNullOrEmpty(i)&&this.field.setAttribute("aria-labelledby",t),a.isFunction(this.host.closest)&&(this.form=this.host.closest("form"),this.form&&this.form.addEventListener&&this.form.addEventListener("reset",this.handleReset))}disconnectedCallback(){this.field&&this.field.removeEventListener&&(this.field.removeEventListener("focus",this.handleFocus),this.field.removeEventListener("change",this.handleChange),this.field.removeEventListener("input",this.handleInput),this.field.removeEventListener("keyup",this.handleKeyUp),this.form&&this.form.removeEventListener&&this.form.removeEventListener("reset",this.handleReset))}render(){const{empty:i,value:e,placeholder:h}=this;return t(s,null,t("label",{htmlFor:this.for,class:i?"empty":""},e||h),t("slot",null))}get host(){return e(this)}};o.style=":host{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;line-height:14px}::slotted(*){padding:6px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;font-size:18px;-webkit-appearance:none}label{position:absolute;display:var(--ku4-label-display, inline);top:var(--ku4-label-top, -6px);left:var(--ku4-label-left, 8px);padding:var(--ku4-label-padding, 0 4px);font-size:inherit;line-height:inherit;background-color:var(--ku4-label-background-color, inherit);color:inherit;z-index:1;white-space:nowrap;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}label.empty{opacity:0;-webkit-transition:all 0.1s ease;transition:all 0.1s ease}";export{o as ku4_label}
@@ -1 +1 @@
1
- System.register(["./p-f58c2ed4.system.js"],(function(){"use strict";var e,t,s,a,o;return{setters:[function(r){e=r.d;t=r.N;s=r.w;a=r.p;o=r.b}],execute:function(){var r=function(){var o=Array.from(e.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(t,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===t}));var r={};if("onbeforeload"in o&&!history.scrollRestoration){return{then:function(){}}}{r.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,s.location.href)).href}return a(r)};r().then((function(e){return o([["p-bf64d160.system",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["p-e4f68eae.system",[[1,"ku4-carousel-controls",{for:[1]}]]],["p-543fea51.system",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["p-bf5cd1f9.system",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["p-4d4a49a4.system",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["p-eaa6e688.system",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["p-961a30c5.system",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["p-77105e17.system",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["p-80624e03.system",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["p-c7d12bf2.system",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["p-ea032bb1.system",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["p-2d695081.system",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["p-30c68717.system",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-83add0bd.system",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["p-85fb65c1.system",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["p-0b394531.system",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["p-b6d5f681.system",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-5a024700.system",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["p-b3083404.system",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["p-6d37f778.system",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],e)}))}}}));
1
+ System.register(["./p-d12104ec.system.js"],(function(){"use strict";var e,t,s,a,o;return{setters:[function(r){e=r.d;t=r.N;s=r.w;a=r.p;o=r.b}],execute:function(){var r=function(){var o=Array.from(e.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(t,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===t}));var r={};if("onbeforeload"in o&&!history.scrollRestoration){return{then:function(){}}}{r.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,s.location.href)).href}return a(r)};r().then((function(e){return o([["p-1357338f.system",[[1,"ku4-carousel",{swipeTolerance:[2,"swipe-tolerance"],auto:[4],noSwipe:[4,"no-swipe"],delay:[2],slideState:[32],next:[64],previous:[64],slideTo:[64],pause:[64],play:[64]}]]],["p-05a99806.system",[[1,"ku4-carousel-controls",{for:[1]}]]],["p-caf84e52.system",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["p-ac260744.system",[[1,"ku4-col",{startXs:[2,"start-xs"],startSm:[2,"start-sm"],startMd:[2,"start-md"],startLg:[2,"start-lg"],spanXs:[2,"span-xs"],spanSm:[2,"span-sm"],spanMd:[2,"span-md"],spanLg:[2,"span-lg"],orderXs:[2,"order-xs"],orderSm:[2,"order-sm"],orderMd:[2,"order-md"],orderLg:[2,"order-lg"]}]]],["p-77b1edbc.system",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["p-ec5d86de.system",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["p-0cba397e.system",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["p-e468ba85.system",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["p-534f855b.system",[[1,"ku4-grid",{columnsXs:[2,"columns-xs"],columnsSm:[2,"columns-sm"],columnsMd:[2,"columns-md"],columnsLg:[2,"columns-lg"],offsetLeftXs:[2,"offset-left-xs"],offsetLeftSm:[2,"offset-left-sm"],offsetLeftMd:[2,"offset-left-md"],offsetLeftLg:[2,"offset-left-lg"],offsetRight:[2,"offset-right"],offsetRightXs:[2,"offset-right-xs"],offsetRightSm:[2,"offset-right-sm"],offsetRightMd:[2,"offset-right-md"],offsetRightLg:[2,"offset-right-lg"],offsetXs:[2,"offset-xs"],offsetSm:[2,"offset-sm"],offsetMd:[2,"offset-md"],offsetLg:[2,"offset-lg"]}]]],["p-2b88cb44.system",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["p-ffe26c05.system",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["p-ef22004b.system",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["p-fc9d0277.system",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-fded7eeb.system",[[1,"ku4-preview",{for:[1],src:[1],altsrc:[1],orientation:[2],resolutionX:[2,"resolution-x"],resolutionY:[2,"resolution-y"],capture:[1],status:[1537],alt:[1],currentSrc:[32],read:[64]}]]],["p-f9b280d3.system",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["p-9be0de59.system",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["p-ae65e754.system",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-7c000b31.system",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["p-bdf70b2e.system",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["p-b1ca85ef.system",[[1,"ku4-validation",{for:[513],element:[513],pattern:[1],flags:[1],values:[1],checked:[4],method:[1],invalid:[1540],disabled:[1540],hidden:[1540],isValid:[32],validate:[64]}]]]],e)}))}}}));
@@ -1 +1 @@
1
- import{r as t,h as o,H as s}from"./p-52645384.js";const e=class{constructor(o){t(this,o),this.size="20%"}async toggle(){this.open=!this.open}get sizeValue(){const{bottom:t,top:o,right:s,size:e}=this;switch(!0){case t:case o:return{"max-height":e};case s:default:return{"max-width":e}}}render(){const{sizeValue:t,open:e}=this;return o(s,{style:t,"aria-hidden":e?"false":"true"},o("slot",null))}};e.style=":host{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;z-index:1}:host([top]),:host([bottom]){width:100%;height:0;-webkit-transition:height 0.4s;transition:height 0.4s}:host([left]),:host([right]){width:0;height:100%;-webkit-transition:width 0.4s;transition:width 0.4s}:host([top][open]),:host([bottom][open]){height:100%}:host([left][open]),:host([right][open]){width:100%}:host([top][open=false]),:host([bottom][open=false]){height:0}:host([left][open=false]),:host([right][open=false]){width:0}:host([top]),:host([left]){top:0;left:0}:host([bottom]){left:0;bottom:0}:host([right]){right:0;bottom:0}";export{e as ku4_drawer}
1
+ import{r as t,h as o,H as s}from"./p-934f94af.js";const e=class{constructor(o){t(this,o),this.size="20%"}async toggle(){this.open=!this.open}get sizeValue(){const{bottom:t,top:o,right:s,size:e}=this;switch(!0){case t:case o:return{"max-height":e};case s:default:return{"max-width":e}}}render(){const{sizeValue:t,open:e}=this;return o(s,{style:t,"aria-hidden":e?"false":"true"},o("slot",null))}};e.style=":host{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;z-index:1}:host([top]),:host([bottom]){width:100%;height:0;-webkit-transition:height 0.4s;transition:height 0.4s}:host([left]),:host([right]){width:0;height:100%;-webkit-transition:width 0.4s;transition:width 0.4s}:host([top][open]),:host([bottom][open]){height:100%}:host([left][open]),:host([right][open]){width:100%}:host([top][open=false]),:host([bottom][open=false]){height:0}:host([left][open=false]),:host([right][open=false]){width:0}:host([top]),:host([left]){top:0;left:0}:host([bottom]){left:0;bottom:0}:host([right]){right:0;bottom:0}";export{e as ku4_drawer}
@@ -1 +1 @@
1
- System.register(["./p-f58c2ed4.system.js","./p-563d1517.system.js"],(function(e){"use strict";var t,i,s,n,l,o,r;return{setters:[function(e){t=e.r;i=e.h;s=e.H;n=e.g},function(e){l=e.Y;o=e.t;r=e.R}],execute:function(){var h=":host{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;line-height:14px}::slotted(*){padding:6px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;font-size:18px;-webkit-appearance:none}label{position:absolute;display:var(--ku4-label-display, inline);top:var(--ku4-label-top, -6px);left:var(--ku4-label-left, 8px);padding:var(--ku4-label-padding, 0 4px);font-size:inherit;line-height:inherit;background-color:var(--ku4-label-background-color, inherit);color:inherit;z-index:1;white-space:nowrap;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}label.empty{opacity:0;-webkit-transition:all 0.1s ease;transition:all 0.1s ease}";var a=e("ku4_label",function(){function e(e){t(this,e);this.handleFocus=this.handleFocus.bind(this);this.handleChange=this.handleChange.bind(this);this.handleInput=this.handleInput.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleReset=this.handleReset.bind(this)}e.prototype.handleFocus=function(){var e=this;l(100).then((function(){e.empty=o.isNullOrEmpty(e.field.value)}))};e.prototype.handleChange=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleInput=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleKeyUp=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleReset=function(){this.empty=true};e.prototype.componentWillLoad=function(){this.field=this.host.querySelector("input, select, textarea");this.empty=o.isNullOrEmpty(this.field.value);this.placeholder=this.field.getAttribute("placeholder");this.field.addEventListener("focus",this.handleFocus);this.field.addEventListener("change",this.handleChange);this.field.addEventListener("input",this.handleInput);this.field.addEventListener("keyup",this.handleKeyUp);var e=this.field.getAttribute("aria-labelledby");var t=this.host.getAttribute("id")||r.uid();this.host.setAttribute("id",t);if(o.isNullOrEmpty(e)){this.field.setAttribute("aria-labelledby",t)}if(o.isFunction(this.host.closest)){this.form=this.host.closest("form");if(this.form&&this.form.addEventListener){this.form.addEventListener("reset",this.handleReset)}}};e.prototype.disconnectedCallback=function(){if(this.field&&this.field.removeEventListener){this.field.removeEventListener("focus",this.handleFocus);this.field.removeEventListener("change",this.handleChange);this.field.removeEventListener("input",this.handleInput);this.field.removeEventListener("keyup",this.handleKeyUp);if(this.form&&this.form.removeEventListener){this.form.removeEventListener("reset",this.handleReset)}}};e.prototype.render=function(){var e=this,t=e.empty,n=e.value,l=e.placeholder;return i(s,null,i("label",{htmlFor:this.for,class:"".concat(t?"empty":"")},n||l),i("slot",null))};Object.defineProperty(e.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());a.style=h}}}));
1
+ System.register(["./p-d12104ec.system.js","./p-563d1517.system.js"],(function(e){"use strict";var t,i,s,n,l,o,r;return{setters:[function(e){t=e.r;i=e.h;s=e.H;n=e.g},function(e){l=e.Y;o=e.t;r=e.R}],execute:function(){var h=":host{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;line-height:14px}::slotted(*){padding:6px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;font-size:18px;-webkit-appearance:none}label{position:absolute;display:var(--ku4-label-display, inline);top:var(--ku4-label-top, -6px);left:var(--ku4-label-left, 8px);padding:var(--ku4-label-padding, 0 4px);font-size:inherit;line-height:inherit;background-color:var(--ku4-label-background-color, inherit);color:inherit;z-index:1;white-space:nowrap;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}label.empty{opacity:0;-webkit-transition:all 0.1s ease;transition:all 0.1s ease}";var a=e("ku4_label",function(){function e(e){t(this,e);this.handleFocus=this.handleFocus.bind(this);this.handleChange=this.handleChange.bind(this);this.handleInput=this.handleInput.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this);this.handleReset=this.handleReset.bind(this)}e.prototype.handleFocus=function(){var e=this;l(100).then((function(){e.empty=o.isNullOrEmpty(e.field.value)}))};e.prototype.handleChange=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleInput=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleKeyUp=function(){this.empty=o.isNullOrEmpty(this.field.value)};e.prototype.handleReset=function(){this.empty=true};e.prototype.componentWillLoad=function(){this.field=this.host.querySelector("input, select, textarea");this.empty=o.isNullOrEmpty(this.field.value);this.placeholder=this.field.getAttribute("placeholder");this.field.addEventListener("focus",this.handleFocus);this.field.addEventListener("change",this.handleChange);this.field.addEventListener("input",this.handleInput);this.field.addEventListener("keyup",this.handleKeyUp);var e=this.field.getAttribute("aria-labelledby");var t=this.host.getAttribute("id")||r.uid();this.host.setAttribute("id",t);if(o.isNullOrEmpty(e)){this.field.setAttribute("aria-labelledby",t)}if(o.isFunction(this.host.closest)){this.form=this.host.closest("form");if(this.form&&this.form.addEventListener){this.form.addEventListener("reset",this.handleReset)}}};e.prototype.disconnectedCallback=function(){if(this.field&&this.field.removeEventListener){this.field.removeEventListener("focus",this.handleFocus);this.field.removeEventListener("change",this.handleChange);this.field.removeEventListener("input",this.handleInput);this.field.removeEventListener("keyup",this.handleKeyUp);if(this.form&&this.form.removeEventListener){this.form.removeEventListener("reset",this.handleReset)}}};e.prototype.render=function(){var e=this,t=e.empty,n=e.value,l=e.placeholder;return i(s,null,i("label",{htmlFor:this.for,class:"".concat(t?"empty":"")},n||l),i("slot",null))};Object.defineProperty(e.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());a.style=h}}}));
@@ -1 +1 @@
1
- import{r as t,h as i,H as s,g as n}from"./p-52645384.js";import{u as e}from"./p-a110d244.js";import"./p-5a54ccf4.js";const a=class{constructor(i){t(this,i),this.selected=!1,this.maxHeight=this.selected?"none":"0px"}handleTransitionEnd(){this.maxHeight=this.selected?"none":"0px"}async select(){this.selected||(this.selected=!0,this.hasTransition?this.maxHeight=`${this.host.scrollHeight}px`:this.handleTransitionEnd())}async deselect(){this.selected&&(this.selected=!1,this.host.style.maxHeight=`${this.host.scrollHeight}px`,this.hasTransition?this.maxHeight="0px":this.handleTransitionEnd())}async connect(t){t.$assignPanel(this),this.tab=t}get hasTransition(){const t=window.getComputedStyle(this.host).getPropertyValue("transition");return!/none/.test(t)}render(){const{selected:t,tab:n,maxHeight:a}=this;return i(s,{role:"tabpanel",id:this.host.id||e(),"aria-hidden":t?"false":"true","aria-labelledby":n&&n.id,tabIndex:t?0:-1,style:{maxHeight:a}},i("slot",null))}get host(){return n(this)}};a.style=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:auto}@media only screen and (min-width: 768px){:host{display:none;border-top:1px solid #ccc;border-bottom:1px solid #ccc;max-height:initial !important;-webkit-transition:none;transition:none;-ms-flex-order:2;order:2}:host([selected]){display:block;max-height:initial !important;-webkit-transition:none;transition:none}}";export{a as ku4_tab_panel}
1
+ import{r as t,h as i,H as s,g as n}from"./p-934f94af.js";import{u as e}from"./p-a110d244.js";import"./p-5a54ccf4.js";const a=class{constructor(i){t(this,i),this.selected=!1,this.maxHeight=this.selected?"none":"0px"}handleTransitionEnd(){this.maxHeight=this.selected?"none":"0px"}async select(){this.selected||(this.selected=!0,this.hasTransition?this.maxHeight=`${this.host.scrollHeight}px`:this.handleTransitionEnd())}async deselect(){this.selected&&(this.selected=!1,this.host.style.maxHeight=`${this.host.scrollHeight}px`,this.hasTransition?this.maxHeight="0px":this.handleTransitionEnd())}async connect(t){t.$assignPanel(this),this.tab=t}get hasTransition(){const t=window.getComputedStyle(this.host).getPropertyValue("transition");return!/none/.test(t)}render(){const{selected:t,tab:n,maxHeight:a}=this;return i(s,{role:"tabpanel",id:this.host.id||e(),"aria-hidden":t?"false":"true","aria-labelledby":n&&n.id,tabIndex:t?0:-1,style:{maxHeight:a}},i("slot",null))}get host(){return n(this)}};a.style=":host{-webkit-backface-visibility:hidden;display:block;width:100%;height:auto;max-height:0;-webkit-transition:max-height 0.4s, padding 0.6s;transition:max-height 0.4s, padding 0.6s;overflow:auto}@media only screen and (min-width: 768px){:host{display:none;border-top:1px solid #ccc;border-bottom:1px solid #ccc;max-height:initial !important;-webkit-transition:none;transition:none;-ms-flex-order:2;order:2}:host([selected]){display:block;max-height:initial !important;-webkit-transition:none;transition:none}}";export{a as ku4_tab_panel}