konnektive-engine 0.3.22 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.js +1 -1
- package/dist/api.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/conversion.js +1 -1
- package/dist/cookies.js +1 -1
- package/dist/index.js +1 -1
- package/dist/international.js +1 -1
- package/dist/redtrack.js +1 -1
- package/dist/render.js +1 -1
- package/dist/sale-postback.js +1 -1
- package/dist/sale.js +1 -1
- package/dist/state.js +1 -1
- package/dist/utils.js +1 -1
- package/dist/validation-sapphire.js +1 -1
- package/dist/validation.js +1 -1
- package/dist/zip-autofill-google.js +1 -1
- package/dist/zip-autofill.js +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("jQuery"));else if("function"==typeof define&&define.amd)define(["jQuery"],t);else{var o="object"==typeof exports?t(require("jQuery")):t(e.jQuery);for(var a in o)("object"==typeof exports?exports:e)[a]=o[a]}}(this,(e=>(()=>{var t={289:(e,t,o)=>{"use strict";o.d(t,{getOrdersList:()=>d});var a,r=o(145),s=o.n(r),i=(o(61),o(853)),n=o(248),c=o(244),l=!1;function d(){var e=getSessionStorage("stickyOrdersList");return!!(0<e.length)&&JSON.parse(e)}if(0!==s()('form[data-onePageCheckout="true"]').length&&"sticky"==(0,c.getConfig)().provider&&(a={},s()("#cShipFName, #cShipLName, #cEmail, #cPhone2, #cShipAddress1, #cShipZip, #cShipCity, #cShipState, #ccNum").blur((function(){a.FName=s()("#cShipFName").val(),a.LName=s()("#cShipLName").val(),a.Email=s()("#cEmail").val(),a.Phone=s()("#cPhone2").val(),a.Address=s()("#cShipAddress1").val(),a.Address2=s()("#cShipAddress2").val(),a.Zip=s()("#cShipZip").val(),a.City=s()("#cShipCity").val(),a.State=s()("#cShipState option:selected").val(),a.Country=s()("#cShipCountry").val(),a.Email&&(sessionStorage.getItem("prospect_id")?(0,n.sticky_update_prospect_from_temp_data)(sessionStorage.getItem("prospect_id"),a):!l&&(l=!0,(0,n.sticky_new_prospect_from_temp_data)(a)))}))),0!==s()('form[data-CA="true"]').length){var u=(0,i.getQueryParamValue)("chash");u&&("sticky"==(0,c.getConfig)().provider&&(s()(".overlay, .processing").show(),(0,n.sticky_get_prospect)(u),(0,i.debug)("Prospect data loaded")),"konnektive"==(0,c.getConfig)().provider&&(s()(".overlay, .processing").show(),(0,n.konnektive_get_partial)(u)))}},248:(e,t,o)=>{"use strict";o.r(t),o.d(t,{doAddUpsell:()=>Z,doCheckoutPage:()=>z,doCompleteOrder:()=>G,doCompleteOrderSapphire:()=>oe,doConfirmOrder:()=>X,doImportLead:()=>Y,doLeadPage:()=>H,doOrderQuery:()=>Q,doPresellPage:()=>j,konnektive_create_member:()=>re,konnektive_fill_ca_forms:()=>te,konnektive_finalize_orders:()=>$,konnektive_forgot_password:()=>ue,konnektive_get_images:()=>K,konnektive_get_partial:()=>ee,konnektive_login_user:()=>se,konnektive_logout_user:()=>ge,konnektive_new_lead:()=>J,konnektive_reactivate_membership:()=>pe,konnektive_update_order:()=>ce,konnektive_update_order_subscription:()=>le,konnektive_user_order_details:()=>ne,konnektive_user_orders_lookup:()=>ie,konnektive_user_orders_set_images:()=>de,konnektive_validate_user:()=>ae,sFormProcess:()=>W,setVirtualLink:()=>D,sticky_add_upsell:()=>y,sticky_create_member:()=>T,sticky_fill_ca_forms:()=>u,sticky_forgot_password:()=>M,sticky_get_orders:()=>v,sticky_get_orders_sapphire:()=>S,sticky_get_product_details:()=>L,sticky_get_prospect:()=>h,sticky_login_user:()=>R,sticky_logout_user:()=>U,sticky_new_order:()=>b,sticky_new_order_sapphire:()=>w,sticky_new_prospect:()=>p,sticky_new_prospect_from_temp_data:()=>m,sticky_update_order:()=>x,sticky_update_order_subscription:()=>I,sticky_update_password:()=>V,sticky_update_prospect:()=>g,sticky_update_prospect_from_temp_data:()=>f,sticky_user_order_details:()=>k,sticky_user_orders_handle_virtuals:()=>O,sticky_user_orders_handle_virtuals_gifts:()=>B,sticky_user_orders_lookup:()=>_,sticky_user_orders_set_images:()=>P,sticky_validate_coupon:()=>A,sticky_validate_coupon_sapphire:()=>C,sticky_validate_user:()=>F});var a=o(145),r=o.n(a),s=o(244),i=o(853),n=o(289),c=o(61);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e,t,o){return t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,"string");if("object"!==l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function u(e){r()("#cShipFName").val(e.first_name),r()("#cShipLName").val(e.last_name),r()("#cShipAddress1").val(e.address),r()("#cShipAddress2").val(e.address2),r()("#cShipCity").val(e.city),r()("#cShipZip").val(e.zip),(0,i.setCustomerShipState)(e.state_id),r()("#cBillFName").val(e.first_name),r()("#cBillLName").val(e.last_name),r()("#cBillAddress1").val(e.address),r()("#cBillCity").val(e.city),r()("#cBillZip").val(e.zip),(0,i.setCustomerBillState)(e.state_id),r()("#cPhone2").val(e.phone),r()("#cEmail").val(e.email);var t=e.custom_fields,o=(t[0].values[0].value,t[1].values[0].value,t[2].values[0].value,t[3].values[0].value),a=t[4].values[0].value;t[5].values[0].value,t[6].values[0].value,r()(".optionSelector").length&&(r()(".optionSelector .selector[data-rel=".concat(o,"]")).click(),r()(".packageselectors .package[data-pid=".concat(a,"]")).click()),setTimeout((function(){r()("[data-package-sku=".concat(a,"]")).click(),(0,i.debug)("Package selection restored with index :"+a)}),1e3)}function p(){var e="";r()("#cShipAddress2").length&&(e=r()("#cShipAddress2").val());var t=(0,i.clearPhone)(r()("#cPhone2").val());(0,s.deleteSessionStorage)("prospect_id");var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_prospect"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({campaignId:(0,s.getConfig)().products[0].campaignID,email:r()("#cEmail").val(),ipAddress:(0,i.getIP)(),firstName:r()("#cShipFName").val(),lastName:r()("#cShipLName").val(),address1:r()("#cShipAddress1").val(),address2:e,city:r()("#cShipCity").val(),state:r()("#cShipState").val(),zip:r()("#cShipZip").val(),country:r()("#cShipCountry").val(),phone:t,notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:""})};r().ajax(o).done((function(e){100===parseInt(e.response_code,10)?(sessionStorage.setItem("prospect_id",e.prospectId),document.shipping_form.submit()):((0,i.debug)(e),(0,s.getConfig)().debugMode||document.shipping_form.submit())}))}function g(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=sessionStorage.getItem("prospect_id"),o=r()("#cBillProductIndex").val(),a=r()("#cBillPurchaseType").val(),n="",c="",l=0,d="";if(r()("#cIssueType").length&&(n=r()("#cIssueType").val()),r()("#cIssueValue").length&&(c=r()("#cIssueValue").val()),r()("#cAge").length&&(l=r()("#cAge").val()),r()("#cGender").length&&(d=r()("#cGender").val()),(0,s.setSessionStorage)("customer_age",l),(0,s.setSessionStorage)("customer_gender",d),(0,s.setSessionStorage)("customer_issue_type",n),(0,s.setSessionStorage)("customer_issue_value",c),t){var u={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/prospects/").concat(t,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:9,value:(0,s.getSessionStorage)("lp_url")},{id:14,value:o},{id:13,value:a},{id:21,value:n},{id:22,value:c},{id:1,value:l},{id:2,value:d}]})};r().ajax(u).done((function(t){"SUCCESS"===t.status?e&&r()("#".concat(e)).submit():((0,i.debug)("Error updating prospect custom fields:"),(0,i.debug)(t))})).fail((function(){(0,i.throwStickyError)("error","Prospect error. You need to start over.","./")}))}}function m(e){(0,s.deleteSessionStorage)("prospect_id");var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_prospect"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({campaignId:(0,s.getConfig)().products[0].campaignID,email:e.Email,ipAddress:(0,i.getIP)(),firstName:e.FName,lastName:e.LName,address1:e.Address,address2:"",city:e.City,state:e.State,zip:e.Zip,country:e.Country,phone:e.Phone,notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:""})};r().ajax(t).done((function(e){100===parseInt(e.response_code,10)?(sessionStorage.setItem("prospect_id",e.prospectId),g()):(0,i.debug)(e)}))}function h(e){try{var t=atob(e),o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/prospect_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({prospect_id:t})};r().ajax(o).done((function(e){100===parseInt(e.response_code,10)?((0,i.resetFormState)(),sessionStorage.setItem("prospect_id",t),u(e)):((0,i.resetFormState)(),(0,i.debug)(e))}))}catch(t){(0,i.resetFormState)()}}function f(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/prospect_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:'{"prospect_id":{"'.concat(e,'":{"first_name":"').concat(t.FName,'","last_name":"').concat(t.LName,'","address":"').concat(t.Address,'","address2":"').concat(t.Address2,'","city":"').concat(t.City,'","state":"').concat(t.State,'","zip":"').concat(t.Zip,'","country":"').concat(t.Country,'","phone":"').concat(t.Phone,'","email":"').concat(t.Email,'"}}}')};r().ajax(o).done((function(e){100===parseInt(e.response_code,10)||(0,i.debug)(e)}))}function b(){var e,t=r()("#cBillProductIndex").val(),o=sessionStorage.getItem("prospect_id"),a=(0,i.stickyGetCountryEnv)("cShipCountry");sessionStorage.setItem("sticky_country",a),e=(0,s.getConfig)().international[0][a]?(0,s.getConfig)().international[0][a][0].shippingID:(0,s.getConfig)().international[0].all[0].shippingID;var n="new_order_with_prospect";o||(n="new_order");var c="onetime"===r()("#cBillPurchaseType").val()?(0,s.getConfig)().products[t].onetimeBillindgModelID:(0,s.getConfig)().products[t].subscribeBillindgModelID,l="Y"===r()("#billEqualShip").val()?"YES":"NO";"on"===r()("#billEqualShip").val()&&(l=r()("#billEqualShip").prop("checked")?"YES":"NO"),r()("#billEqualShip").prop("checked")&&(l="YES");var d="";r()("#cShipAddress2").length&&(d=r()("#cShipAddress2").val());var u="";r()("#cBillAddress2").length&&(u=r()("#cBillAddress2").val());var p=(0,i.clearPhone)(r()("#cPhone2").val()),g=""===r()("#cBillPromoCode").val()?"":r()("#cBillPromoCode").val(),m=(0,s.getConfig)().products[t].pid,h="";(0,s.getConfig)().products[t].forceGatewayId&&(h=(0,s.getConfig)().products[t].forceGatewayId),"4394572018927099"==r()("#ccNum").val()?(sessionStorage.setItem("sticky_test_order",1),h=(0,s.getConfig)().testGatewayID,(0,i.debug)("TEST CARD forceGatewayId: ".concat(h))):sessionStorage.setItem("sticky_test_order",0);var f=0!==r()("#cBillGift").length;(0,s.getConfig)().products[t].isTrial&&(0,s.getConfig)().products[t].pid;var b={prospectId:o,firstName:r()("#cShipFName").val(),lastName:r()("#cShipLName").val(),billingFirstName:r()("#cBillFName").val(),billingLastName:r()("#cBillLName").val(),billingAddress1:r()("#cBillAddress1").val(),billingAddress2:u,billingCity:r()("#cBillCity").val(),billingState:r()("#cBillState").val(),billingZip:r()("#cBillZip").val(),billingCountry:r()("#cBillCountry").val(),phone:p,email:r()("#cEmail").val(),promoCode:g,creditCardType:r()("#ccCardType").val(),creditCardNumber:r()("#ccNum").val(),expirationDate:r()("#ccExp").val(),CVV:r()("#ccCode").val(),shippingId:e,tranType:"sale",ipAddress:(0,i.getIP)(),campaignId:(0,s.getConfig)().products[t].campaignID,forceGatewayId:h,offers:[{offer_id:(0,s.getConfig)().products[t].offerID,product_id:m,billing_model_id:c,quantity:"1",step_num:1}],notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",sessionId:r()("input[name=sessionId]").val(),billingSameAsShipping:l,shippingAddress1:r()("#cShipAddress1").val(),shippingAddress2:d,shippingCity:r()("#cShipCity").val(),shippingState:r()("#cShipState").val(),shippingZip:r()("#cShipZip").val(),shippingCountry:r()("#cShipCountry").val(),alt_pay_token:"",alt_pay_payer_id:"",secretSSN:"",three_d_redirect_url:"",device_category:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="};if(f){var w={offer_id:(0,s.getConfig)().gifts[0].offerID,product_id:(0,s.getConfig)().gifts[0].pid,billing_model_id:(0,s.getConfig)().gifts[0].billingModelID,quantity:"1"};b.offers.push(w)}var y="".concat((0,s.getConfig)().legacyAPIURL,"?")+"method=NewOrderWithProspect&tranType=Sale"+"&firstName=".concat(r()("#cShipFName").val(),"&lastName=").concat(r()("#cShipLName").val(),"&shippingAddress1=").concat(r()("#cShipAddress1").val(),"&shippingAddress2=")+"&shippingCity=".concat(r()("#cShipCity").val(),"&shippingState=").concat(r()("#cShipState").val(),"&shippingZip=").concat(r()("#cShipZip").val(),"&shippingCountry=").concat(r()("#cShipCountry").val(),"&billingFirstName=").concat(r()("#cBillFName").val(),"&billingLastName=").concat(r()("#cBillLName").val(),"&billingAddress1=").concat(r()("#cBillAddress1").val(),"&billingAddress2=").concat(u,"&billingCity=").concat(r()("#cBillCity").val(),"&billingState=").concat(r()("#cBillState").val(),"&billingZip=").concat(r()("#cBillZip").val(),"&billingCountry=").concat(r()("#cBillCountry").val(),"&phone=").concat(p,"&email=").concat(r()("#cEmail").val(),"&creditCardType=").concat(r()("#ccCardType").val(),"&creditCardNumber=").concat(r()("#ccNum").val(),"&expirationDate=").concat(r()("#ccExp").val(),"&CVV=").concat(r()("#ccCode").val(),"&checkAccountNumber=")+"&checkRoutingNumber=&sepa_iban=&sepa_bic=&eurodebit_acct_num=&eurodebit_route_num="+"&ipAddress=".concat((0,i.getIP)(),"&AFID=")+"&SID=&AFFID=&C1=&C2=&C3=&AID=&OPT=&click_id="+"&productId=".concat(m,"&campaignId=").concat((0,s.getConfig)().products[t].campaignID,"&shippingId=").concat(e,"&upsellCount=")+"&forceGatewayId=".concat(h)+"&upsellProductIds=&dynamic_product_price_1="+"&prospectId=".concat(o,"&billingSameAsShipping=").concat(l,"¬es=")+"&product_qty_1=&preserve_force_gateway=&createdBy=&thm_session_id=&total_installments=&alt_pay_token=&alt_pay_payer_id=&secretSSN=&force_subscription_cycle=&recurring_days=&subscription_week=&subscription_day=&product_attribute_array=&master_order_id=&promoCode=&temp_customer_id=&three_d_redirect_url=&alt_pay_return_url="+"&sessionId=".concat(r()("input[name=sessionId]").val(),"&ssn_nmi=")+"&utm_source=&utm_medium=&utm_campaign=&utm_term=&utm_content=&device_category=&conversion_id=&referrer_id=&product_step[1]&consent_required=",v={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/").concat(n),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify(b)};(0,s.getConfig)().products[t].isTrial&&(v={url:y,method:"GET",timeout:0,headers:{Accept:"text/plain"}}),-1==r().inArray(r()("#ccNum").val(),(0,s.getConfig)().blockedCardNumbers)?r().ajax(v).done((function(e){switch((0,s.getConfig)().products[t].isTrial&&((e=JSON.parse(e)).response_code=e.responseCode,e.order_id=e.orderId),parseInt(e.response_code,10)){case 100:sessionStorage.setItem("order_id",e.order_id),(0,i.saveOrderNumberIntoList)(e.order_id);var o=(0,s.getSessionStorage)("customer_age"),a=(0,s.getSessionStorage)("customer_gender"),n=(0,s.getSessionStorage)("customer_issue_type"),c=(0,s.getSessionStorage)("customer_issue_value"),l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(e.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:o},{id:24,value:a},{id:25,value:n},{id:26,value:c}]})};r().ajax(l).done((function(){if(r()("#ship_pro").prop("checked")){var l={previousOrderId:e.order_id,master_order_id:e.order_id,shippingId:(0,s.getConfig)().shipProtection[0].shippingID,campaignId:(0,s.getConfig)().products[t].campaignID,forceGatewayId:h,ipAddress:(0,i.getIP)(),offers:[{offer_id:(0,s.getConfig)().products[t].offerID,product_id:(0,s.getConfig)().shipProtection[0].pid,billing_model_id:(0,s.getConfig)().shipProtection[0].billingModelID,quantity:"1"}],notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",alt_pay_token:"",alt_pay_payer_id:"",secretSSN:"",three_d_redirect_url:"",device_category:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="},d={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_order_card_on_file"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify(l)};r().ajax(d).done((function(t){if(100===parseInt(t.response_code)){(0,i.saveOrderNumberIntoList)(t.order_id);var l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(t.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:o},{id:24,value:a},{id:25,value:n},{id:26,value:c}]})};r().ajax(l).done((function(){}))}else(0,i.debug)(t);if((0,s.getConfig)().enableUpsells){var d="checkout/bonus1.html?orderID="+e.order_id;r()('input[name="urlparams"]').val()&&(d+="&"+r()('input[name="urlparams"]').val()),r()(location).prop("href",d)}else r()(location).prop("href","checkout/thankyou.html?"+r()('input[name="urlparams"]').val())}))}else if((0,s.getConfig)().enableUpsells){var u="checkout/bonus1.html?orderID=".concat(e.order_id);r()('input[name="urlparams"]').val()&&(u+="&".concat(r()('input[name="urlparams"]').val())),r()(location).prop("href",u)}else r()(location).prop("href","checkout/thankyou.html?".concat(r()('input[name="urlparams"]').val()))}));break;case 10330:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","This purchase is already made. You need to start over.","./");break;case 10327:case 10800:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","There was an issue processing your card. Please try a different card or call us at ".concat((0,s.getConfig)().servicePhone," so we can assist you in placing your order."));break;default:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","There was an error processing this transaction. Please try again or call our customer service at ".concat((0,s.getConfig)().servicePhone)),(0,i.debug)(e)}})).fail((function(e){(0,i.throwStickyError)("error","There was an error processing this transaction. Please try again or call our customer service at ".concat((0,s.getConfig)().servicePhone)),(0,i.debug)(e);try{(0,i.reportInSlack)("User got timeout error. Session ID is: "+getLocalStorage("session_id")+"\nUser's contacts are: "+r()("#cEmail").val()+" / "+p)}catch(e){(0,i.debug)(e)}})):(r()("#ccNum").val(""),(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","Please enter valid credit card number"))}function w(){sapphireCart.loadCart();var e,t=sapphireCart.getCart().cart,o=sessionStorage.getItem("prospect_id");(0,i.stickyGetCountryEnv)("cShipCountry"),e=t[0].itemShippingID;var a="new_order_with_prospect";o||(a="new_order"),t[0].itemBillingID;var n="Y"===r()("#billEqualShip").val()?"YES":"NO";"on"===r()("#billEqualShip").val()&&(n=r()("#billEqualShip").prop("checked")?"YES":"NO"),r()("#billEqualShip").prop("checked")&&(n="YES");var c="";r()("#cShipAddress2").length&&(c=r()("#cShipAddress2").val());var l="";r()("#cBillAddress2").length&&(l=r()("#cBillAddress2").val());var d=(0,i.clearPhone)(r()("#cPhone2").val()),u=""===r()("#shipCoupon").val()?"":r()("#shipCoupon").val(),p=t[0].itemID,g="";"4394572018927099"==r()("#ccNum").val()?(sessionStorage.setItem("sticky_test_order",1),g=(0,s.getConfig)().testGatewayID,(0,i.debug)("TEST CARD forceGatewayId: ".concat(g))):sessionStorage.setItem("sticky_test_order",0);var m=0!==r()("#cBillGift").length;t[0].itemIsTrial&&t[0].itemID;for(var h={prospectId:o,firstName:r()("#cShipFName").val(),lastName:r()("#cShipLName").val(),billingFirstName:r()("#cBillFName").val(),billingLastName:r()("#cBillLName").val(),billingAddress1:r()("#cBillAddress1").val(),billingAddress2:l,billingCity:r()("#cBillCity").val(),billingState:r()("#cBillState").val(),billingZip:r()("#cBillZip").val(),billingCountry:r()("#cBillCountry").val(),phone:d,email:r()("#cEmail").val(),promoCode:u,creditCardType:r()("#ccCardType").val(),creditCardNumber:r()("#ccNum").val(),expirationDate:r()("#ccExp").val(),CVV:r()("#ccCode").val(),shippingId:e,tranType:"sale",ipAddress:(0,i.getIP)(),campaignId:t[0].itemCampaignID,forceGatewayId:g,offers:[],notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",sessionId:r()("input[name=sessionId]").val(),billingSameAsShipping:n,shippingAddress1:r()("#cShipAddress1").val(),shippingAddress2:c,shippingCity:r()("#cShipCity").val(),shippingState:r()("#cShipState").val(),shippingZip:r()("#cShipZip").val(),shippingCountry:r()("#cShipCountry").val(),alt_pay_token:"",alt_pay_payer_id:"",secretSSN:"",three_d_redirect_url:"",device_category:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="},f=0;f<t.length;f++)h.offers.push({offer_id:t[f].itemOfferID,product_id:t[f].itemID,billing_model_id:t[f].itemBillingID,quantity:1,step_num:1});if(m){var b={offer_id:(0,s.getConfig)().gifts[0].offerID,product_id:(0,s.getConfig)().gifts[0].pid,billing_model_id:(0,s.getConfig)().gifts[0].billingModelID,quantity:"1"};h.offers.push(b)}var w="".concat((0,s.getConfig)().legacyAPIURL,"?")+"method=NewOrderWithProspect&tranType=Sale"+"&firstName=".concat(r()("#cShipFName").val(),"&lastName=").concat(r()("#cShipLName").val(),"&shippingAddress1=").concat(r()("#cShipAddress1").val(),"&shippingAddress2=")+"&shippingCity=".concat(r()("#cShipCity").val(),"&shippingState=").concat(r()("#cShipState").val(),"&shippingZip=").concat(r()("#cShipZip").val(),"&shippingCountry=").concat(r()("#cShipCountry").val(),"&billingFirstName=").concat(r()("#cBillFName").val(),"&billingLastName=").concat(r()("#cBillLName").val(),"&billingAddress1=").concat(r()("#cBillAddress1").val(),"&billingAddress2=").concat(l,"&billingCity=").concat(r()("#cBillCity").val(),"&billingState=").concat(r()("#cBillState").val(),"&billingZip=").concat(r()("#cBillZip").val(),"&billingCountry=").concat(r()("#cBillCountry").val(),"&phone=").concat(d,"&email=").concat(r()("#cEmail").val(),"&creditCardType=").concat(r()("#ccCardType").val(),"&creditCardNumber=").concat(r()("#ccNum").val(),"&expirationDate=").concat(r()("#ccExp").val(),"&CVV=").concat(r()("#ccCode").val(),"&checkAccountNumber=")+"&checkRoutingNumber=&sepa_iban=&sepa_bic=&eurodebit_acct_num=&eurodebit_route_num="+"&ipAddress=".concat((0,i.getIP)(),"&AFID=")+"&SID=&AFFID=&C1=&C2=&C3=&AID=&OPT=&click_id="+"&productId=".concat(p,"&campaignId=").concat(t[0].itemCampaignID,"&shippingId=").concat(e,"&upsellCount=")+"&forceGatewayId=".concat(g)+"&upsellProductIds=&dynamic_product_price_1="+"&prospectId=".concat(o,"&billingSameAsShipping=").concat(n,"¬es=")+"&product_qty_1=&preserve_force_gateway=&createdBy=&thm_session_id=&total_installments=&alt_pay_token=&alt_pay_payer_id=&secretSSN=&force_subscription_cycle=&recurring_days=&subscription_week=&subscription_day=&product_attribute_array=&master_order_id=&promoCode=&temp_customer_id=&three_d_redirect_url=&alt_pay_return_url="+"&sessionId=".concat(r()("input[name=sessionId]").val(),"&ssn_nmi=")+"&utm_source=&utm_medium=&utm_campaign=&utm_term=&utm_content=&device_category=&conversion_id=&referrer_id=&product_step[1]&consent_required=",y={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/").concat(a),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify(h)};t[0].itemIsTrial&&(y={url:w,method:"GET",timeout:0,headers:{Accept:"text/plain"}}),-1==r().inArray(r()("#ccNum").val(),(0,s.getConfig)().blockedCardNumbers)?r().ajax(y).done((function(e){switch(t[0].itemIsTrial&&((e=JSON.parse(e)).response_code=e.responseCode,e.order_id=e.orderId),parseInt(e.response_code,10)){case 100:sessionStorage.setItem("order_id",e.order_id),(0,i.saveOrderNumberIntoList)(e.order_id);var o=(0,s.getSessionStorage)("customer_age"),a=(0,s.getSessionStorage)("customer_gender"),n=(0,s.getSessionStorage)("customer_issue_type"),c=(0,s.getSessionStorage)("customer_issue_value"),l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(e.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:o},{id:24,value:a},{id:25,value:n},{id:26,value:c}]})};r().ajax(l).done((function(){if(t[0].itemIsShipProtection){var l={previousOrderId:e.order_id,master_order_id:e.order_id,shippingId:t[0].itemShippingID,campaignId:t[0].itemCampaignID,forceGatewayId:g,ipAddress:(0,i.getIP)(),offers:[{offer_id:t[0].itemOfferID,product_id:(0,s.getConfig)().shipProtection[0].pid,billing_model_id:(0,s.getConfig)().shipProtection[0].billingModelID,quantity:"1"}],notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",alt_pay_token:"",alt_pay_payer_id:"",secretSSN:"",three_d_redirect_url:"",device_category:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="},d={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_order_card_on_file"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify(l)};r().ajax(d).done((function(e){if(100===parseInt(e.response_code)){(0,i.saveOrderNumberIntoList)(e.order_id);var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(e.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:o},{id:24,value:a},{id:25,value:n},{id:26,value:c}]})};r().ajax(t).done((function(){window.location.search.substring(1)?r()(location).prop("href","page-thank-you.php?"+window.location.search.substring(1)):r()(location).prop("href","page-thank-you.php")}))}else(0,i.debug)(e)}))}else window.location.search.substring(1)?r()(location).prop("href","page-thank-you.php?"+window.location.search.substring(1)):r()(location).prop("href","page-thank-you.php")}));break;case 10330:(0,i.resetFormState)(),(0,i.throwStickyError)("error","This purchase is already made. You need to start over.","./");break;case 10327:case 10800:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","There was an issue processing your card. Please try a different card or call us at ".concat((0,s.getConfig)().servicePhone," so we can assist you in placing your order."));break;default:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","There was an error processing this transaction. Please try again or call our customer service at ".concat((0,s.getConfig)().servicePhone)),(0,i.debug)(e)}})):(r()("#ccNum").val(""),(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","Please enter valid credit card number"))}function y(){var e=sessionStorage.getItem("order_id"),t=((0,s.getConfig)().upsellIndex,sessionStorage.getItem("sticky_country"));if(e){var o="";(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].forceGatewayId&&(o=(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].forceGatewayId),1==sessionStorage.getItem("sticky_test_order")&&(o=(0,s.getConfig)().testGatewayID,(0,i.debug)("TEST CARD forceGatewayId: ".concat(o)));var a,c="";(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].discountPromoCode&&(c=(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].discountPromoCode),a=(0,s.getConfig)().international[0][t]?(0,s.getConfig)().international[0][t][0].shippingID:(0,s.getConfig)().international[0].all[0].shippingID,(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].shippingID&&(a=(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].shippingID);var l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_upsell"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({previousOrderId:e,master_order_id:e,shippingId:a,ipAddress:(0,i.getIP)(),campaignId:(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].campaignID,forceGatewayId:o,offers:[{offer_id:(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].offerID,product_id:(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].pid,billing_model_id:(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].billingModelID,quantity:1,step_num:(0,s.getConfig)().upsellIndex+2}],promoCode:c,notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="})};r().ajax(l).done((function(e){switch(parseInt(e.response_code)){case 100:var t=sessionStorage.getItem("customer_age"),o=sessionStorage.getItem("customer_gender"),a=sessionStorage.getItem("customer_issue_type"),c=sessionStorage.getItem("customer_issue_value"),l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(e.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:t},{id:24,value:o},{id:25,value:a},{id:26,value:c}]})};r().ajax(l).done((function(){if((0,i.saveOrderNumberIntoList)(e.order_id),(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].voidMain){var t=(0,n.getOrdersList)()[0],o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_void"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:t})};r().ajax(o).done((function(e){100===parseInt(e.response_code)?(0,i.skipUpsell)():(0,i.debug)(e)}))}else(0,i.skipUpsell)()}));break;case 10334:(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.error_message),(0,i.skipUpsell)();break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred."),(0,i.skipUpsell)(),(0,i.debug)(e)}}))}else(0,i.throwStickyError)("error","Order Number Not Found","../")}function v(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e})};r().ajax(t).done((function(o){switch(parseInt(o.response_code)){case 100:if((0,i.debug)("Orders raw data:"),(0,i.debug)(o),1<e.length)var a=o.data[e[0]];else a=o;var n="",l="",d=[],u=0,p="";r().each(e,(function(t,a){if(1<e.length)var s=o.data[a];else s=o;if(1==s.products[0].is_recurring){var i=new Date(s.products[0].recurring_date).toString("MMM d, yyyy");"<br/><small>Next Shipment: ".concat(i,"</small>")}p="yes"==s.is_void?"order-voided":"";var g="";r().each(s.products,(function(e,t){0==e||(s.products[0].name+='<div class="giftz desktops additionalProduct"><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t.product_id,'" id="sticky-product-').concat(t.product_id,'" />').concat(t.name,' <a href="#" class="sticky-product-link" data-pid="').concat(t.product_id,'" target="_blank">Click to download</a></div>'),g+='<div class="gitz mobilz additionalProduct"><strong>'.concat(t.name,'</strong><a href="#" class="sticky-product-link" data-pid="').concat(t.product_id,'" target="_blank">Click to download</a><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t.product_id,'" id="sticky-product-').concat(t.product_id,'" /></div></div>'))})),n+='<tr class="ty-order-entry '.concat(p," order-entry-").concat(t,'">'),n+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(s.products[0].product_id,'" id="sticky-product-').concat(s.products[0].product_id,'" />').concat(s.products[0].name,"</td>"),n+="<td>".concat(a,"</td>"),n+="<td>".concat(s.gateway_descriptor,"</td>"),n+="<td>".concat(s.products[0].product_qty,"</td>"),n+="<td>$".concat(s.products[0].price,"</td>"),n+="<td>$".concat(s.shipping_amount,"</td>"),n+="<td>$".concat(s.order_total,"</td>"),n+="</tr>",l+='<tr class="ty-order-entry '.concat(p," mobile-order-entry-").concat(t,'">'),l+="<td><strong>".concat(s.products[0].name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(s.products[0].product_id,'" id="sticky-product-').concat(s.products[0].product_id,'" /> Order #: ').concat(a,"<br/>Billed as: ").concat(s.gateway_descriptor,"<br/>Qty: ").concat(s.products[0].product_qty,"<br/>Shipping: $").concat(s.shipping_amount,"</div>")+g+"</td>",l+="<td>$".concat(s.products[0].price,"</td>"),l+="</tr>",d.push(s.ancestor_id),u+=parseFloat(s.order_total)})),r()("#order_number").text(d[0]),r()("#fullname").text("".concat(a.shipping_first_name," ").concat(a.shipping_last_name)),r()("#address").text(a.shipping_street_address),r()("#city_state").text("".concat(a.shipping_city,", ").concat(a.shipping_state,", ").concat(a.shipping_country)),r()("#zip").text(a.shipping_postcode),r()("#order_summary tbody").html(n),r()("#order_summary .totals").html(u.toFixed(2)),r()("#order_summary_mobile tbody").html(l),r()("#order_summary_mobile .totals").html(u.toFixed(2)),(0,i.resetFormState)(),r()(".sticky-product-image").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o=JSON.parse((0,s.getSessionStorage)("stickyImagesList"));o&&r().each(o,(function(o,a){parseInt(a[0].pid)==parseInt(t)&&e.attr("src",a[0].url)}))})),r()(".sticky-product-link").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o=JSON.parse((0,s.getSessionStorage)("stickyImagesList"));o&&r().each(o,(function(o,a){parseInt(a[0].pid)==parseInt(t)&&"-"!=a[0].download&&(e.attr("href",a[0].download),e.show())}))}));break;case 350:(0,i.throwStickyError)("error","Order Number Not Found","../");break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred."),(0,i.debug)("Orders Request: ",t),(0,i.debug)(o)}}))}function S(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e})};r().ajax(t).done((function(t){switch(parseInt(t.response_code)){case 100:(0,i.debug)("Orders raw data: "+t),1<e.length&&t.data[e[0]];var o="",a=[],n=0,l=0,d="",u=0;r().each(e,(function(s,i){if(1<e.length)var p=t.data[i];else p=t;if(1==p.products[0].is_recurring){var g=new Date(p.products[0].recurring_date).toString("MMM d, yyyy");"<br/><small>Next Shipment: ".concat(g,"</small>")}d="yes"==p.is_void?"order-voided":"",r().each(p.products,(function(e){r().each(p.products,(function(t,o){0==t||(p.products[e].name+='<div class="giftz desktops"><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(o.product_id,'" id="sticky-product-').concat(o.product_id,'" />').concat(o.name,"</div>"),'<div class="gitz mobilz"><strong>'.concat(o.name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(o.product_id,'" id="sticky-product-').concat(o.product_id,'" /></div></div>'))})),o+='<tr class="ty-order-entry '.concat(d," order-entry-").concat(s,"-").concat(e,'">'),o+="<td>".concat(p.products[e].name,"</td>"),o+='<td align="right">$'.concat(p.products[e].price,"</td>"),o+='<td align="right">'.concat(p.products[e].product_qty,"</td>"),o+='<td align="right">$'.concat(p.products[e].price,"</td>"),o+="</tr>"})),'<tr class="ty-order-entry '.concat(d," mobile-order-entry-").concat(s,'">'),"<td><strong>".concat(p.products[0].name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(p.products[0].product_id,'" id="sticky-product-').concat(p.products[0].product_id,'" /> Order #: ').concat(i,"<br/>Billed as: ").concat(p.gateway_descriptor,"<br/>Qty: ").concat(p.products[0].product_qty,"<br/>Shipping: $").concat(p.shipping_amount,"</div>"),mobilzInfo,"<td>$".concat(p.products[0].price,"</td>"),a.push(p.ancestor_id),n+=parseFloat(p.order_total),u+=parseFloat(p.shipping_amount),l+=parseFloat(p.coupon_discount_amount)})),r()("#order_number").text(a[0]),r()("#order_summary tbody").html(o),r()("#order_summary .totals").html(n.toFixed(2)),r()("#orderDiscount").html("$"+l.toFixed(2)),r()("#orderSubTotal").html("$"+n.toFixed(2)),r()("#orderShipping").html("$"+u.toFixed(2)),r()("#orderTotal").html("$"+(u+n).toFixed(2)),(0,i.resetFormState)(),r()(".sticky-product-image").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o=JSON.parse((0,s.getSessionStorage)("stickyImagesList"));o&&r().each(o,(function(o,a){parseInt(a[0].pid)==parseInt(t)&&e.attr("src",a[0].url)}))}));break;case 350:(0,i.throwStickyError)("error","Order Number Not Found","../");break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred."),(0,i.debug)(t)}}))}function A(e,t){var o=r()("#cBillProductIndex").val(),a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/coupon_validate"),method:"POST",timeout:0,headers:authHeaders,data:JSON.stringify({shippingId:(0,s.getConfig)().products[o].shippingID,campaignId:(0,s.getConfig)().products[o].campaignID,email:t,products:[{product_id:(0,s.getConfig)().products[o].pid}],promo_code:e})};r().ajax(a).done((function(e){100===parseInt(e.response_code)?((0,i.resetFormState)(),(0,i.throwStickyError)("info","Code OK. Discount: $".concat(e.coupon_amount))):((0,i.resetFormState)(),(0,i.throwStickyError)("error",e.error_message),(0,i.debug)(e))}))}function C(e,t){r()("#shipCouponButton").text("Checking..."),sapphireCart.loadCart();for(var o=sapphireCart.getCart().cart,a=[],n=0;n<o.length;n++)a.push({product_id:o[n].itemID,quantity:1});var c={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/coupon_validate"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({shipping_id:o[0].itemShippingID,campaign_id:o[0].itemCampaignID,email:t,products:a,promo_code:e})};r().ajax(c).done((function(t){switch(parseInt(t.response_code)){case 100:(0,i.resetFormState)(),(0,i.debug)(t),sapphireCart.addCouponSimple(e,t.coupon_amount),displayCart();break;case 342:(0,i.resetFormState)(),r()("#shipCouponButton").text("Apply"),(0,i.throwStickyError)("info","Please enter email address to use Promo Codes");break;default:(0,i.resetFormState)(),r()("#capplied").css("color","red"),r()("#capplied").html("Coupon Code is incorrect"),r()("#capplied").show(),r()("#shipCouponButton").text("Apply"),(0,i.debug)(t)}}))}function _(){r()(".overlay, .processing").show(),r()("#order_summary tbody").html("");var e="",t=0,o=0,a=0,n=0;r().each((0,s.getConfig)().campaignID,(function(l,d){var u={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_find"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({start_date:new Date.parse("today").add(-1).year().toString("MM/dd/yyyy"),start_time:"",end_date:new Date.parse("today").add(1).day().toString("MM/dd/yyyy"),end_time:"",date_type:"create",campaign_id:d.id,criteria:{email:(0,s.getCookieValue)("sticky_customer_email")},member_token:(0,s.getCookieValue)("sticky_member_token"),return_type:"order_view"})};r().ajax(u).done((function(s){switch(parseInt(s.response_code)){case 100:t+=1,r().each(s.data,(function(t,o){if(o.products[0].billing_model)if(7!=o.order_status&&11!=o.order_status){a+=1;var s="",l="",d="Approved",u=o,p="table-light",g='<a href="#" onclick="sticky_user_order_details('.concat(t,", '").concat(btoa(u.email_address),'\'); return false;" class="btn btn-secondary w-100"><span class="desktop">Details</span><span class="mobile"><i class="bi bi-info-circle-fill"></i></span></a>'),m=u.products[0].billing_model.name,h=new Date(u.time_stamp.substr(0,u.time_stamp.indexOf(" "))).toString("MMMM d, yyyy hh:mm");if(1==u.products[0].is_recurring){m=u.products[0].billing_model.name;var f=new Date(u.products[0].recurring_date).toString("MMM d, yyyy"),b="<br/><small>Next Shipment: ".concat(f,"</small>");1==u.stop_after_next_rebill&&(b+=' <span class="badge bg-warning">Will be stopped after next shipment</span>'),p="table-success"}else b="",m=u.products[0].billing_model.name,1==u.on_hold&&(b+=' <span class="badge bg-danger">Subscription stopped</span>');6==u.order_status&&(d="Void/Refunded",p="table-danger"),u.tracking_number&&(d="Shipped",p="table-info"),r().each(u.products,(function(e,t){0==e||(s+='<div class="additionalProduct" data-pid="'.concat(t.product_id,'" data-shippable="').concat(t.is_shippable,'"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t.product_id,'" data-shippable="').concat(t.is_shippable,'" id="sticky-product-').concat(t.product_id,'" />').concat(t.name,' <a href="#" target="_blank"></a></div>'),'<div class="gitz mobilz"><strong>'.concat(t.name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t.product_id,'" id="sticky-product-').concat(t.product_id,'" /></div></div>'))})),l+='<div class="mobileOnly">$'.concat(u.order_total,"<br/>").concat(d,"<br/>").concat(m).concat(b,"</div>"),(0,i.debug)("Orders raw data:"),(0,i.debug)(u),e+='<tr id="order-entry-'.concat(t,'" data-pid="').concat(u.products[0].product_id,'" data-shippable="').concat(u.products[0].is_shippable,'" class="').concat(p," ty-order-entry order-entry-").concat(t,'">'),e+="<td>".concat(t,"</td>"),e+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image oms-entry" data-pid="').concat(u.products[0].product_id,'" id="sticky-product-').concat(u.products[0].product_id,'" />\x3c!-- i class="bi bi-box-seam"></i--\x3e ').concat(u.products[0].name).concat(s).concat(l,"</td>"),e+='<td class="hideOnMobile">'.concat(h,"</td>"),e+='<td class="hideOnMobile">'.concat(m).concat(b,"</td>"),e+='<td class="hideOnMobile">$'.concat(u.order_total,"</td>"),e+='<td class="hideOnMobile">'.concat(d,"</td>"),e+='<td class="align-top orderDetails" align="center">'.concat(g," </td>"),e+="</tr>"}else n+=1;else n+=1})),r()("#order_summary tbody").append(e),r()("#order_summary tbody tr").each((function(){r()(".".concat(r()(this).attr("id"))).not(":last").remove()}));break;case 333:o+=1,t+=1;break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred."),(0,i.debug)(s)}}));var p=setInterval((function(){t==(0,s.getConfig)().campaignID.length&&(r().bootstrapSortable({sign:"reversed"}),O(),B(),(0,i.resetFormState)(),P(),clearInterval(p),0==a&&0!=n&&((0,i.resetFormState)(),(0,i.throwStickyError)("info","You don't have active orders."),clearInterval(p))),o==(0,s.getConfig)().campaignID.length&&((0,i.resetFormState)(),(0,i.throwStickyError)("error","You don't have any orders for now."),clearInterval(p))}),1e3)}))}function k(e,t){r()(".overlay, .processing").show();var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e})};r().ajax(o).done((function(e){if(100===parseInt(e.response_code))if(e.email_address==atob(t)){r()(".updateOrderDetails .btn").show();var o='<table class="table table-bordered"><thead><tr><th scope="col" colspan="2">Delivery Information</th></tr></thead><tbody><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Name:</strong></td><td id="fullname" class="tab_cel2"><input type="text" id="newShippingFName" placeholder="First Name" value="'.concat(e.shipping_first_name,'" class="form-control half" required><input type="text" id="newShippingLName" placeholder="Last Name" value="').concat(e.shipping_last_name,'" class="form-control half" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address" class="tab_cel2"><input type="text" id="newShippingAddress" placeholder="Address" value="').concat(e.shipping_street_address,'" class="form-control" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 2:</strong></td><td id="address2" class="tab_cel2"><input type="text" id="newShippingAddress2" placeholder="Address" value="').concat(e.shipping_street_address2,'" class="form-control"></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>City/State:</strong></td><td id="city_state" class="tab_cel2"><input type="text" id="newShippingCity" placeholder="City" value="').concat(e.shipping_city,'" class="form-control half" required><select id="newShippingState" class="form-select half"></select></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Zip:</strong></td><td id="zip" class="tab_cel2"><input type="text" placeholder="Zip" id="newShippingZip" value="').concat(e.shipping_postcode,'" class="form-control" required></td></tr></tbody></table>'),a='<table class="table table-bordered"><thead><tr><th scope="col" colspan="2">Billing Information</th></tr></thead><tbody><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Name:</strong></td><td id="fullname" class="tab_cel2"><input type="text" id="newBillingFName" placeholder="First Name" value="'.concat(e.billing_first_name,'" class="form-control half" required><input type="text" id="newBillingLName" placeholder="Last Name" value="').concat(e.billing_last_name,'" class="form-control half" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address" class="tab_cel2"><input type="text" id="newBillingAddress" placeholder="Address" value="').concat(e.billing_street_address,'" class="form-control" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address2" class="tab_cel2"><input type="text" id="newBillingAddress2" placeholder="Address" value="').concat(e.billing_street_address2,'" class="form-control"></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>City/State:</strong></td><td id="city_state" class="tab_cel2"><input type="text" id="newBillingCity" placeholder="City" value="').concat(e.billing_city,'" class="form-control half" required><select id="newBillingState" class="form-select half"></select></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Zip:</strong></td><td id="zip" class="tab_cel2"><input type="text" placeholder="Zip" id="newBillingZip" value="').concat(e.billing_postcode,'" class="form-control" required></td></tr></tbody></table>'),s='<tr><td class="tab_cel1 text-right orderContents"><i class="bi bi-box-seam"></i> '.concat(e.products[0].name,"</td><td>$").concat(e.products[0].price,"</td></tr>");globalsOrderId=e.order_id,r().each(e.products,(function(e,t){0==e||(s+='<tr><td class="tab_cel1 text-right orderContents freeGift"><i class="bi bi-gift"></i> '.concat(t.name,"</td><td>$").concat(t.price,"</td></tr>"),s+='<tr class="virtualProduct"><td colspan="2" class="tab_cel1 text-right" data-pid="'+t.product_id+'"><div class="spinner-border text-secondary" role="status"><span class="visually-hidden">Loading...</span></div></td></tr>',0==t.is_shippable&&D(t.product_id))}));var n='<select id="billingModelUpdate" name="billingModelUpdate" class="form-select" aria-label="Default select example"><option value="'.concat(e.products[0].billing_model.id,'" disabled selected> - Change billing cycle - </option>').concat(getBillingModels(e.products[0].billing_model.id),"</select>");if(1==e.products[0].is_recurring)var c=new Date(e.products[0].recurring_date).toString("MMM d, yyyy"),l=new Date(e.products[0].recurring_date).toString("MM/dd/yyyy"),d="<strong>".concat(e.products[0].billing_model.name,"</strong><br/>Next shipment date: ").concat(c);else d=e.products[0].billing_model.name;if(0==e.is_rma||0==e.is_voided){var u='<tr><td class="tab_cel1 text-right"> '.concat(d,"</td></tr>");1==e.products[0].is_recurring?(u+='<tr><td class="tab_cel1 text-right">',u+=' <a class="btn btn-danger" href="#" onclick="sticky_update_order_subscription('.concat(e.order_id,", ").concat(e.products[0].product_id,', \'subscription_stop\'); return false;"><i class="bi bi-pause-fill"></i> Pause Subscription</a>'),u+="</td></tr>",u+='<tr><td class="tab_cel2 bilcycle">'.concat(n,' <label>New Next Recurring Date:</label> <input type="text" value="').concat(l,'" class="form-control" name="newRecurringDate" id="newRecurringDate" data-format="MM/dd/yyyy" autocomplete="off" /> <a href="#" onclick="sticky_update_order_subscription(').concat(e.order_id,", ").concat(e.products[0].product_id,', \'billing_model\'); return false;" class="btn btn-primary">Save</a></td></tr>')):1==e.on_hold&&(u+='<tr><td class="tab_cel1 text-right">',u+=' <a class="btn btn-success" href="#" onclick="sticky_update_order_subscription('.concat(e.order_id,", ").concat(e.products[0].product_id,', \'subscription_restart\'); return false;"><i class="bi bi-play-fill"></i> Resume Subscription</a>'),u+="</td></tr>")}else u='<tr><td class="tab_cel1 text-right"><em>Not Available. Order is Voided.</em></td></tr>';if(e.tracking_number?(r()("#trackNumber").html("<tr><td>".concat(e.tracking_number,' <a href="#" target="_blank" id="shipmentTrackingLink">Track Shipment</a></td></tr>')),r()(".trackingCol").show(),detectCarrier(e.tracking_number)):r()(".trackingCol").hide(),e.tracking_number&&(u='<tr><td class="tab_cel1 text-right"> '.concat(d,"</td></tr>")),0==e.products[0].is_shippable)var p='<tr class="virtualProduct"><td class="tab_cel1 text-right" data-pid="'+e.products[0].product_id+'"><div class="spinner-border text-secondary" role="status"><span class="visually-hidden">Loading...</span></div></td></tr>';else p="";r()("#orderModal h5").text("Order #".concat(e.order_id)),r()("#orderModal .modal-body #shippingInfo").html(o),r()("#orderModal .modal-body #billingInfo").html(a),r()("#orderModal .modal-body #orderContents").html(s),r()("#orderModal .modal-body #billingModel").html(u),r()("#orderModal .modal-body #billingModel").append(p),r()("#newRecurringDate").datepicker({autoclose:!0,format:"mm/dd/yyyy",todayHighlight:!0}),e.tracking_number&&(r()("#orderModal .modal-body #shippingInfo input, #orderModal .modal-body #shippingInfo select").attr("disabled","true"),r()("#orderModal .modal-body #billingInfo input, #orderModal .modal-body #billingInfo select").attr("disabled","true"),r()(".updateOrderDetails .btn").hide()),0==e.products[0].is_shippable&&D(e.products[0].product_id),setStickyStates("newShippingState",e.shipping_state),setStickyStates("newBillingState",e.billing_state),(0,i.resetFormState)(),r()("#orderModalOpener").click()}else(0,i.throwStickyError)("error","Order Access Violation");else(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred"),(0,i.debug)(e)}))}function I(e,t,o){switch(r()(".overlay, .processing").show(),o){case"subscription_restart":var a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/subscription_order_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e,product_id:t,status:"reset"})};break;case"subscription_stop":a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/subscription_order_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e,product_id:t,status:"stop"})};break;case"billing_model":a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/subscription_order_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e,product_id:t,billing_model_id:r()("#billingModelUpdate option:selected").val(),new_recurring_date:r()("#newRecurringDate").val()})}}r().ajax(a).done((function(t){100===parseInt(t.response_code)?(loadUserOrders(),(0,i.resetFormState)(),r()("#orderModal .btn-close").click(),k(e,"".concat(btoa((0,s.getCookieValue)("sticky_customer_email"))))):((0,i.resetFormState)(),(0,i.throwStickyError)("error","Update Error. Try again later."),(0,i.debug)(t))}))}function x(e){r()(".overlay, .processing").show();var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:'{"order_id":{"'.concat(e,'":{"shipping_first_name":"').concat(r()("#newShippingFName").val(),'", "shipping_last_name":"').concat(r()("#newShippingLName").val(),'", "shipping_address1":"').concat(r()("#newShippingAddress").val(),'", "shipping_address2":"').concat(r()("#newShippingAddress2").val(),'", "shipping_city":"').concat(r()("#newShippingCity").val(),'", "shipping_zip":"').concat(r()("#newShippingZip").val(),'", "shipping_state":"').concat(r()("#newShippingState option:selected").val(),'", "billing_first_name":"').concat(r()("#newBillingFName").val(),'", "billing_last_name":"').concat(r()("#newBillingLName").val(),'", "billing_address1":"').concat(r()("#newBillingAddress").val(),'", "billing_address2":"').concat(r()("#newBillingAddress2").val(),'", "billing_city":"').concat(r()("#newBillingCity").val(),'", "billing_zip":"').concat(r()("#newBillingZip").val(),'", "billing_state":"').concat(r()("#newBillingState option:selected").val(),'"}}}')};r().ajax(t).done((function(t){100===parseInt(t.response_code)?(loadUserOrders(),(0,i.resetFormState)(),r()("#orderModal .btn-close").click(),k(e,"".concat(btoa((0,s.getCookieValue)("sticky_customer_email"))))):((0,i.resetFormState)(),r()("#orderModal .btn-close").click(),k(e,"".concat(btoa((0,s.getCookieValue)("sticky_customer_email")))),(0,i.debug)(t))}))}var E=[],N=[];function O(){r()("tr.ty-order-entry").each((function(){var e=parseInt(r()(this).attr("data-pid")),t=r()(this).attr("id").substring(12);0==r()(this).attr("data-shippable")&&-1==E.indexOf(t)&&(E.push(t),L(e,t))}))}function B(){r()(".additionalProduct").each((function(){var e=parseInt(r()(this).attr("data-pid"));0==r()(this).attr("data-shippable")&&-1==E.indexOf(e)&&(N.push(e),L(e,e))}))}function P(){r()(".sticky-product-image").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/products/").concat(t,"/images"),method:"GET",timeout:0,headers:(0,s.getConfig)().authHeaders};r().ajax(o).done((function(t){"SUCCESS"==t.status&&t.data&&e.attr("src",t.data[0].path)}))}))}function D(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/products/").concat(e),method:"GET",timeout:0,headers:(0,s.getConfig)().authHeaders};r().ajax(t).done((function(t){if("SUCCESS"==t.status&&t.data&&t.data.custom_fields[0]){var o="";if(r().each(t.data.custom_fields,(function(e,t){29==t.id&&(o=t.values[0].value)})),o){var a=o;r()("td[data-pid="+e+"]").html('<a href="'+a+'" target="_blank">Click here to download</a>')}else r()("tr.virtualProduct").remove()}}))}function L(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/products/").concat(e),method:"GET",timeout:0,headers:(0,s.getConfig)().authHeaders};r().ajax(o).done((function(o){if("SUCCESS"==o.status&&o.data&&o.data.custom_fields[0]){var a="";if(r().each(o.data.custom_fields,(function(e,t){29==t.id&&(a=t.values[0].value)})),a){var s=a;t==e?(r()(".additionalProduct[data-pid="+e+"] a").attr("href",s),r()(".additionalProduct[data-pid="+e+"] a").html("Click to download")):r()("tr.order-entry-"+t+" td.orderDetails").append('<a href="'+s+'" target="_blank" class="btn btn-success w-100" style="margin-top:10px;"><span class="desktop">Download</span><span class="mobile"><i class="bi bi-save-fill"></i></span></a>')}else t==e&&r()(".additionalProduct[data-pid="+e+"] a").hide()}}))}function F(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:t})};r().ajax(o).done((function(t){100===parseInt(t.response_code)?(e=r().trim(e),btoa(t.email_address)==btoa(e)?T(t.customer_id,t.email_address):((0,i.resetFormState)(),(0,i.throwStickyError)("error","Customer Not Found"))):((0,i.resetFormState)(),(0,i.throwStickyError)("error","Customer Not Found"))}))}function T(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_create"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({customer_id:e,event_id:4,email:t})};r().ajax(o).done((function(e){switch(parseInt(e.response_code)){case 100:(0,i.resetFormState)(),(0,i.throwStickyError)("info","Your account's credentials were sent you by email.<br/>Now you can Log into the system.","./#login"),showSection("login");break;case 4014:(0,i.resetFormState)(),(0,i.throwStickyError)("error",'You already claimed your membership.<br/>Log into your account or use "Forgot Password" to recover your credentials.');break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("info","Customer Not Found")}}))}function M(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_forgot_password"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({event_id:2,email:e})};r().ajax(t).done((function(e){switch(parseInt(e.response_code)){case 100:(0,i.resetFormState)(),(0,i.throwStickyError)("info","Your account's credentials were sent you by email. Follow the instructions."),r()("#respass")[0].reset();break;case 4003:(0,i.resetFormState)(),(0,i.throwStickyError)("error",'Email was not found.<br/>Use correct email address or click "Claim Account" first.');break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","UNKNOWN ERROR"),(0,i.debug)(e)}}))}function V(e,t,o){var a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_reset_password"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({member_temp_password:t,member_new_password:o,email:e})};r().ajax(a).done((function(e){switch(parseInt(e.response_code)){case 100:(0,i.resetFormState)(),(0,i.throwStickyError)("info","Password was updated.<br/>Now you can Log into your account."),r()("#setpass")[0].reset();break;case 910:(0,i.resetFormState)(),(0,i.throwStickyError)("error","Your password must be at least <b>8</b> characters long."),(0,i.debug)(e);break;case 4008:(0,i.resetFormState)(),(0,i.throwStickyError)("error","Wrong temporary password."),(0,i.debug)(e);break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","UNKNOWN ERROR"),(0,i.debug)(e)}}))}function R(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_login"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({member_password:t,email:e})};r().ajax(o).done((function(e){switch(parseInt(e.response_code)){case 100:(0,i.resetFormState)(),document.cookie="sticky_member_token=".concat(e.data.member_token,";path=/;expires=").concat(e.data.token_expires_at),document.cookie="sticky_customer_email=".concat(e.data.email,";path=/;expires=").concat(e.data.token_expires_at),document.cookie="sticky_customer_id=".concat(e.data.customer_id,";path=/;expires=").concat(e.data.token_expires_at),sessionStorage.setItem("sticky_member_token",e.data.member_token),sessionStorage.setItem("sticky_customer_id",e.data.customer_id),sessionStorage.setItem("sticky_customer_email",e.data.email),window.location.href="member.html",r()("#logform")[0].reset();break;case 910:case 4008:case 4003:(0,i.resetFormState)(),(0,i.throwStickyError)("error","Wrong login/password."),(0,i.debug)(e);break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.response_message),(0,i.debug)(e)}}))}function U(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_logout"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({token:e})};r().ajax(t).done((function(e){parseInt(e.response_code)})),document.cookie="sticky_member_token=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie="sticky_customer_email=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie="sticky_customer_id=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",(0,s.deleteSessionStorage)("sticky_member_token"),(0,s.deleteSessionStorage)("sticky_customer_id"),(0,s.deleteSessionStorage)("sticky_customer_email"),window.location.href="./"}r()("#contactModal").on("hidden.bs.modal",(function(){r()("#sForm #sFormSuccess").remove(),r()("#sFormContainer").slideDown()}));var q=0,W=function(){if(1==++q){r()("#sForm").append('<div id="sFormOverlay"><div id="sFormProcessor"><div><img src="data:image/gif;base64,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" alt="" /></div><p>Processing</p></div></div>'),console.log(q);var e={url:(0,s.getConfig)().contactFormURL,method:"POST",contentType:"application/json",data:JSON.stringify({sFormAutoFillProtection:r()("#sFormAutoFillProtection").val(),sFormOfferPage:document.location.pathname.replace(/^[/]?/,"").split("/")[0],sFormName:r()("#sFormName").val(),sFormEmail:r()("#sFormEmail").val(),sFormPhone:r()("#sFormPhone").val(),sFormSubject:r()("#sFormSubject").val(),sFormComments:r()("#sFormComments").val(),sFormAgentInfo:window.navigator.userAgent})};r().ajax(e).done((function(e){(0,i.debug)(e),e.success&&setTimeout((function(){r()('#sForm button[type="submit"]').show(),r()("#sForm #sFormOverlay").remove(),r()("#sForm")[0].reset(),r()("#sFormContainer").slideUp("slow",(function(){r()("#sForm").append('<div id="sFormSuccess" class="alert alert-success">Message was sent. We will contact you shortly.</div>')}))}),1e3)})).fail((function(e,t,o){console.log("Mailer Error: ",t,o),r()("#sForm #sFormOverlay").remove(),r()('#sForm button[type="submit"]').show()}))}};function j(){var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/landers/clicks/import?pageType=presellPage&ipAddress=")+(0,i.getIP)()+"&campaignId="+(0,s.getConfig)().products[0].campaignID_konnektive+"&requestUri="+encodeURIComponent(window.location.href),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(e).done((function(e){"SUCCESS"==e.result?(sessionStorage.setItem("konnektiveSessionID",e.message.sessionId),(0,i.debug)("Konnektive session ID: "+e.message.sessionId)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}function H(){var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/landers/clicks/import?&pageType=leadPage&ipAddress=")+(0,i.getIP)()+"&campaignId="+(0,s.getConfig)().products[0].campaignID_konnektive+"&requestUri="+encodeURIComponent(window.location.href),method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(e).done((function(e){"SUCCESS"==e.result?(sessionStorage.setItem("konnektiveAffVals",e.message.affVals),e.message.affVals&&(0,i.debug)("Konnektive Affiliate Variables:"+e.message.affVals)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}function Y(e,t){var o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/leads/import?ipAddress=")+(0,i.getIP)()+"&campaignId="+(0,s.getConfig)().products[0].campaignID_konnektive+"&address1="+encodeURIComponent(e.address1)+"&address2="+encodeURIComponent(e.address2)+"&city="+e.city+"&country="+e.country+"&emailAddress="+e.emailAddress+"&firstName="+e.firstName+"&lastName="+e.lastName+"&phoneNumber="+e.phoneNumber+"&postalCode="+e.postalCode+"&custom1="+e.custom1+"&custom2="+e.custom2+"&custom3="+e.custom3+"&custom4="+e.custom4+"&custom5="+parseInt(e.custom5)+"&custom_sessionID="+e.custom_sessionID+"&custom_customer_age="+e.custom_customer_age+"&custom_customer_gender="+e.custom_customer_gender+"&custom_issue_type="+e.custom_issue_type+"&custom_issue_value="+e.custom_issue_value+"&custom_lpURL="+e.custom_lpURL+"&custom_billing_model="+e.custom_billing_model+"&custom_product_selection="+e.custom_product_selection+"&billShipSame=Y&state="+e.state,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(o).done((function(e){"SUCCESS"==e.result?(sessionStorage.setItem("konnektiveLeadData",JSON.stringify(e.message)),(0,i.debug)("Konnektive Lead Data: "+e.message),(0,i.debug)("Checkout type: "+t),"generic"==t&&document.shipping_form.submit(),"onepage"==t&&G(),"sapphire"==t&&oe()):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}function J(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"generic",t="",o="",a=0,i="";r()("#cIssueType").length&&(t=r()("#cIssueType").val()),r()("#cIssueValue").length&&(o=r()("#cIssueValue").val()),r()("#cAge").length&&(a=r()("#cAge").val()),r()("#cGender").length&&(i=r()("#cGender").val());var n={address1:r()("#cShipAddress1").val(),address2:r()("#cShipAddress2").val(),city:r()("#cShipCity").val(),country:r()("#cShipCountry").val(),emailAddress:r()("#cEmail").val(),firstName:r()("#cShipFName").val(),lastName:r()("#cShipLName").val(),phoneNumber:r()("#cPhone2").val(),postalCode:r()("#cShipZip").val(),state:r()("#cShipState").val(),custom_sessionID:getLocalStorage("session_id"),custom_customer_age:a,custom_customer_gender:i,custom_issue_type:t,custom_issue_value:o,custom_lpURL:(0,s.getSessionStorage)("lp_url"),custom_billing_model:r()("#cBillPurchaseType").val(),custom_product_selection:r()("#cBillProductIndex").val(),custom1:t,custom2:o,custom3:a,custom4:i,custom5:r()("#cBillProductIndex").val()};Y(n,e)}function z(){var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/landers/clicks/import?pageType=checkoutPage&ipAddress=")+(0,i.getIP)()+"&campaignId="+(0,s.getConfig)().products[0].campaignID_konnektive+"&fraudPixel=1&requestUri="+encodeURIComponent(window.location.href),method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(e).done((function(e){"SUCCESS"==e.result?(r()("body").append(e.message.pixel),(0,i.debug)(e.message.pixel),sessionStorage.setItem("konnektiveAffVals",e.message.affVals),e.message.affVals&&(0,i.debug)("Konnektive Affiliate Variables:"+e.message.affVals)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}function G(){var e=[],t=r().parseJSON(sessionStorage.getItem("konnektiveLeadData"));if(t){e=t;var o=r()("#cBillProductIndex").val(),a=r()("#cBillPurchaseType").val(),n=(0,i.stickyGetCountryEnv)("cShipCountry");sessionStorage.setItem("sticky_country",n),sessionStorage.setItem("sticky_selectedIndex",o),sessionStorage.setItem("sticky_purchaseType",a),(0,s.getConfig)().international[0][n]?(0,s.getConfig)().international[0][n][0].shipping:(0,s.getConfig)().international[0].all[0].shipping;var c="Y"===r()("#billEqualShip").val()?"YES":"NO";"on"===r()("#billEqualShip").val()&&(c=r()("#billEqualShip").prop("checked")?"Y":"N"),r()("#billEqualShip").prop("checked")&&(c="Y");var l=(0,s.getConfig)().products[o].pid_konnektive;"subscribe"==a&&(l=(0,s.getConfig)().products[o].pid_konnektive_ss),(0,s.getConfig)().products[o].shippingID&&(0,s.getConfig)().products[o].shippingID,(0,i.clearPhone)(r()("#cPhone2").val());var d="",u="",p=0,g="";r()("#cIssueType").length&&(d=r()("#cIssueType").val()),r()("#cIssueValue").length&&(u=r()("#cIssueValue").val()),r()("#cAge").length&&(p=r()("#cAge").val()),r()("#cGender").length&&(g=r()("#cGender").val()),(0,s.setSessionStorage)("customer_age",p),(0,s.setSessionStorage)("customer_gender",g),(0,s.setSessionStorage)("customer_issue_type",d),(0,s.setSessionStorage)("customer_issue_value",u);var m=(0,s.getSessionStorage)("customer_age"),h=(0,s.getSessionStorage)("customer_gender"),f=(0,s.getSessionStorage)("customer_issue_type"),b=(0,s.getSessionStorage)("customer_issue_value"),w=""===r()("#cBillPromoCode").val()?"":r()("#cBillPromoCode").val(),y={address1:encodeURIComponent(r()("#cBillAddress1").val()),"&address2":encodeURIComponent(r()("#cBillAddress2").val()),"&billShipSame":c,"&city":r()("#cBillCity").val(),"&state":r()("#cBillState").val(),"&country":r()("#cBillCountry").val(),"&customerId":e.customerId,"&orderId":e.orderId,"&emailAddress":e.emailAddress,"&firstName":r()("#cBillFName").val(),"&ipAddress":(0,i.getIP)(),"&lastName":r()("#cBillLName").val(),"&paySource":"CREDITCARD","&phoneNumber":e.phoneNumber,"&postalCode":r()("#cBillZip").val(),"&shipAddress1":encodeURIComponent(r()("#cShipAddress1").val()),"&shipAddress2":encodeURIComponent(r()("#cShipAddress2").val()),"&shipCity":r()("#cShipCity").val(),"&shipCountry":r()("#cShipCountry").val(),"&shipFirstName":r()("#cShipFName").val(),"&shipLastName":r()("#cShipLName").val(),"&shipPostalCode":r()("#cShipZip").val(),"&shipState":r()("#cShipState").val(),"&campaignId":(0,s.getConfig)().products[o].campaignID_konnektive,"&cardNumber":r()("#ccNum").val(),"&cardMonth":r()("#ccMonth").val(),"&cardSecurityCode":r()("#ccCode").val(),"&cardYear":r()("#ccYear").val(),"&product1_id":l,"&product1_qty":1,"&custom_sessionID":getLocalStorage("session_id"),"&custom_customer_age":m,"&custom_customer_gender":h,"&custom_issue_type":f,"&custom_issue_value":b,"&custom_lpURL":(0,s.getSessionStorage)("lp_url"),"&custom_billing_model":r()("#cBillPurchaseType").val(),"&custom_product_selection":o,"&custom1":f,"&custom2":b,"&custom3":m,"&custom4":h,"&custom5":o},v=(0,s.getConfig)().konnektiveAPIURL+"/order/import?";r().each(y,(function(e,t){v+=e+"="+t})),w&&(v+="&couponCode="+w),0!==r()("#cBillGift").length&&(v+="&product2_id="+(0,s.getConfig)().gifts[0].pid_konnektive+"&product2_qty=1");var S={url:v,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(S).done((function(e){if("SUCCESS"!=e.result)(0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message);else if(sessionStorage.setItem("konnektivePurchaseData",JSON.stringify(e.message)),sessionStorage.setItem("order_id",e.message.orderId),(0,i.debug)("Konnektive PurchaseData: "+e.message),(0,s.getConfig)().enableUpsells){var t="checkout/bonus1.html?orderID="+e.message.orderId;r()('input[name="urlparams"]').val()&&(t+="&"+r()('input[name="urlparams"]').val()),r()(location).prop("href",t)}else r()(location).prop("href","checkout/thankyou.html?"+r()('input[name="urlparams"]').val())}))}else J("onepage")}function Z(){var e=r().parseJSON(sessionStorage.getItem("konnektivePurchaseData")),t=((0,s.getConfig)().upsellIndex,{url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/upsale/import?productId=")+(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].pid_konnektive+"&orderId="+e.orderId,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}});if((0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].voidMain){var o=sessionStorage.getItem("sticky_selectedIndex"),a=(0,s.getConfig)().products[o].pid_konnektive;"subscribe"==sessionStorage.getItem("sticky_purchaseType")&&(a=(0,s.getConfig)().products[o].pid_konnektive_ss),(0,s.getConfig)().products[o].isTrial&&(t.url+="&replaceProductId="+a)}r().ajax(t).done((function(t){if("SUCCESS"!=t.result)(0,i.debug)(t),(0,i.resetFormState)(),(0,i.skipUpsell)();else if((0,i.debug)(t.message),(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].voidMain){(0,i.debug)("Retail upsell taken. Replacing the Trial one.");var o=sessionStorage.getItem("sticky_selectedIndex");if((0,s.getConfig)().products[o].pid_konnektive,"subscribe"==sessionStorage.getItem("sticky_purchaseType")&&(0,s.getConfig)().products[o].pid_konnektive_ss,(0,s.getConfig)().products[o].isTrial){var a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/transactions/query?orderId=")+e.orderId,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(a).done((function(e){if("SUCCESS"==e.result){var t=e.message.data[0].transactionId;(0,i.debug)("TxnID to be voided: "+t);var o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/transactions/refund?transactionId=")+t+"&fullRefund=true&cancelPurchase=true&cancelReason=Retail upsell taken",method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(o).done((function(e){"SUCCESS"==e.result?((0,i.debug)("Main product TXN voided successfully. Moving forward."),(0,i.skipUpsell)()):((0,i.debug)(e.message),(0,i.resetFormState)(),(0,i.throwStickyError)("error","Error canceling trial product. Please call us at "+(0,s.getConfig)().servicePhone+" so we can assist you in placing your order."))}))}else(0,i.debug)(e.message),(0,i.resetFormState)(),(0,i.throwStickyError)("error","Can't get current order info. Please call us at "+(0,s.getConfig)().servicePhone+" so we can assist you in placing your order.")}))}else(0,i.skipUpsell)()}else(0,i.skipUpsell)()}))}function Q(e){var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?orderId=")+e,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(t).done((function(e){return"SUCCESS"==e.result?e.message.data:((0,i.debug)(e),void(0,i.throwStickyError)("error",e.message))}))}function K(){if(isIndex()&&sessionStorage.removeItem("stickyImagesList"),e=(0,s.getSessionStorage)("stickyImagesList"))e=JSON.parse(e);else{var e=[];r().each((0,s.getConfig)().products,(function(t,o){e.push([{pid:o.pid_konnektive,url:""}]),e.push([{pid:o.pid_konnektive_ss,url:""}])})),r().each((0,s.getConfig)().upsells,(function(t,o){e.push([{pid:o.pid_konnektive,url:""}])})),r().each((0,s.getConfig)().gifts,(function(t,o){e.push([{pid:o.pid_konnektive,url:""}])})),e.push([{pid:(0,s.getConfig)().shipProtection[0].pid_konnektive,url:""}]),(0,s.setSessionStorage)("stickyImagesList",JSON.stringify(e))}var t="",o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/campaign/query?campaignId=")+(0,s.getConfig)().products[0].campaignID_konnektive,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(o).done((function(o){"SUCCESS"==o.result&&(t=o.message.data[(0,s.getConfig)().products[0].campaignID_konnektive].products,r().each(e,(function(o,a){a[0].url||r().each(t,(function(t,r){r.campaignProductId==a[0].pid&&r.imageUrl&&(e[o][0].url=r.imageUrl,(0,s.setSessionStorage)("stickyImagesList",JSON.stringify(e)))}))})))}))}function X(){if(sessionStorage.getItem("konnektivePurchaseData")){var e=r().parseJSON(sessionStorage.getItem("konnektivePurchaseData")),t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/confirm?orderId=")+e.orderId,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(t).done((function(e){"SUCCESS"==e.result?(0,i.debug)("Order finalized"):((0,i.debug)(e),(0,i.throwStickyError)("error",e.message))}))}else handleFinishedOrderError()}function $(){X();var e=r().parseJSON(sessionStorage.getItem("konnektivePurchaseData"));if(e){var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?orderId=")+e.orderId,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(t).done((function(t){if("SUCCESS"==t.result){var o="",a="",n="",l="",d=0,u=t.message.data[0];(0,i.debug)(u),r().each(t.message.data[0].items,(function(t,r){if(r.purchaseCycle){var s=new Date(r.nextBillDate).toString("MMM d, yyyy");"<br/><small>Next Shipment: ".concat(s,"</small>")}"VOID"==r.txnType?n="order-voided":(n="",d+=parseFloat(r.shipping));var i=parseFloat(r.price)+parseFloat(r.shipping);o+='<tr class="ty-order-entry '.concat(n," order-entry-").concat(t,'">'),o+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t,'" id="sticky-product-').concat(t,'" />').concat(r.name.replace(/ *\([^)]*\) */g,""),"</td>"),o+="<td>".concat(u.orderId,"</td>"),o+="<td>".concat(e.items[0].descriptor,"</td>"),o+="<td>".concat(r.qty,"</td>"),o+="<td>$".concat(r.price,"</td>"),o+="<td>$".concat(r.shipping,"</td>"),o+="<td>$"+i.toFixed(2)+"</td>",o+="</tr>",l+='<tr class="ty-order-entry '.concat(n," order-entry-").concat(t,'">'),l+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t,'" id="sticky-product-').concat(t,'" />').concat(r.name.replace(/ *\([^)]*\) */g,""),"</td>"),l+='<td align="right">$'.concat(r.price,"</td>"),l+='<td align="right">'.concat(r.qty,"</td>"),l+='<td align="right">$'+i.toFixed(2)+"</td>",l+="</tr>",a+='<tr class="ty-order-entry '.concat(n," mobile-order-entry-").concat(t,'">'),a+="<td><strong>".concat(r.name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t,'" id="sticky-product-').concat(t,'" /> Order : ').concat(e.orderId,"<br/>Billed as: ").concat(e.items[0].descriptor,"<br/>Qty: ").concat(r.qty,"<br/>Shipping: $").concat(r.shipping,"</div>")+"</td>",a+="<td>$".concat(r.price,"</td>"),a+="</tr>"})),parseFloat(u.totalDiscount)&&(o+='<tr class="table-light"><td colspan="6"><strong>Discount:</strong></td><td><strong>$'+parseFloat(u.totalDiscount).toFixed(2)+"</strong></td></tr>",a+='<tr class="table-light"><td align="right"><strong>Discount:</strong></td><td><strong>$'+parseFloat(u.totalDiscount).toFixed(2)+"</strong></td></tr>",parseFloat(u.totalDiscount)),"TESTCARD"==u.cardType&&r()("#order_summary tfoot").append('<tr class="table-danger"><td colspan="7"><strong>THIS IS THE TEST ORDER</strong></td></td></tr>'),"sapphire"==(0,s.getConfig)().instance?(r()("#order_number").text(u.orderId),r()("#order_summary tbody").html(l),r()("#order_summary .totals").html(u.price),r()("#orderDiscount").html("$"+u.totalDiscount),r()("#orderSubTotal").html("$"+u.price),r()("#orderShipping").html("$"+parseFloat(d).toFixed(2)),r()("#orderTotal").html("$"+u.price)):(r()("#order_number").text(u.orderId),r()("#order_number").parent().text(r()("#order_number").parent().text().replace("#","")),r()("#fullname").text("".concat(u.firstName," ").concat(u.lastName)),r()("#address").text(u.shipAddress1),r()("#city_state").text("".concat(u.shipCity,", ").concat(u.shipState,", ").concat(u.shipCountry)),r()("#zip").text(u.shipPostalCode),r()("#order_summary tbody").html(o),r()("#order_summary .totals").html(parseFloat(u.price)+d),r()("#order_summary_mobile tbody").html(a),r()("#order_summary_mobile .totals").html(parseFloat(u.price)+d)),(0,i.resetFormState)(),r()(".sticky-product-image").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o=JSON.parse((0,s.getSessionStorage)("stickyImagesList"));o&&r().each(o,(function(o,a){parseInt(a[0].pid)==parseInt(t)?e.attr("src",a[0].url):"sapphire"==(0,s.getConfig)().instance&&e.hide()}))}))}else(0,i.debug)(t),(0,i.throwStickyError)("error",t.message)}))}}function ee(e){try{var t=atob(e),o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?orderId=")+t,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(o).done((function(e){"SUCCESS"==e.result?((0,i.resetFormState)(),(0,i.debug)(e),"PARTIAL"==e.message.data[0].orderStatus?te(e.message.data[0]):(0,i.throwStickyError)("error","Order "+t+" already completed.","./")):((0,i.debug)(e),(0,i.throwStickyError)("error",e.message))}))}catch(t){(0,i.resetFormState)()}}function te(e){var t;r()("#cShipFName").val(e.shipFirstName),r()("#cShipLName").val(e.shipLastName),r()("#cShipAddress1").val(e.shipAddress1),r()("#cShipAddress2").val(e.shipAddress2),r()("#cShipCity").val(e.shipCity),r()("#cShipZip").val(e.shipPostalCode),(0,i.setCustomerShipState)(e.shipState),setCustomerShipCountry(e.shipCountry),r()("#cBillFName").val(e.firstName),r()("#cBillLName").val(e.lastName),r()("#cBillAddress1").val(e.address1),r()("#cBillAddress2").val(e.address2),r()("#cBillCity").val(e.city),r()("#cBillZip").val(e.postalCode),(0,i.setCustomerBillState)(e.state),setCustomerBillCountry(e.country),r()("#cPhone2").val(e.phoneNumber),r()("#cEmail").val(e.emailAddress);var o=e.custom5;parseInt(o)?(r()("#cBillProductIndex").val(o),r()(".optionSelector").length&&(r()(".optionSelector .selector[data-rel=".concat(billingModelTypeSelection,"]")).click(),r()(".packageselectors .package[data-pid=".concat(o,"]")).click()),setTimeout((function(){r()("[data-package-sku=".concat(o,"]")).click(),(0,i.debug)("Package selection restored with index :"+o)}),1e3)):(0,i.debug)("Package selection index not found");var a=(d(t={address1:e.address1,address2:e.address2,billShipSame:!1,campaignId:e.campaignId,city:e.city,country:e.country,emailAddress:e.emailAddress,firstName:e.firstName,ipAddress:e.ipAddress,lastName:e.lastName,phoneNumber:e.phoneNumber,postalCode:e.postalCode,state:e.state,shipFirstName:e.shipFirstName,shipLastName:e.shipLastName,shipAddress1:e.shipAddress1,shipAddress2:e.shipAddress2,shipCity:e.shipCity,shipState:e.shipState,shipCountry:e.shipCountry,shipPostalCode:e.shipPostalCode,orderStatus:e.orderStatus,orderType:e.orderType,customerId:e.customerId,agentUserId:e.agentUserId},"address2",e.address2),d(t,"orderId",e.clientOrderId),t);sessionStorage.setItem("konnektiveLeadData",JSON.stringify(a))}function oe(){sapphireCart.loadCart(),sapphireCart.getCart().cart;var e=[],t=r().parseJSON(sessionStorage.getItem("konnektiveLeadData"));if(t){e=t;var o=(0,i.stickyGetCountryEnv)("cShipCountry");sessionStorage.setItem("sticky_country",o),sessionStorage.setItem("sticky_selectedIndex",0),sessionStorage.setItem("sticky_purchaseType","onetime"),(0,s.getConfig)().international[0][o]?(0,s.getConfig)().international[0][o][0].shipping:(0,s.getConfig)().international[0].all[0].shipping;var a="Y"===r()("#billEqualShip").val()?"YES":"NO";"on"===r()("#billEqualShip").val()&&(a=r()("#billEqualShip").prop("checked")?"Y":"N"),r()("#billEqualShip").prop("checked")&&(a="Y"),(0,i.clearPhone)(r()("#cPhone2").val());var n="",c="",l=0,d="";r()("#cIssueType").length&&(n=r()("#cIssueType").val()),r()("#cIssueValue").length&&(c=r()("#cIssueValue").val()),r()("#cAge").length&&(l=r()("#cAge").val()),r()("#cGender").length&&(d=r()("#cGender").val()),(0,s.setSessionStorage)("customer_age",l),(0,s.setSessionStorage)("customer_gender",d),(0,s.setSessionStorage)("customer_issue_type",n),(0,s.setSessionStorage)("customer_issue_value",c);var u=(0,s.getSessionStorage)("customer_age"),p=(0,s.getSessionStorage)("customer_gender"),g=(0,s.getSessionStorage)("customer_issue_type"),m=(0,s.getSessionStorage)("customer_issue_value"),h=""===r()("#cBillPromoCode").val()?"":r()("#cBillPromoCode").val(),f={address1:encodeURIComponent(r()("#cBillAddress1").val()),"&address2":encodeURIComponent(r()("#cBillAddress2").val()),"&billShipSame":a,"&city":r()("#cBillCity").val(),"&state":r()("#cBillState").val(),"&country":r()("#cBillCountry").val(),"&customerId":e.customerId,"&orderId":e.orderId,"&emailAddress":e.emailAddress,"&firstName":r()("#cBillFName").val(),"&ipAddress":(0,i.getIP)(),"&lastName":r()("#cBillLName").val(),"&paySource":"CREDITCARD","&phoneNumber":e.phoneNumber,"&postalCode":r()("#cBillZip").val(),"&shipAddress1":encodeURIComponent(r()("#cShipAddress1").val()),"&shipAddress2":encodeURIComponent(r()("#cShipAddress2").val()),"&shipCity":r()("#cShipCity").val(),"&shipCountry":r()("#cShipCountry").val(),"&shipFirstName":r()("#cShipFName").val(),"&shipLastName":r()("#cShipLName").val(),"&shipPostalCode":r()("#cShipZip").val(),"&shipState":r()("#cShipState").val(),"&campaignId":sapphireCart.getCart().cart[0].itemCampaignID,"&cardNumber":r()("#ccNum").val(),"&cardMonth":r()("#ccMonth").val(),"&cardSecurityCode":r()("#ccCode").val(),"&cardYear":r()("#ccYear").val(),"&custom_sessionID":getLocalStorage("session_id"),"&custom_customer_age":u,"&custom_customer_gender":p,"&custom_issue_type":g,"&custom_issue_value":m,"&custom_lpURL":(0,s.getSessionStorage)("lp_url"),"&custom_billing_model":r()("#cBillPurchaseType").val(),"&custom_product_selection":0,"&custom1":g,"&custom2":m,"&custom3":u,"&custom4":p,"&custom5":0},b=(0,s.getConfig)().konnektiveAPIURL+"/order/import?";r().each(f,(function(e,t){b+=e+"="+t})),h&&(b+="&couponCode="+h);for(var w=0;w<sapphireCart.getCart().cart.length;w++)b+="&product"+(w+1)+"_id="+sapphireCart.getCart().cart[w].itemID+"&product"+(w+1)+"_qty=1";var y={url:b,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(y).done((function(e){"SUCCESS"==e.result?(sessionStorage.setItem("konnektivePurchaseData",JSON.stringify(e.message)),sessionStorage.setItem("order_id",e.message.orderId),(0,i.debug)("Konnektive PurchaseData: "+e.message),r()(location).prop("href","page-thank-you.php?orderID="+e.message.orderId)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}else(0,i.debug)("No lead data found. Creating the custom one."),J("sapphire")}function ae(e,t){var o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?")+"&orderId="+t+"&emailAddress="+e,method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(o).done((function(t){"SUCCESS"==t.result?re(e):((0,i.debug)(t),(0,i.throwStickyError)("error",t.message))}))}function re(e){var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/members/reset?")+"&clubId="+(0,s.getConfig)().clubID+"&clubUsername="+e,method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(t).done((function(e){"SUCCESS"==e.result?((0,i.resetFormState)(),(0,i.throwStickyError)("info",e.message)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.result))}))}function se(e,t){var o=new Date;o.setTime(o.getTime()+864e5);var a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/members/login?")+"&clubId="+(0,s.getConfig)().clubID+"&clubUsername="+e+"&clubPassword="+t,method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(a).done((function(t){"SUCCESS"==t.result?((0,i.resetFormState)(),"ACTIVE"==t.message.status?(document.cookie="konnektive_customer_email=".concat(e,";path=/;expires=").concat(o),document.cookie="konnektive_customer_id=".concat(t.message.memberId,";path=/;expires=").concat(o),document.cookie="sticky_member_token=".concat(t.message.memberId,";path=/;expires=").concat(o),sessionStorage.setItem("konnektive_customer_id",t.message.memberId),sessionStorage.setItem("konnektive_customer_email",e),sessionStorage.setItem("sticky_member_token",t.message.memberId),window.location.href="member.html",r()("#logform")[0].reset()):(0,i.throwStickyError)("error","Membership is not active.")):((0,i.debug)(t),(0,i.resetFormState)(),(0,i.throwStickyError)("error",t.message))}))}function ie(){r()(".overlay, .processing").show(),r()("#order_summary tbody").html("");var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?")+"&emailAddress="+sessionStorage.getItem("konnektive_customer_email")+"&resultsPerPage=100&orderStatus=COMPLETE&startDate="+new Date.parse("today").add(-1).year().toString("MM/dd/yyyy")+"&endDate="+new Date.parse("today").add(1).day().toString("MM/dd/yyyy"),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(e).done((function(e){if("SUCCESS"==e.result){(0,i.debug)(e);var t="";r().each(e.message.data,(function(e,o){var a="One Time Purchase",s="",i="",n="table-light",l=o.dateCreated;r().each(o.items,(function(e,r){var d='<a href="#" onclick="konnektive_user_order_details(\''.concat(o.orderId,"', '").concat(btoa(o.emailAddress),'\'); return false;" class="btn btn-secondary w-100"><span class="desktop">Details</span><span class="mobile"><i class="bi bi-info-circle-fill"></i></span></a>');if(""!=r.purchaseStatus){var u=new Date(r.nextBillDate).toString("MMM d, yyyy");a="Subscribe & Save",a+="<br/><small>Next Shipment: ".concat(u,"</small>"),s=r.purchaseStatus,"ACTIVE"==r.purchaseStatus&&(n="table-success"),"INACTIVE"==r.purchaseStatus&&(n="table-danger")}i='<div class="mobileOnly">$'.concat(o.totalAmount,"<br/>").concat(s,"<br/>").concat(a,"</div>"),t+='<tr id="order-entry-'.concat(o.orderId,"-").concat(o.actualOrderId,'" data-pid="').concat(o.actualOrderId,'" data-shippable="" class="').concat(n," ty-order-entry order-entry-").concat(o.orderId,"-").concat(o.actualOrderId,'">'),t+="<td>".concat(o.orderId,"</td>"),t+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image oms-entry" data-pid="').concat(e,'" id="sticky-product-').concat(e,'" />').concat(r.name).concat(i,"</td>"),t+='<td class="hideOnMobile">'.concat(l,"</td>"),t+='<td class="hideOnMobile">'.concat(a,"</td>"),t+='<td class="hideOnMobile">$'.concat(o.totalAmount,"</td>"),t+='<td class="hideOnMobile">'.concat(s,"</td>"),t+='<td class="align-top orderDetails" align="center">'.concat(d," </td>"),t+="</tr>"}))})),r()("#order_summary tbody").append(t),r()("#order_summary tbody tr").each((function(){})),r().bootstrapSortable({sign:"reversed"}),de(),(0,i.resetFormState)()}else(0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message)}))}function ne(e){r()(".overlay, .processing").show();var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?orderId=")+e,method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(t).done((function(e){if("SUCCESS"==e.result){(0,i.debug)(e),e.message.data[0].address2&&"undefined"!=e.message.data[0].address2||(e.message.data[0].address2=""),e.message.data[0].shipAddress2&&"undefined"!=e.message.data[0].shipAddress2||(e.message.data[0].shipAddress2=""),r()(".updateOrderDetails .btn").show();var t='<table class="table table-bordered"><thead><tr><th scope="col" colspan="2">Delivery Information</th></tr></thead><tbody><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Name:</strong></td><td id="fullname" class="tab_cel2"><input type="text" id="newShippingFName" placeholder="First Name" value="'.concat(e.message.data[0].shipFirstName,'" class="form-control half" required><input type="text" id="newShippingLName" placeholder="Last Name" value="').concat(e.message.data[0].shipLastName,'" class="form-control half" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address" class="tab_cel2"><input type="text" id="newShippingAddress" placeholder="Address" value="').concat(e.message.data[0].shipAddress1,'" class="form-control" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 2:</strong></td><td id="address2" class="tab_cel2"><input type="text" id="newShippingAddress2" placeholder="Address" value="').concat(e.message.data[0].shipAddress2,'" class="form-control" ></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>City/State:</strong></td><td id="city_state" class="tab_cel2"><input type="text" id="newShippingCity" placeholder="City" value="').concat(e.message.data[0].shipCity,'" class="form-control half" required><select id="newShippingState" class="form-select half"></select></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Zip:</strong></td><td id="zip" class="tab_cel2"><input type="text" placeholder="Zip" id="newShippingZip" value="').concat(e.message.data[0].shipPostalCode,'" class="form-control" required></td></tr></tbody></table>'),o='<table class="table table-bordered"><thead><tr><th scope="col" colspan="2">Billing Information</th></tr></thead><tbody><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Name:</strong></td><td id="fullname" class="tab_cel2"><input type="text" id="newBillingFName" placeholder="First Name" value="'.concat(e.message.data[0].firstName,'" class="form-control half" required><input type="text" id="newBillingLName" placeholder="Last Name" value="').concat(e.message.data[0].lastName,'" class="form-control half" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address" class="tab_cel2"><input type="text" id="newBillingAddress" placeholder="Address" value="').concat(e.message.data[0].address1,'" class="form-control" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 2:</strong></td><td id="address2" class="tab_cel2"><input type="text" id="newBillingAddress2" placeholder="Address" value="').concat(e.message.data[0].address2,'" class="form-control" ></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>City/State:</strong></td><td id="city_state" class="tab_cel2"><input type="text" id="newBillingCity" placeholder="City" value="').concat(e.message.data[0].city,'" class="form-control half" required><select id="newBillingState" class="form-select half"></select></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Zip:</strong></td><td id="zip" class="tab_cel2"><input type="text" placeholder="Zip" id="newBillingZip" value="').concat(e.message.data[0].postalCode,'" class="form-control" required></td></tr></tbody></table>'),a="",s="";globalsOrderId=e.message.data[0].clientOrderId,r().each(e.message.data[0].items,(function(t,o){if(0!=t){a+='<tr><td class="tab_cel1 text-right orderContents freeGift"><i class="bi bi-gift"></i> '.concat(o.name,"</td><td>$").concat(o.price,"</td></tr>");var i='<select id="billingModelUpdate" name="billingModelUpdate" class="form-select" aria-label="Default select example"><option value="" disabled selected> - Change billing cycle - </option>'.concat(getKNKBillingModels(),"</select>");if(""!=o.purchaseStatus)var n=new Date(o.nextBillDate).toString("MMM d, yyyy"),c=new Date(o.nextBillDate).toString("MM/dd/yyyy"),l="<strong>Subscribe & Save</strong><br/>Next shipment date: ".concat(n);else l="One Time Purchase";s='<tr><td colspan="2" class="tab_cel1 text-right"> '.concat(l,"</td></tr>"),""!=o.purchaseStatus&&(s+='<tr><td colspan="2" class="tab_cel1 text-right">',"ACTIVE"==o.purchaseStatus&&(s+='<a class="btn btn-danger" href="#" onclick="konnektive_update_order_subscription(\''.concat(globalsOrderId,"', '").concat(o.purchaseId,"', 'subscription_stop'); return false;\"><i class=\"bi bi-pause-fill\"></i> Pause Subscription (for 1 month)</a>")),"INACTIVE"==o.purchaseStatus&&(s+=' <a class="btn btn-success" href="#" onclick="konnektive_update_order_subscription(\''.concat(globalsOrderId,"', '").concat(o.purchaseId,"', 'subscription_restart'); return false;\"><i class=\"bi bi-play-fill\"></i> Resume Subscription</a>")),s+="</td></tr>",s+='<tr><td colspan="2" class="tab_cel2 bilcycle">'.concat(i,' <label>New Next Recurring Date:</label> <input type="text" value="').concat(c,'" class="form-control" name="newRecurringDate" id="newRecurringDate" data-format="MM/dd/yyyy" autocomplete="off" /> <a href="#" onclick="konnektive_update_order_subscription(\'').concat(globalsOrderId,"', '").concat(o.purchaseId,"', 'billing_model'); return false;\" class=\"btn btn-primary\">Save</a></td></tr>")),a+=s,e.message.data[0].tracking_number?(r()("#trackNumber").html("<tr><td>".concat(e.tracking_number,' <a href="#" target="_blank" id="shipmentTrackingLink">Track Shipment</a></td></tr>')),r()(".trackingCol").show(),detectCarrier(e.tracking_number)):r()(".trackingCol").hide()}})),r()("#orderModal h5").text("Order #".concat(globalsOrderId)),r()("#orderModal .modal-body #shippingInfo").html(t),r()("#orderModal .modal-body #billingInfo").html(o),r()("#orderModal .modal-body #orderContents").html(a),r()("#orderModal .modal-body #billingModel").append(""),r()("#orderModal .modal-body .billingModelCol").hide(),r()("#newRecurringDate").datepicker({autoclose:!0,format:"mm/dd/yyyy",todayHighlight:!0}),e.tracking_number&&(r()("#orderModal .modal-body #shippingInfo input, #orderModal .modal-body #shippingInfo select").attr("disabled","true"),r()("#orderModal .modal-body #billingInfo input, #orderModal .modal-body #billingInfo select").attr("disabled","true"),r()(".updateOrderDetails .btn").hide()),setStickyStates("newShippingState",e.message.data[0].shipState),setStickyStates("newBillingState",e.message.data[0].state),(0,i.resetFormState)(),r()("#orderModalOpener").click()}else(0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message)}))}function ce(e){r()(".overlay, .processing").show();var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/update?orderId=")+e+"&shipFirstName="+r()("#newShippingFName").val()+"&shipLastName="+r()("#newShippingLName").val()+"&shipAddress1="+r()("#newShippingAddress").val()+"&shipAddress2="+r()("#newShippingAddress2").val()+"&shipCity="+r()("#newShippingCity").val()+"&shipState="+r()("#newShippingState").val()+"&shipPostCode="+r()("#newShippingZip").val()+"&firstName="+r()("#newBillingFName").val()+"&lastName="+r()("#newBillingLName").val()+"&address1="+r()("#newBillingAddress").val()+"&address2="+r()("#newBillingAddress2").val()+"&city="+r()("#newBillingCity").val()+"&state="+r()("#newBillingState").val()+"&postCode="+r()("#newBillingZip").val(),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(t).done((function(t){"SUCCESS"==t.result?(loadUserOrders(),(0,i.resetFormState)(),r()("#orderModal .btn-close").click(),ne(e,"".concat(btoa((0,s.getCookieValue)("konnektive_customer_email"))))):((0,i.resetFormState)(),(0,i.throwStickyError)("error",t.message),(0,i.debug)(t))}))}function le(e,t,o){r()(".overlay, .processing").show();var a="";"subscription_restart"===o?a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/purchase/update?purchaseId=")+t+"&reactivate=true",method:"POST",timeout:0,headers:{"X-SESSION-ID":""}}:"subscription_stop"===o?a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/purchase/pause?purchaseId=")+t+"&restartDate="+new Date.parse("today").add(32).day().toString("MM/dd/yyyy"),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}}:"billing_model"===o&&(a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/purchase/update?purchaseId=")+t+"&nextBillDate="+r()("#newRecurringDate").val()+"&billingIntervalDays="+r()("#billingModelUpdate option:selected").val(),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}}),r().ajax(a).done((function(t){"SUCCESS"==t.result?("subscription_stop"==o&&pe(),loadUserOrders(),(0,i.resetFormState)(),r()("#orderModal .btn-close").click(),ne(e,"".concat(btoa((0,s.getCookieValue)("konnektive_customer_email"))))):((0,i.resetFormState)(),(0,i.throwStickyError)("error",t.message),(0,i.debug)(t))}))}function de(){var e="",t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/campaign/query?campaignId=&resultsPerPage=50&sortBy=campaignId&sortDir=0"),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(t).done((function(t){"SUCCESS"==t.result&&r().each(t.message.data,(function(t,o){e=o.products,r().each(e,(function(e,t){r()(".sticky-product-image").each((function(){var e=r()(this),o=parseInt(r()(this).attr("data-pid"));t.campaignProductId==o&&t.imageUrl&&e.attr("src",t.imageUrl)}))}))}))}))}function ue(e){re(e)}function pe(){var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/members/reactivate?")+"&clubId="+(0,s.getConfig)().clubID+"&memberId="+sessionStorage.getItem("sticky_member_token"),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(e).done((function(e){(0,i.debug)(e)}))}function ge(){document.cookie="sticky_member_token=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie="konnektive_customer_email=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie="konnektive_customer_id=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",(0,s.deleteSessionStorage)("sticky_member_token"),(0,s.deleteSessionStorage)("konnektive_customer_id"),(0,s.deleteSessionStorage)("konnektive_customer_email"),window.location.href="./"}},61:(e,t,o)=>{"use strict";o.d(t,{ORDER_ICON_PLACEHOLDER:()=>s});var a=o(853),r='<option value="">Please Select State</option>';[{name:"ALABAMA",abbreviation:"AL"},{name:"ALASKA",abbreviation:"AK"},{name:"AMERICAN SAMOA",abbreviation:"AS"},{name:"ARIZONA",abbreviation:"AZ"},{name:"ARKANSAS",abbreviation:"AR"},{name:"CALIFORNIA",abbreviation:"CA"},{name:"COLORADO",abbreviation:"CO"},{name:"CONNECTICUT",abbreviation:"CT"},{name:"DELAWARE",abbreviation:"DE"},{name:"DISTRICT OF COLUMBIA",abbreviation:"DC"},{name:"FEDERATED STATES OF MICRONESIA",abbreviation:"FM"},{name:"FLORIDA",abbreviation:"FL"},{name:"GEORGIA",abbreviation:"GA"},{name:"GUAM",abbreviation:"GU"},{name:"HAWAII",abbreviation:"HI"},{name:"IDAHO",abbreviation:"ID"},{name:"ILLINOIS",abbreviation:"IL"},{name:"INDIANA",abbreviation:"IN"},{name:"IOWA",abbreviation:"IA"},{name:"KANSAS",abbreviation:"KS"},{name:"KENTUCKY",abbreviation:"KY"},{name:"LOUISIANA",abbreviation:"LA"},{name:"MAINE",abbreviation:"ME"},{name:"MARSHALL ISLANDS",abbreviation:"MH"},{name:"MARYLAND",abbreviation:"MD"},{name:"MASSACHUSETTS",abbreviation:"MA"},{name:"MICHIGAN",abbreviation:"MI"},{name:"MINNESOTA",abbreviation:"MN"},{name:"MISSISSIPPI",abbreviation:"MS"},{name:"MISSOURI",abbreviation:"MO"},{name:"MONTANA",abbreviation:"MT"},{name:"NEBRASKA",abbreviation:"NE"},{name:"NEVADA",abbreviation:"NV"},{name:"NEW HAMPSHIRE",abbreviation:"NH"},{name:"NEW JERSEY",abbreviation:"NJ"},{name:"NEW MEXICO",abbreviation:"NM"},{name:"NEW YORK",abbreviation:"NY"},{name:"NORTH CAROLINA",abbreviation:"NC"},{name:"NORTH DAKOTA",abbreviation:"ND"},{name:"NORTHERN MARIANA ISLANDS",abbreviation:"MP"},{name:"OHIO",abbreviation:"OH"},{name:"OKLAHOMA",abbreviation:"OK"},{name:"OREGON",abbreviation:"OR"},{name:"PALAU",abbreviation:"PW"},{name:"PENNSYLVANIA",abbreviation:"PA"},{name:"PUERTO RICO",abbreviation:"PR"},{name:"RHODE ISLAND",abbreviation:"RI"},{name:"SOUTH CAROLINA",abbreviation:"SC"},{name:"SOUTH DAKOTA",abbreviation:"SD"},{name:"TENNESSEE",abbreviation:"TN"},{name:"TEXAS",abbreviation:"TX"},{name:"UTAH",abbreviation:"UT"},{name:"VERMONT",abbreviation:"VT"},{name:"VIRGIN ISLANDS",abbreviation:"VI"},{name:"VIRGINIA",abbreviation:"VA"},{name:"WASHINGTON",abbreviation:"WA"},{name:"WEST VIRGINIA",abbreviation:"WV"},{name:"WISCONSIN",abbreviation:"WI"},{name:"WYOMING",abbreviation:"WY"}].forEach((function(e){r+='<option value="'.concat(e.abbreviation,'">').concat((0,a.lowerCaseAllWordsExceptFirstLetters)(e.name),"</option>")})),'<select class="form-control field__input field__input--select selcet-fld select-fld" id="cBillState" name="cBillState" aria-required="true" autocomplete="shipping address-level1" autocorrect="off" required><option value="" selected disabled="">Select State</option>'.concat(r,"</select>"),'<select class="form-control field__input field__input--select selcet-fld select-fld" id="cShipState" name="cShipState" aria-required="true" autocomplete="shipping address-level1" autocorrect="off" required><option value="" selected disabled="">Select State</option>'.concat(r,"</select>");var s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjU4NDVDMDkxODAxRDExRUM4Mjc4RDAyNjBCQ0U5N0Q2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjU4NDVDMDkyODAxRDExRUM4Mjc4RDAyNjBCQ0U5N0Q2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTg0NUMwOEY4MDFEMTFFQzgyNzhEMDI2MEJDRTk3RDYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTg0NUMwOTA4MDFEMTFFQzgyNzhEMDI2MEJDRTk3RDYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6bE3f0AAATZ0lEQVR42uzd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"},244:(e,t,o)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}o.d(t,{deleteSessionStorage:()=>n,getConfig:()=>c,getCookieValue:()=>r,getSessionStorage:()=>i,setSessionStorage:()=>s});var r=(o(147).version,localStorage.getItem("session_id"),function(e){var t=document.cookie.match(new RegExp("(^| )".concat(e,"=([^;]+)")));return t?t[2]:""}),s=function(e,t){var o=t;"string"!==o&&(o=JSON.stringify(o)),sessionStorage.setItem(e,o)},i=function(e){try{var t=sessionStorage.getItem(e),o=JSON.parse(t);return o&&"string"==typeof o||o&&"object"===a(o)?o:""}catch(e){return""}},n=function(e){return sessionStorage.removeItem(e)},c=function(){return function(e){try{var t=localStorage.getItem(e),o=JSON.parse(t);return o&&"string"==typeof o||o&&"object"===a(o)?o:""}catch(t){return localStorage.getItem(e)}}("@konnektive-engine")||{}}},853:(e,t,o)=>{"use strict";o.d(t,{clearPhone:()=>m,debug:()=>c,getIP:()=>g,getQueryParamValue:()=>y,lowerCaseAllWordsExceptFirstLetters:()=>p,reportInSlack:()=>u,resetDebugCounter:()=>d,resetFormState:()=>h,saveOrderNumberIntoList:()=>b,setCustomerBillState:()=>S,setCustomerShipState:()=>v,skipUpsell:()=>w,stickyGetCountryEnv:()=>A,throwStickyError:()=>f});var a=o(145),r=o.n(a),s=o(455),i=o.n(s),n=o(244),c=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var a;(0,n.getConfig)().debugMode&&(a=console).log.apply(a,["Debug on ".concat(new Date,"\n--- ")].concat(t)),(0,n.getConfig)().enableAutoLog&&l.apply(void 0,t)},l=function(){if((0,n.getSessionStorage)("envDB"))var e=(0,n.getSessionStorage)("envDB");else e=[];try{var t;(0>=arguments.length?void 0:arguments[0])&&(1>=arguments.length||!arguments[1])&&(t=e).push.apply(t,arguments),(0>=arguments.length?void 0:arguments[0])&&(1>=arguments.length?void 0:arguments[1])&&e.push((0>=arguments.length?void 0:arguments[0])+" "+(1>=arguments.length?void 0:arguments[1]))}catch(e){c("Debugger error:",e)}(0,n.setSessionStorage)("envDB",e)},d=function(){setCookieValue("stickyDebugCounter",0,{expires:-1})},u=function(e){var t={url:(0,n.getConfig)().errorDebugURL,method:"POST",contentType:"application/json",data:JSON.stringify({content:e})};r().ajax(t).done((function(e){e.success})).fail((function(){}))};function p(e){return e.replace(/\S*/g,(function(e){return e.charAt(0)+e.slice(1).toLowerCase()}))}function g(){return(0,n.getCookieValue)("ip")||"127.0.0.1"}function m(e){return e.replace(/\D/g,"")}function h(){r()(".overlay, .processing").hide(),r()("#orderButtonOff").hide(),r()("#orderButton").show()}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";h();var a=!0;"modal"===e&&(e="error",a=!1),i().fire({icon:e,html:t,allowOutsideClick:a,showCloseButton:!1}).then((function(e){console.log("error => ",e),(e.isConfirmed||"backdrop"===e.dismiss||"esc"===e.dismiss||"close"===e.dismiss)&&""!==o&&r()(location).prop("href",o)}))}function b(e){var t=(0,n.getSessionStorage)("stickyOrdersList"),o=[];0<t.length&&(o=JSON.parse(t)),o.push(e),(0,n.setSessionStorage)("stickyOrdersList",JSON.stringify(o))}function w(){(0,n.getConfig)().upsellIndex,(0,n.getConfig)().upsellIndex<(0,n.getConfig)().upsells.length-1?r()(location).prop("href","bonus".concat((0,n.getConfig)().upsellIndex+2,".html")):r()(location).prop("href","thankyou.html")}var y=function(e){var t=window.location.search;return new URLSearchParams(t).get(e)};function v(e){r()("[name='cShipState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function S(e){r()("[name='cBillState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function A(e){var t,o=r()("*[name=".concat(e,"]"));return o?("input"==o.prop("tagName").toLowerCase()&&(t=o.val()),"select"==o.prop("tagName").toLowerCase()&&(t=o.val())):t="US",t}},455:function(e){e.exports=function(){"use strict";var e={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const t=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},o=t(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),a=t(["success","warning","info","question","error"]),r="SweetAlert2:",s=e=>e.charAt(0).toUpperCase()+e.slice(1),i=e=>{console.warn(`${r} ${"object"==typeof e?e.join(" "):e}`)},n=e=>{console.error(`${r} ${e}`)},c=[],l=(e,t)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`,c.includes(o)||(c.push(o),i(o))},d=e=>"function"==typeof e?e():e,u=e=>e&&"function"==typeof e.toPromise,p=e=>u(e)?e.toPromise():Promise.resolve(e),g=e=>e&&Promise.resolve(e)===e,m=()=>document.body.querySelector(`.${o.container}`),h=e=>{const t=m();return t?t.querySelector(e):null},f=e=>h(`.${e}`),b=()=>f(o.popup),w=()=>f(o.icon),y=()=>f(o.title),v=()=>f(o["html-container"]),S=()=>f(o.image),A=()=>f(o["progress-steps"]),C=()=>f(o["validation-message"]),_=()=>h(`.${o.actions} .${o.confirm}`),k=()=>h(`.${o.actions} .${o.deny}`),I=()=>h(`.${o.loader}`),x=()=>h(`.${o.actions} .${o.cancel}`),E=()=>f(o.actions),N=()=>f(o.footer),O=()=>f(o["timer-progress-bar"]),B=()=>f(o.close),P=()=>{const e=Array.from(b().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),a=parseInt(t.getAttribute("tabindex"));return o>a?1:o<a?-1:0})),t=Array.from(b().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((e=>"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;o<e.length;o++)-1===t.indexOf(e[o])&&t.push(e[o]);return t})(e.concat(t)).filter((e=>Q(e)))},D=()=>M(document.body,o.shown)&&!M(document.body,o["toast-shown"])&&!M(document.body,o["no-backdrop"]),L=()=>b()&&M(b(),o.toast),F={previousBodyPadding:null},T=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},M=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t<o.length;t++)if(!e.classList.contains(o[t]))return!1;return!0},V=(e,t,r)=>{if(((e,t)=>{Array.from(e.classList).forEach((r=>{Object.values(o).includes(r)||Object.values(a).includes(r)||Object.values(t.showClass).includes(r)||e.classList.remove(r)}))})(e,t),t.customClass&&t.customClass[r]){if("string"!=typeof t.customClass[r]&&!t.customClass[r].forEach)return void i(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof t.customClass[r]}"`);W(e,t.customClass[r])}},R=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${o.popup} > .${o[t]}`);case"checkbox":return e.querySelector(`.${o.popup} > .${o.checkbox} input`);case"radio":return e.querySelector(`.${o.popup} > .${o.radio} input:checked`)||e.querySelector(`.${o.popup} > .${o.radio} input:first-child`);case"range":return e.querySelector(`.${o.popup} > .${o.range} input`);default:return e.querySelector(`.${o.popup} > .${o.input}`)}},U=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},q=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},W=(e,t)=>{q(e,t,!0)},j=(e,t)=>{q(e,t,!1)},H=(e,t)=>{const o=Array.from(e.children);for(let e=0;e<o.length;e++){const a=o[e];if(a instanceof HTMLElement&&M(a,t))return a}},Y=(e,t,o)=>{o===`${parseInt(o)}`&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?`${o}px`:o:e.style.removeProperty(t)},J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},z=e=>{e.style.display="none"},G=(e,t,o,a)=>{const r=e.querySelector(t);r&&(r.style[o]=a)},Z=function(e,t){t?J(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):z(e)},Q=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),K=e=>!!(e.scrollHeight>e.clientHeight),X=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),a=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||a>0},$=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=O();Q(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"}),10))},ee={},te=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,a=window.scrollY;ee.restoreFocusTimeout=setTimeout((()=>{ee.previousActiveElement instanceof HTMLElement?(ee.previousActiveElement.focus(),ee.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,a)})),oe=()=>"undefined"==typeof window||"undefined"==typeof document,ae=`\n <div aria-labelledby="${o.title}" aria-describedby="${o["html-container"]}" class="${o.popup}" tabindex="-1">\n <button type="button" class="${o.close}"></button>\n <ul class="${o["progress-steps"]}"></ul>\n <div class="${o.icon}"></div>\n <img class="${o.image}" />\n <h2 class="${o.title}" id="${o.title}"></h2>\n <div class="${o["html-container"]}" id="${o["html-container"]}"></div>\n <input class="${o.input}" />\n <input type="file" class="${o.file}" />\n <div class="${o.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${o.select}"></select>\n <div class="${o.radio}"></div>\n <label for="${o.checkbox}" class="${o.checkbox}">\n <input type="checkbox" />\n <span class="${o.label}"></span>\n </label>\n <textarea class="${o.textarea}"></textarea>\n <div class="${o["validation-message"]}" id="${o["validation-message"]}"></div>\n <div class="${o.actions}">\n <div class="${o.loader}"></div>\n <button type="button" class="${o.confirm}"></button>\n <button type="button" class="${o.deny}"></button>\n <button type="button" class="${o.cancel}"></button>\n </div>\n <div class="${o.footer}"></div>\n <div class="${o["timer-progress-bar-container"]}">\n <div class="${o["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),re=()=>{ee.currentInstance.resetValidationMessage()},se=e=>{const t=(()=>{const e=m();return!!e&&(e.remove(),j([document.documentElement,document.body],[o["no-backdrop"],o["toast-shown"],o["has-column"]]),!0)})();if(oe())return void n("SweetAlert2 requires document to initialize");const a=document.createElement("div");a.className=o.container,t&&W(a,o["no-transition"]),T(a,ae);const r="string"==typeof(s=e.target)?document.querySelector(s):s;var s;r.appendChild(a),(e=>{const t=b();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&W(m(),o.rtl)})(r),(()=>{const e=b(),t=H(e,o.input),a=H(e,o.file),r=e.querySelector(`.${o.range} input`),s=e.querySelector(`.${o.range} output`),i=H(e,o.select),n=e.querySelector(`.${o.checkbox} input`),c=H(e,o.textarea);t.oninput=re,a.onchange=re,i.onchange=re,n.onchange=re,c.oninput=re,r.oninput=()=>{re(),s.value=r.value},r.onchange=()=>{re(),s.value=r.value}})()},ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ne(e,t):e&&T(t,e)},ne=(e,t)=>{e.jquery?ce(t,e):T(t,e.toString())},ce=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},le=(()=>{if(oe())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),de=(e,t)=>{const a=E(),r=I();t.showConfirmButton||t.showDenyButton||t.showCancelButton?J(a):z(a),V(a,t,"actions"),function(e,t,a){const r=_(),s=k(),i=x();ue(r,"confirm",a),ue(s,"deny",a),ue(i,"cancel",a),function(e,t,a,r){r.buttonsStyling?(W([e,t,a],o.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,W(e,o["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,W(t,o["default-outline"])),r.cancelButtonColor&&(a.style.backgroundColor=r.cancelButtonColor,W(a,o["default-outline"]))):j([e,t,a],o.styled)}(r,s,i,a),a.reverseButtons&&(a.toast?(e.insertBefore(i,r),e.insertBefore(s,r)):(e.insertBefore(i,t),e.insertBefore(s,t),e.insertBefore(r,t)))}(a,r,t),T(r,t.loaderHtml),V(r,t,"loader")};function ue(e,t,a){Z(e,a[`show${s(t)}Button`],"inline-block"),T(e,a[`${t}ButtonText`]),e.setAttribute("aria-label",a[`${t}ButtonAriaLabel`]),e.className=o[t],V(e,a,`${t}Button`),W(e,a[`${t}ButtonClass`])}const pe=(e,t)=>{const a=m();a&&(function(e,t){"string"==typeof t?e.style.background=t:t||W([document.documentElement,document.body],o["no-backdrop"])}(a,t.backdrop),function(e,t){t in o?W(e,o[t]):(i('The "position" parameter is not valid, defaulting to "center"'),W(e,o.center))}(a,t.position),function(e,t){if(t&&"string"==typeof t){const a=`grow-${t}`;a in o&&W(e,o[a])}}(a,t.grow),V(a,t,"container"))};const ge=["input","file","range","select","radio","checkbox","textarea"],me=e=>{if(!Se[e.input])return void n(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=ye(e.input),o=Se[e.input](t,e);J(t),setTimeout((()=>{U(o)}))},he=(e,t)=>{const o=R(b(),e);if(o){(e=>{for(let t=0;t<e.attributes.length;t++){const o=e.attributes[t].name;["type","value","style"].includes(o)||e.removeAttribute(o)}})(o);for(const e in t)o.setAttribute(e,t[e])}},fe=e=>{const t=ye(e.input);"object"==typeof e.customClass&&W(t,e.customClass.input)},be=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},we=(e,t,a)=>{if(a.inputLabel){e.id=o.input;const r=document.createElement("label"),s=o["input-label"];r.setAttribute("for",e.id),r.className=s,"object"==typeof a.customClass&&W(r,a.customClass.inputLabel),r.innerText=a.inputLabel,t.insertAdjacentElement("beforebegin",r)}},ye=e=>H(b(),o[e]||o.input),ve=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:g(t)||i(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Se={};Se.text=Se.email=Se.password=Se.number=Se.tel=Se.url=(e,t)=>(ve(e,t.inputValue),we(e,e,t),be(e,t),e.type=t.input,e),Se.file=(e,t)=>(we(e,e,t),be(e,t),e),Se.range=(e,t)=>{const o=e.querySelector("input"),a=e.querySelector("output");return ve(o,t.inputValue),o.type=t.input,ve(a,t.inputValue),we(o,e,t),e},Se.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");T(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return we(e,e,t),e},Se.radio=e=>(e.textContent="",e),Se.checkbox=(e,t)=>{const a=R(b(),"checkbox");a.value="1",a.id=o.checkbox,a.checked=Boolean(t.inputValue);const r=e.querySelector("span");return T(r,t.inputPlaceholder),a},Se.textarea=(e,t)=>{ve(e,t.inputValue),be(e,t),we(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(b()).width);new MutationObserver((()=>{const o=e.offsetWidth+(a=e,parseInt(window.getComputedStyle(a).marginLeft)+parseInt(window.getComputedStyle(a).marginRight));var a;b().style.width=o>t?`${o}px`:null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ae=(t,a)=>{const r=v();V(r,a,"htmlContainer"),a.html?(ie(a.html,r),J(r,"block")):a.text?(r.textContent=a.text,J(r,"block")):z(r),((t,a)=>{const r=b(),s=e.innerParams.get(t),i=!s||a.input!==s.input;ge.forEach((e=>{const t=H(r,o[e]);he(e,a.inputAttributes),t.className=o[e],i&&z(t)})),a.input&&(i&&me(a),fe(a))})(t,a)},Ce=(e,t)=>{for(const o in a)t.icon!==o&&j(e,a[o]);W(e,a[t.icon]),Ie(e,t),_e(),V(e,t,"icon")},_e=()=>{const e=b(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<o.length;e++)o[e].style.backgroundColor=t},ke=(e,t)=>{let o,a=e.innerHTML;t.iconHtml?o=xe(t.iconHtml):"success"===t.icon?(o='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',a=a.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':xe({question:"?",warning:"!",info:"i"}[t.icon]),a.trim()!==o.trim()&&T(e,o)},Ie=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])G(e,o,"backgroundColor",t.iconColor);G(e,".swal2-success-ring","borderColor",t.iconColor)}},xe=e=>`<div class="${o["icon-content"]}">${e}</div>`,Ee=(e,t)=>{e.className=`${o.popup} ${Q(e)?t.showClass.popup:""}`,t.toast?(W([document.documentElement,document.body],o["toast-shown"]),W(e,o.toast)):W(e,o.modal),V(e,t,"popup"),"string"==typeof t.customClass&&W(e,t.customClass),t.icon&&W(e,o[`icon-${t.icon}`])},Ne=e=>{const t=document.createElement("li");return W(t,o["progress-step"]),T(t,e),t},Oe=e=>{const t=document.createElement("li");return W(t,o["progress-step-line"]),e.progressStepsDistance&&Y(t,"width",e.progressStepsDistance),t},Be=(t,r)=>{((e,t)=>{const o=m(),a=b();t.toast?(Y(o,"width",t.width),a.style.width="100%",a.insertBefore(I(),w())):Y(a,"width",t.width),Y(a,"padding",t.padding),t.color&&(a.style.color=t.color),t.background&&(a.style.background=t.background),z(C()),Ee(a,t)})(0,r),pe(0,r),((e,t)=>{const a=A();t.progressSteps&&0!==t.progressSteps.length?(J(a),a.textContent="",t.currentProgressStep>=t.progressSteps.length&&i("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,r)=>{const s=Ne(e);if(a.appendChild(s),r===t.currentProgressStep&&W(s,o["active-progress-step"]),r!==t.progressSteps.length-1){const e=Oe(t);a.appendChild(e)}}))):z(a)})(0,r),((t,o)=>{const r=e.innerParams.get(t),s=w();if(r&&o.icon===r.icon)return ke(s,o),void Ce(s,o);if(o.icon||o.iconHtml){if(o.icon&&-1===Object.keys(a).indexOf(o.icon))return n(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${o.icon}"`),void z(s);J(s),ke(s,o),Ce(s,o),W(s,o.showClass.icon)}else z(s)})(t,r),((e,t)=>{const a=S();t.imageUrl?(J(a,""),a.setAttribute("src",t.imageUrl),a.setAttribute("alt",t.imageAlt),Y(a,"width",t.imageWidth),Y(a,"height",t.imageHeight),a.className=o.image,V(a,t,"image")):z(a)})(0,r),((e,t)=>{const o=y();Z(o,t.title||t.titleText,"block"),t.title&&ie(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,r),((e,t)=>{const o=B();T(o,t.closeButtonHtml),V(o,t,"closeButton"),Z(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,r),Ae(t,r),de(0,r),((e,t)=>{const o=N();Z(o,t.footer),t.footer&&ie(t.footer,o),V(o,t,"footer")})(0,r),"function"==typeof r.didRender&&r.didRender(b())};function Pe(){const t=e.innerParams.get(this);if(!t)return;const a=e.domCache.get(this);z(a.loader),L()?t.icon&&J(w()):De(a),j([a.popup,a.actions],o.loading),a.popup.removeAttribute("aria-busy"),a.popup.removeAttribute("data-loading"),a.confirmButton.disabled=!1,a.denyButton.disabled=!1,a.cancelButton.disabled=!1}const De=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?J(t[0],"inline-block"):!Q(_())&&!Q(k())&&!Q(x())&&z(e.actions)};const Le=()=>_()&&_().click(),Fe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Te=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Me=(e,t,o)=>{const a=P();if(a.length)return(t+=o)===a.length?t=0:-1===t&&(t=a.length-1),void a[t].focus();b().focus()},Ve=["ArrowRight","ArrowDown"],Re=["ArrowLeft","ArrowUp"],Ue=(t,o,a)=>{const r=e.innerParams.get(t);r&&(o.isComposing||229===o.keyCode||(r.stopKeydownPropagation&&o.stopPropagation(),"Enter"===o.key?qe(t,o,r):"Tab"===o.key?We(o,r):[...Ve,...Re].includes(o.key)?je(o.key):"Escape"===o.key&&He(o,r,a)))},qe=(e,t,o)=>{if(d(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;Le(),t.preventDefault()}},We=(e,t)=>{const o=e.target,a=P();let r=-1;for(let e=0;e<a.length;e++)if(o===a[e]){r=e;break}e.shiftKey?Me(0,r,-1):Me(0,r,1),e.stopPropagation(),e.preventDefault()},je=e=>{const t=_(),o=k(),a=x();if(document.activeElement instanceof HTMLElement&&![t,o,a].includes(document.activeElement))return;const r=Ve.includes(e)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let e=0;e<E().children.length;e++){if(s=s[r],!s)return;if(s instanceof HTMLButtonElement&&Q(s))break}s instanceof HTMLButtonElement&&s.focus()},He=(e,t,o)=>{d(t.allowEscapeKey)&&(e.preventDefault(),o(Fe.esc))};var Ye={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Je=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},ze=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;b().scrollHeight>window.innerHeight-e&&(m().style.paddingBottom=`${e}px`)}},Ge=()=>{const e=m();let t;e.ontouchstart=e=>{t=Ze(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Ze=e=>{const t=e.target,o=m();return!(Qe(e)||Ke(e)||t!==o&&(K(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||K(v())&&v().contains(t)))},Qe=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Ke=e=>e.touches&&e.touches.length>1,Xe=()=>{null===F.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(F.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${F.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=o["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function $e(e,t,a,r){L()?it(e,r):(te(a).then((()=>it(e,r))),Te(ee)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),D()&&(null!==F.previousBodyPadding&&(document.body.style.paddingRight=`${F.previousBodyPadding}px`,F.previousBodyPadding=null),(()=>{if(M(document.body,o.iosfix)){const e=parseInt(document.body.style.top,10);j(document.body,o.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Je()),j([document.documentElement,document.body],[o.shown,o["height-auto"],o["no-backdrop"],o["toast-shown"]])}function et(e){e=at(e);const t=Ye.swalPromiseResolve.get(this),o=tt(this);this.isAwaitingPromise()?e.isDismissed||(ot(this),t(e)):o&&t(e)}const tt=t=>{const o=b();if(!o)return!1;const a=e.innerParams.get(t);if(!a||M(o,a.hideClass.popup))return!1;j(o,a.showClass.popup),W(o,a.hideClass.popup);const r=m();return j(r,a.showClass.backdrop),W(r,a.hideClass.backdrop),rt(t,o,a),!0};const ot=t=>{t.isAwaitingPromise()&&(e.awaitingPromise.delete(t),e.innerParams.get(t)||t._destroy())},at=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),rt=(e,t,o)=>{const a=m(),r=le&&X(t);"function"==typeof o.willClose&&o.willClose(t),r?st(e,t,a,o.returnFocus,o.didClose):$e(e,a,o.returnFocus,o.didClose)},st=(e,t,o,a,r)=>{ee.swalCloseEventFinishedCallback=$e.bind(null,e,o,a,r),t.addEventListener(le,(function(e){e.target===t&&(ee.swalCloseEventFinishedCallback(),delete ee.swalCloseEventFinishedCallback)}))},it=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function nt(t,o,a){const r=e.domCache.get(t);o.forEach((e=>{r[e].disabled=a}))}function ct(e,t){if(e)if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<o.length;e++)o[e].disabled=t}else e.disabled=t}const lt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},dt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ut={},pt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],gt=e=>Object.prototype.hasOwnProperty.call(lt,e),mt=e=>-1!==dt.indexOf(e),ht=e=>ut[e],ft=e=>{gt(e)||i(`Unknown parameter "${e}"`)},bt=e=>{pt.includes(e)&&i(`The parameter "${e}" is incompatible with toasts`)},wt=e=>{ht(e)&&l(e,ht(e))};const yt=e=>{const t={};return Object.keys(e).forEach((o=>{mt(o)?t[o]=e[o]:i(`Invalid parameter to update: ${o}`)})),t};const vt=e=>{St(e),delete e.params,delete ee.keydownHandler,delete ee.keydownTarget,delete ee.currentInstance},St=t=>{t.isAwaitingPromise()?(At(e,t),e.awaitingPromise.set(t,!0)):(At(Ye,t),At(e,t))},At=(e,t)=>{for(const o in e)e[o].delete(t)};var Ct=Object.freeze({__proto__:null,hideLoading:Pe,disableLoading:Pe,getInput:function(t){const o=e.innerParams.get(t||this),a=e.domCache.get(t||this);return a?R(a.popup,o.input):null},close:et,isAwaitingPromise:function(){return!!e.awaitingPromise.get(this)},rejectPromise:function(e){const t=Ye.swalPromiseReject.get(this);ot(this),t&&t(e)},handleAwaitingPromise:ot,closePopup:et,closeModal:et,closeToast:et,enableButtons:function(){nt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){nt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){ct(this.getInput(),!1)},disableInput:function(){ct(this.getInput(),!0)},showValidationMessage:function(t){const a=e.domCache.get(this),r=e.innerParams.get(this);T(a.validationMessage,t),a.validationMessage.className=o["validation-message"],r.customClass&&r.customClass.validationMessage&&W(a.validationMessage,r.customClass.validationMessage),J(a.validationMessage);const s=this.getInput();s&&(s.setAttribute("aria-invalid",!0),s.setAttribute("aria-describedby",o["validation-message"]),U(s),W(s,o.inputerror))},resetValidationMessage:function(){const t=e.domCache.get(this);t.validationMessage&&z(t.validationMessage);const a=this.getInput();a&&(a.removeAttribute("aria-invalid"),a.removeAttribute("aria-describedby"),j(a,o.inputerror))},update:function(t){const o=b(),a=e.innerParams.get(this);if(!o||M(o,a.hideClass.popup))return void i("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=yt(t),s=Object.assign({},a,r);Be(this,s),e.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){const t=e.domCache.get(this),o=e.innerParams.get(this);o?(t.popup&&ee.swalCloseEventFinishedCallback&&(ee.swalCloseEventFinishedCallback(),delete ee.swalCloseEventFinishedCallback),"function"==typeof o.didDestroy&&o.didDestroy(),vt(this)):St(this)}});const _t=e=>{let t=b();t||new xo,t=b();const o=I();L()?z(w()):kt(t,e),J(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},kt=(e,t)=>{const a=E(),r=I();!t&&Q(_())&&(t=_()),J(a),t&&(z(t),r.setAttribute("data-button-to-replace",t.className)),r.parentNode.insertBefore(r,t),W([e,a],o.loading)},It=e=>e.checked?1:0,xt=e=>e.checked?e.value:null,Et=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Nt=(e,t)=>{const o=b(),a=e=>{Bt[t.input](o,Pt(e),t)};u(t.inputOptions)||g(t.inputOptions)?(_t(_()),p(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Ot=(e,t)=>{const o=e.getInput();z(o),p(t.inputValue).then((a=>{o.value="number"===t.input?`${parseFloat(a)||0}`:`${a}`,J(o),o.focus(),e.hideLoading()})).catch((t=>{n(`Error in inputValue promise: ${t}`),o.value="",J(o),o.focus(),e.hideLoading()}))},Bt={select:(e,t,a)=>{const r=H(e,o.select),s=(e,t,o)=>{const r=document.createElement("option");r.value=o,T(r,t),r.selected=Dt(o,a.inputValue),e.appendChild(r)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),o.forEach((t=>s(e,t[1],t[0])))}else s(r,o,t)})),r.focus()},radio:(e,t,a)=>{const r=H(e,o.radio);t.forEach((e=>{const t=e[0],s=e[1],i=document.createElement("input"),n=document.createElement("label");i.type="radio",i.name=o.radio,i.value=t,Dt(t,a.inputValue)&&(i.checked=!0);const c=document.createElement("span");T(c,s),c.className=o.label,n.appendChild(i),n.appendChild(c),r.appendChild(n)}));const s=r.querySelectorAll("input");s.length&&s[0].focus()}},Pt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let a=e;"object"==typeof a&&(a=Pt(a)),t.push([o,a])})):Object.keys(e).forEach((o=>{let a=e[o];"object"==typeof a&&(a=Pt(a)),t.push([o,a])})),t},Dt=(e,t)=>t&&t.toString()===e.toString(),Lt=(t,o)=>{const a=e.innerParams.get(t);if(!a.input)return void n(`The "input" parameter is needed to be set when using returnInputValueOn${s(o)}`);const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return It(o);case"radio":return xt(o);case"file":return Et(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(t,a);a.inputValidator?Ft(t,r,o):t.getInput().checkValidity()?"deny"===o?Tt(t,r):Rt(t,r):(t.enableButtons(),t.showValidationMessage(a.validationMessage))},Ft=(t,o,a)=>{const r=e.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>p(r.inputValidator(o,r.validationMessage)))).then((e=>{t.enableButtons(),t.enableInput(),e?t.showValidationMessage(e):"deny"===a?Tt(t,o):Rt(t,o)}))},Tt=(t,o)=>{const a=e.innerParams.get(t||void 0);a.showLoaderOnDeny&&_t(k()),a.preDeny?(e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>p(a.preDeny(o,a.validationMessage)))).then((e=>{!1===e?(t.hideLoading(),ot(t)):t.close({isDenied:!0,value:void 0===e?o:e})})).catch((e=>Vt(t||void 0,e)))):t.close({isDenied:!0,value:o})},Mt=(e,t)=>{e.close({isConfirmed:!0,value:t})},Vt=(e,t)=>{e.rejectPromise(t)},Rt=(t,o)=>{const a=e.innerParams.get(t||void 0);a.showLoaderOnConfirm&&_t(),a.preConfirm?(t.resetValidationMessage(),e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>p(a.preConfirm(o,a.validationMessage)))).then((e=>{Q(C())||!1===e?(t.hideLoading(),ot(t)):Mt(t,void 0===e?o:e)})).catch((e=>Vt(t||void 0,e)))):Mt(t,o)},Ut=(t,o,a)=>{o.popup.onclick=()=>{const o=e.innerParams.get(t);o&&(qt(o)||o.timer||o.input)||a(Fe.close)}},qt=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Wt=!1;const jt=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Wt=!0)}}},Ht=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Wt=!0)}}},Yt=(t,o,a)=>{o.container.onclick=r=>{const s=e.innerParams.get(t);Wt?Wt=!1:r.target===o.container&&d(s.allowOutsideClick)&&a(Fe.backdrop)}},Jt=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const zt=()=>{if(ee.timeout)return(()=>{const e=O(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width=`${o}%`})(),ee.timeout.stop()},Gt=()=>{if(ee.timeout){const e=ee.timeout.start();return $(e),e}};let Zt=!1;const Qt={};const Kt=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Qt){const o=t.getAttribute(e);if(o)return void Qt[e].fire({template:o})}};var Xt=Object.freeze({__proto__:null,isValidParameter:gt,isUpdatableParameter:mt,isDeprecatedParameter:ht,argsToParams:e=>{const t={};return"object"!=typeof e[0]||Jt(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||Jt(r)?t[o]=r:void 0!==r&&n(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof r}`)})):Object.assign(t,e[0]),t},getContainer:m,getPopup:b,getTitle:y,getHtmlContainer:v,getImage:S,getIcon:w,getIconContent:()=>f(o["icon-content"]),getInputLabel:()=>f(o["input-label"]),getCloseButton:B,getActions:E,getConfirmButton:_,getDenyButton:k,getCancelButton:x,getLoader:I,getFooter:N,getTimerProgressBar:O,getFocusableElements:P,getValidationMessage:C,getProgressSteps:A,isLoading:()=>b().hasAttribute("data-loading"),isVisible:()=>Q(b()),clickConfirm:Le,clickDeny:()=>k()&&k().click(),clickCancel:()=>x()&&x().click(),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return new e(...o)},mixin:function(e){return class extends(this){_main(t,o){return super._main(t,Object.assign({},e,o))}}},showLoading:_t,enableLoading:_t,getTimerLeft:()=>ee.timeout&&ee.timeout.getTimerLeft(),stopTimer:zt,resumeTimer:Gt,toggleTimer:()=>{const e=ee.timeout;return e&&(e.running?zt():Gt())},increaseTimer:e=>{if(ee.timeout){const t=ee.timeout.increase(e);return $(t,!0),t}},isTimerRunning:()=>ee.timeout&&ee.timeout.isRunning(),bindClickHandler:function(){Qt[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Zt||(document.body.addEventListener("click",Kt),Zt=!0)}});class $t{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const eo=["swal-title","swal-html","swal-footer"],to=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{lo(e,["name","value"]);const o=e.getAttribute("name"),a=e.getAttribute("value");t[o]="boolean"==typeof lt[o]?"false"!==a:"object"==typeof lt[o]?JSON.parse(a):a})),t},oo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const o=e.getAttribute("name"),a=e.getAttribute("value");t[o]=new Function(`return ${a}`)()})),t},ao=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{lo(e,["type","color","aria-label"]);const o=e.getAttribute("type");t[`${o}ButtonText`]=e.innerHTML,t[`show${s(o)}Button`]=!0,e.hasAttribute("color")&&(t[`${o}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},ro=e=>{const t={},o=e.querySelector("swal-image");return o&&(lo(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},so=e=>{const t={},o=e.querySelector("swal-icon");return o&&(lo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},io=e=>{const t={},o=e.querySelector("swal-input");o&&(lo(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const a=Array.from(e.querySelectorAll("swal-input-option"));return a.length&&(t.inputOptions={},a.forEach((e=>{lo(e,["value"]);const o=e.getAttribute("value"),a=e.innerHTML;t.inputOptions[o]=a}))),t},no=(e,t)=>{const o={};for(const a in t){const r=t[a],s=e.querySelector(r);s&&(lo(s,[]),o[r.replace(/^swal-/,"")]=s.innerHTML.trim())}return o},co=e=>{const t=eo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const o=e.tagName.toLowerCase();t.includes(o)||i(`Unrecognized element <${o}>`)}))},lo=(e,t)=>{Array.from(e.attributes).forEach((o=>{-1===t.indexOf(o.name)&&i([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},uo=e=>{const t=m(),a=b();"function"==typeof e.willOpen&&e.willOpen(a);const r=window.getComputedStyle(document.body).overflowY;ho(t,a,e),setTimeout((()=>{go(t,a)}),10),D()&&(mo(t,e.scrollbarPadding,r),Array.from(document.body.children).forEach((e=>{e===m()||e.contains(m())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),L()||ee.previousActiveElement||(ee.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(a))),j(t,o["no-transition"])},po=e=>{const t=b();if(e.target!==t)return;const o=m();t.removeEventListener(le,po),o.style.overflowY="auto"},go=(e,t)=>{le&&X(t)?(e.style.overflowY="hidden",t.addEventListener(le,po)):e.style.overflowY="auto"},mo=(e,t,a)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!M(document.body,o.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",W(document.body,o.iosfix),Ge(),ze()}})(),t&&"hidden"!==a&&Xe(),setTimeout((()=>{e.scrollTop=0}))},ho=(e,t,a)=>{W(e,a.showClass.backdrop),t.style.setProperty("opacity","0","important"),J(t,"grid"),setTimeout((()=>{W(t,a.showClass.popup),t.style.removeProperty("opacity")}),10),W([document.documentElement,document.body],o.shown),a.heightAuto&&a.backdrop&&!a.toast&&W([document.documentElement,document.body],o["height-auto"])};var fo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function bo(e){(function(e){e.inputValidator||Object.keys(fo).forEach((t=>{e.input===t&&(e.inputValidator=fo[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&i("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(i('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),se(e)}let wo;class yo{constructor(){if("undefined"==typeof window)return;wo=this;for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];const r=Object.freeze(this.constructor.argsToParams(o));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});const s=wo._main(wo.params);e.promise.set(this,s)}_main(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!1===e.backdrop&&e.allowOutsideClick&&i('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)ft(t),e.toast&&bt(t),wt(t)})(Object.assign({},o,t)),ee.currentInstance&&(ee.currentInstance._destroy(),D()&&Je()),ee.currentInstance=wo;const a=So(t,o);bo(a),Object.freeze(a),ee.timeout&&(ee.timeout.stop(),delete ee.timeout),clearTimeout(ee.restoreFocusTimeout);const r=Ao(wo);return Be(wo,a),e.innerParams.set(wo,a),vo(wo,r,a)}then(t){return e.promise.get(this).then(t)}finally(t){return e.promise.get(this).finally(t)}}const vo=(t,o,a)=>new Promise(((r,s)=>{const i=e=>{t.close({isDismissed:!0,dismiss:e})};Ye.swalPromiseResolve.set(t,r),Ye.swalPromiseReject.set(t,s),o.confirmButton.onclick=()=>{(t=>{const o=e.innerParams.get(t);t.disableButtons(),o.input?Lt(t,"confirm"):Rt(t,!0)})(t)},o.denyButton.onclick=()=>{(t=>{const o=e.innerParams.get(t);t.disableButtons(),o.returnInputValueOnDeny?Lt(t,"deny"):Tt(t,!1)})(t)},o.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(Fe.cancel)})(t,i)},o.closeButton.onclick=()=>{i(Fe.close)},((t,o,a)=>{e.innerParams.get(t).toast?Ut(t,o,a):(jt(o),Ht(o),Yt(t,o,a))})(t,o,i),((e,t,o,a)=>{Te(t),o.toast||(t.keydownHandler=t=>Ue(e,t,a),t.keydownTarget=o.keydownListenerCapture?window:b(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(t,ee,a,i),((e,t)=>{"select"===t.input||"radio"===t.input?Nt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(u(t.inputValue)||g(t.inputValue))&&(_t(_()),Ot(e,t))})(t,a),uo(a),Co(ee,a,i),_o(o,a),setTimeout((()=>{o.container.scrollTop=0}))})),So=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return co(o),Object.assign(to(o),oo(o),ao(o),ro(o),so(o),io(o),no(o,eo))})(e),a=Object.assign({},lt,t,o,e);return a.showClass=Object.assign({},lt.showClass,a.showClass),a.hideClass=Object.assign({},lt.hideClass,a.hideClass),a},Ao=t=>{const o={popup:b(),container:m(),actions:E(),confirmButton:_(),denyButton:k(),cancelButton:x(),loader:I(),closeButton:B(),validationMessage:C(),progressSteps:A()};return e.domCache.set(t,o),o},Co=(e,t,o)=>{const a=O();z(a),t.timer&&(e.timeout=new $t((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(J(a),V(a,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&$(t.timer)}))))},_o=(e,t)=>{t.toast||(d(t.allowEnterKey)?ko(e,t)||Me(0,-1,1):Io())},ko=(e,t)=>t.focusDeny&&Q(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&Q(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!Q(e.confirmButton)||(e.confirmButton.focus(),0)),Io=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}Object.assign(yo.prototype,Ct),Object.assign(yo,Xt),Object.keys(Ct).forEach((e=>{yo[e]=function(){if(wo)return wo[e](...arguments)}})),yo.DismissReason=Fe,yo.version="11.6.15";const xo=yo;return xo.default=xo,xo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},145:t=>{"use strict";t.exports=e},147:e=>{"use strict";e.exports=JSON.parse('{"name":"konnektive-engine","version":"0.3.22","description":"","files":["dist/*.js","dist/**/*.js"],"scripts":{"rm":"rimraf ./dist","build":"npm run rm && webpack --color --progress --mode=development","build:prod":"npm run rm && NODE_ENV=production webpack --color --progress --mode=production","watch":"npm run build -- --watch","dev":"concurrently \\"npm run serve\\" \\"npm run watch\\"","serve":"http-server ./dist -a 0.0.0.0 -p 3000","publish":"npm run build:prod && npm publish","lint":"eslint ./src","lint:fix":"eslint ./src --fix"},"author":"brunoferreiras","license":"ISC","dependencies":{"jquery":"^3.6.2","sweetalert2":"^11.4.8"},"devDependencies":{"@babel/cli":"^7.17.6","@babel/core":"^7.17.9","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.4","babel-preset-minify":"^0.5.1","concurrently":"^7.1.0","eslint":"^8.13.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.26.0","glob":"^7.2.0","http-server":"^14.1.0","npm-watch":"^0.11.0","rimraf":"^3.0.2","webpack":"^5.72.0","webpack-cli":"^4.10.0"}}')}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var s=o[e]={exports:{}};return t[e].call(s.exports,s,s.exports,a),s.exports}return a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(248)})()));
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("jQuery"));else if("function"==typeof define&&define.amd)define(["jQuery"],t);else{var o="object"==typeof exports?t(require("jQuery")):t(e.jQuery);for(var a in o)("object"==typeof exports?exports:e)[a]=o[a]}}(this,(e=>(()=>{var t={289:(e,t,o)=>{"use strict";o.d(t,{getOrdersList:()=>d});var a,r=o(145),s=o.n(r),i=(o(61),o(853)),n=o(248),c=o(244),l=!1;function d(){var e=getSessionStorage("stickyOrdersList");return!!(0<e.length)&&JSON.parse(e)}if(0!==s()('form[data-onePageCheckout="true"]').length&&"sticky"==(0,c.getConfig)().provider&&(a={},s()("#cShipFName, #cShipLName, #cEmail, #cPhone2, #cShipAddress1, #cShipZip, #cShipCity, #cShipState, #ccNum").blur((function(){a.FName=s()("#cShipFName").val(),a.LName=s()("#cShipLName").val(),a.Email=s()("#cEmail").val(),a.Phone=s()("#cPhone2").val(),a.Address=s()("#cShipAddress1").val(),a.Address2=s()("#cShipAddress2").val(),a.Zip=s()("#cShipZip").val(),a.City=s()("#cShipCity").val(),a.State=s()("#cShipState option:selected").val(),a.Country=s()("#cShipCountry").val(),a.Email&&(sessionStorage.getItem("prospect_id")?(0,n.sticky_update_prospect_from_temp_data)(sessionStorage.getItem("prospect_id"),a):!l&&(l=!0,(0,n.sticky_new_prospect_from_temp_data)(a)))}))),0!==s()('form[data-CA="true"]').length){var u=(0,i.getQueryParamValue)("chash");u&&("sticky"==(0,c.getConfig)().provider&&(s()(".overlay, .processing").show(),(0,n.sticky_get_prospect)(u),(0,i.debug)("Prospect data loaded")),"konnektive"==(0,c.getConfig)().provider&&(s()(".overlay, .processing").show(),(0,n.konnektive_get_partial)(u)))}},248:(e,t,o)=>{"use strict";o.r(t),o.d(t,{doAddUpsell:()=>Z,doCheckoutPage:()=>z,doCompleteOrder:()=>G,doCompleteOrderSapphire:()=>oe,doConfirmOrder:()=>X,doImportLead:()=>Y,doLeadPage:()=>H,doOrderQuery:()=>Q,doPresellPage:()=>j,konnektive_create_member:()=>re,konnektive_fill_ca_forms:()=>te,konnektive_finalize_orders:()=>$,konnektive_forgot_password:()=>ue,konnektive_get_images:()=>K,konnektive_get_partial:()=>ee,konnektive_login_user:()=>se,konnektive_logout_user:()=>ge,konnektive_new_lead:()=>J,konnektive_reactivate_membership:()=>pe,konnektive_update_order:()=>ce,konnektive_update_order_subscription:()=>le,konnektive_user_order_details:()=>ne,konnektive_user_orders_lookup:()=>ie,konnektive_user_orders_set_images:()=>de,konnektive_validate_user:()=>ae,sFormProcess:()=>W,setVirtualLink:()=>D,sticky_add_upsell:()=>y,sticky_create_member:()=>T,sticky_fill_ca_forms:()=>u,sticky_forgot_password:()=>M,sticky_get_orders:()=>v,sticky_get_orders_sapphire:()=>S,sticky_get_product_details:()=>L,sticky_get_prospect:()=>h,sticky_login_user:()=>R,sticky_logout_user:()=>U,sticky_new_order:()=>b,sticky_new_order_sapphire:()=>w,sticky_new_prospect:()=>p,sticky_new_prospect_from_temp_data:()=>m,sticky_update_order:()=>x,sticky_update_order_subscription:()=>I,sticky_update_password:()=>V,sticky_update_prospect:()=>g,sticky_update_prospect_from_temp_data:()=>f,sticky_user_order_details:()=>k,sticky_user_orders_handle_virtuals:()=>O,sticky_user_orders_handle_virtuals_gifts:()=>B,sticky_user_orders_lookup:()=>_,sticky_user_orders_set_images:()=>P,sticky_validate_coupon:()=>A,sticky_validate_coupon_sapphire:()=>C,sticky_validate_user:()=>F});var a=o(145),r=o.n(a),s=o(244),i=o(853),n=o(289),c=o(61);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e,t,o){return t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,"string");if("object"!==l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function u(e){r()("#cShipFName").val(e.first_name),r()("#cShipLName").val(e.last_name),r()("#cShipAddress1").val(e.address),r()("#cShipAddress2").val(e.address2),r()("#cShipCity").val(e.city),r()("#cShipZip").val(e.zip),(0,i.setCustomerShipState)(e.state_id),r()("#cBillFName").val(e.first_name),r()("#cBillLName").val(e.last_name),r()("#cBillAddress1").val(e.address),r()("#cBillCity").val(e.city),r()("#cBillZip").val(e.zip),(0,i.setCustomerBillState)(e.state_id),r()("#cPhone2").val(e.phone),r()("#cEmail").val(e.email);var t=e.custom_fields,o=(t[0].values[0].value,t[1].values[0].value,t[2].values[0].value,t[3].values[0].value),a=t[4].values[0].value;t[5].values[0].value,t[6].values[0].value,r()(".optionSelector").length&&(r()(".optionSelector .selector[data-rel=".concat(o,"]")).click(),r()(".packageselectors .package[data-pid=".concat(a,"]")).click()),setTimeout((function(){r()("[data-package-sku=".concat(a,"]")).click(),(0,i.debug)("Package selection restored with index :"+a)}),1e3)}function p(){var e="";r()("#cShipAddress2").length&&(e=r()("#cShipAddress2").val());var t=(0,i.clearPhone)(r()("#cPhone2").val());(0,s.deleteSessionStorage)("prospect_id");var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_prospect"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({campaignId:(0,s.getConfig)().products[0].campaignID,email:r()("#cEmail").val(),ipAddress:(0,i.getIP)(),firstName:r()("#cShipFName").val(),lastName:r()("#cShipLName").val(),address1:r()("#cShipAddress1").val(),address2:e,city:r()("#cShipCity").val(),state:r()("#cShipState").val(),zip:r()("#cShipZip").val(),country:r()("#cShipCountry").val(),phone:t,notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:""})};r().ajax(o).done((function(e){100===parseInt(e.response_code,10)?(sessionStorage.setItem("prospect_id",e.prospectId),document.shipping_form.submit()):((0,i.debug)(e),(0,s.getConfig)().debugMode||document.shipping_form.submit())}))}function g(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=sessionStorage.getItem("prospect_id"),o=r()("#cBillProductIndex").val(),a=r()("#cBillPurchaseType").val(),n="",c="",l=0,d="";if(r()("#cIssueType").length&&(n=r()("#cIssueType").val()),r()("#cIssueValue").length&&(c=r()("#cIssueValue").val()),r()("#cAge").length&&(l=r()("#cAge").val()),r()("#cGender").length&&(d=r()("#cGender").val()),(0,s.setSessionStorage)("customer_age",l),(0,s.setSessionStorage)("customer_gender",d),(0,s.setSessionStorage)("customer_issue_type",n),(0,s.setSessionStorage)("customer_issue_value",c),t){var u={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/prospects/").concat(t,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:9,value:(0,s.getSessionStorage)("lp_url")},{id:14,value:o},{id:13,value:a},{id:21,value:n},{id:22,value:c},{id:1,value:l},{id:2,value:d}]})};r().ajax(u).done((function(t){"SUCCESS"===t.status?e&&r()("#".concat(e)).submit():((0,i.debug)("Error updating prospect custom fields:"),(0,i.debug)(t))})).fail((function(){(0,i.throwStickyError)("error","Prospect error. You need to start over.","./")}))}}function m(e){(0,s.deleteSessionStorage)("prospect_id");var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_prospect"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({campaignId:(0,s.getConfig)().products[0].campaignID,email:e.Email,ipAddress:(0,i.getIP)(),firstName:e.FName,lastName:e.LName,address1:e.Address,address2:"",city:e.City,state:e.State,zip:e.Zip,country:e.Country,phone:e.Phone,notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:""})};r().ajax(t).done((function(e){100===parseInt(e.response_code,10)?(sessionStorage.setItem("prospect_id",e.prospectId),g()):(0,i.debug)(e)}))}function h(e){try{var t=atob(e),o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/prospect_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({prospect_id:t})};r().ajax(o).done((function(e){100===parseInt(e.response_code,10)?((0,i.resetFormState)(),sessionStorage.setItem("prospect_id",t),u(e)):((0,i.resetFormState)(),(0,i.debug)(e))}))}catch(t){(0,i.resetFormState)()}}function f(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/prospect_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:'{"prospect_id":{"'.concat(e,'":{"first_name":"').concat(t.FName,'","last_name":"').concat(t.LName,'","address":"').concat(t.Address,'","address2":"').concat(t.Address2,'","city":"').concat(t.City,'","state":"').concat(t.State,'","zip":"').concat(t.Zip,'","country":"').concat(t.Country,'","phone":"').concat(t.Phone,'","email":"').concat(t.Email,'"}}}')};r().ajax(o).done((function(e){100===parseInt(e.response_code,10)||(0,i.debug)(e)}))}function b(){var e,t=r()("#cBillProductIndex").val(),o=sessionStorage.getItem("prospect_id"),a=(0,i.stickyGetCountryEnv)("cShipCountry");sessionStorage.setItem("sticky_country",a),e=(0,s.getConfig)().international[0][a]?(0,s.getConfig)().international[0][a][0].shippingID:(0,s.getConfig)().international[0].all[0].shippingID;var n="new_order_with_prospect";o||(n="new_order");var c="onetime"===r()("#cBillPurchaseType").val()?(0,s.getConfig)().products[t].onetimeBillindgModelID:(0,s.getConfig)().products[t].subscribeBillindgModelID,l="Y"===r()("#billEqualShip").val()?"YES":"NO";"on"===r()("#billEqualShip").val()&&(l=r()("#billEqualShip").prop("checked")?"YES":"NO"),r()("#billEqualShip").prop("checked")&&(l="YES");var d="";r()("#cShipAddress2").length&&(d=r()("#cShipAddress2").val());var u="";r()("#cBillAddress2").length&&(u=r()("#cBillAddress2").val());var p=(0,i.clearPhone)(r()("#cPhone2").val()),g=""===r()("#cBillPromoCode").val()?"":r()("#cBillPromoCode").val(),m=(0,s.getConfig)().products[t].pid,h="";(0,s.getConfig)().products[t].forceGatewayId&&(h=(0,s.getConfig)().products[t].forceGatewayId),"4394572018927099"==r()("#ccNum").val()?(sessionStorage.setItem("sticky_test_order",1),h=(0,s.getConfig)().testGatewayID,(0,i.debug)("TEST CARD forceGatewayId: ".concat(h))):sessionStorage.setItem("sticky_test_order",0);var f=0!==r()("#cBillGift").length;(0,s.getConfig)().products[t].isTrial&&(0,s.getConfig)().products[t].pid;var b={prospectId:o,firstName:r()("#cShipFName").val(),lastName:r()("#cShipLName").val(),billingFirstName:r()("#cBillFName").val(),billingLastName:r()("#cBillLName").val(),billingAddress1:r()("#cBillAddress1").val(),billingAddress2:u,billingCity:r()("#cBillCity").val(),billingState:r()("#cBillState").val(),billingZip:r()("#cBillZip").val(),billingCountry:r()("#cBillCountry").val(),phone:p,email:r()("#cEmail").val(),promoCode:g,creditCardType:r()("#ccCardType").val(),creditCardNumber:r()("#ccNum").val(),expirationDate:r()("#ccExp").val(),CVV:r()("#ccCode").val(),shippingId:e,tranType:"sale",ipAddress:(0,i.getIP)(),campaignId:(0,s.getConfig)().products[t].campaignID,forceGatewayId:h,offers:[{offer_id:(0,s.getConfig)().products[t].offerID,product_id:m,billing_model_id:c,quantity:"1",step_num:1}],notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",sessionId:r()("input[name=sessionId]").val(),billingSameAsShipping:l,shippingAddress1:r()("#cShipAddress1").val(),shippingAddress2:d,shippingCity:r()("#cShipCity").val(),shippingState:r()("#cShipState").val(),shippingZip:r()("#cShipZip").val(),shippingCountry:r()("#cShipCountry").val(),alt_pay_token:"",alt_pay_payer_id:"",secretSSN:"",three_d_redirect_url:"",device_category:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="};if(f){var w={offer_id:(0,s.getConfig)().gifts[0].offerID,product_id:(0,s.getConfig)().gifts[0].pid,billing_model_id:(0,s.getConfig)().gifts[0].billingModelID,quantity:"1"};b.offers.push(w)}var y="".concat((0,s.getConfig)().legacyAPIURL,"?")+"method=NewOrderWithProspect&tranType=Sale"+"&firstName=".concat(r()("#cShipFName").val(),"&lastName=").concat(r()("#cShipLName").val(),"&shippingAddress1=").concat(r()("#cShipAddress1").val(),"&shippingAddress2=")+"&shippingCity=".concat(r()("#cShipCity").val(),"&shippingState=").concat(r()("#cShipState").val(),"&shippingZip=").concat(r()("#cShipZip").val(),"&shippingCountry=").concat(r()("#cShipCountry").val(),"&billingFirstName=").concat(r()("#cBillFName").val(),"&billingLastName=").concat(r()("#cBillLName").val(),"&billingAddress1=").concat(r()("#cBillAddress1").val(),"&billingAddress2=").concat(u,"&billingCity=").concat(r()("#cBillCity").val(),"&billingState=").concat(r()("#cBillState").val(),"&billingZip=").concat(r()("#cBillZip").val(),"&billingCountry=").concat(r()("#cBillCountry").val(),"&phone=").concat(p,"&email=").concat(r()("#cEmail").val(),"&creditCardType=").concat(r()("#ccCardType").val(),"&creditCardNumber=").concat(r()("#ccNum").val(),"&expirationDate=").concat(r()("#ccExp").val(),"&CVV=").concat(r()("#ccCode").val(),"&checkAccountNumber=")+"&checkRoutingNumber=&sepa_iban=&sepa_bic=&eurodebit_acct_num=&eurodebit_route_num="+"&ipAddress=".concat((0,i.getIP)(),"&AFID=")+"&SID=&AFFID=&C1=&C2=&C3=&AID=&OPT=&click_id="+"&productId=".concat(m,"&campaignId=").concat((0,s.getConfig)().products[t].campaignID,"&shippingId=").concat(e,"&upsellCount=")+"&forceGatewayId=".concat(h)+"&upsellProductIds=&dynamic_product_price_1="+"&prospectId=".concat(o,"&billingSameAsShipping=").concat(l,"¬es=")+"&product_qty_1=&preserve_force_gateway=&createdBy=&thm_session_id=&total_installments=&alt_pay_token=&alt_pay_payer_id=&secretSSN=&force_subscription_cycle=&recurring_days=&subscription_week=&subscription_day=&product_attribute_array=&master_order_id=&promoCode=&temp_customer_id=&three_d_redirect_url=&alt_pay_return_url="+"&sessionId=".concat(r()("input[name=sessionId]").val(),"&ssn_nmi=")+"&utm_source=&utm_medium=&utm_campaign=&utm_term=&utm_content=&device_category=&conversion_id=&referrer_id=&product_step[1]&consent_required=",v={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/").concat(n),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify(b)};(0,s.getConfig)().products[t].isTrial&&(v={url:y,method:"GET",timeout:0,headers:{Accept:"text/plain"}}),-1==r().inArray(r()("#ccNum").val(),(0,s.getConfig)().blockedCardNumbers)?r().ajax(v).done((function(e){switch((0,s.getConfig)().products[t].isTrial&&((e=JSON.parse(e)).response_code=e.responseCode,e.order_id=e.orderId),parseInt(e.response_code,10)){case 100:sessionStorage.setItem("order_id",e.order_id),(0,i.saveOrderNumberIntoList)(e.order_id);var o=(0,s.getSessionStorage)("customer_age"),a=(0,s.getSessionStorage)("customer_gender"),n=(0,s.getSessionStorage)("customer_issue_type"),c=(0,s.getSessionStorage)("customer_issue_value"),l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(e.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:o},{id:24,value:a},{id:25,value:n},{id:26,value:c}]})};r().ajax(l).done((function(){if(r()("#ship_pro").prop("checked")){var l={previousOrderId:e.order_id,master_order_id:e.order_id,shippingId:(0,s.getConfig)().shipProtection[0].shippingID,campaignId:(0,s.getConfig)().products[t].campaignID,forceGatewayId:h,ipAddress:(0,i.getIP)(),offers:[{offer_id:(0,s.getConfig)().products[t].offerID,product_id:(0,s.getConfig)().shipProtection[0].pid,billing_model_id:(0,s.getConfig)().shipProtection[0].billingModelID,quantity:"1"}],notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",alt_pay_token:"",alt_pay_payer_id:"",secretSSN:"",three_d_redirect_url:"",device_category:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="},d={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_order_card_on_file"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify(l)};r().ajax(d).done((function(t){if(100===parseInt(t.response_code)){(0,i.saveOrderNumberIntoList)(t.order_id);var l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(t.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:o},{id:24,value:a},{id:25,value:n},{id:26,value:c}]})};r().ajax(l).done((function(){}))}else(0,i.debug)(t);if((0,s.getConfig)().enableUpsells){var d="checkout/bonus1.html?orderID="+e.order_id;r()('input[name="urlparams"]').val()&&(d+="&"+r()('input[name="urlparams"]').val()),r()(location).prop("href",d)}else r()(location).prop("href","checkout/thankyou.html?"+r()('input[name="urlparams"]').val())}))}else if((0,s.getConfig)().enableUpsells){var u="checkout/bonus1.html?orderID=".concat(e.order_id);r()('input[name="urlparams"]').val()&&(u+="&".concat(r()('input[name="urlparams"]').val())),r()(location).prop("href",u)}else r()(location).prop("href","checkout/thankyou.html?".concat(r()('input[name="urlparams"]').val()))}));break;case 10330:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","This purchase is already made. You need to start over.","./");break;case 10327:case 10800:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","There was an issue processing your card. Please try a different card or call us at ".concat((0,s.getConfig)().servicePhone," so we can assist you in placing your order."));break;default:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","There was an error processing this transaction. Please try again or call our customer service at ".concat((0,s.getConfig)().servicePhone)),(0,i.debug)(e)}})).fail((function(e){(0,i.throwStickyError)("error","There was an error processing this transaction. Please try again or call our customer service at ".concat((0,s.getConfig)().servicePhone)),(0,i.debug)(e);try{(0,i.reportInSlack)("User got timeout error. Session ID is: "+getLocalStorage("session_id")+"\nUser's contacts are: "+r()("#cEmail").val()+" / "+p)}catch(e){(0,i.debug)(e)}})):(r()("#ccNum").val(""),(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","Please enter valid credit card number"))}function w(){sapphireCart.loadCart();var e,t=sapphireCart.getCart().cart,o=sessionStorage.getItem("prospect_id");(0,i.stickyGetCountryEnv)("cShipCountry"),e=t[0].itemShippingID;var a="new_order_with_prospect";o||(a="new_order"),t[0].itemBillingID;var n="Y"===r()("#billEqualShip").val()?"YES":"NO";"on"===r()("#billEqualShip").val()&&(n=r()("#billEqualShip").prop("checked")?"YES":"NO"),r()("#billEqualShip").prop("checked")&&(n="YES");var c="";r()("#cShipAddress2").length&&(c=r()("#cShipAddress2").val());var l="";r()("#cBillAddress2").length&&(l=r()("#cBillAddress2").val());var d=(0,i.clearPhone)(r()("#cPhone2").val()),u=""===r()("#shipCoupon").val()?"":r()("#shipCoupon").val(),p=t[0].itemID,g="";"4394572018927099"==r()("#ccNum").val()?(sessionStorage.setItem("sticky_test_order",1),g=(0,s.getConfig)().testGatewayID,(0,i.debug)("TEST CARD forceGatewayId: ".concat(g))):sessionStorage.setItem("sticky_test_order",0);var m=0!==r()("#cBillGift").length;t[0].itemIsTrial&&t[0].itemID;for(var h={prospectId:o,firstName:r()("#cShipFName").val(),lastName:r()("#cShipLName").val(),billingFirstName:r()("#cBillFName").val(),billingLastName:r()("#cBillLName").val(),billingAddress1:r()("#cBillAddress1").val(),billingAddress2:l,billingCity:r()("#cBillCity").val(),billingState:r()("#cBillState").val(),billingZip:r()("#cBillZip").val(),billingCountry:r()("#cBillCountry").val(),phone:d,email:r()("#cEmail").val(),promoCode:u,creditCardType:r()("#ccCardType").val(),creditCardNumber:r()("#ccNum").val(),expirationDate:r()("#ccExp").val(),CVV:r()("#ccCode").val(),shippingId:e,tranType:"sale",ipAddress:(0,i.getIP)(),campaignId:t[0].itemCampaignID,forceGatewayId:g,offers:[],notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",sessionId:r()("input[name=sessionId]").val(),billingSameAsShipping:n,shippingAddress1:r()("#cShipAddress1").val(),shippingAddress2:c,shippingCity:r()("#cShipCity").val(),shippingState:r()("#cShipState").val(),shippingZip:r()("#cShipZip").val(),shippingCountry:r()("#cShipCountry").val(),alt_pay_token:"",alt_pay_payer_id:"",secretSSN:"",three_d_redirect_url:"",device_category:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="},f=0;f<t.length;f++)h.offers.push({offer_id:t[f].itemOfferID,product_id:t[f].itemID,billing_model_id:t[f].itemBillingID,quantity:1,step_num:1});if(m){var b={offer_id:(0,s.getConfig)().gifts[0].offerID,product_id:(0,s.getConfig)().gifts[0].pid,billing_model_id:(0,s.getConfig)().gifts[0].billingModelID,quantity:"1"};h.offers.push(b)}var w="".concat((0,s.getConfig)().legacyAPIURL,"?")+"method=NewOrderWithProspect&tranType=Sale"+"&firstName=".concat(r()("#cShipFName").val(),"&lastName=").concat(r()("#cShipLName").val(),"&shippingAddress1=").concat(r()("#cShipAddress1").val(),"&shippingAddress2=")+"&shippingCity=".concat(r()("#cShipCity").val(),"&shippingState=").concat(r()("#cShipState").val(),"&shippingZip=").concat(r()("#cShipZip").val(),"&shippingCountry=").concat(r()("#cShipCountry").val(),"&billingFirstName=").concat(r()("#cBillFName").val(),"&billingLastName=").concat(r()("#cBillLName").val(),"&billingAddress1=").concat(r()("#cBillAddress1").val(),"&billingAddress2=").concat(l,"&billingCity=").concat(r()("#cBillCity").val(),"&billingState=").concat(r()("#cBillState").val(),"&billingZip=").concat(r()("#cBillZip").val(),"&billingCountry=").concat(r()("#cBillCountry").val(),"&phone=").concat(d,"&email=").concat(r()("#cEmail").val(),"&creditCardType=").concat(r()("#ccCardType").val(),"&creditCardNumber=").concat(r()("#ccNum").val(),"&expirationDate=").concat(r()("#ccExp").val(),"&CVV=").concat(r()("#ccCode").val(),"&checkAccountNumber=")+"&checkRoutingNumber=&sepa_iban=&sepa_bic=&eurodebit_acct_num=&eurodebit_route_num="+"&ipAddress=".concat((0,i.getIP)(),"&AFID=")+"&SID=&AFFID=&C1=&C2=&C3=&AID=&OPT=&click_id="+"&productId=".concat(p,"&campaignId=").concat(t[0].itemCampaignID,"&shippingId=").concat(e,"&upsellCount=")+"&forceGatewayId=".concat(g)+"&upsellProductIds=&dynamic_product_price_1="+"&prospectId=".concat(o,"&billingSameAsShipping=").concat(n,"¬es=")+"&product_qty_1=&preserve_force_gateway=&createdBy=&thm_session_id=&total_installments=&alt_pay_token=&alt_pay_payer_id=&secretSSN=&force_subscription_cycle=&recurring_days=&subscription_week=&subscription_day=&product_attribute_array=&master_order_id=&promoCode=&temp_customer_id=&three_d_redirect_url=&alt_pay_return_url="+"&sessionId=".concat(r()("input[name=sessionId]").val(),"&ssn_nmi=")+"&utm_source=&utm_medium=&utm_campaign=&utm_term=&utm_content=&device_category=&conversion_id=&referrer_id=&product_step[1]&consent_required=",y={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/").concat(a),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify(h)};t[0].itemIsTrial&&(y={url:w,method:"GET",timeout:0,headers:{Accept:"text/plain"}}),-1==r().inArray(r()("#ccNum").val(),(0,s.getConfig)().blockedCardNumbers)?r().ajax(y).done((function(e){switch(t[0].itemIsTrial&&((e=JSON.parse(e)).response_code=e.responseCode,e.order_id=e.orderId),parseInt(e.response_code,10)){case 100:sessionStorage.setItem("order_id",e.order_id),(0,i.saveOrderNumberIntoList)(e.order_id);var o=(0,s.getSessionStorage)("customer_age"),a=(0,s.getSessionStorage)("customer_gender"),n=(0,s.getSessionStorage)("customer_issue_type"),c=(0,s.getSessionStorage)("customer_issue_value"),l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(e.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:o},{id:24,value:a},{id:25,value:n},{id:26,value:c}]})};r().ajax(l).done((function(){if(t[0].itemIsShipProtection){var l={previousOrderId:e.order_id,master_order_id:e.order_id,shippingId:t[0].itemShippingID,campaignId:t[0].itemCampaignID,forceGatewayId:g,ipAddress:(0,i.getIP)(),offers:[{offer_id:t[0].itemOfferID,product_id:(0,s.getConfig)().shipProtection[0].pid,billing_model_id:(0,s.getConfig)().shipProtection[0].billingModelID,quantity:"1"}],notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",alt_pay_token:"",alt_pay_payer_id:"",secretSSN:"",three_d_redirect_url:"",device_category:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="},d={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_order_card_on_file"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify(l)};r().ajax(d).done((function(e){if(100===parseInt(e.response_code)){(0,i.saveOrderNumberIntoList)(e.order_id);var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(e.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:o},{id:24,value:a},{id:25,value:n},{id:26,value:c}]})};r().ajax(t).done((function(){window.location.search.substring(1)?r()(location).prop("href","page-thank-you.php?"+window.location.search.substring(1)):r()(location).prop("href","page-thank-you.php")}))}else(0,i.debug)(e)}))}else window.location.search.substring(1)?r()(location).prop("href","page-thank-you.php?"+window.location.search.substring(1)):r()(location).prop("href","page-thank-you.php")}));break;case 10330:(0,i.resetFormState)(),(0,i.throwStickyError)("error","This purchase is already made. You need to start over.","./");break;case 10327:case 10800:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","There was an issue processing your card. Please try a different card or call us at ".concat((0,s.getConfig)().servicePhone," so we can assist you in placing your order."));break;default:(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","There was an error processing this transaction. Please try again or call our customer service at ".concat((0,s.getConfig)().servicePhone)),(0,i.debug)(e)}})):(r()("#ccNum").val(""),(0,i.resetFormState)(),(0,i.resetDebugCounter)(),(0,i.throwStickyError)("error","Please enter valid credit card number"))}function y(){var e=sessionStorage.getItem("order_id"),t=((0,s.getConfig)().upsellIndex,sessionStorage.getItem("sticky_country"));if(e){var o="";(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].forceGatewayId&&(o=(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].forceGatewayId),1==sessionStorage.getItem("sticky_test_order")&&(o=(0,s.getConfig)().testGatewayID,(0,i.debug)("TEST CARD forceGatewayId: ".concat(o)));var a,c="";(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].discountPromoCode&&(c=(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].discountPromoCode),a=(0,s.getConfig)().international[0][t]?(0,s.getConfig)().international[0][t][0].shippingID:(0,s.getConfig)().international[0].all[0].shippingID,(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].shippingID&&(a=(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].shippingID);var l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/new_upsell"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({previousOrderId:e,master_order_id:e,shippingId:a,ipAddress:(0,i.getIP)(),campaignId:(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].campaignID,forceGatewayId:o,offers:[{offer_id:(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].offerID,product_id:(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].pid,billing_model_id:(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].billingModelID,quantity:1,step_num:(0,s.getConfig)().upsellIndex+2}],promoCode:c,notes:"",AFID:"",SID:"",AFFID:"",C1:"",C2:"",C3:"",AID:"",OPT:"",click_id:"",cavv:"BwABAwJoEAAAAABhdWgQAAAAAAA=",eci:"06",xid:"YmUyMnFoMmJpbHM1aGJzNjd2MGc="})};r().ajax(l).done((function(e){switch(parseInt(e.response_code)){case 100:var t=sessionStorage.getItem("customer_age"),o=sessionStorage.getItem("customer_gender"),a=sessionStorage.getItem("customer_issue_type"),c=sessionStorage.getItem("customer_issue_value"),l={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/orders/").concat(e.order_id,"/custom_fields"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({custom_fields:[{id:18,value:getLocalStorage("session_id")},{id:19,value:(0,s.getSessionStorage)("lp_url")},{id:23,value:t},{id:24,value:o},{id:25,value:a},{id:26,value:c}]})};r().ajax(l).done((function(){if((0,i.saveOrderNumberIntoList)(e.order_id),(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].voidMain){var t=(0,n.getOrdersList)()[0],o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_void"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:t})};r().ajax(o).done((function(e){100===parseInt(e.response_code)?(0,i.skipUpsell)():(0,i.debug)(e)}))}else(0,i.skipUpsell)()}));break;case 10334:(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.error_message),(0,i.skipUpsell)();break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred."),(0,i.skipUpsell)(),(0,i.debug)(e)}}))}else(0,i.throwStickyError)("error","Order Number Not Found","../")}function v(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e})};r().ajax(t).done((function(o){switch(parseInt(o.response_code)){case 100:if((0,i.debug)("Orders raw data:"),(0,i.debug)(o),1<e.length)var a=o.data[e[0]];else a=o;var n="",l="",d=[],u=0,p="";r().each(e,(function(t,a){if(1<e.length)var s=o.data[a];else s=o;if(1==s.products[0].is_recurring){var i=new Date(s.products[0].recurring_date).toString("MMM d, yyyy");"<br/><small>Next Shipment: ".concat(i,"</small>")}p="yes"==s.is_void?"order-voided":"";var g="";r().each(s.products,(function(e,t){0==e||(s.products[0].name+='<div class="giftz desktops additionalProduct"><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t.product_id,'" id="sticky-product-').concat(t.product_id,'" />').concat(t.name,' <a href="#" class="sticky-product-link" data-pid="').concat(t.product_id,'" target="_blank">Click to download</a></div>'),g+='<div class="gitz mobilz additionalProduct"><strong>'.concat(t.name,'</strong><a href="#" class="sticky-product-link" data-pid="').concat(t.product_id,'" target="_blank">Click to download</a><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t.product_id,'" id="sticky-product-').concat(t.product_id,'" /></div></div>'))})),n+='<tr class="ty-order-entry '.concat(p," order-entry-").concat(t,'">'),n+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(s.products[0].product_id,'" id="sticky-product-').concat(s.products[0].product_id,'" />').concat(s.products[0].name,"</td>"),n+="<td>".concat(a,"</td>"),n+="<td>".concat(s.gateway_descriptor,"</td>"),n+="<td>".concat(s.products[0].product_qty,"</td>"),n+="<td>$".concat(s.products[0].price,"</td>"),n+="<td>$".concat(s.shipping_amount,"</td>"),n+="<td>$".concat(s.order_total,"</td>"),n+="</tr>",l+='<tr class="ty-order-entry '.concat(p," mobile-order-entry-").concat(t,'">'),l+="<td><strong>".concat(s.products[0].name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(s.products[0].product_id,'" id="sticky-product-').concat(s.products[0].product_id,'" /> Order #: ').concat(a,"<br/>Billed as: ").concat(s.gateway_descriptor,"<br/>Qty: ").concat(s.products[0].product_qty,"<br/>Shipping: $").concat(s.shipping_amount,"</div>")+g+"</td>",l+="<td>$".concat(s.products[0].price,"</td>"),l+="</tr>",d.push(s.ancestor_id),u+=parseFloat(s.order_total)})),r()("#order_number").text(d[0]),r()("#fullname").text("".concat(a.shipping_first_name," ").concat(a.shipping_last_name)),r()("#address").text(a.shipping_street_address),r()("#city_state").text("".concat(a.shipping_city,", ").concat(a.shipping_state,", ").concat(a.shipping_country)),r()("#zip").text(a.shipping_postcode),r()("#order_summary tbody").html(n),r()("#order_summary .totals").html(u.toFixed(2)),r()("#order_summary_mobile tbody").html(l),r()("#order_summary_mobile .totals").html(u.toFixed(2)),(0,i.resetFormState)(),r()(".sticky-product-image").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o=JSON.parse((0,s.getSessionStorage)("stickyImagesList"));o&&r().each(o,(function(o,a){parseInt(a[0].pid)==parseInt(t)&&e.attr("src",a[0].url)}))})),r()(".sticky-product-link").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o=JSON.parse((0,s.getSessionStorage)("stickyImagesList"));o&&r().each(o,(function(o,a){parseInt(a[0].pid)==parseInt(t)&&"-"!=a[0].download&&(e.attr("href",a[0].download),e.show())}))}));break;case 350:(0,i.throwStickyError)("error","Order Number Not Found","../");break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred."),(0,i.debug)("Orders Request: ",t),(0,i.debug)(o)}}))}function S(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e})};r().ajax(t).done((function(t){switch(parseInt(t.response_code)){case 100:(0,i.debug)("Orders raw data: "+t),1<e.length&&t.data[e[0]];var o="",a=[],n=0,l=0,d="",u=0;r().each(e,(function(s,i){if(1<e.length)var p=t.data[i];else p=t;if(1==p.products[0].is_recurring){var g=new Date(p.products[0].recurring_date).toString("MMM d, yyyy");"<br/><small>Next Shipment: ".concat(g,"</small>")}d="yes"==p.is_void?"order-voided":"",r().each(p.products,(function(e){r().each(p.products,(function(t,o){0==t||(p.products[e].name+='<div class="giftz desktops"><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(o.product_id,'" id="sticky-product-').concat(o.product_id,'" />').concat(o.name,"</div>"),'<div class="gitz mobilz"><strong>'.concat(o.name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(o.product_id,'" id="sticky-product-').concat(o.product_id,'" /></div></div>'))})),o+='<tr class="ty-order-entry '.concat(d," order-entry-").concat(s,"-").concat(e,'">'),o+="<td>".concat(p.products[e].name,"</td>"),o+='<td align="right">$'.concat(p.products[e].price,"</td>"),o+='<td align="right">'.concat(p.products[e].product_qty,"</td>"),o+='<td align="right">$'.concat(p.products[e].price,"</td>"),o+="</tr>"})),'<tr class="ty-order-entry '.concat(d," mobile-order-entry-").concat(s,'">'),"<td><strong>".concat(p.products[0].name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(p.products[0].product_id,'" id="sticky-product-').concat(p.products[0].product_id,'" /> Order #: ').concat(i,"<br/>Billed as: ").concat(p.gateway_descriptor,"<br/>Qty: ").concat(p.products[0].product_qty,"<br/>Shipping: $").concat(p.shipping_amount,"</div>"),mobilzInfo,"<td>$".concat(p.products[0].price,"</td>"),a.push(p.ancestor_id),n+=parseFloat(p.order_total),u+=parseFloat(p.shipping_amount),l+=parseFloat(p.coupon_discount_amount)})),r()("#order_number").text(a[0]),r()("#order_summary tbody").html(o),r()("#order_summary .totals").html(n.toFixed(2)),r()("#orderDiscount").html("$"+l.toFixed(2)),r()("#orderSubTotal").html("$"+n.toFixed(2)),r()("#orderShipping").html("$"+u.toFixed(2)),r()("#orderTotal").html("$"+(u+n).toFixed(2)),(0,i.resetFormState)(),r()(".sticky-product-image").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o=JSON.parse((0,s.getSessionStorage)("stickyImagesList"));o&&r().each(o,(function(o,a){parseInt(a[0].pid)==parseInt(t)&&e.attr("src",a[0].url)}))}));break;case 350:(0,i.throwStickyError)("error","Order Number Not Found","../");break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred."),(0,i.debug)(t)}}))}function A(e,t){var o=r()("#cBillProductIndex").val(),a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/coupon_validate"),method:"POST",timeout:0,headers:authHeaders,data:JSON.stringify({shippingId:(0,s.getConfig)().products[o].shippingID,campaignId:(0,s.getConfig)().products[o].campaignID,email:t,products:[{product_id:(0,s.getConfig)().products[o].pid}],promo_code:e})};r().ajax(a).done((function(e){100===parseInt(e.response_code)?((0,i.resetFormState)(),(0,i.throwStickyError)("info","Code OK. Discount: $".concat(e.coupon_amount))):((0,i.resetFormState)(),(0,i.throwStickyError)("error",e.error_message),(0,i.debug)(e))}))}function C(e,t){r()("#shipCouponButton").text("Checking..."),sapphireCart.loadCart();for(var o=sapphireCart.getCart().cart,a=[],n=0;n<o.length;n++)a.push({product_id:o[n].itemID,quantity:1});var c={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/coupon_validate"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({shipping_id:o[0].itemShippingID,campaign_id:o[0].itemCampaignID,email:t,products:a,promo_code:e})};r().ajax(c).done((function(t){switch(parseInt(t.response_code)){case 100:(0,i.resetFormState)(),(0,i.debug)(t),sapphireCart.addCouponSimple(e,t.coupon_amount),displayCart();break;case 342:(0,i.resetFormState)(),r()("#shipCouponButton").text("Apply"),(0,i.throwStickyError)("info","Please enter email address to use Promo Codes");break;default:(0,i.resetFormState)(),r()("#capplied").css("color","red"),r()("#capplied").html("Coupon Code is incorrect"),r()("#capplied").show(),r()("#shipCouponButton").text("Apply"),(0,i.debug)(t)}}))}function _(){r()(".overlay, .processing").show(),r()("#order_summary tbody").html("");var e="",t=0,o=0,a=0,n=0;r().each((0,s.getConfig)().campaignID,(function(l,d){var u={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_find"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({start_date:new Date.parse("today").add(-1).year().toString("MM/dd/yyyy"),start_time:"",end_date:new Date.parse("today").add(1).day().toString("MM/dd/yyyy"),end_time:"",date_type:"create",campaign_id:d.id,criteria:{email:(0,s.getCookieValue)("sticky_customer_email")},member_token:(0,s.getCookieValue)("sticky_member_token"),return_type:"order_view"})};r().ajax(u).done((function(s){switch(parseInt(s.response_code)){case 100:t+=1,r().each(s.data,(function(t,o){if(o.products[0].billing_model)if(7!=o.order_status&&11!=o.order_status){a+=1;var s="",l="",d="Approved",u=o,p="table-light",g='<a href="#" onclick="sticky_user_order_details('.concat(t,", '").concat(btoa(u.email_address),'\'); return false;" class="btn btn-secondary w-100"><span class="desktop">Details</span><span class="mobile"><i class="bi bi-info-circle-fill"></i></span></a>'),m=u.products[0].billing_model.name,h=new Date(u.time_stamp.substr(0,u.time_stamp.indexOf(" "))).toString("MMMM d, yyyy hh:mm");if(1==u.products[0].is_recurring){m=u.products[0].billing_model.name;var f=new Date(u.products[0].recurring_date).toString("MMM d, yyyy"),b="<br/><small>Next Shipment: ".concat(f,"</small>");1==u.stop_after_next_rebill&&(b+=' <span class="badge bg-warning">Will be stopped after next shipment</span>'),p="table-success"}else b="",m=u.products[0].billing_model.name,1==u.on_hold&&(b+=' <span class="badge bg-danger">Subscription stopped</span>');6==u.order_status&&(d="Void/Refunded",p="table-danger"),u.tracking_number&&(d="Shipped",p="table-info"),r().each(u.products,(function(e,t){0==e||(s+='<div class="additionalProduct" data-pid="'.concat(t.product_id,'" data-shippable="').concat(t.is_shippable,'"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t.product_id,'" data-shippable="').concat(t.is_shippable,'" id="sticky-product-').concat(t.product_id,'" />').concat(t.name,' <a href="#" target="_blank"></a></div>'),'<div class="gitz mobilz"><strong>'.concat(t.name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t.product_id,'" id="sticky-product-').concat(t.product_id,'" /></div></div>'))})),l+='<div class="mobileOnly">$'.concat(u.order_total,"<br/>").concat(d,"<br/>").concat(m).concat(b,"</div>"),(0,i.debug)("Orders raw data:"),(0,i.debug)(u),e+='<tr id="order-entry-'.concat(t,'" data-pid="').concat(u.products[0].product_id,'" data-shippable="').concat(u.products[0].is_shippable,'" class="').concat(p," ty-order-entry order-entry-").concat(t,'">'),e+="<td>".concat(t,"</td>"),e+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image oms-entry" data-pid="').concat(u.products[0].product_id,'" id="sticky-product-').concat(u.products[0].product_id,'" />\x3c!-- i class="bi bi-box-seam"></i--\x3e ').concat(u.products[0].name).concat(s).concat(l,"</td>"),e+='<td class="hideOnMobile">'.concat(h,"</td>"),e+='<td class="hideOnMobile">'.concat(m).concat(b,"</td>"),e+='<td class="hideOnMobile">$'.concat(u.order_total,"</td>"),e+='<td class="hideOnMobile">'.concat(d,"</td>"),e+='<td class="align-top orderDetails" align="center">'.concat(g," </td>"),e+="</tr>"}else n+=1;else n+=1})),r()("#order_summary tbody").append(e),r()("#order_summary tbody tr").each((function(){r()(".".concat(r()(this).attr("id"))).not(":last").remove()}));break;case 333:o+=1,t+=1;break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred."),(0,i.debug)(s)}}));var p=setInterval((function(){t==(0,s.getConfig)().campaignID.length&&(r().bootstrapSortable({sign:"reversed"}),O(),B(),(0,i.resetFormState)(),P(),clearInterval(p),0==a&&0!=n&&((0,i.resetFormState)(),(0,i.throwStickyError)("info","You don't have active orders."),clearInterval(p))),o==(0,s.getConfig)().campaignID.length&&((0,i.resetFormState)(),(0,i.throwStickyError)("error","You don't have any orders for now."),clearInterval(p))}),1e3)}))}function k(e,t){r()(".overlay, .processing").show();var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e})};r().ajax(o).done((function(e){if(100===parseInt(e.response_code))if(e.email_address==atob(t)){r()(".updateOrderDetails .btn").show();var o='<table class="table table-bordered"><thead><tr><th scope="col" colspan="2">Delivery Information</th></tr></thead><tbody><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Name:</strong></td><td id="fullname" class="tab_cel2"><input type="text" id="newShippingFName" placeholder="First Name" value="'.concat(e.shipping_first_name,'" class="form-control half" required><input type="text" id="newShippingLName" placeholder="Last Name" value="').concat(e.shipping_last_name,'" class="form-control half" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address" class="tab_cel2"><input type="text" id="newShippingAddress" placeholder="Address" value="').concat(e.shipping_street_address,'" class="form-control" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 2:</strong></td><td id="address2" class="tab_cel2"><input type="text" id="newShippingAddress2" placeholder="Address" value="').concat(e.shipping_street_address2,'" class="form-control"></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>City/State:</strong></td><td id="city_state" class="tab_cel2"><input type="text" id="newShippingCity" placeholder="City" value="').concat(e.shipping_city,'" class="form-control half" required><select id="newShippingState" class="form-select half"></select></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Zip:</strong></td><td id="zip" class="tab_cel2"><input type="text" placeholder="Zip" id="newShippingZip" value="').concat(e.shipping_postcode,'" class="form-control" required></td></tr></tbody></table>'),a='<table class="table table-bordered"><thead><tr><th scope="col" colspan="2">Billing Information</th></tr></thead><tbody><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Name:</strong></td><td id="fullname" class="tab_cel2"><input type="text" id="newBillingFName" placeholder="First Name" value="'.concat(e.billing_first_name,'" class="form-control half" required><input type="text" id="newBillingLName" placeholder="Last Name" value="').concat(e.billing_last_name,'" class="form-control half" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address" class="tab_cel2"><input type="text" id="newBillingAddress" placeholder="Address" value="').concat(e.billing_street_address,'" class="form-control" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address2" class="tab_cel2"><input type="text" id="newBillingAddress2" placeholder="Address" value="').concat(e.billing_street_address2,'" class="form-control"></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>City/State:</strong></td><td id="city_state" class="tab_cel2"><input type="text" id="newBillingCity" placeholder="City" value="').concat(e.billing_city,'" class="form-control half" required><select id="newBillingState" class="form-select half"></select></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Zip:</strong></td><td id="zip" class="tab_cel2"><input type="text" placeholder="Zip" id="newBillingZip" value="').concat(e.billing_postcode,'" class="form-control" required></td></tr></tbody></table>'),s='<tr><td class="tab_cel1 text-right orderContents"><i class="bi bi-box-seam"></i> '.concat(e.products[0].name,"</td><td>$").concat(e.products[0].price,"</td></tr>");globalsOrderId=e.order_id,r().each(e.products,(function(e,t){0==e||(s+='<tr><td class="tab_cel1 text-right orderContents freeGift"><i class="bi bi-gift"></i> '.concat(t.name,"</td><td>$").concat(t.price,"</td></tr>"),s+='<tr class="virtualProduct"><td colspan="2" class="tab_cel1 text-right" data-pid="'+t.product_id+'"><div class="spinner-border text-secondary" role="status"><span class="visually-hidden">Loading...</span></div></td></tr>',0==t.is_shippable&&D(t.product_id))}));var n='<select id="billingModelUpdate" name="billingModelUpdate" class="form-select" aria-label="Default select example"><option value="'.concat(e.products[0].billing_model.id,'" disabled selected> - Change billing cycle - </option>').concat(getBillingModels(e.products[0].billing_model.id),"</select>");if(1==e.products[0].is_recurring)var c=new Date(e.products[0].recurring_date).toString("MMM d, yyyy"),l=new Date(e.products[0].recurring_date).toString("MM/dd/yyyy"),d="<strong>".concat(e.products[0].billing_model.name,"</strong><br/>Next shipment date: ").concat(c);else d=e.products[0].billing_model.name;if(0==e.is_rma||0==e.is_voided){var u='<tr><td class="tab_cel1 text-right"> '.concat(d,"</td></tr>");1==e.products[0].is_recurring?(u+='<tr><td class="tab_cel1 text-right">',u+=' <a class="btn btn-danger" href="#" onclick="sticky_update_order_subscription('.concat(e.order_id,", ").concat(e.products[0].product_id,', \'subscription_stop\'); return false;"><i class="bi bi-pause-fill"></i> Pause Subscription</a>'),u+="</td></tr>",u+='<tr><td class="tab_cel2 bilcycle">'.concat(n,' <label>New Next Recurring Date:</label> <input type="text" value="').concat(l,'" class="form-control" name="newRecurringDate" id="newRecurringDate" data-format="MM/dd/yyyy" autocomplete="off" /> <a href="#" onclick="sticky_update_order_subscription(').concat(e.order_id,", ").concat(e.products[0].product_id,', \'billing_model\'); return false;" class="btn btn-primary">Save</a></td></tr>')):1==e.on_hold&&(u+='<tr><td class="tab_cel1 text-right">',u+=' <a class="btn btn-success" href="#" onclick="sticky_update_order_subscription('.concat(e.order_id,", ").concat(e.products[0].product_id,', \'subscription_restart\'); return false;"><i class="bi bi-play-fill"></i> Resume Subscription</a>'),u+="</td></tr>")}else u='<tr><td class="tab_cel1 text-right"><em>Not Available. Order is Voided.</em></td></tr>';if(e.tracking_number?(r()("#trackNumber").html("<tr><td>".concat(e.tracking_number,' <a href="#" target="_blank" id="shipmentTrackingLink">Track Shipment</a></td></tr>')),r()(".trackingCol").show(),detectCarrier(e.tracking_number)):r()(".trackingCol").hide(),e.tracking_number&&(u='<tr><td class="tab_cel1 text-right"> '.concat(d,"</td></tr>")),0==e.products[0].is_shippable)var p='<tr class="virtualProduct"><td class="tab_cel1 text-right" data-pid="'+e.products[0].product_id+'"><div class="spinner-border text-secondary" role="status"><span class="visually-hidden">Loading...</span></div></td></tr>';else p="";r()("#orderModal h5").text("Order #".concat(e.order_id)),r()("#orderModal .modal-body #shippingInfo").html(o),r()("#orderModal .modal-body #billingInfo").html(a),r()("#orderModal .modal-body #orderContents").html(s),r()("#orderModal .modal-body #billingModel").html(u),r()("#orderModal .modal-body #billingModel").append(p),r()("#newRecurringDate").datepicker({autoclose:!0,format:"mm/dd/yyyy",todayHighlight:!0}),e.tracking_number&&(r()("#orderModal .modal-body #shippingInfo input, #orderModal .modal-body #shippingInfo select").attr("disabled","true"),r()("#orderModal .modal-body #billingInfo input, #orderModal .modal-body #billingInfo select").attr("disabled","true"),r()(".updateOrderDetails .btn").hide()),0==e.products[0].is_shippable&&D(e.products[0].product_id),setStickyStates("newShippingState",e.shipping_state),setStickyStates("newBillingState",e.billing_state),(0,i.resetFormState)(),r()("#orderModalOpener").click()}else(0,i.throwStickyError)("error","Order Access Violation");else(0,i.resetFormState)(),(0,i.throwStickyError)("error","An error has occurred"),(0,i.debug)(e)}))}function I(e,t,o){switch(r()(".overlay, .processing").show(),o){case"subscription_restart":var a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/subscription_order_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e,product_id:t,status:"reset"})};break;case"subscription_stop":a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/subscription_order_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e,product_id:t,status:"stop"})};break;case"billing_model":a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/subscription_order_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:e,product_id:t,billing_model_id:r()("#billingModelUpdate option:selected").val(),new_recurring_date:r()("#newRecurringDate").val()})}}r().ajax(a).done((function(t){100===parseInt(t.response_code)?(loadUserOrders(),(0,i.resetFormState)(),r()("#orderModal .btn-close").click(),k(e,"".concat(btoa((0,s.getCookieValue)("sticky_customer_email"))))):((0,i.resetFormState)(),(0,i.throwStickyError)("error","Update Error. Try again later."),(0,i.debug)(t))}))}function x(e){r()(".overlay, .processing").show();var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_update"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:'{"order_id":{"'.concat(e,'":{"shipping_first_name":"').concat(r()("#newShippingFName").val(),'", "shipping_last_name":"').concat(r()("#newShippingLName").val(),'", "shipping_address1":"').concat(r()("#newShippingAddress").val(),'", "shipping_address2":"').concat(r()("#newShippingAddress2").val(),'", "shipping_city":"').concat(r()("#newShippingCity").val(),'", "shipping_zip":"').concat(r()("#newShippingZip").val(),'", "shipping_state":"').concat(r()("#newShippingState option:selected").val(),'", "billing_first_name":"').concat(r()("#newBillingFName").val(),'", "billing_last_name":"').concat(r()("#newBillingLName").val(),'", "billing_address1":"').concat(r()("#newBillingAddress").val(),'", "billing_address2":"').concat(r()("#newBillingAddress2").val(),'", "billing_city":"').concat(r()("#newBillingCity").val(),'", "billing_zip":"').concat(r()("#newBillingZip").val(),'", "billing_state":"').concat(r()("#newBillingState option:selected").val(),'"}}}')};r().ajax(t).done((function(t){100===parseInt(t.response_code)?(loadUserOrders(),(0,i.resetFormState)(),r()("#orderModal .btn-close").click(),k(e,"".concat(btoa((0,s.getCookieValue)("sticky_customer_email"))))):((0,i.resetFormState)(),r()("#orderModal .btn-close").click(),k(e,"".concat(btoa((0,s.getCookieValue)("sticky_customer_email")))),(0,i.debug)(t))}))}var E=[],N=[];function O(){r()("tr.ty-order-entry").each((function(){var e=parseInt(r()(this).attr("data-pid")),t=r()(this).attr("id").substring(12);0==r()(this).attr("data-shippable")&&-1==E.indexOf(t)&&(E.push(t),L(e,t))}))}function B(){r()(".additionalProduct").each((function(){var e=parseInt(r()(this).attr("data-pid"));0==r()(this).attr("data-shippable")&&-1==E.indexOf(e)&&(N.push(e),L(e,e))}))}function P(){r()(".sticky-product-image").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/products/").concat(t,"/images"),method:"GET",timeout:0,headers:(0,s.getConfig)().authHeaders};r().ajax(o).done((function(t){"SUCCESS"==t.status&&t.data&&e.attr("src",t.data[0].path)}))}))}function D(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/products/").concat(e),method:"GET",timeout:0,headers:(0,s.getConfig)().authHeaders};r().ajax(t).done((function(t){if("SUCCESS"==t.status&&t.data&&t.data.custom_fields[0]){var o="";if(r().each(t.data.custom_fields,(function(e,t){29==t.id&&(o=t.values[0].value)})),o){var a=o;r()("td[data-pid="+e+"]").html('<a href="'+a+'" target="_blank">Click here to download</a>')}else r()("tr.virtualProduct").remove()}}))}function L(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().api2Version,"/products/").concat(e),method:"GET",timeout:0,headers:(0,s.getConfig)().authHeaders};r().ajax(o).done((function(o){if("SUCCESS"==o.status&&o.data&&o.data.custom_fields[0]){var a="";if(r().each(o.data.custom_fields,(function(e,t){29==t.id&&(a=t.values[0].value)})),a){var s=a;t==e?(r()(".additionalProduct[data-pid="+e+"] a").attr("href",s),r()(".additionalProduct[data-pid="+e+"] a").html("Click to download")):r()("tr.order-entry-"+t+" td.orderDetails").append('<a href="'+s+'" target="_blank" class="btn btn-success w-100" style="margin-top:10px;"><span class="desktop">Download</span><span class="mobile"><i class="bi bi-save-fill"></i></span></a>')}else t==e&&r()(".additionalProduct[data-pid="+e+"] a").hide()}}))}function F(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/order_view"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({order_id:t})};r().ajax(o).done((function(t){100===parseInt(t.response_code)?(e=r().trim(e),btoa(t.email_address)==btoa(e)?T(t.customer_id,t.email_address):((0,i.resetFormState)(),(0,i.throwStickyError)("error","Customer Not Found"))):((0,i.resetFormState)(),(0,i.throwStickyError)("error","Customer Not Found"))}))}function T(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_create"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({customer_id:e,event_id:4,email:t})};r().ajax(o).done((function(e){switch(parseInt(e.response_code)){case 100:(0,i.resetFormState)(),(0,i.throwStickyError)("info","Your account's credentials were sent you by email.<br/>Now you can Log into the system.","./#login"),showSection("login");break;case 4014:(0,i.resetFormState)(),(0,i.throwStickyError)("error",'You already claimed your membership.<br/>Log into your account or use "Forgot Password" to recover your credentials.');break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("info","Customer Not Found")}}))}function M(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_forgot_password"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({event_id:2,email:e})};r().ajax(t).done((function(e){switch(parseInt(e.response_code)){case 100:(0,i.resetFormState)(),(0,i.throwStickyError)("info","Your account's credentials were sent you by email. Follow the instructions."),r()("#respass")[0].reset();break;case 4003:(0,i.resetFormState)(),(0,i.throwStickyError)("error",'Email was not found.<br/>Use correct email address or click "Claim Account" first.');break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","UNKNOWN ERROR"),(0,i.debug)(e)}}))}function V(e,t,o){var a={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_reset_password"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({member_temp_password:t,member_new_password:o,email:e})};r().ajax(a).done((function(e){switch(parseInt(e.response_code)){case 100:(0,i.resetFormState)(),(0,i.throwStickyError)("info","Password was updated.<br/>Now you can Log into your account."),r()("#setpass")[0].reset();break;case 910:(0,i.resetFormState)(),(0,i.throwStickyError)("error","Your password must be at least <b>8</b> characters long."),(0,i.debug)(e);break;case 4008:(0,i.resetFormState)(),(0,i.throwStickyError)("error","Wrong temporary password."),(0,i.debug)(e);break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error","UNKNOWN ERROR"),(0,i.debug)(e)}}))}function R(e,t){var o={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_login"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({member_password:t,email:e})};r().ajax(o).done((function(e){switch(parseInt(e.response_code)){case 100:(0,i.resetFormState)(),document.cookie="sticky_member_token=".concat(e.data.member_token,";path=/;expires=").concat(e.data.token_expires_at),document.cookie="sticky_customer_email=".concat(e.data.email,";path=/;expires=").concat(e.data.token_expires_at),document.cookie="sticky_customer_id=".concat(e.data.customer_id,";path=/;expires=").concat(e.data.token_expires_at),sessionStorage.setItem("sticky_member_token",e.data.member_token),sessionStorage.setItem("sticky_customer_id",e.data.customer_id),sessionStorage.setItem("sticky_customer_email",e.data.email),window.location.href="member.html",r()("#logform")[0].reset();break;case 910:case 4008:case 4003:(0,i.resetFormState)(),(0,i.throwStickyError)("error","Wrong login/password."),(0,i.debug)(e);break;default:(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.response_message),(0,i.debug)(e)}}))}function U(e){var t={url:"https://".concat((0,s.getConfig)().domain,"/").concat((0,s.getConfig)().apiVersion,"/member_logout"),method:"POST",timeout:0,headers:(0,s.getConfig)().authHeaders,data:JSON.stringify({token:e})};r().ajax(t).done((function(e){parseInt(e.response_code)})),document.cookie="sticky_member_token=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie="sticky_customer_email=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie="sticky_customer_id=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",(0,s.deleteSessionStorage)("sticky_member_token"),(0,s.deleteSessionStorage)("sticky_customer_id"),(0,s.deleteSessionStorage)("sticky_customer_email"),window.location.href="./"}r()("#contactModal").on("hidden.bs.modal",(function(){r()("#sForm #sFormSuccess").remove(),r()("#sFormContainer").slideDown()}));var q=0,W=function(){if(1==++q){r()("#sForm").append('<div id="sFormOverlay"><div id="sFormProcessor"><div><img src="data:image/gif;base64,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" alt="" /></div><p>Processing</p></div></div>'),console.log(q);var e={url:(0,s.getConfig)().contactFormURL,method:"POST",contentType:"application/json",data:JSON.stringify({sFormAutoFillProtection:r()("#sFormAutoFillProtection").val(),sFormOfferPage:document.location.pathname.replace(/^[/]?/,"").split("/")[0],sFormName:r()("#sFormName").val(),sFormEmail:r()("#sFormEmail").val(),sFormPhone:r()("#sFormPhone").val(),sFormSubject:r()("#sFormSubject").val(),sFormComments:r()("#sFormComments").val(),sFormAgentInfo:window.navigator.userAgent})};r().ajax(e).done((function(e){(0,i.debug)(e),e.success&&setTimeout((function(){r()('#sForm button[type="submit"]').show(),r()("#sForm #sFormOverlay").remove(),r()("#sForm")[0].reset(),r()("#sFormContainer").slideUp("slow",(function(){r()("#sForm").append('<div id="sFormSuccess" class="alert alert-success">Message was sent. We will contact you shortly.</div>')}))}),1e3)})).fail((function(e,t,o){console.log("Mailer Error: ",t,o),r()("#sForm #sFormOverlay").remove(),r()('#sForm button[type="submit"]').show()}))}};function j(){var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/landers/clicks/import?pageType=presellPage&ipAddress=")+(0,i.getIP)()+"&campaignId="+(0,s.getConfig)().products[0].campaignID_konnektive+"&requestUri="+encodeURIComponent(window.location.href),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(e).done((function(e){"SUCCESS"==e.result?(sessionStorage.setItem("konnektiveSessionID",e.message.sessionId),(0,i.debug)("Konnektive session ID: "+e.message.sessionId)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}function H(){var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/landers/clicks/import?&pageType=leadPage&ipAddress=")+(0,i.getIP)()+"&campaignId="+(0,s.getConfig)().products[0].campaignID_konnektive+"&requestUri="+encodeURIComponent(window.location.href),method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(e).done((function(e){"SUCCESS"==e.result?(sessionStorage.setItem("konnektiveAffVals",e.message.affVals),e.message.affVals&&(0,i.debug)("Konnektive Affiliate Variables:"+e.message.affVals)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}function Y(e,t){var o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/leads/import?ipAddress=")+(0,i.getIP)()+"&campaignId="+(0,s.getConfig)().products[0].campaignID_konnektive+"&address1="+encodeURIComponent(e.address1)+"&address2="+encodeURIComponent(e.address2)+"&city="+e.city+"&country="+e.country+"&emailAddress="+e.emailAddress+"&firstName="+e.firstName+"&lastName="+e.lastName+"&phoneNumber="+e.phoneNumber+"&postalCode="+e.postalCode+"&custom1="+e.custom1+"&custom2="+e.custom2+"&custom3="+e.custom3+"&custom4="+e.custom4+"&custom5="+parseInt(e.custom5)+"&custom_sessionID="+e.custom_sessionID+"&custom_customer_age="+e.custom_customer_age+"&custom_customer_gender="+e.custom_customer_gender+"&custom_issue_type="+e.custom_issue_type+"&custom_issue_value="+e.custom_issue_value+"&custom_lpURL="+e.custom_lpURL+"&custom_billing_model="+e.custom_billing_model+"&custom_product_selection="+e.custom_product_selection+"&billShipSame=Y&state="+e.state,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(o).done((function(e){"SUCCESS"==e.result?(sessionStorage.setItem("konnektiveLeadData",JSON.stringify(e.message)),(0,i.debug)("Konnektive Lead Data: "+e.message),(0,i.debug)("Checkout type: "+t),"generic"==t&&document.shipping_form.submit(),"onepage"==t&&G(),"sapphire"==t&&oe()):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}function J(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"generic",t="",o="",a=0,i="";r()("#cIssueType").length&&(t=r()("#cIssueType").val()),r()("#cIssueValue").length&&(o=r()("#cIssueValue").val()),r()("#cAge").length&&(a=r()("#cAge").val()),r()("#cGender").length&&(i=r()("#cGender").val());var n={address1:r()("#cShipAddress1").val(),address2:r()("#cShipAddress2").val(),city:r()("#cShipCity").val(),country:r()("#cShipCountry").val(),emailAddress:r()("#cEmail").val(),firstName:r()("#cShipFName").val(),lastName:r()("#cShipLName").val(),phoneNumber:r()("#cPhone2").val(),postalCode:r()("#cShipZip").val(),state:r()("#cShipState").val(),custom_sessionID:getLocalStorage("session_id"),custom_customer_age:a,custom_customer_gender:i,custom_issue_type:t,custom_issue_value:o,custom_lpURL:(0,s.getSessionStorage)("lp_url"),custom_billing_model:r()("#cBillPurchaseType").val(),custom_product_selection:r()("#cBillProductIndex").val(),custom1:t,custom2:o,custom3:a,custom4:i,custom5:r()("#cBillProductIndex").val()};Y(n,e)}function z(){var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/landers/clicks/import?pageType=checkoutPage&ipAddress=")+(0,i.getIP)()+"&campaignId="+(0,s.getConfig)().products[0].campaignID_konnektive+"&fraudPixel=1&requestUri="+encodeURIComponent(window.location.href),method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(e).done((function(e){"SUCCESS"==e.result?(r()("body").append(e.message.pixel),(0,i.debug)(e.message.pixel),sessionStorage.setItem("konnektiveAffVals",e.message.affVals),e.message.affVals&&(0,i.debug)("Konnektive Affiliate Variables:"+e.message.affVals)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}function G(){var e=[],t=r().parseJSON(sessionStorage.getItem("konnektiveLeadData"));if(t){e=t;var o=r()("#cBillProductIndex").val(),a=r()("#cBillPurchaseType").val(),n=(0,i.stickyGetCountryEnv)("cShipCountry");sessionStorage.setItem("sticky_country",n),sessionStorage.setItem("sticky_selectedIndex",o),sessionStorage.setItem("sticky_purchaseType",a),(0,s.getConfig)().international[0][n]?(0,s.getConfig)().international[0][n][0].shipping:(0,s.getConfig)().international[0].all[0].shipping;var c="Y"===r()("#billEqualShip").val()?"YES":"NO";"on"===r()("#billEqualShip").val()&&(c=r()("#billEqualShip").prop("checked")?"Y":"N"),r()("#billEqualShip").prop("checked")&&(c="Y");var l=(0,s.getConfig)().products[o].pid_konnektive;"subscribe"==a&&(l=(0,s.getConfig)().products[o].pid_konnektive_ss),(0,s.getConfig)().products[o].shippingID&&(0,s.getConfig)().products[o].shippingID,(0,i.clearPhone)(r()("#cPhone2").val());var d="",u="",p=0,g="";r()("#cIssueType").length&&(d=r()("#cIssueType").val()),r()("#cIssueValue").length&&(u=r()("#cIssueValue").val()),r()("#cAge").length&&(p=r()("#cAge").val()),r()("#cGender").length&&(g=r()("#cGender").val()),(0,s.setSessionStorage)("customer_age",p),(0,s.setSessionStorage)("customer_gender",g),(0,s.setSessionStorage)("customer_issue_type",d),(0,s.setSessionStorage)("customer_issue_value",u);var m=(0,s.getSessionStorage)("customer_age"),h=(0,s.getSessionStorage)("customer_gender"),f=(0,s.getSessionStorage)("customer_issue_type"),b=(0,s.getSessionStorage)("customer_issue_value"),w=""===r()("#cBillPromoCode").val()?"":r()("#cBillPromoCode").val(),y={address1:encodeURIComponent(r()("#cBillAddress1").val()),"&address2":encodeURIComponent(r()("#cBillAddress2").val()),"&billShipSame":c,"&city":r()("#cBillCity").val(),"&state":r()("#cBillState").val(),"&country":r()("#cBillCountry").val(),"&customerId":e.customerId,"&orderId":e.orderId,"&emailAddress":e.emailAddress,"&firstName":r()("#cBillFName").val(),"&ipAddress":(0,i.getIP)(),"&lastName":r()("#cBillLName").val(),"&paySource":"CREDITCARD","&phoneNumber":e.phoneNumber,"&postalCode":r()("#cBillZip").val(),"&shipAddress1":encodeURIComponent(r()("#cShipAddress1").val()),"&shipAddress2":encodeURIComponent(r()("#cShipAddress2").val()),"&shipCity":r()("#cShipCity").val(),"&shipCountry":r()("#cShipCountry").val(),"&shipFirstName":r()("#cShipFName").val(),"&shipLastName":r()("#cShipLName").val(),"&shipPostalCode":r()("#cShipZip").val(),"&shipState":r()("#cShipState").val(),"&campaignId":(0,s.getConfig)().products[o].campaignID_konnektive,"&cardNumber":r()("#ccNum").val(),"&cardMonth":r()("#ccMonth").val(),"&cardSecurityCode":r()("#ccCode").val(),"&cardYear":r()("#ccYear").val(),"&product1_id":l,"&product1_qty":1,"&custom_sessionID":getLocalStorage("session_id"),"&custom_customer_age":m,"&custom_customer_gender":h,"&custom_issue_type":f,"&custom_issue_value":b,"&custom_lpURL":(0,s.getSessionStorage)("lp_url"),"&custom_billing_model":r()("#cBillPurchaseType").val(),"&custom_product_selection":o,"&custom1":f,"&custom2":b,"&custom3":m,"&custom4":h,"&custom5":o},v=(0,s.getConfig)().konnektiveAPIURL+"/order/import?";r().each(y,(function(e,t){v+=e+"="+t})),w&&(v+="&couponCode="+w),0!==r()("#cBillGift").length&&(v+="&product2_id="+(0,s.getConfig)().gifts[0].pid_konnektive+"&product2_qty=1");var S={url:v,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(S).done((function(e){if("SUCCESS"!=e.result)(0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message);else if(sessionStorage.setItem("konnektivePurchaseData",JSON.stringify(e.message)),sessionStorage.setItem("order_id",e.message.orderId),(0,i.debug)("Konnektive PurchaseData: "+e.message),(0,s.getConfig)().enableUpsells){var t="checkout/bonus1.html?orderID="+e.message.orderId;r()('input[name="urlparams"]').val()&&(t+="&"+r()('input[name="urlparams"]').val()),r()(location).prop("href",t)}else r()(location).prop("href","checkout/thankyou.html?"+r()('input[name="urlparams"]').val())}))}else J("onepage")}function Z(){var e=r().parseJSON(sessionStorage.getItem("konnektivePurchaseData")),t=((0,s.getConfig)().upsellIndex,{url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/upsale/import?productId=")+(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].pid_konnektive+"&orderId="+e.orderId,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}});if((0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].voidMain){var o=sessionStorage.getItem("sticky_selectedIndex"),a=(0,s.getConfig)().products[o].pid_konnektive;"subscribe"==sessionStorage.getItem("sticky_purchaseType")&&(a=(0,s.getConfig)().products[o].pid_konnektive_ss),(0,s.getConfig)().products[o].isTrial&&(t.url+="&replaceProductId="+a)}r().ajax(t).done((function(t){if("SUCCESS"!=t.result)(0,i.debug)(t),(0,i.resetFormState)(),(0,i.skipUpsell)();else if((0,i.debug)(t.message),(0,s.getConfig)().upsells[(0,s.getConfig)().upsellIndex].voidMain){(0,i.debug)("Retail upsell taken. Replacing the Trial one.");var o=sessionStorage.getItem("sticky_selectedIndex");if((0,s.getConfig)().products[o].pid_konnektive,"subscribe"==sessionStorage.getItem("sticky_purchaseType")&&(0,s.getConfig)().products[o].pid_konnektive_ss,(0,s.getConfig)().products[o].isTrial){var a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/transactions/query?orderId=")+e.orderId,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(a).done((function(e){if("SUCCESS"==e.result){var t=e.message.data[0].transactionId;(0,i.debug)("TxnID to be voided: "+t);var o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/transactions/refund?transactionId=")+t+"&fullRefund=true&cancelPurchase=true&cancelReason=Retail upsell taken",method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(o).done((function(e){"SUCCESS"==e.result?((0,i.debug)("Main product TXN voided successfully. Moving forward."),(0,i.skipUpsell)()):((0,i.debug)(e.message),(0,i.resetFormState)(),(0,i.throwStickyError)("error","Error canceling trial product. Please call us at "+(0,s.getConfig)().servicePhone+" so we can assist you in placing your order."))}))}else(0,i.debug)(e.message),(0,i.resetFormState)(),(0,i.throwStickyError)("error","Can't get current order info. Please call us at "+(0,s.getConfig)().servicePhone+" so we can assist you in placing your order.")}))}else(0,i.skipUpsell)()}else(0,i.skipUpsell)()}))}function Q(e){var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?orderId=")+e,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(t).done((function(e){return"SUCCESS"==e.result?e.message.data:((0,i.debug)(e),void(0,i.throwStickyError)("error",e.message))}))}function K(){if(isIndex()&&sessionStorage.removeItem("stickyImagesList"),e=(0,s.getSessionStorage)("stickyImagesList"))e=JSON.parse(e);else{var e=[];r().each((0,s.getConfig)().products,(function(t,o){e.push([{pid:o.pid_konnektive,url:""}]),e.push([{pid:o.pid_konnektive_ss,url:""}])})),r().each((0,s.getConfig)().upsells,(function(t,o){e.push([{pid:o.pid_konnektive,url:""}])})),r().each((0,s.getConfig)().gifts,(function(t,o){e.push([{pid:o.pid_konnektive,url:""}])})),e.push([{pid:(0,s.getConfig)().shipProtection[0].pid_konnektive,url:""}]),(0,s.setSessionStorage)("stickyImagesList",JSON.stringify(e))}var t="",o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/campaign/query?campaignId=")+(0,s.getConfig)().products[0].campaignID_konnektive,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(o).done((function(o){"SUCCESS"==o.result&&(t=o.message.data[(0,s.getConfig)().products[0].campaignID_konnektive].products,r().each(e,(function(o,a){a[0].url||r().each(t,(function(t,r){r.campaignProductId==a[0].pid&&r.imageUrl&&(e[o][0].url=r.imageUrl,(0,s.setSessionStorage)("stickyImagesList",JSON.stringify(e)))}))})))}))}function X(){if(sessionStorage.getItem("konnektivePurchaseData")){var e=r().parseJSON(sessionStorage.getItem("konnektivePurchaseData")),t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/confirm?orderId=")+e.orderId,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(t).done((function(e){"SUCCESS"==e.result?(0,i.debug)("Order finalized"):((0,i.debug)(e),(0,i.throwStickyError)("error",e.message))}))}else handleFinishedOrderError()}function $(){X();var e=r().parseJSON(sessionStorage.getItem("konnektivePurchaseData"));if(e){var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?orderId=")+e.orderId,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(t).done((function(t){if("SUCCESS"==t.result){var o="",a="",n="",l="",d=0,u=t.message.data[0];(0,i.debug)(u),r().each(t.message.data[0].items,(function(t,r){if(r.purchaseCycle){var s=new Date(r.nextBillDate).toString("MMM d, yyyy");"<br/><small>Next Shipment: ".concat(s,"</small>")}"VOID"==r.txnType?n="order-voided":(n="",d+=parseFloat(r.shipping));var i=parseFloat(r.price)+parseFloat(r.shipping);o+='<tr class="ty-order-entry '.concat(n," order-entry-").concat(t,'">'),o+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t,'" id="sticky-product-').concat(t,'" />').concat(r.name.replace(/ *\([^)]*\) */g,""),"</td>"),o+="<td>".concat(u.orderId,"</td>"),o+="<td>".concat(e.items[0].descriptor,"</td>"),o+="<td>".concat(r.qty,"</td>"),o+="<td>$".concat(r.price,"</td>"),o+="<td>$".concat(r.shipping,"</td>"),o+="<td>$"+i.toFixed(2)+"</td>",o+="</tr>",l+='<tr class="ty-order-entry '.concat(n," order-entry-").concat(t,'">'),l+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t,'" id="sticky-product-').concat(t,'" />').concat(r.name.replace(/ *\([^)]*\) */g,""),"</td>"),l+='<td align="right">$'.concat(r.price,"</td>"),l+='<td align="right">'.concat(r.qty,"</td>"),l+='<td align="right">$'+i.toFixed(2)+"</td>",l+="</tr>",a+='<tr class="ty-order-entry '.concat(n," mobile-order-entry-").concat(t,'">'),a+="<td><strong>".concat(r.name,'</strong><div class="smallInfo"><img src="').concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image" data-pid="').concat(t,'" id="sticky-product-').concat(t,'" /> Order : ').concat(e.orderId,"<br/>Billed as: ").concat(e.items[0].descriptor,"<br/>Qty: ").concat(r.qty,"<br/>Shipping: $").concat(r.shipping,"</div>")+"</td>",a+="<td>$".concat(r.price,"</td>"),a+="</tr>"})),parseFloat(u.totalDiscount)&&(o+='<tr class="table-light"><td colspan="6"><strong>Discount:</strong></td><td><strong>$'+parseFloat(u.totalDiscount).toFixed(2)+"</strong></td></tr>",a+='<tr class="table-light"><td align="right"><strong>Discount:</strong></td><td><strong>$'+parseFloat(u.totalDiscount).toFixed(2)+"</strong></td></tr>",parseFloat(u.totalDiscount)),"TESTCARD"==u.cardType&&r()("#order_summary tfoot").append('<tr class="table-danger"><td colspan="7"><strong>THIS IS THE TEST ORDER</strong></td></td></tr>'),"sapphire"==(0,s.getConfig)().instance?(r()("#order_number").text(u.orderId),r()("#order_summary tbody").html(l),r()("#order_summary .totals").html(u.price),r()("#orderDiscount").html("$"+u.totalDiscount),r()("#orderSubTotal").html("$"+u.price),r()("#orderShipping").html("$"+parseFloat(d).toFixed(2)),r()("#orderTotal").html("$"+u.price)):(r()("#order_number").text(u.orderId),r()("#order_number").parent().text(r()("#order_number").parent().text().replace("#","")),r()("#fullname").text("".concat(u.firstName," ").concat(u.lastName)),r()("#address").text(u.shipAddress1),r()("#city_state").text("".concat(u.shipCity,", ").concat(u.shipState,", ").concat(u.shipCountry)),r()("#zip").text(u.shipPostalCode),r()("#order_summary tbody").html(o),r()("#order_summary .totals").html(parseFloat(u.price)+d),r()("#order_summary_mobile tbody").html(a),r()("#order_summary_mobile .totals").html(parseFloat(u.price)+d)),(0,i.resetFormState)(),r()(".sticky-product-image").each((function(){var e=r()(this),t=parseInt(r()(this).attr("data-pid")),o=JSON.parse((0,s.getSessionStorage)("stickyImagesList"));o&&r().each(o,(function(o,a){parseInt(a[0].pid)==parseInt(t)?e.attr("src",a[0].url):"sapphire"==(0,s.getConfig)().instance&&e.hide()}))}))}else(0,i.debug)(t),(0,i.throwStickyError)("error",t.message)}))}}function ee(e){try{var t=atob(e),o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?orderId=")+t,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(o).done((function(e){"SUCCESS"==e.result?((0,i.resetFormState)(),(0,i.debug)(e),"PARTIAL"==e.message.data[0].orderStatus?te(e.message.data[0]):(0,i.throwStickyError)("error","Order "+t+" already completed.","./")):((0,i.debug)(e),(0,i.throwStickyError)("error",e.message))}))}catch(t){(0,i.resetFormState)()}}function te(e){var t;r()("#cShipFName").val(e.shipFirstName),r()("#cShipLName").val(e.shipLastName),r()("#cShipAddress1").val(e.shipAddress1),r()("#cShipAddress2").val(e.shipAddress2),r()("#cShipCity").val(e.shipCity),r()("#cShipZip").val(e.shipPostalCode),(0,i.setCustomerShipState)(e.shipState),setCustomerShipCountry(e.shipCountry),r()("#cBillFName").val(e.firstName),r()("#cBillLName").val(e.lastName),r()("#cBillAddress1").val(e.address1),r()("#cBillAddress2").val(e.address2),r()("#cBillCity").val(e.city),r()("#cBillZip").val(e.postalCode),(0,i.setCustomerBillState)(e.state),setCustomerBillCountry(e.country),r()("#cPhone2").val(e.phoneNumber),r()("#cEmail").val(e.emailAddress);var o=e.custom5;parseInt(o)?(r()("#cBillProductIndex").val(o),r()(".optionSelector").length&&(r()(".optionSelector .selector[data-rel=".concat(billingModelTypeSelection,"]")).click(),r()(".packageselectors .package[data-pid=".concat(o,"]")).click()),setTimeout((function(){r()("[data-package-sku=".concat(o,"]")).click(),(0,i.debug)("Package selection restored with index :"+o)}),1e3)):(0,i.debug)("Package selection index not found");var a=(d(t={address1:e.address1,address2:e.address2,billShipSame:!1,campaignId:e.campaignId,city:e.city,country:e.country,emailAddress:e.emailAddress,firstName:e.firstName,ipAddress:e.ipAddress,lastName:e.lastName,phoneNumber:e.phoneNumber,postalCode:e.postalCode,state:e.state,shipFirstName:e.shipFirstName,shipLastName:e.shipLastName,shipAddress1:e.shipAddress1,shipAddress2:e.shipAddress2,shipCity:e.shipCity,shipState:e.shipState,shipCountry:e.shipCountry,shipPostalCode:e.shipPostalCode,orderStatus:e.orderStatus,orderType:e.orderType,customerId:e.customerId,agentUserId:e.agentUserId},"address2",e.address2),d(t,"orderId",e.clientOrderId),t);sessionStorage.setItem("konnektiveLeadData",JSON.stringify(a))}function oe(){sapphireCart.loadCart(),sapphireCart.getCart().cart;var e=[],t=r().parseJSON(sessionStorage.getItem("konnektiveLeadData"));if(t){e=t;var o=(0,i.stickyGetCountryEnv)("cShipCountry");sessionStorage.setItem("sticky_country",o),sessionStorage.setItem("sticky_selectedIndex",0),sessionStorage.setItem("sticky_purchaseType","onetime"),(0,s.getConfig)().international[0][o]?(0,s.getConfig)().international[0][o][0].shipping:(0,s.getConfig)().international[0].all[0].shipping;var a="Y"===r()("#billEqualShip").val()?"YES":"NO";"on"===r()("#billEqualShip").val()&&(a=r()("#billEqualShip").prop("checked")?"Y":"N"),r()("#billEqualShip").prop("checked")&&(a="Y"),(0,i.clearPhone)(r()("#cPhone2").val());var n="",c="",l=0,d="";r()("#cIssueType").length&&(n=r()("#cIssueType").val()),r()("#cIssueValue").length&&(c=r()("#cIssueValue").val()),r()("#cAge").length&&(l=r()("#cAge").val()),r()("#cGender").length&&(d=r()("#cGender").val()),(0,s.setSessionStorage)("customer_age",l),(0,s.setSessionStorage)("customer_gender",d),(0,s.setSessionStorage)("customer_issue_type",n),(0,s.setSessionStorage)("customer_issue_value",c);var u=(0,s.getSessionStorage)("customer_age"),p=(0,s.getSessionStorage)("customer_gender"),g=(0,s.getSessionStorage)("customer_issue_type"),m=(0,s.getSessionStorage)("customer_issue_value"),h=""===r()("#cBillPromoCode").val()?"":r()("#cBillPromoCode").val(),f={address1:encodeURIComponent(r()("#cBillAddress1").val()),"&address2":encodeURIComponent(r()("#cBillAddress2").val()),"&billShipSame":a,"&city":r()("#cBillCity").val(),"&state":r()("#cBillState").val(),"&country":r()("#cBillCountry").val(),"&customerId":e.customerId,"&orderId":e.orderId,"&emailAddress":e.emailAddress,"&firstName":r()("#cBillFName").val(),"&ipAddress":(0,i.getIP)(),"&lastName":r()("#cBillLName").val(),"&paySource":"CREDITCARD","&phoneNumber":e.phoneNumber,"&postalCode":r()("#cBillZip").val(),"&shipAddress1":encodeURIComponent(r()("#cShipAddress1").val()),"&shipAddress2":encodeURIComponent(r()("#cShipAddress2").val()),"&shipCity":r()("#cShipCity").val(),"&shipCountry":r()("#cShipCountry").val(),"&shipFirstName":r()("#cShipFName").val(),"&shipLastName":r()("#cShipLName").val(),"&shipPostalCode":r()("#cShipZip").val(),"&shipState":r()("#cShipState").val(),"&campaignId":sapphireCart.getCart().cart[0].itemCampaignID,"&cardNumber":r()("#ccNum").val(),"&cardMonth":r()("#ccMonth").val(),"&cardSecurityCode":r()("#ccCode").val(),"&cardYear":r()("#ccYear").val(),"&custom_sessionID":getLocalStorage("session_id"),"&custom_customer_age":u,"&custom_customer_gender":p,"&custom_issue_type":g,"&custom_issue_value":m,"&custom_lpURL":(0,s.getSessionStorage)("lp_url"),"&custom_billing_model":r()("#cBillPurchaseType").val(),"&custom_product_selection":0,"&custom1":g,"&custom2":m,"&custom3":u,"&custom4":p,"&custom5":0},b=(0,s.getConfig)().konnektiveAPIURL+"/order/import?";r().each(f,(function(e,t){b+=e+"="+t})),h&&(b+="&couponCode="+h);for(var w=0;w<sapphireCart.getCart().cart.length;w++)b+="&product"+(w+1)+"_id="+sapphireCart.getCart().cart[w].itemID+"&product"+(w+1)+"_qty=1";var y={url:b,method:"POST",timeout:0,headers:{"X-SESSION-ID":sessionStorage.getItem("konnektiveSessionID")}};r().ajax(y).done((function(e){"SUCCESS"==e.result?(sessionStorage.setItem("konnektivePurchaseData",JSON.stringify(e.message)),sessionStorage.setItem("order_id",e.message.orderId),(0,i.debug)("Konnektive PurchaseData: "+e.message),r()(location).prop("href","page-thank-you.php?orderID="+e.message.orderId)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message))}))}else(0,i.debug)("No lead data found. Creating the custom one."),J("sapphire")}function ae(e,t){var o={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?")+"&orderId="+t+"&emailAddress="+e,method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(o).done((function(t){"SUCCESS"==t.result?re(e):((0,i.debug)(t),(0,i.throwStickyError)("error",t.message))}))}function re(e){var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/members/reset?")+"&clubId="+(0,s.getConfig)().clubID+"&clubUsername="+e,method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(t).done((function(e){"SUCCESS"==e.result?((0,i.resetFormState)(),(0,i.throwStickyError)("info",e.message)):((0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.result))}))}function se(e,t){var o=new Date;o.setTime(o.getTime()+864e5);var a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/members/login?")+"&clubId="+(0,s.getConfig)().clubID+"&clubUsername="+e+"&clubPassword="+t,method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(a).done((function(t){"SUCCESS"==t.result?((0,i.resetFormState)(),"ACTIVE"==t.message.status?(document.cookie="konnektive_customer_email=".concat(e,";path=/;expires=").concat(o),document.cookie="konnektive_customer_id=".concat(t.message.memberId,";path=/;expires=").concat(o),document.cookie="sticky_member_token=".concat(t.message.memberId,";path=/;expires=").concat(o),sessionStorage.setItem("konnektive_customer_id",t.message.memberId),sessionStorage.setItem("konnektive_customer_email",e),sessionStorage.setItem("sticky_member_token",t.message.memberId),window.location.href="member.html",r()("#logform")[0].reset()):(0,i.throwStickyError)("error","Membership is not active.")):((0,i.debug)(t),(0,i.resetFormState)(),(0,i.throwStickyError)("error",t.message))}))}function ie(){r()(".overlay, .processing").show(),r()("#order_summary tbody").html("");var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?")+"&emailAddress="+sessionStorage.getItem("konnektive_customer_email")+"&resultsPerPage=100&orderStatus=COMPLETE&startDate="+new Date.parse("today").add(-1).year().toString("MM/dd/yyyy")+"&endDate="+new Date.parse("today").add(1).day().toString("MM/dd/yyyy"),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(e).done((function(e){if("SUCCESS"==e.result){(0,i.debug)(e);var t="";r().each(e.message.data,(function(e,o){var a="One Time Purchase",s="",i="",n="table-light",l=o.dateCreated;r().each(o.items,(function(e,r){var d='<a href="#" onclick="konnektive_user_order_details(\''.concat(o.orderId,"', '").concat(btoa(o.emailAddress),'\'); return false;" class="btn btn-secondary w-100"><span class="desktop">Details</span><span class="mobile"><i class="bi bi-info-circle-fill"></i></span></a>');if(""!=r.purchaseStatus){var u=new Date(r.nextBillDate).toString("MMM d, yyyy");a="Subscribe & Save",a+="<br/><small>Next Shipment: ".concat(u,"</small>"),s=r.purchaseStatus,"ACTIVE"==r.purchaseStatus&&(n="table-success"),"INACTIVE"==r.purchaseStatus&&(n="table-danger")}i='<div class="mobileOnly">$'.concat(o.totalAmount,"<br/>").concat(s,"<br/>").concat(a,"</div>"),t+='<tr id="order-entry-'.concat(o.orderId,"-").concat(o.actualOrderId,'" data-pid="').concat(o.actualOrderId,'" data-shippable="" class="').concat(n," ty-order-entry order-entry-").concat(o.orderId,"-").concat(o.actualOrderId,'">'),t+="<td>".concat(o.orderId,"</td>"),t+='<td><img src="'.concat(c.ORDER_ICON_PLACEHOLDER,'" class="sticky-product-image oms-entry" data-pid="').concat(e,'" id="sticky-product-').concat(e,'" />').concat(r.name).concat(i,"</td>"),t+='<td class="hideOnMobile">'.concat(l,"</td>"),t+='<td class="hideOnMobile">'.concat(a,"</td>"),t+='<td class="hideOnMobile">$'.concat(o.totalAmount,"</td>"),t+='<td class="hideOnMobile">'.concat(s,"</td>"),t+='<td class="align-top orderDetails" align="center">'.concat(d," </td>"),t+="</tr>"}))})),r()("#order_summary tbody").append(t),r()("#order_summary tbody tr").each((function(){})),r().bootstrapSortable({sign:"reversed"}),de(),(0,i.resetFormState)()}else(0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message)}))}function ne(e){r()(".overlay, .processing").show();var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/query?orderId=")+e,method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(t).done((function(e){if("SUCCESS"==e.result){(0,i.debug)(e),e.message.data[0].address2&&"undefined"!=e.message.data[0].address2||(e.message.data[0].address2=""),e.message.data[0].shipAddress2&&"undefined"!=e.message.data[0].shipAddress2||(e.message.data[0].shipAddress2=""),r()(".updateOrderDetails .btn").show();var t='<table class="table table-bordered"><thead><tr><th scope="col" colspan="2">Delivery Information</th></tr></thead><tbody><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Name:</strong></td><td id="fullname" class="tab_cel2"><input type="text" id="newShippingFName" placeholder="First Name" value="'.concat(e.message.data[0].shipFirstName,'" class="form-control half" required><input type="text" id="newShippingLName" placeholder="Last Name" value="').concat(e.message.data[0].shipLastName,'" class="form-control half" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address" class="tab_cel2"><input type="text" id="newShippingAddress" placeholder="Address" value="').concat(e.message.data[0].shipAddress1,'" class="form-control" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 2:</strong></td><td id="address2" class="tab_cel2"><input type="text" id="newShippingAddress2" placeholder="Address" value="').concat(e.message.data[0].shipAddress2,'" class="form-control" ></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>City/State:</strong></td><td id="city_state" class="tab_cel2"><input type="text" id="newShippingCity" placeholder="City" value="').concat(e.message.data[0].shipCity,'" class="form-control half" required><select id="newShippingState" class="form-select half"></select></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Zip:</strong></td><td id="zip" class="tab_cel2"><input type="text" placeholder="Zip" id="newShippingZip" value="').concat(e.message.data[0].shipPostalCode,'" class="form-control" required></td></tr></tbody></table>'),o='<table class="table table-bordered"><thead><tr><th scope="col" colspan="2">Billing Information</th></tr></thead><tbody><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Name:</strong></td><td id="fullname" class="tab_cel2"><input type="text" id="newBillingFName" placeholder="First Name" value="'.concat(e.message.data[0].firstName,'" class="form-control half" required><input type="text" id="newBillingLName" placeholder="Last Name" value="').concat(e.message.data[0].lastName,'" class="form-control half" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 1:</strong></td><td id="address" class="tab_cel2"><input type="text" id="newBillingAddress" placeholder="Address" value="').concat(e.message.data[0].address1,'" class="form-control" required></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Address 2:</strong></td><td id="address2" class="tab_cel2"><input type="text" id="newBillingAddress2" placeholder="Address" value="').concat(e.message.data[0].address2,'" class="form-control" ></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>City/State:</strong></td><td id="city_state" class="tab_cel2"><input type="text" id="newBillingCity" placeholder="City" value="').concat(e.message.data[0].city,'" class="form-control half" required><select id="newBillingState" class="form-select half"></select></td></tr><tr><td class="tab_cel1 col-md-4 col-lg-3 text-right"><strong>Zip:</strong></td><td id="zip" class="tab_cel2"><input type="text" placeholder="Zip" id="newBillingZip" value="').concat(e.message.data[0].postalCode,'" class="form-control" required></td></tr></tbody></table>'),a="",s="";globalsOrderId=e.message.data[0].clientOrderId,r().each(e.message.data[0].items,(function(t,o){if(0!=t){a+='<tr><td class="tab_cel1 text-right orderContents freeGift"><i class="bi bi-gift"></i> '.concat(o.name,"</td><td>$").concat(o.price,"</td></tr>");var i='<select id="billingModelUpdate" name="billingModelUpdate" class="form-select" aria-label="Default select example"><option value="" disabled selected> - Change billing cycle - </option>'.concat(getKNKBillingModels(),"</select>");if(""!=o.purchaseStatus)var n=new Date(o.nextBillDate).toString("MMM d, yyyy"),c=new Date(o.nextBillDate).toString("MM/dd/yyyy"),l="<strong>Subscribe & Save</strong><br/>Next shipment date: ".concat(n);else l="One Time Purchase";s='<tr><td colspan="2" class="tab_cel1 text-right"> '.concat(l,"</td></tr>"),""!=o.purchaseStatus&&(s+='<tr><td colspan="2" class="tab_cel1 text-right">',"ACTIVE"==o.purchaseStatus&&(s+='<a class="btn btn-danger" href="#" onclick="konnektive_update_order_subscription(\''.concat(globalsOrderId,"', '").concat(o.purchaseId,"', 'subscription_stop'); return false;\"><i class=\"bi bi-pause-fill\"></i> Pause Subscription (for 1 month)</a>")),"INACTIVE"==o.purchaseStatus&&(s+=' <a class="btn btn-success" href="#" onclick="konnektive_update_order_subscription(\''.concat(globalsOrderId,"', '").concat(o.purchaseId,"', 'subscription_restart'); return false;\"><i class=\"bi bi-play-fill\"></i> Resume Subscription</a>")),s+="</td></tr>",s+='<tr><td colspan="2" class="tab_cel2 bilcycle">'.concat(i,' <label>New Next Recurring Date:</label> <input type="text" value="').concat(c,'" class="form-control" name="newRecurringDate" id="newRecurringDate" data-format="MM/dd/yyyy" autocomplete="off" /> <a href="#" onclick="konnektive_update_order_subscription(\'').concat(globalsOrderId,"', '").concat(o.purchaseId,"', 'billing_model'); return false;\" class=\"btn btn-primary\">Save</a></td></tr>")),a+=s,e.message.data[0].tracking_number?(r()("#trackNumber").html("<tr><td>".concat(e.tracking_number,' <a href="#" target="_blank" id="shipmentTrackingLink">Track Shipment</a></td></tr>')),r()(".trackingCol").show(),detectCarrier(e.tracking_number)):r()(".trackingCol").hide()}})),r()("#orderModal h5").text("Order #".concat(globalsOrderId)),r()("#orderModal .modal-body #shippingInfo").html(t),r()("#orderModal .modal-body #billingInfo").html(o),r()("#orderModal .modal-body #orderContents").html(a),r()("#orderModal .modal-body #billingModel").append(""),r()("#orderModal .modal-body .billingModelCol").hide(),r()("#newRecurringDate").datepicker({autoclose:!0,format:"mm/dd/yyyy",todayHighlight:!0}),e.tracking_number&&(r()("#orderModal .modal-body #shippingInfo input, #orderModal .modal-body #shippingInfo select").attr("disabled","true"),r()("#orderModal .modal-body #billingInfo input, #orderModal .modal-body #billingInfo select").attr("disabled","true"),r()(".updateOrderDetails .btn").hide()),setStickyStates("newShippingState",e.message.data[0].shipState),setStickyStates("newBillingState",e.message.data[0].state),(0,i.resetFormState)(),r()("#orderModalOpener").click()}else(0,i.debug)(e),(0,i.resetFormState)(),(0,i.throwStickyError)("error",e.message)}))}function ce(e){r()(".overlay, .processing").show();var t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/order/update?orderId=")+e+"&shipFirstName="+r()("#newShippingFName").val()+"&shipLastName="+r()("#newShippingLName").val()+"&shipAddress1="+r()("#newShippingAddress").val()+"&shipAddress2="+r()("#newShippingAddress2").val()+"&shipCity="+r()("#newShippingCity").val()+"&shipState="+r()("#newShippingState").val()+"&shipPostCode="+r()("#newShippingZip").val()+"&firstName="+r()("#newBillingFName").val()+"&lastName="+r()("#newBillingLName").val()+"&address1="+r()("#newBillingAddress").val()+"&address2="+r()("#newBillingAddress2").val()+"&city="+r()("#newBillingCity").val()+"&state="+r()("#newBillingState").val()+"&postCode="+r()("#newBillingZip").val(),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(t).done((function(t){"SUCCESS"==t.result?(loadUserOrders(),(0,i.resetFormState)(),r()("#orderModal .btn-close").click(),ne(e,"".concat(btoa((0,s.getCookieValue)("konnektive_customer_email"))))):((0,i.resetFormState)(),(0,i.throwStickyError)("error",t.message),(0,i.debug)(t))}))}function le(e,t,o){r()(".overlay, .processing").show();var a="";"subscription_restart"===o?a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/purchase/update?purchaseId=")+t+"&reactivate=true",method:"POST",timeout:0,headers:{"X-SESSION-ID":""}}:"subscription_stop"===o?a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/purchase/pause?purchaseId=")+t+"&restartDate="+new Date.parse("today").add(32).day().toString("MM/dd/yyyy"),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}}:"billing_model"===o&&(a={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/purchase/update?purchaseId=")+t+"&nextBillDate="+r()("#newRecurringDate").val()+"&billingIntervalDays="+r()("#billingModelUpdate option:selected").val(),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}}),r().ajax(a).done((function(t){"SUCCESS"==t.result?("subscription_stop"==o&&pe(),loadUserOrders(),(0,i.resetFormState)(),r()("#orderModal .btn-close").click(),ne(e,"".concat(btoa((0,s.getCookieValue)("konnektive_customer_email"))))):((0,i.resetFormState)(),(0,i.throwStickyError)("error",t.message),(0,i.debug)(t))}))}function de(){var e="",t={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/campaign/query?campaignId=&resultsPerPage=50&sortBy=campaignId&sortDir=0"),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(t).done((function(t){"SUCCESS"==t.result&&r().each(t.message.data,(function(t,o){e=o.products,r().each(e,(function(e,t){r()(".sticky-product-image").each((function(){var e=r()(this),o=parseInt(r()(this).attr("data-pid"));t.campaignProductId==o&&t.imageUrl&&e.attr("src",t.imageUrl)}))}))}))}))}function ue(e){re(e)}function pe(){var e={url:"".concat((0,s.getConfig)().konnektiveAPIURL,"/members/reactivate?")+"&clubId="+(0,s.getConfig)().clubID+"&memberId="+sessionStorage.getItem("sticky_member_token"),method:"POST",timeout:0,headers:{"X-SESSION-ID":""}};r().ajax(e).done((function(e){(0,i.debug)(e)}))}function ge(){document.cookie="sticky_member_token=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie="konnektive_customer_email=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie="konnektive_customer_id=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",(0,s.deleteSessionStorage)("sticky_member_token"),(0,s.deleteSessionStorage)("konnektive_customer_id"),(0,s.deleteSessionStorage)("konnektive_customer_email"),window.location.href="./"}},61:(e,t,o)=>{"use strict";o.d(t,{ORDER_ICON_PLACEHOLDER:()=>s});var a=o(853),r='<option value="">Please Select State</option>';[{name:"ALABAMA",abbreviation:"AL"},{name:"ALASKA",abbreviation:"AK"},{name:"AMERICAN SAMOA",abbreviation:"AS"},{name:"ARIZONA",abbreviation:"AZ"},{name:"ARKANSAS",abbreviation:"AR"},{name:"CALIFORNIA",abbreviation:"CA"},{name:"COLORADO",abbreviation:"CO"},{name:"CONNECTICUT",abbreviation:"CT"},{name:"DELAWARE",abbreviation:"DE"},{name:"DISTRICT OF COLUMBIA",abbreviation:"DC"},{name:"FEDERATED STATES OF MICRONESIA",abbreviation:"FM"},{name:"FLORIDA",abbreviation:"FL"},{name:"GEORGIA",abbreviation:"GA"},{name:"GUAM",abbreviation:"GU"},{name:"HAWAII",abbreviation:"HI"},{name:"IDAHO",abbreviation:"ID"},{name:"ILLINOIS",abbreviation:"IL"},{name:"INDIANA",abbreviation:"IN"},{name:"IOWA",abbreviation:"IA"},{name:"KANSAS",abbreviation:"KS"},{name:"KENTUCKY",abbreviation:"KY"},{name:"LOUISIANA",abbreviation:"LA"},{name:"MAINE",abbreviation:"ME"},{name:"MARSHALL ISLANDS",abbreviation:"MH"},{name:"MARYLAND",abbreviation:"MD"},{name:"MASSACHUSETTS",abbreviation:"MA"},{name:"MICHIGAN",abbreviation:"MI"},{name:"MINNESOTA",abbreviation:"MN"},{name:"MISSISSIPPI",abbreviation:"MS"},{name:"MISSOURI",abbreviation:"MO"},{name:"MONTANA",abbreviation:"MT"},{name:"NEBRASKA",abbreviation:"NE"},{name:"NEVADA",abbreviation:"NV"},{name:"NEW HAMPSHIRE",abbreviation:"NH"},{name:"NEW JERSEY",abbreviation:"NJ"},{name:"NEW MEXICO",abbreviation:"NM"},{name:"NEW YORK",abbreviation:"NY"},{name:"NORTH CAROLINA",abbreviation:"NC"},{name:"NORTH DAKOTA",abbreviation:"ND"},{name:"NORTHERN MARIANA ISLANDS",abbreviation:"MP"},{name:"OHIO",abbreviation:"OH"},{name:"OKLAHOMA",abbreviation:"OK"},{name:"OREGON",abbreviation:"OR"},{name:"PALAU",abbreviation:"PW"},{name:"PENNSYLVANIA",abbreviation:"PA"},{name:"PUERTO RICO",abbreviation:"PR"},{name:"RHODE ISLAND",abbreviation:"RI"},{name:"SOUTH CAROLINA",abbreviation:"SC"},{name:"SOUTH DAKOTA",abbreviation:"SD"},{name:"TENNESSEE",abbreviation:"TN"},{name:"TEXAS",abbreviation:"TX"},{name:"UTAH",abbreviation:"UT"},{name:"VERMONT",abbreviation:"VT"},{name:"VIRGIN ISLANDS",abbreviation:"VI"},{name:"VIRGINIA",abbreviation:"VA"},{name:"WASHINGTON",abbreviation:"WA"},{name:"WEST VIRGINIA",abbreviation:"WV"},{name:"WISCONSIN",abbreviation:"WI"},{name:"WYOMING",abbreviation:"WY"}].forEach((function(e){r+='<option value="'.concat(e.abbreviation,'">').concat((0,a.lowerCaseAllWordsExceptFirstLetters)(e.name),"</option>")})),'<select class="form-control field__input field__input--select selcet-fld select-fld" id="cBillState" name="cBillState" aria-required="true" autocomplete="shipping address-level1" autocorrect="off" required><option value="" selected disabled="">Select State</option>'.concat(r,"</select>"),'<select class="form-control field__input field__input--select selcet-fld select-fld" id="cShipState" name="cShipState" aria-required="true" autocomplete="shipping address-level1" autocorrect="off" required><option value="" selected disabled="">Select State</option>'.concat(r,"</select>");var s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjU4NDVDMDkxODAxRDExRUM4Mjc4RDAyNjBCQ0U5N0Q2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjU4NDVDMDkyODAxRDExRUM4Mjc4RDAyNjBCQ0U5N0Q2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTg0NUMwOEY4MDFEMTFFQzgyNzhEMDI2MEJDRTk3RDYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTg0NUMwOTA4MDFEMTFFQzgyNzhEMDI2MEJDRTk3RDYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6bE3f0AAATZ0lEQVR42uzd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"},244:(e,t,o)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}o.d(t,{deleteSessionStorage:()=>n,getConfig:()=>c,getCookieValue:()=>r,getSessionStorage:()=>i,setSessionStorage:()=>s});var r=(o(147).version,localStorage.getItem("session_id"),function(e){var t=document.cookie.match(new RegExp("(^| )".concat(e,"=([^;]+)")));return t?t[2]:""}),s=function(e,t){var o=t;"string"!==o&&(o=JSON.stringify(o)),sessionStorage.setItem(e,o)},i=function(e){try{var t=sessionStorage.getItem(e),o=JSON.parse(t);return o&&"string"==typeof o||o&&"object"===a(o)?o:""}catch(e){return""}},n=function(e){return sessionStorage.removeItem(e)},c=function(){return function(e){try{var t=localStorage.getItem(e),o=JSON.parse(t);return o&&"string"==typeof o||o&&"object"===a(o)?o:""}catch(t){return localStorage.getItem(e)}}("@konnektive-engine")||{}}},853:(e,t,o)=>{"use strict";o.d(t,{clearPhone:()=>m,debug:()=>c,getIP:()=>g,getQueryParamValue:()=>y,lowerCaseAllWordsExceptFirstLetters:()=>p,reportInSlack:()=>u,resetDebugCounter:()=>d,resetFormState:()=>h,saveOrderNumberIntoList:()=>b,setCustomerBillState:()=>S,setCustomerShipState:()=>v,skipUpsell:()=>w,stickyGetCountryEnv:()=>A,throwStickyError:()=>f});var a=o(145),r=o.n(a),s=o(455),i=o.n(s),n=o(244),c=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var a;(0,n.getConfig)().debugMode&&(a=console).log.apply(a,["Debug on ".concat(new Date,"\n--- ")].concat(t)),(0,n.getConfig)().enableAutoLog&&l.apply(void 0,t)},l=function(){if((0,n.getSessionStorage)("envDB"))var e=(0,n.getSessionStorage)("envDB");else e=[];try{var t;(0>=arguments.length?void 0:arguments[0])&&(1>=arguments.length||!arguments[1])&&(t=e).push.apply(t,arguments),(0>=arguments.length?void 0:arguments[0])&&(1>=arguments.length?void 0:arguments[1])&&e.push((0>=arguments.length?void 0:arguments[0])+" "+(1>=arguments.length?void 0:arguments[1]))}catch(e){c("Debugger error:",e)}(0,n.setSessionStorage)("envDB",e)},d=function(){setCookieValue("stickyDebugCounter",0,{expires:-1})},u=function(e){var t={url:(0,n.getConfig)().errorDebugURL,method:"POST",contentType:"application/json",data:JSON.stringify({content:e})};r().ajax(t).done((function(e){e.success})).fail((function(){}))};function p(e){return e.replace(/\S*/g,(function(e){return e.charAt(0)+e.slice(1).toLowerCase()}))}function g(){return(0,n.getCookieValue)("ip")||"127.0.0.1"}function m(e){return e.replace(/\D/g,"")}function h(){r()(".overlay, .processing").hide(),r()("#orderButtonOff").hide(),r()("#orderButton").show()}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";h();var a=!0;"modal"===e&&(e="error",a=!1),i().fire({icon:e,html:t,allowOutsideClick:a,showCloseButton:!1}).then((function(e){console.log("error => ",e),(e.isConfirmed||"backdrop"===e.dismiss||"esc"===e.dismiss||"close"===e.dismiss)&&""!==o&&r()(location).prop("href",o)}))}function b(e){var t=(0,n.getSessionStorage)("stickyOrdersList"),o=[];0<t.length&&(o=JSON.parse(t)),o.push(e),(0,n.setSessionStorage)("stickyOrdersList",JSON.stringify(o))}function w(){(0,n.getConfig)().upsellIndex,(0,n.getConfig)().upsellIndex<(0,n.getConfig)().upsells.length-1?r()(location).prop("href","bonus".concat((0,n.getConfig)().upsellIndex+2,".html")):r()(location).prop("href","thankyou.html")}var y=function(e){var t=window.location.search;return new URLSearchParams(t).get(e)};function v(e){r()("[name='cShipState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function S(e){r()("[name='cBillState']").find("option").each((function(t,o){o.value==e&&(o.selected="selected")}))}function A(e){var t,o=r()("*[name=".concat(e,"]"));return o?("input"==o.prop("tagName").toLowerCase()&&(t=o.val()),"select"==o.prop("tagName").toLowerCase()&&(t=o.val())):t="US",t}},455:function(e){e.exports=function(){"use strict";var e={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const t=e=>{const t={};for(const o in e)t[e[o]]="swal2-"+e[o];return t},o=t(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),a=t(["success","warning","info","question","error"]),r="SweetAlert2:",s=e=>e.charAt(0).toUpperCase()+e.slice(1),i=e=>{console.warn(`${r} ${"object"==typeof e?e.join(" "):e}`)},n=e=>{console.error(`${r} ${e}`)},c=[],l=(e,t)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`,c.includes(o)||(c.push(o),i(o))},d=e=>"function"==typeof e?e():e,u=e=>e&&"function"==typeof e.toPromise,p=e=>u(e)?e.toPromise():Promise.resolve(e),g=e=>e&&Promise.resolve(e)===e,m=()=>document.body.querySelector(`.${o.container}`),h=e=>{const t=m();return t?t.querySelector(e):null},f=e=>h(`.${e}`),b=()=>f(o.popup),w=()=>f(o.icon),y=()=>f(o.title),v=()=>f(o["html-container"]),S=()=>f(o.image),A=()=>f(o["progress-steps"]),C=()=>f(o["validation-message"]),_=()=>h(`.${o.actions} .${o.confirm}`),k=()=>h(`.${o.actions} .${o.deny}`),I=()=>h(`.${o.loader}`),x=()=>h(`.${o.actions} .${o.cancel}`),E=()=>f(o.actions),N=()=>f(o.footer),O=()=>f(o["timer-progress-bar"]),B=()=>f(o.close),P=()=>{const e=Array.from(b().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const o=parseInt(e.getAttribute("tabindex")),a=parseInt(t.getAttribute("tabindex"));return o>a?1:o<a?-1:0})),t=Array.from(b().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((e=>"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let o=0;o<e.length;o++)-1===t.indexOf(e[o])&&t.push(e[o]);return t})(e.concat(t)).filter((e=>Q(e)))},D=()=>M(document.body,o.shown)&&!M(document.body,o["toast-shown"])&&!M(document.body,o["no-backdrop"]),L=()=>b()&&M(b(),o.toast),F={previousBodyPadding:null},T=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html");Array.from(o.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),Array.from(o.querySelector("body").childNodes).forEach((t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},M=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t<o.length;t++)if(!e.classList.contains(o[t]))return!1;return!0},V=(e,t,r)=>{if(((e,t)=>{Array.from(e.classList).forEach((r=>{Object.values(o).includes(r)||Object.values(a).includes(r)||Object.values(t.showClass).includes(r)||e.classList.remove(r)}))})(e,t),t.customClass&&t.customClass[r]){if("string"!=typeof t.customClass[r]&&!t.customClass[r].forEach)return void i(`Invalid type of customClass.${r}! Expected string or iterable object, got "${typeof t.customClass[r]}"`);W(e,t.customClass[r])}},R=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${o.popup} > .${o[t]}`);case"checkbox":return e.querySelector(`.${o.popup} > .${o.checkbox} input`);case"radio":return e.querySelector(`.${o.popup} > .${o.radio} input:checked`)||e.querySelector(`.${o.popup} > .${o.radio} input:first-child`);case"range":return e.querySelector(`.${o.popup} > .${o.range} input`);default:return e.querySelector(`.${o.popup} > .${o.input}`)}},U=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},q=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{o?e.classList.add(t):e.classList.remove(t)})):o?e.classList.add(t):e.classList.remove(t)})))},W=(e,t)=>{q(e,t,!0)},j=(e,t)=>{q(e,t,!1)},H=(e,t)=>{const o=Array.from(e.children);for(let e=0;e<o.length;e++){const a=o[e];if(a instanceof HTMLElement&&M(a,t))return a}},Y=(e,t,o)=>{o===`${parseInt(o)}`&&(o=parseInt(o)),o||0===parseInt(o)?e.style[t]="number"==typeof o?`${o}px`:o:e.style.removeProperty(t)},J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},z=e=>{e.style.display="none"},G=(e,t,o,a)=>{const r=e.querySelector(t);r&&(r.style[o]=a)},Z=function(e,t){t?J(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):z(e)},Q=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),K=e=>!!(e.scrollHeight>e.clientHeight),X=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),a=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||a>0},$=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=O();Q(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout((()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"}),10))},ee={},te=e=>new Promise((t=>{if(!e)return t();const o=window.scrollX,a=window.scrollY;ee.restoreFocusTimeout=setTimeout((()=>{ee.previousActiveElement instanceof HTMLElement?(ee.previousActiveElement.focus(),ee.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(o,a)})),oe=()=>"undefined"==typeof window||"undefined"==typeof document,ae=`\n <div aria-labelledby="${o.title}" aria-describedby="${o["html-container"]}" class="${o.popup}" tabindex="-1">\n <button type="button" class="${o.close}"></button>\n <ul class="${o["progress-steps"]}"></ul>\n <div class="${o.icon}"></div>\n <img class="${o.image}" />\n <h2 class="${o.title}" id="${o.title}"></h2>\n <div class="${o["html-container"]}" id="${o["html-container"]}"></div>\n <input class="${o.input}" />\n <input type="file" class="${o.file}" />\n <div class="${o.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${o.select}"></select>\n <div class="${o.radio}"></div>\n <label for="${o.checkbox}" class="${o.checkbox}">\n <input type="checkbox" />\n <span class="${o.label}"></span>\n </label>\n <textarea class="${o.textarea}"></textarea>\n <div class="${o["validation-message"]}" id="${o["validation-message"]}"></div>\n <div class="${o.actions}">\n <div class="${o.loader}"></div>\n <button type="button" class="${o.confirm}"></button>\n <button type="button" class="${o.deny}"></button>\n <button type="button" class="${o.cancel}"></button>\n </div>\n <div class="${o.footer}"></div>\n <div class="${o["timer-progress-bar-container"]}">\n <div class="${o["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),re=()=>{ee.currentInstance.resetValidationMessage()},se=e=>{const t=(()=>{const e=m();return!!e&&(e.remove(),j([document.documentElement,document.body],[o["no-backdrop"],o["toast-shown"],o["has-column"]]),!0)})();if(oe())return void n("SweetAlert2 requires document to initialize");const a=document.createElement("div");a.className=o.container,t&&W(a,o["no-transition"]),T(a,ae);const r="string"==typeof(s=e.target)?document.querySelector(s):s;var s;r.appendChild(a),(e=>{const t=b();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&W(m(),o.rtl)})(r),(()=>{const e=b(),t=H(e,o.input),a=H(e,o.file),r=e.querySelector(`.${o.range} input`),s=e.querySelector(`.${o.range} output`),i=H(e,o.select),n=e.querySelector(`.${o.checkbox} input`),c=H(e,o.textarea);t.oninput=re,a.onchange=re,i.onchange=re,n.onchange=re,c.oninput=re,r.oninput=()=>{re(),s.value=r.value},r.onchange=()=>{re(),s.value=r.value}})()},ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ne(e,t):e&&T(t,e)},ne=(e,t)=>{e.jquery?ce(t,e):T(t,e.toString())},ce=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},le=(()=>{if(oe())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&void 0!==e.style[o])return t[o];return!1})(),de=(e,t)=>{const a=E(),r=I();t.showConfirmButton||t.showDenyButton||t.showCancelButton?J(a):z(a),V(a,t,"actions"),function(e,t,a){const r=_(),s=k(),i=x();ue(r,"confirm",a),ue(s,"deny",a),ue(i,"cancel",a),function(e,t,a,r){r.buttonsStyling?(W([e,t,a],o.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,W(e,o["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,W(t,o["default-outline"])),r.cancelButtonColor&&(a.style.backgroundColor=r.cancelButtonColor,W(a,o["default-outline"]))):j([e,t,a],o.styled)}(r,s,i,a),a.reverseButtons&&(a.toast?(e.insertBefore(i,r),e.insertBefore(s,r)):(e.insertBefore(i,t),e.insertBefore(s,t),e.insertBefore(r,t)))}(a,r,t),T(r,t.loaderHtml),V(r,t,"loader")};function ue(e,t,a){Z(e,a[`show${s(t)}Button`],"inline-block"),T(e,a[`${t}ButtonText`]),e.setAttribute("aria-label",a[`${t}ButtonAriaLabel`]),e.className=o[t],V(e,a,`${t}Button`),W(e,a[`${t}ButtonClass`])}const pe=(e,t)=>{const a=m();a&&(function(e,t){"string"==typeof t?e.style.background=t:t||W([document.documentElement,document.body],o["no-backdrop"])}(a,t.backdrop),function(e,t){t in o?W(e,o[t]):(i('The "position" parameter is not valid, defaulting to "center"'),W(e,o.center))}(a,t.position),function(e,t){if(t&&"string"==typeof t){const a=`grow-${t}`;a in o&&W(e,o[a])}}(a,t.grow),V(a,t,"container"))};const ge=["input","file","range","select","radio","checkbox","textarea"],me=e=>{if(!Se[e.input])return void n(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=ye(e.input),o=Se[e.input](t,e);J(t),setTimeout((()=>{U(o)}))},he=(e,t)=>{const o=R(b(),e);if(o){(e=>{for(let t=0;t<e.attributes.length;t++){const o=e.attributes[t].name;["type","value","style"].includes(o)||e.removeAttribute(o)}})(o);for(const e in t)o.setAttribute(e,t[e])}},fe=e=>{const t=ye(e.input);"object"==typeof e.customClass&&W(t,e.customClass.input)},be=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},we=(e,t,a)=>{if(a.inputLabel){e.id=o.input;const r=document.createElement("label"),s=o["input-label"];r.setAttribute("for",e.id),r.className=s,"object"==typeof a.customClass&&W(r,a.customClass.inputLabel),r.innerText=a.inputLabel,t.insertAdjacentElement("beforebegin",r)}},ye=e=>H(b(),o[e]||o.input),ve=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:g(t)||i(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Se={};Se.text=Se.email=Se.password=Se.number=Se.tel=Se.url=(e,t)=>(ve(e,t.inputValue),we(e,e,t),be(e,t),e.type=t.input,e),Se.file=(e,t)=>(we(e,e,t),be(e,t),e),Se.range=(e,t)=>{const o=e.querySelector("input"),a=e.querySelector("output");return ve(o,t.inputValue),o.type=t.input,ve(a,t.inputValue),we(o,e,t),e},Se.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");T(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return we(e,e,t),e},Se.radio=e=>(e.textContent="",e),Se.checkbox=(e,t)=>{const a=R(b(),"checkbox");a.value="1",a.id=o.checkbox,a.checked=Boolean(t.inputValue);const r=e.querySelector("span");return T(r,t.inputPlaceholder),a},Se.textarea=(e,t)=>{ve(e,t.inputValue),be(e,t),we(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(b()).width);new MutationObserver((()=>{const o=e.offsetWidth+(a=e,parseInt(window.getComputedStyle(a).marginLeft)+parseInt(window.getComputedStyle(a).marginRight));var a;b().style.width=o>t?`${o}px`:null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ae=(t,a)=>{const r=v();V(r,a,"htmlContainer"),a.html?(ie(a.html,r),J(r,"block")):a.text?(r.textContent=a.text,J(r,"block")):z(r),((t,a)=>{const r=b(),s=e.innerParams.get(t),i=!s||a.input!==s.input;ge.forEach((e=>{const t=H(r,o[e]);he(e,a.inputAttributes),t.className=o[e],i&&z(t)})),a.input&&(i&&me(a),fe(a))})(t,a)},Ce=(e,t)=>{for(const o in a)t.icon!==o&&j(e,a[o]);W(e,a[t.icon]),Ie(e,t),_e(),V(e,t,"icon")},_e=()=>{const e=b(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<o.length;e++)o[e].style.backgroundColor=t},ke=(e,t)=>{let o,a=e.innerHTML;t.iconHtml?o=xe(t.iconHtml):"success"===t.icon?(o='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',a=a.replace(/ style=".*?"/g,"")):o="error"===t.icon?'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':xe({question:"?",warning:"!",info:"i"}[t.icon]),a.trim()!==o.trim()&&T(e,o)},Ie=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])G(e,o,"backgroundColor",t.iconColor);G(e,".swal2-success-ring","borderColor",t.iconColor)}},xe=e=>`<div class="${o["icon-content"]}">${e}</div>`,Ee=(e,t)=>{e.className=`${o.popup} ${Q(e)?t.showClass.popup:""}`,t.toast?(W([document.documentElement,document.body],o["toast-shown"]),W(e,o.toast)):W(e,o.modal),V(e,t,"popup"),"string"==typeof t.customClass&&W(e,t.customClass),t.icon&&W(e,o[`icon-${t.icon}`])},Ne=e=>{const t=document.createElement("li");return W(t,o["progress-step"]),T(t,e),t},Oe=e=>{const t=document.createElement("li");return W(t,o["progress-step-line"]),e.progressStepsDistance&&Y(t,"width",e.progressStepsDistance),t},Be=(t,r)=>{((e,t)=>{const o=m(),a=b();t.toast?(Y(o,"width",t.width),a.style.width="100%",a.insertBefore(I(),w())):Y(a,"width",t.width),Y(a,"padding",t.padding),t.color&&(a.style.color=t.color),t.background&&(a.style.background=t.background),z(C()),Ee(a,t)})(0,r),pe(0,r),((e,t)=>{const a=A();t.progressSteps&&0!==t.progressSteps.length?(J(a),a.textContent="",t.currentProgressStep>=t.progressSteps.length&&i("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,r)=>{const s=Ne(e);if(a.appendChild(s),r===t.currentProgressStep&&W(s,o["active-progress-step"]),r!==t.progressSteps.length-1){const e=Oe(t);a.appendChild(e)}}))):z(a)})(0,r),((t,o)=>{const r=e.innerParams.get(t),s=w();if(r&&o.icon===r.icon)return ke(s,o),void Ce(s,o);if(o.icon||o.iconHtml){if(o.icon&&-1===Object.keys(a).indexOf(o.icon))return n(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${o.icon}"`),void z(s);J(s),ke(s,o),Ce(s,o),W(s,o.showClass.icon)}else z(s)})(t,r),((e,t)=>{const a=S();t.imageUrl?(J(a,""),a.setAttribute("src",t.imageUrl),a.setAttribute("alt",t.imageAlt),Y(a,"width",t.imageWidth),Y(a,"height",t.imageHeight),a.className=o.image,V(a,t,"image")):z(a)})(0,r),((e,t)=>{const o=y();Z(o,t.title||t.titleText,"block"),t.title&&ie(t.title,o),t.titleText&&(o.innerText=t.titleText),V(o,t,"title")})(0,r),((e,t)=>{const o=B();T(o,t.closeButtonHtml),V(o,t,"closeButton"),Z(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,r),Ae(t,r),de(0,r),((e,t)=>{const o=N();Z(o,t.footer),t.footer&&ie(t.footer,o),V(o,t,"footer")})(0,r),"function"==typeof r.didRender&&r.didRender(b())};function Pe(){const t=e.innerParams.get(this);if(!t)return;const a=e.domCache.get(this);z(a.loader),L()?t.icon&&J(w()):De(a),j([a.popup,a.actions],o.loading),a.popup.removeAttribute("aria-busy"),a.popup.removeAttribute("data-loading"),a.confirmButton.disabled=!1,a.denyButton.disabled=!1,a.cancelButton.disabled=!1}const De=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?J(t[0],"inline-block"):!Q(_())&&!Q(k())&&!Q(x())&&z(e.actions)};const Le=()=>_()&&_().click(),Fe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Te=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Me=(e,t,o)=>{const a=P();if(a.length)return(t+=o)===a.length?t=0:-1===t&&(t=a.length-1),void a[t].focus();b().focus()},Ve=["ArrowRight","ArrowDown"],Re=["ArrowLeft","ArrowUp"],Ue=(t,o,a)=>{const r=e.innerParams.get(t);r&&(o.isComposing||229===o.keyCode||(r.stopKeydownPropagation&&o.stopPropagation(),"Enter"===o.key?qe(t,o,r):"Tab"===o.key?We(o,r):[...Ve,...Re].includes(o.key)?je(o.key):"Escape"===o.key&&He(o,r,a)))},qe=(e,t,o)=>{if(d(o.allowEnterKey)&&t.target&&e.getInput()&&t.target instanceof HTMLElement&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;Le(),t.preventDefault()}},We=(e,t)=>{const o=e.target,a=P();let r=-1;for(let e=0;e<a.length;e++)if(o===a[e]){r=e;break}e.shiftKey?Me(0,r,-1):Me(0,r,1),e.stopPropagation(),e.preventDefault()},je=e=>{const t=_(),o=k(),a=x();if(document.activeElement instanceof HTMLElement&&![t,o,a].includes(document.activeElement))return;const r=Ve.includes(e)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let e=0;e<E().children.length;e++){if(s=s[r],!s)return;if(s instanceof HTMLButtonElement&&Q(s))break}s instanceof HTMLButtonElement&&s.focus()},He=(e,t,o)=>{d(t.allowEscapeKey)&&(e.preventDefault(),o(Fe.esc))};var Ye={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Je=()=>{Array.from(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},ze=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),o=!!e.match(/WebKit/i);if(t&&o&&!e.match(/CriOS/i)){const e=44;b().scrollHeight>window.innerHeight-e&&(m().style.paddingBottom=`${e}px`)}},Ge=()=>{const e=m();let t;e.ontouchstart=e=>{t=Ze(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Ze=e=>{const t=e.target,o=m();return!(Qe(e)||Ke(e)||t!==o&&(K(o)||!(t instanceof HTMLElement)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||K(v())&&v().contains(t)))},Qe=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Ke=e=>e.touches&&e.touches.length>1,Xe=()=>{null===F.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(F.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${F.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=o["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function $e(e,t,a,r){L()?it(e,r):(te(a).then((()=>it(e,r))),Te(ee)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),D()&&(null!==F.previousBodyPadding&&(document.body.style.paddingRight=`${F.previousBodyPadding}px`,F.previousBodyPadding=null),(()=>{if(M(document.body,o.iosfix)){const e=parseInt(document.body.style.top,10);j(document.body,o.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Je()),j([document.documentElement,document.body],[o.shown,o["height-auto"],o["no-backdrop"],o["toast-shown"]])}function et(e){e=at(e);const t=Ye.swalPromiseResolve.get(this),o=tt(this);this.isAwaitingPromise()?e.isDismissed||(ot(this),t(e)):o&&t(e)}const tt=t=>{const o=b();if(!o)return!1;const a=e.innerParams.get(t);if(!a||M(o,a.hideClass.popup))return!1;j(o,a.showClass.popup),W(o,a.hideClass.popup);const r=m();return j(r,a.showClass.backdrop),W(r,a.hideClass.backdrop),rt(t,o,a),!0};const ot=t=>{t.isAwaitingPromise()&&(e.awaitingPromise.delete(t),e.innerParams.get(t)||t._destroy())},at=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),rt=(e,t,o)=>{const a=m(),r=le&&X(t);"function"==typeof o.willClose&&o.willClose(t),r?st(e,t,a,o.returnFocus,o.didClose):$e(e,a,o.returnFocus,o.didClose)},st=(e,t,o,a,r)=>{ee.swalCloseEventFinishedCallback=$e.bind(null,e,o,a,r),t.addEventListener(le,(function(e){e.target===t&&(ee.swalCloseEventFinishedCallback(),delete ee.swalCloseEventFinishedCallback)}))},it=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function nt(t,o,a){const r=e.domCache.get(t);o.forEach((e=>{r[e].disabled=a}))}function ct(e,t){if(e)if("radio"===e.type){const o=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<o.length;e++)o[e].disabled=t}else e.disabled=t}const lt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},dt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ut={},pt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],gt=e=>Object.prototype.hasOwnProperty.call(lt,e),mt=e=>-1!==dt.indexOf(e),ht=e=>ut[e],ft=e=>{gt(e)||i(`Unknown parameter "${e}"`)},bt=e=>{pt.includes(e)&&i(`The parameter "${e}" is incompatible with toasts`)},wt=e=>{ht(e)&&l(e,ht(e))};const yt=e=>{const t={};return Object.keys(e).forEach((o=>{mt(o)?t[o]=e[o]:i(`Invalid parameter to update: ${o}`)})),t};const vt=e=>{St(e),delete e.params,delete ee.keydownHandler,delete ee.keydownTarget,delete ee.currentInstance},St=t=>{t.isAwaitingPromise()?(At(e,t),e.awaitingPromise.set(t,!0)):(At(Ye,t),At(e,t))},At=(e,t)=>{for(const o in e)e[o].delete(t)};var Ct=Object.freeze({__proto__:null,hideLoading:Pe,disableLoading:Pe,getInput:function(t){const o=e.innerParams.get(t||this),a=e.domCache.get(t||this);return a?R(a.popup,o.input):null},close:et,isAwaitingPromise:function(){return!!e.awaitingPromise.get(this)},rejectPromise:function(e){const t=Ye.swalPromiseReject.get(this);ot(this),t&&t(e)},handleAwaitingPromise:ot,closePopup:et,closeModal:et,closeToast:et,enableButtons:function(){nt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){nt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){ct(this.getInput(),!1)},disableInput:function(){ct(this.getInput(),!0)},showValidationMessage:function(t){const a=e.domCache.get(this),r=e.innerParams.get(this);T(a.validationMessage,t),a.validationMessage.className=o["validation-message"],r.customClass&&r.customClass.validationMessage&&W(a.validationMessage,r.customClass.validationMessage),J(a.validationMessage);const s=this.getInput();s&&(s.setAttribute("aria-invalid",!0),s.setAttribute("aria-describedby",o["validation-message"]),U(s),W(s,o.inputerror))},resetValidationMessage:function(){const t=e.domCache.get(this);t.validationMessage&&z(t.validationMessage);const a=this.getInput();a&&(a.removeAttribute("aria-invalid"),a.removeAttribute("aria-describedby"),j(a,o.inputerror))},update:function(t){const o=b(),a=e.innerParams.get(this);if(!o||M(o,a.hideClass.popup))return void i("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=yt(t),s=Object.assign({},a,r);Be(this,s),e.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){const t=e.domCache.get(this),o=e.innerParams.get(this);o?(t.popup&&ee.swalCloseEventFinishedCallback&&(ee.swalCloseEventFinishedCallback(),delete ee.swalCloseEventFinishedCallback),"function"==typeof o.didDestroy&&o.didDestroy(),vt(this)):St(this)}});const _t=e=>{let t=b();t||new xo,t=b();const o=I();L()?z(w()):kt(t,e),J(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},kt=(e,t)=>{const a=E(),r=I();!t&&Q(_())&&(t=_()),J(a),t&&(z(t),r.setAttribute("data-button-to-replace",t.className)),r.parentNode.insertBefore(r,t),W([e,a],o.loading)},It=e=>e.checked?1:0,xt=e=>e.checked?e.value:null,Et=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Nt=(e,t)=>{const o=b(),a=e=>{Bt[t.input](o,Pt(e),t)};u(t.inputOptions)||g(t.inputOptions)?(_t(_()),p(t.inputOptions).then((t=>{e.hideLoading(),a(t)}))):"object"==typeof t.inputOptions?a(t.inputOptions):n("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},Ot=(e,t)=>{const o=e.getInput();z(o),p(t.inputValue).then((a=>{o.value="number"===t.input?`${parseFloat(a)||0}`:`${a}`,J(o),o.focus(),e.hideLoading()})).catch((t=>{n(`Error in inputValue promise: ${t}`),o.value="",J(o),o.focus(),e.hideLoading()}))},Bt={select:(e,t,a)=>{const r=H(e,o.select),s=(e,t,o)=>{const r=document.createElement("option");r.value=o,T(r,t),r.selected=Dt(o,a.inputValue),e.appendChild(r)};t.forEach((e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),o.forEach((t=>s(e,t[1],t[0])))}else s(r,o,t)})),r.focus()},radio:(e,t,a)=>{const r=H(e,o.radio);t.forEach((e=>{const t=e[0],s=e[1],i=document.createElement("input"),n=document.createElement("label");i.type="radio",i.name=o.radio,i.value=t,Dt(t,a.inputValue)&&(i.checked=!0);const c=document.createElement("span");T(c,s),c.className=o.label,n.appendChild(i),n.appendChild(c),r.appendChild(n)}));const s=r.querySelectorAll("input");s.length&&s[0].focus()}},Pt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,o)=>{let a=e;"object"==typeof a&&(a=Pt(a)),t.push([o,a])})):Object.keys(e).forEach((o=>{let a=e[o];"object"==typeof a&&(a=Pt(a)),t.push([o,a])})),t},Dt=(e,t)=>t&&t.toString()===e.toString(),Lt=(t,o)=>{const a=e.innerParams.get(t);if(!a.input)return void n(`The "input" parameter is needed to be set when using returnInputValueOn${s(o)}`);const r=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return It(o);case"radio":return xt(o);case"file":return Et(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(t,a);a.inputValidator?Ft(t,r,o):t.getInput().checkValidity()?"deny"===o?Tt(t,r):Rt(t,r):(t.enableButtons(),t.showValidationMessage(a.validationMessage))},Ft=(t,o,a)=>{const r=e.innerParams.get(t);t.disableInput(),Promise.resolve().then((()=>p(r.inputValidator(o,r.validationMessage)))).then((e=>{t.enableButtons(),t.enableInput(),e?t.showValidationMessage(e):"deny"===a?Tt(t,o):Rt(t,o)}))},Tt=(t,o)=>{const a=e.innerParams.get(t||void 0);a.showLoaderOnDeny&&_t(k()),a.preDeny?(e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>p(a.preDeny(o,a.validationMessage)))).then((e=>{!1===e?(t.hideLoading(),ot(t)):t.close({isDenied:!0,value:void 0===e?o:e})})).catch((e=>Vt(t||void 0,e)))):t.close({isDenied:!0,value:o})},Mt=(e,t)=>{e.close({isConfirmed:!0,value:t})},Vt=(e,t)=>{e.rejectPromise(t)},Rt=(t,o)=>{const a=e.innerParams.get(t||void 0);a.showLoaderOnConfirm&&_t(),a.preConfirm?(t.resetValidationMessage(),e.awaitingPromise.set(t||void 0,!0),Promise.resolve().then((()=>p(a.preConfirm(o,a.validationMessage)))).then((e=>{Q(C())||!1===e?(t.hideLoading(),ot(t)):Mt(t,void 0===e?o:e)})).catch((e=>Vt(t||void 0,e)))):Mt(t,o)},Ut=(t,o,a)=>{o.popup.onclick=()=>{const o=e.innerParams.get(t);o&&(qt(o)||o.timer||o.input)||a(Fe.close)}},qt=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let Wt=!1;const jt=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Wt=!0)}}},Ht=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Wt=!0)}}},Yt=(t,o,a)=>{o.container.onclick=r=>{const s=e.innerParams.get(t);Wt?Wt=!1:r.target===o.container&&d(s.allowOutsideClick)&&a(Fe.backdrop)}},Jt=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const zt=()=>{if(ee.timeout)return(()=>{const e=O(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width=`${o}%`})(),ee.timeout.stop()},Gt=()=>{if(ee.timeout){const e=ee.timeout.start();return $(e),e}};let Zt=!1;const Qt={};const Kt=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Qt){const o=t.getAttribute(e);if(o)return void Qt[e].fire({template:o})}};var Xt=Object.freeze({__proto__:null,isValidParameter:gt,isUpdatableParameter:mt,isDeprecatedParameter:ht,argsToParams:e=>{const t={};return"object"!=typeof e[0]||Jt(e[0])?["title","html","icon"].forEach(((o,a)=>{const r=e[a];"string"==typeof r||Jt(r)?t[o]=r:void 0!==r&&n(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof r}`)})):Object.assign(t,e[0]),t},getContainer:m,getPopup:b,getTitle:y,getHtmlContainer:v,getImage:S,getIcon:w,getIconContent:()=>f(o["icon-content"]),getInputLabel:()=>f(o["input-label"]),getCloseButton:B,getActions:E,getConfirmButton:_,getDenyButton:k,getCancelButton:x,getLoader:I,getFooter:N,getTimerProgressBar:O,getFocusableElements:P,getValidationMessage:C,getProgressSteps:A,isLoading:()=>b().hasAttribute("data-loading"),isVisible:()=>Q(b()),clickConfirm:Le,clickDeny:()=>k()&&k().click(),clickCancel:()=>x()&&x().click(),fire:function(){const e=this;for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return new e(...o)},mixin:function(e){return class extends(this){_main(t,o){return super._main(t,Object.assign({},e,o))}}},showLoading:_t,enableLoading:_t,getTimerLeft:()=>ee.timeout&&ee.timeout.getTimerLeft(),stopTimer:zt,resumeTimer:Gt,toggleTimer:()=>{const e=ee.timeout;return e&&(e.running?zt():Gt())},increaseTimer:e=>{if(ee.timeout){const t=ee.timeout.increase(e);return $(t,!0),t}},isTimerRunning:()=>ee.timeout&&ee.timeout.isRunning(),bindClickHandler:function(){Qt[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Zt||(document.body.addEventListener("click",Kt),Zt=!0)}});class $t{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const eo=["swal-title","swal-html","swal-footer"],to=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach((e=>{lo(e,["name","value"]);const o=e.getAttribute("name"),a=e.getAttribute("value");t[o]="boolean"==typeof lt[o]?"false"!==a:"object"==typeof lt[o]?JSON.parse(a):a})),t},oo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((e=>{const o=e.getAttribute("name"),a=e.getAttribute("value");t[o]=new Function(`return ${a}`)()})),t},ao=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach((e=>{lo(e,["type","color","aria-label"]);const o=e.getAttribute("type");t[`${o}ButtonText`]=e.innerHTML,t[`show${s(o)}Button`]=!0,e.hasAttribute("color")&&(t[`${o}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${o}ButtonAriaLabel`]=e.getAttribute("aria-label"))})),t},ro=e=>{const t={},o=e.querySelector("swal-image");return o&&(lo(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt"))),t},so=e=>{const t={},o=e.querySelector("swal-icon");return o&&(lo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},io=e=>{const t={},o=e.querySelector("swal-input");o&&(lo(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const a=Array.from(e.querySelectorAll("swal-input-option"));return a.length&&(t.inputOptions={},a.forEach((e=>{lo(e,["value"]);const o=e.getAttribute("value"),a=e.innerHTML;t.inputOptions[o]=a}))),t},no=(e,t)=>{const o={};for(const a in t){const r=t[a],s=e.querySelector(r);s&&(lo(s,[]),o[r.replace(/^swal-/,"")]=s.innerHTML.trim())}return o},co=e=>{const t=eo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((e=>{const o=e.tagName.toLowerCase();t.includes(o)||i(`Unrecognized element <${o}>`)}))},lo=(e,t)=>{Array.from(e.attributes).forEach((o=>{-1===t.indexOf(o.name)&&i([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])}))},uo=e=>{const t=m(),a=b();"function"==typeof e.willOpen&&e.willOpen(a);const r=window.getComputedStyle(document.body).overflowY;ho(t,a,e),setTimeout((()=>{go(t,a)}),10),D()&&(mo(t,e.scrollbarPadding,r),Array.from(document.body.children).forEach((e=>{e===m()||e.contains(m())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),L()||ee.previousActiveElement||(ee.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(a))),j(t,o["no-transition"])},po=e=>{const t=b();if(e.target!==t)return;const o=m();t.removeEventListener(le,po),o.style.overflowY="auto"},go=(e,t)=>{le&&X(t)?(e.style.overflowY="hidden",t.addEventListener(le,po)):e.style.overflowY="auto"},mo=(e,t,a)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!M(document.body,o.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",W(document.body,o.iosfix),Ge(),ze()}})(),t&&"hidden"!==a&&Xe(),setTimeout((()=>{e.scrollTop=0}))},ho=(e,t,a)=>{W(e,a.showClass.backdrop),t.style.setProperty("opacity","0","important"),J(t,"grid"),setTimeout((()=>{W(t,a.showClass.popup),t.style.removeProperty("opacity")}),10),W([document.documentElement,document.body],o.shown),a.heightAuto&&a.backdrop&&!a.toast&&W([document.documentElement,document.body],o["height-auto"])};var fo={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function bo(e){(function(e){e.inputValidator||Object.keys(fo).forEach((t=>{e.input===t&&(e.inputValidator=fo[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&i("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(i('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),se(e)}let wo;class yo{constructor(){if("undefined"==typeof window)return;wo=this;for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];const r=Object.freeze(this.constructor.argsToParams(o));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});const s=wo._main(wo.params);e.promise.set(this,s)}_main(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!1===e.backdrop&&e.allowOutsideClick&&i('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)ft(t),e.toast&&bt(t),wt(t)})(Object.assign({},o,t)),ee.currentInstance&&(ee.currentInstance._destroy(),D()&&Je()),ee.currentInstance=wo;const a=So(t,o);bo(a),Object.freeze(a),ee.timeout&&(ee.timeout.stop(),delete ee.timeout),clearTimeout(ee.restoreFocusTimeout);const r=Ao(wo);return Be(wo,a),e.innerParams.set(wo,a),vo(wo,r,a)}then(t){return e.promise.get(this).then(t)}finally(t){return e.promise.get(this).finally(t)}}const vo=(t,o,a)=>new Promise(((r,s)=>{const i=e=>{t.close({isDismissed:!0,dismiss:e})};Ye.swalPromiseResolve.set(t,r),Ye.swalPromiseReject.set(t,s),o.confirmButton.onclick=()=>{(t=>{const o=e.innerParams.get(t);t.disableButtons(),o.input?Lt(t,"confirm"):Rt(t,!0)})(t)},o.denyButton.onclick=()=>{(t=>{const o=e.innerParams.get(t);t.disableButtons(),o.returnInputValueOnDeny?Lt(t,"deny"):Tt(t,!1)})(t)},o.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(Fe.cancel)})(t,i)},o.closeButton.onclick=()=>{i(Fe.close)},((t,o,a)=>{e.innerParams.get(t).toast?Ut(t,o,a):(jt(o),Ht(o),Yt(t,o,a))})(t,o,i),((e,t,o,a)=>{Te(t),o.toast||(t.keydownHandler=t=>Ue(e,t,a),t.keydownTarget=o.keydownListenerCapture?window:b(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(t,ee,a,i),((e,t)=>{"select"===t.input||"radio"===t.input?Nt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(u(t.inputValue)||g(t.inputValue))&&(_t(_()),Ot(e,t))})(t,a),uo(a),Co(ee,a,i),_o(o,a),setTimeout((()=>{o.container.scrollTop=0}))})),So=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return co(o),Object.assign(to(o),oo(o),ao(o),ro(o),so(o),io(o),no(o,eo))})(e),a=Object.assign({},lt,t,o,e);return a.showClass=Object.assign({},lt.showClass,a.showClass),a.hideClass=Object.assign({},lt.hideClass,a.hideClass),a},Ao=t=>{const o={popup:b(),container:m(),actions:E(),confirmButton:_(),denyButton:k(),cancelButton:x(),loader:I(),closeButton:B(),validationMessage:C(),progressSteps:A()};return e.domCache.set(t,o),o},Co=(e,t,o)=>{const a=O();z(a),t.timer&&(e.timeout=new $t((()=>{o("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(J(a),V(a,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&$(t.timer)}))))},_o=(e,t)=>{t.toast||(d(t.allowEnterKey)?ko(e,t)||Me(0,-1,1):Io())},ko=(e,t)=>t.focusDeny&&Q(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&Q(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!Q(e.confirmButton)||(e.confirmButton.focus(),0)),Io=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/864e5>3&&setTimeout((()=>{document.body.style.pointerEvents="none";const e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((()=>{e.play().catch((()=>{}))}),2500)}),500):localStorage.setItem("swal-initiation",`${e}`)}Object.assign(yo.prototype,Ct),Object.assign(yo,Xt),Object.keys(Ct).forEach((e=>{yo[e]=function(){if(wo)return wo[e](...arguments)}})),yo.DismissReason=Fe,yo.version="11.6.15";const xo=yo;return xo.default=xo,xo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:rgba(0,0,0,0) !important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none !important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:rgba(0,0,0,0);color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},145:t=>{"use strict";t.exports=e},147:e=>{"use strict";e.exports=JSON.parse('{"name":"konnektive-engine","version":"0.3.23","description":"","files":["dist/*.js","dist/**/*.js"],"scripts":{"rm":"rimraf ./dist","build":"npm run rm && webpack --color --progress --mode=development","build:prod":"npm run rm && NODE_ENV=production webpack --color --progress --mode=production","watch":"npm run build -- --watch","dev":"concurrently \\"npm run serve\\" \\"npm run watch\\"","serve":"http-server ./dist -a 0.0.0.0 -p 3000","publish":"npm run build:prod && npm publish","lint":"eslint ./src","lint:fix":"eslint ./src --fix"},"author":"brunoferreiras","license":"ISC","dependencies":{"jquery":"^3.6.2","sweetalert2":"^11.4.8"},"devDependencies":{"@babel/cli":"^7.17.6","@babel/core":"^7.17.9","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.4","babel-preset-minify":"^0.5.1","concurrently":"^7.1.0","eslint":"^8.13.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.26.0","glob":"^7.2.0","http-server":"^14.1.0","npm-watch":"^0.11.0","rimraf":"^3.0.2","webpack":"^5.72.0","webpack-cli":"^4.10.0"}}')}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var s=o[e]={exports:{}};return t[e].call(s.exports,s,s.exports,a),s.exports}return a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(248)})()));
|