ku4web-components 6.7.4 → 6.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. package/angular/index.js +1 -1
  2. package/angular/index.mjs +1 -1
  3. package/dist/cjs/index-69919a4f.js +15 -0
  4. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +1 -1
  5. package/dist/cjs/ku4-carousel.cjs.entry.js +1 -1
  6. package/dist/cjs/ku4-feature.cjs.entry.js +1 -1
  7. package/dist/cjs/ku4-focus-trap.cjs.entry.js +1 -1
  8. package/dist/cjs/ku4-form.cjs.entry.js +1 -1
  9. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  10. package/dist/cjs/ku4-mask.cjs.entry.js +2 -2
  11. package/dist/cjs/ku4-modal.cjs.entry.js +2 -2
  12. package/dist/cjs/ku4-preview.cjs.entry.js +1 -1
  13. package/dist/cjs/ku4-tab-list.cjs.entry.js +2 -2
  14. package/dist/cjs/ku4-tab-panel.cjs.entry.js +2 -2
  15. package/dist/cjs/ku4-tab.cjs.entry.js +2 -2
  16. package/dist/cjs/ku4-tooltip.cjs.entry.js +1 -1
  17. package/dist/cjs/ku4-validation.cjs.entry.js +1 -1
  18. package/dist/cjs/{uid-04ee16aa.js → uid-682bb993.js} +1 -1
  19. package/dist/esm/index-adc31e97.js +3 -0
  20. package/dist/esm/ku4-carousel-controls.entry.js +1 -1
  21. package/dist/esm/ku4-carousel.entry.js +1 -1
  22. package/dist/esm/ku4-feature.entry.js +1 -1
  23. package/dist/esm/ku4-focus-trap.entry.js +1 -1
  24. package/dist/esm/ku4-form.entry.js +1 -1
  25. package/dist/esm/ku4-label.entry.js +2 -2
  26. package/dist/esm/ku4-mask.entry.js +2 -2
  27. package/dist/esm/ku4-modal.entry.js +2 -2
  28. package/dist/esm/ku4-preview.entry.js +1 -1
  29. package/dist/esm/ku4-tab-list.entry.js +2 -2
  30. package/dist/esm/ku4-tab-panel.entry.js +2 -2
  31. package/dist/esm/ku4-tab.entry.js +2 -2
  32. package/dist/esm/ku4-tooltip.entry.js +1 -1
  33. package/dist/esm/ku4-validation.entry.js +1 -1
  34. package/dist/esm/{uid-7b4b0e6e.js → uid-a87782ca.js} +1 -1
  35. package/dist/esm-es5/index-adc31e97.js +1 -0
  36. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  37. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  38. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  39. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  40. package/dist/esm-es5/ku4-form.entry.js +1 -1
  41. package/dist/esm-es5/ku4-label.entry.js +1 -1
  42. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  43. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  44. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  45. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  46. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  47. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  48. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  49. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  50. package/dist/esm-es5/uid-a87782ca.js +1 -0
  51. package/dist/ku4web-components/ku4web-components.esm.js +1 -1
  52. package/dist/ku4web-components/{p-591104cc.system.entry.js → p-0e578877.system.entry.js} +1 -1
  53. package/dist/ku4web-components/p-0f3da44d.system.entry.js +1 -0
  54. package/dist/ku4web-components/{p-49a0b872.entry.js → p-23ff9bcd.entry.js} +1 -1
  55. package/dist/ku4web-components/p-29a8bbab.entry.js +1 -0
  56. package/dist/ku4web-components/{p-e3e309ca.entry.js → p-36f621f0.entry.js} +1 -1
  57. package/dist/ku4web-components/{p-684ff784.system.entry.js → p-376b72f4.system.entry.js} +1 -1
  58. package/dist/ku4web-components/{p-a0180821.entry.js → p-3bf6b262.entry.js} +1 -1
  59. package/dist/ku4web-components/{p-3a364945.entry.js → p-46b0daaf.entry.js} +1 -1
  60. package/dist/ku4web-components/p-54fb5b7d.js +1 -0
  61. package/dist/ku4web-components/{p-b5e2d0f3.system.entry.js → p-5cccec1b.system.entry.js} +1 -1
  62. package/dist/ku4web-components/p-68376c90.system.js +1 -1
  63. package/dist/ku4web-components/{p-4f31ea4d.system.entry.js → p-6c6c1035.system.entry.js} +1 -1
  64. package/dist/ku4web-components/{p-541bf0f5.system.entry.js → p-76ed1a14.system.entry.js} +1 -1
  65. package/dist/ku4web-components/p-7fb3c20b.entry.js +1 -0
  66. package/dist/ku4web-components/p-8091c9a5.js +1 -0
  67. package/dist/ku4web-components/{p-8539cf81.entry.js → p-80c99a74.entry.js} +1 -1
  68. package/dist/ku4web-components/{p-6e094352.entry.js → p-825c4eb1.entry.js} +1 -1
  69. package/dist/ku4web-components/p-89670006.system.entry.js +1 -0
  70. package/dist/ku4web-components/{p-cefe1c43.entry.js → p-8e94fc34.entry.js} +1 -1
  71. package/dist/ku4web-components/{p-5881c1d7.entry.js → p-918a802a.entry.js} +1 -1
  72. package/dist/ku4web-components/{p-f3b9f60d.entry.js → p-9d3e0ac4.entry.js} +1 -1
  73. package/dist/ku4web-components/{p-a8a1f354.system.entry.js → p-a43cea20.system.entry.js} +1 -1
  74. package/dist/ku4web-components/{p-0761c31a.system.entry.js → p-a51c6fe5.system.entry.js} +1 -1
  75. package/dist/ku4web-components/p-ad57c6a3.system.js +1 -0
  76. package/dist/ku4web-components/{p-79ea33f5.system.entry.js → p-b32c7075.system.entry.js} +1 -1
  77. package/dist/ku4web-components/{p-68d94b4d.entry.js → p-ba6e9e3d.entry.js} +1 -1
  78. package/dist/ku4web-components/{p-1b3dda3d.entry.js → p-c52796ac.entry.js} +1 -1
  79. package/dist/ku4web-components/{p-2e99f950.system.entry.js → p-db4732d6.system.entry.js} +1 -1
  80. package/dist/ku4web-components/{p-9a9a9311.system.entry.js → p-dd984902.system.entry.js} +1 -1
  81. package/dist/ku4web-components/{p-84c91ca0.system.entry.js → p-e4e56edf.system.entry.js} +1 -1
  82. package/dist/ku4web-components/{p-f4012b76.entry.js → p-e56f956e.entry.js} +1 -1
  83. package/dist/ku4web-components/p-e9482cb1.system.js +1 -0
  84. package/dist/ku4web-components/p-f5f5958d.system.entry.js +1 -0
  85. package/package.json +15 -15
  86. package/react/index.js +1 -1
  87. package/react/index.mjs +1 -1
  88. package/vue/index.js +1 -1
  89. package/vue/index.mjs +1 -1
  90. package/vue3/index.js +1 -1
  91. package/vue3/index.mjs +1 -1
  92. package/dist/cjs/index-2d850c25.js +0 -15
  93. package/dist/esm/index-4dba724d.js +0 -3
  94. package/dist/esm-es5/index-4dba724d.js +0 -1
  95. package/dist/esm-es5/uid-7b4b0e6e.js +0 -1
  96. package/dist/ku4web-components/p-0af98743.js +0 -1
  97. package/dist/ku4web-components/p-2639a642.entry.js +0 -1
  98. package/dist/ku4web-components/p-30ae2ddb.system.entry.js +0 -1
  99. package/dist/ku4web-components/p-608ea1d6.entry.js +0 -1
  100. package/dist/ku4web-components/p-6981c0c5.system.js +0 -1
  101. package/dist/ku4web-components/p-cabd234a.system.entry.js +0 -1
  102. package/dist/ku4web-components/p-d44118ae.js +0 -1
  103. package/dist/ku4web-components/p-e11b977e.system.js +0 -1
  104. package/dist/ku4web-components/p-f8ee65f5.system.entry.js +0 -1
