Files
doneit-web/_platforms/browser/www/9222-es5.cd039609ef15b741a7fd.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
13 KiB
JavaScript

!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,"interactive",!0),i(e,"radio-checked",n),i(e,"radio-disabled",r),e))},(0,l.h)("div",{class:"radio-icon",part:"container"},(0,l.h)("div",{class:"radio-inner",part:"mark"}),(0,l.h)("div",{class:"radio-ripple"})),(0,l.h)("label",{htmlFor:t},m),(0,l.h)("input",{type:"radio",checked:n,disabled:r,tabindex:"-1",id:t}))}},{key:"el",get:function(){return(0,l.i)(this)}}],[{key:"watchers",get:function(){return{color:["emitStyle"],checked:["emitStyle"],disabled:["emitStyle"]}}}]),e}(),b=0;h.style={ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color-checked:var(--ion-color-primary, #3880ff);width:15px;height:24px}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{margin-left:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.item-radio.item-ios ion-label{margin-left:unset;-webkit-margin-start:0;margin-inline-start:0}}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-9px;top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}:host(.in-item){margin-left:10px;margin-right:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item){margin-left:unset;margin-right:unset;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:11px;margin-inline-end:11px}}:host(.in-item[slot=start]){margin-left:3px;margin-right:21px;margin-top:8px;margin-bottom:8px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px}}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}label{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host{--color:var(--ion-color-step-400, #999999);--color-checked:var(--ion-color-primary, #3880ff);--border-width:2px;--border-style:solid;--border-radius:50%;width:20px;height:20px}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);left:-12px;top:-12px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-12px}:host(.in-item){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item[slot=start]){margin-left:4px;margin-right:36px;margin-top:11px;margin-bottom:10px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.in-item[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px}}'};var p=function(){function t(i){var r=this;o(this,t),(0,l.r)(this,i),this.ionChange=(0,l.e)(this,"ionChange",7),this.inputId="ion-rg-"+f++,this.labelId="".concat(this.inputId,"-lbl"),this.allowEmptySelection=!1,this.name=this.inputId,this.setRadioTabindex=function(t){var i=r.getRadios(),n=i.find(function(e){return!e.disabled}),o=i.find(function(e){return e.value===t&&!e.disabled});if(n||o){var a,s=o||n,l=e(i);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.setButtonTabindex(c===s?0:-1)}}catch(d){l.e(d)}finally{l.f()}}},this.onClick=function(e){e.preventDefault();var t=e.target&&e.target.closest("ion-radio");if(t){var i=t.value;i!==r.value?r.value=i:r.allowEmptySelection&&(r.value=void 0)}}}var i;return s(t,[{key:"valueChanged",value:function(e){this.setRadioTabindex(e),this.ionChange.emit({value:e})}},{key:"componentDidLoad",value:function(){this.setRadioTabindex(this.value)}},{key:"connectedCallback",value:(i=n(regeneratorRuntime.mark(function e(){var t,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(t=this.el.querySelector("ion-list-header")||this.el.querySelector("ion-item-divider"))&&(i=this.label=t.querySelector("ion-label"))&&(this.labelId=i.id=this.name+"-lbl");case 2:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"getRadios",value:function(){return Array.from(this.el.querySelectorAll("ion-radio"))}},{key:"onKeydown",value:function(e){var t=!!this.el.closest("ion-select-popover");if(!e.target||this.el.contains(e.target)){var i=Array.from(this.el.querySelectorAll("ion-radio")).filter(function(e){return!e.disabled});if(e.target&&i.includes(e.target)){var r,n=i.findIndex(function(t){return t===e.target}),o=i[n];["ArrowDown","ArrowRight"].includes(e.code)&&(r=n===i.length-1?i[0]:i[n+1]),["ArrowUp","ArrowLeft"].includes(e.code)&&(r=0===n?i[i.length-1]:i[n-1]),r&&i.includes(r)&&(r.setFocus(e),t||(this.value=r.value)),["Space"].includes(e.code)&&(this.value=o.value)}}}},{key:"render",value:function(){var e=this.label,t=this.labelId,i=(0,c.b)(this);return(0,l.h)(l.H,{role:"radiogroup","aria-labelledby":e?t:null,onClick:this.onClick,class:i})}},{key:"el",get:function(){return(0,l.i)(this)}}],[{key:"watchers",get:function(){return{value:["valueChanged"]}}}]),t}(),f=0}}])}();