UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

1 lines 6.58 kB
{"ast":null,"code":"import { r as registerInstance, e as createEvent, h, H as Host } from \"./index-7a8b7a1c.js\";\nimport { b as getIonMode } from \"./ionic-global-63a97a32.js\";\nimport { G as GESTURE_CONTROLLER } from \"./gesture-controller-31cb6bb9.js\";\nvar backdropIosCss = \":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}\";\nvar backdropMdCss = \":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}\";\n\nvar Backdrop = function () {\n function o(o) {\n registerInstance(this, o);\n this.ionBackdropTap = createEvent(this, \"ionBackdropTap\", 7);\n this.blocker = GESTURE_CONTROLLER.createBlocker({\n disableScroll: true\n });\n this.visible = true;\n this.tappable = true;\n this.stopPropagation = true;\n }\n\n o.prototype.connectedCallback = function () {\n if (this.stopPropagation) {\n this.blocker.block();\n }\n };\n\n o.prototype.disconnectedCallback = function () {\n this.blocker.unblock();\n };\n\n o.prototype.onMouseDown = function (o) {\n this.emitTap(o);\n };\n\n o.prototype.emitTap = function (o) {\n if (this.stopPropagation) {\n o.preventDefault();\n o.stopPropagation();\n }\n\n if (this.tappable) {\n this.ionBackdropTap.emit();\n }\n };\n\n o.prototype.render = function () {\n var o;\n var t = getIonMode(this);\n return h(Host, {\n tabindex: \"-1\",\n \"aria-hidden\": \"true\",\n class: (o = {}, o[t] = true, o[\"backdrop-hide\"] = !this.visible, o[\"backdrop-no-tappable\"] = !this.tappable, o)\n });\n };\n\n return o;\n}();\n\nBackdrop.style = {\n ios: backdropIosCss,\n md: backdropMdCss\n};\nexport { Backdrop as ion_backdrop };","map":{"version":3,"sources":["/Users/adekanbidansteve/github/klasha/react-klasha/ionic-test/node_modules/@ionic/core/dist/esm-es5/ion-backdrop.entry.js"],"names":["r","registerInstance","e","createEvent","h","H","Host","b","getIonMode","G","GESTURE_CONTROLLER","backdropIosCss","backdropMdCss","Backdrop","o","ionBackdropTap","blocker","createBlocker","disableScroll","visible","tappable","stopPropagation","prototype","connectedCallback","block","disconnectedCallback","unblock","onMouseDown","emitTap","preventDefault","emit","render","t","tabindex","class","style","ios","md","ion_backdrop"],"mappings":"AAAA,SAAOA,CAAC,IAAIC,gBAAZ,EAA6BC,CAAC,IAAIC,WAAlC,EAA8CC,CAA9C,EAAgDC,CAAC,IAAIC,IAArD,QAA8D,qBAA9D;AAAoF,SAAOC,CAAC,IAAIC,UAAZ,QAA2B,4BAA3B;AAAwD,SAAOC,CAAC,IAAIC,kBAAZ,QAAmC,kCAAnC;AAAsE,IAAIC,cAAc,GAAC,wWAAnB;AAA4X,IAAIC,aAAa,GAAC,wWAAlB;;AAA2X,IAAIC,QAAQ,GAAC,YAAU;AAAC,WAASC,CAAT,CAAWA,CAAX,EAAa;AAACb,IAAAA,gBAAgB,CAAC,IAAD,EAAMa,CAAN,CAAhB;AAAyB,SAAKC,cAAL,GAAoBZ,WAAW,CAAC,IAAD,EAAM,gBAAN,EAAuB,CAAvB,CAA/B;AAAyD,SAAKa,OAAL,GAAaN,kBAAkB,CAACO,aAAnB,CAAiC;AAACC,MAAAA,aAAa,EAAC;AAAf,KAAjC,CAAb;AAAoE,SAAKC,OAAL,GAAa,IAAb;AAAkB,SAAKC,QAAL,GAAc,IAAd;AAAmB,SAAKC,eAAL,GAAqB,IAArB;AAA0B;;AAAAP,EAAAA,CAAC,CAACQ,SAAF,CAAYC,iBAAZ,GAA8B,YAAU;AAAC,QAAG,KAAKF,eA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C,QAAQ,IAAIyB,YAAnB","sourcesContent":["import{r as registerInstance,e as createEvent,h,H as Host}from\"./index-7a8b7a1c.js\";import{b as getIonMode}from\"./ionic-global-63a97a32.js\";import{G as GESTURE_CONTROLLER}from\"./gesture-controller-31cb6bb9.js\";var backdropIosCss=\":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}\";var backdropMdCss=\":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}\";var Backdrop=function(){function o(o){registerInstance(this,o);this.ionBackdropTap=createEvent(this,\"ionBackdropTap\",7);this.blocker=GESTURE_CONTROLLER.createBlocker({disableScroll:true});this.visible=true;this.tappable=true;this.stopPropagation=true}o.prototype.connectedCallback=function(){if(this.stopPropagation){this.blocker.block()}};o.prototype.disconnectedCallback=function(){this.blocker.unblock()};o.prototype.onMouseDown=function(o){this.emitTap(o)};o.prototype.emitTap=function(o){if(this.stopPropagation){o.preventDefault();o.stopPropagation()}if(this.tappable){this.ionBackdropTap.emit()}};o.prototype.render=function(){var o;var t=getIonMode(this);return h(Host,{tabindex:\"-1\",\"aria-hidden\":\"true\",class:(o={},o[t]=true,o[\"backdrop-hide\"]=!this.visible,o[\"backdrop-no-tappable\"]=!this.tappable,o)})};return o}();Backdrop.style={ios:backdropIosCss,md:backdropMdCss};export{Backdrop as ion_backdrop};"]},"metadata":{},"sourceType":"module"}