diff --git a/app/Helpers/helpers.php b/app/Helpers/helpers.php
index 57cace3a..53b2f85a 100644
--- a/app/Helpers/helpers.php
+++ b/app/Helpers/helpers.php
@@ -11,7 +11,7 @@ if (!function_exists('money')) {
function money($amount, \App\Models\Currency $currency = null)
{
if(!$currency){
- return number_format($amount,0,'.',',').' manat';
+ return number_format($amount,2,'.',',').' manat';
}
return $currency->symbol_left . number_format($amount, $currency->decimal_place, $currency->decimal_point,
$currency->thousand_point) . $currency->symbol_right;
@@ -62,3 +62,30 @@ if(!function_exists('organisers')){
return \Illuminate\Support\Facades\Auth::user()->account->organisers;
}
}
+if ( ! function_exists('sanitise')) {
+ /**
+ * @param string $input
+ * @return string
+ */
+ function sanitise($input)
+ {
+ $clear = clean($input); // Package to remove code "mews/purifier"
+ $clear = strip_tags($clear);
+ $clear = html_entity_decode($clear);
+ $clear = urldecode($clear);
+ $clear = preg_replace('~[\r\n\t]+~', ' ', trim($clear));
+ $clear = preg_replace('/ +/', ' ', $clear);
+ return $clear;
+ }
+
+ /**
+ * @param string $input
+ * @return string
+ */
+ function clean_whitespace($input)
+ {
+ $clear = preg_replace('~[\r\n\t]+~', ' ', trim($input));
+ $clear = preg_replace('/ +/', ' ', $clear);
+ return $clear;
+ }
+}
\ No newline at end of file
diff --git a/app/Http/Controllers/API/PublicController.php b/app/Http/Controllers/API/PublicController.php
new file mode 100644
index 00000000..a68ed9aa
--- /dev/null
+++ b/app/Http/Controllers/API/PublicController.php
@@ -0,0 +1,51 @@
+children($parent_id);
+ else
+ $categories->main();
+
+ return $categories->get();
+ }
+
+ public function getEvents($cat_id = null, Request $request){
+ $date = $request->get('date');
+ //$cat_id = $request->get('cat_id');
+
+ $e_query = Event::onLive();
+ if(!empty($cat_id)){
+ $category = Category::findOrFail($cat_id);
+
+ if($category->parent_id > 0){
+ $e_query->where('sub_category_id',$category->id);
+ }
+ else{
+ $e_query->where('category_id',$category->id);
+ }
+ }
+ if(!empty($date)){
+ $e_query->whereDate('start_date','>=',Carbon::parse($date));
+ }
+
+ return $e_query->select('id','title','start_date')
+ ->onLive()
+ ->paginate(8);
+ }
+
+ public function getEvent($id){
+ $event = Event::with('images')->findOrFail($id);
+ return $event;
+ }
+}
diff --git a/app/Http/Controllers/Admin/CategoryCrudController.php b/app/Http/Controllers/Admin/CategoryCrudController.php
index 931bf3b6..3178bdb8 100644
--- a/app/Http/Controllers/Admin/CategoryCrudController.php
+++ b/app/Http/Controllers/Admin/CategoryCrudController.php
@@ -38,13 +38,15 @@ class CategoryCrudController extends CrudController
['name'=>'id','type'=>'text','label'=>'Id'],
['name'=>'title_tm','type'=>'text','label'=>'Title tm'],
['name'=>'title_ru','type'=>'text','label'=>'Title ru'],
- ['name'=>'view_type','type'=>'text','label'=>'Type'],
+ ['name'=>'view_type','type'=>'text','label'=>'View Type'],
+ ['name'=>'events_limit','type'=>'text','label'=>'Event limit'],
['name'=>'parent_id','type'=>'text','label'=>'Parent'],
]);
$this->crud->addFields([
['name'=>'title_tm','type'=>'text','label'=>'Title tm'],
['name'=>'title_ru','type'=>'text','label'=>'Title ru'],
- ['name'=>'view_type','type' =>'enum', 'label'=>'Type']
+ ['name'=>'view_type','type' =>'enum', 'label'=>'View Type'],
+ ['name'=>'events_limit','type'=>'number','label'=>'Event limit'],
]);
$this->crud->enableReorder('title_tm', 2);
$this->crud->allowAccess('reorder');
diff --git a/app/Http/Controllers/EventCheckoutController.php b/app/Http/Controllers/EventCheckoutController.php
index eccc0594..4a3b1884 100644
--- a/app/Http/Controllers/EventCheckoutController.php
+++ b/app/Http/Controllers/EventCheckoutController.php
@@ -280,8 +280,8 @@ class EventCheckoutController extends Controller
return view('Public.ViewEvent.Embedded.EventPageCheckout', $data); // <--- todo check this out
}
- return view('Public.ViewEvent.EventPageCheckout', $data);
-// return view('Bilettm.ViewEvent.EventPageCheckout', $data);
+// return view('Public.ViewEvent.EventPageCheckout', $data);
+ return view('Bilettm.ViewEvent.CheckoutPage', $data);
}
/**
@@ -381,7 +381,7 @@ class EventCheckoutController extends Controller
$orderService->calculateFinalCosts();
$secondsToExpire = Carbon::now()->diffInSeconds($order_session['expires']);
$transaction_data += [
- 'amount' => $orderService->getGrandTotal()*100,//todo multiply by 100
+ 'amount' => $orderService->getGrandTotal()*100,//multiply by 100 to obtain tenge
'currency' => 934,
'sessionTimeoutSecs' => $secondsToExpire,
'description' => 'Order for customer: ' . $request->get('order_email'),
@@ -584,17 +584,17 @@ class EventCheckoutController extends Controller
$order->is_payment_received = isset($request_data['pay_offline']) ? 0 : 1;
// Business details is selected, we need to save the business details
- if (isset($request_data['is_business']) && (bool)$request_data['is_business']) {
- $order->is_business = $request_data['is_business'];
- $order->business_name = sanitise($request_data['business_name']);
- $order->business_tax_number = sanitise($request_data['business_tax_number']);
- $order->business_address_line_one = sanitise($request_data['business_address_line1']);
- $order->business_address_line_two = sanitise($request_data['business_address_line2']);
- $order->business_address_state_province = sanitise($request_data['business_address_state']);
- $order->business_address_city = sanitise($request_data['business_address_city']);
- $order->business_address_code = sanitise($request_data['business_address_code']);
-
- }
+// if (isset($request_data['is_business']) && (bool)$request_data['is_business']) {
+// $order->is_business = $request_data['is_business'];
+// $order->business_name = sanitise($request_data['business_name']);
+// $order->business_tax_number = sanitise($request_data['business_tax_number']);
+// $order->business_address_line_one = sanitise($request_data['business_address_line1']);
+// $order->business_address_line_two = sanitise($request_data['business_address_line2']);
+// $order->business_address_state_province = sanitise($request_data['business_address_state']);
+// $order->business_address_city = sanitise($request_data['business_address_city']);
+// $order->business_address_code = sanitise($request_data['business_address_code']);
+//
+// }
// Calculating grand total including tax
$orderService = new OrderService($ticket_order['order_total'], $ticket_order['total_booking_fee'], $event);
@@ -790,6 +790,7 @@ class EventCheckoutController extends Controller
return view('Public.ViewEvent.Embedded.EventPageViewOrder', $data);
}
+// return view('Bilettm.ViewEvent.ViewOrderPage', $data);
return view('Public.ViewEvent.EventPageViewOrder', $data);
}
diff --git a/app/Http/Controllers/EventController.php b/app/Http/Controllers/EventController.php
index 770e95b6..67cfecbe 100644
--- a/app/Http/Controllers/EventController.php
+++ b/app/Http/Controllers/EventController.php
@@ -229,6 +229,7 @@ class EventController extends MyBaseController
$event->description = strip_tags($request->get('description'));
$event->start_date = $request->get('start_date');
$event->category_id = $request->get('category_id');
+ $event->sub_category_id = $request->get('sub_category_id');
$event->google_tag_manager_code = $request->get('google_tag_manager_code');
/*
diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php
index 2fa3d7dd..63e18c5b 100644
--- a/app/Http/Controllers/PublicController.php
+++ b/app/Http/Controllers/PublicController.php
@@ -22,23 +22,20 @@ use Carbon\Carbon;
class PublicController extends Controller
{
public function showHomePage(){
- $cinema = Event::cinema()
- ->onLive()
- ->take(11)
- ->get();
+ $cinema = Category::where('view_type','cinema')
+ ->categoryLiveEvents(21)
+ ->first();
- $theatre = Event::theatre()
- ->onLive()
- ->take(6)
- ->get();
+ $theatre = Category::where('view_type','theatre')
+ ->categoryLiveEvents(6)
+ ->first();
- $musical = Event::musical()
- ->onLive()
- ->take(8)
- ->get();
+ $musical =Category::where('view_type','concert')
+ ->categoryLiveEvents(12)
+ ->first();
$sliders = Slider::where('active',1)->get();
-
+//dd($cinema->events->first());
return view('Bilettm.Public.HomePage')->with([
'cinema' => $cinema,
'theatre' => $theatre,
@@ -75,7 +72,7 @@ class PublicController extends Controller
$e_query->whereDate('start_date','>=',Carbon::parse($date));
}
- $events = $e_query->paginate(10);
+ $events = $e_query->with('images')->paginate(5);
$navigation = $nav_query->get();
// dd($events);
return view('Bilettm.Public.EventsPage')->with([
@@ -85,10 +82,41 @@ class PublicController extends Controller
]);
}
+ public function showCategoryEvents($cat_id, Request $request){
+ $date = $request->get('date');
+ $popular = $request->get('popular');
+
+ $category = Category::select('id','title_tm','title_ru','view_type','events_limit','parent_id')
+ ->findOrFail($cat_id);
+
+ if($category->parent_id>0){
+ $events = $category->cat_events()
+ ->onLive()
+ ->orderBy($popular ? 'start_date' : 'views')
+ ->get();
+ return view("Bilettm.EventsList.subCategoryList")->with([
+ 'category' => $category,
+ 'events' => $events
+ ]);
+ }
+ else{
+ $subCats = $category->children()
+ ->withLiveEvents($date,$category->events_limit,$popular)
+ ->get();
+
+// $events = $e_query->with('images')->paginate(5);
+// dd($subCats->first()->cat_events);
+ return view("Bilettm.EventsList.".$category->view_type)->with([
+ 'sub_cats' => $subCats,
+ 'category' => $category,
+ ]);
+ }
+ }
+
public function search(SearchRequest $request){
//todo implement with elastick search and scout
$query = $request->get('q');
- $events = Event::where('title','like',"%{$query}%")->get();
+ $events = Event::where('title','like',"%{$query}%")->paginate(10);
return view('Bilettm.Public.SearchResults')
->with([
@@ -114,12 +142,16 @@ class PublicController extends Controller
public function subscribe(SubscribeRequest $request){
$email = $request->get('email');
+ //todo validate email
$subscribe = Subscriber::updateOrCreate(['email'=>$email,'active'=>1]);
if($subscribe){
- session()->flash('success','Subscription successfully');
+ session()->flash('message','Subscription successfully');
}
- return redirect()->back();
+ return response()->json([
+ 'status' => 'success',
+ 'message' => 'Subscription successfully',
+ ]);
}
}
\ No newline at end of file
diff --git a/app/Http/api_routes.php b/app/Http/api_routes.php
index 8192b956..4b608727 100644
--- a/app/Http/api_routes.php
+++ b/app/Http/api_routes.php
@@ -1,19 +1,23 @@
'api', 'middleware' => 'auth:api'], function () {
+Route::group(['prefix' => 'api'], function () {
- /*
- * ---------------
- * Organisers
- * ---------------
- */
+ Route::get('category/{parent_id?}','API\PublicController@getCategories');
+ Route::get('events/{cat_id?}','API\PublicController@getEvents');
+
+ Route::group(['prefix' =>'admin', 'middleware' => 'auth:api'], function (){
+ /*
+ * ---------------
+ * Organisers
+ * ---------------
+ */
- /*
- * ---------------
- * Events
- * ---------------
- */
+ /*
+ * ---------------
+ * Events
+ * ---------------
+ */
Route::resource('events', 'API\EventsApiController');
@@ -44,11 +48,11 @@ Route::group(['prefix' => 'api', 'middleware' => 'auth:api'], function () {
*/
- Route::get('/', function () {
- return response()->json([
- 'Hello' => Auth::guard('api')->user()->full_name . '!'
- ]);
+ // Route::get('/', function () {
+ // return response()->json([
+ // 'Hello' => Auth::guard('api')->user()->full_name . '!'
+ // ]);
+ // });
});
-
});
\ No newline at end of file
diff --git a/app/Http/routes.php b/app/Http/routes.php
index fa2487ef..177a67e9 100644
--- a/app/Http/routes.php
+++ b/app/Http/routes.php
@@ -41,16 +41,6 @@ Route::group(
'as' => 'logout',
]);
-
- Route::get('/terms_and_conditions', [
- 'as' => 'termsAndConditions',
- function () {
- return 'TODO: add terms and cond';
- }
- ]);
-
-
-
Route::group(['middleware' => ['installed']], function () {
/*
@@ -124,12 +114,12 @@ Route::group(
/**
* Events by category
*/
- Route::get('/{cat_id?}/{cat_slug?}', [
+ Route::get('/{cat_id}/{cat_slug?}', [
'as' => 'showCategoryEventsPage',
- 'uses' => 'PublicController@showEvents',
+ 'uses' => 'PublicController@showCategoryEvents',
]);
- Route::post('/{cat_id?}/{cat_slug?}', [
+ Route::post('/{cat_id}/{cat_slug?}', [
'as' => 'postEventsPage',
'uses' => 'PublicController@showEvents',
]);
@@ -344,28 +334,11 @@ Route::group(
]
);
- Route::get('{event_id}', function ($event_id) {
- return Redirect::route('showEventDashboard', [
- 'event_id' => $event_id,
- ]);
- });
+ Route::get('{event_id}', 'EventDashboardController@showDashboard');
- /*
- * @todo Move to a controller
- */
Route::get('{event_id}/go_live', [
'as' => 'MakeEventLive',
- function ($event_id) {
- $event = \App\Models\Event::scope()->findOrFail($event_id);
- $event->is_live = 1;
- $event->save();
- \Session::flash('message',
- 'Event Successfully Made Live! You can undo this action in event settings page.');
-
- return Redirect::route('showEventDashboard', [
- 'event_id' => $event_id,
- ]);
- }
+ 'uses'=>'EventController@makeEventLive'
]);
/*
@@ -748,16 +721,13 @@ Route::group(
'uses' =>'PublicController@subscribe'
]);
- Route::get('/terms_and_conditions', [
- 'as' => 'termsAndConditions',
- function () {
- return 'TODO: add terms and cond';
- }
- ]);
+// Route::get('/terms_and_conditions', [
+// 'as' => 'termsAndConditions',
+// function () {
+// return 'TODO: add terms and cond';
+// }
+// ]);
- Route::get('/itemlist', function (){
- return view('Bilettm.Partials.ItemsList');
- });
});
diff --git a/app/Jobs/GenerateTicket.php b/app/Jobs/GenerateTicket.php
index 2464275f..f922020a 100644
--- a/app/Jobs/GenerateTicket.php
+++ b/app/Jobs/GenerateTicket.php
@@ -80,7 +80,7 @@ class GenerateTicket extends Job implements ShouldQueue
Log::info("Ticket generated!");
} catch(\Exception $e) {
Log::error("Error generating ticket. This can be due to permissions on vendor/nitmedia/wkhtml2pdf/src/Nitmedia/Wkhtml2pdf/lib. This folder requires write and execute permissions for the web user");
- Log::error("Error message. " . $e->getMessage());
+ Log::error("Error message. " . $e->getMessage()); //Path must be absolute ("/tmp/")
Log::error("Error stack trace" . $e->getTraceAsString());
$this->fail($e);
}
diff --git a/app/Jobs/SendOrderNotification.php b/app/Jobs/SendOrderNotification.php
index 9c23a7c2..fe5dfc28 100644
--- a/app/Jobs/SendOrderNotification.php
+++ b/app/Jobs/SendOrderNotification.php
@@ -7,6 +7,7 @@ use App\Models\Order;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
+use Illuminate\Support\Facades\Log;
class SendOrderNotification extends Job implements ShouldQueue
{
diff --git a/app/Models/Category.php b/app/Models/Category.php
index c099b787..8abae7d2 100644
--- a/app/Models/Category.php
+++ b/app/Models/Category.php
@@ -9,7 +9,9 @@
namespace App\Models;
+use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Config;
+use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
class Category extends \Illuminate\Database\Eloquent\Model{
@@ -58,18 +60,67 @@ class Category extends \Illuminate\Database\Eloquent\Model{
return $this->hasMany(\App\Models\Event::class);
}
- public function scopeMain($query){
- return $query->where('depth',1)->orderBy('lft','asc');
- }
- public function scopeSub($query){
- return $query->where('depth',2)->orderBy('lft','asc');
+ public function cat_events(){
+ return $this->hasMany(\App\Models\Event::class,'sub_category_id')
+ ->withCount(['stats as views' => function($q){
+ $q->select(DB::raw("SUM(views) as v"));
+ }]);
}
- public function getChildren($parent_id){
- return $this->where('parent_id',$parent_id)->orderBy('lft','asc');
+ public function scopeCategoryLiveEvents($query,$limit){
+// dd($this->view_type);
+ return $query->select('id','title_tm','title_ru','lft')
+ ->orderBy('lft')
+ ->with(['events' => function($q) use($limit){
+ $q->select('id','title','description','category_id','sub_category_id','start_date')
+ ->limit($limit)
+ ->with('starting_ticket')
+ ->withCount(['stats as views' => function($q){
+ $q->select(DB::raw("SUM(views) as v"));
+ }])
+ ->onLive();
+ }]);
}
public function parent(){
return $this->belongsTo(Category::class,'parent_id');
}
+
+ public function children(){
+ return $this->hasMany(Category::class,'parent_id')
+ ->select('id','title_ru','title_tm','parent_id','lft')
+ ->orderBy('lft');
+ }
+ public function scopeMain($query){
+ return $query->where('depth',1)->orderBy('lft','asc');
+ }
+
+ public function scopeSub($query){
+ return $query->where('depth',2)->orderBy('lft','asc');
+ }
+
+ public function scopeChildren($query,$parent_id){
+ return $query->where('parent_id',$parent_id)->orderBy('lft','asc');
+ }
+
+ public function scopeWithLiveEvents($query, $date = false, $popular = true){
+ $limit = 8;
+ return $query->with(['cat_events' => function($query) use ($date, $limit, $popular) {
+ $query->select('id','title','description','category_id','sub_category_id','start_date')
+ ->limit($limit)
+ ->with('starting_ticket')
+ ->withCount(['stats as views' => function($q){
+ $q->select(DB::raw("SUM(views) as v"));}])
+ ->onLive();//event scope onLive get only live events
+ if($date)
+ $query->whereDate('end_date','>=',Carbon::parse($date));
+
+ if($popular)
+ $query->orderBy('views','desc');
+ else
+ $query->orderBy('start_date');
+ }]);
+
+ }
+
}
\ No newline at end of file
diff --git a/app/Models/Event.php b/app/Models/Event.php
index d2e61d5c..7e34d987 100644
--- a/app/Models/Event.php
+++ b/app/Models/Event.php
@@ -4,6 +4,7 @@ namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\SoftDeletes;
+use Illuminate\Support\Facades\DB;
use Str;
use URL;
@@ -107,6 +108,14 @@ class Event extends MyBaseModel
return $this->hasMany(\App\Models\Ticket::class);
}
+ public function starting_ticket(){
+ return $this->tickets()
+ ->select('id','ticket_date','event_id','price')
+ ->whereDate('ticket_date','>=',Carbon::now(\config('app.timezone')))
+ ->orderBy('ticket_date')
+ ->orderBy('price')
+ ->limit(2); // limit 1 returns null ???
+ }
/**
* The stats associated with the event.
*
@@ -117,6 +126,9 @@ class Event extends MyBaseModel
return $this->hasMany(\App\Models\EventStats::class);
}
+ public function views(){
+ return $this->stats()->sum('views');
+ }
/**
* The affiliates associated with the event.
*
@@ -288,7 +300,7 @@ class Event extends MyBaseModel
*/
public function getCurrencySymbolAttribute()
{
- return $this->currency->symbol_left;
+ return $this->currency->symbol_left ?? '';
}
/**
@@ -451,6 +463,10 @@ ICSTemplate;
return $icsTemplate;
}
+ public function getSeansCount(){
+ $seans = $this->tickets()->distinct()->orderBy('ticket_date')->count();
+ return $seans != 0 ? $seans. ' seansa' : ''; //todo get from translate
+ }
/**
* @param integer $accessCodeId
* @return bool
@@ -460,21 +476,14 @@ ICSTemplate;
return (is_null($this->access_codes()->where('id', $accessCodeId)->first()) === false);
}
-
- public function scopeCinema($query){
- return $query->where('event_image_position','cinema');
- }
-
- public function scopeTheatre($query){
- return $query->where('event_image_position','theatre');
- }
-
- public function scopeMusical($query){
- return $query->where('event_image_position','musical');
- }
-
public function scopeOnLive($query){
- $query->whereDate('end_date','>',Carbon::now('Asia/Ashgabat'));
- return $query->where('is_live',1);
+ return$query->whereDate('end_date','>=',Carbon::now(\config('app.timezone')))
+ ->where('is_live',1)
+ ->withCount(['images as image_url' => function($q){
+ $q->select(DB::raw("image_path as imgurl"))
+ ->orderBy('created_at','desc')
+ ->limit(1);
+ }] );
}
+
}
diff --git a/database/migrations/2019_09_25_144735_add_events_limit_to_categories_table.php b/database/migrations/2019_09_25_144735_add_events_limit_to_categories_table.php
new file mode 100644
index 00000000..d813381a
--- /dev/null
+++ b/database/migrations/2019_09_25_144735_add_events_limit_to_categories_table.php
@@ -0,0 +1,32 @@
+smallInteger('events_limit')->default(6);
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('categories', function (Blueprint $table) {
+ $table->dropColumn('events_limit');
+ });
+ }
+}
diff --git a/public/assets/javascript/backend.js b/public/assets/javascript/backend.js
index d2df8aee..636356d9 100644
--- a/public/assets/javascript/backend.js
+++ b/public/assets/javascript/backend.js
@@ -6694,6 +6694,7 @@ $.cf = {
oDTP._setTimeFormatArray(); // Set TimeFormatArray
oDTP._setDateTimeFormatArray(); // Set DateTimeFormatArray
+ console.log($(oDTP.element).data('parentelement') + " " + $(oDTP.element).attr('data-parentelement'));
if($(oDTP.element).data('parentelement') !== undefined)
{
oDTP.settings.parentElement = $(oDTP.element).data('parentelement');
@@ -7911,7 +7912,8 @@ $.cf = {
{
$(document).on("click.DateTimePicker", function(e)
{
- oDTP._hidePicker("");
+ if (oDTP.oData.bElemFocused)
+ oDTP._hidePicker("");
});
}
@@ -9628,6 +9630,10 @@ $.cf = {
showMessage(data.message);
}
+ if (typeof data.redirectUrl !== 'undefined') {
+ window.location.href = data.redirectUrl;
+ }
+
switch (data.status) {
case 'success':
$('#' + deleteType + '_' + deleteId).fadeOut();
diff --git a/public/assets/stylesheet/custom.css b/public/assets/stylesheet/custom.css
index a9542705..9d544bc8 100644
--- a/public/assets/stylesheet/custom.css
+++ b/public/assets/stylesheet/custom.css
@@ -1,3 +1,11 @@
+a:hover{
+ color: rgba(255, 255, 255, .8);
+}
+
+a:focus{
+ color: rgba(255, 255, 255, .8);
+}
+
.container {
max-width: unset;
padding: 0 7.2% !important; }
@@ -198,11 +206,12 @@ article > .u-block-hover__additional--partially-slide-up {
#kinoteator .tab-ozi a.nav-link.active {
background-color: unset; }
#kinoteator .tab-ozi {
- margin-top: 70px; }
+ margin-top: 7px; }
#kinoteator .tab-ozi .nav.u-nav-v1-1 {
padding: 0 5px; }
#kinoteator .owl-nav.disabled {
- display: block; }
+ display: block;
+ font-size: 35px;}
#kinoteator .owl-nav.disabled .owl-prev span, #kinoteator .owl-nav.disabled .owl-next span {
font-size: 30px; }
@@ -262,7 +271,7 @@ article.u-block-hover img {
background-color: #d33d33;
height: fit-content;
font-size: 20px;
- padding: 15px 60px;
+ padding: 12px 60px;
border-radius: 5px;
margin-right: 5px;
transition-property: background-color;
@@ -282,13 +291,14 @@ article.u-block-hover img {
background-color: unset;
border-bottom: 2px solid #ffffff; }
#konserty .tab-ozi {
- margin-top: 70px; }
+ margin-top: 20px; }
#konserty .tab-ozi .nav.u-nav-v1-1 {
padding: 0 5px; }
#konserty .tab-ozi .nav.u-nav-v1-1 .dropdown-menu a {
color: #000000; }
#konserty .owl-nav.disabled {
- display: block; }
+ display: block;
+ font-size: 35px;}
#konserty .owl-nav.disabled .owl-prev span, #konserty .owl-nav.disabled .owl-next span {
font-size: 30px; }
@@ -302,8 +312,8 @@ article.u-block-hover img {
width: 100%;}
#kinoteator-tab1 .owl-nav, .movie-items-group .owl-nav {
position: absolute;
- top: -50px;
- right: 5px; }
+ top: -63px;
+ right: 275px; }
#kinoteator-tab1 .owl-prev, #kinoteator-tab1 .owl-next, .movie-items-group .owl-prev, .movie-items-group .owl-next {
border: 1px solid #000000;
border-radius: 5px;
@@ -319,11 +329,13 @@ article.u-block-hover img {
transition-duration: .2s; }
#kinoteator-tab1 .owl-next, .movie-items-group .owl-next {
background-image: url(../images/icons/right.png);
- background-size: 32px !important;
+ background-size: 56px !important;
+ width: 56px;
border: none !important; }
#kinoteator-tab1 .owl-prev, .movie-items-group .owl-prev {
background-image: url(../images/icons/left.png);
- background-size: 32px !important;
+ background-size: 56px !important;
+ width: 56px;
border: none !important; }
#kinoteator-tab1 .owl-prev:hover, #kinoteator-tab1 .owl-next:hover, .movie-items-group .owl-prev:hover, .movie-items-group .owl-next:hover {
border: 1px solid #7e7e7e; }
@@ -362,8 +374,8 @@ article.u-block-hover img {
bottom: 0; }
#konserty-tab1 .owl-nav {
position: absolute;
- top: -50px;
- right: 5px; }
+ top: -76px;
+ right: 280px;}
#konserty-tab1 .owl-prev, #konserty-tab1 .owl-next {
border: 1px solid #ffffff;
border-radius: 5px;
@@ -379,11 +391,13 @@ article.u-block-hover img {
opacity: 0; }
#konserty-tab1 .owl-next {
background-image: url(../images/icons/w-right.png);
- background-size: 32px !important;
+ background-size: 56px !important;
+ width: 56px;
border: none !important; }
#konserty-tab1 .owl-prev {
background-image: url(../images/icons/w-left.png);
- background-size: 32px !important;
+ background-size: 56px !important;
+ width: 56px;
border: none !important; }
#konserty-tab1 .owl-prev:hover, #konserty-tab1 .owl-next:hover {
border: 1px solid rgba(255, 255, 255, 0.5); }
@@ -682,7 +696,7 @@ img.d2-img {
padding-left: 0; }
#carousel-09-1 .js-prev {
- left: 10px !important;
+ left: 30px !important;
top: 50% !important;
transform: translateY(-50%);
background-image: url(../images/icons/t-left.png) !important;
@@ -1691,7 +1705,7 @@ input.reserved-seats ~ label svg {
background-color: #d33d33;
height: fit-content;
font-size: 20px;
- padding: 15px 60px;
+ padding: 12px 60px;
border-radius: 5px;
margin-right: 5px;
transition-property: background-color;
@@ -1726,4 +1740,33 @@ input.reserved-seats ~ label svg {
.buy_and_salary{
position: absolute;
bottom: 5px;
+}
+
+.modal-send{
+ color: #ffffff;
+ background-color: #d33d33;
+ height: fit-content;
+ font-size: 14px;
+ padding: 5px 40px;
+ border-radius: 5px;
+ margin-right: 0;
+ transition-property: background-color;
+ transition-duration: .2s;
+}
+
+.modal-dialog-centered{
+ width: 60%;
+ max-width: unset;
+}
+
+.title-and-btn input, .title-and-btn textarea{
+ border: 1px solid #000000;
+}
+
+.modal-send:hover{
+ color: rgba(255, 255, 255, .7);
+}
+
+.u-carousel-v3 .slick-center{
+ opacity: 1;
}
\ No newline at end of file
diff --git a/public/assets/stylesheet/styles.e-commerce.css b/public/assets/stylesheet/styles.e-commerce.css
index 2464a3eb..1dd19181 100644
--- a/public/assets/stylesheet/styles.e-commerce.css
+++ b/public/assets/stylesheet/styles.e-commerce.css
@@ -35450,3 +35450,93 @@ p {
font-size: 9px; }
/*# sourceMappingURL=styles.e-commerce.css.map */
+.humane,
+.humane-flatty {
+ position: fixed;
+ -moz-transition: all 0.4s ease-in-out;
+ -webkit-transition: all 0.4s ease-in-out;
+ -ms-transition: all 0.4s ease-in-out;
+ -o-transition: all 0.4s ease-in-out;
+ transition: all 0.4s ease-in-out;
+ z-index: 100000;
+ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
+}
+.humane,
+.humane-flatty {
+ font-family: Helvetica Neue, Helvetica, san-serif;
+ font-size: 16px;
+ top: 0;
+ left: 30%;
+ opacity: 0;
+ width: 40%;
+ color: #444;
+ padding: 10px;
+ text-align: center;
+ background-color: #fff;
+ -webkit-border-bottom-right-radius: 3px;
+ -webkit-border-bottom-left-radius: 3px;
+ -moz-border-radius-bottomright: 3px;
+ -moz-border-radius-bottomleft: 3px;
+ border-bottom-right-radius: 3px;
+ border-bottom-left-radius: 3px;
+ -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.5);
+ box-shadow: 0 1px 2px rgba(0,0,0,0.5);
+ -moz-transform: translateY(-100px);
+ -webkit-transform: translateY(-100px);
+ -ms-transform: translateY(-100px);
+ -o-transform: translateY(-100px);
+ transform: translateY(-100px);
+}
+.humane p,
+.humane-flatty p,
+.humane ul,
+.humane-flatty ul {
+ margin: 0;
+ padding: 0;
+}
+.humane ul,
+.humane-flatty ul {
+ list-style: none;
+}
+.humane.humane-flatty-info,
+.humane-flatty.humane-flatty-info {
+ background-color: #3498db;
+ color: #FFF;
+}
+.humane.humane-flatty-success,
+.humane-flatty.humane-flatty-success {
+ background-color: #18bc9c;
+ color: #FFF;
+}
+.humane.humane-flatty-error,
+.humane-flatty.humane-flatty-error {
+ background-color: #e74c3c;
+ color: #FFF;
+}
+.humane-animate,
+.humane-flatty.humane-flatty-animate {
+ opacity: 1;
+ -moz-transform: translateY(0);
+ -webkit-transform: translateY(0);
+ -ms-transform: translateY(0);
+ -o-transform: translateY(0);
+ transform: translateY(0);
+}
+.humane-animate:hover,
+.humane-flatty.humane-flatty-animate:hover {
+ opacity: 0.7;
+}
+.humane-js-animate,
+.humane-flatty.humane-flatty-js-animate {
+ opacity: 1;
+ -moz-transform: translateY(0);
+ -webkit-transform: translateY(0);
+ -ms-transform: translateY(0);
+ -o-transform: translateY(0);
+ transform: translateY(0);
+}
+.humane-js-animate:hover,
+.humane-flatty.humane-flatty-js-animate:hover {
+ opacity: 0.7;
+ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
+}
\ No newline at end of file
diff --git a/public/vendor/datetimepicker/.bower.json b/public/vendor/datetimepicker/.bower.json
index be49394f..389cae81 100644
--- a/public/vendor/datetimepicker/.bower.json
+++ b/public/vendor/datetimepicker/.bower.json
@@ -1,6 +1,8 @@
{
"name": "datetimepicker",
+
"description": "Responsive flat design jQuery DateTime Picker plugin for Web & Mobile",
+
"keywords": [
"date",
"time",
@@ -12,37 +14,30 @@
"timepicker",
"input"
],
+
"version": "0.1.38",
+
"homepage": "https://nehakadam.github.io/DateTimePicker/",
- "main": [
- "dist/DateTimePicker.min.js",
- "dist/DateTimePicker.min.css"
- ],
+
+ "main": ["dist/DateTimePicker.min.js", "dist/DateTimePicker.min.css"],
+
"authors": [
- {
- "name": "nehakadam"
- }
+ {"name": "nehakadam"}
],
+
"repository": {
"type": "git",
"url": "git://github.com:nehakadam/DateTimePicker.git"
},
+
"devDependencies": {
"jquery": ">=1.0.0"
},
+
"ignore": [
"**/.*",
"node_modules",
"package.json"
- ],
- "_release": "0.1.38",
- "_resolution": {
- "type": "version",
- "tag": "0.1.38",
- "commit": "36d272ac90c93ef45c5b8b228a517a932a0778bd"
- },
- "_source": "https://github.com/nehakadam/DateTimePicker.git",
- "_target": "^0.1.38",
- "_originalSource": "flat-datetimepicker",
- "_direct": true
-}
\ No newline at end of file
+ ]
+
+}
diff --git a/public/vendor/datetimepicker/Gruntfile.js b/public/vendor/datetimepicker/Gruntfile.js
index a6d13e57..abe5ff89 100644
--- a/public/vendor/datetimepicker/Gruntfile.js
+++ b/public/vendor/datetimepicker/Gruntfile.js
@@ -3,7 +3,7 @@ module.exports = function(grunt)
var sBanner = '/* ----------------------------------------------------------------------------- ' +
'\n\n jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile' +
'\n Version <%= pkg.version %>' +
- '\n Copyright (c)<%= grunt.template.today("yyyy") %> Lajpat Shah' +
+ '\n Copyright (c)2014-<%= grunt.template.today("yyyy") %> Lajpat Shah' +
'\n Contributors : https://github.com/nehakadam/DateTimePicker/contributors' +
'\n Repository : https://github.com/nehakadam/DateTimePicker' +
'\n Documentation : https://nehakadam.github.io/DateTimePicker' +
@@ -23,12 +23,12 @@ module.exports = function(grunt)
options:
{
separator: '\n\n\n\n',
- stripBanners: true,
+ stripBanners: true,
banner: sBanner
},
- src: ['src/i18n/*', '!src/i18n/DateTimePicker-i18n.js'],
- dest: 'src/i18n/DateTimePicker-i18n.js',
+ src: ['src/i18n/*', '!src/i18n/DateTimePicker-i18n.js'],
+ dest: 'src/i18n/DateTimePicker-i18n.js',
nonull: true
}
},
@@ -59,8 +59,8 @@ module.exports = function(grunt)
{
banner: sBanner,
compress: {
- drop_console: true
- }
+ drop_console: true
+ }
},
build:
{
@@ -98,12 +98,10 @@ module.exports = function(grunt)
options:
{
strict: false,
-
curly: false,
-
- eqeqeq: true,
- eqnull: true,
- browser: true,
+ eqeqeq: true,
+ eqnull: true,
+ browser: true,
devel: true,
//unused: true,
//undef: true,
@@ -111,14 +109,14 @@ module.exports = function(grunt)
globals:
{
$: false,
- jQuery: false,
- define: false,
- require: false,
- module: false,
- DateTimePicker: true
- },
+ jQuery: false,
+ define: false,
+ require: false,
+ module: false,
+ DateTimePicker: true
+ },
- force: true
+ force: true
}
},
@@ -147,8 +145,9 @@ module.exports = function(grunt)
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-csslint');
- // Default task(s).
- grunt.registerTask('default', ['uglify', 'cssmin', 'copy']);
- grunt.registerTask('lang', ['concat:lang', 'copy:lang']);
- grunt.registerTask('lint', ['jshint', 'csslint']);
+ // Default task(s).
+ //
+ grunt.registerTask('default', ['uglify', 'cssmin', 'copy']);
+ grunt.registerTask('lang', ['concat:lang', 'copy:lang']);
+ grunt.registerTask('lint', ['jshint', 'csslint']);
};
\ No newline at end of file
diff --git a/public/vendor/datetimepicker/LICENSE b/public/vendor/datetimepicker/LICENSE
index e2787d87..9e667895 100644
--- a/public/vendor/datetimepicker/LICENSE
+++ b/public/vendor/datetimepicker/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2017 Lajpat Shah
+Copyright (c) 2014-2019 Lajpat Shah
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
diff --git a/public/vendor/datetimepicker/README.md b/public/vendor/datetimepicker/README.md
index a7aa7a4a..b741cb8e 100644
--- a/public/vendor/datetimepicker/README.md
+++ b/public/vendor/datetimepicker/README.md
@@ -11,7 +11,7 @@ Users can change values using +/- buttons or type values directly into the textb
For web, picker can be binded relative to reference element, were it will appear at the bottom of the element. For mobile, the picker can appear as a dialog box covering entire window.
-##Browser Support
+## Browser Support
- Chrome, Firefox, Safari, Opera, IE 6+
- Android 2.3+, iOS 6+, Windows Phone 8
@@ -20,7 +20,7 @@ For web, picker can be binded relative to reference element, were it will appear
For demo & api documentation visit [Plugin Page](http://nehakadam.github.io/DateTimePicker/)
-##Build System
+## Build System
- Install devDependencies listed in "package.json"
@@ -36,7 +36,7 @@ Tasks configured in "Gruntfile.js"
- Minify "src/DateTimePicker.css" to "dist/DateTimePicker.min.css"
-##Installations
+## Installations
- npm
@@ -44,35 +44,39 @@ Tasks configured in "Gruntfile.js"
- bower
- `bower install curioussolutions-datetimepicker`
+ `bower install flat-datetimepicker`
-##CDN
+## CDN
DateTimePicker is hosted on [jsDelivr](http://www.jsdelivr.com).
Files - Latest
```
-
-
+
+
```
Files - Particular Version
```
-
-
+
+
```
-##Authors
+## Authors
[Neha Kadam](https://github.com/nehakadam): Developer
Special Thanks:
- [Jean-Christophe Hoelt](https://github.com/j3k0) - NPM packaging. Few customization options.
- [All Contributors](https://github.com/nehakadam/DateTimePicker/contributors)
-Copyright 2017 [Lajpat Shah](https://github.com/lajpatshah)
+
+Copyright 2014-2019 [Lajpat Shah](https://github.com/lajpatshah)
-##License
+**I can not actively maintain or reply quickly due to time constraints, please consider this point before using plugin.**
+
+
+## License
Licensed under the MIT License
diff --git a/public/vendor/datetimepicker/dist/DateTimePicker-Zepto.js b/public/vendor/datetimepicker/dist/DateTimePicker-Zepto.js
index 636fd727..0e6cd7fb 100755
--- a/public/vendor/datetimepicker/dist/DateTimePicker-Zepto.js
+++ b/public/vendor/datetimepicker/dist/DateTimePicker-Zepto.js
@@ -2,7 +2,7 @@
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
Version 0.1.17
- Copyright (c)2017 Lajpat Shah
+ Copyright (c)2014-2019 Lajpat Shah
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
Repository : https://nehakadam.github.io/DateTimePicker
Documentation : https://github.com/nehakadam/DateTimePicker
diff --git a/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.css b/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.css
index 7031dc78..71433806 100755
--- a/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.css
+++ b/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.css
@@ -2,7 +2,7 @@
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
Version 0.1.38
- Copyright (c)2017 Lajpat Shah
+ Copyright (c)2014-2019 Lajpat Shah
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
Repository : https://github.com/nehakadam/DateTimePicker
Documentation : https://nehakadam.github.io/DateTimePicker
diff --git a/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.js b/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.js
index 24ded4ef..10032202 100755
--- a/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.js
+++ b/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.js
@@ -2,7 +2,7 @@
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
Version 0.1.38
- Copyright (c)2017 Lajpat Shah
+ Copyright (c)2014-2019 Lajpat Shah
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
Repository : https://github.com/nehakadam/DateTimePicker
Documentation : https://nehakadam.github.io/DateTimePicker
diff --git a/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.min.css b/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.min.css
index a37e6acd..2b062fbf 100644
--- a/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.min.css
+++ b/public/vendor/datetimepicker/dist/DateTimePicker-ltie9.min.css
@@ -1,13 +1 @@
-/* -----------------------------------------------------------------------------
-
- jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
- Version 0.1.38
- Copyright (c)2017 Lajpat Shah
- Contributors : https://github.com/nehakadam/DateTimePicker/contributors
- Repository : https://github.com/nehakadam/DateTimePicker
- Documentation : https://nehakadam.github.io/DateTimePicker
-
- ----------------------------------------------------------------------------- */
-
-
-.dtpicker-cont{top:25%}.dtpicker-overlay{-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#20000000, endColorstr=#20000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#20000000, endColorstr=#20000000);zoom:1!important}
\ No newline at end of file
+.dtpicker-cont{top:25%}.dtpicker-overlay{zoom:1!important}
\ No newline at end of file
diff --git a/public/vendor/datetimepicker/dist/DateTimePicker.css b/public/vendor/datetimepicker/dist/DateTimePicker.css
index af0338fd..afbe65f1 100755
--- a/public/vendor/datetimepicker/dist/DateTimePicker.css
+++ b/public/vendor/datetimepicker/dist/DateTimePicker.css
@@ -2,7 +2,7 @@
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
Version 0.1.38
- Copyright (c)2017 Lajpat Shah
+ Copyright (c)2014-2019 Lajpat Shah
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
Repository : https://github.com/nehakadam/DateTimePicker
Documentation : https://nehakadam.github.io/DateTimePicker
diff --git a/public/vendor/datetimepicker/dist/DateTimePicker.js b/public/vendor/datetimepicker/dist/DateTimePicker.js
index 09c314be..e8b5dcdb 100644
--- a/public/vendor/datetimepicker/dist/DateTimePicker.js
+++ b/public/vendor/datetimepicker/dist/DateTimePicker.js
@@ -2,7 +2,7 @@
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
Version 0.1.38
- Copyright (c)2017 Lajpat Shah
+ Copyright (c)2014-2019 Lajpat Shah
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
Repository : https://github.com/nehakadam/DateTimePicker
Documentation : https://nehakadam.github.io/DateTimePicker
@@ -300,6 +300,7 @@ $.cf = {
oDTP._setTimeFormatArray(); // Set TimeFormatArray
oDTP._setDateTimeFormatArray(); // Set DateTimeFormatArray
+ console.log($(oDTP.element).data('parentelement') + " " + $(oDTP.element).attr('data-parentelement'));
if($(oDTP.element).data('parentelement') !== undefined)
{
oDTP.settings.parentElement = $(oDTP.element).data('parentelement');
@@ -1517,7 +1518,8 @@ $.cf = {
{
$(document).on("click.DateTimePicker", function(e)
{
- oDTP._hidePicker("");
+ if (oDTP.oData.bElemFocused)
+ oDTP._hidePicker("");
});
}
diff --git a/public/vendor/datetimepicker/dist/DateTimePicker.min.css b/public/vendor/datetimepicker/dist/DateTimePicker.min.css
index c70fc9bf..fd55da6e 100644
--- a/public/vendor/datetimepicker/dist/DateTimePicker.min.css
+++ b/public/vendor/datetimepicker/dist/DateTimePicker.min.css
@@ -1,13 +1 @@
-/* -----------------------------------------------------------------------------
-
- jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
- Version 0.1.38
- Copyright (c)2017 Lajpat Shah
- Contributors : https://github.com/nehakadam/DateTimePicker/contributors
- Repository : https://github.com/nehakadam/DateTimePicker
- Documentation : https://nehakadam.github.io/DateTimePicker
-
- ----------------------------------------------------------------------------- */
-
-
-.dtpicker-overlay{z-index:2000;display:none;min-width:300px;background:rgba(0,0,0,.2);font-size:12px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dtpicker-mobile{position:fixed;top:0;left:0;width:100%;height:100%}.dtpicker-overlay *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-ms-box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.dtpicker-bg{width:100%;height:100%;font-family:Arial}.dtpicker-cont{border:1px solid #ECF0F1}.dtpicker-mobile .dtpicker-cont{position:relative;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-o-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);border:0}.dtpicker-content{margin:0 auto;padding:1em 0;max-width:500px;background:#fff}.dtpicker-mobile .dtpicker-content{width:97%}.dtpicker-subcontent{position:relative}.dtpicker-header{margin:.2em 1em}.dtpicker-header .dtpicker-title{color:#2980B9;text-align:center;font-size:1.1em}.dtpicker-header .dtpicker-close{position:absolute;top:-.7em;right:.3em;padding:.5em .5em 1em 1em;color:#FF3B30;font-size:1.5em;cursor:pointer}.dtpicker-header .dtpicker-close:hover{color:#FF3B30}.dtpicker-header .dtpicker-value{padding:.8em .2em .2em;color:#FF3B30;text-align:center;font-size:1.4em}.dtpicker-components{overflow:hidden;margin:1em;font-size:1.3em}.dtpicker-components *{margin:0;padding:0}.dtpicker-components .dtpicker-compOutline{display:inline-block;float:left}.dtpicker-comp2{width:50%}.dtpicker-comp3{width:33.3%}.dtpicker-comp4{width:25%}.dtpicker-comp5{width:20%}.dtpicker-comp6{width:16.66%}.dtpicker-comp7{width:14.285%}.dtpicker-components .dtpicker-comp{margin:2%;text-align:center}.dtpicker-components .dtpicker-comp>*{display:block;height:30px;color:#2980B9;text-align:center;line-height:30px}.dtpicker-components .dtpicker-comp>:hover{color:#2980B9}.dtpicker-components .dtpicker-compButtonEnable{opacity:1}.dtpicker-components .dtpicker-compButtonDisable{opacity:.5}.dtpicker-components .dtpicker-compButton{background:#FFF;font-size:140%;cursor:pointer}.dtpicker-components .dtpicker-compValue{margin:.4em 0;width:100%;border:0;background:#FFF;font-size:100%;-webkit-appearance:none;-moz-appearance:none}.dtpicker-overlay .dtpicker-compValue:focus{outline:0;background:#F2FCFF}.dtpicker-buttonCont{overflow:hidden;margin:.2em 1em}.dtpicker-buttonCont .dtpicker-button{display:block;padding:.6em 0;width:47%;background:#FF3B30;color:#FFF;text-align:center;font-size:1.3em;cursor:pointer}.dtpicker-buttonCont .dtpicker-button:hover{color:#FFF}.dtpicker-singleButton .dtpicker-button{margin:.2em auto}.dtpicker-twoButtons .dtpicker-buttonSet{float:left}.dtpicker-twoButtons .dtpicker-buttonClear{float:right}
\ No newline at end of file
+.dtpicker-overlay{z-index:2000;display:none;min-width:300px;background:rgba(0,0,0,.2);font-size:12px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dtpicker-mobile{position:fixed;top:0;left:0;width:100%;height:100%}.dtpicker-overlay *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-ms-box-sizing:border-box;-webkit-tap-highlight-color:transparent}.dtpicker-bg{width:100%;height:100%;font-family:Arial}.dtpicker-cont{border:1px solid #ecf0f1}.dtpicker-mobile .dtpicker-cont{position:relative;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-o-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);border:none}.dtpicker-content{margin:0 auto;padding:1em 0;max-width:500px;background:#fff}.dtpicker-mobile .dtpicker-content{width:97%}.dtpicker-subcontent{position:relative}.dtpicker-header{margin:.2em 1em}.dtpicker-header .dtpicker-title{color:#2980b9;text-align:center;font-size:1.1em}.dtpicker-header .dtpicker-close{position:absolute;top:-.7em;right:.3em;padding:.5em .5em 1em 1em;color:#ff3b30;font-size:1.5em;cursor:pointer}.dtpicker-header .dtpicker-close:hover{color:#ff3b30}.dtpicker-header .dtpicker-value{padding:.8em .2em .2em .2em;color:#ff3b30;text-align:center;font-size:1.4em}.dtpicker-components{overflow:hidden;margin:1em 1em;font-size:1.3em}.dtpicker-components *{margin:0;padding:0}.dtpicker-components .dtpicker-compOutline{display:inline-block;float:left}.dtpicker-comp2{width:50%}.dtpicker-comp3{width:33.3%}.dtpicker-comp4{width:25%}.dtpicker-comp5{width:20%}.dtpicker-comp6{width:16.66%}.dtpicker-comp7{width:14.285%}.dtpicker-components .dtpicker-comp{margin:2%;text-align:center}.dtpicker-components .dtpicker-comp>*{display:block;height:30px;color:#2980b9;text-align:center;line-height:30px}.dtpicker-components .dtpicker-comp>:hover{color:#2980b9}.dtpicker-components .dtpicker-compButtonEnable{opacity:1}.dtpicker-components .dtpicker-compButtonDisable{opacity:.5}.dtpicker-components .dtpicker-compButton{background:#fff;font-size:140%;cursor:pointer}.dtpicker-components .dtpicker-compValue{margin:.4em 0;width:100%;border:none;background:#fff;font-size:100%;-webkit-appearance:none;-moz-appearance:none}.dtpicker-overlay .dtpicker-compValue:focus{outline:0;background:#f2fcff}.dtpicker-buttonCont{overflow:hidden;margin:.2em 1em}.dtpicker-buttonCont .dtpicker-button{display:block;padding:.6em 0;width:47%;background:#ff3b30;color:#fff;text-align:center;font-size:1.3em;cursor:pointer}.dtpicker-buttonCont .dtpicker-button:hover{color:#fff}.dtpicker-singleButton .dtpicker-button{margin:.2em auto}.dtpicker-twoButtons .dtpicker-buttonSet{float:left}.dtpicker-twoButtons .dtpicker-buttonClear{float:right}
\ No newline at end of file
diff --git a/public/vendor/datetimepicker/dist/DateTimePicker.min.js b/public/vendor/datetimepicker/dist/DateTimePicker.min.js
index c16c997c..db11d139 100644
--- a/public/vendor/datetimepicker/dist/DateTimePicker.min.js
+++ b/public/vendor/datetimepicker/dist/DateTimePicker.min.js
@@ -2,12 +2,12 @@
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
Version 0.1.38
- Copyright (c)2017 Lajpat Shah
+ Copyright (c)2014-2019 Lajpat Shah
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
Repository : https://github.com/nehakadam/DateTimePicker
Documentation : https://nehakadam.github.io/DateTimePicker
----------------------------------------------------------------------------- */
-Object.keys||(Object.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b}),$.DateTimePicker=$.DateTimePicker||{name:"DateTimePicker",i18n:{},defaults:{mode:"date",defaultDate:null,dateSeparator:"-",timeSeparator:":",timeMeridiemSeparator:" ",dateTimeSeparator:" ",monthYearSeparator:" ",dateTimeFormat:"dd-MM-yyyy HH:mm",dateFormat:"dd-MM-yyyy",timeFormat:"HH:mm",maxDate:null,minDate:null,maxTime:null,minTime:null,maxDateTime:null,minDateTime:null,shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fullDayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fullMonthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],labels:null,minuteInterval:1,roundOffMinutes:!0,secondsInterval:1,roundOffSeconds:!0,showHeader:!0,titleContentDate:"Set Date",titleContentTime:"Set Time",titleContentDateTime:"Set Date & Time",buttonsToDisplay:["HeaderCloseButton","SetButton","ClearButton"],setButtonContent:"Set",clearButtonContent:"Clear",incrementButtonContent:"+",decrementButtonContent:"-",setValueInTextboxOnEveryClick:!1,readonlyInputs:!1,animationDuration:400,touchHoldInterval:300,captureTouchHold:!1,mouseHoldInterval:50,captureMouseHold:!1,isPopup:!0,parentElement:"body",isInline:!1,inputElement:null,language:"",init:null,addEventHandlers:null,beforeShow:null,afterShow:null,beforeHide:null,afterHide:null,buttonClicked:null,settingValueOfElement:null,formatHumanDate:null,parseDateTimeString:null,formatDateTimeString:null},dataObject:{dCurrentDate:new Date,iCurrentDay:0,iCurrentMonth:0,iCurrentYear:0,iCurrentHour:0,iCurrentMinutes:0,iCurrentSeconds:0,sCurrentMeridiem:"",iMaxNumberOfDays:0,sDateFormat:"",sTimeFormat:"",sDateTimeFormat:"",dMinValue:null,dMaxValue:null,sArrInputDateFormats:[],sArrInputTimeFormats:[],sArrInputDateTimeFormats:[],bArrMatchFormat:[],bDateMode:!1,bTimeMode:!1,bDateTimeMode:!1,oInputElement:null,iTabIndex:0,bElemFocused:!1,bIs12Hour:!1,sTouchButton:null,iTouchStart:null,oTimeInterval:null,bIsTouchDevice:"ontouchstart"in document.documentElement}},$.cf={_isValid:function(a){return void 0!==a&&null!==a&&""!==a},_compare:function(a,b){var c=void 0!==a&&null!==a,d=void 0!==b&&null!==b;return!(!c||!d)&&a.toLowerCase()===b.toLowerCase()}},function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";function b(b,c){this.element=b;var d="";d=a.cf._isValid(c)&&a.cf._isValid(c.language)?c.language:a.DateTimePicker.defaults.language,this.settings=a.extend({},a.DateTimePicker.defaults,a.DateTimePicker.i18n[d],c),this.options=c,this.oData=a.extend({},a.DateTimePicker.dataObject),this._defaults=a.DateTimePicker.defaults,this._name=a.DateTimePicker.name,this.init()}a.fn.DateTimePicker=function(c){var d,e,f=a(this).data(),g=f?Object.keys(f):[];if("string"!=typeof c)return this.each(function(){a.removeData(this,"plugin_DateTimePicker"),a.data(this,"plugin_DateTimePicker")||a.data(this,"plugin_DateTimePicker",new b(this,c))});if(a.cf._isValid(f))if("destroy"===c){if(g.length>0)for(d in g)if(e=g[d],e.search("plugin_DateTimePicker")!==-1){a(document).unbind("click.DateTimePicker keydown.DateTimePicker keyup.DateTimePicker"),a(this).children().remove(),a(this).removeData(),a(this).unbind(),a(this).removeClass("dtpicker-overlay dtpicker-mobile dtpicker-inline"),f=f[e];break}}else if("object"===c&&g.length>0)for(d in g)if(e=g[d],e.search("plugin_DateTimePicker")!==-1)return f[e]},b.prototype={init:function(){var b=this;b._setDateFormatArray(),b._setTimeFormatArray(),b._setDateTimeFormatArray(),void 0!==a(b.element).data("parentelement")&&(b.settings.parentElement=a(b.element).data("parentelement")),b.settings.isPopup&&!b.settings.isInline&&(b._createPicker(),a(b.element).addClass("dtpicker-mobile")),b.settings.isInline&&(b._createPicker(),b._showPicker(b.settings.inputElement)),b.settings.init&&b.settings.init.call(b),b._addEventHandlersForInput()},_setDateFormatArray:function(){var a=this;a.oData.sArrInputDateFormats=[];var b="";b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",a.oData.sArrInputDateFormats.push(b),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="MM"+a.settings.monthYearSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="MMM"+a.settings.monthYearSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="MMMM"+a.settings.monthYearSeparator+"yyyy",a.oData.sArrInputDateFormats.push(b),b="yyyy"+a.settings.monthYearSeparator+"MM",a.oData.sArrInputDateFormats.push(b)},_setTimeFormatArray:function(){var a=this;a.oData.sArrInputTimeFormats=[];var b="";b="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",a.oData.sArrInputTimeFormats.push(b),b="HH"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",a.oData.sArrInputTimeFormats.push(b),b="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",a.oData.sArrInputTimeFormats.push(b),b="HH"+a.settings.timeSeparator+"mm",a.oData.sArrInputTimeFormats.push(b)},_setDateTimeFormatArray:function(){var a=this;a.oData.sArrInputDateTimeFormats=[];var b="",c="",d="";b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",c="HH"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",c="HH"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",c="HH"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeSeparator+"ss"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",c="HH"+a.settings.timeSeparator+"mm",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",c="HH"+a.settings.timeSeparator+"mm",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="MM"+a.settings.dateSeparator+"dd"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",c="HH"+a.settings.timeSeparator+"mm",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="yyyy"+a.settings.dateSeparator+"MM"+a.settings.dateSeparator+"dd",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d),b="dd"+a.settings.dateSeparator+"MMM"+a.settings.dateSeparator+"yyyy",c="hh"+a.settings.timeSeparator+"mm"+a.settings.timeMeridiemSeparator+"AA",d=b+a.settings.dateTimeSeparator+c,a.oData.sArrInputDateTimeFormats.push(d)},_matchFormat:function(b,c){var d=this;d.oData.bArrMatchFormat=[],d.oData.bDateMode=!1,d.oData.bTimeMode=!1,d.oData.bDateTimeMode=!1;var e,f=[];for(b=a.cf._isValid(b)?b:d.settings.mode,a.cf._compare(b,"date")?(c=a.cf._isValid(c)?c:d.oData.sDateFormat,d.oData.bDateMode=!0,f=d.oData.sArrInputDateFormats):a.cf._compare(b,"time")?(c=a.cf._isValid(c)?c:d.oData.sTimeFormat,d.oData.bTimeMode=!0,f=d.oData.sArrInputTimeFormats):a.cf._compare(b,"datetime")&&(c=a.cf._isValid(c)?c:d.oData.sDateTimeFormat,d.oData.bDateTimeMode=!0,f=d.oData.sArrInputDateTimeFormats),e=0;e0&&d._matchFormat(b,c)},_createPicker:function(){var b=this;b.settings.isInline?a(b.element).addClass("dtpicker-inline"):(a(b.element).addClass("dtpicker-overlay"),a(".dtpicker-overlay").click(function(a){b._hidePicker("")}));var c="";c+="",a(b.element).html(c)},_addEventHandlersForInput:function(){var b=this;if(!b.settings.isInline){b.oData.oInputElement=null,a(b.settings.parentElement).find("input[type='date'], input[type='time'], input[type='datetime']").each(function(){a(this).attr("data-field",a(this).attr("type")),a(this).attr("type","text")});var c="[data-field='date'], [data-field='time'], [data-field='datetime']";a(b.settings.parentElement).off("focus",c,b._inputFieldFocus).on("focus",c,{obj:b},b._inputFieldFocus),a(b.settings.parentElement).off("click",c,b._inputFieldClick).on("click",c,{obj:b},b._inputFieldClick)}b.settings.addEventHandlers&&b.settings.addEventHandlers.call(b)},_inputFieldFocus:function(a){var b=a.data.obj;b.showDateTimePicker(this),b.oData.bMouseDown=!1},_inputFieldClick:function(b){var c=b.data.obj;a.cf._compare(a(this).prop("tagName"),"input")||c.showDateTimePicker(this),b.stopPropagation()},getDateObjectForInputField:function(b){var c=this;if(a.cf._isValid(b)){var d,e=c._getValueOfElement(b),f=a(b).data("field"),g="";return a.cf._isValid(f)||(f=c.settings.mode),c.settings.formatDateTimeString?d=c.settings.parseDateTimeString.call(c,e,f,g,a(b)):(g=a(b).data("format"),a.cf._isValid(g)||(a.cf._compare(f,"date")?g=c.settings.dateFormat:a.cf._compare(f,"time")?g=c.settings.timeFormat:a.cf._compare(f,"datetime")&&(g=c.settings.dateTimeFormat)),c._matchFormat(f,g),a.cf._compare(f,"date")?d=c._parseDate(e):a.cf._compare(f,"time")?d=c._parseTime(e):a.cf._compare(f,"datetime")&&(d=c._parseDateTime(e))),d}},setDateTimeStringInInputField:function(b,c){var d=this;c=c||d.oData.dCurrentDate;var e;a.cf._isValid(b)?(e=[],"string"==typeof b?e.push(b):"object"==typeof b&&(e=b)):e=a.cf._isValid(d.settings.parentElement)?a(d.settings.parentElement).find("[data-field='date'], [data-field='time'], [data-field='datetime']"):a("[data-field='date'], [data-field='time'], [data-field='datetime']"),e.each(function(){var b,e,f,g,h=this;b=a(h).data("field"),a.cf._isValid(b)||(b=d.settings.mode),e="Custom",f=!1,d.settings.formatDateTimeString||(e=a(h).data("format"),a.cf._isValid(e)||(a.cf._compare(b,"date")?e=d.settings.dateFormat:a.cf._compare(b,"time")?e=d.settings.timeFormat:a.cf._compare(b,"datetime")&&(e=d.settings.dateTimeFormat)),f=d.getIs12Hour(b,e)),g=d._setOutput(b,e,f,c,h),d._setValueOfElement(g,a(h))})},getDateTimeStringInFormat:function(a,b,c){var d=this;return d._setOutput(a,b,d.getIs12Hour(a,b),c)},showDateTimePicker:function(a){var b=this;null!==b.oData.oInputElement?b.settings.isInline||b._hidePicker(0,a):b._showPicker(a)},_setButtonAction:function(a){var b=this;null!==b.oData.oInputElement&&(b._setValueOfElement(b._setOutput()),a?(b.settings.buttonClicked&&b.settings.buttonClicked.call(b,"TAB",b.oData.oInputElement),b.settings.isInline||b._hidePicker(0)):b.settings.isInline||b._hidePicker(""))},_setOutput:function(b,c,d,e,f){var g=this;e=a.cf._isValid(e)?e:g.oData.dCurrentDate,d=d||g.oData.bIs12Hour;var h,i=g._setVariablesForDate(e,!0,!0),j="",k=g._formatDate(i),l=g._formatTime(i),m=a.extend({},k,l),n="",o="",p=Function.length;return g.settings.formatDateTimeString?j=g.settings.formatDateTimeString.call(g,m,b,c,f):(g._setMatchFormat(p,b,c),g.oData.bDateMode?g.oData.bArrMatchFormat[0]?j=m.dd+g.settings.dateSeparator+m.MM+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[1]?j=m.MM+g.settings.dateSeparator+m.dd+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[2]?j=m.yyyy+g.settings.dateSeparator+m.MM+g.settings.dateSeparator+m.dd:g.oData.bArrMatchFormat[3]?j=m.dd+g.settings.dateSeparator+m.monthShort+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[4]?j=m.MM+g.settings.monthYearSeparator+m.yyyy:g.oData.bArrMatchFormat[5]?j=m.monthShort+g.settings.monthYearSeparator+m.yyyy:g.oData.bArrMatchFormat[6]?j=m.month+g.settings.monthYearSeparator+m.yyyy:g.oData.bArrMatchFormat[7]&&(j=m.yyyy+g.settings.monthYearSeparator+m.MM):g.oData.bTimeMode?g.oData.bArrMatchFormat[0]?j=m.hh+g.settings.timeSeparator+m.mm+g.settings.timeSeparator+m.ss+g.settings.timeMeridiemSeparator+m.ME:g.oData.bArrMatchFormat[1]?j=m.HH+g.settings.timeSeparator+m.mm+g.settings.timeSeparator+m.ss:g.oData.bArrMatchFormat[2]?j=m.hh+g.settings.timeSeparator+m.mm+g.settings.timeMeridiemSeparator+m.ME:g.oData.bArrMatchFormat[3]&&(j=m.HH+g.settings.timeSeparator+m.mm):g.oData.bDateTimeMode&&(g.oData.bArrMatchFormat[0]||g.oData.bArrMatchFormat[1]||g.oData.bArrMatchFormat[8]||g.oData.bArrMatchFormat[9]?n=m.dd+g.settings.dateSeparator+m.MM+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[2]||g.oData.bArrMatchFormat[3]||g.oData.bArrMatchFormat[10]||g.oData.bArrMatchFormat[11]?n=m.MM+g.settings.dateSeparator+m.dd+g.settings.dateSeparator+m.yyyy:g.oData.bArrMatchFormat[4]||g.oData.bArrMatchFormat[5]||g.oData.bArrMatchFormat[12]||g.oData.bArrMatchFormat[13]?n=m.yyyy+g.settings.dateSeparator+m.MM+g.settings.dateSeparator+m.dd:(g.oData.bArrMatchFormat[6]||g.oData.bArrMatchFormat[7]||g.oData.bArrMatchFormat[14]||g.oData.bArrMatchFormat[15])&&(n=m.dd+g.settings.dateSeparator+m.monthShort+g.settings.dateSeparator+m.yyyy),h=g.oData.bArrMatchFormat[0]||g.oData.bArrMatchFormat[1]||g.oData.bArrMatchFormat[2]||g.oData.bArrMatchFormat[3]||g.oData.bArrMatchFormat[4]||g.oData.bArrMatchFormat[5]||g.oData.bArrMatchFormat[6]||g.oData.bArrMatchFormat[7],o=d?h?m.hh+g.settings.timeSeparator+m.mm+g.settings.timeSeparator+m.ss+g.settings.timeMeridiemSeparator+m.ME:m.hh+g.settings.timeSeparator+m.mm+g.settings.timeMeridiemSeparator+m.ME:h?m.HH+g.settings.timeSeparator+m.mm+g.settings.timeSeparator+m.ss:m.HH+g.settings.timeSeparator+m.mm,""!==n&&""!==o&&(j=n+g.settings.dateTimeSeparator+o)),g._setMatchFormat(p)),j},_clearButtonAction:function(){var a=this;null!==a.oData.oInputElement&&a._setValueOfElement(""),a.settings.isInline||a._hidePicker("")},_setOutputOnIncrementOrDecrement:function(){var b=this;a.cf._isValid(b.oData.oInputElement)&&b.settings.setValueInTextboxOnEveryClick&&b._setValueOfElement(b._setOutput())},_showPicker:function(b){var c=this;if(null===c.oData.oInputElement){c.oData.oInputElement=b,c.oData.iTabIndex=parseInt(a(b).attr("tabIndex"));var d=a(b).data("field")||"",e=a(b).data("min")||"",f=a(b).data("max")||"",g=a(b).data("format")||"",h=a(b).data("view")||"",i=a(b).data("startend")||"",j=a(b).data("startendelem")||"",k=c._getValueOfElement(b)||"";if(""!==h&&(a.cf._compare(h,"Popup")?c.setIsPopup(!0):c.setIsPopup(!1)),!c.settings.isPopup&&!c.settings.isInline){c._createPicker();var l=a(c.oData.oInputElement).offset().top+a(c.oData.oInputElement).outerHeight(),m=a(c.oData.oInputElement).offset().left,n=a(c.oData.oInputElement).outerWidth();a(c.element).css({position:"absolute",top:l,left:m,width:n,height:"auto"})}c.settings.beforeShow&&c.settings.beforeShow.call(c,b),d=a.cf._isValid(d)?d:c.settings.mode,c.settings.mode=d,a.cf._isValid(g)||(a.cf._compare(d,"date")?g=c.settings.dateFormat:a.cf._compare(d,"time")?g=c.settings.timeFormat:a.cf._compare(d,"datetime")&&(g=c.settings.dateTimeFormat)),c._matchFormat(d,g),c.oData.dMinValue=null,c.oData.dMaxValue=null,c.oData.bIs12Hour=!1;var o,p,q,r,s,t,u,v;c.oData.bDateMode?(o=e||c.settings.minDate,p=f||c.settings.maxDate,c.oData.sDateFormat=g,a.cf._isValid(o)&&(c.oData.dMinValue=c._parseDate(o)),a.cf._isValid(p)&&(c.oData.dMaxValue=c._parseDate(p)),""!==i&&(a.cf._compare(i,"start")||a.cf._compare(i,"end"))&&""!==j&&a(j).length>=1&&(q=c._getValueOfElement(a(j)),""!==q&&(r=c.settings.parseDateTimeString?c.settings.parseDateTimeString.call(c,q,d,g,a(j)):c._parseDate(q),a.cf._compare(i,"start")?a.cf._isValid(p)?c._compareDates(r,c.oData.dMaxValue)<0&&(c.oData.dMaxValue=new Date(r)):c.oData.dMaxValue=new Date(r):a.cf._compare(i,"end")&&(a.cf._isValid(o)?c._compareDates(r,c.oData.dMinValue)>0&&(c.oData.dMinValue=new Date(r)):c.oData.dMinValue=new Date(r)))),c.settings.parseDateTimeString?c.oData.dCurrentDate=c.settings.parseDateTimeString.call(c,k,d,g,a(b)):c.oData.dCurrentDate=c._parseDate(k),c.oData.dCurrentDate.setHours(0),c.oData.dCurrentDate.setMinutes(0),c.oData.dCurrentDate.setSeconds(0)):c.oData.bTimeMode?(o=e||c.settings.minTime,p=f||c.settings.maxTime,c.oData.sTimeFormat=g,c.oData.bIs12Hour=c.getIs12Hour(),a.cf._isValid(o)&&(c.oData.dMinValue=c._parseTime(o),a.cf._isValid(p)||(c.oData.sTimeFormat===c.oData.sArrInputTimeFormats[0]?p="11:59:59 PM":c.oData.sTimeFormat===c.oData.sArrInputTimeFormats[1]?p="23:59:59":c.oData.sTimeFormat===c.oData.sArrInputTimeFormats[2]?p="11:59 PM":c.oData.sTimeFormat===c.oData.sArrInputTimeFormats[3]&&(p="23:59"),c.oData.dMaxValue=c._parseTime(p))),a.cf._isValid(p)&&(c.oData.dMaxValue=c._parseTime(p),a.cf._isValid(o)||(c.oData.sTimeFormat===c.oData.sArrInputTimeFormats[0]?o="12:00:00 AM":c.oData.sTimeFormat===c.oData.sArrInputTimeFormats[1]?o="00:00:00":c.oData.sTimeFormat===c.oData.sArrInputTimeFormats[2]?o="12:00 AM":c.oData.sTimeFormat===c.oData.sArrInputTimeFormats[3]&&(o="00:00"),c.oData.dMinValue=c._parseTime(o))),""!==i&&(a.cf._compare(i,"start")||a.cf._compare(i,"end"))&&""!==j&&a(j).length>=1&&(s=c._getValueOfElement(a(j)),""!==s&&(c.settings.parseDateTimeString?r=c.settings.parseDateTimeString.call(c,s,d,g,a(j)):t=c._parseTime(s),a.cf._compare(i,"start")?(t.setMinutes(t.getMinutes()-1),a.cf._isValid(p)?2===c._compareTime(t,c.oData.dMaxValue)&&(c.oData.dMaxValue=new Date(t)):c.oData.dMaxValue=new Date(t)):a.cf._compare(i,"end")&&(t.setMinutes(t.getMinutes()+1),a.cf._isValid(o)?3===c._compareTime(t,c.oData.dMinValue)&&(c.oData.dMinValue=new Date(t)):c.oData.dMinValue=new Date(t)))),c.settings.parseDateTimeString?c.oData.dCurrentDate=c.settings.parseDateTimeString.call(c,k,d,g,a(b)):c.oData.dCurrentDate=c._parseTime(k)):c.oData.bDateTimeMode&&(o=e||c.settings.minDateTime,p=f||c.settings.maxDateTime,c.oData.sDateTimeFormat=g,c.oData.bIs12Hour=c.getIs12Hour(),a.cf._isValid(o)&&(c.oData.dMinValue=c._parseDateTime(o)),a.cf._isValid(p)&&(c.oData.dMaxValue=c._parseDateTime(p)),""!==i&&(a.cf._compare(i,"start")||a.cf._compare(i,"end"))&&""!==j&&a(j).length>=1&&(u=c._getValueOfElement(a(j)),""!==u&&(v=c.settings.parseDateTimeString?c.settings.parseDateTimeString.call(c,u,d,g,a(j)):c._parseDateTime(u),a.cf._compare(i,"start")?a.cf._isValid(p)?c._compareDateTime(v,c.oData.dMaxValue)<0&&(c.oData.dMaxValue=new Date(v)):c.oData.dMaxValue=new Date(v):a.cf._compare(i,"end")&&(a.cf._isValid(o)?c._compareDateTime(v,c.oData.dMinValue)>0&&(c.oData.dMinValue=new Date(v)):c.oData.dMinValue=new Date(v)))),c.settings.parseDateTimeString?c.oData.dCurrentDate=c.settings.parseDateTimeString.call(c,k,d,g,a(b)):c.oData.dCurrentDate=c._parseDateTime(k)),c._setVariablesForDate(),c._modifyPicker(),a(c.element).fadeIn(c.settings.animationDuration),c.settings.afterShow&&setTimeout(function(){c.settings.afterShow.call(c,b)},c.settings.animationDuration)}},_hidePicker:function(b,c){var d=this,e=d.oData.oInputElement;d.settings.beforeHide&&d.settings.beforeHide.call(d,e),a.cf._isValid(b)||(b=d.settings.animationDuration),a.cf._isValid(d.oData.oInputElement)&&(a(d.oData.oInputElement).blur(),d.oData.oInputElement=null),a(d.element).fadeOut(b),0===b?a(d.element).find(".dtpicker-subcontent").html(""):setTimeout(function(){a(d.element).find(".dtpicker-subcontent").html("")},b),a(document).unbind("click.DateTimePicker keydown.DateTimePicker keyup.DateTimePicker"),d.settings.afterHide&&(0===b?d.settings.afterHide.call(d,e):setTimeout(function(){d.settings.afterHide.call(d,e)},b)),a.cf._isValid(c)&&d._showPicker(c)},_modifyPicker:function(){var b,c,d=this,e=[];d.oData.bDateMode?(b=d.settings.titleContentDate,c=3,d.oData.bArrMatchFormat[0]?e=["day","month","year"]:d.oData.bArrMatchFormat[1]?e=["month","day","year"]:d.oData.bArrMatchFormat[2]?e=["year","month","day"]:d.oData.bArrMatchFormat[3]?e=["day","month","year"]:d.oData.bArrMatchFormat[4]?(c=2,e=["month","year"]):d.oData.bArrMatchFormat[5]?(c=2,e=["month","year"]):d.oData.bArrMatchFormat[6]?(c=2,e=["month","year"]):d.oData.bArrMatchFormat[7]&&(c=2,e=["year","month"])):d.oData.bTimeMode?(b=d.settings.titleContentTime,d.oData.bArrMatchFormat[0]?(c=4,e=["hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[1]?(c=3,e=["hour","minutes","seconds"]):d.oData.bArrMatchFormat[2]?(c=3,e=["hour","minutes","meridiem"]):d.oData.bArrMatchFormat[3]&&(c=2,e=["hour","minutes"])):d.oData.bDateTimeMode&&(b=d.settings.titleContentDateTime,d.oData.bArrMatchFormat[0]?(c=6,e=["day","month","year","hour","minutes","seconds"]):d.oData.bArrMatchFormat[1]?(c=7,e=["day","month","year","hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[2]?(c=6,e=["month","day","year","hour","minutes","seconds"]):d.oData.bArrMatchFormat[3]?(c=7,e=["month","day","year","hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[4]?(c=6,e=["year","month","day","hour","minutes","seconds"]):d.oData.bArrMatchFormat[5]?(c=7,e=["year","month","day","hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[6]?(c=6,e=["day","month","year","hour","minutes","seconds"]):d.oData.bArrMatchFormat[7]?(c=7,e=["day","month","year","hour","minutes","seconds","meridiem"]):d.oData.bArrMatchFormat[8]?(c=5,e=["day","month","year","hour","minutes"]):d.oData.bArrMatchFormat[9]?(c=6,e=["day","month","year","hour","minutes","meridiem"]):d.oData.bArrMatchFormat[10]?(c=5,e=["month","day","year","hour","minutes"]):d.oData.bArrMatchFormat[11]?(c=6,e=["month","day","year","hour","minutes","meridiem"]):d.oData.bArrMatchFormat[12]?(c=5,e=["year","month","day","hour","minutes"]):d.oData.bArrMatchFormat[13]?(c=6,e=["year","month","day","hour","minutes","meridiem"]):d.oData.bArrMatchFormat[14]?(c=5,e=["day","month","year","hour","minutes"]):d.oData.bArrMatchFormat[15]&&(c=6,e=["day","month","year","hour","minutes","meridiem"]));var f,g="dtpicker-comp"+c,h=!1,i=!1,j=!1;for(f=0;f