'use strict'; if ( typeof dmnConfig === 'undefined' || !dmnConfig.fields ){ var dmnFormHtml = '

Make an Enquiry

Powered by DesignMyNight.com
'; if ( typeof dmnElement !== 'undefined' && dmnElement ){ dmnElement.insertAdjacentHTML('beforeend', dmnFormHtml); } else { document.write(dmnFormHtml); } } var DMN = DMN || {}; DMN.baseUrl = '//www.designmynight.com'; DMN.debug = false; DMN.newDayCutoff = 7; DMN.days = [ 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday' ]; DMN.formConfig = DMN.formConfig || {}; DMN.formConfig[3701438786942] = {"id":"3701438786942","form":"dmn-form-3701438786942","venueId":["54be1d54787279ae28ac0857"],"venues":[{"_id":"54be1d54787279ae28ac0857","title":"Circo","booking_restrictions":{"54c2482c787279f040ac08d2":{"monday":{"booking_available":false},"tuesday":{"booking_available":false},"wednesday":{"booking_available":false},"thursday":{"booking_available":false},"friday":{"booking_available":true,"bookings_from":"21:30","bookings_to":"22:30","min_people":8,"max_people":30,"booking_notes":"\u00a3100 Deposit applies - MIN Spend \u00a350PP plus \u00a35 booth fee"},"saturday":{"booking_available":true,"bookings_from":"21:30","bookings_to":"22:30","min_people":8,"max_people":30,"booking_notes":"\u00a3100 Deposit applies - MIN Spend \u00a350PP plus \u00a35 booth fee"},"sunday":{"booking_available":false}},"54c2482c787279f040ac08d1":{"monday":{"booking_available":false},"tuesday":{"booking_available":false},"wednesday":{"booking_available":false},"thursday":{"booking_available":false},"friday":{"booking_available":true,"bookings_from":"21:00","bookings_to":"22:30","min_people":8,"max_people":40,"booking_notes":"\u00a3100 Deposit applies - min spend \u00a330pp plus \u00a33 Booth fee"},"saturday":{"booking_available":true,"bookings_from":"21:00","bookings_to":"22:30","min_people":8,"max_people":40,"booking_notes":"\u00a3100 Deposit applies - min spend \u00a330pp plus \u00a33 Booth fee"},"sunday":{"booking_available":false}},"54c2482c787279f040ac08d3":{"monday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"tuesday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"wednesday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"thursday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"friday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"saturday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"sunday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"}},"54c2482c787279f040ac08d4":{"monday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"tuesday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"wednesday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"thursday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"friday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"saturday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"18:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"sunday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0}},"54cf8615787279e00eb9b22b":{"monday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"tuesday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"wednesday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"thursday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"friday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"saturday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"sunday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"}},"54cf8615787279e00eb9b22c":{"monday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"tuesday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"wednesday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"thursday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"friday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"saturday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"sunday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"}},"54d0b60b0df690501cfc23d2":{"monday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"tuesday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"wednesday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"thursday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"friday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"saturday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"sunday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"}},"54e46ce22b588fa90e6ad98f":{"monday":{"booking_available":false},"tuesday":{"booking_available":false},"wednesday":{"booking_available":false},"thursday":{"booking_available":false},"friday":{"booking_available":true,"bookings_from":"21:00","bookings_to":"11:30"},"saturday":{"booking_available":true,"bookings_from":"21:00","bookings_to":"11:30","min_people":2,"max_people":10},"sunday":{"booking_available":false}},"54d103520df6905827fc243e":{"monday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"tuesday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"wednesday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"thursday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"friday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"saturday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"sunday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"}},"554cbb2b17eeb94155455165":{"monday":{"bookings_from":"10:00","bookings_to":"10:00","booking_available":false},"tuesday":{"bookings_from":"10:00","bookings_to":"10:00","booking_available":false},"wednesday":{"bookings_from":"10:00","bookings_to":"10:00","booking_available":false},"thursday":{"bookings_from":"10:00","bookings_to":"10:00","booking_available":false},"friday":{"bookings_from":"10:00","bookings_to":"10:00","booking_available":false},"saturday":{"bookings_from":"10:00","bookings_to":"10:00","booking_available":false},"sunday":{"bookings_from":"10:00","bookings_to":"10:00","booking_available":false}},"55a8ccca17108cf803faf08d":{"monday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"tuesday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"wednesday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"thursday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"friday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"saturday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"sunday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"}},"55a8cd1c17108c3c04faf078":{"monday":{"booking_available":true},"tuesday":{"booking_available":true},"wednesday":{"booking_available":true},"thursday":{"booking_available":true},"friday":{"booking_available":true},"saturday":{"booking_available":true},"sunday":{"booking_available":true}}},"booking_unavailable":[],"opening_times":{"monday":{"status":true,"open":"10:00","close":"23:00","private_hire":false},"tuesday":{"status":true,"open":"10:00","close":"23:00","private_hire":false},"wednesday":{"status":true,"open":"10:00","close":"23:00","private_hire":false},"thursday":{"status":true,"open":"10:00","close":"23:00","private_hire":false},"friday":{"status":true,"open":"10:00","close":"02:00","private_hire":false},"saturday":{"status":true,"open":"10:00","close":"03:00","private_hire":false},"sunday":{"status":true,"open":"10:00","close":"23:00","private_hire":false}},"bookings_shut":{"monday":[],"tuesday":[],"wednesday":[],"thursday":[],"friday":[],"saturday":[],"sunday":[]},"venue_group":"54c242cc2b588fee440d6f82","booking_types":[{"id":"54c2482c787279f040ac08d2","name":"VIP BOOTHS","value":"50.00","guestlist":false,"dob_required":true,"no_duration":true,"confirmation_email_message":"Thank you for your VIP booth reservation.\n\nTerms & Conditions \n* ALL BOOTHS MUST be at the venue NO LATER than 10.30pm or BOOTH WILL BE RE-SOLD AND ALL DEPOSITS ARE NON REFUNDABLE.\n\n \n\n- Required Minimum spend refers to the MINIMUM spend per booth required by us (CIRCO). The required minimum spend is based solely on full bottle serve or multiples thereof on all spirits or Champagnes and does not include wines or beers of any description (unless pre ordered as part of a package). The term bottle serve refers to in usual terms as a bottle of spirits as a 70cl bottle or in Champagnes as 75cl bottle. This also applies to larger sized bottles of the same in spirits and or Champagne.\n- Circo must be made aware of your final number of guests 48 hours prior to arrival, if 48 hours notice is not given you will be liable to pay full amount based on numbers on orginal booking \n\n- Booths must pre order drinks prior to arrival \n\n- There will be a 10% booth fee added per head \n- All deposits are non-refundable and non-transferable against other goods or services\n\n \n\n- Door staff and management reserve the right to refuse admission\n\n\n\n- All guests are required to have valid Idenfication \n\n\n\n\n\n - Only acceptance and clearance of any deposit payment constitutes our acceptance of your booking.\n\n - Our normal trading terms and conditions apply and full copy of these terms are available upon request.\n\n \nIf you have any problems with these terms and conditions please contact us on 0151 709 0470 or email kiersmith@circoliverpool.com and we do our up most to try and resolve any issues.\n\n \n\n\n\nWe look forward to welcoming you to Circo and hope you enjoy your visit. \n\n \n\nKind Regards, \n\n \n\n \n\nAll the staff at Circo Albert Dock","acknowledgement_email_message":"Thank you for your enquiry, our team are working on this and will be in touch shortly.","private_hire":true,"booking_rules":{"monday":{"booking_available":false},"tuesday":{"booking_available":false},"wednesday":{"booking_available":false},"thursday":{"booking_available":false},"friday":{"booking_available":true,"bookings_from":"21:30","bookings_to":"22:30","min_people":8,"max_people":30,"booking_notes":"\u00a3100 Deposit applies - MIN Spend \u00a350PP plus \u00a35 booth fee"},"saturday":{"booking_available":true,"bookings_from":"21:30","bookings_to":"22:30","min_people":8,"max_people":30,"booking_notes":"\u00a3100 Deposit applies - MIN Spend \u00a350PP plus \u00a35 booth fee"},"sunday":{"booking_available":false}},"no_availability_action":"may_enquire","areas":[{"id":{"$id":"54cf70ff787279680db9b24f"},"name":"TABLE 200"},{"id":{"$id":"54cf71182b588fe70e89a958"},"name":"TABLE 201"},{"id":{"$id":"54cf7125787279e40db9b23f"},"name":"TABLE 202"},{"id":{"$id":"54cf71330df690396bfc248e"},"name":"TABLE 203"},{"id":{"$id":"54cf71407872797a0db9b284"},"name":"TABLE 204"},{"id":{"$id":"54cf716e2b588fd20f89a949"},"name":"TABLE 205"}],"zone_priority":["54cf80360df6901e73fc23ef"],"packages":["54cf71ce2b588f111189a8ab","54cf72110df6901b6dfc23e0","54cf722c0df6901c6dfc2428","54cf729c0df690956cfc23e9","54cf72c20df6909172fc23c5","54cf72f62b588fd91089a89f","54cf73352b588f6a1189a86c","54cf76d30df6904773fc23c5","54cf77bb2b588faa1189a86a","54cf77cc2b588fe70e89a96a","54cf77f17872795e0db9b2a7","54cf78150df6909772fc23cb","54cf781f7872795c0db9b28e","54cf783c7872795e0db9b2c2","54cf78622b588f691189a86e","54cf78752b588f871189a881","54cf78890df690396bfc24b7","54cf789a2b588f811189a873","54cf78b02b588faa1189a88a","54cf78d07872795f0db9b2b4","54cf78e37872794e0db9b2b2","54cf7903787279f90db9b24a","54cf79122b588f6e1189a88b"],"deposits":[{"amount":"50","min_people":"8","days":{"fri":true,"sat":true},"terms":"DEPOSIT OF \u00a3100 IS REQUIRED - MIN SPEND \u00a350PP PLUS \u00a35PP BOOTH FEE","id":{"$id":"54e4c0260df69056684bd0a4"}}],"label_colour":"#f7c6c7"},{"id":"54c2482c787279f040ac08d1","name":"BOOTH","value":"30.0","guestlist":false,"dob_required":true,"no_duration":true,"confirmation_email_message":"Thank you for your booth reservation.\n\nTerms & Conditions \n* ALL BOOTHS MUST be at the venue NO LATER than 10.30pm or BOOTH WILL BE RE-SOLD AND ALL DEPOSITS ARE NON REFUNDABLE.\n\n \n\n- Required Minimum spend refers to the MINIMUM spend per booth required by us (CIRCO). The required minimum spend is based solely on full bottle serve or multiples thereof on all spirits or Champagnes and does not include wines or beers of any description (unless pre ordered as part of a package). The term bottle serve refers to in usual terms as a bottle of spirits as a 70cl bottle or in Champagnes as 75cl bottle. This also applies to larger sized bottles of the same in spirits and or Champagne.\n- Circo must be made aware of your final number of guests 48 hours prior to arrival, if 48 hours notice is not given you will be liable to pay full amount based on numbers on orginal booking \n\n- Booths must pre order drinks prior to arrival \n\n- There will be a 10% booth fee added per head \n- All deposits are non-refundable and non-transferable against other goods or services\n\n \n\n- Door staff and management reserve the right to refuse admission\n\n\n\n- All guests are required to have valid Idenfication \n\n\n\n\n\n - Only acceptance and clearance of any deposit payment constitutes our acceptance of your booking.\n\n - Our normal trading terms and conditions apply and full copy of these terms are available upon request.\n\n \nIf you have any problems with these terms and conditions please contact us on 0151 709 0470 or email kiersmith@circoliverpool.com and we do our up most to try and resolve any issues.\n\n \n\n\n\nWe look forward to welcoming you to Circo and hope you enjoy your visit. \n\n \n\nKind Regards, \n\n \n\n \n\nAll the staff at Circo Albert Dock","acknowledgement_email_message":"Thank you for your enquiry, our team are working on this and will be in touch shortly.","private_hire":false,"booking_rules":{"monday":{"booking_available":false},"tuesday":{"booking_available":false},"wednesday":{"booking_available":false},"thursday":{"booking_available":false},"friday":{"booking_available":true,"bookings_from":"21:00","bookings_to":"22:30","min_people":8,"max_people":40,"booking_notes":"\u00a3100 Deposit applies - min spend \u00a330pp plus \u00a33 Booth fee"},"saturday":{"booking_available":true,"bookings_from":"21:00","bookings_to":"22:30","min_people":8,"max_people":40,"booking_notes":"\u00a3100 Deposit applies - min spend \u00a330pp plus \u00a33 Booth fee"},"sunday":{"booking_available":false}},"no_availability_action":"may_enquire","areas":[{"id":{"$id":"54cf6fd32b588f3c1189a86a"},"name":"TABLE 115"},{"id":{"$id":"54cf70330df690c16bfc2430"},"name":"TABLE 114"},{"id":{"$id":"54cf70480df6903772fc23c5"},"name":"TABLE 112"},{"id":{"$id":"54cf704f2b588f3d1189a877"},"name":"TABLE 111"},{"id":{"$id":"54cf70570df6901c6dfc2419"},"name":"TABLE 123"},{"id":{"$id":"54cf70622b588fd60f89a8f0"},"name":"TABLE 122"},{"id":{"$id":"54cf706c2b588fd60f89a8f4"},"name":"TABLE 103"},{"id":{"$id":"54cf707e0df6904d6cfc240b"},"name":"TABLE 102"},{"id":{"$id":"54cf708c2b588fc01089a8b8"},"name":"TABLE 101"},{"id":{"$id":"54cf709b2b588fd41089a8c9"},"name":"TABLE 100"},{"id":{"$id":"54cf709d0df690356cfc241e"},"name":"TABLE 108"}],"zone_priority":["54cf802c0df690396bfc24df","54cf8031787279b30cb9b2e1"],"packages":["54cf71ce2b588f111189a8ab","54cf72110df6901b6dfc23e0","54cf722c0df6901c6dfc2428","54cf729c0df690956cfc23e9","54cf72c20df6909172fc23c5","54cf72f62b588fd91089a89f","54cf73352b588f6a1189a86c","54cf76d30df6904773fc23c5","54cf77bb2b588faa1189a86a","54cf77cc2b588fe70e89a96a","54cf77f17872795e0db9b2a7","54cf78150df6909772fc23cb","54cf781f7872795c0db9b28e","54cf783c7872795e0db9b2c2","54cf78622b588f691189a86e","54cf78752b588f871189a881","54cf78890df690396bfc24b7","54cf789a2b588f811189a873","54cf78b02b588faa1189a88a","54cf78d07872795f0db9b2b4","54cf78e37872794e0db9b2b2","54cf7903787279f90db9b24a","54cf79122b588f6e1189a88b"],"deposits":[{"amount":"33","min_people":"8","days":{"fri":true,"sat":true},"terms":"Minimum spend of \u00a330 plus a booth fee of \u00a33- Booths run on a botle service policy","id":{"$id":"54cf8615787279e00eb9b22a"}}],"label_colour":"#fad8c7"},{"id":"54c2482c787279f040ac08d3","name":"KARAOKE ROOM","value":0,"guestlist":false,"dob_required":false,"no_duration":false,"booking_rules":{"monday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"tuesday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"wednesday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"thursday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"friday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"saturday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"},"sunday":{"booking_available":true,"bookings_from":"17:00","bookings_to":"22:00","min_people":10,"max_people":50,"booking_notes":"Room Fee \u00a3250 - Deposit \u00a3125"}},"label_colour":"#fef2c0"},{"id":"54c2482c787279f040ac08d4","name":"COCKTAIL MASTERCLASS","value":"25.00","guestlist":false,"dob_required":false,"no_duration":false,"acknowledgement_email_message":"Thank you for your enquiry, our team are working on this and will be in touch shortly.","booking_rules":{"monday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"tuesday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"wednesday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"thursday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"friday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"saturday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"18:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0},"sunday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"20:00","bookings_shut":"","booking_notes":"\u00a35 PP Deposit. 25 \/Head","min_people":6,"max_people":30,"max_duration":2,"min_duration":1.5,"max_auto_confirm":0}},"areas":[{"id":{"$id":"54cf6fd32b588f3c1189a86a"},"name":"TABLE 115"},{"id":{"$id":"54cf70330df690c16bfc2430"},"name":"TABLE 114"},{"id":{"$id":"54cf70480df6903772fc23c5"},"name":"TABLE 112"},{"id":{"$id":"54cf704f2b588f3d1189a877"},"name":"TABLE 111"},{"id":{"$id":"54cf70570df6901c6dfc2419"},"name":"TABLE 123"},{"id":{"$id":"54cf70622b588fd60f89a8f0"},"name":"TABLE 122"},{"id":{"$id":"54cf706c2b588fd60f89a8f4"},"name":"TABLE 103"},{"id":{"$id":"54cf707e0df6904d6cfc240b"},"name":"TABLE 102"},{"id":{"$id":"54cf708c2b588fc01089a8b8"},"name":"TABLE 101"},{"id":{"$id":"54cf709b2b588fd41089a8c9"},"name":"TABLE 100"},{"id":{"$id":"54cf709d0df690356cfc241e"},"name":"TABLE 108"},{"id":{"$id":"54cf70ff787279680db9b24f"},"name":"TABLE 200"},{"id":{"$id":"54cf71182b588fe70e89a958"},"name":"TABLE 201"},{"id":{"$id":"54cf7125787279e40db9b23f"},"name":"TABLE 202"},{"id":{"$id":"54cf71330df690396bfc248e"},"name":"TABLE 203"},{"id":{"$id":"54cf71407872797a0db9b284"},"name":"TABLE 204"},{"id":{"$id":"54cf716e2b588fd20f89a949"},"name":"TABLE 205"}],"zone_priority":["54cf80360df6901e73fc23ef","54cf8031787279b30cb9b2e1","54cf802c0df690396bfc24df"],"packages":["54cf8235787279780eb9b247","54cf82400df6909172fc2405","54cf82580df6902173fc23cd","54cf82750df6907f72fc242a","54cf8276787279c80db9b2e3","54cf828a0df6903872fc242b","54cf81b6787279780eb9b22c","54cf80dd787279e10db9b279","54cf84a62b588f621189a8dd"],"label_colour":"#bfe5bf"},{"id":"54cf8615787279e00eb9b22b","name":"DANCE CLASS","value":"15.00","guestlist":false,"dob_required":false,"no_duration":false,"acknowledgement_email_message":"Thank you for your enquiry, our team are working on this and will be in touch shortly.","booking_rules":{"monday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"tuesday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"wednesday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"thursday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"friday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"saturday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"sunday":{"booking_available":true,"bookings_from":"12:00","bookings_to":"17:00","min_duration":1,"max_duration":1.5,"min_people":6,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"}},"no_availability_action":"may_enquire","areas":[{"id":{"$id":"54cf71407872797a0db9b284"},"name":"TABLE 204"},{"id":{"$id":"54cf716e2b588fd20f89a949"},"name":"TABLE 205"}],"zone_priority":["54cf718a787279db0db9b246","54cf80360df6901e73fc23ef"],"packages":["54cf71ce2b588f111189a8ab","54cf72110df6901b6dfc23e0","54cf722c0df6901c6dfc2428","54cf729c0df690956cfc23e9","54cf72c20df6909172fc23c5","54cf72f62b588fd91089a89f","54cf73352b588f6a1189a86c","54cf76d30df6904773fc23c5","54cf77bb2b588faa1189a86a","54cf77cc2b588fe70e89a96a","54cf77f17872795e0db9b2a7","54cf78150df6909772fc23cb","54cf781f7872795c0db9b28e","54cf783c7872795e0db9b2c2","54cf78622b588f691189a86e","54cf78752b588f871189a881","54cf78890df690396bfc24b7","54cf789a2b588f811189a873","54cf78b02b588faa1189a88a","54cf78d07872795f0db9b2b4","54cf78e37872794e0db9b2b2","54cf7903787279f90db9b24a","54cf79122b588f6e1189a88b","54cf80dd787279e10db9b279","54cf81b6787279780eb9b22c","54cf8235787279780eb9b247","54cf82400df6909172fc2405","54cf82580df6902173fc23cd","54cf82750df6907f72fc242a","54cf8276787279c80db9b2e3","54cf828a0df6903872fc242b"],"label_colour":"#bfdadc"},{"id":"54cf8615787279e00eb9b22c","name":"AFTERNOON TEASE","value":"30.00","guestlist":false,"dob_required":false,"no_duration":false,"acknowledgement_email_message":"Thank you for your enquiry, our team are working on this and will be in touch shortly.","booking_rules":{"monday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"tuesday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"wednesday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"thursday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"friday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"saturday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"},"sunday":{"booking_available":true,"bookings_to":"16:00","bookings_from":"12:00","max_duration":2.5,"min_duration":1,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PER HEAD DEPOSIT"}},"no_availability_action":"may_enquire","areas":[{"id":{"$id":"54cf85292b588f6e1189a8cd"},"name":"RED ROOM"}],"packages":["54cf71ce2b588f111189a8ab","54cf72110df6901b6dfc23e0","54cf722c0df6901c6dfc2428","54cf729c0df690956cfc23e9","54cf72c20df6909172fc23c5","54cf72f62b588fd91089a89f","54cf73352b588f6a1189a86c","54cf76d30df6904773fc23c5","54cf77bb2b588faa1189a86a","54cf77cc2b588fe70e89a96a","54cf77f17872795e0db9b2a7","54cf78150df6909772fc23cb","54cf781f7872795c0db9b28e","54cf783c7872795e0db9b2c2","54cf78622b588f691189a86e","54cf78752b588f871189a881","54cf78890df690396bfc24b7","54cf789a2b588f811189a873","54cf78b02b588faa1189a88a","54cf78d07872795f0db9b2b4","54cf78e37872794e0db9b2b2","54cf7903787279f90db9b24a","54cf79122b588f6e1189a88b"],"label_colour":"#c7def8"},{"id":"54d0b60b0df690501cfc23d2","name":"MOVES ROOM HIRE","value":"30","guestlist":false,"dob_required":false,"no_duration":false,"booking_rules":{"monday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"tuesday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"wednesday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"thursday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"friday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"saturday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"},"sunday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"17:00"}},"label_colour":"#bfd4f2"},{"id":"54e46ce22b588fa90e6ad98f","name":"GUESTLIST","value":0,"guestlist":true,"dob_required":true,"no_duration":false,"acknowledgement_email_message":"Thanks for your enquiry, our team are working on this and will be in touch shortly.","all_names_required":true,"gender_required":true,"booking_rules":{"monday":{"booking_available":false},"tuesday":{"booking_available":false},"wednesday":{"booking_available":false},"thursday":{"booking_available":false},"friday":{"booking_available":true,"bookings_from":"21:00","bookings_to":"11:30"},"saturday":{"booking_available":true,"bookings_from":"21:00","bookings_to":"11:30","min_people":2,"max_people":10},"sunday":{"booking_available":false}},"label_colour":"#d4c5f9"},{"id":"54d103520df6905827fc243e","name":"AFTERNOON PAMPER","value":"30","guestlist":false,"dob_required":false,"no_duration":false,"acknowledgement_email_message":"Thank you for your enquiry, our team are working on this and will be in touch shortly.","booking_rules":{"monday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"tuesday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"wednesday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"thursday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"friday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"saturday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"},"sunday":{"booking_available":true,"bookings_from":"11:00","bookings_to":"16:00","min_duration":1.5,"max_duration":3,"min_people":8,"max_people":30,"booking_notes":"\u00a35 PP DEPOSIT"}},"areas":[{"id":{"$id":"54cf85292b588f6e1189a8cd"},"name":"RED ROOM"},{"id":{"$id":"54cfaac12b588f761389a86f"},"name":"BLACK ROOM"}],"packages":["54cf71ce2b588f111189a8ab","54cf72110df6901b6dfc23e0","54cf722c0df6901c6dfc2428","54cf729c0df690956cfc23e9","54cf72c20df6909172fc23c5","54cf72f62b588fd91089a89f","54cf73352b588f6a1189a86c","54cf76d30df6904773fc23c5","54cf77bb2b588faa1189a86a","54cf77cc2b588fe70e89a96a","54cf77f17872795e0db9b2a7","54cf78150df6909772fc23cb","54cf781f7872795c0db9b28e","54cf783c7872795e0db9b2c2","54cf78622b588f691189a86e","54cf78752b588f871189a881","54cf78890df690396bfc24b7","54cf789a2b588f811189a873","54cf78b02b588faa1189a88a","54cf78d07872795f0db9b2b4","54cf78e37872794e0db9b2b2","54cf7903787279f90db9b24a","54cf79122b588f6e1189a88b"],"label_colour":"#f7c6c7"},{"id":"55a8ccca17108cf803faf08d","name":"LADIES WHO LUNCH","value":"40","guestlist":false,"dob_required":false,"no_duration":false,"acknowledgement_email_message":"Thanks for your enquiry, our team are working on this and will be in touch shortly.","booking_rules":{"monday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"tuesday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"wednesday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"thursday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"friday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"saturday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"},"sunday":{"booking_available":true,"bookings_from":"10:00","bookings_to":"21:00","min_duration":1,"max_duration":4,"min_people":2,"max_people":30,"booking_notes":"\u00a310PP DEPOSIT"}},"label_colour":"#fef2c0"},{"id":"55a8cd1c17108c3c04faf078","name":"GIRLS NIGHT OUT","value":"75","guestlist":true,"dob_required":false,"no_duration":true,"acknowledgement_email_message":"Thanks for your enquiry, our team are working on this and will be in touch shortly.","booking_rules":{"monday":{"booking_available":true},"tuesday":{"booking_available":true},"wednesday":{"booking_available":true},"thursday":{"booking_available":true},"friday":{"booking_available":true},"saturday":{"booking_available":true},"sunday":{"booking_available":true}},"label_colour":"#bfe5bf"}]}],"multiple_venues":true,"anyVenueEnabled":true}; "use strict";"".trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,n=Number(arguments[1])||0;for(n=0>n?Math.ceil(n):Math.floor(n),0>n&&(n+=t);t>n;n++)if(n in this&&this[n]===e)return n;return-1}),DMN.loadScript=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.readyState?n.onreadystatechange=function(){("loaded"==n.readyState||"complete"==n.readyState)&&(n.onreadystatechange=null,t())}:n.onload=function(){t()},n.src=e,document.getElementsByTagName("head")[0].appendChild(n)},DMN.loadCss=function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e),t!==void 0&&document.getElementsByTagName("head")[0].appendChild(t)},DMN.ready=function(){var e=!1,t=function(t){var n=function(){return e?void 0:(e=!0,t())},a=function(){if(!e){try{document.documentElement.doScroll("left")}catch(t){return setTimeout(a,1),void 0}return n()}};if("complete"===document.readyState)return n();if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",n),window.attachEvent("onload",n);var o=!1;try{o=null==window.frameElement}catch(r){}if(document.documentElement.doScroll&&o)return a()}};return t}(),DMN.loadSupportingScripts=function(){var e=DMN.debug?DMN.baseUrl+"/js/partner-form-deps.js":DMN.baseUrl+"/js/partner-form-deps.min.js";DMN.loadScript(e,DMN.init)},DMN.getFormConfig=function(e){var t;return e?angular.isDefined(DMN.formConfig[e])&&(t=DMN.formConfig[e]):angular.forEach(DMN.formConfig,function(e){t||(t=e)}),t},DMN.getFormScope=function(e){if(!e){var e,t=DMN.formConfig;angular.forEach(t,function(t,n){e||(e=n)})}var n=angular.element(document.getElementById("dmn-form-"+e)),a=n.scope();return a},DMN.val=function(){if(!arguments.length)return!1;angular.isObject(arguments[0])||(arguments[0]={field:arguments[0],value:arguments[1]});var e={formId:!1},t=angular.extend({},e,arguments[0]);if(!t.field)return!1;var n=DMN.getFormScope(t.formId);if(!n)return!1;if(t.value===void 0)return n[t.field];if("type"!==t.field||n.currentVenue.booking_types[t.value]){if("venue_id"===t.field&&(24!=t.value.length||!t.value.match(/[^0-9a-f]/))){var a=!1;if(angular.forEach(n.venues,function(e){e.title.trim()==t.value.trim()&&(t.value=e._id,a=!0)}),!a)return!1}}else{var a=!1;if(angular.forEach(n.currentVenue.booking_types,function(e){e.name.trim()==t.value.trim()&&(t.value=e.id,a=!0)}),!a)return!1}return n.$apply(function(){n[t.field]=t.value}),this},DMN.toggleInput=function(){if(!arguments.length)return!1;angular.isObject(arguments[0])||(arguments[0]={input:arguments[0],visible:arguments[1]});var e={formId:!1},t=angular.extend({},e,arguments[0]);if(!t.input)return!1;var n=DMN.getFormScope(t.formId);return n?(n.$apply(function(){n.hiddenInputs=n.hiddenInputs||{},n.hiddenInputs[t.input]=t.visible===void 0?!n.hiddenInputs[t.input]:!t.visible}),this):!1},DMN.showInput=function(e){return DMN.toggleInput.call(this,e,!0)},DMN.hideInput=function(e){return DMN.toggleInput.call(this,e,!1)},DMN.addCustomData=function(e,t){var n={formId:!1},a=angular.extend({},n,arguments[0]),o=DMN.getFormScope(a.formId);return o.customData=o.customData||{},o.customData[e]=t,this},DMN.ready(function(){DMN.loadScript("//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js",DMN.loadSupportingScripts)}),DMN.init=function(){var e,t;angular.forEach(DMN.formConfig,function(n,a){e||n.rendered||(e=a,t=n)}),DMN.formConfig[e].rendered=!0;var n=function(e){var t;return"undefined"==typeof jQuery&&"#"===e[0]?(e=e.substr(1),t=angular.element(document.getElementById(e))):t=angular.element(e),t},a={form:"dmn-form"},o=t||{},o=angular.extend(a,o);if(o.fields&&angular.forEach(o.fields,function(e,t){var a=n(e);a.attr("placeholder",a.val()),a.attr("ng-model",t)}),o.submitButton){var r=n(o.submitButton);r.attr("ng-click","showForm()")}var i=document.getElementById(o.form),l=angular.element(i),s=angular.element(document.getElementById("dmn-js")),u=angular.module("DMNPartnerForm",["ui.bootstrap.dialog","ui.bootstrap.tooltip","ui.bootstrap.datepicker","ui.bootstrap.tpls"]);s.attr("data-background-color")&&l.css("background-color",s.attr("data-background-color")),u.controller("DialogCtrl",["$scope","$dialog",function(e,t){e.close=function(e){t.close(e)}}]),u.controller("MainCtrl",["$scope","$dialog",function(e,t){var n=DMN.getFormConfig(e.formId)||{};if(e.showForm=function(){var n=function(){var t=e.type||"",n=e.type_name||"",a=e.numPeople||"",o="";angular.isDate(e.date)&&(o=e.date.getFullYear()+"-"+(e.date.getMonth()+1)+"-"+e.date.getDate());var r=e.time||"",i=e.duration||"",l=e.notes||"",s="https:"+DMN.baseUrl+"/book?venue_id="+e.venue_id+"&venue_group="+e.venue_group;return s+="&type="+t+"&type_name="+n+"&num_people="+a+"&date="+o+"&time="+r+"&duration="+i,s+="¬es="+l+"&format=modal",s+=e.affiliateId?"&affiliate_id="+e.affiliateId:"&source=partner",angular.forEach(e.customData,function(e,t){s+="&_custom_"+t+"="+e}),s};if(800>screen.availWidth||800>window.innerWidth)return document.location.href=n(),void 0;var a=t.dialog({controller:"FormCtrl",resolve:{dialogsModel:function(){return e}},dialogFade:!1,dialogClass:"modal partner-form-modal",backdropFade:!1,backdropClick:!1,keyboard:!1,template:''});a.open()},e.venues=o.venues,e.getBookableFromUntil=function(e,t,n){if("object"!=typeof t&&DMN.days.indexOf(t)>-1)var a=t;else{var o=parseInt(t.getMonth()+1,10);o=10>o?"0"+o:o;var r=parseInt(t.getDate(),10);r=10>r?"0"+r:r;var i=t.getFullYear()+"-"+o+"-"+r,a=DMN.days[t.getDay()]}var l=e.opening_times,s=e.booking_restrictions||{},u=l[i]!==void 0?i:a,c=l[u].open,d=l[u].close,p=s[n]&&s[n][i]!==void 0?i:a,m=s[n]&&s[n][p].bookings_from||c,f=s[n]&&s[n][p].bookings_to||d;return{from:m,until:f}},e.venues.length>1){var a={};angular.forEach(e.venues,function(t){angular.forEach(DMN.days,function(n){var o=e.getBookableFromUntil(t,n);a[n]=a[n]||{};var r=a[n].open?parseFloat(a[n].open.replace(":",".")):!1,i=a[n].close?parseFloat(a[n].close.replace(":",".")):!1;i=DMN.newDayCutoff>i?i+24:i;var l=parseFloat(o.from.replace(":",".")),s=parseFloat(o.until.replace(":","."));s=DMN.newDayCutoff>s?s+24:s,(!a[n].open||r>l)&&(a[n].open=o.from),(!a[n].close||s>i)&&(a[n].close=o.until),a[n].status=a[n].status||t.opening_times[n].status})}),n.anyVenueEnabled!==!1&&e.venues.unshift({_id:"any",title:"Not sure",opening_times:a,venue_group:e.venues[0].venue_group}),e.venue_id="any"}e.minDate=new Date,e.dateOptions={"year-format":"'yy'","starting-day":0},e.getType=function(){if(void 0===e.type&&e.currentVenue){var t=!1;return angular.forEach(e.currentVenue.booking_types,function(e){t||(t=e.id)}),t}return e.type},e.getTypeDetails=function(t){var n=!1;return e.currentVenue?(angular.forEach(e.currentVenue.booking_types,function(e){e.id==t&&(n=e)}),n):[]},e.getDate=function(){return e.date&&e.date!==void 0?e.date:new Date},e.dateDisabled=function(t){if(e.currentVenue&&"any"!==e.currentVenue._id){var n=e.currentVenue.opening_times,a=e.currentVenue.bookings_shut,o=e.currentVenue.booking_types,i=e.currentVenue.booking_unavailable,l=e.currentVenue.booking_restrictions,s=new Date;s=new Date(s.getFullYear(),s.getMonth(),s.getDate());var u=r(s),c=r(t),d=10>t.getDate()?"0"+t.getDate():t.getDate(),p=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0),m=new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59),f=e.getType(),g=e.getTypeDetails(f),h=o[f]||"",v=DMN.days[t.getDay()];if(!(s>t)){if(u===c){var b=g.booking_rules[v].bookings_shut||!1;if(b=!b&&a[v]?a[v].time:b){var y=new Date,D=10>y.getMinutes()?"0"+y.getMinutes():y.getMinutes(),k=10>y.getHours()?"0"+y.getHours():y.getHours(),_=k+":"+D;if(b&&_>=b)return a[v]&&a[v].message?[!0,a[v].message]:[!0,"Bookings unavailable"]}}var w=n[c]!==void 0?c:v,$=n[w].status;if(0==$)return[!0,"Closed"];var M=!1;if(angular.forEach(i,function(e,t){("all"===t||t===f)&&angular.forEach(e,function(e){var t=e.unavailable_from.split("-"),n=e.unavailable_from_time?e.unavailable_from_time.split(":"):["0","0"],a=new Date(t[0],t[1]-1,t[2],n[0],n[1]),o=e.unavailable_to.split("-"),r=e.unavailable_from_time?e.unavailable_from_time.split(":"):["23","59"],i=new Date(o[0],o[1]-1,o[2],r[0],r[1]);p>=a&&i>=m&&(M=e.unavailable_message?[!0,e.unavailable_message]:[!0,"Bookings unavailable"])})}),M)return M;var E=l[f][c]!==void 0?c:v;if(!l[f][E].booking_available)return[!0,"No "+h+" bookings"];var C=!1;return angular.forEach(e.currentVenue.events,function(e){if(!e.title||"public"!==e.status||C)return!1;var t=r(e.date);if(t===c)return C=e.title,void 0;if(e.recurrence&&["weekly","monthly","custom"].indexOf(e.recurrence.frequency)>-1){var n=r(e.recurrence.end_date);if(n&&c>n)return;switch(e.recurrence.frequency){case"weekly":var a=[];if(angular.forEach(e.recurrence.weekdays,function(e){e.day&&a.push(e.day)}),a.indexOf(v)>-1)return C=e.title,void 0;break;case"monthly":var o=!1,i=Math.floor((d-1)/7)+1;if(angular.forEach(e.recurrence.frequency.weekdays,function(e){e.day===v&&parseInt(e.num)===i&&(o=!0)}),o)return C=e.title,void 0;break;case"custom":angular.forEach(e.recurrence.custom_dates,function(t){var n=r(t);n===c&&(C=e.title)})}}}),C?[!1,C]:!1}}},e.getTimeOptions=function(){var t=[],n=e.getType(),a=e.getDate();if(!e.currentVenue||!e.currentVenue.opening_times)return t;e.currentVenue.opening_times;var o=e.currentVenue.booking_unavailable||{};e.currentVenue.booking_restrictions||{};var r=parseInt(a.getMonth()+1,10);r=10>r?"0"+r:r,a.getFullYear()+"-"+r+"-"+a.getDate(),DMN.days[a.getDay()];var i=e.getBookableFromUntil(e.currentVenue,a,n),l=i.from,s=i.until,u=[];for(var c in o)if("all"===c||c===n){var d=o[c];angular.forEach(d,function(e){var t=e.unavailable_from.split("-"),n=new Date(t[0],t[1]-1,t[2]),o=e.unavailable_to.split("-"),r=new Date(o[0],o[1]-1,o[2]);if(a>=n&&r>=a){var i=e.unavailable_from_time||"00:00",l=e.unavailable_to_time||"23:59";u.push({from:i,to:l})}})}s=parseFloat(s.replace(":",".")),s=DMN.newDayCutoff>s?s+24:s,l=parseFloat(l.replace(":",".")),l=DMN.newDayCutoff>l?l+24:l;for(var p=!1,m=l;s>=m;m++){m>Math.floor(m)&&(m=Math.floor(m),p=!0);var f=m>=24?m-24:m;f=10>f?"0"+f:f;var g=f>=12?"pm":"am",h=m;DMN.newDayCutoff>h&&(h+=24);var v=!1,b=!1;angular.forEach(u,function(e){var t=parseFloat(e.from.replace(":","."));t=DMN.newDayCutoff>t?t+24:t;var n=parseFloat(e.to.replace(":","."));n=DMN.newDayCutoff>n?n+24:n;var a=h+.3;h>=t&&n>h&&(v=!0),a>=t&&n>a&&(b=!0)}),h>=Math.floor(l)&&s>=h&&(p||v||t.push({value:f+":00",label:f+":00 "+g}),b||h==s||t.push({value:f+":30",label:f+":30 "+g}),p=!1)}return t},e.getDurationOptions=function(){var t=[];if(!e.currentVenue||!e.currentVenue.opening_times)return t;var n=e.currentVenue.opening_times||{},a=e.currentVenue.booking_restrictions||{},o=e.getType(),r=e.getDate(),i=e.time,l=parseInt(r.getMonth()+1,10);l=10>l?"0"+l:l;var s=r.getDate();s=10>s?"0"+s:s;var u=r.getFullYear()+"-"+l+"-"+s,c=DMN.days[r.getDay()],d=n[u]!==void 0?u:c;n[d].status;var p=n[d].open,m=n[d].close,f=a[o]&&a[o][u]!==void 0?u:c,g=a[o]&&a[o][f]?a[o][f].bookings_from:p;g=g||p;var h=a[o]&&a[o][f]?a[o][f].bookings_to:m;h=h||m;var v=a[o]&&a[o][f]?a[o][f].min_duration:!1,b=a[o]&&a[o][f]?a[o][f].max_duration:!1,y=g.split(":"),D=2*y[0];y[1]>=30&&D++;var k=i?i.split(":"):[],_=2*k[0];k[1]>=30&&_++;var w=h.split(":"),$=2*w[0];w[1]>=30&&$++,2*DMN.newDayCutoff>$&&($+=48);var M=m.split(":"),E=2*M[0];M[1]>=30&&E++,2*DMN.newDayCutoff>=E&&(E+=48);var C=D>_?D:_;C+=1;var F=.5,N=!1,T=!0;for($=E>$?E:$;$>=C;){var O=1===F?"hr":"hrs",V=Math.floor(C/2);if(V=V>=24?V-24:V,V=C%2?V+":30":V+":00",C===$?(t.unshift({value:-1,label:"All night"}),N=!0):(!v||F>=v)&&t.push({value:F,label:V+" ("+F+" "+O+")"}),C++,F+=.5,b&&F>b){T=!1;break}}return T&&!N&&E>C-2&&t.unshift({value:-1,label:"All night"}),t},e.$watch("venue_id",function(t){if(1===e.venues.length)e.currentVenue=e.venues[0],e.venue_id=e.currentVenue._id;else if(t!==void 0){var n=e.type_name?e.type_name.toUpperCase().trim():"";delete e.type,angular.forEach(e.venues,function(n){t===n._id&&(e.currentVenue=n)}),e.timeSelectOptions=e.getTimeOptions()}if(e.currentVenue){e.venue_group=e.currentVenue.venue_group;var a=0;"any"===e.currentVenue._id?(e.currentVenue.booking_types=[],angular.forEach(e.venues,function(t){angular.forEach(t.booking_types,function(t){var n=t.name.toUpperCase().trim(),o=!1;angular.forEach(e.currentVenue.booking_types,function(e){e=e.name.toUpperCase().trim(),e==n&&(o=!0)}),o||e.currentVenue.booking_types.push({id:t.id,name:n}),a++})})):angular.forEach(e.currentVenue.booking_types,function(t){var o=t.name.toUpperCase().trim();o===n&&(e.type=t.id),a++}),e.numBookingTypes=a,1===e.numBookingTypes&&(e.type=e.currentVenue.booking_types[0].id)}}),e.$watch("date",function(){e.timeSelectOptions=e.getTimeOptions()}),e.$watch("type",function(t){if(t!==void 0){e.date&&e.dateDisabled(e.date)!==!1&&(e.date=null),e.timeSelectOptions=e.getTimeOptions(),e.durationSelectOptions=e.getDurationOptions();var n={};angular.forEach(e.currentVenue.booking_types,function(e){e.id===t&&(n=e)}),e.type_name=n.name}}),e.$watch("time",function(t){t!==void 0&&(e.durationSelectOptions=e.getDurationOptions())}),e.$watch("date",function(t){t&&t!==void 0&&(e.durationSelectOptions=e.getDurationOptions())});var r=function(e){if(angular.isString(e)){var t=e.split("T");return t[0]}if(!angular.isDate(e))return"";var n=parseInt(e.getMonth()+1,10);n=10>n?"0"+n:n;var a=10>e.getDate()?"0"+e.getDate():e.getDate(),o=e.getFullYear()+"-"+n+"-"+a;return o}}]),u.controller("EnquiryFormCtrl",["$scope","$http",function(e,t){var n=DMN.getFormConfig(e.formId)||{};e.valid=!0,e.enquiry={enquiry_type:"enquiry",source:"partner",venue_group:n.venueGroupId},e.minDate=new Date,e.dateOptions={"year-format":"'yy'","starting-day":0},e.checkInitialStage=function(){return e.valid=!0,e.enquiry.num_people&&(""+e.enquiry.num_people).replace(/[^0-9]/,"")||(e.dmnEnquiryForm.num_people.$setValidity(!1),e.valid=!1),e.enquiry.preferred_location&&e.enquiry.preferred_location.trim()||(e.dmnEnquiryForm.preferred_location.$setValidity(!1),e.valid=!1),e.valid},e.checkCustomerDetailsStage=function(){return e.valid=!0,e.enquiry.first_name&&e.enquiry.first_name.trim()||(e.dmnEnquiryForm.first_name.$setValidity(!1),e.valid=!1),e.enquiry.last_name&&e.enquiry.last_name.trim()||(e.dmnEnquiryForm.last_name.$setValidity(!1),e.valid=!1),e.enquiry.email&&e.enquiry.email.trim()||(e.dmnEnquiryForm.email.$setValidity(!1),e.valid=!1),e.valid},e.goToStage=function(t){switch(t){case"customer-details":e.checkInitialStage()&&(e.stage=t);break;case"initial":e.stage=t}},e.submitForm=function(){e.submitting=!0;var n="https:"+DMN.baseUrl+"/api/v4/bookings";e.enquiry.output="json",e.checkCustomerDetailsStage()&&t.post(n,e.enquiry).then(function(t){e.enquiry=t.data.payload.enquiry,e.stage="confirmation",e.submitting=!1},function(){e.submitting=!1})};var a=function(){for(var e=[],t=DMN.newDayCutoff,n=23;n>=t;){var a=10>t?"0"+t:t;e.push(a+":00"),t++}return e};e.timeSelectOptions=a()}]),u.controller("FormCtrl",["$scope","$http","dialog","dialogsModel",function(e,t,n,a){e.loadingForm=!0;var o=a.type||"",r=a.type_name||"",i=a.numPeople||"",l="";angular.isDate(a.date)&&(l=a.date.getFullYear()+"-"+(a.date.getMonth()+1)+"-"+a.date.getDate());var s=a.time||"",u=a.duration||"",c=a.notes||"",d="https:"+DMN.baseUrl+"/book?action=checkAvailability&venue_id="+a.venue_id+"&venue_group="+a.venue_group;d+="&type="+o+"&type_name="+r+"&num_people="+i+"&date="+l+"&time="+s+"&duration="+u,d+="¬es="+c+"&source=partner&output=json",delete t.defaults.headers.common["X-Requested-With"];try{t({method:"GET",url:d}).success(function(t){var n="accept"===t.action;e.bookingModalTitle=n?"Make a booking":"Make a booking enquiry",a.affiliateId&&(e.bookingModalTitle+=" - Powered by DesignMyNight")}).error(function(){e.bookingModalTitle="Make a booking enquiry"})}catch(p){}e.close=function(e){n.close(e)}}]),angular.bootstrap(i,["DMNPartnerForm"])};