Files
doneit-web/_platforms/browser/www/9222-es5.cd039609ef15b741a7fd.js
T

1 line
13 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
!function(){function e(e,i){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,i){if(!e)return;if("string"==typeof e)return t(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,i)}(e))||i&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t,i,r,n,o,a){try{var s=e[o](a),l=s.value}catch(c){return void i(c)}s.done?t(l):Promise.resolve(l).then(r,n)}function n(e){return function(){var t=this,i=arguments;return new Promise(function(n,o){var a=e.apply(t,i);function s(e){r(a,n,o,s,l,"next",e)}function l(e){r(a,n,o,s,l,"throw",e)}s(void 0)})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),e}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[9222],{19222:function(t,r,a){"use strict";a.r(r),a.d(r,{ion_radio:function(){return h},ion_radio_group:function(){return p}});var l=a(31667),c=a(36177),d=a(13772),u=a(61269),h=function(){function e(t){var i=this;o(this,e),(0,l.r)(this,t),this.ionStyle=(0,l.e)(this,"ionStyle",7),this.ionFocus=(0,l.e)(this,"ionFocus",7),this.ionBlur=(0,l.e)(this,"ionBlur",7),this.inputId="ion-rb-"+b++,this.radioGroup=null,this.checked=!1,this.buttonTabindex=-1,this.name=this.inputId,this.disabled=!1,this.updateState=function(){i.radioGroup&&(i.checked=i.radioGroup.value===i.value)},this.onFocus=function(){i.ionFocus.emit()},this.onBlur=function(){i.ionBlur.emit()}}var t,r;return s(e,[{key:"setFocus",value:(r=n(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),this.el.focus();case 1:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"setButtonTabindex",value:(t=n(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.buttonTabindex=t;case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"connectedCallback",value:function(){void 0===this.value&&(this.value=this.inputId);var e=this.radioGroup=this.el.closest("ion-radio-group");e&&(this.updateState(),(0,d.a)(e,"ionChange",this.updateState))}},{key:"disconnectedCallback",value:function(){var e=this.radioGroup;e&&((0,d.b)(e,"ionChange",this.updateState),this.radioGroup=null)}},{key:"componentWillLoad",value:function(){this.emitStyle()}},{key:"emitStyle",value:function(){this.ionStyle.emit({"radio-checked":this.checked,"interactive-disabled":this.disabled})}},{key:"render",value:function(){var e,t=this.inputId,r=this.disabled,n=this.checked,o=this.color,a=this.el,s=this.buttonTabindex,h=(0,c.b)(this),b=(0,d.c)(a,t),p=b.label,f=b.labelId,m=b.labelText;return(0,l.h)(l.H,{"aria-checked":"".concat(n),"aria-hidden":r?"true":null,"aria-labelledby":p?f:null,role:"radio",tabindex:s,onFocus:this.onFocus,onBlur:this.onBlur,class:(0,u.c)(o,(e={},i(e,h,!0),i(e,"in-item",(0,u.h)("ion-item",a)),i(e,"interact