import{r as t,c as e,h as i,a as s}from"./p-13ea6980.js";const r=class{constructor(i){t(this,i),this.ftSubmitCard=e(this,"ftSubmitCard",7),this.ftCardError=e(this,"ftCardError",7),this.ftCancel=e(this,"ftCancel",7),this.isLoading=!1}onStripeKeyChange(){this.initializeStripeElements()}save(t){this.error=null,this.isLoading=!0,t.preventDefault(),this.stripe.createToken(this.card).then((e=>{this.isLoading=!1,e.error?this.error=e.error.message:this.ftSubmitCard.emit({event:t,token:e.token})}))}cancel(t){this.ftCancel.emit({event:t})}componentDidLoad(){this.stripeKey?this.initializeStripeElements():alert("Please provide a Stripe key!")}initializeStripeElements(){this.stripe=Stripe(this.stripeKey);const t=this.stripe.elements();this.card=t.create("card",{style:this.stripeStyle?this.stripeStyle:{base:{color:"#32325d",lineHeight:"18px",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px",fontWeight:"bold","::placeholder":{color:"#aab7c4"},left:"15px"},invalid:{color:"#fa755a",iconColor:"#fa755a"}},iconStyle:"solid",placeholder:"Card Number"}),this.card.mount(this.payCardEl.querySelector("#card-element")),this.card.on("change",(t=>{this.error=t.error?t.error.message:null,this.error&&this.ftCardError.emit({event:t,error:this.error})}))}render(){return i("div",{class:this.isLoading?"pay-card-wrapper is-loading":"pay-card-wrapper"},this.error?i("floodteam-error",{message:this.error}):null,i("div",{id:"card-element"}),i("ion-grid",null,i("ion-row",null,i("ion-col",{size:"6"},i("ion-button",{onClick:t=>this.cancel(t),fill:"clear"},"Cancel")),i("ion-col",{size:"6"},i("ion-button",{color:"success",onClick:t=>this.save(t)},"Save")))))}get payCardEl(){return s(this)}static get watchers(){return{stripeKey:["onStripeKeyChange"]}}};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
function a(t,e,i,s){return new(i||(i=Promise))((function(r,a){function o(t){try{n(s.next(t))}catch(t){a(t)}}function h(t){try{n(s.throw(t))}catch(t){a(t)}}function n(t){t.done?r(t.value):new i((function(e){e(t.value)})).then(o,h)}n((s=s.apply(t,e||[])).next())}))}r.style="floodteam-pay-card{display:block;width:100%;font-family:var(--theme-font-primary, Arial, Helvetica, sans-serif)}floodteam-pay-card .pay-card-wrapper{width:90%;max-width:600px;margin:15px auto}floodteam-pay-card .pay-card-wrapper .StripeElement{padding:0 0px 7px 0;border-bottom:1px solid\n    var(\n      --ion-item-border-color,\n      var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13)))\n    )}floodteam-pay-card .pay-card-wrapper .StripeElement--focus{border-bottom:2px solid var(--ion-color-primary, blue)}floodteam-pay-card .pay-card-wrapper .StripeElement--invalid{border-color:var(--ion-color-danger)}floodteam-pay-card .pay-card-wrapper .StripeElement--webkit-autofill{background-color:#fefde5 !important}floodteam-pay-card .pay-card-wrapper ion-grid{display:block;width:100%;padding:15px 0 0 0}";class o{constructor(t={}){this.shouldBeAsync=!0,this.host=t.host,this.headers=t.headers?t.headers:{}}serializeParams(t){return Object.keys(t).map((e=>`${e}=${encodeURIComponent(t[e])}`)).join("&")}makePromise(t,e,i){return new Promise(((s,r)=>a(this,void 0,void 0,(function*(){const o=new XMLHttpRequest;o.open(t,`${this.host}/${e}${"GET"===t?"?"+this.serializeParams(i):""}`,this.shouldBeAsync),o.onload=()=>a(this,void 0,void 0,(function*(){const t=JSON.parse(o.responseText);t&&200===o.status?s({data:t}):r(Object.assign({},t,{message:t.error}))})),o.onerror=()=>{r({message:"There was an error talking to the API, please try agian later or contact support!",status:o.status})},Object.keys(this.headers).map((t=>{o.setRequestHeader(t,this.headers[t])})),o.send("DELETE"===t||"GET"===t?null:i?JSON.stringify(i):"{}")}))))}delete(t,e){return this.makePromise("DELETE",t,e)}get(t,e){return this.makePromise("GET",t,e)}post(t,e){return this.makePromise("POST",t,e)}put(t,e){return this.makePromise("PUT",t,e)}}class h{constructor(t,e){this.http=new o({host:e,headers:{Accept:"application/json",Authorization:`Token ${t}`,"Content-Type":"application/json","X-DADEMC":!0}})}pick(t,e){return Object.assign({},...e.map((e=>({[e]:t[e]}))))}pickPaymentData(t){const e=this.pick(t,["id","type","status","amount","external_user_id","external_reference","date"]);return e.amount=t.check_amount,e}pickCheckData(t){return this.pick(t,["check_routing_number","check_account_number","check_number"])}stagePayment(t){return new Promise(((e,i)=>{this.http.get("mobile_payments/new",Object.assign({},t,{check_amount:t.amount})).then((t=>{const i=this.pickPaymentData(t.data);e(i)})).catch((t=>{i(t)}))}))}setAmount(t,e){return new Promise(((i,s)=>{this.http.put(`mobile_payments/${t.id}`,{mobile_payment:{check_amount:e}}).then((e=>{const s=this.pickPaymentData(e.data);i(Object.assign({},t,s))})).catch((t=>{s(t)}))}))}uploadImage(t,e,i){return new Promise(((s,r)=>{this._resizeImage(i).then((i=>{this.http.post(`mobile_payments/${t.id}/mobile_checks`,{image_type:e,image_string:i}).then((()=>{s(Object.assign({},t,{[e]:!0}))})).catch((t=>{r(t)}))}))}))}confirmPayment(t,e){return new Promise(((i,s)=>{this.http.post(`mobile_payments/${t.id}/mobile_confirmation`,e).then((t=>{const e=t.data,s=this.pickPaymentData(e.mobile_payment),r=this.pickCheckData(e);i(Object.assign({},s,r))})).catch((t=>{try{s({validationErrors:t.response.data.errors})}catch(e){s(t)}}))}))}cancelPayment(t){return new Promise(((e,i)=>{this.http.delete(`mobile_payments/${t.id}`).then((()=>{e(!0)})).catch((t=>{i(t)}))}))}_resizeImage(t){const e=1200,i=1200,s=new Image,r=`data:image/jpeg;base64,${t}`;return new Promise((t=>{s.src=r,s.onload=function(){let r=s.width,a=s.height;r>a?r>e&&(a*=e/r,r=e):a>i&&(r*=i/a,a=i);const o=document.createElement("canvas");o.width=r,o.height=a,o.getContext("2d").drawImage(s,0,0,r,a);const h=o.toDataURL("image/jpeg").split(",")[1];t(h)}}))}}const n=class{constructor(i){t(this,i),this.ftSubmitCheck=e(this,"ftSubmitCheck",7),this.ftCheckConfirmation=e(this,"ftCheckConfirmation",7),this.ftCheckScan=e(this,"ftCheckScan",7),this.ftCheckError=e(this,"ftCheckError",7),this.ftCancel=e(this,"ftCancel",7),this.defaultCheckImage="data:image/png;base64, ",this.dropCheckImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAD6CAMAAABK88kiAAAAA3NCSVQICAjb4U/gAAAAe1BMVEWJiYm7u7u/v7+RkZH7+/upqanZ2dmdnZ2zs7Pq6uqLi4vMzMyZmZmjo6OxsbG3t7eNjY3h4eHExMTQ0NCtra2lpaXy8vKfn5+Tk5P///+5ubmPj4+1tbXd3d3m5uaVlZXIyMihoaGvr6+np6f39/erq6vV1dXu7u6ZmZkliFSsAAAACXBIWXMAAA6cAAAOnAEHlFPdAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABZ0RVh0Q3JlYXRpb24gVGltZQAwMi8yMS8xOSv5S6kAAAq/SURBVHic7d1re5pKFIZhDaFQBSEWi9lijLHq//+HmwEPEA9DYJbDWr73h+xuy1w15pGzk8EQgMDA9hMAmRAWkEBYQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkEBYQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkEBYQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkEBYQAJhAQkBYUWRP7kURd8Wy7KsdwsJxjysbLKdpWlwKXX9/2oLJqHXt4V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JhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkEBYQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkPgffnBX30Xd5dgAAAAASUVORK5CYII=",this.loading=!1,this.errors=[],this.isScanningFront=!0,this.isHovered=!1,this.hasCheckFront=!1,this.hasCheckBack=!1}onUrlChange(){this.startScanner()}async startScanner(){if(this.apiKey&&this.url){this.dade=new h(this.apiKey,this.url);try{this.payment=await this.dade.stagePayment({external_user_id:this.userId?this.userId:"0",external_reference:this.paymentId?this.paymentId:"0",amount:this.amount?this.amount:0})}catch(t){console.log(t)}}else console.log("Must provide Dade API key and url!")}async componentDidLoad(){this.checkFront=this.defaultCheckImage,this.checkBack=this.defaultCheckImage,this.startScanner()}selectFile(t,e){this.errors=[],this.loading=!0;const i=e||(t&&t.srcElement&&t.srcElement.files?t.srcElement.files[0]:null),s=new FileReader;s.onload=async()=>{try{await this.dade.uploadImage(this.payment,this.isScanningFront?"checkfront":"checkrear",s.result.split(",")[1]),this.isScanningFront?(this.hasCheckFront=!0,this.checkFront=s.result):(this.hasCheckBack=!0,this.checkBack=s.result),this.isScanningFront=!this.isScanningFront,this.ftCheckScan.emit({event:t,front:this.checkFront,back:this.checkBack}),this.loading=!1}catch(t){console.log(t)}},s.onerror=()=>{alert("Error opening image file!"),this.loading=!1},i&&s.readAsDataURL(i)}onFlip(t){console.log(t.detail),this.isScanningFront=!t.detail.flipped}async openCamera(){this.fileInputEl&&this.fileInputEl.click()}async confirmPayment(t={}){try{this.loading=!0;const e=await this.dade.confirmPayment(this.payment,t);await this.save(null),this.ftCheckConfirmation.emit({confirmation:e}),this.loading=!1}catch(t){throw this.errors=t.errors,this.ftCheckError.emit({event,error:t,payment:this.payment}),new Error(t.errors[0].error_message)}return this.payment}async save(t){if(this.errors=[],!this.hasCheckFront||!this.hasCheckBack)return alert(`Please take a picture of the ${this.hasCheckFront?"back":"front"} of the check.`),this.isScanningFront=!this.hasCheckFront,!1;if(!this.amount)return alert("Please the amount that the check is made out for."),!1;try{this.payment=await this.dade.setAmount(this.payment,this.amount),this.ftSubmitCheck.emit({event:t,data:{payment:this.payment}})}catch(e){this.errors=e.errors,this.ftCheckError.emit({event:t,error:e,payment:this.payment})}this.loading=!1}cancel(t){this.ftCancel.emit({event:t})}async flipCard(){this.isScanningFront=!this.isScanningFront}onDrop(t){t.preventDefault(),t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length>0&&(this.selectFile(t,t.dataTransfer.files[0]),this.isHovered=!1)}onDrag(t){t.preventDefault()}onDragEnter(t){this.isHovered=!0}onDragLeave(t){this.isHovered=!1}onSubmit(t){t.preventDefault()}render(){return i("form",{id:"form-check",onDrop:t=>this.onDrop(t),onDragOver:t=>this.onDrag(t),onDragEnter:t=>this.onDragEnter(t),onDragLeave:t=>this.onDragLeave(t),onSubmit:t=>this.onSubmit(t),class:{"is-loading":this.loading}},this.errors.map((t=>i("floodteam-error",{message:t.error_message}))),i("input",{ref:t=>this.fileInputEl=t,type:"file",accept:"image/*",onChange:t=>this.selectFile(t),capture:"camera"}),i("floodteam-flip-card",{class:{"check-drag-hover":this.isHovered},frontImage:this.checkFront,backImage:this.checkBack,onClick:()=>this.openCamera(),flipped:!this.isScanningFront},i("div",{slot:"front"},i("span",{class:"badge-top-right"},"Front")),i("div",{slot:"back"},i("span",{class:"badge-top-right"},"Back"))),i("ion-grid",null,i("ion-row",null,i("ion-col",{size:"6"},i("ion-button",{fill:"clear",onClick:t=>this.cancel(t)},"Cancel")),i("ion-col",{size:"6"},i("ion-button",{color:"success",onClick:t=>this.save(t)},"Save")))))}get payCheckEl(){return s(this)}static get watchers(){return{url:["onUrlChange"]}}};n.style='floodteam-pay-check{font-family:var(\n    --floodteam-pay-check-font-family,\n    var(--theme-font-primary, Arial, Helvetica, sans-serif)\n  );display:block;width:100%}floodteam-pay-check floodteam-flip-card [slot="after"] img{opacity:0;pointer-events:none}floodteam-pay-check #form-check floodteam-button.flip{position:absolute;right:15px}floodteam-pay-check #form-check form{margin:0 auto;width:90%}floodteam-pay-check #form-check input[type="file"]{height:0;width:0;visibility:hidden;opacity:0}floodteam-pay-check #form-check img{display:block;width:100%}floodteam-pay-check #form-check floodteam-input{--floodteam-input-font-size:28px;--floodteam-input-width:160px;--floodteam-input-focus-color:#0f78b9;--floodteam-input-margin:0 0 0 0;--floodteam-input-label-top:10px;--floodteam-icon-bottom:8px}floodteam-pay-check floodteam-flip-card{cursor:pointer}floodteam-pay-check floodteam-flip-card .flip-card{height:150px !important}floodteam-pay-check #form-check floodteam-flip-card.check-drag-hover .flip-card-front,floodteam-pay-check #form-check floodteam-flip-card.check-drag-hover .flip-card-back{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAD6CAMAAABK88kiAAAAA3NCSVQICAjb4U/gAAAAe1BMVEWJiYm7u7u/v7+RkZH7+/upqanZ2dmdnZ2zs7Pq6uqLi4vMzMyZmZmjo6OxsbG3t7eNjY3h4eHExMTQ0NCtra2lpaXy8vKfn5+Tk5P///+5ubmPj4+1tbXd3d3m5uaVlZXIyMihoaGvr6+np6f39/erq6vV1dXu7u6ZmZkliFSsAAAACXBIWXMAAA6cAAAOnAEHlFPdAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABZ0RVh0Q3JlYXRpb24gVGltZQAwMi8yMS8xOSv5S6kAAAq/SURBVHic7d1re5pKFIZhDaFQBSEWi9lijLHq//+HmwEPEA9DYJbDWr73h+xuy1w15pGzk8EQgMDA9hMAmRAWkEBYQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkEBYQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkEBYQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkEBYQAJhAQkBYUWRP7kURd8Wy7KsdwsJxjysbLKdpWlwKXX9/2oLJqHX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YQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkEBYQAJhAQmEBSQQFpBAWEACYQEJhAUkEBaQQFhAAmEBCYQFJBAWkPgffnBX30Xd5dgAAAAASUVORK5CYII=") !important}floodteam-pay-check #form-check .top-bar .right floodteam-button{float:right}floodteam-pay-check #form-check .bottom-bar{margin-top:20px}floodteam-pay-check #form-check floodteam-grid{padding-top:15px}';const A=class{constructor(e){t(this,e),this.percent=0}async setPercent(t){return this.progressBarEl.style.setProperty("--floodteam-progress-bar-fill-width",`${t>=100?100:t<=0?0:t}%`),t}onPercentUpdate(){this.setPercent(this.percent)}componentDidLoad(){this.setPercent(this.percent)}render(){return i("div",{class:"progress-bar-wrapper"})}get progressBarEl(){return s(this)}static get watchers(){return{percent:["onPercentUpdate"]}}};A.style='floodteam-progress-bar .progress-bar-wrapper{display:relative;width:var(--floodteam-progress-bar-width, 100%);height:var(--floodteam-progress-bar-height, 15px);background-color:var(\n    --floodteam-progress-bar-background-color,\n    var(--theme-light-grey, #eee)\n  );border-radius:var(--floodteam-progress-bar-border-radius, 7px);transition:var(--floodteam-progress-bar-transition, 0.4s ease all)}floodteam-progress-bar .progress-bar-wrapper:before{display:block;content:"";transition:var(--floodteam-progess-bar-fill-transition, 0.2s ease-in width);background-color:var(\n    --floodteam-progress-bar-fill-background-color,\n    var(--ion-color-success, green)\n  );width:var(--floodteam-progress-bar-fill-width, 0);height:var(--floodteam-progress-bar-height, 15px);border-radius:var(--floodteam-progress-bar-border-radius, 7px)}';export{r as floodteam_pay_card,n as floodteam_pay_check,A as floodteam_progress_bar}