{"version":3,"sources":["../frontend/wc-square.coffee","../frontend/wc-square.js"],"names":["indexOf","jQuery","document","ready","$","window","WC_Square_Payment_Form_Handler","_createClass","key","value","_this","this","body","on","set_payment_fields","handle_saved_payment_methods","form","id","validate_payment_data","$new_payment_method_selection","id_dasherized","change","val","slideUp","slideDown","$parent_row","closest","is","next","show","hide","_this2","submit","_this3","payment_form","log","destroy","SqPaymentForm","get_form_params","build","$card_number","$csc","$expiration","$postal_code","_this4","applicationId","application_id","cardNumber","elementId","attr","placeholder","data","expirationDate","cvv","postalCode","inputClass","inputStyles","input_styles","callbacks","inputEventReceived","event","handle_input_event","cardNonceResponseReceived","errors","nonce","cardData","handle_response","unsupportedBrowserDetected","handle_unsupported_browser","paymentFormLoaded","handle_form_loaded","setPostalCode","length","addClass","$input","eventType","handle_card_brand_change","cardBrand","brand","card_class","i","c","replace","square_card_types","call","enabled_card_types","has_nonce","find","block_ui","requestCardNonce","message","handle_errors","console","log_data","last_4","exp_month","exp_year","billing_postal_code","messages","_this5","arguments","undefined","error","each","index","ref","type","push","general_error","render_errors","unblock_ui","remove","prepend","join","removeClass","unblock","blur","animate","scrollTop","offset","top","block","overlayCSS","background","opacity","ajax_data","logging_enabled","action","security","ajax_log_nonce","ajax","url","ajax_url","args","_classCallCheck","bind","csc_required","handle_checkout_page","handle_pay_page","handle_add_payment_method_page","params","recalculateSize"],"mappings":"8XAAA,WAAA,IAAAA,EAAA,GAAAA,QAMAC,OAAQC,UAAWC,MAAM,SAAEC,GCOvB,ODAGC,OAAOC,gCAAPC,aAAAD,EAAA,CAAA,CAAAE,IAAA,uBAAAC,MAAA,WA2DiB,IAAAC,EAAAC,KA3DjB,OA8DJP,EAAGF,SAASU,MAAOC,GAAI,mBAAoB,WAf3C,OAe8CH,EAAKI,uBAKnDV,EAAGF,SAASU,MAAOC,GAAI,mBAAoB,WCGpC,ODHuCH,EAAKK,iCAGnDJ,KAACK,KAAKH,GAAN,wBAAmCF,KAACM,GAAO,WAtEvC,OAs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