var $=require("jquery"),DialogMobile=require("./dialogMobile.js"),Form=require("./form.js"),Convenient=require("./convenient.js"),initForm=function(){$(function(){"__env"in window&&"token"in window.__env&&$.ajaxSetup({headers:{"X-CSRF-TOKEN":window.__env.token}}),$("form").each(function(i,n){$(n).unbind("submit"),void 0!==$(n).attr("data-ajax-form")?Form.initAjax(n,DialogMobile):$(n).is("[data-form-no-loading]")||Form.initCommon(n,DialogMobile)})})},initConvenient=function(){Convenient.init(DialogMobile)},Base={init:function(){initForm(),initConvenient()},defaultFormCallback:function(i,n){return Form.defaultCallback(i,n,DialogMobile)}};module.exports=Base;