UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

1 lines 20.9 kB
{"ast":null,"code":"import { r as registerInstance, e as createEvent, h, H as Host, i as getElement } from \"./index-7a8b7a1c.js\";\nimport { b as getIonMode } from \"./ionic-global-63a97a32.js\";\nvar splitPaneIosCss = \":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none !important;box-shadow:none !important;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:0.55px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:0;border-right:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:unset;border-right:unset;-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border)}}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:var(--border);border-right:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:unset;border-right:unset;-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0}}\";\nvar splitPaneMdCss = \":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none !important;box-shadow:none !important;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:0;border-right:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:unset;border-right:unset;-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border)}}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:var(--border);border-right:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:unset;border-right:unset;-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0}}\";\nvar SPLIT_PANE_MAIN = \"split-pane-main\";\nvar SPLIT_PANE_SIDE = \"split-pane-side\";\nvar QUERY = {\n xs: \"(min-width: 0px)\",\n sm: \"(min-width: 576px)\",\n md: \"(min-width: 768px)\",\n lg: \"(min-width: 992px)\",\n xl: \"(min-width: 1200px)\",\n never: \"\"\n};\n\nvar SplitPane = function () {\n function e(e) {\n registerInstance(this, e);\n this.ionSplitPaneVisible = createEvent(this, \"ionSplitPaneVisible\", 7);\n this.visible = false;\n this.disabled = false;\n this.when = QUERY[\"lg\"];\n }\n\n e.prototype.visibleChanged = function (e) {\n var i = {\n visible: e,\n isPane: this.isPane.bind(this)\n };\n this.ionSplitPaneVisible.emit(i);\n };\n\n e.prototype.connectedCallback = function () {\n this.styleChildren();\n this.updateState();\n };\n\n e.prototype.disconnectedCallback = function () {\n if (this.rmL) {\n this.rmL();\n this.rmL = undefined;\n }\n };\n\n e.prototype.updateState = function () {\n var e = this;\n\n if (this.rmL) {\n this.rmL();\n this.rmL = undefined;\n }\n\n if (this.disabled) {\n this.visible = false;\n return;\n }\n\n var i = this.when;\n\n if (typeof i === \"boolean\") {\n this.visible = i;\n return;\n }\n\n var t = QUERY[i] || i;\n\n if (t.length === 0) {\n this.visible = false;\n return;\n }\n\n if (window.matchMedia) {\n var s = function (i) {\n e.visible = i.matches;\n };\n\n var r = window.matchMedia(t);\n r.addListener(s);\n\n this.rmL = function () {\n return r.removeListener(s);\n };\n\n this.visible = r.matches;\n }\n };\n\n e.prototype.isPane = function (e) {\n if (!this.visible) {\n return false;\n }\n\n return e.parentElement === this.el && e.classList.contains(SPLIT_PANE_SIDE);\n };\n\n e.prototype.styleChildren = function () {\n var e = this.contentId;\n var i = this.el.children;\n var t = this.el.childElementCount;\n var s = false;\n\n for (var r = 0; r < t; r++) {\n var n = i[r];\n var o = e !== undefined && n.id === e;\n\n if (o) {\n if (s) {\n console.warn(\"split pane cannot have more than one main node\");\n return;\n }\n\n s = true;\n }\n\n setPaneClass(n, o);\n }\n\n if (!s) {\n console.warn(\"split pane does not have a specified main node\");\n }\n };\n\n e.prototype.render = function () {\n var e;\n var i = getIonMode(this);\n return h(Host, {\n class: (e = {}, e[i] = true, e[\"split-pane-\" + i] = true, e[\"split-pane-visible\"] = this.visible, e)\n }, h(\"slot\", null));\n };\n\n Object.defineProperty(e.prototype, \"el\", {\n get: function () {\n return getElement(this);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(e, \"watchers\", {\n get: function () {\n return {\n visible: [\"visibleChanged\"],\n disabled: [\"updateState\"],\n when: [\"updateState\"]\n };\n },\n enumerable: false,\n configurable: true\n });\n return e;\n}();\n\nvar setPaneClass = function (e, i) {\n var t;\n var s;\n\n if (i) {\n t = SPLIT_PANE_MAIN;\n s = SPLIT_PANE_SIDE;\n } else {\n t = SPLIT_PANE_SIDE;\n s = SPLIT_PANE_MAIN;\n }\n\n var r = e.classList;\n r.add(t);\n r.remove(s);\n};\n\nSplitPane.style = {\n ios: splitPaneIosCss,\n md: splitPaneMdCss\n};\nexport { SplitPane as ion_split_pane };","map":{"version":3,"sources":["/Users/adekanbidansteve/github/klasha/react-klasha/ionic-test/node_modules/@ionic/core/dist/esm-es5/ion-split-pane.entry.js"],"names":["r","registerInstance","e","createEvent","h","H","Host","i","getElement","b","getIonMode","splitPaneIosCss","splitPaneMdCss","SPLIT_PANE_MAIN","SPLIT_PANE_SIDE","QUERY","xs","sm","md","lg","xl","never","SplitPane","ionSplitPaneVisible","visible","disabled","when","prototype","visibleChanged","isPane","bind","emit","connectedCallback","styleChildren","updateState","disconnectedCallback","rmL","undefined","t","length","window","matchMedia","s","matches","addListener","removeListener","parentElement","el","classList","contains","contentId","children","childElementCount","n","o","id","console","warn","setPaneClass","render","class","Object","defineProperty","get","enumerable","configurable","add","remove","style","ios","ion_split_pane"],"mappings":"AAAA,SAAOA,CAAC,IAAIC,gBAAZ,EAA6BC,CAAC,IAAIC,WAAlC,EAA8CC,CAA9C,EAAgDC,CAAC,IAAIC,IAArD,EAA0DC,CAAC,IAAIC,UAA/D,QAA8E,qBAA9E;AAAoG,SAAOC,CAAC,IAAIC,UAAZ,QAA2B,4BAA3B;AAAwD,IAAIC,eAAe,GAAC,ktEAApB;AAAuuE,IAAIC,cAAc,GAAC,2tEAAnB;AAA+uE,IAAIC,eAAe,GAAC,iBAApB;AAAsC,IAAIC,eAAe,GAAC,iBAApB;AAAsC,IAAIC,KAAK,GAAC;AAACC,EAAAA,EAAE,EAAC,kBAAJ;AAAuBC,EAAAA,EAAE,EAAC,oBAA1B;AAA+CC,EAAAA,EAAE,EAAC,oBAAlD;AAAuEC,EAAAA,EAAE,EAAC,oBAA1E;AAA+FC,EAAAA,EAAE,EAAC,qBAAlG;AAAwHC,EAAAA,KAAK,EAAC;AAA9H,CAAV;;AAA4I,IAAIC,SAAS,GAAC,YAAU;AAAC,WAASpB,CAAT,CAAWA,CAAX,EAAa;AAACD,IAAAA,gBAAgB,CAAC,IAAD,EAAMC,CAAN,CAAhB;AAAyB,SAAKqB,mBAAL,GAAyBpB,WAAW,CAAC,IAAD,EAAM,qBAAN,EAA4B,CAA5B,CAApC;AAAmE,SAAKqB,OAAL,GAAa,KAAb;AAAmB,SAAKC,QAAL,GAAc,KAAd;AAAoB,SAAKC,IAAL,GAAUX,KAAK,CAAC,IAAD,CAAf;AAAsB;;AAAAb,EAAAA,CAAC,CAACyB,SAAF,CAAYC,cAAZ,GAA2B,UAAS1B,CAAT,EA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;AAA0K,SAAO/D,CAAP;AAAS,CAAx1D,EAAd;;AAAy2D,IAAIwD,YAAY,GAAC,UAASxD,CAAT,EAAWK,CAAX,EAAa;AAAC,MAAI+B,CAAJ;AAAM,MAAII,CAAJ;;AAAM,MAAGnC,CAAH,EAAK;AAAC+B,IAAAA,CAAC,GAACzB,eAAF;AAAkB6B,IAAAA,CAAC,GAAC5B,eAAF;AAAkB,GAA1C,MAA8C;AAACwB,IAAAA,CAAC,GAACxB,eAAF;AAAkB4B,IAAAA,CAAC,GAAC7B,eAAF;AAAkB;;AAAA,MAAIb,CAAC,GAACE,CAAC,CAAC8C,SAAR;AAAkBhD,EAAAA,CAAC,CAACkE,GAAF,CAAM5B,CAAN;AAAStC,EAAAA,CAAC,CAACmE,MAAF,CAASzB,CAAT;AAAY,CAArK;;AAAsKpB,SAAS,CAAC8C,KAAV,GAAgB;AAACC,EAAAA,GAAG,EAAC1D,eAAL;AAAqBO,EAAAA,EAAE,EAACN;AAAxB,CAAhB;AAAwD,SAAOU,SAAS,IAAIgD,cAApB","sourcesContent":["import{r as registerInstance,e as createEvent,h,H as Host,i as getElement}from\"./index-7a8b7a1c.js\";import{b as getIonMode}from\"./ionic-global-63a97a32.js\";var splitPaneIosCss=\":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none !important;box-shadow:none !important;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:0.55px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:0;border-right:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:unset;border-right:unset;-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border)}}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:var(--border);border-right:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:unset;border-right:unset;-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0}}\";var splitPaneMdCss=\":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none !important;box-shadow:none !important;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:0;border-right:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side){border-left:unset;border-right:unset;-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border)}}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:var(--border);border-right:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){border-left:unset;border-right:unset;-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0}}\";var SPLIT_PANE_MAIN=\"split-pane-main\";var SPLIT_PANE_SIDE=\"split-pane-side\";var QUERY={xs:\"(min-width: 0px)\",sm:\"(min-width: 576px)\",md:\"(min-width: 768px)\",lg:\"(min-width: 992px)\",xl:\"(min-width: 1200px)\",never:\"\"};var SplitPane=function(){function e(e){registerInstance(this,e);this.ionSplitPaneVisible=createEvent(this,\"ionSplitPaneVisible\",7);this.visible=false;this.disabled=false;this.when=QUERY[\"lg\"]}e.prototype.visibleChanged=function(e){var i={visible:e,isPane:this.isPane.bind(this)};this.ionSplitPaneVisible.emit(i)};e.prototype.connectedCallback=function(){this.styleChildren();this.updateState()};e.prototype.disconnectedCallback=function(){if(this.rmL){this.rmL();this.rmL=undefined}};e.prototype.updateState=function(){var e=this;if(this.rmL){this.rmL();this.rmL=undefined}if(this.disabled){this.visible=false;return}var i=this.when;if(typeof i===\"boolean\"){this.visible=i;return}var t=QUERY[i]||i;if(t.length===0){this.visible=false;return}if(window.matchMedia){var s=function(i){e.visible=i.matches};var r=window.matchMedia(t);r.addListener(s);this.rmL=function(){return r.removeListener(s)};this.visible=r.matches}};e.prototype.isPane=function(e){if(!this.visible){return false}return e.parentElement===this.el&&e.classList.contains(SPLIT_PANE_SIDE)};e.prototype.styleChildren=function(){var e=this.contentId;var i=this.el.children;var t=this.el.childElementCount;var s=false;for(var r=0;r<t;r++){var n=i[r];var o=e!==undefined&&n.id===e;if(o){if(s){console.warn(\"split pane cannot have more than one main node\");return}s=true}setPaneClass(n,o)}if(!s){console.warn(\"split pane does not have a specified main node\")}};e.prototype.render=function(){var e;var i=getIonMode(this);return h(Host,{class:(e={},e[i]=true,e[\"split-pane-\"+i]=true,e[\"split-pane-visible\"]=this.visible,e)},h(\"slot\",null))};Object.defineProperty(e.prototype,\"el\",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,\"watchers\",{get:function(){return{visible:[\"visibleChanged\"],disabled:[\"updateState\"],when:[\"updateState\"]}},enumerable:false,configurable:true});return e}();var setPaneClass=function(e,i){var t;var s;if(i){t=SPLIT_PANE_MAIN;s=SPLIT_PANE_SIDE}else{t=SPLIT_PANE_SIDE;s=SPLIT_PANE_MAIN}var r=e.classList;r.add(t);r.remove(s)};SplitPane.style={ios:splitPaneIosCss,md:splitPaneMdCss};export{SplitPane as ion_split_pane};"]},"metadata":{},"sourceType":"module"}