@@ -0,0 +1 @@
1
+ class t{static isNull(t){return null===t}static isEmpty(r){return t.isString(r)&&""===r||t.isArray(r)&&r.length<1||t.isObjectLiteral(r)&&Object.keys(r).length<1}static isUndefined(t){return void 0===t}static isZero(t){return 0===t}static exists(r){return!(t.isUndefined(r)||t.isNull(r))}static isNullOrEmpty(r){return!t.exists(r)||t.isEmpty(r)}static isArray(t){return Array.isArray(t)}static isBool(t){return"boolean"==typeof t}static isTrue(r){return t.isBool(r)&&!0===r}static isFalse(r){return t.isBool(r)&&!1===r}static isDate(t){return t instanceof Date}static isNumber(t){return("number"==typeof t||t instanceof Number)&&!isNaN(t)}static isEven(t){return this.isNumber(t)&&!this.isZero(t)&&t%2==0}static isOdd(t){return this.isNumber(t)&&!this.isZero(t)&&!this.isEven(t)}static isString(t){return"string"==typeof t||t instanceof String}static isFunction(t){return t instanceof Function}static isAsyncFunction(r){try{return"AsyncFunction"===Object.getPrototypeOf(r).constructor.name||t.isFunction(r)&&/^async/.test(r.toString())||t.isFunction(r().then)}catch(t){return!1}}static isPromise(t){return t instanceof Promise}static isObject(r){return t.exists(r)&&"object"==typeof r&&!(t.isBool(r)||t.isNumber(r)||t.isDate(r)||t.isArray(r)||t.isString(r)||t.isFunction(r))}static isObjectLiteral(r){return t.isObject(r)&&r.constructor==={}.constructor}static isTruthy(r){return!t.isFalsy(r)}static isFalsy(r){return t.isZero(r)||t.isFalse(r)||t.isNullOrEmpty(r)||isNaN(r)}}function r(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/^[\s\n]*/,""):r}function n(r){return t.exists(r)&&t.isFunction(r.replace)?r.replace(/[\s\n]*$/,""):r}var e=Object.freeze({__proto__:null,build:function(...t){return"".concat(...t)},chunk:function(r,n=0){if(!t.isString(r)||Number.isNaN(n)||n<0)return[];if(n<r.length){let t=0;const e=n||r.length,i=[];for(;t<r.length;)i.push(r.slice(t,t+e)),t+=e;return i}return[r]},format:function(t,...r){return r.reduce(((t,r,n)=>t.replace(new RegExp(`\\{${n}\\}`,"g"),r&&r.toString?r.toString():r)),t)},trim:function(t){return r(n(t))},trimStart:r,trimEnd:n,capitalize:function(t=""){return(t||"").charAt(0).toUpperCase()+(t||"").slice(1).toLowerCase()},mask:function(r,n,e="_"){const i=r.toString().split(""),s=new RegExp(e);return t.isFunction(n)?n(r):t.isString(n)&&n.split("").reduce(((t,e)=>i.length>0&&(s.test(e)||i[0]===e&&r.indexOf(i[0])===n.indexOf(e))?t+i.shift():t+e),"")},unmask:function(r,n,e="_"){const i=new RegExp(e);return t.isFunction(n)?n(r):t.isString(n)&&r.split("").reduce(((t,r,e)=>i.test(r)||!i.test(n.charAt(e))&&n.charAt(e)===r?t:t+r),"")}}),i=t=>t.reduce(((t,r)=>(t.includes(r)||t.push(r),t)),[]);class s{_list;_head;constructor(t){this._list=t,this._head=0}get isEmpty(){return this.length<1}get index(){return this._head}get length(){return this._list.length}get current(){return this._list[this._head]}get next(){const{length:t}=this;let r=this._head;return this._head=r++<t-1?r:0,this.current}get prev(){const{length:t}=this;let r=this._head;return this._head=--r<0?t-1:r,this.current}get peekNext(){const{length:t}=this,r=this._head;return this._list[r+1<t?r+1:0]}get peekPrev(){const{length:t}=this,r=this._head;return this._list[r-1<0?t-1:r-1]}}function u(t,r){try{return t()}catch{return r}}function a(t,r=0){const n=Math.pow(10,-r);return Math.round(parseFloat((t*n).toFixed(Math.abs(r))))/n}function h(t,r=0){return a(t+5*Math.pow(10,r-1),r)}function c(t,r=0){return 0===t?0:a(t-5*Math.pow(10,r-1),r)}function o(t){const r=(t,n=0,e=1)=>0<t?r(--t,e,n+e):n;return r(t)}function l(t){let r=0,n=1,e=0;for(;t>1;)e=r,r=n,n+=e,t--;return t<1?r:n}u.async=async(t,r)=>{try{return await t()}catch{return r}},Object.freeze({__proto__:null,random:function(t=0,r=1){return Math.random()*(r-t)+t},round:a,roundUp:h,roundDown:c,roundTowardZero:function(t,r=0){return t<0?h(t,r):c(t,r)},gcd:function t(r,n){return 0===n?Math.abs(r):t(n,r%n)},fib:o,fib2:l,fibArray:function(t){return Array(t).fill(0).map((()=>o(--t))).reverse()},fib2Array:function(t){return Array(t).fill(0).map((()=>l(--t))).reverse()},tryParseInt:function(t,r=0){const n=parseInt(t);return Number.isNaN(n)?r:n},tryParseFloat:function(t,r=0){const n=parseFloat(t);return Number.isNaN(n)?r:n}});class f{constructor(r=0,n=0){if(!t.isNumber(r)||!t.isNumber(n))throw new Error("Coord requires numeric x and y values");this._x=r,this._y=n}get x(){return this._x}get y(){return this._y}get value(){return{x:this.x,y:this.y}}get half(){return this.divide(new f(2,2))}get abs(){return new f(Math.abs(this.x),Math.abs(this.y))}equals(t){return this.x===t.x&&this.y===t.y}add(t){return new f(this.x+t.x,this.y+t.y)}subtract(t){return new f(this.x-t.x,this.y-t.y)}multiply(t){return new f(this.x*t.x,this.y*t.y)}divide(t){return new f(this.x/t.x,this.y/t.y)}round(t=0){return new f(a(this.x,t),a(this.y,t))}toString(){return`(${this.x},${this.y})`}static canParse(r){return t.isArray(r)?!(Number.isNaN(r[0])||Number.isNaN(r[1])):t.isObjectLiteral(r)&&"x"in r&&"y"in r?!(Number.isNaN(r.x)||Number.isNaN(r.y)):r instanceof f}static parse(r){return t.exists(r)?r instanceof f?r:t.isArray(r)?new f(r[0],r[1]):t.isObjectLiteral(r)&&t.exists(r.x)&&t.exists(r.y)?new f(r.x,r.y):null:null}static tryParse(t){return u((()=>f.parse(t)),null)}}class d extends f{constructor(t=0,r=0){super(t,r),this._lengthSquared=Math.pow(t,2)+Math.pow(r,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===t&&0===r?0:t/this._magnitude,this._unitNormalY=0===t&&0===r?0:r/this._magnitude}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new d(this._unitNormalX,this._unitNormalY)}get invert(){return new d(-this.x,-this.y)}get norm(){return new d(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new d(-this.y,this.x)}equals(t){return t instanceof d&&this.x===t.x&&this.y===t.y}add(t){return t instanceof d?new d(this.x+t.x,this.y+t.y):null}dot(t){return t instanceof d?this.x*t.x+this.y*t.y:null}perpendicularAtTo(t){if(!(t instanceof d))return null;const r=t.add(this.projectionOfOnto(t).invert);return new d(r.x,r.y)}projectionOfOnto(t){if(!(t instanceof d))return null;const r=t.normal.scale(this.dot(t.normal));return new d(r.x,r.y)}scale(t){return new d(this.x*t,this.y*t)}unitNormalDot(t){return t instanceof d?this.normal.x*t.normal.x+this.normal.y*t.normal.y:null}reflect(t){if(!(t instanceof d))return null;if(t.isZero)return this;const r=t.normal;return this.add(r.scale(2*r.dot(this)).invert)}round(t=0){return new d(a(this.x,t),a(this.y,t))}}class m extends f{constructor(t,r){super(t,r)}isAbove(t){return this.y<t.y}isBelow(t){return this.y>t.y}isLeftOf(t){return this.x<t.x}isRightOf(t){return this.x>t.x}distanceFrom(t){return new d(this.x-t.x,this.y-t.y)}distanceTo(t){return this.distanceFrom(t).invert}static canParse(t){return t instanceof m||f.canParse(t)}static parse(t){if(t instanceof m)return t;const r=f.parse(t);return new m(r.x,r.y)}static tryParse(t){return u((()=>m.parse(t)),null)}}class p{constructor(t=0,r=0,n=0,e=0){this.origin=new m(t,r),this.dimensions=new f(n,e),this.diagonal=m.parse(this.origin.add(this.dimensions)),this.center=this.diagonal.half}contains(t){return this.origin.isAbove(t)&&this.origin.isLeftOf(t)&&this.diagonal.isRightOf(t)&&this.diagonal.isBelow(t)}aspectToFit(t){const r=this.dimensions,n=t.dimensions,e=n.x,i=n.y;let s=r.x,u=r.y;return s>u&&0!==s?(u*=e/s,s=e,u>i&&(u=i,s*=u/r.y)):u>i&&(s*=i/u,u=i),new p(this.origin.x,this.origin.y,s,u)}}var g=(t,r,n=!1)=>{let e;return(...i)=>{const s=n&&!e;clearTimeout(e),e=setTimeout((()=>{e=null,n||t(...i)}),r),s&&t(...i)}};class w{_milliseconds;_intervalId;_didInterval;constructor(t){this._milliseconds=t}get isRunning(){return t.exists(this._intervalId)}onInterval(t){return this.clear(),this._didInterval=t,this}start(){return this.clear(),this._intervalId=setInterval((()=>{this._didInterval()}),this._milliseconds),this}clear(){return clearInterval(this._intervalId),this._intervalId=null,this}}class y{_milliseconds;_timeoutId;_didTimeout;constructor(t){this._milliseconds=t}get isRunning(){return t.exists(this._timeoutId)}onTimeout(t){return this.clear(),this._didTimeout=t,this}start(){return this.clear(),this._timeoutId=setTimeout((()=>{this._didTimeout()}),this._milliseconds),this}clear(){return clearTimeout(this._timeoutId),this._timeoutId=null,this}}var _=t=>new Promise((r=>setTimeout(r,t)));function b(t){const r=isNaN(parseInt(t))||t<0||t>24?24:t,n=Math.random().toString().substring(2),e=Math.random().toString().substring(2);return n.concat(e).substring(0,r)}function A(){return function t(r){return r?(r^16*Math.random()>>r/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}var N=Object.freeze({__proto__:null,uid:b,uuid:A,suid:function(){return Symbol(b())},suuid:function(){return Symbol(A())}});Object.freeze({__proto__:null,pattern:t=>t.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-+]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/_:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?_]+=[^=?_]*(&[^=?_]+=[^=?_]*)*(_.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});export{y as C,w as L,p as M,N as R,_ as Y,e as a,s as c,u as h,g as j,i as o,t}
@@ -1 +1 @@
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,o){function a(t){try{s(n.next(t))}catch(e){o(e)}}function u(t){try{s(n["throw"](t))}catch(e){o(e)}}function s(t){t.done?i(t.value):r(t.value).then(a,u)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=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: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(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(u){a=[6,u];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-3074face.system.js","./p-e11b977e.system.js","./p-eb21757a.system.js"],(function(t){"use strict";var e,i,n,r,o,a,u,s;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.g},function(t){o=t.Y;a=t.o;u=t.t},function(t){s=t.i}],execute:function(){var c=t("ku4_form",function(){function t(t){e(this,t);this.didValidate=i(this,"validate",7);this.validate=this.validate.bind(this);this.handleReset=this.handleReset.bind(this)}t.prototype.listFieldNames=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,s.readFieldNames(this.form)]}))}))};t.prototype.validate=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=this.fields;e=t.map((function(t){return t.validate()}));i=this;return[4,Promise.all(e).then((function(t){return!t.some((function(t){return t===false}))}))];case 1:i.isValid=r.sent();this.valid=this.isValid;this.invalid=!this.isValid;return[4,o(100).then((function(){var t=[].slice.call(n.form.querySelectorAll("ku4-validation[invalid]"));var e=[].slice.call(document.querySelectorAll('[form="'.concat(n.form.id,'"]')));var i=e.map((function(t){return document.querySelector('ku4-validation[invalid][for="'.concat(t.id,'"]'))}));var r=[].slice.call(document.querySelectorAll('ku4-validation[invalid][form="'.concat(n.form.id,'"]')));return a(t.concat(i).concat(r).filter((function(t){return u.exists(t)})))})).then((function(t){return n.didValidate.emit({invalid:t})}))];case 2:r.sent();return[2,this.isValid]}}))}))};t.prototype.invalidate=function(t){return __awaiter(this,void 0,void 0,(function(){var e;var i=this;return __generator(this,(function(n){if(u.isArray(t)){t.forEach((function(t){var e=i.fields.find((function(e){return e.for===t}));if(e){e.invalid=true}}))}else{e=this.fields.find((function(e){return e.for===t}));if(e){e.invalid=true}}this.isValid=false;this.valid=this.isValid;this.invalid=!this.isValid;return[2,this]}))}))};t.prototype.read=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,s.read(this.form)]}))}))};t.prototype.write=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){s.write(this.form,t);Object.keys(t).forEach((function(t){try{e.form.querySelector('[name="'.concat(t,'"]')).dispatchEvent(new window.Event("change"))}catch(i){}}));return[2,this]}))}))};t.prototype.focusFirstInvalid=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){o(100).then((function(){var t=document.querySelector("ku4-valiation[invalid]");if(u.exists(t)){t.scrollIntoView({behavior:"smooth",block:"center"})}}));return[2]}))}))};Object.defineProperty(t.prototype,"form",{get:function(){return this.host.querySelector("form")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"fields",{get:function(){var t=[].slice.call(this.form.querySelectorAll("ku4-validation"));var e=[].slice.call(document.querySelectorAll('[form="'.concat(this.form.id,'"]')));var i=e.map((function(t){return document.querySelector('ku4-validation[for="'.concat(t.id,'"]'))}));var n=[].slice.call(document.querySelectorAll('ku4-validation[form="'.concat(this.form.id,'"]')));return a(t.concat(i).concat(n).filter((function(t){return u.exists(t)})))},enumerable:false,configurable:true});t.prototype.handleReset=function(){this.isValid=true;this.valid=this.isValid;this.invalid=!this.isValid};t.prototype.componentWillLoad=function(){var t=this;var e=this.form;if(u.exists(e)){var i=e.onsubmit||function(){};e.onsubmit=function(n){n.preventDefault();t.validate().then((function(t){return t&&i.call(e,n)})).then((function(t){return!u.isFalse(t)&&e.submit()}));return false};e.addEventListener("reset",this.handleReset);this.fields.forEach((function(e){return e.addEventListener("validated",t.validate)}))}};t.prototype.disconnectedCallback=function(){var t=this;var e=this.form;if(u.exists(e)){e.removeEventListener("reset",this.handleReset);this.fields.forEach((function(e){return e.removeEventListener("validated",t.validate)}))}};t.prototype.render=function(){return n("slot",null)};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}())}}}));
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,o){function a(t){try{s(n.next(t))}catch(e){o(e)}}function u(t){try{s(n["throw"](t))}catch(e){o(e)}}function s(t){t.done?i(t.value):r(t.value).then(a,u)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=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: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(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(u){a=[6,u];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-3074face.system.js","./p-e9482cb1.system.js","./p-eb21757a.system.js"],(function(t){"use strict";var e,i,n,r,o,a,u,s;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.g},function(t){o=t.Y;a=t.o;u=t.t},function(t){s=t.i}],execute:function(){var c=t("ku4_form",function(){function t(t){e(this,t);this.didValidate=i(this,"validate",7);this.validate=this.validate.bind(this);this.handleReset=this.handleReset.bind(this)}t.prototype.listFieldNames=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,s.readFieldNames(this.form)]}))}))};t.prototype.validate=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=this.fields;e=t.map((function(t){return t.validate()}));i=this;return[4,Promise.all(e).then((function(t){return!t.some((function(t){return t===false}))}))];case 1:i.isValid=r.sent();this.valid=this.isValid;this.invalid=!this.isValid;return[4,o(100).then((function(){var t=[].slice.call(n.form.querySelectorAll("ku4-validation[invalid]"));var e=[].slice.call(document.querySelectorAll('[form="'.concat(n.form.id,'"]')));var i=e.map((function(t){return document.querySelector('ku4-validation[invalid][for="'.concat(t.id,'"]'))}));var r=[].slice.call(document.querySelectorAll('ku4-validation[invalid][form="'.concat(n.form.id,'"]')));return a(t.concat(i).concat(r).filter((function(t){return u.exists(t)})))})).then((function(t){return n.didValidate.emit({invalid:t})}))];case 2:r.sent();return[2,this.isValid]}}))}))};t.prototype.invalidate=function(t){return __awaiter(this,void 0,void 0,(function(){var e;var i=this;return __generator(this,(function(n){if(u.isArray(t)){t.forEach((function(t){var e=i.fields.find((function(e){return e.for===t}));if(e){e.invalid=true}}))}else{e=this.fields.find((function(e){return e.for===t}));if(e){e.invalid=true}}this.isValid=false;this.valid=this.isValid;this.invalid=!this.isValid;return[2,this]}))}))};t.prototype.read=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,s.read(this.form)]}))}))};t.prototype.write=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){s.write(this.form,t);Object.keys(t).forEach((function(t){try{e.form.querySelector('[name="'.concat(t,'"]')).dispatchEvent(new window.Event("change"))}catch(i){}}));return[2,this]}))}))};t.prototype.focusFirstInvalid=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){o(100).then((function(){var t=document.querySelector("ku4-valiation[invalid]");if(u.exists(t)){t.scrollIntoView({behavior:"smooth",block:"center"})}}));return[2]}))}))};Object.defineProperty(t.prototype,"form",{get:function(){return this.host.querySelector("form")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"fields",{get:function(){var t=[].slice.call(this.form.querySelectorAll("ku4-validation"));var e=[].slice.call(document.querySelectorAll('[form="'.concat(this.form.id,'"]')));var i=e.map((function(t){return document.querySelector('ku4-validation[for="'.concat(t.id,'"]'))}));var n=[].slice.call(document.querySelectorAll('ku4-validation[form="'.concat(this.form.id,'"]')));return a(t.concat(i).concat(n).filter((function(t){return u.exists(t)})))},enumerable:false,configurable:true});t.prototype.handleReset=function(){this.isValid=true;this.valid=this.isValid;this.invalid=!this.isValid};t.prototype.componentWillLoad=function(){var t=this;var e=this.form;if(u.exists(e)){var i=e.onsubmit||function(){};e.onsubmit=function(n){n.preventDefault();t.validate().then((function(t){return t&&i.call(e,n)})).then((function(t){return!u.isFalse(t)&&e.submit()}));return false};e.addEventListener("reset",this.handleReset);this.fields.forEach((function(e){return e.addEventListener("validated",t.validate)}))}};t.prototype.disconnectedCallback=function(){var t=this;var e=this.form;if(u.exists(e)){e.removeEventListener("reset",this.handleReset);this.fields.forEach((function(e){return e.removeEventListener("validated",t.validate)}))}};t.prototype.render=function(){return n("slot",null)};Object.defineProperty(t.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return t}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-3074face.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-84c91ca0.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-4f31ea4d.system",[[1,"ku4-carousel-controls",{for:[1]}]]],["p-15a87049.system",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["p-adbc2f7a.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-11757f38.system",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["p-2e99f950.system",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["p-79ea33f5.system",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["p-b5e2d0f3.system",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["p-9dfc9b1f.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-cabd234a.system",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["p-30ae2ddb.system",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["p-f8ee65f5.system",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["p-00f6f7a2.system",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-541bf0f5.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-684ff784.system",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["p-9a9a9311.system",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["p-591104cc.system",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-416cf70d.system",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["p-a8a1f354.system",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["p-0761c31a.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-3074face.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-e4e56edf.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-6c6c1035.system",[[1,"ku4-carousel-controls",{for:[1]}]]],["p-15a87049.system",[[1,"ku4-carousel-slide",{name:[1544],active:[32],classList:[32],slideIn:[64],slideOut:[64],activate:[64],deactivate:[64]}]]],["p-adbc2f7a.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-11757f38.system",[[1,"ku4-drawer",{bottom:[516],left:[516],right:[516],top:[516],size:[1],open:[1540],toggle:[64]}]]],["p-db4732d6.system",[[1,"ku4-feature",{on:[4],policy:[1],enabled:[32]}]]],["p-b32c7075.system",[[1,"ku4-focus-trap",{active:[1540],include:[1],exclude:[1],excludeShadow:[1,"exclude-shadow"],initial:[1],return:[1],activate:[64],deactivate:[64]}]]],["p-5cccec1b.system",[[4,"ku4-form",{valid:[1028],invalid:[1540],listFieldNames:[64],validate:[64],invalidate:[64],read:[64],write:[64],focusFirstInvalid:[64]}]]],["p-9dfc9b1f.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-f5f5958d.system",[[1,"ku4-label",{for:[1],value:[1],empty:[32]}]]],["p-0f3da44d.system",[[1,"ku4-mask",{for:[1],template:[1],ban:[1],pattern:[1],char:[1],hidden:[4]}]]],["p-89670006.system",[[1,"ku4-modal",{visible:[1540],dismissable:[4],dismissible:[4],focusTrap:[1,"focus-trap"],display:[64],dismiss:[64]},[[8,"keyup","handleKeyUp"]]]]],["p-00f6f7a2.system",[[1,"ku4-panel",{open:[1540],maxHeight:[32],toggle:[64],close:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-76ed1a14.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-376b72f4.system",[[1,"ku4-tab",{selected:[1540],panel:[32],select:[64],deselect:[64],connect:[64]},[[0,"click","handleClick"],[0,"keyup","handleKeyUp"]]]]],["p-dd984902.system",[[1,"ku4-tab-list",{open:[64]},[[0,"ku4TabClick","handleTabClick"],[0,"ku4TabKeyup","handleTabKeyUp"]]]]],["p-0e578877.system",[[1,"ku4-tab-panel",{selected:[1540],maxHeight:[32],tab:[32],select:[64],deselect:[64],connect:[64]},[[0,"transitionend","handleTransitionEnd"]]]]],["p-416cf70d.system",[[4,"ku4-table",{stackXs:[1537,"stack-xs"],stackSm:[1537,"stack-sm"]}]]],["p-a43cea20.system",[[1,"ku4-tooltip",{element:[1],top:[4],left:[4],bottom:[4],right:[4],debug:[4],show:[64],hide:[64]}]]],["p-a51c6fe5.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
- 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-3074face.system.js","./p-e11b977e.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-3074face.system.js","./p-e9482cb1.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}}}));