diff --git a/local/media/images/store/6007159840565-logo.png b/local/media/images/store/6007159840565-logo.png deleted file mode 100644 index 21eea22e..00000000 Binary files a/local/media/images/store/6007159840565-logo.png and /dev/null differ diff --git a/local/media/images/store/6008522273966-separateur.jpg b/local/media/images/store/6008522273966-separateur.jpg new file mode 100644 index 00000000..5cd3df4a Binary files /dev/null and b/local/media/images/store/6008522273966-separateur.jpg differ diff --git a/templates/email/aomc/I18n/ar_SA.php b/templates/email/aomc/I18n/ar_SA.php new file mode 100644 index 00000000..5939d270 --- /dev/null +++ b/templates/email/aomc/I18n/ar_SA.php @@ -0,0 +1,32 @@ + 'جميع الحقوق محفوظة.', + 'Billing address:' => 'عنوان الفاتورة:', + 'Copyright' => 'حق النشر', + 'Delivery address:' => 'عنوان التوصيل:', + 'Delivery method:' => 'طريقة التسليم:', + 'Email not displaying correctly?' => 'البريد الإلكتروني لم يعرض بشكل صحيح؟', + 'For any questions, or concerns, feel free to contact %mail.' => 'لأي أسئلة أو مخاوف، لا تتردد في الاتصال mail %.', + 'Here are the details of your purchase:' => 'وفيما يلي تفاصيل الشراء الخاصة بك:', + 'Kind regards' => 'مع أطيب تحياتي', + 'Order Number:' => 'رقم طلب الشراء:', + 'Order Total' => 'إجمالي الطلبية', + 'Order Total:' => 'إجمالي الطلبية:', + 'Our contact us at:' => 'اتصل بنا على:', + 'Our mailing address is:' => 'عنواننا البريدي:', + 'Paid With:' => 'تدفع لصالح:', + 'Price in' => 'الأسعار في', + 'Purchase Date:' => 'تاريخ الشراء:', + 'Shipping:' => 'الشحن:', + 'Support' => 'الدعم', + 'Thank you for your order!' => 'شكراً لطلبكم معنا!', + 'Thanks' => 'شكرًا', + 'Thelia V2' => 'Thelia V2', + 'Total' => 'الإجمالي', + 'View it in your browser' => 'قم بعرضها في المستعرض الخاص بك', + 'What You Purchased' => 'ماذا قد اشتريت', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'يمكنك تغيير كلمة المرور الخاصة بك في حساب المستخدم الخاص بك عن طريق فتح الرابط "تغيير كلمة المرور الخاصة بي" تحت المعلومات الشخصية الخاصة بك', + 'Your order confirmation Nº %ref' => 'رقم تأكيد أمر الطلب الخاص بك هو % ref', + 'Your password for %store' => 'كلمة المرور للـ %store', +]; diff --git a/templates/email/aomc/I18n/cs_CZ.php b/templates/email/aomc/I18n/cs_CZ.php new file mode 100644 index 00000000..c4b115a4 --- /dev/null +++ b/templates/email/aomc/I18n/cs_CZ.php @@ -0,0 +1,68 @@ + '* Fakturační adresa', + '* Delivery address' => '* Doručovací adresa', + '* Items ordered:' => '* Objednané zboží:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Nová objednávka ref. %ref byla vytvořena dne %date. Podrobnosti:', + 'All rights reserved.' => 'Všechna práva vyhrazena.', + 'An account at %store_name has been created by one of our managers.' => 'Pro Vás byl vytvořen účet v obchodě %store_name jedním z našich manažerů.', + 'Billing address:' => 'Fakturační adresa:', + 'Copyright' => 'Autorská práva', + 'Customer billing address:' => 'Fakturační adresa zákazníka:', + 'Customer delivery address:' => 'Dodací adresa zákazníka:', + 'Delivery address:' => 'Doručovací adresa:', + 'Delivery method:' => 'Způsob doručení:', + 'Email not displaying correctly?' => 'E-mail se nezobrazuje správně?', + 'For any questions, or concerns, feel free to contact %mail.' => 'V případě jakýchkoliv dotazů nebo připomínek, neváhejte nás kontaktovat na %mail.', + 'Have a nice day.' => 'Hezký den.', + 'Hello' => 'Dobrý den', + 'Hello,' => 'Dobrý den,', + 'Hello, a new order has been placed.' => 'Dobrý den, nová objednávka byla vytvořená.', + 'Here are the details of your purchase:' => 'Podrobnosti o nákupu:', + 'Here is the details of your order %ref placed on %date' => 'Informace o Vaší objednávce %ref ze dne %date', + 'Item : %item' => 'Položka: %item', + 'Items ordered:' => 'Objednané zboží:', + 'Items total : %amount' => 'Položek celkem: %amount', + 'Kind regards' => 'S pozdravem', + 'New order placed on %store_name Nº %ref' => 'Nová objednávka v obchodě %store_name číslo %ref', + 'Order Number:' => 'Číslo objednávky:', + 'Order Total' => 'Objednávka celkem', + 'Order Total:' => 'Objednávka celkem:', + 'Our contact us at:' => 'Kontaktujte nás na:', + 'Our mailing address is:' => 'Naše poštovní adresa je:', + 'Paid With:' => 'Zaplaceno:', + 'Price in' => 'Cena v', + 'Purchase Date:' => 'Datum nákupu:', + 'Quantity : %qty' => 'Množství: %qty', + 'Shipping : %amount' => 'Poštovné: %amount', + 'Shipping:' => 'Poštovné:', + 'Support' => 'Podpora', + 'Thank you for your order!' => 'Děkujeme za objednávku!', + 'Thanks' => 'Děkuji', + 'The %store team.' => '%store tým.', + 'Thelia V2' => 'Thelia V2', + 'To login, please use the email address %email' => 'Pro přihlášení použijte emailovou adresu %email', + 'Total' => 'Celkem', + 'Total due : %amount' => 'Celková častka: %amount', + 'Unit price : %amount' => 'Jednotková cena: %amount', + 'View it in your browser' => 'Zobrazit v prohlížeči', + 'View this order in your account at %shop_name' => 'Zobrazit tuto objednávku ve vašem zákaznickém účtu na stránkách %shop_name', + 'View this order in your shop back-office.' => 'Zobrazte toto objednávku v administračním rozhání obchodu.', + 'What You Purchased' => 'Co jste si zakoupili', + 'You can change your password and your account details at any time in our store.' => 'Své heslo a osobní údaje můžete kdykoliv změnit v našem obchodě.', + 'You can change your password and your account details at any time in our store at %url.' => 'Své heslo a osobní údaje můžete kdykoliv změnit v našem obchodě na adrese %url.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Můžete změnit své heslo ve vašem uživatelském účtu tak, že otevře odkaz "Změnit heslo" v záložce vaše osobní údaje', + 'You have requested a new password for your account at %store_name' => 'Požádali jste o nové heslo pro váš účet v obchodě %store_name', + 'Your %store account' => 'Váš %store účet', + 'Your account at %store_name has been changed by one of our managers.' => 'Váš účet v obchodě %store_name byl změněn jeden z našich manažerů.', + 'Your account information for %store' => 'Informace o účtu v obchodě %store', + 'Your billing address' => 'Vaše fakturační adresa', + 'Your delivery address' => 'Vaše dodací adresa', + 'Your invoice is available in your customer account at %url' => 'Faktura je k dispozici ve Vašem Zákaznickém účtu na adrese %url', + 'Your new password is %pass' => 'Vaše nové heslo je %pass', + 'Your new password is %pass' => 'Vaše nové heslo je %pass', + 'Your order confirmation Nº %ref' => 'Potvrzení objednávky č. %ref', + 'Your password for %store' => 'Vaše heslo pro %store', + 'Your password is %pass' => 'Vaše heslo je %pass', +]; diff --git a/templates/email/aomc/I18n/de_DE.php b/templates/email/aomc/I18n/de_DE.php new file mode 100644 index 00000000..7a935c66 --- /dev/null +++ b/templates/email/aomc/I18n/de_DE.php @@ -0,0 +1,68 @@ + '* Rechnungsadresse', + '* Delivery address' => '* Lieferadresse', + '* Items ordered:' => '* Bestellte Artikeln', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Eine neue Bestellung Ref. %ref wurde den %date aufgegeben. Hier sind die Details :', + 'All rights reserved.' => 'Alle Rechte vorbehalten.', + 'An account at %store_name has been created by one of our managers.' => 'Ein Konto bei %store_name wurde von einem unseren Managers erstellt', + 'Billing address:' => 'Rechnungsadresse : ', + 'Copyright' => 'Copyright', + 'Customer billing address:' => 'Kunde Zahlungsadresse:', + 'Customer delivery address:' => 'Kunde Lieferadresse:', + 'Delivery address:' => 'Lieferadresse :', + 'Delivery method:' => 'Lieferungsmethode : ', + 'Email not displaying correctly?' => 'E-Mail nicht richtig angezeigt ?', + 'For any questions, or concerns, feel free to contact %mail.' => 'Für jede Fragen, bitte kontaktieren Sie uns : %mail. ', + 'Have a nice day.' => 'Schönen Tag.', + 'Hello' => 'Hallo', + 'Hello,' => 'Hallo,', + 'Hello, a new order has been placed.' => 'Hallo, eine neue Bestellung wurde aufgegeben.', + 'Here are the details of your purchase:' => 'Hier sind die Details Ihrer Bestellung :', + 'Here is the details of your order %ref placed on %date' => 'Ihr sind die Details Ihre Bestellung %ref die Sie den %date aufgegeben haben. ', + 'Item : %item' => 'Artikel : %item', + 'Items ordered:' => 'Bestellte Produkte:', + 'Items total : %amount' => 'Artikel Gesamtsumme : %amount', + 'Kind regards' => 'Mit freundlichen Grüßen', + 'New order placed on %store_name Nº %ref' => 'Eine neue Bestellung wurde bei %store_name N° %ref aufgegeben', + 'Order Number:' => 'Bestellungsnummer :', + 'Order Total' => 'Gesamtsumme', + 'Order Total:' => 'Gesamtsumme :', + 'Our contact us at:' => 'Unsere Kontaktdetails', + 'Our mailing address is:' => 'Unsere Mailingadresse ist', + 'Paid With:' => 'Bezahlt mit :', + 'Price in' => 'Preis in', + 'Purchase Date:' => 'Bestellungsdatum :', + 'Quantity : %qty' => 'Menge : %qty', + 'Shipping : %amount' => 'Lieferung : %amount', + 'Shipping:' => 'Lieferung :', + 'Support' => 'Kundendienst', + 'Thank you for your order!' => 'Vielen Dank für Ihre Bestellung !', + 'Thanks' => 'Danke !', + 'The %store team.' => 'Die %store Team.', + 'Thelia V2' => 'Thelia V2', + 'To login, please use the email address %email' => 'Um sich anzumelden, nutzen Sie bitte die E-Mail-Adresse %email ', + 'Total' => 'Gesamtsumme', + 'Total due : %amount' => 'Gesamtsumme : %amount', + 'Unit price : %amount' => 'Einzelpreis : %amount', + 'View it in your browser' => 'In Ihrem Browser ansehen', + 'View this order in your account at %shop_name' => 'Diese Angebot in Ihrem Konto bei %shop_name ansehen', + 'View this order in your shop back-office.' => 'Sehen Sie diese Bestellung in Ihrem Back-Office.', + 'What You Purchased' => 'Was Sie bestellt haben', + 'You can change your password and your account details at any time in our store.' => 'Sie können ihr Passwort und Ihre Kontodaten ändern auf die Seite in unserem Shop.', + 'You can change your password and your account details at any time in our store at %url.' => 'Sir können Ihr Passwort und Ihre Kontodaten in unserem Geschäft jederzeit ändern auf %url.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Sie können Ihr Passwort in Ihrem Benutzerkonto ändern, indem Sie den Link "Mein Passwort ändern" unter Ihre persönlichen Informationen finden können', + 'You have requested a new password for your account at %store_name' => 'Sie haben ein neues Passwort für Ihr Konto bei %store_name angefordert', + 'Your %store account' => 'Ihr %store Konto', + 'Your account at %store_name has been changed by one of our managers.' => 'Ihr Konto bei %store_name wurde von einem unseren Managers geändert. ', + 'Your account information for %store' => 'Ihre Kontodaten bei %store', + 'Your billing address' => 'Ihre Zahlungsadresse', + 'Your delivery address' => 'Ihre Lieferadresse', + 'Your invoice is available in your customer account at %url' => 'Ihre Rechnung ist in Ihrem Konto auf die Seite %url verfügbar', + 'Your new password is %pass' => 'Ihr neues Passwort ist %pass', + 'Your new password is %pass' => 'Ihr neues Passwort ist %pass ', + 'Your order confirmation Nº %ref' => 'Ihre Bestellungsbestätigung Nr. %ref', + 'Your password for %store' => 'Ihr Passwort für %store', + 'Your password is %pass' => 'Ihr Passwort ist %pass ', +]; diff --git a/templates/email/aomc/I18n/el_GR.php b/templates/email/aomc/I18n/el_GR.php new file mode 100644 index 00000000..e2aa09d0 --- /dev/null +++ b/templates/email/aomc/I18n/el_GR.php @@ -0,0 +1,32 @@ + 'Με επιφύλαξη παντός δικαιώματος.', + 'Billing address:' => 'Διεύθυνση χρέωσης:', + 'Copyright' => 'Πνευματικά δικαιώματα', + 'Delivery address:' => 'Διεύθυνση παράδοσης:', + 'Delivery method:' => 'Μέθοδος παράδοσης:', + 'Email not displaying correctly?' => 'Το Email δεν εμφανίζεται σωστά;', + 'For any questions, or concerns, feel free to contact %mail.' => 'Για οποιεσδήποτε ερωτήσεις ή ανησυχίες, μη διστάσετε να επικοινωνήσετε μαζί μας στο %mail.', + 'Here are the details of your purchase:' => 'Εδώ είναι οι λεπτομέρειες της αγοράς σας:', + 'Kind regards' => 'Με εκτίμηση', + 'Order Number:' => 'Αριθμός παραγγελίας:', + 'Order Total' => 'Το συνολικό κόστος', + 'Order Total:' => 'Το συνολικό κόστος:', + 'Our contact us at:' => 'Επικοινωνήστε μαζί μας στο:', + 'Our mailing address is:' => 'Η Ταχυδρομική μας διεύθυνση είναι:', + 'Paid With:' => 'Πληρωμένο με:', + 'Price in' => 'Τιμή σε', + 'Purchase Date:' => 'Ημερομηνία αγοράς:', + 'Shipping:' => 'Αποστολή:', + 'Support' => 'Υποστήριξη', + 'Thank you for your order!' => 'Σας ευχαριστούμε για την παραγγελία σας!', + 'Thanks' => 'Ευχαριστούμε', + 'Thelia V2' => 'Thelia V2', + 'Total' => 'Σύνολο', + 'View it in your browser' => 'Προβάλετε στο πρόγραμμα περιήγησης', + 'What You Purchased' => 'Τι έχετε αγοράσει', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Μπορείτε να αλλάξετε τον κωδικό πρόσβασής σας στο λογαριασμό χρήστη ανοίγοντας το σύνδεσμο "Αλλαγή κωδικού" κάτω από τα προσωπικά σας στοιχεία', + 'Your order confirmation Nº %ref' => 'Η επιβεβαίωση παραγγελίας Nº %ref', + 'Your password for %store' => 'Ο κωδικός πρόσβασης για το %store', +]; diff --git a/templates/email/aomc/I18n/en_US.php b/templates/email/aomc/I18n/en_US.php new file mode 100644 index 00000000..3881ca62 --- /dev/null +++ b/templates/email/aomc/I18n/en_US.php @@ -0,0 +1,84 @@ + '* Billing address', + '* Delivery address' => '* Delivery address', + '* Items ordered:' => '* Items ordered:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'A new order ref. %ref has been placed on %date. Here are the details :', + 'All rights reserved.' => 'All rights reserved.', + 'An account at %store_name has been created by one of our managers.' => 'An account at %store_name has been created by one of our managers.', + 'Billing address:' => 'Billing address:', + 'Confirm your %store account' => 'Confirm your %store account', + 'Copyright' => 'Copyright', + 'Customer billing address:' => 'Customer billing address:', + 'Customer delivery address:' => 'Customer delivery address:', + 'Dear %firstname %lastname,' => 'Dear %firstname %lastname,', + 'Delivery address:' => 'Delivery address:', + 'Delivery method:' => 'Delivery method:', + 'Discount' => 'Discount', + 'Email not displaying correctly?' => 'Email not displaying correctly?', + 'For any questions, or concerns, feel free to contact %mail.' => 'For any questions, or concerns, feel free to contact %mail.', + 'Have a nice day' => 'Have a nice day', + 'Have a nice day.' => 'Have a nice day.', + 'Hello' => 'Hello', + 'Hello,' => 'Hello,', + 'Hello, a new order has been placed.' => 'Hello, a new order has been placed.', + 'Here are the details of your purchase:' => 'Here are the details of your purchase:', + 'Here is the details of your order %ref placed on %date' => 'Here is the details of your order %ref placed on %date', + 'If you don\'t requested a new password, please ignore this message.' => 'If you don\'t requested a new password, please ignore this message.', + 'Item : %item' => 'Item : %item', + 'Items ordered:' => 'Items ordered:', + 'Items total : %amount' => 'Items total : %amount', + 'Kind regards' => 'Kind regards', + 'New order placed on %store_name Nº %ref' => 'New order placed on %store_name Nº %ref', + 'Order Number:' => 'Order Number:', + 'Order Total' => 'Order Total', + 'Order Total:' => 'Order Total:', + 'Our contact us at:' => 'Our contact us at:', + 'Our mailing address is:' => 'Our mailing address is:', + 'Paid With:' => 'Paid With:', + 'Please click here to create a new password.' => 'Please click here to create a new password.', + 'Please click here to define a new password: %url . You will be prompted to enter a new password.' => 'Please click here to define a new password: %url . You will be prompted to enter a new password.', + 'Price in' => 'Price in', + 'Purchase Date:' => 'Purchase Date:', + 'Quantity : %qty' => 'Quantity : %qty', + 'Shipping : %amount' => 'Shipping : %amount', + 'Shipping:' => 'Shipping:', + 'Subtotal' => 'Subtotal', + 'Support' => 'Support', + 'Thank you for your order!' => 'Thank you for your order!', + 'Thank you for your registration. You\'ll now receive the %store newsletter on your email address %email.' => 'Thank you for your registration. You\'ll now receive the %store newsletter on your email address %email.', + 'Thanks' => 'Thanks', + 'The %store team.' => 'The %store team.', + 'Thelia V2' => 'Thelia V2', + 'To complete your customer account creation, please confirm your email address by clicking the link below, or copying it in your browser address bar.' => 'To complete your customer account creation, please confirm your email address by clicking the link below, or copying it in your browser address bar.', + 'To login, please use the email address %email' => 'To login, please use the email address %email', + 'To unsubscribe from our newsletter, please click here.' => 'To unsubscribe from our newsletter, please click here.', + 'To unsubscribe from our newsletter, please go to the following web address:' => 'To unsubscribe from our newsletter, please go to the following web address:', + 'Total' => 'Total', + 'Total due : %amount' => 'Total due : %amount', + 'Unit price : %amount' => 'Unit price : %amount', + 'View it in your browser' => 'View it in your browser', + 'View this order in your account at %shop_name' => 'View this order in your account at %shop_name', + 'View this order in your shop back-office.' => 'View this order in your shop back-office.', + 'Welcome to %store,' => 'Welcome to %store,', + 'What You Purchased' => 'What You Purchased', + 'You can also paste the URL below in you browser\'s address bar :

%url

' => 'You can also paste the URL below in you browser\'s address bar :

%url

', + 'You can change your password and your account details at any time in our store.' => 'You can change your password and your account details at any time in our store.', + 'You can change your password and your account details at any time in our store at %url.' => 'You can change your password and your account details at any time in our store at %url.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'You can change your password in your user account by opening the "Change my password" link under your personal information', + 'You have requested a new password for your account at %store_name' => 'You have requested a new password for your account at %store_name', + 'You have requested a new password for your administrator account at %store_name' => 'You have requested a new password for your administrator account at %store_name', + 'Your %store account' => 'Your %store account', + 'Your account at %store_name has been changed by one of our managers.' => 'Your account at %store_name has been changed by one of our managers.', + 'Your account information for %store' => 'Your account information for %store', + 'Your billing address' => 'Your billing address', + 'Your delivery address' => 'Your delivery address', + 'Your invoice is available in your customer account at %url' => 'Your invoice is available in your customer account at %url', + 'Your new password is %pass' => 'Your new password is %pass', + 'Your new password is %pass' => 'Your new password is %pass', + 'Your order confirmation Nº %ref' => 'Your order confirmation Nº %ref', + 'Your password for %store' => 'Your password for %store', + 'Your password is %pass' => 'Your password is %pass', + 'Your subscriotion to %store newsletter' => 'Your subscriotion to %store newsletter', +); diff --git a/templates/email/aomc/I18n/es_ES.php b/templates/email/aomc/I18n/es_ES.php new file mode 100644 index 00000000..da1677d2 --- /dev/null +++ b/templates/email/aomc/I18n/es_ES.php @@ -0,0 +1,68 @@ + '* Dirección de facturación', + '* Delivery address' => '* Dirección de entrega', + '* Items ordered:' => '* Artículos solicitados:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Se ha recibido un nuevo pedido ref. %ref en %date. Detalles :', + 'All rights reserved.' => 'Todos los derechos reservados.', + 'An account at %store_name has been created by one of our managers.' => 'Una cuenta en %store_name ha sido creada por uno de nuestros gerentes.', + 'Billing address:' => 'dirección de factura', + 'Copyright' => 'Derechos de autor', + 'Customer billing address:' => 'Dirección de facturación del cliente:', + 'Customer delivery address:' => 'Dirección de envío del cliente:', + 'Delivery address:' => 'dirección de entraga', + 'Delivery method:' => 'entraga con : ', + 'Email not displaying correctly?' => 'No puedes ver correctamente el mail ?', + 'For any questions, or concerns, feel free to contact %mail.' => 'Para cualquier problema o consulta, no dude en contactar correo %.', + 'Have a nice day.' => 'Que tengas un buen día.', + 'Hello' => 'Hola', + 'Hello,' => 'Hola,', + 'Hello, a new order has been placed.' => 'Hola, se ha realizado un nuevo pedido.', + 'Here are the details of your purchase:' => 'Detalles de tu compra:', + 'Here is the details of your order %ref placed on %date' => 'Aquí los detalles de tu pedido %ref realizado el %date', + 'Item : %item' => 'Artículo: %item', + 'Items ordered:' => 'Artículos pedidos:', + 'Items total : %amount' => 'Total de artículos: %amount', + 'Kind regards' => 'Gracias', + 'New order placed on %store_name Nº %ref' => 'Nuevo pedido en %store_name Nº %ref', + 'Order Number:' => 'Entraga numero', + 'Order Total' => 'Total de la entraga', + 'Order Total:' => 'Total de la entraga', + 'Our contact us at:' => 'Contactanos en:', + 'Our mailing address is:' => 'Nuestra dirección', + 'Paid With:' => 'pagado con : ', + 'Price in' => 'Precio en', + 'Purchase Date:' => 'Fecha de compra:', + 'Quantity : %qty' => 'Cantidad: %qty', + 'Shipping : %amount' => 'Envío: %amount', + 'Shipping:' => 'envio', + 'Support' => 'Servicio postventa', + 'Thank you for your order!' => 'Graciàs por su encarga', + 'Thanks' => 'Gracias', + 'The %store team.' => 'El equipo de %store.', + 'Thelia V2' => 'Thelia V2', + 'To login, please use the email address %email' => 'Para iniciar sesión usar la dirección de correo electrónico %email', + 'Total' => 'Total', + 'Total due : %amount' => 'A pagar : %amount', + 'Unit price : %amount' => 'Precio unitario : %amount', + 'View it in your browser' => 'Ver en el navegador ', + 'View this order in your account at %shop_name' => 'Mira esta orden en tu cuenta en %shop_name', + 'View this order in your shop back-office.' => 'Mira esta orden en el administrador de tu tienda.', + 'What You Purchased' => 'Lo que compraste', + 'You can change your password and your account details at any time in our store.' => 'Puedes cambiar la contraseña y los detalles de tu cuenta en cualquier momento en nuestra tienda.', + 'You can change your password and your account details at any time in our store at %url.' => 'Puedes modificar la contraseña y los detalles de tu cuenta en cualquier momento en nuestra tienda en %url.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Puedes cambiar tu contraseña en tu cuenta', + 'You have requested a new password for your account at %store_name' => 'Has solicitado una nueva contraseña para tu cuenta en %store_name', + 'Your %store account' => 'Tu cuenta en %store', + 'Your account at %store_name has been changed by one of our managers.' => 'Tu cuenta en %store_name ha sido modificada por uno de nuestros administradores.', + 'Your account information for %store' => 'La información de tu cuenta para %store', + 'Your billing address' => 'Tu dirección de facturación', + 'Your delivery address' => 'Tu dirección de entrega', + 'Your invoice is available in your customer account at %url' => 'Tu factura está disponible en tu área de cliente en %url', + 'Your new password is %pass' => 'Tu nueva contraseña es %pass', + 'Your new password is %pass' => 'Tu nueva contraseña es %pass', + 'Your order confirmation Nº %ref' => 'Numero de encarga : %ref', + 'Your password for %store' => 'contraseña por %store', + 'Your password is %pass' => 'Tu contraseña es %pass', +]; diff --git a/templates/email/aomc/I18n/fa_IR.php b/templates/email/aomc/I18n/fa_IR.php new file mode 100644 index 00000000..8cce97be --- /dev/null +++ b/templates/email/aomc/I18n/fa_IR.php @@ -0,0 +1,68 @@ + '* آدرس صورت حساب', + '* Delivery address' => '* آدرس تحویل', + '* Items ordered:' => '* سفارش‌ها:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'سفارش جدید با شماره‌ی %ref در تاریخ %date با جزییات زیر ثبت شد:', + 'All rights reserved.' => 'کلیه حقوق محفوظ است.', + 'An account at %store_name has been created by one of our managers.' => 'یک حساب در %store_name بوسیله یکی از مدیران ما ایجاد شد.', + 'Billing address:' => 'آدرس صورت حساب:', + 'Copyright' => 'حق نشر', + 'Customer billing address:' => 'آدرس صورتحساب مشتری:', + 'Customer delivery address:' => 'آدرس تحویل مشتری:', + 'Delivery address:' => 'آدرس تحویل:', + 'Delivery method:' => 'روش تحویل:', + 'Email not displaying correctly?' => 'ایمیل را به درستی نمی‌بینید؟', + 'For any questions, or concerns, feel free to contact %mail.' => 'سوالات خود را با ما مطرح کنید %mail.', + 'Have a nice day.' => 'روز خوبی داشته باشید.', + 'Hello' => 'سلام', + 'Hello,' => 'سلام،', + 'Hello, a new order has been placed.' => 'سلام، سفارش جدیدی قرار داده شد.', + 'Here are the details of your purchase:' => 'جزییاتی مربوط به خرید شما:', + 'Here is the details of your order %ref placed on %date' => 'جزئیاتی از سفارش %ref شما در تاریخ %date', + 'Item : %item' => 'آیتم: %item', + 'Items ordered:' => 'سفارش‌ها:', + 'Items total : %amount' => 'مجموع موارد: %amount', + 'Kind regards' => 'با احترام فراوان', + 'New order placed on %store_name Nº %ref' => 'سفارش جدید %ref در %store_name قرار گرفت', + 'Order Number:' => 'شماره سفارش:', + 'Order Total' => 'مجموع سفارش', + 'Order Total:' => 'مجموع سفارش:', + 'Our contact us at:' => 'تماس با ما:', + 'Our mailing address is:' => 'آدرس ایمیل ما:', + 'Paid With:' => 'پرداخت توسط:', + 'Price in' => 'قیمت در', + 'Purchase Date:' => 'تاریخ خرید:', + 'Quantity : %qty' => 'تعداد: %qty', + 'Shipping : %amount' => 'حمل و نقل: %amount', + 'Shipping:' => 'حمل و نقل:', + 'Support' => 'پشتیبانی', + 'Thank you for your order!' => 'با تشکر از سفارش شما.', + 'Thanks' => 'سپاس', + 'The %store team.' => 'تیم %store.', + 'Thelia V2' => 'تیلیا نسخه۲', + 'To login, please use the email address %email' => 'برای ورود از آدرس ایمیل %email استفاده کنید', + 'Total' => 'مجموع', + 'Total due : %amount' => 'جمع علی الحساب: %amount', + 'Unit price : %amount' => 'قیمت واحد: %amount', + 'View it in your browser' => 'مشاهده در مرورگر', + 'View this order in your account at %shop_name' => 'مشاهده این سفارش در %shop_name', + 'View this order in your shop back-office.' => 'مشاهده این سفارش در قسمت مدیریت.', + 'What You Purchased' => 'موارد خریداری شده', + 'You can change your password and your account details at any time in our store.' => 'شما می‌توانید اطلاعات حساب و رمزعبور خود را در فروشگاه و در هر زمانی تغییر دهید.', + 'You can change your password and your account details at any time in our store at %url.' => 'شما می‌توانید اطلاعات حساب و رمزعبور خود را در هر زمانی در %url تغییر دهید.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'برای تغییر رمزعبور در حساب کاربری خود در بخش اطلاعات شخصی، قسمت «تغییر رمزعبور» را باز کنید', + 'You have requested a new password for your account at %store_name' => 'شما یک درخواست برای رمزعبور جدید در %store_name داشتید', + 'Your %store account' => 'حساب %store شما', + 'Your account at %store_name has been changed by one of our managers.' => 'حساب %store_name شما بوسیله یکی از مدیران ما تغییر پیدا کرد.', + 'Your account information for %store' => 'اطلاعات حساب شما برای %store', + 'Your billing address' => 'آدرس صدور صورتحساب', + 'Your delivery address' => 'آدرس تحویل کالای شما', + 'Your invoice is available in your customer account at %url' => 'صورت حساب در حساب کاربری شما موجود است:‌ %url', + 'Your new password is %pass' => 'رمزعبور جدید شما %pass می‌باشد', + 'Your new password is %pass' => 'رمزعبور جدید شما:‌ %pass', + 'Your order confirmation Nº %ref' => 'تاییدییه سفارش شما %ref', + 'Your password for %store' => 'رمزعبور شما برای %store', + 'Your password is %pass' => 'رمزعبور شما:‌ %pass', +]; diff --git a/templates/email/aomc/I18n/fr_FR.php b/templates/email/aomc/I18n/fr_FR.php new file mode 100644 index 00000000..9edbe837 --- /dev/null +++ b/templates/email/aomc/I18n/fr_FR.php @@ -0,0 +1,84 @@ + '* Adresse de facturation', + '* Delivery address' => '* Adresse de livraison', + '* Items ordered:' => '* Articles commandés', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Une nouvelle commande ref. %ref a été passée le %date. Voici les détails', + 'All rights reserved.' => 'Tous droits réservés', + 'An account at %store_name has been created by one of our managers.' => 'Un compte client %store_name a été créé pour vous.', + 'Billing address:' => 'Adresse de facturation : ', + 'Confirm your %store account' => 'Confirmez la création de votre compte sur %store', + 'Copyright' => 'Copyright', + 'Customer billing address:' => 'Adresse de facturation', + 'Customer delivery address:' => 'Adresse de livraison', + 'Dear %firstname %lastname,' => 'Cher %firstname %lastname,', + 'Delivery address:' => 'Adresse de livraison : ', + 'Delivery method:' => 'Livré par : ', + 'Discount' => 'Remise', + 'Email not displaying correctly?' => 'Le mail ne s\'affiche pas correctement ?', + 'For any questions, or concerns, feel free to contact %mail.' => 'Pour toutes questions contactez nous par mail : %mail.', + 'Have a nice day' => 'Bonne journée.', + 'Have a nice day.' => 'Bonne journée.', + 'Hello' => 'Bonjour', + 'Hello,' => 'Bonjour,', + 'Hello, a new order has been placed.' => 'Bonjour, une nouvelle commande a été passée', + 'Here are the details of your purchase:' => 'Voici les détails de votre commande', + 'Here is the details of your order %ref placed on %date' => 'Voici les détails de votre commande %ref passée le %date', + 'If you don\'t requested a new password, please ignore this message.' => 'Si vous n\'avez pas demandé de nouveau mot de passe, merci d\'ignorer ce message.', + 'Item : %item' => 'Article : %item', + 'Items ordered:' => 'Articles commandés:', + 'Items total : %amount' => 'Total articles : %amount', + 'Kind regards' => 'Cordialement', + 'New order placed on %store_name Nº %ref' => 'Nouvelle commande %ref passée sur %store_name', + 'Order Number:' => 'Commande N° : ', + 'Order Total' => 'Total de la commande', + 'Order Total:' => 'Total de la commande : ', + 'Our contact us at:' => 'Contactez nous au', + 'Our mailing address is:' => 'Adresse postale', + 'Paid With:' => 'Payé par : ', + 'Please click here to create a new password.' => 'Merci de cliquer ici pour créer un nouveau mot de passe.', + 'Please click here to define a new password: %url . You will be prompted to enter a new password.' => 'Merci de cliquer ici pour créer votre nouveau mot de passe. Vous serez invité à indiquer ce nouveau mot de passe.', + 'Price in' => 'Prix en', + 'Purchase Date:' => 'Date d\'achat : ', + 'Quantity : %qty' => 'Quantité : %qty', + 'Shipping : %amount' => 'Livraison : %amount', + 'Shipping:' => 'Frais de livraison', + 'Subtotal' => 'Total articles', + 'Support' => 'SAV', + 'Thank you for your order!' => 'Merci pour votre commande', + 'Thank you for your registration. You\'ll now receive the %store newsletter on your email address %email.' => 'Merci pour votre abonnement. Vous recevrez désormais la newletter %store newsletter à votre adresse e-mail %email.', + 'Thanks' => 'Merci', + 'The %store team.' => 'L\'équipe %store.', + 'Thelia V2' => 'Thelia v2', + 'To complete your customer account creation, please confirm your email address by clicking the link below, or copying it in your browser address bar.' => 'Pour terminer la création de votre compte client, merci de confirmer votre adresse email en cliquant le lien ci-dessous. Vous pouvez aussi le copier dans la barre d\'adresse de votre navigateur.', + 'To login, please use the email address %email' => 'Pour vous connecter, merci d\'utiliser l\'adresse e-mail %email', + 'To unsubscribe from our newsletter, please click here.' => 'Pour vous désabonner de notre newsletter, merci de cliquer ici.', + 'To unsubscribe from our newsletter, please go to the following web address:' => 'Pour vous désabonner de notre newsletter, merci de vous rendre à l\'adresse ci-dessous:', + 'Total' => 'Total', + 'Total due : %amount' => 'Total à payer : %amount', + 'Unit price : %amount' => 'Prix unitaire : %amount', + 'View it in your browser' => 'Voir dans le navigateur', + 'View this order in your account at %shop_name' => 'Retrouver cette commande dans votre compte sur %shop_name ', + 'View this order in your shop back-office.' => 'Affichez cette commande dans le back-office de votre boutique', + 'Welcome to %store,' => 'Bienvenue chez %store,', + 'What You Purchased' => 'Ce que vous avez acheté', + 'You can also paste the URL below in you browser\'s address bar :

%url

' => 'Vous pouvez aussi coller l\'URL ci-dessous dans la barre d\'adresse de votre navigateur:

%url

', + 'You can change your password and your account details at any time in our store.' => 'Vous pouvez modifier votre mot de passe et vos informations personnelles à tout moment sur notre boutique.', + 'You can change your password and your account details at any time in our store at %url.' => 'Vous pouvez modifier votre mot de passe et vos informations personnelles à tout moment sur notre boutique: %url', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Vous pouvez changer votre mot de passe dans votre espace client', + 'You have requested a new password for your account at %store_name' => 'Vous avez demandé un nouveau mot de passe pour accéder à votre compte %store_name', + 'You have requested a new password for your administrator account at %store_name' => 'Vous avez demandé un nouveau mot de passe pour votre compte d\'administration sur %store_name ', + 'Your %store account' => 'Votre compte %store', + 'Your account at %store_name has been changed by one of our managers.' => 'L\'accès à votre compte sur %store_name a été modifié.', + 'Your account information for %store' => 'Accès à votre compte sur %store', + 'Your billing address' => 'Votre adresse de facturation', + 'Your delivery address' => 'Votre adresse de livraison', + 'Your invoice is available in your customer account at %url' => 'Votre facture est disponible dans votre compte client sur %url', + 'Your new password is %pass' => 'Votre nouveau mot de passe est %pass', + 'Your new password is %pass' => 'Votre nouveau mot de passe est %pass', + 'Your order confirmation Nº %ref' => 'Confirmation de commande N° %ref', + 'Your password for %store' => 'Votre mot de passe pour %store', + 'Your password is %pass' => 'Votre mot de passe est %pass', + 'Your subscriotion to %store newsletter' => 'Votre abonnement à la newletter %store', +); diff --git a/templates/email/aomc/I18n/hu_HU.php b/templates/email/aomc/I18n/hu_HU.php new file mode 100644 index 00000000..e7eb930a --- /dev/null +++ b/templates/email/aomc/I18n/hu_HU.php @@ -0,0 +1,67 @@ + 'Számlázási cím', + '* Delivery address' => 'Kézbesítési cím', + '* Items ordered:' => '* A megrendelt termékek:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Új megrendelés történt (azon.: %ref), megrendelés dátuma: %date. Megrendelés részletei :', + 'All rights reserved.' => 'Minden jog fenntartva.', + 'An account at %store_name has been created by one of our managers.' => 'Egy szerkesztő új hozzáférést készített a %store_name boltban.', + 'Billing address:' => 'Számlázási cím:', + 'Copyright' => 'Minden Jog fenntartva', + 'Customer billing address:' => 'Vevő számlázási címe:', + 'Customer delivery address:' => 'Vevő szállítási címe:', + 'Delivery address:' => 'Kézbesítési cím:', + 'Delivery method:' => 'Szállítás módja:', + 'Email not displaying correctly?' => 'A levél nem jelenik meg olvashatóan?', + 'For any questions, or concerns, feel free to contact %mail.' => 'Bármilyen kérdése, megjegyzése van, lépjen velünk kapcsolatba: %mail.', + 'Have a nice day.' => 'További kellemes napot.', + 'Hello' => 'Üdvözöljük', + 'Hello,' => 'Üdvözöljük!', + 'Hello, a new order has been placed.' => 'Üdvözöljük, új megrendelés érkezett.', + 'Here are the details of your purchase:' => 'A megrendelése részletei:', + 'Here is the details of your order %ref placed on %date' => 'Itt olvashatja a megrendelése (azon.:%ref) részleteit. Megrendelés dátuma: %date', + 'Item : %item' => 'Termék: %item', + 'Items ordered:' => 'Megrendelt termékek:', + 'Items total : %amount' => 'Összesen: %amount', + 'Kind regards' => 'Üdvözlettel', + 'New order placed on %store_name Nº %ref' => 'Új megrendelés érkezett a %store_name boltba ( azon.: %ref)', + 'Order Number:' => 'Megrendelés száma:', + 'Order Total' => 'Rendelés végösszege', + 'Order Total:' => 'Rendelés végösszege:', + 'Our contact us at:' => 'Kapcsolat:', + 'Our mailing address is:' => 'Levelezési címünk:', + 'Paid With:' => 'Fizetési mód:', + 'Price in' => 'Pénznem:', + 'Purchase Date:' => 'Vásárlás dátuma:', + 'Quantity : %qty' => 'Mennyiség: %qty', + 'Shipping : %amount' => 'Szállítás: %amount', + 'Shipping:' => 'Szállítás:', + 'Support' => 'Segítség', + 'Thank you for your order!' => 'Köszönjük a megrendelését!', + 'Thanks' => 'Köszönjük', + 'The %store team.' => 'A %store csapata.', + 'To login, please use the email address %email' => 'A bejelentkezéshez használja a %email email címet', + 'Total' => 'Összesen', + 'Total due : %amount' => 'Összesen: %amount', + 'Unit price : %amount' => 'Egységár: %amount', + 'View it in your browser' => 'Megtekintés a böngészőjében', + 'View this order in your account at %shop_name' => 'Megrendelés megtekintése oldalunkon %shop_name', + 'View this order in your shop back-office.' => 'Megrendelés megtekintése az adminisztrációs felületen.', + 'What You Purchased' => 'Megrendelésének tartalma', + 'You can change your password and your account details at any time in our store.' => 'Jelszavát és a hozzáférésének adatait bármikor megváltoztathatja a boltunkban.', + 'You can change your password and your account details at any time in our store at %url.' => 'Most megváltoztathatja a jelszavát és a hozzáférésének adatait itt: %url.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Jelszavát megváltoztathatja a fiókjában a "Jelszavam módosítása" linkre kattintva.', + 'You have requested a new password for your account at %store_name' => 'Új jelszót igényelt a hozzáféréséhez a %store_name boltban', + 'Your %store account' => 'A %store hozzáférése', + 'Your account at %store_name has been changed by one of our managers.' => 'A hozzáférését a %store_name boltban az Adminisztrátor megváltoztatta.', + 'Your account information for %store' => 'Hozzáférése a %store bolthoz', + 'Your billing address' => 'Számlázási címe', + 'Your delivery address' => 'Szállítási címe', + 'Your invoice is available in your customer account at %url' => 'A számlája elérhető a fiókjában a következő linkre kattintva: %url', + 'Your new password is %pass' => 'Új jelszava: %pass', + 'Your new password is %pass' => 'Az új jelszava: %pass', + 'Your order confirmation Nº %ref' => 'Megrendelése visszaigazolása (azon.: %ref)', + 'Your password for %store' => 'A jelszava a %store oldalhoz', + 'Your password is %pass' => 'A jelszava: %pass', +]; diff --git a/templates/email/aomc/I18n/id_ID.php b/templates/email/aomc/I18n/id_ID.php new file mode 100644 index 00000000..4a47d537 --- /dev/null +++ b/templates/email/aomc/I18n/id_ID.php @@ -0,0 +1,40 @@ + 'Alamat Penagihan', + '* Delivery address' => 'Alamat pengiriman', + '* Items ordered:' => '* Barang-barang yang dipesan:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Sebuah pesanan %ref telah dipesan tertanggal %date. Berikut rinciannya :', + 'All rights reserved.' => 'Semua hak dilindungi.', + 'An account at %store_name has been created by one of our managers.' => 'Sebuah akun di %store_name telah dibuat oleh salah satu manajer Kami.', + 'Billing address:' => 'Alamat penagihan:', + 'Customer billing address:' => 'Alamat pembayaran pelanggan:', + 'Customer delivery address:' => 'Alamat pengiriman konsumen:', + 'Delivery address:' => 'Alamat pengiriman:', + 'Delivery method:' => 'Metode pengiriman:', + 'Email not displaying correctly?' => 'Email tidak ditampilkan dengan benar?', + 'For any questions, or concerns, feel free to contact %mail.' => 'Untuk pertanyaan, atau masala, silahkan kontak %kami.', + 'Have a nice day.' => 'Semoga hari Anda menyenangkan.', + 'Hello' => 'Halo', + 'Hello,' => 'Hai,', + 'Hello, a new order has been placed.' => 'Halo, pesanan baru telah ditempatkan.', + 'Here are the details of your purchase:' => 'Berikut adalah rincian pembelian Anda:', + 'Here is the details of your order %ref placed on %date' => 'Berikut adalah rincian pesanan Anda %ref pada %date', + 'Item : %item' => 'Item: %item', + 'Items ordered:' => 'Barang-barang yang dipesan:', + 'Items total : %amount' => 'Total item: %amount', + 'Kind regards' => 'Hormat kami', + 'New order placed on %store_name Nº %ref' => 'Pesanan baru pada %store_name Nº %ref', + 'Order Number:' => 'Nomor pembelian:', + 'Order Total' => 'Total Order', + 'Order Total:' => 'Total Pesanan:', + 'Our contact us at:' => 'Hubungi kami di:', + 'Our mailing address is:' => 'Alamat email kami adalah:', + 'Paid With:' => 'Dibayar dengan:', + 'Price in' => 'Harga dalam', + 'Purchase Date:' => 'Tanggal pembelian:', + 'Quantity : %qty' => 'Kuantitas : %qty', + 'Shipping : %amount' => 'Pengiriman: %amount', + 'Unit price : %amount' => 'Unit harga: %amount', + 'View it in your browser' => 'Lihat di browser Anda', +]; diff --git a/templates/email/aomc/I18n/it_IT.php b/templates/email/aomc/I18n/it_IT.php new file mode 100644 index 00000000..4d8e93ba --- /dev/null +++ b/templates/email/aomc/I18n/it_IT.php @@ -0,0 +1,20 @@ + 'Tutti i diritti riservati.', + 'Billing address:' => 'Indirizzo di fatturazione:', + 'Copyright' => 'Copyright', + 'Customer billing address:' => 'Indirizzo di fatturazione del cliente:', + 'Delivery address:' => 'Indirizzo di consegna:', + 'Delivery method:' => 'Metodo di consegna:', + 'Email not displaying correctly?' => 'L\' e-mail non viene visualizzata correttamente?', + 'Have a nice day.' => 'Buona giornata.', + 'Hello' => 'Ciao', + 'Hello,' => 'Ciao,', + 'Order Total:' => 'Totale ordine:', + 'Support' => 'Supporto', + 'Thank you for your order!' => 'Grazie per il tuo ordine!', + 'Thanks' => 'Grazie', + 'Thelia V2' => 'Thelia V2', + 'Total' => 'Totale', +]; diff --git a/templates/email/aomc/I18n/pl_PL.php b/templates/email/aomc/I18n/pl_PL.php new file mode 100644 index 00000000..e3855fb2 --- /dev/null +++ b/templates/email/aomc/I18n/pl_PL.php @@ -0,0 +1,41 @@ + 'Dane do faktury', + '* Delivery address' => 'Adres dostawy', + '* Items ordered:' => 'Zamówione produkty:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Nowe zamówienie (nr ref. %ref) zostało złożone w dniu %date. Szczegóły zamówienia:', + 'All rights reserved.' => 'Wszystkie prawa zastrzeżone.', + 'An account at %store_name has been created by one of our managers.' => 'Konto w sklepie %store_name zostało utworzone przez jednego z naszych managerów.', + 'Billing address:' => 'Adres do faktury:', + 'Customer billing address:' => 'Adres do faktury:', + 'Customer delivery address:' => 'Adres dostawy:', + 'Delivery address:' => 'Adres dostawy:', + 'Delivery method:' => 'Sposób dostawy:', + 'Kind regards' => 'Z poważaniem', + 'New order placed on %store_name Nº %ref' => 'Nowe zamówienie zostało złożone w sklepie %store_name (num. %ref)', + 'Order Number:' => 'Numer zamówienia:', + 'Order Total' => 'Suma', + 'Order Total:' => 'Suma:', + 'Our contact us at:' => 'Skontaktuj się z nami:', + 'Our mailing address is:' => 'Nasz adres e-mail to:', + 'Paid With:' => 'Metoda płatności:', + 'Price in' => 'Cena w', + 'Purchase Date:' => 'Data zakupu:', + 'Quantity : %qty' => 'Ilość : %qty', + 'Shipping : %amount' => 'Dostawa : %amount', + 'Shipping:' => 'Dostawa:', + 'Support' => 'Pomoc', + 'Thank you for your order!' => 'Dziękujemy za złożenie zamówienia!', + 'Thanks' => 'Dziękujemy', + 'Your account at %store_name has been changed by one of our managers.' => 'Twoje konto w sklepie %store_name zostało zmienione przez jednego z naszych managerów.', + 'Your account information for %store' => 'Informacje o twoim koncie w sklepie %store', + 'Your billing address' => 'Twój adres do faktury', + 'Your delivery address' => 'Twój adres dostawy', + 'Your invoice is available in your customer account at %url' => 'Twoja faktura jest dostępna w twoim koncie klienta pod adresem %url', + 'Your new password is %pass' => 'Twoje nowe hasło to %pass', + 'Your new password is %pass' => 'Twoje nowe hasło to %pass', + 'Your order confirmation Nº %ref' => 'Potwierdzenie zamówienia (nr %ref)', + 'Your password for %store' => 'Twoje hasło dla sklepu %store', + 'Your password is %pass' => 'Twoje hasło to %pass', +]; diff --git a/templates/email/aomc/I18n/pt_BR.php b/templates/email/aomc/I18n/pt_BR.php new file mode 100644 index 00000000..8e7d1587 --- /dev/null +++ b/templates/email/aomc/I18n/pt_BR.php @@ -0,0 +1,68 @@ + '* Endereço de cobrança', + '* Delivery address' => '* Endereço de entrega', + '* Items ordered:' => '* Itens do pedido:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Um novo pedido ref. %ref foi criado em %date. Aqui estão os detalhes :', + 'All rights reserved.' => 'Todos os direitos reservados.', + 'An account at %store_name has been created by one of our managers.' => 'Uma conta em %store_name foi criada por um de nossos administradores.', + 'Billing address:' => 'Endereço de cobrança:', + 'Copyright' => 'Direitos autorais', + 'Customer billing address:' => 'Endereço de cobrança do cliente:', + 'Customer delivery address:' => 'Endereço de entrega do cliente:', + 'Delivery address:' => 'Endereço de entrega:', + 'Delivery method:' => 'Método de entrega:', + 'Email not displaying correctly?' => 'Não consegue ver este email corretamente?', + 'For any questions, or concerns, feel free to contact %mail.' => 'Para qualquer dúvida ou outras questões sinta-se livre para entrar em contato com %mail.', + 'Have a nice day.' => 'Tenha um bom dia.', + 'Hello' => 'Olá', + 'Hello,' => 'Olá,', + 'Hello, a new order has been placed.' => 'Olá, um novo pedido foi criado.', + 'Here are the details of your purchase:' => 'Aqui estão os detalhes da sua compra:', + 'Here is the details of your order %ref placed on %date' => 'Aqui estão os detalhes do seu pedido %ref criado em %date', + 'Item : %item' => 'Item: %item', + 'Items ordered:' => 'Itens do pedido:', + 'Items total : %amount' => 'Total de itens : %amount', + 'Kind regards' => 'Atenciosamente', + 'New order placed on %store_name Nº %ref' => 'Novo pedido criado em %store_name Nº %ref', + 'Order Number:' => 'Número do pedido:', + 'Order Total' => 'Total do pedido', + 'Order Total:' => 'Total do pedido:', + 'Our contact us at:' => 'Nosso contato em:', + 'Our mailing address is:' => 'Nosso endereço é:', + 'Paid With:' => 'Pagar com:', + 'Price in' => 'Preço em', + 'Purchase Date:' => 'Data de compra:', + 'Quantity : %qty' => 'Quantidade : %qty', + 'Shipping : %amount' => 'Entrega : %amount', + 'Shipping:' => 'Entrega:', + 'Support' => 'Suporte', + 'Thank you for your order!' => 'Obrigado pelo seu pedido!', + 'Thanks' => 'Obrigado', + 'The %store team.' => 'Time %store.', + 'Thelia V2' => 'Thelia V2', + 'To login, please use the email address %email' => 'Para iniciar a sessão, use seu endereço de email %email', + 'Total' => 'Total', + 'Total due : %amount' => 'Valor total : %amount', + 'Unit price : %amount' => 'Preço unitário : %amount', + 'View it in your browser' => 'Ver no navegador', + 'View this order in your account at %shop_name' => 'Veja este pedido na sua conta em %shop_name', + 'View this order in your shop back-office.' => 'Veja este pedido em nossa loja.', + 'What You Purchased' => 'O que você comprou', + 'You can change your password and your account details at any time in our store.' => 'Você pode mudar sua senha e os detalhes da sua conta a qualquer momento em nossa loja.', + 'You can change your password and your account details at any time in our store at %url.' => 'Você pode mudar sua senha e os detralhes da sua conta em qualquer momento em nossa loja em %url.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Você pode mudar sua senha em Conta do usuário e depois clicando no link "Mudar minha senha" nas suas informações pessoais', + 'You have requested a new password for your account at %store_name' => 'Você solicitou uma nova senha para sua conta em %store_name', + 'Your %store account' => 'Sua conta em %store', + 'Your account at %store_name has been changed by one of our managers.' => 'Sua conta em %store_name foi modificada por um de nossos administradores.', + 'Your account information for %store' => 'Informações da sua conta para %store', + 'Your billing address' => 'Seu endereço de cobrança', + 'Your delivery address' => 'Seu endereço de entrega', + 'Your invoice is available in your customer account at %url' => 'Sua fatura esta disponível em sua conta cliente em %url', + 'Your new password is %pass' => 'Sua nova senha é %pass', + 'Your new password is %pass' => 'Sua nova senha é %pass', + 'Your order confirmation Nº %ref' => 'Sua confirmação de pedido Nº %ref', + 'Your password for %store' => 'Sua senha para %store', + 'Your password is %pass' => 'Sua senha é %pass', +]; diff --git a/templates/email/aomc/I18n/pt_PT.php b/templates/email/aomc/I18n/pt_PT.php new file mode 100644 index 00000000..7ce7daa0 --- /dev/null +++ b/templates/email/aomc/I18n/pt_PT.php @@ -0,0 +1,5 @@ + 'Copyright', +]; diff --git a/templates/email/aomc/I18n/ru_RU.php b/templates/email/aomc/I18n/ru_RU.php new file mode 100644 index 00000000..eda2ca12 --- /dev/null +++ b/templates/email/aomc/I18n/ru_RU.php @@ -0,0 +1,79 @@ + '* Адрес плательщика', + '* Delivery address' => '* Адрес доставки', + '* Items ordered:' => '* Заказанный товар:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Новый заказ номер %ref был сделан %date. Подробности заказа:', + 'All rights reserved.' => 'Все права защищены.', + 'An account at %store_name has been created by one of our managers.' => 'Для Вас была создана учетная запись в %store_name одним из наших менеджеров.', + 'Billing address:' => 'Адрес плательщика:', + 'Copyright' => 'Авторское право', + 'Customer billing address:' => 'Адрес оплаты клиента:', + 'Customer delivery address:' => 'Адрес доставки клиента:', + 'Dear %firstname %lastname,' => 'Уважаемый %firstname %lastname,', + 'Delivery address:' => 'Адрес доставки:', + 'Delivery method:' => 'Способ доставки:', + 'Email not displaying correctly?' => 'Письмо отображается неправильно?', + 'For any questions, or concerns, feel free to contact %mail.' => 'С любыми вопросами или предложениями Вы можете обратиться к нам на %mail.', + 'Have a nice day' => 'Хорошего дня', + 'Have a nice day.' => 'Хорошего дня.', + 'Hello' => 'Здравствуйте', + 'Hello,' => 'Здравствуйте,', + 'Hello, a new order has been placed.' => 'Здравствуйте, был сделан новый заказ.', + 'Here are the details of your purchase:' => 'Подробности Вашего заказа:', + 'Here is the details of your order %ref placed on %date' => 'Подробности вашего заказа %ref от %date', + 'If you don\'t requested a new password, please ignore this message.' => 'Если вы не запрашивали новый пароль, проигнорируйте это сообщение.', + 'Item : %item' => 'Позиция: %item', + 'Items ordered:' => 'Заказанный товар:', + 'Items total : %amount' => 'Всего позиций: %amount', + 'Kind regards' => 'С наилучшими пожеланиями', + 'New order placed on %store_name Nº %ref' => 'Новый заказ в %store_name номер %ref', + 'Order Number:' => 'Номер заказа:', + 'Order Total' => 'Сумма заказа', + 'Order Total:' => 'Сумма заказа:', + 'Our contact us at:' => 'Наша контактная информация:', + 'Our mailing address is:' => 'Наш почтовый адрес:', + 'Paid With:' => 'Заплачено:', + 'Please click here to create a new password.' => 'Пожалуйста нажмите сюда для создания нового пароля.', + 'Please click here to define a new password: %url . You will be prompted to enter a new password.' => 'Для установки нового пароля, пожалуйста перейдите по: %url . Вас попросят ввести новый пароль.', + 'Price in' => 'Цена в', + 'Purchase Date:' => 'Дата покупки:', + 'Quantity : %qty' => 'Количество: %qty', + 'Shipping : %amount' => 'Доставка: %amount', + 'Shipping:' => 'Доставка:', + 'Support' => 'Поддержка', + 'Thank you for your order!' => 'Спасибо за заказ!', + 'Thank you for your registration. You\'ll now receive the %store newsletter on your email address %email.' => 'Благодарим за регистрацию. Вы должны получить письмо от %store на ваш email %email', + 'Thanks' => 'Спасибо', + 'The %store team.' => 'Команда %store.', + 'Thelia V2' => 'Thelia V2', + 'To login, please use the email address %email' => 'Чтобы войти, пожалуйста используйте email %email', + 'To unsubscribe from our newsletter, please click here.' => 'Чтобы отписаться от рассылки, пожалуйста нажмите здесь.', + 'To unsubscribe from our newsletter, please go to the following web address:' => 'Чтобы отписаться от рассылки, пожалуйста перейдите по следующей ссылке:', + 'Total' => 'Итого', + 'Total due : %amount' => 'Итого: %amount', + 'Unit price : %amount' => 'Цена единицы: %amount', + 'View it in your browser' => 'Просмотреть в браузере', + 'View this order in your account at %shop_name' => 'Просмотреть информацию о заказе в вашей учетной записи в магазине %shop_name', + 'View this order in your shop back-office.' => 'Просмотрите информацию об этом заказе в бэк-офисе магазина.', + 'What You Purchased' => 'То, что вы приобрели', + 'You can also paste the URL below in you browser\'s address bar :

%url

' => 'Вы также можете вставить URL указанный ниже, в адресную строку браузера :

%url

', + 'You can change your password and your account details at any time in our store.' => 'Вы можете изменить ваш пароль и данные учетной записи в любое время в нашем магазине.', + 'You can change your password and your account details at any time in our store at %url.' => 'Вы можете изменить ваш пароль и данные учетной записи в любое время в нашем магазине по ссылке %url.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Вы можете изменить свой пароль в учетной записи пользователя, открыв ссылку «Изменить пароль» в разделе личная информация', + 'You have requested a new password for your account at %store_name' => 'Вы запросили новый пароль для вашей учетной записи в %store_name', + 'You have requested a new password for your administrator account at %store_name' => 'Вы запросили новый пароль для вашего аккаунта администратора в %store_name', + 'Your %store account' => 'Ваша учетная запись в %store ', + 'Your account at %store_name has been changed by one of our managers.' => 'Ваша учетная запись в %store_name была изменена одним из наших менеджеров.', + 'Your account information for %store' => 'Данные учетной записи для %store', + 'Your billing address' => 'Адрес оплаты', + 'Your delivery address' => 'Адрес доставки', + 'Your invoice is available in your customer account at %url' => 'Счет-фактура доступна в вашей учетной записи на %url', + 'Your new password is %pass' => 'Ваш новый пароль — %pass', + 'Your new password is %pass' => 'Ваш новый пароль %pass', + 'Your order confirmation Nº %ref' => 'Подтверждение заказа № %ref', + 'Your password for %store' => 'Ваш пароль на %store', + 'Your password is %pass' => 'Ваш пароль %pass', + 'Your subscriotion to %store newsletter' => 'Ваша подписка на рассылку новостей %store', +); diff --git a/templates/email/aomc/I18n/sk_SK.php b/templates/email/aomc/I18n/sk_SK.php new file mode 100644 index 00000000..b8b789a3 --- /dev/null +++ b/templates/email/aomc/I18n/sk_SK.php @@ -0,0 +1,68 @@ + '* Fakturačná adresa', + '* Delivery address' => '* Adresa doručenia', + '* Items ordered:' => '* Objednaný tovar:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Nová objednávka s kódom %ref bola zadaná %date. Tu sú podrobnosti:', + 'All rights reserved.' => 'Všetky práva vyhradné.', + 'An account at %store_name has been created by one of our managers.' => 'Konto v %store_name bolo vytvorené jedným z našich manažérov.', + 'Billing address:' => 'Fakturačná adresa:', + 'Copyright' => 'Autorské práva', + 'Customer billing address:' => 'Fakturačná adresa zákazníka:', + 'Customer delivery address:' => 'Adresa dodávky zákazníka:', + 'Delivery address:' => 'Adresa doručenia:', + 'Delivery method:' => 'Spôsob doručenia:', + 'Email not displaying correctly?' => 'Email sa nezobrazuje správne?', + 'For any questions, or concerns, feel free to contact %mail.' => 'Pre akékoľvek otázky, alebo pripomienky, neváhajte kontaktovať %mail.', + 'Have a nice day.' => 'Prajeme pekný deň.', + 'Hello' => 'Dobrý deň', + 'Hello,' => 'Dobrý deň,', + 'Hello, a new order has been placed.' => 'Dobrý deň, nová objednávka bola zadaná.', + 'Here are the details of your purchase:' => 'Tu sú podrobnosti vášho nákupu:', + 'Here is the details of your order %ref placed on %date' => 'Tu sú podrobnosti vašej objednávky %ref zadanej dňa %date', + 'Item : %item' => 'Položka: %item', + 'Items ordered:' => 'Objednaný tovar:', + 'Items total : %amount' => 'Položiek celkom: %amount', + 'Kind regards' => 'S pozdravom', + 'New order placed on %store_name Nº %ref' => 'Nová objednávka zadaná v %store_name č % ref', + 'Order Number:' => 'Číslo objednávky:', + 'Order Total' => 'Objednávka celkom', + 'Order Total:' => 'Objednávka celkom:', + 'Our contact us at:' => 'Kontaktujte nás v:', + 'Our mailing address is:' => 'Naša mailová adresa:', + 'Paid With:' => 'Zaplatené s:', + 'Price in' => 'Cena v', + 'Purchase Date:' => 'Dátum nákupu:', + 'Quantity : %qty' => 'Množstvo: %qty', + 'Shipping : %amount' => 'Doprava: %amount', + 'Shipping:' => 'Doručenie:', + 'Support' => 'Podpora', + 'Thank you for your order!' => 'Ďakujeme za vašu objednávku!', + 'Thanks' => 'Ďakujeme', + 'The %store team.' => '%store tím.', + 'Thelia V2' => 'Thelia V2', + 'To login, please use the email address %email' => 'Pre prihlásenie použite prosím e-mailovú adresu %email', + 'Total' => 'Celkom', + 'Total due : %amount' => 'Celková k zaplateniu: %amount', + 'Unit price : %amount' => 'Jednotková cena: %amount', + 'View it in your browser' => 'Zobraziť v prehľadávači', + 'View this order in your account at %shop_name' => 'Zobraziť túto objednávku vo vašom účte na %shop_name', + 'View this order in your shop back-office.' => 'Zobraziť objednávku v back-office e-shopu.', + 'What You Purchased' => 'Čo ste nakúpili', + 'You can change your password and your account details at any time in our store.' => 'Môžete zmeniť svoje heslo a údaje k účtu kedykoľvek v našom obchode.', + 'You can change your password and your account details at any time in our store at %url.' => 'Môžete zmeniť svoje heslo a údaje svojho účtu kedykoľvek v našej predajni na %url.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => 'Svoje heslo si môžete zmeniť v rámci svojho užívateľského konta pod osobnými údajmi po otvorení odkazu "Zmeniť heslo"', + 'You have requested a new password for your account at %store_name' => 'Vyžiadali ste si nové heslo pre svoj účet na %store_name', + 'Your %store account' => 'Váš %store účet', + 'Your account at %store_name has been changed by one of our managers.' => 'Jeden z našich manažérov urobil zmenu vášho účtu na %store_name.', + 'Your account information for %store' => 'Informácie o účte pre %store', + 'Your billing address' => 'Vaša fakturačná adresa', + 'Your delivery address' => 'Vaša dodacia adresa', + 'Your invoice is available in your customer account at %url' => 'Faktúra je k dispozícii vo vašom účte zákazníka na %url', + 'Your new password is %pass' => 'Nové heslo je %pass', + 'Your new password is %pass' => 'Vaše nové heslo je %pass', + 'Your order confirmation Nº %ref' => 'Potvrdenie objednávky číslo %ref', + 'Your password for %store' => 'Vaše heslo pre %store', + 'Your password is %pass' => 'Vaše heslo je %pass', +]; diff --git a/templates/email/aomc/I18n/tr_TR.php b/templates/email/aomc/I18n/tr_TR.php new file mode 100644 index 00000000..4a7a977c --- /dev/null +++ b/templates/email/aomc/I18n/tr_TR.php @@ -0,0 +1,68 @@ + '* Fatura adresi', + '* Delivery address' => '* Teslimat adresi', + '* Items ordered:' => '* Sipariş maddeler:', + 'A new order ref. %ref has been placed on %date. Here are the details :' => 'Yeni bir sipariş referans %ref %date yerleştirildi. İşte ayrıntılar vardır:', + 'All rights reserved.' => 'Tüm hakları saklıdır.', + 'An account at %store_name has been created by one of our managers.' => '%store_name bir hesap yöneticilerimiz biri tarafından oluşturuldu.', + 'Billing address:' => 'Fatura adresi:', + 'Copyright' => 'Telif hakkı', + 'Customer billing address:' => 'Müşteri Fatura adresi:', + 'Customer delivery address:' => 'Müşteri teslimat adresi:', + 'Delivery address:' => 'Teslimat adresi:', + 'Delivery method:' => 'Teslimat Yöntemi:', + 'Email not displaying correctly?' => 'E-posta düzgün görüntülenmiyor?', + 'For any questions, or concerns, feel free to contact %mail.' => 'Herhangi bir sorunuz veya endişeniz, için %mail temas kurmaktan çekinmeyin.', + 'Have a nice day.' => 'İyi günler.', + 'Hello' => 'Merhaba', + 'Hello,' => 'Merhaba,', + 'Hello, a new order has been placed.' => 'Merhaba, yeni bir düzen yerleştirildi.', + 'Here are the details of your purchase:' => 'Burada satın alma ayrıntıları şunlardır:', + 'Here is the details of your order %ref placed on %date' => 'İşte senin sipariş %ref %date üzerinde yerleştirilen ayrıntılarını', + 'Item : %item' => 'Madde: %item', + 'Items ordered:' => 'Sipariş maddeler:', + 'Items total : %amount' => 'Öğeleri Toplam: %amount', + 'Kind regards' => 'Saygılarımızla', + 'New order placed on %store_name Nº %ref' => '%store_name nº %ref üzerinde yeni sipariş', + 'Order Number:' => 'Sipariş numarası:', + 'Order Total' => 'Sipariş Toplamları', + 'Order Total:' => 'Sipariş Toplamları:', + 'Our contact us at:' => 'Bizim bize de:', + 'Our mailing address is:' => 'Bizim posta adresidir:', + 'Paid With:' => 'İle ödeme:', + 'Price in' => 'Fiyat', + 'Purchase Date:' => 'Satın Alma Tarihi:', + 'Quantity : %qty' => 'Miktar: %qty', + 'Shipping : %amount' => 'Nakliye: %amount', + 'Shipping:' => 'Ürün Kargo Bilgileri:', + 'Support' => 'Destek', + 'Thank you for your order!' => 'Siparişiniz için teşekkür ederiz!', + 'Thanks' => 'Teşekkürler', + 'The %store team.' => '%store takım.', + 'Thelia V2' => 'Thelia V2', + 'To login, please use the email address %email' => 'E-posta adresi %email oturum açmanız için lütfen kullanım', + 'Total' => 'Toplam', + 'Total due : %amount' => 'Nedeniyle toplam: %amount', + 'Unit price : %amount' => 'Birim Fiyatı: %amount', + 'View it in your browser' => 'Tarayıcınızda görüntülemek', + 'View this order in your account at %shop_name' => 'Bu sırada %shop_name hesabınızı görüntüleyin', + 'View this order in your shop back-office.' => 'Bu sırada senin Dükkanı arka ofis içinde görüntüleyin.', + 'What You Purchased' => 'Ne satın', + 'You can change your password and your account details at any time in our store.' => 'Sen-ebilmek değişmek senin parola ve hesap bilgilerinizi herhangi bir zaman bizim mağaza.', + 'You can change your password and your account details at any time in our store at %url.' => '%url, mağaza bizim herhangi bir zamanda parolanızı ve hesap bilgilerinizi değiştirebilirsiniz.', + 'You can change your password in your user account by opening the "Change my password" link under your personal information' => '"Değişmek benim parola" bağlantı altında kişisel bilgilerinizi açarak Kullanıcı hesabınızdaki şifrenizi değiştirebilirsiniz', + 'You have requested a new password for your account at %store_name' => '%store_name, hesabınız için yeni bir şifre talep etmiş', + 'Your %store account' => '%store hesap', + 'Your account at %store_name has been changed by one of our managers.' => '%store_name adresinde hesabınızda yöneticilerimizden biri tarafından değiştirildi.', + 'Your account information for %store' => 'Hesap bilgilerinizi %store için', + 'Your billing address' => 'Fatura Adresiniz', + 'Your delivery address' => 'Teslimat Adresiniz', + 'Your invoice is available in your customer account at %url' => 'Eğer fatura müşteri hesabınızı %url mevcuttur', + 'Your new password is %pass' => 'Yeni parolanızı %pass olduğunu', + 'Your new password is %pass' => 'Yeni parolanızı %pass olduğunu', + 'Your order confirmation Nº %ref' => 'Sipariş onayı n º %ref', + 'Your password for %store' => '%store şifre', + 'Your password is %pass' => 'Yeni parolanızı %pass olduğunu', +]; diff --git a/templates/email/aomc/LICENSE.txt b/templates/email/aomc/LICENSE.txt new file mode 100644 index 00000000..65c5ca88 --- /dev/null +++ b/templates/email/aomc/LICENSE.txt @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/templates/email/aomc/README b/templates/email/aomc/README new file mode 100644 index 00000000..d85b944b --- /dev/null +++ b/templates/email/aomc/README @@ -0,0 +1,71 @@ +About mail layout and templates +------------------------------- + +Layouts +------- + +Mail layouts are used to provide a layout to all or some of the e-mails sent by +the Thelia core or the modules. + +The layouts should have the 'tpl' extension, and should use {$message_body} as the +placeholder of the final message content. + +For example, a minimal layout is : + + {$message_body} + +There are no specific limitations in the content of the layout. For exemple, you +can forecast inheritance, using a block : + +{block name='message-body'}{$message_body nofilter}{/block} + +(In fact, this is the content of the default HTML layout, default-html-layout.tpl) + +This way, you can extends the layout in message templates : + + {block name='message-body'} + + Here is the template content + + {/block} + + +Templates +--------- + +A Template contains the body of a specific message. It can be used It may extends a layout, but +in this case, you SHOULD NOT select this layout as the message layout in the back office. + +HTML templates SHOULD have the 'html' extension to be displayed in the "Name of +the HTML template file" menu in the back-office. + +TEXT templates SHOULD have the 'text' extension to be displayed in the "Name of +the text template file" menu in the back-office. + + +What you can do with this stuff ? +--------------------------------- + +For a specific message, you can : + + Not use templates or layouts, and rely on HTML and TEXT entered in the back- + office. + + Use only layouts, to define a common look and feel to your mails. These layouts + are be populated (through {$message_body}) with HTML or TEXT entered in the back- + office. + + Use only templates, without layouts, to define message content. In this case, + HTML or TEXT entered in the back-office is ignored. + + Use layouts and templates, without inheritance. This way, layouts are populated + (through {$message_body}) with HTML or TEXT found in the message templates. + HTML or TEXT entered in the back-office is ignored. + + Use templates which inherit from a layout. In the layout, {$message_body} + (if present) is then ignored, and the classic Smarty bock-based inheritance + is used. + Be sure in this case to not define an extended layout as ther message layout, + or unexpected results may be generated (probably repeated layout content) + +Enjoy. \ No newline at end of file diff --git a/templates/email/aomc/Readme.md b/templates/email/aomc/Readme.md new file mode 100644 index 00000000..ec0531a1 --- /dev/null +++ b/templates/email/aomc/Readme.md @@ -0,0 +1,18 @@ +Readme +====== + +## This is the repository of Thelia default email template. All the pull requests on this repo will be ignored. +### If you want to create a project, please take a look at [thelia/thelia-project](https://github.com/thelia/thelia-project) +### If you want to contribute to Thelia, please take a look at [thelia/thelia](https://github.com/thelia/thelia) + +Thelia +------ +[![Build Status](https://travis-ci.org/thelia/thelia.png?branch=master)](https://travis-ci.org/thelia/thelia) [![License](https://poser.pugx.org/thelia/thelia/license.png)](https://packagist.org/packages/thelia/thelia) [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/thelia/thelia/badges/quality-score.png?s=61e3e04a69bffd71c29b08e5392080317a546716)](https://scrutinizer-ci.com/g/thelia/thelia/) + +[Thelia](http://thelia.net/) is an open source tool for creating e-business websites and managing online content. This software is published under LGPL. + +This is the new major version of Thelia. + +You can download this version and have a try or take a look at the source code (or anything you wish, respecting LGPL). See http://thelia.net/ web site for more information. + +A repository containing all thelia modules is available at this address : https://github.com/thelia-modules diff --git a/templates/email/aomc/account_changed_by_admin.html b/templates/email/aomc/account_changed_by_admin.html new file mode 100644 index 00000000..dd3d4799 --- /dev/null +++ b/templates/email/aomc/account_changed_by_admin.html @@ -0,0 +1,31 @@ +{extends file="email-layout.tpl"} + +{* Open in browser *} +{block name="browser"}{/block} + +{* No big image header *} +{block name="image-header"}{/block} + +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l="Your account information for %store" store={config key="store_name"}}{/block} + +{* Title *} +{block name="email-title"}{/block} + +{* Content *} +{block name="email-content"} + {intl l="Hello,"}

+ {intl l="Your account at %store_name has been changed by one of our managers." store_name={config key="store_name"}}.

+ {loop name="cust_info" type="customer" id={$customer_id} current="false"} + {intl l="To login, please use the email address %email" email={$EMAIL}}

+ {/loop} + {if ! empty($password)} + {intl l="Your new password is %pass" pass={$password}}

+ {/if} + {intl l='You can change your password in your user account by opening the "Change my password" link under your personal information'}.

+ {intl l='Kind regards'},
+ {intl l="The %store team." store={config key="store_name"}} +{/block} diff --git a/templates/email/aomc/account_changed_by_admin.txt b/templates/email/aomc/account_changed_by_admin.txt new file mode 100644 index 00000000..497aecb9 --- /dev/null +++ b/templates/email/aomc/account_changed_by_admin.txt @@ -0,0 +1,18 @@ +{default_translation_domain domain='email.aomc'} +{intl l="Hello,"} + +{intl l="Your account at %store_name has been changed by one of our managers." store_name={config key="store_name"}}. + +{loop name="cust_info" type="customer" id={$customer_id} current="false"} + {intl l="To login, please use the email address %email" email={$EMAIL}} +{/loop} + + {if ! empty($password)} + {intl l="Your new password is %pass" pass={$password}} +{/if} + +{intl l='You can change your password in your user account by opening the "Change my password" link under your personal information'}. + +{intl l='Kind regards'}, +{intl l="The %store team." store={config key="store_name"}} + diff --git a/templates/email/aomc/account_created_by_admin.html b/templates/email/aomc/account_created_by_admin.html new file mode 100644 index 00000000..ecc3bb91 --- /dev/null +++ b/templates/email/aomc/account_created_by_admin.html @@ -0,0 +1,31 @@ +{extends file="email-layout.tpl"} + +{* Open in browser *} +{block name="browser"}{/block} + +{* No big image header *} +{block name="image-header"}{/block} + +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l="Your %store account" store={config key="store_name"}}{/block} + +{* Title *} +{block name="email-title"}{/block} + +{* Content *} +{block name="email-content"} + {intl l="Hello,"}

+ {intl l="An account at %store_name has been created by one of our managers." store_name={config key="store_name"}}.

+ {loop name="cust_info" type="customer" id={$customer_id} current="false"} + {intl l="To login, please use the email address %email" email={$EMAIL}}

+ {/loop} + {if ! empty($password)} + {intl l="Your password is %pass" pass={$password}}

+ {/if} + {intl l='You can change your password and your account details at any time in our store.' url={url path="/account"}}

+ {intl l='Kind regards'},
+ {intl l="The %store team." store={config key="store_name"}} +{/block} diff --git a/templates/email/aomc/account_created_by_admin.txt b/templates/email/aomc/account_created_by_admin.txt new file mode 100644 index 00000000..c0cbe304 --- /dev/null +++ b/templates/email/aomc/account_created_by_admin.txt @@ -0,0 +1,16 @@ +{default_translation_domain domain='email.aomc'} +{intl l="Hello,"} + +{intl l="An account at %store_name has been created by one of our managers." store_name={config key="store_name"}}. + +{loop name="cust_info" type="customer" id={$customer_id} current="false"} + {intl l="To login, please use the email address %email" email={$EMAIL}} +{/loop} + +{intl l="Your password is %pass" pass={$password}} + +{intl l='You can change your password and your account details at any time in our store at %url.' url={url path="/account"}}. + +{intl l='Kind regards'}, +{intl l="The %store team." store={config key="store_name"}} + diff --git a/templates/email/aomc/admin_password.html b/templates/email/aomc/admin_password.html new file mode 100644 index 00000000..af632294 --- /dev/null +++ b/templates/email/aomc/admin_password.html @@ -0,0 +1,26 @@ +{extends file="email-layout.tpl"} + +{* Open in browser *} +{block name="browser"}{/block} + +{* No big image header *} +{block name="image-header"}{/block} + +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l="Your password for %store" store={config key="store_name"}}{/block} + +{* Title *} +{block name="email-title"}{/block} + +{* Content *} +{block name="email-content"} + {intl l="Hello,"}

+ {intl l="You have requested a new password for your administrator account at %store_name" store_name={config key="store_name"}}.

+ {intl l='Please click here to create a new password.' url={url path="/admin/password-create/$token"}}

+ {intl l="You can also paste the URL below in you browser's address bar :

%url

" url={url path="/admin/password-create/$token"}}

+ {intl l='If you don\'t requested a new password, please ignore this message.'}.

+ {intl l='Have a nice day'} +{/block} diff --git a/templates/email/aomc/admin_password.txt b/templates/email/aomc/admin_password.txt new file mode 100644 index 00000000..5a1c4b83 --- /dev/null +++ b/templates/email/aomc/admin_password.txt @@ -0,0 +1,10 @@ +{default_translation_domain domain='email.aomc'} +{intl l="Hello,"} + +{intl l="You have requested a new password for your administrator account at %store_name" store_name={config key="store_name"}}. + +{intl l="Please click here to define a new password: %url . You will be prompted to enter a new password." url={url path="/admin/password-create/$token"}} + +{intl l='If you don\'t requested a new password, please ignore this message.'}. + +{intl l='Have a nice day'} \ No newline at end of file diff --git a/templates/email/aomc/assets/img/header.jpg b/templates/email/aomc/assets/img/header.jpg new file mode 100644 index 00000000..c80e1652 Binary files /dev/null and b/templates/email/aomc/assets/img/header.jpg differ diff --git a/templates/email/aomc/assets/img/logo.gif b/templates/email/aomc/assets/img/logo.gif new file mode 100644 index 00000000..cfa39664 Binary files /dev/null and b/templates/email/aomc/assets/img/logo.gif differ diff --git a/templates/email/aomc/assets/img/separateur.jpg b/templates/email/aomc/assets/img/separateur.jpg new file mode 100644 index 00000000..5cd3df4a Binary files /dev/null and b/templates/email/aomc/assets/img/separateur.jpg differ diff --git a/templates/email/aomc/composer.json b/templates/email/aomc/composer.json new file mode 100644 index 00000000..a9995d1e --- /dev/null +++ b/templates/email/aomc/composer.json @@ -0,0 +1,10 @@ +{ + "name": "thelia/email-default-template", + "type": "thelia-email-template", + "require": { + "thelia/installer": "~1.1" + }, + "extra": { + "installer-name": "default" + } +} diff --git a/templates/email/aomc/customer_confirmation.html b/templates/email/aomc/customer_confirmation.html new file mode 100644 index 00000000..ecbfc5ce --- /dev/null +++ b/templates/email/aomc/customer_confirmation.html @@ -0,0 +1,29 @@ +{extends file="email-layout.tpl"} + +{* Open in browser *} +{block name="browser"}{/block} + +{* No big image header *} +{block name="image-header"}{/block} + +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l='Confirm your %store account' store={config key="store_name"}}{/block} + +{* Title *} +{block name="email-title"}{/block} + +{* Content *} +{block name="email-content"} + {loop type="customer" name="confirmation" current=false id=$customer_id} +

{intl l="Welcome to %store," store={config key="store_name"}}

+

{intl l="To complete your customer account creation, please confirm your email address by clicking the link below, or copying it in your browser address bar."}

+

{url path='/customer/confirm/%token' token=$CONFIRMATION_TOKEN}

+

+ {intl l='Kind regards'},
+ {intl l="The %store team." store={config key="store_name"}} +

+ {/loop} +{/block} diff --git a/templates/email/aomc/customer_confirmation.txt b/templates/email/aomc/customer_confirmation.txt new file mode 100644 index 00000000..574b41da --- /dev/null +++ b/templates/email/aomc/customer_confirmation.txt @@ -0,0 +1,11 @@ +{default_translation_domain domain='email.aomc'} +{loop type="customer" name="confirmation" current=false id=$customer_id} +{intl l="Welcome to %store," store={config key="store_name"}} +
+{intl l="To complete your customer account creation, please confirm your email address by clicking the link below, or copying it in your browser address bar."} +
+{url path='/customer/confirm/%token' token=$CONFIRMATION_TOKEN} +
+{intl l='Kind regards'}, +{intl l="The %store team." store={config key="store_name"}} +{/loop} diff --git a/templates/email/aomc/default-html-layout.tpl b/templates/email/aomc/default-html-layout.tpl new file mode 100644 index 00000000..b0b413ea --- /dev/null +++ b/templates/email/aomc/default-html-layout.tpl @@ -0,0 +1,26 @@ +{*************************************************************************************/ +/* This file is part of the Thelia package. */ +/* */ +/* Copyright (c) OpenStudio */ +/* email : dev@thelia.net */ +/* web : http://www.thelia.net */ +/* */ +/* For the full copyright and license information, please view the LICENSE.txt */ +/* file that was distributed with this source code. */ +/*************************************************************************************} + +{* +This is the default HTML mail layout. Use {$message_body} as a placeholder for +the HTML message defined in the 'HTML Message' field in the back-office, or the +content of the selected template in the back-office. + +Be sure to use the nofilter modifier, to prevent HTML escaping. + +DO NOT DELETE THIS FILE, some plugins may use it. +*} + +{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} +{default_translation_domain domain='email.aomc'} +{default_locale locale={$locale}} + +{block name='message-body'}{$message_body nofilter}{/block} \ No newline at end of file diff --git a/templates/email/aomc/default-text-layout.tpl b/templates/email/aomc/default-text-layout.tpl new file mode 100644 index 00000000..96a71c59 --- /dev/null +++ b/templates/email/aomc/default-text-layout.tpl @@ -0,0 +1,26 @@ +{*************************************************************************************/ +/* This file is part of the Thelia package. */ +/* */ +/* Copyright (c) OpenStudio */ +/* email : dev@thelia.net */ +/* web : http://www.thelia.net */ +/* */ +/* For the full copyright and license information, please view the LICENSE.txt */ +/* file that was distributed with this source code. */ +/*************************************************************************************} + +{* +This is the default TEXT mail layout. Use {$message_body} as a placeholder for +the text message defined in the 'TEXT Message' field in the back-office, or the +content of the selected template in the back-office. + +Be sure to use the nofilter modifier, to prevent HTML escaping. + +DO NOT DELETE THIS FILE, some plugins may use it. +*} + +{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} +{default_translation_domain domain='email.aomc'} +{default_locale locale={$locale}} + +{block name='message-body'}{$message_body nofilter}{/block} \ No newline at end of file diff --git a/templates/email/aomc/email-layout.tpl b/templates/email/aomc/email-layout.tpl new file mode 100644 index 00000000..6c6afe07 --- /dev/null +++ b/templates/email/aomc/email-layout.tpl @@ -0,0 +1,497 @@ +{default_translation_domain domain='email.aomc'} +{default_locale locale={$locale}} +{declare_assets directory='assets'} +{assign var="url_site" value="{config key="url_site"}"} +{assign var="company_name" value="{config key="store_name"}"} +{if not $company_name} + {assign var="company_name" value="{intl l='Thelia V2'}"} +{/if} + + + + + +{block name="email-subject"}{/block} + + +{hook name="email-html.layout.css"} + + +
+ + + + +
+ + {block name="pre-header"} + + + + {/block} + + {block name="logo-header"} + + + + {/block} + + + + + + +
+ + + + +
+ + + + + + +
+ {block name="email-intro"}{/block} + + {block name="browser"}{intl l="Email not displaying correctly?"}
{intl l="View it in your browser"}.{/block} +
+
+
+ + + + +
+ + + + +
+ {local_media type="logo"} + {$company_name} + {/local_media} + Outils 82 +
+
+
+ + + + +
+ + + + + + + +
+ + + + +
+ {block name="email-title"}{/block} +
+
+ + {block name="image-header"} + + + + {/block} + + + +
+ {local_media type="banner"} + + {/local_media} +
+ {block name="email-content"}{/block} +
+
+
+
+ + + + +
+ {hook name="email-html.layout.footer"} + {elsehook rel="email-html.layout.footer"} + + + + +
+ {intl l="Our mailing address is:"} +
+ {config key="store_address1"} {config key="store_address2"} {config key="store_address3"}
+ {config key="store_zipcode"} {config key="store_city"}, + {if {config key="store_country"} } + {loop type="country" name="address.country.title" id={config key="store_country"}}, {$TITLE}{/loop} + {/if} +
+
+ {intl l="Copyright"} © {'Y'|date} {$company_name}, {intl l="All rights reserved."} +
+ {/elsehook} +
+
+
+
+ + diff --git a/templates/email/aomc/newsletter_subscription_confirmation.html b/templates/email/aomc/newsletter_subscription_confirmation.html new file mode 100644 index 00000000..afa22531 --- /dev/null +++ b/templates/email/aomc/newsletter_subscription_confirmation.html @@ -0,0 +1,24 @@ +{extends file="email-layout.tpl"} + +{* Do not provide a "Open in browser" link *} +{block name="browser"}{/block} +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l="Your subscriotion to %store newsletter" store={config key="store_name"}}{/block} + +{* Title *} +{block name="email-title"}{/block} + +{* Content *} +{block name="email-content"} + {if $firstname || $lastname} +

{intl l="Dear %firstname %lastname," firstname=$firstname lastname=$lastname}

+ {else} +

{intl l="Hello,"}

+ {/if} +

{intl l="Thank you for your registration. You'll now receive the %store newsletter on your email address %email." store={config key="store_name"} email=$email}

+

{intl l="To unsubscribe from our newsletter, please click here." unsublink={url path="/newsletter-unsubscribe" email=$email}}

+

{intl l="The %store team." store={config key="store_name"}}

+{/block} \ No newline at end of file diff --git a/templates/email/aomc/newsletter_subscription_confirmation.txt b/templates/email/aomc/newsletter_subscription_confirmation.txt new file mode 100644 index 00000000..6953e727 --- /dev/null +++ b/templates/email/aomc/newsletter_subscription_confirmation.txt @@ -0,0 +1,10 @@ +{default_translation_domain domain='email.aomc'} +{if $firstname || $lastname} +{intl l="Dear %firstname %lastname," firstname=$firstname lastname=$lastname} +{else} +{intl l="Hello,"} +{/if} +{intl l="Thank you for your registration. You'll now receive the %store newsletter on your email address %email." store={config key="store_name"} email=$email} +{intl l="To unsubscribe from our newsletter, please go to the following web address:"} + {url path="/newsletter-unsubscribe" email=$email} +{intl l="The %store team." store={config key="store_name"}} \ No newline at end of file diff --git a/templates/email/aomc/order_confirmation.html b/templates/email/aomc/order_confirmation.html new file mode 100644 index 00000000..e25af947 --- /dev/null +++ b/templates/email/aomc/order_confirmation.html @@ -0,0 +1,149 @@ +{extends file="email-layout.tpl"} + +{* Do not provide a "Open in browser" link *} +{block name="browser"}{/block} +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l="Your order confirmation Nº %ref" ref={$order_ref}}{/block} + +{* Title *} +{block name="email-title"}{intl l="Thank you for your order!"}{/block} + +{* Content *} +{block name="email-content"} + + {loop name="order.invoice" type="order" id=$order_id customer="*"} + {loop name="currency.order" type="currency" id=$CURRENCY} + {assign var="orderCurrencyIsoCode" value=$ISOCODE} + {/loop} + {loop type="customer" name="customer.invoice" id=$CUSTOMER current="0"} + {assign var="customerRef" value=$REF} + {/loop} + + {hook name="email-html.order-confirmation.before-address" order=$order_id} + + {intl l="Here are the details of your purchase:"}

+ + + + + + +
+ {intl l="Delivery address:"}
+ {ifhook rel="email-html.order-confirmation.delivery-address"} + {* delivery module can customize the delivery address *} + {hook name="email-html.order-confirmation.delivery-address" module={$DELIVERY_MODULE} order=$order_id} + {/ifhook} + {elsehook rel="email-html.order-confirmation.delivery-address"} + {format_address order_address=$DELIVERY_ADDRESS locale=$locale} + {/elsehook} +
+ {intl l="Billing address:"}
+ {format_address order_address=$INVOICE_ADDRESS locale=$locale} +
+ + {hook name="email-html.order-confirmation.after-address" order=$order_id} + +
+ +

+ {intl l="Order Total:"} {format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}
+ {intl l="Order Number:"} {$REF}
+ {intl l="Paid With:"} {loop name="payment-module" type="module" id=$PAYMENT_MODULE}{$TITLE}{/loop}
+ {intl l="Purchase Date:"} {format_date date=$CREATE_DATE output="datetime"}
+ {intl l="Delivery method:"} {loop name="delivery-module" type="module" id=$DELIVERY_MODULE}{$TITLE}{/loop}
+

+ + {hook name="email-html.order-confirmation.before-products" order=$order_id} + + + + + + + {$subtotal = 0} + {loop type="order_product" name="order-products" order=$ID} + {if $WAS_IN_PROMO == 1} + {assign "realPrice" $PROMO_PRICE} + {assign "realTax" $PROMO_PRICE_TAX} + {assign "realTaxedPrice" $TAXED_PROMO_PRICE} + {else} + {assign "realPrice" $PRICE} + {assign "realTax" $PRICE_TAX} + {assign "realTaxedPrice" $TAXED_PRICE} + {/if} + + + + + + {hook name="email-html.order-confirmation.order-product" order="{$order_id}" order_product="{$ID}"} + + {/loop} + + + + + {if $DISCOUNT > 0} + + + + + + + + + {/if} + + + + + + + + +
{intl l="What You Purchased"}{intl l="Price in"} {$orderCurrencyIsoCode}
+ {$TITLE} ({$REF}{if $REF != $PRODUCT_SALE_ELEMENTS_REF}, {$PRODUCT_SALE_ELEMENTS_REF}{/if}) + {ifloop rel="combinations"}
+ {loop type="order_product_attribute_combination" name="combinations" order_product=$ID} + * {$ATTRIBUTE_TITLE}: {$ATTRIBUTE_AVAILABILITY_TITLE} + {/loop} + {/ifloop} + {hook name="email-html.order-confirmation.product-list" order=$order_id order_product=$ID} +
+ {$QUANTITY} x {format_money number=$realTaxedPrice currency_id=$CURRENCY} + {$subtotal = $subtotal + $realTaxedPrice * $QUANTITY} +
{intl l="Subtotal"}{format_money number=$subtotal currency_id=$CURRENCY}
{intl l="Discount"}{format_money number=$DISCOUNT currency_id=$CURRENCY}
{intl l="Total"}{format_money number={$TOTAL_TAXED_AMOUNT - $POSTAGE} currency_id=$CURRENCY}
{intl l="Shipping:"}{format_money number=$POSTAGE currency_id=$CURRENCY}
{intl l="Order Total"}{format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}
+ {/loop} + + {hook name="email-html.order-confirmation.after-products" order=$order_id} + +
+ + {ifhook rel="email-html.order-confirmation.footer"} + {hook name="email-html.order-confirmation.footer" order=$order_id} + {/ifhook} + {elsehook rel="email-html.order-confirmation.footer"} +

{intl l="View this order in your account at %shop_name" shop_name={config key="store_name"}}

+ +
+ +

{intl l="Support"}

+ {intl l='For any questions, or concerns, feel free to contact %mail.' mail={config key="store_email"}}

+ {intl l="Our contact us at:"}
+ {config key="store_name"}
+ {config key="store_address1"}
+ {config key="store_zipcode"}, {config key="store_city"}
+ {if {config key="store_country"}} + {loop type="country" name="store_country" id={config key="store_country"}} + {$TITLE} + {/loop} + {/if} +
+
+ {intl l="Thanks"}
+ {/elsehook} +{/block} diff --git a/templates/email/aomc/order_confirmation.txt b/templates/email/aomc/order_confirmation.txt new file mode 100644 index 00000000..078de9f2 --- /dev/null +++ b/templates/email/aomc/order_confirmation.txt @@ -0,0 +1,54 @@ +{default_translation_domain domain='email.aomc'} +{loop name="order.invoice" type="order" id=$order_id customer="*"} +{intl l="Hello,"} + +{intl l="Here is the details of your order %ref placed on %date" ref={$REF} date={format_date date=$INVOICE_DATE}} +{hook name="email-txt.order-confirmation.before-address" order=$order_id} + +{intl l="Your delivery address"} +{ifhook rel="email-txt.order-confirmation.delivery-address"} +{hook name="email-txt.order-confirmation.delivery-address" module={$DELIVERY_MODULE} order=$order_id} +{/ifhook} +{elsehook rel="email-txt.order-confirmation.delivery-address"} +{format_address order_address=$DELIVERY_ADDRESS locale=$locale html="0"} +{/elsehook} + +{intl l="Your billing address"} +{format_address order_address=$INVOICE_ADDRESS locale=$locale html="0"} + +{hook name="email-txt.order-confirmation.after-address" order=$order_id} + +{intl l="Items ordered:"} +{hook name="email-txt.order-confirmation.before-products" order=$order_id} +{loop type="order_product" name="order-products" order=$ID} +{strip} +{if $WAS_IN_PROMO == 1} + {assign "realPrice" $PROMO_PRICE} + {assign "realTax" $PROMO_PRICE_TAX} + {assign "realTaxedPrice" $TAXED_PROMO_PRICE} +{else} + {assign "realPrice" $PRICE} + {assign "realTax" $PRICE_TAX} + {assign "realTaxedPrice" $TAXED_PRICE} +{/if} +{/strip} + {intl l="Item : %item" item=$TITLE} +{ifloop rel="combinations"} + {loop type="order_product_attribute_combination" name="combinations" order_product=$ID} + - {$ATTRIBUTE_TITLE} - {$ATTRIBUTE_AVAILABILITY_TITLE} + {/loop} +{/ifloop} +{hook name="email-txt.order-confirmation.product-list" order=$order_id order_product=$ID} + {intl l="Quantity : %qty" qty=$QUANTITY} + {intl l="Unit price : %amount" amount={format_money number=$realTaxedPrice currency_id=$CURRENCY}} + {hook name="email-txt.order-confirmation.order-product" order="{$order_id}" order_product="{$ID}"} +{/loop} +----------------------------------------- +{intl l="Items total : %amount" amount={format_money number={$TOTAL_TAXED_AMOUNT - $POSTAGE} currency_id=$CURRENCY}} +{intl l="Shipping : %amount" amount={format_money number=$POSTAGE currency_id=$CURRENCY}} +{intl l="Total due : %amount" amount={format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}} +================================== +{hook name="email-txt.order-confirmation.after-products" order=$order_id} + +{intl l="Your invoice is available in your customer account at %url" url={config key="url_site"}} +{/loop} \ No newline at end of file diff --git a/templates/email/aomc/order_notification.html b/templates/email/aomc/order_notification.html new file mode 100644 index 00000000..ddb7d97b --- /dev/null +++ b/templates/email/aomc/order_notification.html @@ -0,0 +1,129 @@ +{extends file="email-layout.tpl"} + +{* Do not provide a "Open in browser" link *} +{block name="browser"}{/block} +{* No big image header *} +{block name="image-header"}{/block} +{* No logo header *} +{block name="logo-header"}{/block} +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l="New order placed on %store_name Nº %ref" ref={$order_ref} store_name={config key="store_name"}}{/block} + +{* Title *} +{block name="email-title"}{intl l="Hello, a new order has been placed."}{/block} + +{* Content *} +{block name="email-content"} + {loop name="order.invoice" type="order" id=$order_id customer="*"} + {loop name="currency.order" type="currency" id=$CURRENCY} + {assign var="orderCurrencyIsoCode" value=$ISOCODE} + {/loop} + + {loop type="customer" name="customer.invoice" id=$CUSTOMER current="0"} + {assign var="customerRef" value=$REF} + {/loop} + +

{intl l="View this order in your shop back-office."}

+ + {hook name="email-html.order-notification.before-address" order=$order_id} + + + + + + +
+ {intl l="Customer delivery address:"}
+ {ifhook rel="email-html.order-notification.delivery-address"} + {* delivery module can customize the delivery address *} + {hook name="email-html.order-notification.delivery-address" module={$DELIVERY_MODULE} order=$order_id} + {/ifhook} + {elsehook rel="email-html.order-notification.delivery-address"} + {format_address order_address=$DELIVERY_ADDRESS locale=$locale} + {/elsehook} +
+ {intl l="Customer billing address:"}
+ {format_address order_address=$INVOICE_ADDRESS locale=$locale} +
+ + {hook name="email-html.order-notification.after-address" order=$order_id} + +

+ {intl l="Order Total:"} {format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}
+ {intl l="Order Number:"} {$REF}
+ {intl l="Paid With:"} {loop name="payment-module" type="module" id=$PAYMENT_MODULE}{$TITLE}{/loop}
+ {intl l="Purchase Date:"} {format_date date=$CREATE_DATE output="datetime"}
+ {intl l="Delivery method:"} {loop name="delivery-module" type="module" id=$DELIVERY_MODULE}{$TITLE}{/loop}
+

+ + {hook name="email-html.order-notification.before-products" order=$order_id} + + + + + + + {$subtotal = 0} + {loop type="order_product" name="order-products" order=$ID} + {if $WAS_IN_PROMO == 1} + {assign "realPrice" $PROMO_PRICE} + {assign "realTax" $PROMO_PRICE_TAX} + {assign "realTaxedPrice" $TAXED_PROMO_PRICE} + {else} + {assign "realPrice" $PRICE} + {assign "realTax" $PRICE_TAX} + {assign "realTaxedPrice" $TAXED_PRICE} + {/if} + + + + + + {hook name="email-html.order-notification.order-product" order={$order_id} order_product={$ID}} + + {/loop} + + + + + {if $DISCOUNT > 0} + + + + + + + + + {/if} + + + + + + + + + +
{intl l="What You Purchased"}{intl l="Price in"} {$orderCurrencyIsoCode}
+ {$TITLE} ({$REF}{if $REF != $PRODUCT_SALE_ELEMENTS_REF}, {$PRODUCT_SALE_ELEMENTS_REF}{/if}) + {ifloop rel="combinations"}
+ {loop type="order_product_attribute_combination" name="combinations" order_product=$ID} + * {$ATTRIBUTE_TITLE}: {$ATTRIBUTE_AVAILABILITY_TITLE} + {/loop} + {/ifloop} +
+ {$QUANTITY} x {format_money number=$realTaxedPrice currency_id=$CURRENCY} + {$subtotal = $subtotal + $realTaxedPrice * $QUANTITY} +
{intl l="Subtotal"}{format_money number=$subtotal currency_id=$CURRENCY}
{intl l="Discount"}{format_money number=$DISCOUNT currency_id=$CURRENCY}
{intl l="Total"}{format_money number={$TOTAL_TAXED_AMOUNT - $POSTAGE} currency_id=$CURRENCY}
{intl l="Shipping:"}{format_money number=$POSTAGE currency_id=$CURRENCY}
{intl l="Order Total"}{format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}
+ {/loop} + + {hook name="email-html.order-notification.after-products" order=$order_id} + +
+ + {intl l="Have a nice day."}
+{/block} diff --git a/templates/email/aomc/order_notification.txt b/templates/email/aomc/order_notification.txt new file mode 100644 index 00000000..3f10d75b --- /dev/null +++ b/templates/email/aomc/order_notification.txt @@ -0,0 +1,52 @@ +{default_translation_domain domain='email.aomc'} +{loop name="order.invoice" type="order" id=$order_id customer="*"} +{intl l="Hello"} + +{intl l="A new order ref. %ref has been placed on %date. Here are the details :" ref={$REF} date={format_date date=$INVOICE_DATE}} +{hook name="email-txt.order-notification.before-address" order=$order_id} + +{intl l="* Delivery address"} +{ifhook rel="email-txt.order-notification.delivery-address"} +{hook name="email-txt.order-notification.delivery-address" module={$DELIVERY_MODULE} order=$order_id} +{/ifhook} +{elsehook rel="email-txt.order-notification.delivery-address"} +{format_address order_address=$DELIVERY_ADDRESS locale=$locale html="0"} +{/elsehook} + +{intl l="* Billing address"} +{format_address order_address=$INVOICE_ADDRESS locale=$locale html="0"} + +{hook name="email-txt.order-notification.after-address" order=$order_id} + +{intl l="* Items ordered:"} +{hook name="email-txt.order-notification.before-products" order=$order_id} +{loop type="order_product" name="order-products" order=$ID} +{strip} +{if $WAS_IN_PROMO == 1} + {assign "realPrice" $PROMO_PRICE} + {assign "realTax" $PROMO_PRICE_TAX} + {assign "realTaxedPrice" $TAXED_PROMO_PRICE} +{else} + {assign "realPrice" $PRICE} + {assign "realTax" $PRICE_TAX} + {assign "realTaxedPrice" $TAXED_PRICE} +{/if} +{/strip} + {intl l="Item : %item" item=$TITLE} +{ifloop rel="combinations"} + {loop type="order_product_attribute_combination" name="combinations" order_product=$ID} + - {$ATTRIBUTE_TITLE} - {$ATTRIBUTE_AVAILABILITY_TITLE} + {/loop} +{/ifloop} + {intl l="Quantity : %qty" qty=$QUANTITY} + {intl l="Unit price : %amount" amount={format_money number=$realTaxedPrice currency_id=$CURRENCY}} + {hook name="email-txt.order-notification.order-product" order="{$order_id}" order_product="{$ID}"} +{/loop} +----------------------------------------- +{intl l="Items total : %amount" amount={format_money number={$TOTAL_TAXED_AMOUNT - $POSTAGE} currency_id=$CURRENCY}} +{intl l="Shipping : %amount" amount={format_money number=$POSTAGE currency_id=$CURRENCY}} +{intl l="Total due : %amount" amount={format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY}} +{hook name="email-txt.order-notification.after-products" order=$order_id} + +{intl l="Have a nice day."} +{/loop} diff --git a/templates/email/aomc/password.html b/templates/email/aomc/password.html new file mode 100644 index 00000000..4f41ad67 --- /dev/null +++ b/templates/email/aomc/password.html @@ -0,0 +1,26 @@ +{extends file="email-layout.tpl"} + +{* Open in browser *} +{block name="browser"}{/block} + +{* No big image header *} +{block name="image-header"}{/block} + +{* No pre-header *} +{block name="pre-header"}{/block} + +{* Subject *} +{block name="email-subject"}{intl l="Your password for %store" store={config key="store_name"}}{/block} + +{* Title *} +{block name="email-title"}{/block} + +{* Content *} +{block name="email-content"} + {intl l="Hello,"}

+ {intl l="You have requested a new password for your account at %store_name" store_name={config key="store_name"}}.

+ {intl l="Your new password is %pass" pass={$password}}

+ {intl l='You can change your password in your user account by opening the "Change my password" link under your personal information'}.

+ {intl l='Kind regards'},
+ {intl l="The %store team." store={config key="store_name"}} +{/block} diff --git a/templates/email/aomc/password.txt b/templates/email/aomc/password.txt new file mode 100644 index 00000000..4b205c1e --- /dev/null +++ b/templates/email/aomc/password.txt @@ -0,0 +1,12 @@ +{default_translation_domain domain='email.aomc'} +{intl l="Hello,"} + +{intl l="You have requested a new password for your account at %store_name" store_name={config key="store_name"}}. + +{intl l="Your new password is %pass" pass=$password} + +{intl l='You can change your password in your user account by opening the "Change my password" link under your personal information'}. + +{intl l='Kind regards'}, +{intl l="The %store team." store={config key="store_name"}} + diff --git a/templates/email/aomc/template.xml b/templates/email/aomc/template.xml new file mode 100644 index 00000000..c1fef006 --- /dev/null +++ b/templates/email/aomc/template.xml @@ -0,0 +1,43 @@ + + diff --git a/templates/frontOffice/aomc/ajax/order-delivery-module-list.html b/templates/frontOffice/aomc/ajax/order-delivery-module-list.html index 7b5056ad..fddb6dc8 100644 --- a/templates/frontOffice/aomc/ajax/order-delivery-module-list.html +++ b/templates/frontOffice/aomc/ajax/order-delivery-module-list.html @@ -1,5 +1,5 @@ {* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} -{default_translation_domain domain='fo.default'} +{default_translation_domain domain='fo.aomc'} {form name="thelia.order.delivery"} diff --git a/templates/frontOffice/aomc/includes/addedToCart.html b/templates/frontOffice/aomc/includes/addedToCart.html index d677ec1d..d8731a09 100644 --- a/templates/frontOffice/aomc/includes/addedToCart.html +++ b/templates/frontOffice/aomc/includes/addedToCart.html @@ -1,7 +1,7 @@ {* This page should not replace the current previous URL *} {set_previous_url ignore_current="1"} -{default_translation_domain domain='fo.default'} +{default_translation_domain domain='fo.aomc'} {loop type="product" name="add_product_to_cart" id={product attr="id"}}
diff --git a/templates/frontOffice/aomc/layout.tpl b/templates/frontOffice/aomc/layout.tpl index 4fa8b3c9..5f2c8c4e 100644 --- a/templates/frontOffice/aomc/layout.tpl +++ b/templates/frontOffice/aomc/layout.tpl @@ -20,7 +20,7 @@ GNU General Public License : http://www.gnu.org/licenses/ {* Declare assets directory, relative to template base directory *} {declare_assets directory='assets/dist'} {* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} -{default_translation_domain domain='fo.default'} +{default_translation_domain domain='fo.aomc'} {* -- Define some stuff for Smarty ------------------------------------------ *} {config_load file='variables.conf'} diff --git a/web/assets/backOffice/default/MondialRelay/mondialrelay/assets/img/4c1ceb5.png b/web/assets/backOffice/default/MondialRelay/mondialrelay/assets/img/4c1ceb5.png deleted file mode 100644 index 9322ffd6..00000000 Binary files a/web/assets/backOffice/default/MondialRelay/mondialrelay/assets/img/4c1ceb5.png and /dev/null differ diff --git a/web/assets/backOffice/default/MondialRelay/mondialrelay/assets/js/57d9d69.js b/web/assets/backOffice/default/MondialRelay/mondialrelay/assets/js/57d9d69.js deleted file mode 100644 index 01e7f309..00000000 --- a/web/assets/backOffice/default/MondialRelay/mondialrelay/assets/js/57d9d69.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){function s(s){var e=!1;return t('[data-notify="container"]').each(function(i,n){var a=t(n),o=a.find('[data-notify="title"]').text().trim(),r=a.find('[data-notify="message"]').html().trim(),l=o===t("
"+s.settings.content.title+"
").html().trim(),d=r===t("
"+s.settings.content.message+"
").html().trim(),g=a.hasClass("alert-"+s.settings.type);return l&&d&&g&&(e=!0),!e}),e}function e(e,n,a){var o={content:{message:"object"==typeof n?n.message:n,title:n.title?n.title:"",icon:n.icon?n.icon:"",url:n.url?n.url:"#",target:n.target?n.target:"-"}};a=t.extend(!0,{},o,a),this.settings=t.extend(!0,{},i,a),this._defaults=i,"-"===this.settings.content.target&&(this.settings.content.target=this.settings.url_target),this.animations={start:"webkitAnimationStart oanimationstart MSAnimationStart animationstart",end:"webkitAnimationEnd oanimationend MSAnimationEnd animationend"},"number"==typeof this.settings.offset&&(this.settings.offset={x:this.settings.offset,y:this.settings.offset}),(this.settings.allow_duplicates||!this.settings.allow_duplicates&&!s(this))&&this.init()}var i={element:"body",position:null,type:"info",allow_dismiss:!0,allow_duplicates:!0,newest_on_top:!1,showProgressbar:!1,placement:{from:"top",align:"right"},offset:20,spacing:10,z_index:1031,delay:5e3,timer:1e3,url_target:"_blank",mouse_over:null,animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onClose:null,onClosed:null,icon_type:"class",template:''};String.format=function(){for(var t=arguments[0],s=1;s .progress-bar').removeClass("progress-bar-"+t.settings.type),t.settings.type=i[n],this.$ele.addClass("alert-"+i[n]).find('[data-notify="progressbar"] > .progress-bar').addClass("progress-bar-"+i[n]);break;case"icon":var a=this.$ele.find('[data-notify="icon"]');"class"===t.settings.icon_type.toLowerCase()?a.removeClass(t.settings.content.icon).addClass(i[n]):(a.is("img")||a.find("img"),a.attr("src",i[n]));break;case"progress":var o=t.settings.delay-t.settings.delay*(i[n]/100);this.$ele.data("notify-delay",o),this.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",i[n]).css("width",i[n]+"%");break;case"url":this.$ele.find('[data-notify="url"]').attr("href",i[n]);break;case"target":this.$ele.find('[data-notify="url"]').attr("target",i[n]);break;default:this.$ele.find('[data-notify="'+n+'"]').html(i[n])}var r=this.$ele.outerHeight()+parseInt(t.settings.spacing)+parseInt(t.settings.offset.y);t.reposition(r)},close:function(){t.close()}}},buildNotify:function(){var s=this.settings.content;this.$ele=t(String.format(this.settings.template,this.settings.type,s.title,s.message,s.url,s.target)),this.$ele.attr("data-notify-position",this.settings.placement.from+"-"+this.settings.placement.align),this.settings.allow_dismiss||this.$ele.find('[data-notify="dismiss"]').css("display","none"),(this.settings.delay<=0&&!this.settings.showProgressbar||!this.settings.showProgressbar)&&this.$ele.find('[data-notify="progressbar"]').remove()},setIcon:function(){"class"===this.settings.icon_type.toLowerCase()?this.$ele.find('[data-notify="icon"]').addClass(this.settings.content.icon):this.$ele.find('[data-notify="icon"]').is("img")?this.$ele.find('[data-notify="icon"]').attr("src",this.settings.content.icon):this.$ele.find('[data-notify="icon"]').append('Notify Icon')},styleDismiss:function(){this.$ele.find('[data-notify="dismiss"]').css({position:"absolute",right:"10px",top:"5px",zIndex:this.settings.z_index+2})},styleURL:function(){this.$ele.find('[data-notify="url"]').css({backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)",height:"100%",left:0,position:"absolute",top:0,width:"100%",zIndex:this.settings.z_index+1})},placement:function(){var s=this,e=this.settings.offset.y,i={display:"inline-block",margin:"0px auto",position:this.settings.position?this.settings.position:"body"===this.settings.element?"fixed":"absolute",transition:"all .5s ease-in-out",zIndex:this.settings.z_index},n=!1,a=this.settings;switch(t('[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])').each(function(){e=Math.max(e,parseInt(t(this).css(a.placement.from))+parseInt(t(this).outerHeight())+parseInt(a.spacing))}),this.settings.newest_on_top===!0&&(e=this.settings.offset.y),i[this.settings.placement.from]=e+"px",this.settings.placement.align){case"left":case"right":i[this.settings.placement.align]=this.settings.offset.x+"px";break;case"center":i.left=0,i.right=0}this.$ele.css(i).addClass(this.settings.animate.enter),t.each(Array("webkit-","moz-","o-","ms-",""),function(t,e){s.$ele[0].style[e+"AnimationIterationCount"]=1}),t(this.settings.element).append(this.$ele),this.settings.newest_on_top===!0&&(e=parseInt(e)+parseInt(this.settings.spacing)+this.$ele.outerHeight(),this.reposition(e)),t.isFunction(s.settings.onShow)&&s.settings.onShow.call(this.$ele),this.$ele.one(this.animations.start,function(){n=!0}).one(this.animations.end,function(){s.$ele.removeClass(s.settings.animate.enter),t.isFunction(s.settings.onShown)&&s.settings.onShown.call(this)}),setTimeout(function(){n||t.isFunction(s.settings.onShown)&&s.settings.onShown.call(this)},600)},bind:function(){var s=this;if(this.$ele.find('[data-notify="dismiss"]').on("click",function(){s.close()}),this.$ele.mouseover(function(){t(this).data("data-hover","true")}).mouseout(function(){t(this).data("data-hover","false")}),this.$ele.data("data-hover","false"),this.settings.delay>0){s.$ele.data("notify-delay",s.settings.delay);var e=setInterval(function(){var t=parseInt(s.$ele.data("notify-delay"))-s.settings.timer;if("false"===s.$ele.data("data-hover")&&"pause"===s.settings.mouse_over||"pause"!=s.settings.mouse_over){var i=(s.settings.delay-t)/s.settings.delay*100;s.$ele.data("notify-delay",t),s.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",i).css("width",i+"%")}t<=-s.settings.timer&&(clearInterval(e),s.close())},s.settings.timer)}},close:function(){var s=this,e=parseInt(this.$ele.css(this.settings.placement.from)),i=!1;this.$ele.attr("data-closing","true").addClass(this.settings.animate.exit),s.reposition(e),t.isFunction(s.settings.onClose)&&s.settings.onClose.call(this.$ele),this.$ele.one(this.animations.start,function(){i=!0}).one(this.animations.end,function(){t(this).remove(),t.isFunction(s.settings.onClosed)&&s.settings.onClosed.call(this)}),setTimeout(function(){i||(s.$ele.remove(),s.settings.onClosed&&s.settings.onClosed(s.$ele))},600)},reposition:function(s){var e=this,i='[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])',n=this.$ele.nextAll(i);this.settings.newest_on_top===!0&&(n=this.$ele.prevAll(i)),n.each(function(){t(this).css(e.settings.placement.from,s),s=parseInt(s)+parseInt(e.settings.spacing)+t(this).outerHeight()})}}),t.notify=function(t,s){var i=new e(this,t,s);return i.notify},t.notifyDefaults=function(s){return i=t.extend(!0,{},i,s)},t.notifyClose=function(s){"warning"===s&&(s="danger"),"undefined"==typeof s||"all"===s?t("[data-notify]").find('[data-notify="dismiss"]').trigger("click"):"success"===s||"info"===s||"warning"===s||"danger"===s?t(".alert-"+s+"[data-notify]").find('[data-notify="dismiss"]').trigger("click"):s?t(s+"[data-notify]").find('[data-notify="dismiss"]').trigger("click"):t('[data-notify-position="'+s+'"]').find('[data-notify="dismiss"]').trigger("click")},t.notifyCloseExcept=function(s){"warning"===s&&(s="danger"),"success"===s||"info"===s||"warning"===s||"danger"===s?t("[data-notify]").not(".alert-"+s).find('[data-notify="dismiss"]').trigger("click"):t("[data-notify]").not(s).find('[data-notify="dismiss"]').trigger("click")}}); \ No newline at end of file diff --git a/web/assets/backOffice/default/PayPal/assets/1fb2500.png b/web/assets/backOffice/default/PayPal/assets/1fb2500.png deleted file mode 100644 index e39588ed..00000000 Binary files a/web/assets/backOffice/default/PayPal/assets/1fb2500.png and /dev/null differ diff --git a/web/assets/backOffice/default/PayPal/assets/71dbb05.png b/web/assets/backOffice/default/PayPal/assets/71dbb05.png deleted file mode 100644 index e7546deb..00000000 Binary files a/web/assets/backOffice/default/PayPal/assets/71dbb05.png and /dev/null differ diff --git a/web/assets/backOffice/default/PayPal/assets/a15af4a.png b/web/assets/backOffice/default/PayPal/assets/a15af4a.png deleted file mode 100644 index 7904991f..00000000 Binary files a/web/assets/backOffice/default/PayPal/assets/a15af4a.png and /dev/null differ diff --git a/web/assets/backOffice/default/PayPal/assets/e522c4d.png b/web/assets/backOffice/default/PayPal/assets/e522c4d.png deleted file mode 100644 index 47dad7a1..00000000 Binary files a/web/assets/backOffice/default/PayPal/assets/e522c4d.png and /dev/null differ diff --git a/web/assets/backOffice/default/template-assets/assets/js/4f20017.js b/web/assets/backOffice/default/template-assets/assets/js/4f20017.js deleted file mode 100644 index 3e68289a..00000000 --- a/web/assets/backOffice/default/template-assets/assets/js/4f20017.js +++ /dev/null @@ -1,1758 +0,0 @@ -;(function(){ - - /** - * Require the given path. - * - * @param {String} path - * @return {Object} exports - * @api public - */ - - function require(path, parent, orig) { - var resolved = require.resolve(path); - - // lookup failed - if (null == resolved) { - orig = orig || path; - parent = parent || 'root'; - var err = new Error('Failed to require "' + orig + '" from "' + parent + '"'); - err.path = orig; - err.parent = parent; - err.require = true; - throw err; - } - - var module = require.modules[resolved]; - - // perform real require() - // by invoking the module's - // registered function - if (!module.exports) { - module.exports = {}; - module.client = module.component = true; - module.call(this, module.exports, require.relative(resolved), module); - } - - return module.exports; - } - - /** - * Registered modules. - */ - - require.modules = {}; - - /** - * Registered aliases. - */ - - require.aliases = {}; - - /** - * Resolve `path`. - * - * Lookup: - * - * - PATH/index.js - * - PATH.js - * - PATH - * - * @param {String} path - * @return {String} path or null - * @api private - */ - - require.resolve = function(path) { - if (path.charAt(0) === '/') path = path.slice(1); - - var paths = [ - path, - path + '.js', - path + '.json', - path + '/index.js', - path + '/index.json' - ]; - - for (var i = 0; i < paths.length; i++) { - var path = paths[i]; - if (require.modules.hasOwnProperty(path)) return path; - if (require.aliases.hasOwnProperty(path)) return require.aliases[path]; - } - }; - - /** - * Normalize `path` relative to the current path. - * - * @param {String} curr - * @param {String} path - * @return {String} - * @api private - */ - - require.normalize = function(curr, path) { - var segs = []; - - if ('.' != path.charAt(0)) return path; - - curr = curr.split('/'); - path = path.split('/'); - - for (var i = 0; i < path.length; ++i) { - if ('..' == path[i]) { - curr.pop(); - } else if ('.' != path[i] && '' != path[i]) { - segs.push(path[i]); - } - } - - return curr.concat(segs).join('/'); - }; - - /** - * Register module at `path` with callback `definition`. - * - * @param {String} path - * @param {Function} definition - * @api private - */ - - require.register = function(path, definition) { - require.modules[path] = definition; - }; - - /** - * Alias a module definition. - * - * @param {String} from - * @param {String} to - * @api private - */ - - require.alias = function(from, to) { - if (!require.modules.hasOwnProperty(from)) { - throw new Error('Failed to alias "' + from + '", it does not exist'); - } - require.aliases[to] = from; - }; - - /** - * Return a require function relative to the `parent` path. - * - * @param {String} parent - * @return {Function} - * @api private - */ - - require.relative = function(parent) { - var p = require.normalize(parent, '..'); - - /** - * lastIndexOf helper. - */ - - function lastIndexOf(arr, obj) { - var i = arr.length; - while (i--) { - if (arr[i] === obj) return i; - } - return -1; - } - - /** - * The relative require() itself. - */ - - function localRequire(path) { - var resolved = localRequire.resolve(path); - return require(resolved, parent, path); - } - - /** - * Resolve relative to the parent. - */ - - localRequire.resolve = function(path) { - var c = path.charAt(0); - if ('/' == c) return path.slice(1); - if ('.' == c) return require.normalize(p, path); - - // resolve deps by returning - // the dep in the nearest "deps" - // directory - var segs = parent.split('/'); - var i = lastIndexOf(segs, 'deps') + 1; - if (!i) i = 0; - path = segs.slice(0, i + 1).join('/') + '/deps/' + path; - return path; - }; - - /** - * Check if module is defined at `path`. - */ - - localRequire.exists = function(path) { - return require.modules.hasOwnProperty(localRequire.resolve(path)); - }; - - return localRequire; - }; - require.register("component-emitter/index.js", function(exports, require, module){ - - /** - * Expose `Emitter`. - */ - - module.exports = Emitter; - - /** - * Initialize a new `Emitter`. - * - * @api public - */ - - function Emitter(obj) { - if (obj) return mixin(obj); - }; - - /** - * Mixin the emitter properties. - * - * @param {Object} obj - * @return {Object} - * @api private - */ - - function mixin(obj) { - for (var key in Emitter.prototype) { - obj[key] = Emitter.prototype[key]; - } - return obj; - } - - /** - * Listen on the given `event` with `fn`. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - - Emitter.prototype.on = function(event, fn){ - this._callbacks = this._callbacks || {}; - (this._callbacks[event] = this._callbacks[event] || []) - .push(fn); - return this; - }; - - /** - * Adds an `event` listener that will be invoked a single - * time then automatically removed. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - - Emitter.prototype.once = function(event, fn){ - var self = this; - this._callbacks = this._callbacks || {}; - - function on() { - self.off(event, on); - fn.apply(this, arguments); - } - - fn._off = on; - this.on(event, on); - return this; - }; - - /** - * Remove the given callback for `event` or all - * registered callbacks. - * - * @param {String} event - * @param {Function} fn - * @return {Emitter} - * @api public - */ - - Emitter.prototype.off = - Emitter.prototype.removeListener = - Emitter.prototype.removeAllListeners = function(event, fn){ - this._callbacks = this._callbacks || {}; - var callbacks = this._callbacks[event]; - if (!callbacks) return this; - - // remove all handlers - if (1 == arguments.length) { - delete this._callbacks[event]; - return this; - } - - // remove specific handler - var i = callbacks.indexOf(fn._off || fn); - if (~i) callbacks.splice(i, 1); - return this; - }; - - /** - * Emit `event` with the given args. - * - * @param {String} event - * @param {Mixed} ... - * @return {Emitter} - */ - - Emitter.prototype.emit = function(event){ - this._callbacks = this._callbacks || {}; - var args = [].slice.call(arguments, 1) - , callbacks = this._callbacks[event]; - - if (callbacks) { - callbacks = callbacks.slice(0); - for (var i = 0, len = callbacks.length; i < len; ++i) { - callbacks[i].apply(this, args); - } - } - - return this; - }; - - /** - * Return array of callbacks for `event`. - * - * @param {String} event - * @return {Array} - * @api public - */ - - Emitter.prototype.listeners = function(event){ - this._callbacks = this._callbacks || {}; - return this._callbacks[event] || []; - }; - - /** - * Check if this emitter has `event` handlers. - * - * @param {String} event - * @return {Boolean} - * @api public - */ - - Emitter.prototype.hasListeners = function(event){ - return !! this.listeners(event).length; - }; - - }); - require.register("dropzone/index.js", function(exports, require, module){ - - - /** - * Exposing dropzone - */ - module.exports = require("./lib/dropzone.js"); - - }); - require.register("dropzone/lib/dropzone.js", function(exports, require, module){ - /* - # - # More info at [www.dropzonejs.com](http://www.dropzonejs.com) - # - # Copyright (c) 2012, Matias Meno - # - # 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 the Software without restriction, including without limitation the rights - # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - # copies of the Software, and to permit persons to whom the Software is - # furnished to do so, subject to the following conditions: - # - # The above copyright notice and this permission notice shall be included in - # all copies or substantial portions of the Software. - # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - # THE SOFTWARE. - # - */ - - - (function() { - var Dropzone, Em, camelize, contentLoaded, noop, without, - __hasProp = {}.hasOwnProperty, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - __slice = [].slice; - - Em = typeof Emitter !== "undefined" && Emitter !== null ? Emitter : require("emitter"); - - noop = function() {}; - - Dropzone = (function(_super) { - var extend; - - __extends(Dropzone, _super); - - /* - This is a list of all available events you can register on a dropzone object. - - You can register an event handler like this: - - dropzone.on("dragEnter", function() { }); - */ - - - Dropzone.prototype.events = ["drop", "dragstart", "dragend", "dragenter", "dragover", "dragleave", "selectedfiles", "addedfile", "removedfile", "thumbnail", "error", "errormultiple", "processing", "processingmultiple", "uploadprogress", "totaluploadprogress", "sending", "sendingmultiple", "success", "successmultiple", "canceled", "canceledmultiple", "complete", "completemultiple", "reset", "maxfilesexceeded"]; - - Dropzone.prototype.defaultOptions = { - url: null, - method: "post", - withCredentials: false, - parallelUploads: 2, - uploadMultiple: false, - maxFilesize: 256, - paramName: "file", - createImageThumbnails: true, - maxThumbnailFilesize: 10, - thumbnailWidth: 100, - thumbnailHeight: 100, - maxFiles: null, - params: {}, - clickable: true, - ignoreHiddenFiles: true, - acceptedFiles: null, - acceptedMimeTypes: null, - autoProcessQueue: true, - addRemoveLinks: false, - previewsContainer: null, - dictDefaultMessage: "Drop files here to upload", - dictFallbackMessage: "Your browser does not support drag'n'drop file uploads.", - dictFallbackText: "Please use the fallback form below to upload your files like in the olden days.", - dictFileTooBig: "File is too big ({{filesize}}MB). Max filesize: {{maxFilesize}}MB.", - dictInvalidFileType: "You can't upload files of this type.", - dictResponseError: "Server responded with {{statusCode}} code.", - dictCancelUpload: "Cancel upload", - dictCancelUploadConfirmation: "Are you sure you want to cancel this upload?", - dictRemoveFile: "Remove file", - dictRemoveFileConfirmation: null, - dictMaxFilesExceeded: "You can only upload {{maxFiles}} files.", - accept: function(file, done) { - return done(); - }, - init: function() { - return noop; - }, - forceFallback: false, - fallback: function() { - var child, messageElement, span, _i, _len, _ref; - this.element.className = "" + this.element.className + " dz-browser-not-supported"; - _ref = this.element.getElementsByTagName("div"); - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - child = _ref[_i]; - if (/(^| )dz-message($| )/.test(child.className)) { - messageElement = child; - child.className = "dz-message"; - continue; - } - } - if (!messageElement) { - messageElement = Dropzone.createElement("
"); - this.element.appendChild(messageElement); - } - span = messageElement.getElementsByTagName("span")[0]; - if (span) { - span.textContent = this.options.dictFallbackMessage; - } - return this.element.appendChild(this.getFallbackForm()); - }, - resize: function(file) { - var info, srcRatio, trgRatio; - info = { - srcX: 0, - srcY: 0, - srcWidth: file.width, - srcHeight: file.height - }; - srcRatio = file.width / file.height; - trgRatio = this.options.thumbnailWidth / this.options.thumbnailHeight; - if (file.height < this.options.thumbnailHeight || file.width < this.options.thumbnailWidth) { - info.trgHeight = info.srcHeight; - info.trgWidth = info.srcWidth; - } else { - if (srcRatio > trgRatio) { - info.srcHeight = file.height; - info.srcWidth = info.srcHeight * trgRatio; - } else { - info.srcWidth = file.width; - info.srcHeight = info.srcWidth / trgRatio; - } - } - info.srcX = (file.width - info.srcWidth) / 2; - info.srcY = (file.height - info.srcHeight) / 2; - return info; - }, - /* - Those functions register themselves to the events on init and handle all - the user interface specific stuff. Overwriting them won't break the upload - but can break the way it's displayed. - You can overwrite them if you don't like the default behavior. If you just - want to add an additional event handler, register it on the dropzone object - and don't overwrite those options. - */ - - drop: function(e) { - return this.element.classList.remove("dz-drag-hover"); - }, - dragstart: noop, - dragend: function(e) { - return this.element.classList.remove("dz-drag-hover"); - }, - dragenter: function(e) { - return this.element.classList.add("dz-drag-hover"); - }, - dragover: function(e) { - return this.element.classList.add("dz-drag-hover"); - }, - dragleave: function(e) { - return this.element.classList.remove("dz-drag-hover"); - }, - selectedfiles: function(files) { - if (this.element === this.previewsContainer) { - return this.element.classList.add("dz-started"); - } - }, - reset: function() { - return this.element.classList.remove("dz-started"); - }, - addedfile: function(file) { - var _this = this; - file.previewElement = Dropzone.createElement(this.options.previewTemplate); - file.previewTemplate = file.previewElement; - this.previewsContainer.appendChild(file.previewElement); - file.previewElement.querySelector("[data-dz-name]").textContent = file.name; - file.previewElement.querySelector("[data-dz-size]").innerHTML = this.filesize(file.size); - if (this.options.addRemoveLinks) { - file._removeLink = Dropzone.createElement("" + this.options.dictRemoveFile + ""); - file._removeLink.addEventListener("click", function(e) { - e.preventDefault(); - e.stopPropagation(); - if (file.status === Dropzone.UPLOADING) { - return Dropzone.confirm(_this.options.dictCancelUploadConfirmation, function() { - return _this.removeFile(file); - }); - } else { - if (_this.options.dictRemoveFileConfirmation) { - return Dropzone.confirm(_this.options.dictRemoveFileConfirmation, function() { - return _this.removeFile(file); - }); - } else { - return _this.removeFile(file); - } - } - }); - file.previewElement.appendChild(file._removeLink); - } - return this._updateMaxFilesReachedClass(); - }, - removedfile: function(file) { - var _ref; - if ((_ref = file.previewElement) != null) { - _ref.parentNode.removeChild(file.previewElement); - } - return this._updateMaxFilesReachedClass(); - }, - thumbnail: function(file, dataUrl) { - var thumbnailElement; - file.previewElement.classList.remove("dz-file-preview"); - file.previewElement.classList.add("dz-image-preview"); - thumbnailElement = file.previewElement.querySelector("[data-dz-thumbnail]"); - thumbnailElement.alt = file.name; - return thumbnailElement.src = dataUrl; - }, - error: function(file, message) { - file.previewElement.classList.add("dz-error"); - return file.previewElement.querySelector("[data-dz-errormessage]").textContent = message; - }, - errormultiple: noop, - processing: function(file) { - file.previewElement.classList.add("dz-processing"); - if (file._removeLink) { - return file._removeLink.textContent = this.options.dictCancelUpload; - } - }, - processingmultiple: noop, - uploadprogress: function(file, progress, bytesSent) { - return file.previewElement.querySelector("[data-dz-uploadprogress]").style.width = "" + progress + "%"; - }, - totaluploadprogress: noop, - sending: noop, - sendingmultiple: noop, - success: function(file) { - return file.previewElement.classList.add("dz-success"); - }, - successmultiple: noop, - canceled: function(file) { - return this.emit("error", file, "Upload canceled."); - }, - canceledmultiple: noop, - complete: function(file) { - if (file._removeLink) { - return file._removeLink.textContent = this.options.dictRemoveFile; - } - }, - completemultiple: noop, - maxfilesexceeded: noop, - previewTemplate: "
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
" - }; - - extend = function() { - var key, object, objects, target, val, _i, _len; - target = arguments[0], objects = 2 <= arguments.length ? __slice.call(arguments, 1) : []; - for (_i = 0, _len = objects.length; _i < _len; _i++) { - object = objects[_i]; - for (key in object) { - val = object[key]; - target[key] = val; - } - } - return target; - }; - - function Dropzone(element, options) { - var elementOptions, fallback, _ref; - this.element = element; - this.version = Dropzone.version; - this.defaultOptions.previewTemplate = this.defaultOptions.previewTemplate.replace(/\n*/g, ""); - this.clickableElements = []; - this.listeners = []; - this.files = []; - if (typeof this.element === "string") { - this.element = document.querySelector(this.element); - } - if (!(this.element && (this.element.nodeType != null))) { - throw new Error("Invalid dropzone element."); - } - if (this.element.dropzone) { - throw new Error("Dropzone already attached."); - } - Dropzone.instances.push(this); - element.dropzone = this; - elementOptions = (_ref = Dropzone.optionsForElement(this.element)) != null ? _ref : {}; - this.options = extend({}, this.defaultOptions, elementOptions, options != null ? options : {}); - if (this.options.forceFallback || !Dropzone.isBrowserSupported()) { - return this.options.fallback.call(this); - } - if (this.options.url == null) { - this.options.url = this.element.getAttribute("action"); - } - if (!this.options.url) { - throw new Error("No URL provided."); - } - if (this.options.acceptedFiles && this.options.acceptedMimeTypes) { - throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated."); - } - if (this.options.acceptedMimeTypes) { - this.options.acceptedFiles = this.options.acceptedMimeTypes; - delete this.options.acceptedMimeTypes; - } - this.options.method = this.options.method.toUpperCase(); - if ((fallback = this.getExistingFallback()) && fallback.parentNode) { - fallback.parentNode.removeChild(fallback); - } - if (this.options.previewsContainer) { - this.previewsContainer = Dropzone.getElement(this.options.previewsContainer, "previewsContainer"); - } else { - this.previewsContainer = this.element; - } - if (this.options.clickable) { - if (this.options.clickable === true) { - this.clickableElements = [this.element]; - } else { - this.clickableElements = Dropzone.getElements(this.options.clickable, "clickable"); - } - } - this.init(); - } - - Dropzone.prototype.getAcceptedFiles = function() { - var file, _i, _len, _ref, _results; - _ref = this.files; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - file = _ref[_i]; - if (file.accepted) { - _results.push(file); - } - } - return _results; - }; - - Dropzone.prototype.getRejectedFiles = function() { - var file, _i, _len, _ref, _results; - _ref = this.files; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - file = _ref[_i]; - if (!file.accepted) { - _results.push(file); - } - } - return _results; - }; - - Dropzone.prototype.getQueuedFiles = function() { - var file, _i, _len, _ref, _results; - _ref = this.files; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - file = _ref[_i]; - if (file.status === Dropzone.QUEUED) { - _results.push(file); - } - } - return _results; - }; - - Dropzone.prototype.getUploadingFiles = function() { - var file, _i, _len, _ref, _results; - _ref = this.files; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - file = _ref[_i]; - if (file.status === Dropzone.UPLOADING) { - _results.push(file); - } - } - return _results; - }; - - Dropzone.prototype.init = function() { - var eventName, noPropagation, setupHiddenFileInput, _i, _len, _ref, _ref1, - _this = this; - if (this.element.tagName === "form") { - this.element.setAttribute("enctype", "multipart/form-data"); - } - if (this.element.classList.contains("dropzone") && !this.element.querySelector(".dz-message")) { - this.element.appendChild(Dropzone.createElement("
" + this.options.dictDefaultMessage + "
")); - } - if (this.clickableElements.length) { - setupHiddenFileInput = function() { - if (_this.hiddenFileInput) { - document.body.removeChild(_this.hiddenFileInput); - } - _this.hiddenFileInput = document.createElement("input"); - _this.hiddenFileInput.setAttribute("type", "file"); - _this.hiddenFileInput.setAttribute("multiple", "multiple"); - if (_this.options.acceptedFiles != null) { - _this.hiddenFileInput.setAttribute("accept", _this.options.acceptedFiles); - } - _this.hiddenFileInput.style.visibility = "hidden"; - _this.hiddenFileInput.style.position = "absolute"; - _this.hiddenFileInput.style.top = "0"; - _this.hiddenFileInput.style.left = "0"; - _this.hiddenFileInput.style.height = "0"; - _this.hiddenFileInput.style.width = "0"; - document.body.appendChild(_this.hiddenFileInput); - return _this.hiddenFileInput.addEventListener("change", function() { - var files; - files = _this.hiddenFileInput.files; - if (files.length) { - _this.emit("selectedfiles", files); - _this.handleFiles(files); - } - return setupHiddenFileInput(); - }); - }; - setupHiddenFileInput(); - } - this.URL = (_ref = window.URL) != null ? _ref : window.webkitURL; - _ref1 = this.events; - for (_i = 0, _len = _ref1.length; _i < _len; _i++) { - eventName = _ref1[_i]; - this.on(eventName, this.options[eventName]); - } - this.on("uploadprogress", function() { - return _this.updateTotalUploadProgress(); - }); - this.on("removedfile", function() { - return _this.updateTotalUploadProgress(); - }); - this.on("canceled", function(file) { - return _this.emit("complete", file); - }); - noPropagation = function(e) { - e.stopPropagation(); - if (e.preventDefault) { - return e.preventDefault(); - } else { - return e.returnValue = false; - } - }; - this.listeners = [ - { - element: this.element, - events: { - "dragstart": function(e) { - return _this.emit("dragstart", e); - }, - "dragenter": function(e) { - noPropagation(e); - return _this.emit("dragenter", e); - }, - "dragover": function(e) { - noPropagation(e); - return _this.emit("dragover", e); - }, - "dragleave": function(e) { - return _this.emit("dragleave", e); - }, - "drop": function(e) { - noPropagation(e); - return _this.drop(e); - }, - "dragend": function(e) { - return _this.emit("dragend", e); - } - } - } - ]; - this.clickableElements.forEach(function(clickableElement) { - return _this.listeners.push({ - element: clickableElement, - events: { - "click": function(evt) { - if ((clickableElement !== _this.element) || (evt.target === _this.element || Dropzone.elementInside(evt.target, _this.element.querySelector(".dz-message")))) { - return _this.hiddenFileInput.click(); - } - } - } - }); - }); - this.enable(); - return this.options.init.call(this); - }; - - Dropzone.prototype.destroy = function() { - var _ref; - this.disable(); - this.removeAllFiles(true); - if ((_ref = this.hiddenFileInput) != null ? _ref.parentNode : void 0) { - this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput); - this.hiddenFileInput = null; - } - return delete this.element.dropzone; - }; - - Dropzone.prototype.updateTotalUploadProgress = function() { - var acceptedFiles, file, totalBytes, totalBytesSent, totalUploadProgress, _i, _len, _ref; - totalBytesSent = 0; - totalBytes = 0; - acceptedFiles = this.getAcceptedFiles(); - if (acceptedFiles.length) { - _ref = this.getAcceptedFiles(); - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - file = _ref[_i]; - totalBytesSent += file.upload.bytesSent; - totalBytes += file.upload.total; - } - totalUploadProgress = 100 * totalBytesSent / totalBytes; - } else { - totalUploadProgress = 100; - } - return this.emit("totaluploadprogress", totalUploadProgress, totalBytes, totalBytesSent); - }; - - Dropzone.prototype.getFallbackForm = function() { - var existingFallback, fields, fieldsString, form; - if (existingFallback = this.getExistingFallback()) { - return existingFallback; - } - fieldsString = "
"; - if (this.options.dictFallbackText) { - fieldsString += "

" + this.options.dictFallbackText + "

"; - } - fieldsString += "
"; - fields = Dropzone.createElement(fieldsString); - if (this.element.tagName !== "FORM") { - form = Dropzone.createElement("
"); - form.appendChild(fields); - } else { - this.element.setAttribute("enctype", "multipart/form-data"); - this.element.setAttribute("method", this.options.method); - } - return form != null ? form : fields; - }; - - Dropzone.prototype.getExistingFallback = function() { - var fallback, getFallback, tagName, _i, _len, _ref; - getFallback = function(elements) { - var el, _i, _len; - for (_i = 0, _len = elements.length; _i < _len; _i++) { - el = elements[_i]; - if (/(^| )fallback($| )/.test(el.className)) { - return el; - } - } - }; - _ref = ["div", "form"]; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - tagName = _ref[_i]; - if (fallback = getFallback(this.element.getElementsByTagName(tagName))) { - return fallback; - } - } - }; - - Dropzone.prototype.setupEventListeners = function() { - var elementListeners, event, listener, _i, _len, _ref, _results; - _ref = this.listeners; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - elementListeners = _ref[_i]; - _results.push((function() { - var _ref1, _results1; - _ref1 = elementListeners.events; - _results1 = []; - for (event in _ref1) { - listener = _ref1[event]; - _results1.push(elementListeners.element.addEventListener(event, listener, false)); - } - return _results1; - })()); - } - return _results; - }; - - Dropzone.prototype.removeEventListeners = function() { - var elementListeners, event, listener, _i, _len, _ref, _results; - _ref = this.listeners; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - elementListeners = _ref[_i]; - _results.push((function() { - var _ref1, _results1; - _ref1 = elementListeners.events; - _results1 = []; - for (event in _ref1) { - listener = _ref1[event]; - _results1.push(elementListeners.element.removeEventListener(event, listener, false)); - } - return _results1; - })()); - } - return _results; - }; - - Dropzone.prototype.disable = function() { - var file, _i, _len, _ref, _results; - this.clickableElements.forEach(function(element) { - return element.classList.remove("dz-clickable"); - }); - this.removeEventListeners(); - _ref = this.files; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - file = _ref[_i]; - _results.push(this.cancelUpload(file)); - } - return _results; - }; - - Dropzone.prototype.enable = function() { - this.clickableElements.forEach(function(element) { - return element.classList.add("dz-clickable"); - }); - return this.setupEventListeners(); - }; - - Dropzone.prototype.filesize = function(size) { - var string; - if (size >= 100000000000) { - size = size / 100000000000; - string = "TB"; - } else if (size >= 100000000) { - size = size / 100000000; - string = "GB"; - } else if (size >= 100000) { - size = size / 100000; - string = "MB"; - } else if (size >= 100) { - size = size / 100; - string = "KB"; - } else { - size = size * 10; - string = "b"; - } - return "" + (Math.round(size) / 10) + " " + string; - }; - - Dropzone.prototype._updateMaxFilesReachedClass = function() { - if (this.options.maxFiles && this.getAcceptedFiles().length >= this.options.maxFiles) { - return this.element.classList.add("dz-max-files-reached"); - } else { - return this.element.classList.remove("dz-max-files-reached"); - } - }; - - Dropzone.prototype.drop = function(e) { - var files, items; - if (!e.dataTransfer) { - return; - } - this.emit("drop", e); - files = e.dataTransfer.files; - this.emit("selectedfiles", files); - if (files.length) { - items = e.dataTransfer.items; - if (items && items.length && ((items[0].webkitGetAsEntry != null) || (items[0].getAsEntry != null))) { - this.handleItems(items); - } else { - this.handleFiles(files); - } - } - }; - - Dropzone.prototype.handleFiles = function(files) { - var file, _i, _len, _results; - _results = []; - for (_i = 0, _len = files.length; _i < _len; _i++) { - file = files[_i]; - _results.push(this.addFile(file)); - } - return _results; - }; - - Dropzone.prototype.handleItems = function(items) { - var entry, item, _i, _len; - for (_i = 0, _len = items.length; _i < _len; _i++) { - item = items[_i]; - if (item.webkitGetAsEntry != null) { - entry = item.webkitGetAsEntry(); - if (entry.isFile) { - this.addFile(item.getAsFile()); - } else if (entry.isDirectory) { - this.addDirectory(entry, entry.name); - } - } else { - this.addFile(item.getAsFile()); - } - } - }; - - Dropzone.prototype.accept = function(file, done) { - if (file.size > this.options.maxFilesize * 1024 * 1024) { - return done(this.options.dictFileTooBig.replace("{{filesize}}", Math.round(file.size / 1024 / 10.24) / 100).replace("{{maxFilesize}}", this.options.maxFilesize)); - } else if (!Dropzone.isValidFile(file, this.options.acceptedFiles)) { - return done(this.options.dictInvalidFileType); - } else if (this.options.maxFiles && this.getAcceptedFiles().length >= this.options.maxFiles) { - done(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}", this.options.maxFiles)); - return this.emit("maxfilesexceeded", file); - } else { - return this.options.accept.call(this, file, done); - } - }; - - Dropzone.prototype.addFile = function(file) { - var _this = this; - file.upload = { - progress: 0, - total: file.size, - bytesSent: 0 - }; - this.files.push(file); - file.status = Dropzone.ADDED; - this.emit("addedfile", file); - if (this.options.createImageThumbnails && file.type.match(/image.*/) && file.size <= this.options.maxThumbnailFilesize * 1024 * 1024) { - this.createThumbnail(file); - } - return this.accept(file, function(error) { - if (error) { - file.accepted = false; - return _this._errorProcessing([file], error); - } else { - return _this.enqueueFile(file); - } - }); - }; - - Dropzone.prototype.enqueueFiles = function(files) { - var file, _i, _len; - for (_i = 0, _len = files.length; _i < _len; _i++) { - file = files[_i]; - this.enqueueFile(file); - } - return null; - }; - - Dropzone.prototype.enqueueFile = function(file) { - var _this = this; - file.accepted = true; - if (file.status === Dropzone.ADDED) { - file.status = Dropzone.QUEUED; - if (this.options.autoProcessQueue) { - return setTimeout((function() { - return _this.processQueue(); - }), 1); - } - } else { - throw new Error("This file can't be queued because it has already been processed or was rejected."); - } - }; - - Dropzone.prototype.addDirectory = function(entry, path) { - var dirReader, entriesReader, - _this = this; - dirReader = entry.createReader(); - entriesReader = function(entries) { - var _i, _len; - for (_i = 0, _len = entries.length; _i < _len; _i++) { - entry = entries[_i]; - if (entry.isFile) { - entry.file(function(file) { - if (_this.options.ignoreHiddenFiles && file.name.substring(0, 1) === '.') { - return; - } - file.fullPath = "" + path + "/" + file.name; - return _this.addFile(file); - }); - } else if (entry.isDirectory) { - _this.addDirectory(entry, "" + path + "/" + entry.name); - } - } - }; - return dirReader.readEntries(entriesReader, function(error) { - return typeof console !== "undefined" && console !== null ? typeof console.log === "function" ? console.log(error) : void 0 : void 0; - }); - }; - - Dropzone.prototype.removeFile = function(file) { - if (file.status === Dropzone.UPLOADING) { - this.cancelUpload(file); - } - this.files = without(this.files, file); - this.emit("removedfile", file); - if (this.files.length === 0) { - return this.emit("reset"); - } - }; - - Dropzone.prototype.removeAllFiles = function(cancelIfNecessary) { - var file, _i, _len, _ref; - if (cancelIfNecessary == null) { - cancelIfNecessary = false; - } - _ref = this.files.slice(); - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - file = _ref[_i]; - if (file.status !== Dropzone.UPLOADING || cancelIfNecessary) { - this.removeFile(file); - } - } - return null; - }; - - Dropzone.prototype.createThumbnail = function(file) { - var fileReader, - _this = this; - fileReader = new FileReader; - fileReader.onload = function() { - var img; - img = new Image; - img.onload = function() { - var canvas, ctx, resizeInfo, thumbnail, _ref, _ref1, _ref2, _ref3; - file.width = img.width; - file.height = img.height; - resizeInfo = _this.options.resize.call(_this, file); - if (resizeInfo.trgWidth == null) { - resizeInfo.trgWidth = _this.options.thumbnailWidth; - } - if (resizeInfo.trgHeight == null) { - resizeInfo.trgHeight = _this.options.thumbnailHeight; - } - canvas = document.createElement("canvas"); - ctx = canvas.getContext("2d"); - canvas.width = resizeInfo.trgWidth; - canvas.height = resizeInfo.trgHeight; - ctx.drawImage(img, (_ref = resizeInfo.srcX) != null ? _ref : 0, (_ref1 = resizeInfo.srcY) != null ? _ref1 : 0, resizeInfo.srcWidth, resizeInfo.srcHeight, (_ref2 = resizeInfo.trgX) != null ? _ref2 : 0, (_ref3 = resizeInfo.trgY) != null ? _ref3 : 0, resizeInfo.trgWidth, resizeInfo.trgHeight); - thumbnail = canvas.toDataURL("image/png"); - return _this.emit("thumbnail", file, thumbnail); - }; - return img.src = fileReader.result; - }; - return fileReader.readAsDataURL(file); - }; - - Dropzone.prototype.processQueue = function() { - var i, parallelUploads, processingLength, queuedFiles; - parallelUploads = this.options.parallelUploads; - processingLength = this.getUploadingFiles().length; - i = processingLength; - if (processingLength >= parallelUploads) { - return; - } - queuedFiles = this.getQueuedFiles(); - if (!(queuedFiles.length > 0)) { - return; - } - if (this.options.uploadMultiple) { - return this.processFiles(queuedFiles.slice(0, parallelUploads - processingLength)); - } else { - while (i < parallelUploads) { - if (!queuedFiles.length) { - return; - } - this.processFile(queuedFiles.shift()); - i++; - } - } - }; - - Dropzone.prototype.processFile = function(file) { - return this.processFiles([file]); - }; - - Dropzone.prototype.processFiles = function(files) { - var file, _i, _len; - for (_i = 0, _len = files.length; _i < _len; _i++) { - file = files[_i]; - file.processing = true; - file.status = Dropzone.UPLOADING; - this.emit("processing", file); - } - if (this.options.uploadMultiple) { - this.emit("processingmultiple", files); - } - return this.uploadFiles(files); - }; - - Dropzone.prototype._getFilesWithXhr = function(xhr) { - var file, files; - return files = (function() { - var _i, _len, _ref, _results; - _ref = this.files; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - file = _ref[_i]; - if (file.xhr === xhr) { - _results.push(file); - } - } - return _results; - }).call(this); - }; - - Dropzone.prototype.cancelUpload = function(file) { - var groupedFile, groupedFiles, _i, _j, _len, _len1, _ref; - if (file.status === Dropzone.UPLOADING) { - groupedFiles = this._getFilesWithXhr(file.xhr); - for (_i = 0, _len = groupedFiles.length; _i < _len; _i++) { - groupedFile = groupedFiles[_i]; - groupedFile.status = Dropzone.CANCELED; - } - file.xhr.abort(); - for (_j = 0, _len1 = groupedFiles.length; _j < _len1; _j++) { - groupedFile = groupedFiles[_j]; - this.emit("canceled", groupedFile); - } - if (this.options.uploadMultiple) { - this.emit("canceledmultiple", groupedFiles); - } - } else if ((_ref = file.status) === Dropzone.ADDED || _ref === Dropzone.QUEUED) { - file.status = Dropzone.CANCELED; - this.emit("canceled", file); - if (this.options.uploadMultiple) { - this.emit("canceledmultiple", [file]); - } - } - if (this.options.autoProcessQueue) { - return this.processQueue(); - } - }; - - Dropzone.prototype.uploadFile = function(file) { - return this.uploadFiles([file]); - }; - - Dropzone.prototype.uploadFiles = function(files) { - var file, formData, handleError, headerName, headerValue, headers, input, inputName, inputType, key, progressObj, response, updateProgress, value, xhr, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1, _ref2, _ref3, - _this = this; - xhr = new XMLHttpRequest(); - for (_i = 0, _len = files.length; _i < _len; _i++) { - file = files[_i]; - file.xhr = xhr; - } - xhr.open(this.options.method, this.options.url, true); - xhr.withCredentials = !!this.options.withCredentials; - response = null; - handleError = function() { - var _j, _len1, _results; - _results = []; - for (_j = 0, _len1 = files.length; _j < _len1; _j++) { - file = files[_j]; - _results.push(_this._errorProcessing(files, response || _this.options.dictResponseError.replace("{{statusCode}}", xhr.status), xhr)); - } - return _results; - }; - updateProgress = function(e) { - var allFilesFinished, progress, _j, _k, _l, _len1, _len2, _len3, _results; - if (e != null) { - progress = 100 * e.loaded / e.total; - for (_j = 0, _len1 = files.length; _j < _len1; _j++) { - file = files[_j]; - file.upload = { - progress: progress, - total: e.total, - bytesSent: e.loaded - }; - } - } else { - allFilesFinished = true; - progress = 100; - for (_k = 0, _len2 = files.length; _k < _len2; _k++) { - file = files[_k]; - if (!(file.upload.progress === 100 && file.upload.bytesSent === file.upload.total)) { - allFilesFinished = false; - } - file.upload.progress = progress; - file.upload.bytesSent = file.upload.total; - } - if (allFilesFinished) { - return; - } - } - _results = []; - for (_l = 0, _len3 = files.length; _l < _len3; _l++) { - file = files[_l]; - _results.push(_this.emit("uploadprogress", file, progress, file.upload.bytesSent)); - } - return _results; - }; - xhr.onload = function(e) { - var _ref; - if (files[0].status === Dropzone.CANCELED) { - return; - } - if (xhr.readyState !== 4) { - return; - } - response = xhr.responseText; - if (xhr.getResponseHeader("content-type") && ~xhr.getResponseHeader("content-type").indexOf("application/json")) { - try { - response = JSON.parse(response); - } catch (_error) { - e = _error; - response = "Invalid JSON response from server."; - } - } - updateProgress(); - if (!((200 <= (_ref = xhr.status) && _ref < 300))) { - return handleError(); - } else { - return _this._finished(files, response, e); - } - }; - xhr.onerror = function() { - if (files[0].status === Dropzone.CANCELED) { - return; - } - return handleError(); - }; - progressObj = (_ref = xhr.upload) != null ? _ref : xhr; - progressObj.onprogress = updateProgress; - headers = { - "Accept": "application/json", - "Cache-Control": "no-cache", - "X-Requested-With": "XMLHttpRequest" - }; - if (this.options.headers) { - extend(headers, this.options.headers); - } - for (headerName in headers) { - headerValue = headers[headerName]; - xhr.setRequestHeader(headerName, headerValue); - } - formData = new FormData(); - if (this.options.params) { - _ref1 = this.options.params; - for (key in _ref1) { - value = _ref1[key]; - formData.append(key, value); - } - } - for (_j = 0, _len1 = files.length; _j < _len1; _j++) { - file = files[_j]; - this.emit("sending", file, xhr, formData); - } - if (this.options.uploadMultiple) { - this.emit("sendingmultiple", files, xhr, formData); - } - if (this.element.tagName === "FORM") { - _ref2 = this.element.querySelectorAll("input, textarea, select, button"); - for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) { - input = _ref2[_k]; - inputName = input.getAttribute("name"); - inputType = input.getAttribute("type"); - if (!inputType || ((_ref3 = inputType.toLowerCase()) !== "checkbox" && _ref3 !== "radio") || input.checked) { - formData.append(inputName, input.value); - } - } - } - for (_l = 0, _len3 = files.length; _l < _len3; _l++) { - file = files[_l]; - formData.append("" + this.options.paramName + (this.options.uploadMultiple ? "[]" : ""), file, file.name); - } - return xhr.send(formData); - }; - - Dropzone.prototype._finished = function(files, responseText, e) { - var file, _i, _len; - for (_i = 0, _len = files.length; _i < _len; _i++) { - file = files[_i]; - file.status = Dropzone.SUCCESS; - this.emit("success", file, responseText, e); - this.emit("complete", file); - } - if (this.options.uploadMultiple) { - this.emit("successmultiple", files, responseText, e); - this.emit("completemultiple", files); - } - if (this.options.autoProcessQueue) { - return this.processQueue(); - } - }; - - Dropzone.prototype._errorProcessing = function(files, message, xhr) { - var file, _i, _len; - for (_i = 0, _len = files.length; _i < _len; _i++) { - file = files[_i]; - file.status = Dropzone.ERROR; - this.emit("error", file, message, xhr); - this.emit("complete", file); - } - if (this.options.uploadMultiple) { - this.emit("errormultiple", files, message, xhr); - this.emit("completemultiple", files); - } - if (this.options.autoProcessQueue) { - return this.processQueue(); - } - }; - - return Dropzone; - - })(Em); - - Dropzone.version = "3.7.1"; - - Dropzone.options = {}; - - Dropzone.optionsForElement = function(element) { - if (element.id) { - return Dropzone.options[camelize(element.id)]; - } else { - return void 0; - } - }; - - Dropzone.instances = []; - - Dropzone.forElement = function(element) { - if (typeof element === "string") { - element = document.querySelector(element); - } - if ((element != null ? element.dropzone : void 0) == null) { - throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone."); - } - return element.dropzone; - }; - - Dropzone.autoDiscover = true; - - Dropzone.discover = function() { - var checkElements, dropzone, dropzones, _i, _len, _results; - if (document.querySelectorAll) { - dropzones = document.querySelectorAll(".dropzone"); - } else { - dropzones = []; - checkElements = function(elements) { - var el, _i, _len, _results; - _results = []; - for (_i = 0, _len = elements.length; _i < _len; _i++) { - el = elements[_i]; - if (/(^| )dropzone($| )/.test(el.className)) { - _results.push(dropzones.push(el)); - } else { - _results.push(void 0); - } - } - return _results; - }; - checkElements(document.getElementsByTagName("div")); - checkElements(document.getElementsByTagName("form")); - } - _results = []; - for (_i = 0, _len = dropzones.length; _i < _len; _i++) { - dropzone = dropzones[_i]; - if (Dropzone.optionsForElement(dropzone) !== false) { - _results.push(new Dropzone(dropzone)); - } else { - _results.push(void 0); - } - } - return _results; - }; - - Dropzone.blacklistedBrowsers = [/opera.*Macintosh.*version\/12/i]; - - Dropzone.isBrowserSupported = function() { - var capableBrowser, regex, _i, _len, _ref; - capableBrowser = true; - if (window.File && window.FileReader && window.FileList && window.Blob && window.FormData && document.querySelector) { - if (!("classList" in document.createElement("a"))) { - capableBrowser = false; - } else { - _ref = Dropzone.blacklistedBrowsers; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - regex = _ref[_i]; - if (regex.test(navigator.userAgent)) { - capableBrowser = false; - continue; - } - } - } - } else { - capableBrowser = false; - } - return capableBrowser; - }; - - without = function(list, rejectedItem) { - var item, _i, _len, _results; - _results = []; - for (_i = 0, _len = list.length; _i < _len; _i++) { - item = list[_i]; - if (item !== rejectedItem) { - _results.push(item); - } - } - return _results; - }; - - camelize = function(str) { - return str.replace(/[\-_](\w)/g, function(match) { - return match[1].toUpperCase(); - }); - }; - - Dropzone.createElement = function(string) { - var div; - div = document.createElement("div"); - div.innerHTML = string; - return div.childNodes[0]; - }; - - Dropzone.elementInside = function(element, container) { - if (element === container) { - return true; - } - while (element = element.parentNode) { - if (element === container) { - return true; - } - } - return false; - }; - - Dropzone.getElement = function(el, name) { - var element; - if (typeof el === "string") { - element = document.querySelector(el); - } else if (el.nodeType != null) { - element = el; - } - if (element == null) { - throw new Error("Invalid `" + name + "` option provided. Please provide a CSS selector or a plain HTML element."); - } - return element; - }; - - Dropzone.getElements = function(els, name) { - var e, el, elements, _i, _j, _len, _len1, _ref; - if (els instanceof Array) { - elements = []; - try { - for (_i = 0, _len = els.length; _i < _len; _i++) { - el = els[_i]; - elements.push(this.getElement(el, name)); - } - } catch (_error) { - e = _error; - elements = null; - } - } else if (typeof els === "string") { - elements = []; - _ref = document.querySelectorAll(els); - for (_j = 0, _len1 = _ref.length; _j < _len1; _j++) { - el = _ref[_j]; - elements.push(el); - } - } else if (els.nodeType != null) { - elements = [els]; - } - if (!((elements != null) && elements.length)) { - throw new Error("Invalid `" + name + "` option provided. Please provide a CSS selector, a plain HTML element or a list of those."); - } - return elements; - }; - - Dropzone.confirm = function(question, accepted, rejected) { - if (window.confirm(question)) { - return accepted(); - } else if (rejected != null) { - return rejected(); - } - }; - - Dropzone.isValidFile = function(file, acceptedFiles) { - var baseMimeType, mimeType, validType, _i, _len; - if (!acceptedFiles) { - return true; - } - acceptedFiles = acceptedFiles.split(","); - mimeType = file.type; - baseMimeType = mimeType.replace(/\/.*$/, ""); - for (_i = 0, _len = acceptedFiles.length; _i < _len; _i++) { - validType = acceptedFiles[_i]; - validType = validType.trim(); - if (validType.charAt(0) === ".") { - if (file.name.indexOf(validType, file.name.length - validType.length) !== -1) { - return true; - } - } else if (/\/\*$/.test(validType)) { - if (baseMimeType === validType.replace(/\/.*$/, "")) { - return true; - } - } else { - if (mimeType === validType) { - return true; - } - } - } - return false; - }; - - if (typeof jQuery !== "undefined" && jQuery !== null) { - jQuery.fn.dropzone = function(options) { - return this.each(function() { - return new Dropzone(this, options); - }); - }; - } - - if (typeof module !== "undefined" && module !== null) { - module.exports = Dropzone; - } else { - window.Dropzone = Dropzone; - } - - Dropzone.ADDED = "added"; - - Dropzone.QUEUED = "queued"; - - Dropzone.ACCEPTED = Dropzone.QUEUED; - - Dropzone.UPLOADING = "uploading"; - - Dropzone.PROCESSING = Dropzone.UPLOADING; - - Dropzone.CANCELED = "canceled"; - - Dropzone.ERROR = "error"; - - Dropzone.SUCCESS = "success"; - - /* - # contentloaded.js - # - # Author: Diego Perini (diego.perini at gmail.com) - # Summary: cross-browser wrapper for DOMContentLoaded - # Updated: 20101020 - # License: MIT - # Version: 1.2 - # - # URL: - # http://javascript.nwbox.com/ContentLoaded/ - # http://javascript.nwbox.com/ContentLoaded/MIT-LICENSE - */ - - - contentLoaded = function(win, fn) { - var add, doc, done, init, poll, pre, rem, root, top; - done = false; - top = true; - doc = win.document; - root = doc.documentElement; - add = (doc.addEventListener ? "addEventListener" : "attachEvent"); - rem = (doc.addEventListener ? "removeEventListener" : "detachEvent"); - pre = (doc.addEventListener ? "" : "on"); - init = function(e) { - if (e.type === "readystatechange" && doc.readyState !== "complete") { - return; - } - (e.type === "load" ? win : doc)[rem](pre + e.type, init, false); - if (!done && (done = true)) { - return fn.call(win, e.type || e); - } - }; - poll = function() { - var e; - try { - root.doScroll("left"); - } catch (_error) { - e = _error; - setTimeout(poll, 50); - return; - } - return init("poll"); - }; - if (doc.readyState !== "complete") { - if (doc.createEventObject && root.doScroll) { - try { - top = !win.frameElement; - } catch (_error) {} - if (top) { - poll(); - } - } - doc[add](pre + "DOMContentLoaded", init, false); - doc[add](pre + "readystatechange", init, false); - return win[add](pre + "load", init, false); - } - }; - - Dropzone._autoDiscoverFunction = function() { - if (Dropzone.autoDiscover) { - return Dropzone.discover(); - } - }; - - contentLoaded(window, Dropzone._autoDiscoverFunction); - - }).call(this); - - }); - require.alias("component-emitter/index.js", "dropzone/deps/emitter/index.js"); - require.alias("component-emitter/index.js", "emitter/index.js"); - if (typeof exports == "object") { - module.exports = require("dropzone"); - } else if (typeof define == "function" && define.amd) { - define(function(){ return require("dropzone"); }); - } else { - this["Dropzone"] = require("dropzone"); - }})(); \ No newline at end of file diff --git a/web/assets/backOffice/default/template-assets/assets/js/bootstrap-select/bec3af0.js b/web/assets/backOffice/default/template-assets/assets/js/bootstrap-select/bec3af0.js deleted file mode 100644 index dcfd633a..00000000 --- a/web/assets/backOffice/default/template-assets/assets/js/bootstrap-select/bec3af0.js +++ /dev/null @@ -1,709 +0,0 @@ -/*! - * bootstrap-select v1.3.1 - * http://silviomoreto.github.io/bootstrap-select/ - * - * Copyright 2013 bootstrap-select - * Licensed under the MIT license - */ - -!function($) { - - "use strict"; - - $.expr[":"].icontains = $.expr.createPseudo(function(arg) { - return function( elem ) { - return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0; - }; - }); - - var Selectpicker = function(element, options, e) { - if (e) { - e.stopPropagation(); - e.preventDefault(); - } - this.$element = $(element); - this.$newElement = null; - this.$button = null; - this.$menu = null; - - //Merge defaults, options and data-attributes to make our options - this.options = $.extend({}, $.fn.selectpicker.defaults, this.$element.data(), typeof options == 'object' && options); - - //If we have no title yet, check the attribute 'title' (this is missed by jq as its not a data-attribute - if (this.options.title == null) { - this.options.title = this.$element.attr('title'); - } - - //Expose public methods - this.val = Selectpicker.prototype.val; - this.render = Selectpicker.prototype.render; - this.refresh = Selectpicker.prototype.refresh; - this.setStyle = Selectpicker.prototype.setStyle; - this.selectAll = Selectpicker.prototype.selectAll; - this.deselectAll = Selectpicker.prototype.deselectAll; - this.init(); - }; - - Selectpicker.prototype = { - - constructor: Selectpicker, - - init: function(e) { - this.$element.hide(); - this.multiple = this.$element.prop('multiple'); - var id = this.$element.attr('id'); - this.$newElement = this.createView(); - this.$element.after(this.$newElement); - this.$menu = this.$newElement.find('> .dropdown-menu'); - this.$button = this.$newElement.find('> button'); - this.$searchbox = this.$newElement.find('input'); - - if (id !== undefined) { - var that = this; - this.$button.attr('data-id', id); - $('label[for="' + id + '"]').click(function(e) { - e.preventDefault(); - that.$button.focus(); - }); - } - - this.checkDisabled(); - this.checkTabIndex(); - this.clickListener(); - this.liveSearchListener(); - this.render(); - this.liHeight(); - this.setStyle(); - this.setWidth(); - if (this.options.container) { - this.selectPosition(); - } - this.$menu.data('this', this); - this.$newElement.data('this', this); - }, - - createDropdown: function() { - //If we are multiple, then add the show-tick class by default - var multiple = this.multiple ? ' show-tick' : ''; - var header = this.options.header ? '

' + this.options.header + '

' : ''; - var searchbox = this.options.liveSearch ? '' : ''; - var drop = - "
" + - "" + - "" + - "
"; - - return $(drop); - }, - - createView: function() { - var $drop = this.createDropdown(); - var $li = this.createLi(); - $drop.find('ul').append($li); - return $drop; - }, - - reloadLi: function() { - //Remove all children. - this.destroyLi(); - //Re build - var $li = this.createLi(); - this.$menu.find('ul').append( $li ); - }, - - destroyLi: function() { - this.$menu.find('li').remove(); - }, - - createLi: function() { - var that = this, - _liA = [], - _liHtml = ''; - - this.$element.find('option').each(function(index) { - var $this = $(this); - - //Get the class and text for the option - var optionClass = $this.attr("class") || ''; - var inline = $this.attr("style") || ''; - var text = $this.data('content') ? $this.data('content') : $this.html(); - var subtext = $this.data('subtext') !== undefined ? '' + $this.data('subtext') + '' : ''; - var icon = $this.data('icon') !== undefined ? ' ' : ''; - if (icon !== '' && ($this.is(':disabled') || $this.parent().is(':disabled'))) { - icon = ''+icon+''; - } - - if (!$this.data('content')) { - //Prepend any icon and append any subtext to the main text. - text = icon + '' + text + subtext + ''; - } - - if (that.options.hideDisabled && ($this.is(':disabled') || $this.parent().is(':disabled'))) { - _liA.push(''); - } else if ($this.parent().is('optgroup') && $this.data('divider') != true) { - if ($this.index() == 0) { - //Get the opt group label - var label = $this.parent().attr('label'); - var labelSubtext = $this.parent().data('subtext') !== undefined ? ''+$this.parent().data('subtext')+'' : ''; - var labelIcon = $this.parent().data('icon') ? ' ' : ''; - label = labelIcon + '' + label + labelSubtext + ''; - - if ($this[0].index != 0) { - _liA.push( - '
'+ - '
'+label+'
'+ - that.createA(text, "opt " + optionClass, inline ) - ); - } else { - _liA.push( - '
'+label+'
'+ - that.createA(text, "opt " + optionClass, inline )); - } - } else { - _liA.push(that.createA(text, "opt " + optionClass, inline )); - } - } else if ($this.data('divider') == true) { - _liA.push('
'); - } else if ($(this).data('hidden') == true) { - _liA.push(''); - } else { - _liA.push(that.createA(text, optionClass, inline )); - } - }); - - $.each(_liA, function(i, item) { - _liHtml += "
  • " + item + "
  • "; - }); - - //If we are not multiple, and we dont have a selected item, and we dont have a title, select the first element so something is set in the button - if (!this.multiple && this.$element.find('option:selected').length==0 && !this.options.title) { - this.$element.find('option').eq(0).prop('selected', true).attr('selected', 'selected'); - } - - return $(_liHtml); - }, - - createA: function(text, classes, inline) { - return '' + - text + - '' + - ''; - }, - - render: function() { - var that = this; - - //Update the LI to match the SELECT - this.$element.find('option').each(function(index) { - that.setDisabled(index, $(this).is(':disabled') || $(this).parent().is(':disabled') ); - that.setSelected(index, $(this).is(':selected') ); - }); - - var selectedItems = this.$element.find('option:selected').map(function(index,value) { - var $this = $(this); - var icon = $this.data('icon') && that.options.showIcon ? ' ' : ''; - var subtext; - if (that.options.showSubtext && $this.attr('data-subtext') && !that.multiple) { - subtext = ' '+$this.data('subtext') +''; - } else { - subtext = ''; - } - if ($this.data('content') && that.options.showContent) { - return $this.data('content'); - } else if ($this.attr('title') != undefined) { - return $this.attr('title'); - } else { - return icon + $this.html() + subtext; - } - }).toArray(); - - //Fixes issue in IE10 occurring when no default option is selected and at least one option is disabled - //Convert all the values into a comma delimited string - var title = !this.multiple ? selectedItems[0] : selectedItems.join(", "); - - //If this is multi select, and the selectText type is count, the show 1 of 2 selected etc.. - if (this.multiple && this.options.selectedTextFormat.indexOf('count') > -1) { - var max = this.options.selectedTextFormat.split(">"); - var notDisabled = this.options.hideDisabled ? ':not([disabled])' : ''; - if ( (max.length>1 && selectedItems.length > max[1]) || (max.length==1 && selectedItems.length>=2)) { - title = this.options.countSelectedText.replace('{0}', selectedItems.length).replace('{1}', this.$element.find('option:not([data-divider="true"]):not([data-hidden="true"])'+notDisabled).length); - } - } - - //If we dont have a title, then use the default, or if nothing is set at all, use the not selected text - if (!title) { - title = this.options.title != undefined ? this.options.title : this.options.noneSelectedText; - } - - this.$newElement.find('.filter-option').html(title); - }, - - setStyle: function(style, status) { - if (this.$element.attr('class')) { - this.$newElement.addClass(this.$element.attr('class').replace(/selectpicker|mobile-device/gi, '')); - } - - var buttonClass = style ? style : this.options.style; - - if (status == 'add') { - this.$button.addClass(buttonClass); - } else if (status == 'remove') { - this.$button.removeClass(buttonClass); - } else { - this.$button.removeClass(this.options.style); - this.$button.addClass(buttonClass); - } - }, - - liHeight: function() { - var selectClone = this.$newElement.clone(); - selectClone.appendTo('body'); - var $menuClone = selectClone.addClass('open').find('> .dropdown-menu'); - var liHeight = $menuClone.find('li > a').outerHeight(); - var headerHeight = this.options.header ? $menuClone.find('.popover-title').outerHeight() : 0; - selectClone.remove(); - this.$newElement.data('liHeight', liHeight).data('headerHeight', headerHeight); - }, - - setSize: function() { - var that = this, - menu = this.$menu, - menuInner = menu.find('.inner'), - menuA = menuInner.find('li > a'), - selectHeight = this.$newElement.outerHeight(), - liHeight = this.$newElement.data('liHeight'), - headerHeight = this.$newElement.data('headerHeight'), - divHeight = menu.find('li .divider').outerHeight(true), - menuPadding = parseInt(menu.css('padding-top')) + - parseInt(menu.css('padding-bottom')) + - parseInt(menu.css('border-top-width')) + - parseInt(menu.css('border-bottom-width')), - notDisabled = this.options.hideDisabled ? ':not(.disabled)' : '', - $window = $(window), - menuExtras = menuPadding + parseInt(menu.css('margin-top')) + parseInt(menu.css('margin-bottom')) + 2, - menuHeight, - selectOffsetTop, - selectOffsetBot, - posVert = function() { - selectOffsetTop = that.$newElement.offset().top - $window.scrollTop(); - selectOffsetBot = $window.height() - selectOffsetTop - selectHeight; - }; - posVert(); - if (this.options.header) menu.css('padding-top', 0); - - if (this.options.size == 'auto') { - var getSize = function() { - var minHeight; - posVert(); - menuHeight = selectOffsetBot - menuExtras; - that.$newElement.toggleClass('dropup', (selectOffsetTop > selectOffsetBot) && (menuHeight - menuExtras) < menu.height() && that.options.dropupAuto); - if (that.$newElement.hasClass('dropup')) { - menuHeight = selectOffsetTop - menuExtras; - } - if ((menu.find('li').length + menu.find('dt').length) > 3) { - minHeight = liHeight*3 + menuExtras - 2; - } else { - minHeight = 0; - } - menu.css({'max-height' : menuHeight + 'px', 'overflow' : 'hidden', 'min-height' : minHeight + 'px'}); - menuInner.css({'max-height' : menuHeight - headerHeight- menuPadding + 'px', 'overflow-y' : 'auto', 'min-height' : minHeight - menuPadding + 'px'}); - } - getSize(); - $(window).resize(getSize); - $(window).scroll(getSize); - } else if (this.options.size && this.options.size != 'auto' && menu.find('li'+notDisabled).length > this.options.size) { - var optIndex = menu.find("li"+notDisabled+" > *").filter(':not(.div-contain)').slice(0,this.options.size).last().parent().index(); - var divLength = menu.find("li").slice(0,optIndex + 1).find('.div-contain').length; - menuHeight = liHeight*this.options.size + divLength*divHeight + menuPadding; - this.$newElement.toggleClass('dropup', (selectOffsetTop > selectOffsetBot) && menuHeight < menu.height() && this.options.dropupAuto); - menu.css({'max-height' : menuHeight + headerHeight + 'px', 'overflow' : 'hidden'}); - menuInner.css({'max-height' : menuHeight - menuPadding + 'px', 'overflow-y' : 'auto'}); - } - }, - - setWidth: function() { - if (this.options.width == 'auto') { - this.$menu.css('min-width', '0'); - - // Get correct width if element hidden - var selectClone = this.$newElement.clone().appendTo('body'); - var ulWidth = selectClone.find('> .dropdown-menu').css('width'); - selectClone.remove(); - - this.$newElement.css('width', ulWidth); - } else if (this.options.width == 'fit') { - // Remove inline min-width so width can be changed from 'auto' - this.$menu.css('min-width', ''); - this.$newElement.css('width', '').addClass('fit-width'); - } else if (this.options.width) { - // Remove inline min-width so width can be changed from 'auto' - this.$menu.css('min-width', ''); - this.$newElement.css('width', this.options.width); - } else { - // Remove inline min-width/width so width can be changed - this.$menu.css('min-width', ''); - this.$newElement.css('width', ''); - } - // Remove fit-width class if width is changed programmatically - if (this.$newElement.hasClass('fit-width') && this.options.width !== 'fit') { - this.$newElement.removeClass('fit-width'); - } - }, - - selectPosition: function() { - var that = this, - drop = "
    ", - $drop = $(drop), - pos, - actualHeight, - getPlacement = function($element) { - $drop.addClass($element.attr('class')).toggleClass('dropup', $element.hasClass('dropup')); - pos = $element.offset(); - actualHeight = $element.hasClass('dropup') ? 0 : $element[0].offsetHeight; - $drop.css({'top' : pos.top + actualHeight, 'left' : pos.left, 'width' : $element[0].offsetWidth, 'position' : 'absolute'}); - }; - this.$newElement.on('click', function(e) { - getPlacement($(this)); - $drop.appendTo(that.options.container); - $drop.toggleClass('open', !$(this).hasClass('open')); - $drop.append(that.$menu); - }); - $(window).resize(function() { - getPlacement(that.$newElement); - }); - $(window).on('scroll', function(e) { - getPlacement(that.$newElement); - }); - $('html').on('click', function(e) { - if ($(e.target).closest(that.$newElement).length < 1) { - $drop.removeClass('open'); - } - }); - }, - - mobile: function() { - this.$element.addClass('mobile-device').appendTo(this.$newElement); - if (this.options.container) this.$menu.hide(); - }, - - refresh: function() { - this.reloadLi(); - this.render(); - this.setWidth(); - this.setStyle(); - this.checkDisabled(); - this.liHeight(); - }, - - setSelected: function(index, selected) { - this.$menu.find('li').eq(index).toggleClass('selected', selected); - }, - - setDisabled: function(index, disabled) { - if (disabled) { - this.$menu.find('li').eq(index).addClass('disabled').find('a').attr('href','#').attr('tabindex',-1); - } else { - this.$menu.find('li').eq(index).removeClass('disabled').find('a').removeAttr('href').attr('tabindex',0); - } - }, - - isDisabled: function() { - return this.$element.is(':disabled'); - }, - - checkDisabled: function() { - var that = this; - if (this.isDisabled()) { - this.$button.addClass('disabled'); - this.$button.attr('tabindex','-1'); - } else if (this.$button.hasClass('disabled')) { - this.$button.removeClass('disabled'); - this.$button.removeAttr('tabindex'); - } - this.$button.click(function() { - return !that.isDisabled(); - }); - }, - - checkTabIndex: function() { - if (this.$element.is('[tabindex]')) { - var tabindex = this.$element.attr("tabindex"); - this.$button.attr('tabindex', tabindex); - } - }, - - clickListener: function() { - var that = this; - - $('body').on('touchstart.dropdown', '.dropdown-menu', function(e) { - e.stopPropagation(); - }); - - this.$newElement.on('click', function() { - that.setSize(); - }); - - this.$menu.on('click', 'li a', function(e) { - var clickedIndex = $(this).parent().index(), - $this = $(this).parent(), - prevValue = that.$element.val(); - - //Dont close on multi choice menu - if (that.multiple) { - e.stopPropagation(); - } - - e.preventDefault(); - - //Dont run if we have been disabled - if (!that.isDisabled() && !$(this).parent().hasClass('disabled')) { - var $options = that.$element.find('option'); - var $option = $options.eq(clickedIndex); - - //Deselect all others if not multi select box - if (!that.multiple) { - $options.prop('selected', false); - $option.prop('selected', true); - } - //Else toggle the one we have chosen if we are multi select. - else { - var state = $option.prop('selected'); - - $option.prop('selected', !state); - } - - that.$button.focus(); - - // Trigger select 'change' - if (prevValue != that.$element.val()) { - that.$element.change(); - } - } - }); - - this.$menu.on('click', 'li.disabled a, li dt, li .div-contain, h3.popover-title', function(e) { - if (e.target == this) { - e.preventDefault(); - e.stopPropagation(); - that.$button.focus(); - } - }); - - this.$searchbox.on('click', function(e) { - e.stopPropagation(); - }); - - this.$element.change(function() { - that.render() - }); - }, - - liveSearchListener: function() { - var that = this; - - this.$newElement.on('click.dropdown.data-api', function(e){ - if(that.options.liveSearch) { - setTimeout(function() { - that.$searchbox.focus(); - }, 10); - } - }); - - this.$searchbox.on('input', function() { - that.$newElement.find('li').show().not(':icontains(' + that.$searchbox.val() + ')').hide(); - }); - }, - - val: function(value) { - - if (value != undefined) { - this.$element.val( value ); - - this.$element.change(); - return this.$element; - } else { - return this.$element.val(); - } - }, - - selectAll: function() { - this.$element.find('option').prop('selected', true).attr('selected', 'selected'); - this.render(); - }, - - deselectAll: function() { - this.$element.find('option').prop('selected', false).removeAttr('selected'); - this.render(); - }, - - keydown: function(e) { - var $this, - $items, - $parent, - index, - next, - first, - last, - prev, - nextPrev, - that; - - $this = $(this); - - $parent = $this.parent(); - - that = $parent.data('this'); - - if (that.options.container) $parent = that.$menu; - - $items = $('[role=menu] li:not(.divider):visible a', $parent); - - if (!$items.length) return; - - if (/(38|40)/.test(e.keyCode)) { - - index = $items.index($items.filter(':focus')); - first = $items.parent(':not(.disabled)').first().index(); - last = $items.parent(':not(.disabled)').last().index(); - next = $items.eq(index).parent().nextAll(':not(.disabled)').eq(0).index(); - prev = $items.eq(index).parent().prevAll(':not(.disabled)').eq(0).index(); - nextPrev = $items.eq(next).parent().prevAll(':not(.disabled)').eq(0).index(); - - if (e.keyCode == 38) { - if (index != nextPrev && index > prev) index = prev; - if (index < first) index = first; - } - - if (e.keyCode == 40) { - if (index != nextPrev && index < next) index = next; - if (index > last) index = last; - if (index == -1) index = 0; - } - - $items.eq(index).focus(); - } else { - var keyCodeMap = { - 48:"0", 49:"1", 50:"2", 51:"3", 52:"4", 53:"5", 54:"6", 55:"7", 56:"8", 57:"9", 59:";", - 65:"a", 66:"b", 67:"c", 68:"d", 69:"e", 70:"f", 71:"g", 72:"h", 73:"i", 74:"j", 75:"k", 76:"l", - 77:"m", 78:"n", 79:"o", 80:"p", 81:"q", 82:"r", 83:"s", 84:"t", 85:"u", 86:"v", 87:"w", 88:"x", 89:"y", 90:"z", - 96:"0", 97:"1", 98:"2", 99:"3", 100:"4", 101:"5", 102:"6", 103:"7", 104:"8", 105:"9" - } - - var keyIndex = []; - - $items.each(function() { - if ($(this).parent().is(':not(.disabled)')) { - if ($.trim($(this).text().toLowerCase()).substring(0,1) == keyCodeMap[e.keyCode]) { - keyIndex.push($(this).parent().index()); - } - } - }); - - var count = $(document).data('keycount'); - count++; - $(document).data('keycount',count); - - var prevKey = $.trim($(':focus').text().toLowerCase()).substring(0,1); - - if (prevKey != keyCodeMap[e.keyCode]) { - count = 1; - $(document).data('keycount',count); - } else if (count >= keyIndex.length) { - $(document).data('keycount',0); - } - - $items.eq(keyIndex[count - 1]).focus(); - } - - // select focused option if "Enter" or "Spacebar" are pressed - if (/(13|32)/.test(e.keyCode)) { - e.preventDefault(); - $(':focus').click(); - $(document).data('keycount',0); - } - }, - - hide: function() { - this.$newElement.hide(); - }, - - show: function() { - this.$newElement.show(); - }, - - destroy: function() { - this.$newElement.remove(); - this.$element.remove(); - } - }; - - $.fn.selectpicker = function(option, event) { - //get the args of the outer function.. - var args = arguments; - var value; - var chain = this.each(function() { - if ($(this).is('select')) { - var $this = $(this), - data = $this.data('selectpicker'), - options = typeof option == 'object' && option; - - if (!data) { - $this.data('selectpicker', (data = new Selectpicker(this, options, event))); - } else if (options) { - for(var i in options) { - data.options[i] = options[i]; - } - } - - if (typeof option == 'string') { - //Copy the value of option, as once we shift the arguments - //it also shifts the value of option. - var property = option; - if (data[property] instanceof Function) { - [].shift.apply(args); - value = data[property].apply(data, args); - } else { - value = data.options[property]; - } - } - } - }); - - if (value != undefined) { - return value; - } else { - return chain; - } - }; - - $.fn.selectpicker.defaults = { - style: 'btn-default', - size: 'auto', - title: null, - selectedTextFormat : 'values', - noneSelectedText : 'Nothing selected', - countSelectedText: '{0} of {1} selected', - width: false, - container: false, - hideDisabled: false, - showSubtext: false, - showIcon: true, - showContent: true, - dropupAuto: true, - header: false, - liveSearch: false - } - - $(document) - .data('keycount', 0) - .on('keydown', '[data-toggle=dropdown], [role=menu]' , Selectpicker.prototype.keydown) - -}(window.jQuery); diff --git a/web/assets/backOffice/default/template-assets/assets/js/cf1f95a.js b/web/assets/backOffice/default/template-assets/assets/js/cf1f95a.js deleted file mode 100644 index 2fafe14f..00000000 --- a/web/assets/backOffice/default/template-assets/assets/js/cf1f95a.js +++ /dev/null @@ -1,271 +0,0 @@ -$(function($){ - // Manage picture upload - $.imageUploadManager = {}; - - Dropzone.autoDiscover = false; - - // Remove image on click - $.imageUploadManager.initImageDropZone = function() { - - $.imageUploadManager.onClickDeleteImage(); - $.imageUploadManager.onClickModal(); - $.imageUploadManager.onModalHidden(); - $.imageUploadManager.sortImage(); - $.imageUploadManager.onClickToggleVisibilityImage(); - $.imageUploadManager.onClickBtnDeleteSelectedImages(); - $.imageUploadManager.onClickBtnSelectDeselectImages(); - - var imageDropzone = new Dropzone("#images-dropzone", { - dictDefaultMessage : $('.btn-browse').html(), - uploadMultiple: false, - acceptedFiles: 'image/png, image/gif, image/jpeg' - }); - - var totalFiles = 0, - completedFiles = 0; - - imageDropzone.on("addedfile", function(file){ - totalFiles += 1; - - if(totalFiles == 1){ - $('.dz-message').hide(); - } - }); - - imageDropzone.on("complete", function(file){ - completedFiles += 1; - - if (completedFiles === totalFiles){ - $('.dz-message').slideDown(); - } - }); - - imageDropzone.on("success", function(file) { - imageDropzone.removeFile(file); - $.imageUploadManager.updateImageListAjax(); - $.imageUploadManager.onClickDeleteImage(); - $.imageUploadManager.onClickToggleVisibilityImage(); - }); - - - - }; - - // Update picture list via AJAX call - $.imageUploadManager.updateImageListAjax = function() { - var $imageListArea = $(".image-manager .existing-image"); - $imageListArea.html('
    '); - $.ajax({ - type: "POST", - url: imageListUrl, - data: { - successUrl: imageSuccessUrl - }, - statusCode: { - 404: function() { - $imageListArea.html( - imageListErrorMessage - ); - } - } - }).done(function(data) { - $imageListArea.html( - data - ); - $.imageUploadManager.onClickDeleteImage(); - $.imageUploadManager.sortImage(); - $.imageUploadManager.onClickToggleVisibilityImage(); - }); - }; - - // Remove image on click - $.imageUploadManager.onClickDeleteImage = function() { - $('.image-manager .image-delete-btn').on('click', function (e) { - e.preventDefault(); - var $btnSubmit = $("#submit-delete-image"); - $btnSubmit.data("element-id", $(this).attr("id")); - $btnSubmit.data("type", "one"); - $('#modal-body-delete-image').html(imageDeleteOneWarningMessage); - $('#image_delete_dialog').modal("show"); - - return false; - }); - }; - - $.imageUploadManager.onClickBtnDeleteSelectedImages = function(){ - $('.btn-delete-selected-images').on('click', function(e) { - e.preventDefault(); - var $btnSubmit = $("#submit-delete-image"); - var $btnCancel = $("#jsBtnDismissImageDeleteModal"); - $btnSubmit.data("type", "multiple"); - var $count = $('.image-select-checkbox:checked').length; - var $warning; - if($count == 0){ - $btnSubmit.hide(); - $btnCancel.html(textBtnDeleteImageModal_Close); - $warning = imageDeleteNoImageSelectedMessage; - }else{ - $btnSubmit.show(); - $btnCancel.html(''+textBtnDeleteImageModal_No); - if($count == 1){ - $warning = imageDeleteOneWarningMessage; - } else { - $warning = imageDeleteMultipleWarningMessage.replace("%count", $count); - } - } - $('#modal-body-delete-image').html($warning); - $('#image_delete_dialog').modal("show"); - - return false; - }); - }; - - $.imageUploadManager.onClickBtnSelectDeselectImages = function(){ - $('.btn-select-all-images').on('click', function(e) { - e.preventDefault(); - $('.image-select-checkbox').prop('checked', true); - }); - - $('.btn-deselect-all-images').on('click', function(e) { - e.preventDefault(); - $('.image-select-checkbox').prop('checked', false); - }); - }; - - $.imageUploadManager.onModalHidden = function() { - $("#image_delete_dialog").on('hidden.bs.modal', function (e) { - var $btnSubmit = $("#submit-delete-image"); - $btnSubmit.data("element-id", ""); - $btnSubmit.data("type", ""); - $('#modal-body-delete-image').html(''); - }); - }; - - $.imageUploadManager.deleteSelectedImages = function(){ - $('.image-select-checkbox:checked').each(function(){ - $.imageUploadManager.deleteImage($(this).data("id")); - }); - }; - - $.imageUploadManager.deleteImage = function($id){ - var $this = $("#"+$id); - var $parent = $this.parent(); - var $greatParent = $parent.parent(); - - $greatParent.append('
    '); - $greatParent.find('.btn-group').remove(); - var $url = $this.attr("href"); - var errorMessage = $this.attr("data-error-message"); - $.ajax({ - type: "POST", - url: $url, - statusCode: { - 404: function() { - $(".image-manager .message").html( - errorMessage - ); - } - } - }).done(function(data) { - $greatParent.parent().remove(); - $(".image-manager .message").html( - data - ); - - /* refresh position */ - $( "#js-sort-image").children('li').each(function(position, element) { - $(element).find('.js-sorted-position').html(position + 1); - }); - }).always(function(){ - $('#image_delete_dialog').modal("hide"); - }); - }; - - $.imageUploadManager.onClickModal = function() { - $("#submit-delete-image").on('click', function(e){ - var $type = $(this).data("type"); - if($type == 'one') { - var $id = $(this).data("element-id"); - $.imageUploadManager.deleteImage($id); - }else if($type == 'multiple'){ - $.imageUploadManager.deleteSelectedImages(); - } - }); - }; - - // toggle document on click - $.imageUploadManager.onClickToggleVisibilityImage = function() { - $('.image-manager').on('click', '.image-toggle-btn', function (e) { - e.preventDefault(); - var $this = $(this); - var $url = $this.attr("href"); - var errorMessage = $this.attr("data-error-message"); - $.ajax({ - type: "GET", - url: $url, - statusCode: { - 404: function() { - $(".image-manager .message").html( - errorMessage - ); - } - } - }).done(function(data) { - $(".image-manager .message").html( - data - ); - - $this.toggleClass("visibility-visible"); - }); - return false; - }); - }; - - $.imageUploadManager.sortImage = function() { - $( "#js-sort-image" ).sortable({ - placeholder: "ui-sortable-placeholder col-sm-6 col-md-3", - change: function( event, ui ) { - /* refresh position */ - var pickedElement = ui.item; - var position = 0; - $( "#js-sort-image").children('li').each(function(k, element) { - if($(element).data('sort-id') == pickedElement.data('sort-id')) { - return true; - } - position++; - if($(element).is('.ui-sortable-placeholder')) { - pickedElement.find('.js-sorted-position').html(position); - } else { - $(element).find('.js-sorted-position').html(position); - } - }); - }, - stop: function( event, ui ) { - /* update */ - var newPosition = ui.item.find('.js-sorted-position').html(); - var imageId = ui.item.data('sort-id'); - - $.ajax({ - type: "POST", - url: imageReorder, - data: { - image_id: imageId, - position: newPosition - }, - statusCode: { - 404: function() { - $(".image-manager .message").html( - imageReorderErrorMessage - ); - } - } - }).done(function(data) { - $(".image-manager .message").html( - data - ); - }); - } - }); - $( "#js-sort-image" ).disableSelection(); - }; -}); diff --git a/web/assets/backOffice/default/template-assets/assets/js/fea13a5.js b/web/assets/backOffice/default/template-assets/assets/js/fea13a5.js deleted file mode 100644 index f26f0276..00000000 --- a/web/assets/backOffice/default/template-assets/assets/js/fea13a5.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! jQuery UI - v1.10.3 - 2013-10-20 -* http://jqueryui.com -* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js -* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ - -(function(e,t){function i(t,i){var s,n,r,o=t.nodeName.toLowerCase();return"area"===o?(s=t.parentNode,n=s.name,t.href&&n&&"map"===s.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&a(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&a(t)}function a(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var s=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,a){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),a&&a.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var a,s,n=e(this[0]);n.length&&n[0]!==document;){if(a=n.css("position"),("absolute"===a||"relative"===a||"fixed"===a)&&(s=parseInt(n.css("zIndex"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++s)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,a){return!!e.data(t,a[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var a=e.attr(t,"tabindex"),s=isNaN(a);return(s||a>=0)&&i(t,!s)}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(i,a){function s(t,i,a,s){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,a&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===a?["Left","Right"]:["Top","Bottom"],r=a.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+a]=function(i){return i===t?o["inner"+a].call(this):this.each(function(){e(this).css(r,s(this,i)+"px")})},e.fn["outer"+a]=function(t,i){return"number"!=typeof t?o["outer"+a].call(this,t):this.each(function(){e(this).css(r,s(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,a){var s,n=e.ui[t].prototype;for(s in a)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([i,a[s]])},call:function(e,t,i){var a,s=e.plugins[t];if(s&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(a=0;s.length>a;a++)e.options[s[a][0]]&&s[a][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var a=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return t[a]>0?!0:(t[a]=1,s=t[a]>0,t[a]=0,s)}})})(jQuery);(function(e,t){var i=0,s=Array.prototype.slice,a=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler("remove")}catch(n){}a(t)},e.widget=function(i,s,a){var n,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],n=u+"-"+i,a||(a=s,s=e.Widget),e.expr[":"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:a.version,_proto:e.extend({},a),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(a,function(i,a){return e.isFunction(a)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,n=this._superApply;return this._super=e,this._superApply=t,i=a.apply(this,arguments),this._super=s,this._superApply=n,i}}(),t):(l[i]=a,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:n}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var a,n,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(a in r[o])n=r[o][a],r[o].hasOwnProperty(a)&&n!==t&&(i[a]=e.isPlainObject(n)?e.isPlainObject(i[a])?e.widget.extend({},i[a],n):e.widget.extend({},n):n);return i},e.widget.bridge=function(i,a){var n=a.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,a=e.data(this,n);return a?e.isFunction(a[r])&&"_"!==r.charAt(0)?(s=a[r].apply(a,h),s!==a&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,n);t?t.option(r||{})._init():e.data(this,n,new a(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
    ",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var a,n,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},a=i.split("."),i=a.shift(),a.length){for(n=o[i]=e.widget.extend({},this.options[i]),r=0;a.length-1>r;r++)n[a[r]]=n[a[r]]||{},n=n[a[r]];if(i=a.pop(),s===t)return n[i]===t?null:n[i];n[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,a){var n,r=this;"boolean"!=typeof i&&(a=s,s=i,i=!1),a?(s=n=e(s),this.bindings=this.bindings.add(s)):(a=s,s=this.element,n=this.widget()),e.each(a,function(a,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?r[o]:o).apply(r,arguments):t}"string"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=a.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?n.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var a,n,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],n=i.originalEvent)for(a in n)a in i||(i[a]=n[a]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,a,n){"string"==typeof a&&(a={effect:a});var r,o=a?a===!0||"number"==typeof a?i:a.effect||i:t;a=a||{},"number"==typeof a&&(a={duration:a}),r=!e.isEmptyObject(a),a.complete=n,a.delay&&s.delay(a.delay),r&&e.effects&&e.effects.effect[o]?s[t](a):o!==t&&s[o]?s[o](a.duration,a.easing,n):s.queue(function(i){e(this)[t](),n&&n.call(s[0]),i()})}})})(jQuery);(function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,a=1===i.which,n="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return a&&!n&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);(function(e,t){function i(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function s(t,i){return parseInt(e.css(t,i),10)||0}function a(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,r=Math.max,o=Math.abs,h=Math.round,l=/left|center|right/,u=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var i,s,a=e("
    "),r=a.children()[0];return e("body").append(a),i=r.offsetWidth,a.css("overflow","scroll"),s=r.offsetWidth,i===s&&(s=a[0].clientWidth),a.remove(),n=i-s},getScrollInfo:function(t){var i=t.isWindow?"":t.element.css("overflow-x"),s=t.isWindow?"":t.element.css("overflow-y"),a="scroll"===i||"auto"===i&&t.widths?"left":i>0?"right":"center",vertical:0>n?"top":a>0?"bottom":"middle"};c>p&&p>o(i+s)&&(h.horizontal="center"),d>m&&m>o(a+n)&&(h.vertical="middle"),h.important=r(o(i),o(s))>r(o(a),o(n))?"horizontal":"vertical",t.using.call(this,e,h)}),u.offset(e.extend(M,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollLeft:s.offset.left,n=s.width,o=e.left-t.collisionPosition.marginLeft,h=a-o,l=o+t.collisionWidth-n-a;t.collisionWidth>n?h>0&&0>=l?(i=e.left+h+t.collisionWidth-n-a,e.left+=h-i):e.left=l>0&&0>=h?a:h>l?a+n-t.collisionWidth:a:h>0?e.left+=h:l>0?e.left-=l:e.left=r(e.left-o,e.left)},top:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollTop:s.offset.top,n=t.within.height,o=e.top-t.collisionPosition.marginTop,h=a-o,l=o+t.collisionHeight-n-a;t.collisionHeight>n?h>0&&0>=l?(i=e.top+h+t.collisionHeight-n-a,e.top+=h-i):e.top=l>0&&0>=h?a:h>l?a+n-t.collisionHeight:a:h>0?e.top+=h:l>0?e.top-=l:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var i,s,a=t.within,n=a.offset.left+a.scrollLeft,r=a.width,h=a.isWindow?a.scrollLeft:a.offset.left,l=e.left-t.collisionPosition.marginLeft,u=l-h,c=l+t.collisionWidth-r-h,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+d+p+f+t.collisionWidth-r-n,(0>i||o(u)>i)&&(e.left+=d+p+f)):c>0&&(s=e.left-t.collisionPosition.marginLeft+d+p+f-h,(s>0||c>o(s))&&(e.left+=d+p+f))},top:function(e,t){var i,s,a=t.within,n=a.offset.top+a.scrollTop,r=a.height,h=a.isWindow?a.scrollTop:a.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-h,c=l+t.collisionHeight-r-h,d="top"===t.my[1],p=d?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-r-n,e.top+p+f+m>u&&(0>s||o(u)>s)&&(e.top+=p+f+m)):c>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-h,e.top+p+f+m>c&&(i>0||c>o(i))&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,a,n,r=document.getElementsByTagName("body")[0],o=document.createElement("div");t=document.createElement(r?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&e.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(n in s)t.style[n]=s[n];t.appendChild(o),i=r||document.documentElement,i.insertBefore(t,i.firstChild),o.style.cssText="position: absolute; left: 10.7432222px;",a=e(o).offset().left,e.support.offsetFractions=a>10&&11>a,t.innerHTML="",i.removeChild(t)}()})(jQuery);(function(e){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(e(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){e("
    ").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var a=this._uiHash();if(this._trigger("drag",t,a)===!1)return this._mouseUp({}),!1;this.position=a.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,a=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(a=e.ui.ddmanager.drop(this,t)),this.dropped&&(a=this.dropped,this.dropped=!1),"original"!==this.options.helper||e.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&&!a||"valid"===this.options.revert&&a||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,a)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",t)!==!1&&i._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1):!1},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(t){var i=this.options,a=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return a.parents("body").length||a.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),a[0]===this.element[0]||/(fixed|absolute)/.test(a.css("position"))||a.css("position","absolute"),a},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,a,s=this.options;return s.containment?"window"===s.containment?(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):"document"===s.containment?(this.containment=[0,0,e(document).width()-this.helperProportions.width-this.margins.left,(e(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):s.containment.constructor===Array?(this.containment=s.containment,undefined):("parent"===s.containment&&(s.containment=this.helper[0].parentNode),i=e(s.containment),a=i[0],a&&(t="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(a.scrollWidth,a.offsetWidth):a.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(a.scrollHeight,a.offsetHeight):a.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i),undefined):(this.containment=null,undefined)},_convertPositionTo:function(t,i){i||(i=this.position);var a="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:s.scrollTop(),left:s.scrollLeft()}),{top:i.top+this.offset.relative.top*a+this.offset.parent.top*a-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*a,left:i.left+this.offset.relative.left*a+this.offset.parent.left*a-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*a}},_generatePosition:function(t){var i,a,s,n,r=this.options,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=t.pageX,h=t.pageY;return this.offset.scroll||(this.offset.scroll={top:o.scrollTop(),left:o.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(a=this.relative_container.offset(),i=[this.containment[0]+a.left,this.containment[1]+a.top,this.containment[2]+a.left,this.containment[3]+a.top]):i=this.containment,t.pageX-this.offset.click.lefti[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,n=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?n-this.offset.click.left>=i[0]||n-this.offset.click.left>i[2]?n:n-this.offset.click.left>=i[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,i,a){return a=a||this._uiHash(),e.ui.plugin.call(this,t,[i,a]),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,i,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var a=e(this).data("ui-draggable"),s=a.options,n=e.extend({},i,{item:a.element});a.sortables=[],e(s.connectToSortable).each(function(){var i=e.data(this,"ui-sortable");i&&!i.options.disabled&&(a.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,n))})},stop:function(t,i){var a=e(this).data("ui-draggable"),s=e.extend({},i,{item:a.element});e.each(a.sortables,function(){this.instance.isOver?(this.instance.isOver=0,a.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"===a.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,s))})},drag:function(t,i){var a=e(this).data("ui-draggable"),s=this;e.each(a.sortables,function(){var n=!1,r=this;this.instance.positionAbs=a.positionAbs,this.instance.helperProportions=a.helperProportions,this.instance.offset.click=a.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(n=!0,e.each(a.sortables,function(){return this.instance.positionAbs=a.positionAbs,this.instance.helperProportions=a.helperProportions,this.instance.offset.click=a.offset.click,this!==r&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(r.instance.element[0],this.instance.element[0])&&(n=!1),n})),n?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(s).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=a.offset.click.top,this.instance.offset.click.left=a.offset.click.left,this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top,a._trigger("toSortable",t),a.dropped=this.instance.element,a.currentItem=a.element,this.instance.fromOutside=a),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),a._trigger("fromSortable",t),a.dropped=!1)})}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),i=e(this).data("ui-draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor")),t.css("cursor",i.cursor)},stop:function(){var t=e(this).data("ui-draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i){var a=e(i.helper),s=e(this).data("ui-draggable").options;a.css("opacity")&&(s._opacity=a.css("opacity")),a.css("opacity",s.opacity)},stop:function(t,i){var a=e(this).data("ui-draggable").options;a._opacity&&e(i.helper).css("opacity",a._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("ui-draggable");t.scrollParent[0]!==document&&"HTML"!==t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var i=e(this).data("ui-draggable"),a=i.options,s=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(a.axis&&"x"===a.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-t.pageY=0;d--)o=p.snapElements[d].left,l=o+p.snapElements[d].width,h=p.snapElements[d].top,u=h+p.snapElements[d].height,o-m>v||g>l+m||h-m>b||y>u+m||!e.contains(p.snapElements[d].item.ownerDocument,p.snapElements[d].item)?(p.snapElements[d].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[d].item})),p.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(a=m>=Math.abs(h-b),s=m>=Math.abs(u-y),n=m>=Math.abs(o-v),r=m>=Math.abs(l-g),a&&(i.position.top=p._convertPositionTo("relative",{top:h-p.helperProportions.height,left:0}).top-p.margins.top),s&&(i.position.top=p._convertPositionTo("relative",{top:u,left:0}).top-p.margins.top),n&&(i.position.left=p._convertPositionTo("relative",{top:0,left:o-p.helperProportions.width}).left-p.margins.left),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l}).left-p.margins.left)),c=a||s||n||r,"outer"!==f.snapMode&&(a=m>=Math.abs(h-y),s=m>=Math.abs(u-b),n=m>=Math.abs(o-g),r=m>=Math.abs(l-v),a&&(i.position.top=p._convertPositionTo("relative",{top:h,left:0}).top-p.margins.top),s&&(i.position.top=p._convertPositionTo("relative",{top:u-p.helperProportions.height,left:0}).top-p.margins.top),n&&(i.position.left=p._convertPositionTo("relative",{top:0,left:o}).left-p.margins.left),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[d].snapping&&(a||s||n||r||c)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[d].item})),p.snapElements[d].snapping=a||s||n||r||c)}}),e.ui.plugin.add("draggable","stack",{start:function(){var t,i=this.data("ui-draggable").options,a=e.makeArray(e(i.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});a.length&&(t=parseInt(e(a[0]).css("zIndex"),10)||0,e(a).each(function(i){e(this).css("zIndex",t+i)}),this.css("zIndex",t+a.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i){var a=e(i.helper),s=e(this).data("ui-draggable").options;a.css("zIndex")&&(s._zIndex=a.css("zIndex")),a.css("zIndex",s.zIndex)},stop:function(t,i){var a=e(this).data("ui-draggable").options;a._zIndex&&e(i.helper).css("zIndex",a._zIndex)}})})(jQuery);(function(e){function t(e,t,i){return e>t&&t+i>e}e.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},e.ui.ddmanager.droppables[t.scope]=e.ui.ddmanager.droppables[t.scope]||[],e.ui.ddmanager.droppables[t.scope].push(this),t.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var t=0,i=e.ui.ddmanager.droppables[this.options.scope];i.length>t;t++)i[t]===this&&i.splice(t,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,i){"accept"===t&&(this.accept=e.isFunction(i)?i:function(e){return e.is(i)}),e.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var a=i||e.ui.ddmanager.current,s=!1;return a&&(a.currentItem||a.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=e.data(this,"ui-droppable");return t.options.greedy&&!t.options.disabled&&t.options.scope===a.options.scope&&t.accept.call(t.element[0],a.currentItem||a.element)&&e.ui.intersect(a,e.extend(t,{offset:t.element.offset()}),t.options.tolerance)?(s=!0,!1):undefined}),s?!1:this.accept.call(this.element[0],a.currentItem||a.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(a)),this.element):!1):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(e,i,a){if(!i.offset)return!1;var s,n,r=(e.positionAbs||e.position.absolute).left,o=r+e.helperProportions.width,l=(e.positionAbs||e.position.absolute).top,h=l+e.helperProportions.height,u=i.offset.left,d=u+i.proportions.width,c=i.offset.top,p=c+i.proportions.height;switch(a){case"fit":return r>=u&&d>=o&&l>=c&&p>=h;case"intersect":return r+e.helperProportions.width/2>u&&d>o-e.helperProportions.width/2&&l+e.helperProportions.height/2>c&&p>h-e.helperProportions.height/2;case"pointer":return s=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,n=(e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,t(n,c,i.proportions.height)&&t(s,u,i.proportions.width);case"touch":return(l>=c&&p>=l||h>=c&&p>=h||c>l&&h>p)&&(r>=u&&d>=r||o>=u&&d>=o||u>r&&o>d);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var a,s,n=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,o=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(a=0;n.length>a;a++)if(!(n[a].options.disabled||t&&!n[a].accept.call(n[a].element[0],t.currentItem||t.element))){for(s=0;o.length>s;s++)if(o[s]===n[a].element[0]){n[a].proportions.height=0;continue e}n[a].visible="none"!==n[a].element.css("display"),n[a].visible&&("mousedown"===r&&n[a]._activate.call(n[a],i),n[a].offset=n[a].element.offset(),n[a].proportions={width:n[a].element[0].offsetWidth,height:n[a].element[0].offsetHeight})}},drop:function(t,i){var a=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance)&&(a=this._drop.call(this,i)||a),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),a},dragStart:function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var a,s,n,r=e.ui.intersect(t,this,this.options.tolerance),o=!r&&this.isover?"isout":r&&!this.isover?"isover":null;o&&(this.options.greedy&&(s=this.options.scope,n=this.element.parents(":data(ui-droppable)").filter(function(){return e.data(this,"ui-droppable").options.scope===s}),n.length&&(a=e.data(n[0],"ui-droppable"),a.greedyChild="isover"===o)),a&&"isover"===o&&(a.isover=!1,a.isout=!0,a._out.call(a,i)),this[o]=!0,this["isout"===o?"isover":"isout"]=!1,this["isover"===o?"_over":"_out"].call(this,i),a&&"isout"===o&&(a.isout=!1,a.isover=!0,a._over.call(a,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}}})(jQuery);(function(e){function t(e){return parseInt(e,10)||0}function i(e){return!isNaN(parseInt(e,10))}e.widget("ui.resizable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var t,i,s,a,n,r=this,o=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!o.aspectRatio,aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e("
    ").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=o.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},i=0;t.length>i;i++)s=e.trim(t[i]),n="ui-resizable-"+s,a=e("
    "),a.css({zIndex:o.zIndex}),"se"===s&&a.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(a);this._renderAxis=function(t){var i,s,a,n;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=e(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(s=e(this.handles[i],this.element),n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),a=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(a,n),this._proportionallyResize()),e(this.handles[i]).length},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){r.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=a&&a[1]?a[1]:"se")}),o.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){o.disabled||(e(this).removeClass("ui-resizable-autohide"),r._handles.show())}).mouseleave(function(){o.disabled||r.resizing||(e(this).addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(t){var i,s,a=!1;for(i in this.handles)s=e(this.handles[i])[0],(s===t.target||e.contains(s,t.target))&&(a=!0);return!this.options.disabled&&a},_mouseStart:function(i){var s,a,n,r=this.options,o=this.element.position(),h=this.element;return this.resizing=!0,/absolute/.test(h.css("position"))?h.css({position:"absolute",top:h.css("top"),left:h.css("left")}):h.is(".ui-draggable")&&h.css({position:"absolute",top:o.top,left:o.left}),this._renderProxy(),s=t(this.helper.css("left")),a=t(this.helper.css("top")),r.containment&&(s+=e(r.containment).scrollLeft()||0,a+=e(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:a},this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalPosition={left:s,top:a},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===n?this.axis+"-resize":n),h.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(t){var i,s=this.helper,a={},n=this.originalMousePosition,r=this.axis,o=this.position.top,h=this.position.left,l=this.size.width,u=this.size.height,c=t.pageX-n.left||0,d=t.pageY-n.top||0,p=this._change[r];return p?(i=p.apply(this,[t,c,d]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),this.position.top!==o&&(a.top=this.position.top+"px"),this.position.left!==h&&(a.left=this.position.left+"px"),this.size.width!==l&&(a.width=this.size.width+"px"),this.size.height!==u&&(a.height=this.size.height+"px"),s.css(a),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(a)||this._trigger("resize",t,this.ui()),!1):!1},_mouseStop:function(t){this.resizing=!1;var i,s,a,n,r,o,h,l=this.options,u=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),a=s&&e.ui.hasScroll(i[0],"left")?0:u.sizeDiff.height,n=s?0:u.sizeDiff.width,r={width:u.helper.width()-n,height:u.helper.height()-a},o=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,h=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(e.extend(r,{top:h,left:o})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,s,a,n,r,o=this.options;r={minWidth:i(o.minWidth)?o.minWidth:0,maxWidth:i(o.maxWidth)?o.maxWidth:1/0,minHeight:i(o.minHeight)?o.minHeight:0,maxHeight:i(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||e)&&(t=r.minHeight*this.aspectRatio,a=r.minWidth/this.aspectRatio,s=r.maxHeight*this.aspectRatio,n=r.maxWidth/this.aspectRatio,t>r.minWidth&&(r.minWidth=t),a>r.minHeight&&(r.minHeight=a),r.maxWidth>s&&(r.maxWidth=s),r.maxHeight>n&&(r.maxHeight=n)),this._vBoundaries=r},_updateCache:function(e){this.offset=this.helper.offset(),i(e.left)&&(this.position.left=e.left),i(e.top)&&(this.position.top=e.top),i(e.height)&&(this.size.height=e.height),i(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,s=this.size,a=this.axis;return i(e.height)?e.width=e.height*this.aspectRatio:i(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===a&&(e.left=t.left+(s.width-e.width),e.top=null),"nw"===a&&(e.top=t.top+(s.height-e.height),e.left=t.left+(s.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,s=this.axis,a=i(e.width)&&t.maxWidth&&t.maxWidthe.width,o=i(e.height)&&t.minHeight&&t.minHeight>e.height,h=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,u=/sw|nw|w/.test(s),c=/nw|ne|n/.test(s);return r&&(e.width=t.minWidth),o&&(e.height=t.minHeight),a&&(e.width=t.maxWidth),n&&(e.height=t.maxHeight),r&&u&&(e.left=h-t.minWidth),a&&u&&(e.left=h-t.maxWidth),o&&c&&(e.top=l-t.minHeight),n&&c&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var e,t,i,s,a,n=this.helper||this.element;for(e=0;this._proportionallyResizeElements.length>e;e++){if(a=this._proportionallyResizeElements[e],!this.borderDif)for(this.borderDif=[],i=[a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],s=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")],t=0;i.length>t;t++)this.borderDif[t]=(parseInt(i[t],10)||0)+(parseInt(s[t],10)||0);a.css({height:n.height()-this.borderDif[0]-this.borderDif[2]||0,width:n.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("
    "),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize,s=this.originalPosition;return{left:s.left+t,width:i.width-t}},n:function(e,t,i){var s=this.originalSize,a=this.originalPosition;return{top:a.top+i,height:s.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},sw:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,s]))},ne:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},nw:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,s]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).data("ui-resizable"),s=i.options,a=i._proportionallyResizeElements,n=a.length&&/textarea/i.test(a[0].nodeName),r=n&&e.ui.hasScroll(a[0],"left")?0:i.sizeDiff.height,o=n?0:i.sizeDiff.width,h={width:i.size.width-o,height:i.size.height-r},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(h,u&&l?{top:u,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};a&&a.length&&e(a[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var i,s,a,n,r,o,h,l=e(this).data("ui-resizable"),u=l.options,c=l.element,d=u.containment,p=d instanceof e?d.get(0):/parent/.test(d)?c.parent().get(0):d;p&&(l.containerElement=e(p),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(i=e(p),s=[],e(["Top","Right","Left","Bottom"]).each(function(e,a){s[e]=t(i.css("padding"+a))}),l.containerOffset=i.offset(),l.containerPosition=i.position(),l.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},a=l.containerOffset,n=l.containerSize.height,r=l.containerSize.width,o=e.ui.hasScroll(p,"left")?p.scrollWidth:r,h=e.ui.hasScroll(p)?p.scrollHeight:n,l.parentData={element:p,left:a.left,top:a.top,width:o,height:h}))},resize:function(t){var i,s,a,n,r=e(this).data("ui-resizable"),o=r.options,h=r.containerOffset,l=r.position,u=r._aspectRatio||t.shiftKey,c={top:0,left:0},d=r.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(c=h),l.left<(r._helper?h.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-h.left:r.position.left-c.left),u&&(r.size.height=r.size.width/r.aspectRatio),r.position.left=o.helper?h.left:0),l.top<(r._helper?h.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-h.top:r.position.top),u&&(r.size.width=r.size.height*r.aspectRatio),r.position.top=r._helper?h.top:0),r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top,i=Math.abs((r._helper?r.offset.left-c.left:r.offset.left-c.left)+r.sizeDiff.width),s=Math.abs((r._helper?r.offset.top-c.top:r.offset.top-h.top)+r.sizeDiff.height),a=r.containerElement.get(0)===r.element.parent().get(0),n=/relative|absolute/.test(r.containerElement.css("position")),a&&n&&(i-=r.parentData.left),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,u&&(r.size.height=r.size.width/r.aspectRatio)),s+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-s,u&&(r.size.width=r.size.height*r.aspectRatio))},stop:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.containerOffset,a=t.containerPosition,n=t.containerElement,r=e(t.helper),o=r.offset(),h=r.outerWidth()-t.sizeDiff.width,l=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(n.css("position"))&&e(this).css({left:o.left-a.left-s.left,width:h,height:l}),t._helper&&!i.animate&&/static/.test(n.css("position"))&&e(this).css({left:o.left-a.left-s.left,width:h,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("ui-resizable"),i=t.options,s=function(t){e(t).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?s(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],s(i.alsoResize)):e.each(i.alsoResize,function(e){s(e)})},resize:function(t,i){var s=e(this).data("ui-resizable"),a=s.options,n=s.originalSize,r=s.originalPosition,o={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-r.top||0,left:s.position.left-r.left||0},h=function(t,s){e(t).each(function(){var t=e(this),a=e(this).data("ui-resizable-alsoresize"),n={},r=s&&s.length?s:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(e,t){var i=(a[t]||0)+(o[t]||0);i&&i>=0&&(n[t]=i||null)}),t.css(n)})};"object"!=typeof a.alsoResize||a.alsoResize.nodeType?h(a.alsoResize):e.each(a.alsoResize,function(e,t){h(e,t)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.size,a=t.originalSize,n=t.originalPosition,r=t.axis,o="number"==typeof i.grid?[i.grid,i.grid]:i.grid,h=o[0]||1,l=o[1]||1,u=Math.round((s.width-a.width)/h)*h,c=Math.round((s.height-a.height)/l)*l,d=a.width+u,p=a.height+c,f=i.maxWidth&&d>i.maxWidth,m=i.maxHeight&&p>i.maxHeight,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=o,g&&(d+=h),v&&(p+=l),f&&(d-=h),m&&(p-=l),/^(se|s|e)$/.test(r)?(t.size.width=d,t.size.height=p):/^(ne)$/.test(r)?(t.size.width=d,t.size.height=p,t.position.top=n.top-c):/^(sw)$/.test(r)?(t.size.width=d,t.size.height=p,t.position.left=n.left-u):(t.size.width=d,t.size.height=p,t.position.top=n.top-c,t.position.left=n.left-u)}})})(jQuery);(function(e){e.widget("ui.selectable",e.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t=e(i.options.filter,i.element[0]),t.addClass("ui-selectee"),t.each(function(){var t=e(this),i=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=e("
    ")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var i=this,s=this.options;this.opos=[t.pageX,t.pageY],this.options.disabled||(this.selectees=e(s.filter,this.element[0]),this._trigger("start",t),e(s.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=e.data(this,"selectable-item");s.startselected=!0,t.metaKey||t.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",t,{unselecting:s.element}))}),e(t.target).parents().addBack().each(function(){var s,a=e.data(this,"selectable-item");return a?(s=!t.metaKey&&!t.ctrlKey||!a.$element.hasClass("ui-selected"),a.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),a.unselecting=!s,a.selecting=s,a.selected=s,s?i._trigger("selecting",t,{selecting:a.element}):i._trigger("unselecting",t,{unselecting:a.element}),!1):undefined}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var i,s=this,a=this.options,n=this.opos[0],r=this.opos[1],o=t.pageX,h=t.pageY;return n>o&&(i=o,o=n,n=i),r>h&&(i=h,h=r,r=i),this.helper.css({left:n,top:r,width:o-n,height:h-r}),this.selectees.each(function(){var i=e.data(this,"selectable-item"),l=!1;i&&i.element!==s.element[0]&&("touch"===a.tolerance?l=!(i.left>o||n>i.right||i.top>h||r>i.bottom):"fit"===a.tolerance&&(l=i.left>n&&o>i.right&&i.top>r&&h>i.bottom),l?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s._trigger("selecting",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",t,{unselecting:i.element}))),i.selected&&(t.metaKey||t.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",t,{unselecting:i.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",t,{unselected:s.element})}),e(".ui-selecting",this.element[0]).each(function(){var s=e.data(this,"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",t,{selected:s.element})}),this._trigger("stop",t),this.helper.remove(),!1}})})(jQuery);(function(e){function t(e,t,i){return e>t&&t+i>e}function i(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))}e.widget("ui.sortable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===e.axis||i(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,i){"disabled"===t?(this.options[t]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,i){var s=null,a=!1,n=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(t),e(t.target).parents().each(function(){return e.data(this,n.widgetName+"-item")===n?(s=e(this),!1):undefined}),e.data(t.target,n.widgetName+"-item")===n&&(s=e(t.target)),s?!this.options.handle||i||(e(this.options.handle,s).find("*").addBack().each(function(){this===t.target&&(a=!0)}),a)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(t,i,s){var a,n,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",r.cursor),this.storedStylesheet=e("").appendTo(n)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var i,s,a,n,r=this.options,o=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY=0;i--)if(s=this.items[i],a=s.item[0],n=this._intersectsWithPointer(s),n&&s.instance===this.currentContainer&&a!==this.currentItem[0]&&this.placeholder[1===n?"next":"prev"]()[0]!==a&&!e.contains(this.placeholder[0],a)&&("semi-dynamic"===this.options.type?!e.contains(this.element[0],a):!0)){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(t,s),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var s=this,a=this.placeholder.offset(),n=this.options.axis,r={};n&&"x"!==n||(r.left=a.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(r.top=a.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){s._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&s.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!s.length&&t.key&&s.push(t.key+"="),s.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},i.each(function(){s.push(e(t.item||this).attr(t.attribute||"id")||"")}),s},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,s=this.positionAbs.top,a=s+this.helperProportions.height,n=e.left,r=n+e.width,o=e.top,h=o+e.height,l=this.offset.click.top,u=this.offset.click.left,c="x"===this.options.axis||s+l>o&&h>s+l,d="y"===this.options.axis||t+u>n&&r>t+u,p=c&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:t+this.helperProportions.width/2>n&&r>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>o&&h>a-this.helperProportions.height/2},_intersectsWithPointer:function(e){var i="x"===this.options.axis||t(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||t(this.positionAbs.left+this.offset.click.left,e.left,e.width),a=i&&s,n=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return a?this.floating?r&&"right"===r||"down"===n?2:1:n&&("down"===n?2:1):!1},_intersectsWithSides:function(e){var i=t(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),s=t(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),a=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&s||"left"===n&&!s:a&&("down"===a&&i||"up"===a&&!i)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,s,a,n,r=[],o=[],h=this._connectWith();if(h&&t)for(i=h.length-1;i>=0;i--)for(a=e(h[i]),s=a.length-1;s>=0;s--)n=e.data(a[s],this.widgetFullName),n&&n!==this&&!n.options.disabled&&o.push([e.isFunction(n.options.items)?n.options.items.call(n.element):e(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n]);for(o.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(function(){r.push(this)});return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;t.length>i;i++)if(t[i]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,s,a,n,r,o,h,l,u=this.items,c=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(a=e(d[i]),s=a.length-1;s>=0;s--)n=e.data(a[s],this.widgetFullName),n&&n!==this&&!n.options.disabled&&(c.push([e.isFunction(n.options.items)?n.options.items.call(n.element[0],t,{item:this.currentItem}):e(n.options.items,n.element),n]),this.containers.push(n));for(i=c.length-1;i>=0;i--)for(r=c[i][1],o=c[i][0],s=0,l=o.length;l>s;s++)h=e(o[s]),h.data(this.widgetName+"-item",r),u.push({item:h,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(t){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,a,n;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(a=this.options.toleranceElement?e(this.options.toleranceElement,s.item):s.item,t||(s.width=a.outerWidth(),s.height=a.outerHeight()),n=a.offset(),s.left=n.left,s.top=n.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)n=this.containers[i].element.offset(),this.containers[i].containerCache.left=n.left,this.containers[i].containerCache.top=n.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var i,s=t.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=t.currentItem[0].nodeName.toLowerCase(),a=e("<"+s+">",t.document[0]).addClass(i||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===s?t.currentItem.children().each(function(){e("
    ",t.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(a)}):"img"===s&&a.attr("src",t.currentItem.attr("src")),i||a.css("visibility","hidden"),a},update:function(e,a){(!i||s.forcePlaceholderSize)&&(a.height()||a.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),a.width()||a.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_contactContainers:function(s){var a,n,r,o,h,l,u,c,d,p,f=null,m=null;for(a=this.containers.length-1;a>=0;a--)if(!e.contains(this.currentItem[0],this.containers[a].element[0]))if(this._intersectsWith(this.containers[a].containerCache)){if(f&&e.contains(this.containers[a].element[0],f.element[0]))continue;f=this.containers[a],m=a}else this.containers[a].containerCache.over&&(this.containers[a]._trigger("out",s,this._uiHash(this)),this.containers[a].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",s,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(r=1e4,o=null,p=f.floating||i(this.currentItem),h=p?"left":"top",l=p?"width":"height",u=this.positionAbs[h]+this.offset.click[h],n=this.items.length-1;n>=0;n--)e.contains(this.containers[m].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(!p||t(this.positionAbs.top+this.offset.click.top,this.items[n].top,this.items[n].height))&&(c=this.items[n].item.offset()[h],d=!1,Math.abs(c-u)>Math.abs(c+this.items[n][l]-u)&&(d=!0,c+=this.items[n][l]),r>Math.abs(c-u)&&(r=Math.abs(c-u),o=this.items[n],this.direction=d?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[m])return;o?this._rearrange(s,o,null,!0):this._rearrange(s,null,this.containers[m].element,!0),this._trigger("change",s,this._uiHash()),this.containers[m]._trigger("change",s,this._uiHash(this)),this.currentContainer=this.containers[m],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[m]._trigger("over",s,this._uiHash(this)),this.containers[m].containerCache.over=1}},_createHelper:function(t){var i=this.options,s=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||e("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s,a=this.options;"parent"===a.containment&&(a.containment=this.helper[0].parentNode),("document"===a.containment||"window"===a.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e("document"===a.containment?document:window).width()-this.helperProportions.width-this.margins.left,(e("document"===a.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(a.containment)||(t=e(a.containment)[0],i=e(a.containment).offset(),s="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var s="absolute"===t?1:-1,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,n=/(html|body)/i.test(a[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():n?0:a.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():n?0:a.scrollLeft())*s}},_generatePosition:function(t){var i,s,a=this.options,n=t.pageX,r=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.leftthis.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),a.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/a.grid[1])*a.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-a.grid[1]:i+a.grid[1]:i,s=this.originalPageX+Math.round((n-this.originalPageX)/a.grid[0])*a.grid[0],n=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-a.grid[0]:s+a.grid[0]:s)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:o.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:o.scrollLeft())}},_rearrange:function(e,t,i,s){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var a=this.counter;this._delay(function(){a===this.counter&&this.refreshPositions(!s)})},_clear:function(e,t){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&s.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||s.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(s.push(function(e){this._trigger("remove",e,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||s.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(this._trigger("beforeStop",e,this._uiHash()),i=0;s.length>i;i++)s[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!1}if(t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!t){for(i=0;s.length>i;i++)s[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){e.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})})(jQuery);(function(e){var t=0,i={},a={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",a.height=a.paddingTop=a.paddingBottom=a.borderTopWidth=a.borderBottomWidth="show",e.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),t.collapsible||t.active!==!1&&null!=t.active||(t.active=0),this._processPanels(),0>t.active&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e(),content:this.active.length?this.active.next():e()}},_createIcons:function(){var t=this.options.icons;t&&(e("").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?(this._activate(t),undefined):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||this.options.active!==!1||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons()),"disabled"===e&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t),undefined)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCode,a=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:n=this.headers[(s+1)%a];break;case i.LEFT:case i.UP:n=this.headers[(s-1+a)%a];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:n=this.headers[0];break;case i.END:n=this.headers[a-1]}n&&(e(t.target).attr("tabIndex",-1),e(n).attr("tabIndex",0),n.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().focus()},refresh:function(){var t=this.options;this._processPanels(),t.active===!1&&t.collapsible===!0||!this.headers.length?(t.active=!1,this.active=e()):t.active===!1?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,a=this.options,s=a.heightStyle,n=this.element.parent(),r=this.accordionId="ui-accordion-"+(this.element.attr("id")||++t);this.active=this._findActive(a.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(t){var i=e(this),a=i.attr("id"),s=i.next(),n=s.attr("id");a||(a=r+"-header-"+t,i.attr("id",a)),n||(n=r+"-panel-"+t,s.attr("id",n)),i.attr("aria-controls",n),s.attr("aria-labelledby",a)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(a.event),"fill"===s?(i=n.height(),this.element.siblings(":visible").each(function(){var t=e(this),a=t.css("position");"absolute"!==a&&"fixed"!==a&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===s&&(i=0,this.headers.next().each(function(){i=Math.max(i,e(this).css("height","").height())}).height(i))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var i=this.options,a=this.active,s=e(t.currentTarget),n=s[0]===a[0],r=n&&i.collapsible,o=r?e():s.next(),h=a.next(),l={oldHeader:a,oldPanel:h,newHeader:r?e():s,newPanel:o};t.preventDefault(),n&&!i.collapsible||this._trigger("beforeActivate",t,l)===!1||(i.active=r?!1:this.headers.index(s),this.active=n?e():s,this._toggle(l),a.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&a.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),n||(s.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),s.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var i=t.newPanel,a=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=a,this.options.animate?this._animate(i,a,t):(a.hide(),i.show(),this._toggleComplete(t)),a.attr({"aria-expanded":"false","aria-hidden":"true"}),a.prev().attr("aria-selected","false"),i.length&&a.length?a.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(e,t,s){var n,r,o,h=this,l=0,u=e.length&&(!t.length||e.index()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,i,a,s=this.element[0].nodeName.toLowerCase(),n="textarea"===s,r="input"===s;this.isMultiLine=n?!0:r?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[n||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return t=!0,a=!0,i=!0,undefined;t=!1,a=!1,i=!1;var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:t=!0,this._move("previousPage",s);break;case n.PAGE_DOWN:t=!0,this._move("nextPage",s);break;case n.UP:t=!0,this._keyEvent("previous",s);break;case n.DOWN:t=!0,this._keyEvent("next",s);break;case n.ENTER:case n.NUMPAD_ENTER:this.menu.active&&(t=!0,s.preventDefault(),this.menu.select(s));break;case n.TAB:this.menu.active&&this.menu.select(s);break;case n.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(a){if(t)return t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&a.preventDefault(),undefined;if(!i){var s=e.ui.keyCode;switch(a.keyCode){case s.PAGE_UP:this._move("previousPage",a);break;case s.PAGE_DOWN:this._move("nextPage",a);break;case s.UP:this._keyEvent("previous",a);break;case s.DOWN:this._keyEvent("next",a)}}},input:function(e){return a?(a=!1,e.preventDefault(),undefined):(this._searchTimeout(e),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(e),this._change(e),undefined)}}),this._initSource(),this.menu=e("
     
    "+"",N=d?"":"",k=0;7>k;k++)C=(k+u)%7,N+="=5?" class='ui-datepicker-week-end'":"")+">"+""+p[C]+"";for(S+=N+"",A=this._getDaysInMonth(et,Z),et===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,A)),P=(this._getFirstDayOfMonth(et,Z)-u+7)%7,I=Math.ceil((P+A)/7),F=U?this.maxRows>I?this.maxRows:I:I,this.maxRows=F,j=this._daylightSavingAdjust(new Date(et,Z,1-P)),H=0;F>H;H++){for(S+="",E=d?"":"",k=0;7>k;k++)z=g?g.apply(e.input?e.input[0]:null,[j]):[!0,""],L=j.getMonth()!==Z,O=L&&!y||!z[0]||q&&q>j||X&&j>X,E+="",j.setDate(j.getDate()+1),j=this._daylightSavingAdjust(j);S+=E+""}Z++,Z>11&&(Z=0,et++),S+="
    "+this._get(e,"weekHeader")+"
    "+this._get(e,"calculateWeek")(j)+""+(L&&!v?" ":O?""+j.getDate()+"":""+j.getDate()+"")+"
    "+(U?"
    "+(B[0]>0&&w===B[1]-1?"
    ":""):""),D+=S}_+=D}return _+=l,e._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,a,s,n,r,o){var h,l,u,d,c,p,m,f,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="
    ",_="";if(n||!g)_+=""+r[t]+"";else{for(h=a&&a.getFullYear()===i,l=s&&s.getFullYear()===i,_+=""}if(y||(b+=_+(!n&&g&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",n||!v)b+=""+i+"";else{for(d=this._get(e,"yearRange").split(":"),c=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?c+parseInt(e,10):parseInt(e,10); -return isNaN(t)?c:t},m=p(d[0]),f=Math.max(m,p(d[1]||"")),m=a?Math.max(m,a.getFullYear()):m,f=s?Math.min(f,s.getFullYear()):f,e.yearshtml+="",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!n&&g&&v?"":" ")+_),b+="
    "},_adjustInstDate:function(e,t,i){var a=e.drawYear+("Y"===i?t:0),s=e.drawMonth+("M"===i?t:0),n=Math.min(e.selectedDay,this._getDaysInMonth(a,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(a,s,n)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),s=i&&i>t?i:t;return a&&s>a?a:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,a){var s=this._getNumberOfMonths(e),n=this._daylightSavingAdjust(new Date(i,a+(0>t?t:s[0]*s[1]),1));return 0>t&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(e,n)},_isInRange:function(e,t){var i,a,s=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),r=null,o=null,h=this._get(e,"yearRange");return h&&(i=h.split(":"),a=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=a),i[1].match(/[+\-].*/)&&(o+=a)),(!s||t.getTime()>=s.getTime())&&(!n||t.getTime()<=n.getTime())&&(!r||t.getFullYear()>=r)&&(!o||o>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,a){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(a,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.10.3"})(jQuery);(function(e){var t={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},i={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};e.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;0>i&&e(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var i=this;this._isOpen&&this._trigger("beforeClose",t)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||e(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,t){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!t&&this._trigger("focus",e),i},open:function(){var t=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),undefined):(this._isOpen=!0,this.opener=e(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._trigger("open"),undefined)},_focusTabbable:function(){var e=this.element.find("[autofocus]");e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).focus()},_keepFocus:function(t){function i(){var t=this.document[0].activeElement,i=this.uiDialog[0]===t||e.contains(this.uiDialog[0],t);i||this._focusTabbable()}t.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=e("
    ").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),this.close(t),undefined;if(t.keyCode===e.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),a=i.filter(":first"),s=i.filter(":last");t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==a[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(s.focus(1),t.preventDefault()):(a.focus(1),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("
    ").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=e("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(t),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title||e.html(" "),e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=e("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("
    ").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var t=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(i)||e.isArray(i)&&!i.length?(this.uiDialog.removeClass("ui-dialog-buttons"),undefined):(e.each(i,function(i,a){var s,n;a=e.isFunction(a)?{click:a,text:i}:a,a=e.extend({type:"button"},a),s=a.click,a.click=function(){s.apply(t.element[0],arguments)},n={icons:a.icons,text:a.showText},delete a.icons,delete a.showText,e("",a).button(n).appendTo(t.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),undefined)},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var i=this,a=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(a,s){e(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",a,t(s))},drag:function(e,a){i._trigger("drag",e,t(a))},stop:function(s,n){a.position=[n.position.left-i.document.scrollLeft(),n.position.top-i.document.scrollTop()],e(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",s,t(n))}})},_makeResizable:function(){function t(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var i=this,a=this.options,s=a.resizable,n=this.uiDialog.css("position"),r="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:r,start:function(a,s){e(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",a,t(s))},resize:function(e,a){i._trigger("resize",e,t(a))},stop:function(s,n){a.height=e(this).height(),a.width=e(this).width(),e(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",s,t(n))}}).css("position",n)},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(a){var s=this,n=!1,r={};e.each(a,function(e,a){s._setOption(e,a),e in t&&(n=!0),e in i&&(r[e]=a)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(e,t){var i,a,s=this.uiDialog;"dialogClass"===e&&s.removeClass(this.options.dialogClass).addClass(t),"disabled"!==e&&(this._super(e,t),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:""+t}),"draggable"===e&&(i=s.is(":data(ui-draggable)"),i&&!t&&s.draggable("destroy"),!i&&t&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(a=s.is(":data(ui-resizable)"),a&&!t&&s.resizable("destroy"),a&&"string"==typeof t&&s.resizable("option","handles",t),a||t===!1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,a=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),a.minWidth>a.width&&(a.width=a.minWidth),e=this.uiDialog.css({height:"auto",width:a.width}).outerHeight(),t=Math.max(0,a.minHeight-e),i="number"==typeof a.maxHeight?Math.max(0,a.maxHeight-e):"none","auto"===a.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,a.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("
    ").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return e(t.target).closest(".ui-dialog").length?!0:!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=this,i=this.widgetFullName;e.ui.dialog.overlayInstances||this._delay(function(){e.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(a){t._allowInteraction(a)||(a.preventDefault(),e(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=e("
    ").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),e.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(e.ui.dialog.overlayInstances--,e.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),e.ui.dialog.overlayInstances=0,e.uiBackCompat!==!1&&e.widget("ui.dialog",e.ui.dialog,{_position:function(){var t,i=this.options.position,a=[],s=[0,0];i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(a=i.split?i.split(" "):[i[0],i[1]],1===a.length&&(a[1]=a[0]),e.each(["left","top"],function(e,t){+a[e]===a[e]&&(s[e]=a[e],a[e]=t)}),i={my:a[0]+(0>s[0]?s[0]:"+"+s[0])+" "+a[1]+(0>s[1]?s[1]:"+"+s[1]),at:a.join(" ")}),i=e.extend({},e.ui.dialog.prototype.options.position,i)):i=e.ui.dialog.prototype.options.position,t=this.uiDialog.is(":visible"),t||this.uiDialog.show(),this.uiDialog.position(i),t||this.uiDialog.hide()}})})(jQuery);(function(e){e.widget("ui.menu",{version:"1.10.3",defaultElement:"
      ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy(function(e){this.options.disabled&&e.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()},"click .ui-menu-item:has(a)":function(t){var i=e(t.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(t),i.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var i=e(t.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,i)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){e(t.target).closest(".ui-menu").length||this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,a,n,r,o,h=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:h=!1,a=this.previousFilter||"",n=String.fromCharCode(t.keyCode),r=!1,clearTimeout(this.filterTimer),n===a?r=!0:n=a+n,o=RegExp("^"+i(n),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())}),s=r&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s,s.length||(n=String.fromCharCode(t.keyCode),o=RegExp("^"+i(n),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())})),s.length?(this.focus(t,s),s.length>1?(this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i=this.options.icons.submenu,s=this.element.find(this.options.menus);s.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),s=t.prev("a"),a=e("").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);s.attr("aria-haspopup","true").prepend(a),t.attr("aria-labelledby",s.attr("id"))}),t=s.add(this.element),t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=e(this);/[^\-\u2014\u2013\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),this._super(e,t)},focus:function(e,t){var i,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=t.children(".ui-menu"),i.length&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,a,n,r,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,a=t.offset().top-this.activeMenu.offset().top-i-s,n=this.activeMenu.scrollTop(),r=this.activeMenu.height(),o=t.height(),0>a?this.activeMenu.scrollTop(n+a):a+o>r&&this.activeMenu.scrollTop(n+a-r+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this.activeMenu=s},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.children(".ui-menu-item")[t]()),this.focus(i,s)},nextPage:function(t){var i,s,a;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,a=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=e(this),0>i.offset().top-s-a}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),undefined):(this.next(t),undefined)},previousPage:function(t){var i,s,a;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,a=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=e(this),i.offset().top-s+a>0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item").first())),undefined):(this.next(t),undefined)},_hasScroll:function(){return this.element.outerHeight()
    ").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){return e===t?this.options.value:(this.options.value=this._constrainedValue(e),this._refreshValue(),t)},_constrainedValue:function(e){return e===t&&(e=this.options.value),this.indeterminate=e===!1,"number"!=typeof e&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("
    ").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}})})(jQuery);(function(e){var t=5;e.widget("ui.slider",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i,s=this.options,a=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),n="",r=[];for(i=s.values&&s.values.length||1,a.length>i&&(a.slice(i).remove(),a=a.slice(0,i)),t=a.length;i>t;t++)r.push(n);this.handles=a.add(e(r.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,i="";t.range?(t.range===!0&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=e("
    ").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):this.range=e([])},_setupEvents:function(){var e=this.handles.add(this.range).filter("a");this._off(e),this._on(e,this._handleEvents),this._hoverable(e),this._focusable(e)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var i,s,a,n,r,o,h,l,u=this,c=this.options;return c.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},s=this._normValueFromMouse(i),a=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var i=Math.abs(s-u.values(t));(a>i||a===i&&(t===u._lastChangedValue||u.values(t)===c.min))&&(a=i,n=e(this),r=t)}),o=this._start(t,r),o===!1?!1:(this._mouseSliding=!0,this._handleIndex=r,n.addClass("ui-state-active").focus(),h=n.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-h.left-n.width()/2,top:t.pageY-h.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,s,a,n;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/t,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),a=this._valueMax()-this._valueMin(),n=this._valueMin()+s*a,this._trimAlignValue(n)},_start:function(e,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",e,i)},_slide:function(e,t,i){var s,a,n;this.options.values&&this.options.values.length?(s=this.values(t?0:1),2===this.options.values.length&&this.options.range===!0&&(0===t&&i>s||1===t&&s>i)&&(i=s),i!==this.values(t)&&(a=this.values(),a[t]=i,n=this._trigger("slide",e,{handle:this.handles[t],value:i,values:a}),s=this.values(t?0:1),n!==!1&&this.values(t,i,!0))):i!==this.value()&&(n=this._trigger("slide",e,{handle:this.handles[t],value:i}),n!==!1&&this.value(i))},_stop:function(e,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",e,i)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._lastChangedValue=t,this._trigger("change",e,i)}},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0),undefined):this._value()},values:function(t,i){var s,a,n;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t),undefined;if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(s=this.options.values,a=arguments[0],n=0;s.length>n;n+=1)s[n]=this._trimAlignValue(a[n]),this._change(null,n);this._refreshValue()},_setOption:function(t,i){var s,a=0;switch("range"===t&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(a=this.options.values.length),e.Widget.prototype._setOption.apply(this,arguments),t){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=0;a>s;s+=1)this._change(null,s);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,s;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,s=e-i;return 2*Math.abs(i)>=t&&(s+=i>0?t:-t),parseFloat(s.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var t,i,s,a,n,r=this.options.range,o=this.options,h=this,l=this._animateOff?!1:o.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(s){i=100*((h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin())),u["horizontal"===h.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[l?"animate":"css"](u,o.animate),h.options.range===!0&&("horizontal"===h.orientation?(0===s&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},o.animate),1===s&&h.range[l?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:o.animate})):(0===s&&h.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},o.animate),1===s&&h.range[l?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:o.animate}))),t=i}):(s=this.value(),a=this._valueMin(),n=this._valueMax(),i=n!==a?100*((s-a)/(n-a)):0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](u,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range[l?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:o.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:o.animate}))},_handleEvents:{keydown:function(i){var s,a,n,r,o=e(i.target).data("ui-slider-handle-index");switch(i.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i.preventDefault(),!this._keySliding&&(this._keySliding=!0,e(i.target).addClass("ui-state-active"),s=this._start(i,o),s===!1))return}switch(r=this.options.step,a=n=this.options.values&&this.options.values.length?this.values(o):this.value(),i.keyCode){case e.ui.keyCode.HOME:n=this._valueMin();break;case e.ui.keyCode.END:n=this._valueMax();break;case e.ui.keyCode.PAGE_UP:n=this._trimAlignValue(a+(this._valueMax()-this._valueMin())/t);break;case e.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(a-(this._valueMax()-this._valueMin())/t);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(a===this._valueMax())return;n=this._trimAlignValue(a+r);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(a===this._valueMin())return;n=this._trimAlignValue(a-r)}this._slide(i,o,n)},click:function(e){e.preventDefault()},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),e(t.target).removeClass("ui-state-active"))}}})})(jQuery);(function(e){function t(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.spinner",{version:"1.10.3",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},i=this.element;return e.each(["min","max","step"],function(e,s){var a=i.attr(s);void 0!==a&&a.length&&(t[s]=a)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e),void 0)},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){var e=this.element[0]===this.document[0].activeElement;e||(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(t)!==!1&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return e(t.currentTarget).hasClass("ui-state-active")?this._start(t)===!1?!1:(this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*e.height())&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var i=this.options,s=e.ui.keyCode;switch(t.keyCode){case s.UP:return this._repeat(null,1,t),!0;case s.DOWN:return this._repeat(null,-1,t),!0;case s.PAGE_UP:return this._repeat(null,i.page,t),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""+""+""+""+""},_start:function(e){return this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?e.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,s=this.options;return t=null!==s.min?s.min:0,i=e-t,i=Math.round(i/s.step)*s.step,e=t+i,e=parseFloat(e.toFixed(this._precision())),null!==s.max&&e>s.max?s.max:null!==s.min&&s.min>e?s.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){if("culture"===e||"numberFormat"===e){var i=this._parse(this.element.val());return this.options[e]=t,this.element.val(this._format(i)),void 0}("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)),this._super(e,t),"disabled"===e&&(t?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:t(function(e){this._super(e),this._value(this.element.val())}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(e,t){var i;""!==e&&(i=this._parse(e),null!==i&&(t||(i=this._adjustValue(i)),e=this._format(i))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:t(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:t(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:t(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?(t(this._value).call(this,e),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})})(jQuery);(function(e,t){function i(){return++a}function s(e){return e.hash.length>1&&decodeURIComponent(e.href.replace(n,""))===decodeURIComponent(location.href.replace(n,""))}var a=0,n=/#.*$/;e.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var t=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),i.active=this._initialActive(),e.isArray(i.disabled)&&(i.disabled=e.unique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var i=this.options.active,s=this.options.collapsible,a=location.hash.substring(1);return null===i&&(a&&this.tabs.each(function(s,n){return e(n).attr("aria-controls")===a?(i=s,!1):t}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===i||-1===i)&&(i=this.tabs.length?0:!1)),i!==!1&&(i=this.tabs.index(this.tabs.eq(i)),-1===i&&(i=s?!1:0)),!s&&i===!1&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(i){var s=e(this.document[0].activeElement).closest("li"),a=this.tabs.index(s),n=!0;if(!this._handlePageNav(i)){switch(i.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:a++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:n=!1,a--;break;case e.ui.keyCode.END:a=this.anchors.length-1;break;case e.ui.keyCode.HOME:a=0;break;case e.ui.keyCode.SPACE:return i.preventDefault(),clearTimeout(this.activating),this._activate(a),t;case e.ui.keyCode.ENTER:return i.preventDefault(),clearTimeout(this.activating),this._activate(a===this.options.active?!1:a),t;default:return}i.preventDefault(),clearTimeout(this.activating),a=this._focusNextTab(a,n),i.ctrlKey||(s.attr("aria-selected","false"),this.tabs.eq(a).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",a)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(i){return i.altKey&&i.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):i.altKey&&i.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):t},_findNextTab:function(t,i){function s(){return t>a&&(t=0),0>t&&(t=a),t}for(var a=this.tabs.length-1;-1!==e.inArray(s(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,i){return"active"===e?(this._activate(i),t):"disabled"===e?(this._setupDisabled(i),t):(this._super(e,i),"collapsible"===e&&(this.element.toggleClass("ui-tabs-collapsible",i),i||this.options.active!==!1||this._activate(0)),"event"===e&&this._setupEvents(i),"heightStyle"===e&&this._setupHeightStyle(i),t)},_tabId:function(e){return e.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=e(),this.anchors.each(function(i,a){var n,r,o,h=e(a).uniqueId().attr("id"),l=e(a).closest("li"),u=l.attr("aria-controls");s(a)?(n=a.hash,r=t.element.find(t._sanitizeSelector(n))):(o=t._tabId(l),n="#"+o,r=t.element.find(n),r.length||(r=t._createPanel(o),r.insertAfter(t.panels[i-1]||t.tablist)),r.attr("aria-live","polite")),r.length&&(t.panels=t.panels.add(r)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":n.substring(1),"aria-labelledby":h}),r.attr("aria-labelledby",h)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("
    ").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i,s=0;i=this.tabs[s];s++)t===!0||-1!==e.inArray(s,t)?e(i).addClass("ui-state-disabled").attr("aria-disabled","true"):e(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={click:function(e){e.preventDefault()}};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,s=this.element.parent();"fill"===t?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),s=t.css("position");"absolute"!==s&&"fixed"!==s&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,s=this.active,a=e(t.currentTarget),n=a.closest("li"),r=n[0]===s[0],o=r&&i.collapsible,h=o?e():this._getPanelForTab(n),l=s.length?this._getPanelForTab(s):e(),u={oldTab:s,oldPanel:l,newTab:o?e():n,newPanel:h};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||r&&!i.collapsible||this._trigger("beforeActivate",t,u)===!1||(i.active=o?!1:this.tabs.index(n),this.active=r?e():n,this.xhr&&this.xhr.abort(),l.length||h.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(n),t),this._toggle(t,u))},_toggle:function(t,i){function s(){n.running=!1,n._trigger("activate",t,i)}function a(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&n.options.show?n._show(r,n.options.show,s):(r.show(),s())}var n=this,r=i.newPanel,o=i.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o.hide(),a()),o.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),r.length&&o.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var i,s=this._findActive(t);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var s=this.options.disabled;s!==!1&&(i===t?s=!1:(i=this._getIndex(i),s=e.isArray(s)?e.map(s,function(e){return e!==i?e:null}):e.map(this.tabs,function(e,t){return t!==i?t:null})),this._setupDisabled(s))},disable:function(i){var s=this.options.disabled;if(s!==!0){if(i===t)s=!0;else{if(i=this._getIndex(i),-1!==e.inArray(i,s))return;s=e.isArray(s)?e.merge([i],s).sort():[i]}this._setupDisabled(s)}},load:function(t,i){t=this._getIndex(t);var a=this,n=this.tabs.eq(t),r=n.find(".ui-tabs-anchor"),o=this._getPanelForTab(n),h={tab:n,panel:o};s(r[0])||(this.xhr=e.ajax(this._ajaxSettings(r,i,h)),this.xhr&&"canceled"!==this.xhr.statusText&&(n.addClass("ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.success(function(e){setTimeout(function(){o.html(e),a._trigger("load",i,h)},1)}).complete(function(e,t){setTimeout(function(){"abort"===t&&a.panels.stop(!1,!0),n.removeClass("ui-tabs-loading"),o.removeAttr("aria-busy"),e===a.xhr&&delete a.xhr},1)})))},_ajaxSettings:function(t,i,s){var a=this;return{url:t.attr("href"),beforeSend:function(t,n){return a._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:n},s))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})})(jQuery);(function(e){function t(t,i){var s=(t.attr("aria-describedby")||"").split(/\s+/);s.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",e.trim(s.join(" ")))}function i(t){var i=t.data("ui-tooltip-id"),s=(t.attr("aria-describedby")||"").split(/\s+/),a=e.inArray(i,s);-1!==a&&s.splice(a,1),t.removeData("ui-tooltip-id"),s=e.trim(s.join(" ")),s?t.attr("aria-describedby",s):t.removeAttr("aria-describedby")}var s=0;e.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var t=e(this).attr("title")||"";return e("").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(t,i){var s=this;return"disabled"===t?(this[i?"_disable":"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&e.each(this.tooltips,function(e,t){s._updateContent(t)}),void 0)},_disable:function(){var t=this;e.each(this.tooltips,function(i,s){var a=e.Event("blur");a.target=a.currentTarget=s[0],t.close(a,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,s=e(t?t.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&s.parents().each(function(){var t,s=e(this);s.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.currentTarget=this,i.close(t,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._updateContent(s,t))},_updateContent:function(e,t){var i,s=this.options.content,a=this,n=t?t.type:null;return"string"==typeof s?this._open(t,e,s):(i=s.call(e[0],function(i){e.data("ui-tooltip-open")&&a._delay(function(){t&&(t.type=n),this._open(t,e,i)})}),i&&this._open(t,e,i),void 0)},_open:function(i,s,a){function n(e){l.of=e,r.is(":hidden")||r.position(l)}var r,o,h,l=e.extend({},this.options.position);if(a){if(r=this._find(s),r.length)return r.find(".ui-tooltip-content").html(a),void 0;s.is("[title]")&&(i&&"mouseover"===i.type?s.attr("title",""):s.removeAttr("title")),r=this._tooltip(s),t(s,r.attr("id")),r.find(".ui-tooltip-content").html(a),this.options.track&&i&&/^mouse/.test(i.type)?(this._on(this.document,{mousemove:n}),n(i)):r.position(e.extend({of:s},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){r.is(":visible")&&(n(l.of),clearInterval(h))},e.fx.interval)),this._trigger("open",i,{tooltip:r}),o={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var i=e.Event(t);i.currentTarget=s[0],this.close(i,!0)}},remove:function(){this._removeTooltip(r)}},i&&"mouseover"!==i.type||(o.mouseleave="close"),i&&"focusin"!==i.type||(o.focusout="close"),this._on(!0,s,o)}},close:function(t){var s=this,a=e(t?t.currentTarget:this.element),n=this._find(a);this.closing||(clearInterval(this.delayedShow),a.data("ui-tooltip-title")&&a.attr("title",a.data("ui-tooltip-title")),i(a),n.stop(!0),this._hide(n,this.options.hide,function(){s._removeTooltip(e(this))}),a.removeData("ui-tooltip-open"),this._off(a,"mouseleave focusout keyup"),a[0]!==this.element[0]&&this._off(a,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,i){e(i.element).attr("title",i.title),delete s.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:n}),this.closing=!1)},_tooltip:function(t){var i="ui-tooltip-"+s++,a=e("
    ").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return e("
    ").addClass("ui-tooltip-content").appendTo(a),a.appendTo(this.document[0].body),this.tooltips[i]=t,a},_find:function(t){var i=t.data("ui-tooltip-id");return i?e("#"+i):e()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(i,s){var a=e.Event("blur");a.target=a.currentTarget=s[0],t.close(a,!0),e("#"+i).remove(),s.data("ui-tooltip-title")&&(s.attr("title",s.data("ui-tooltip-title")),s.removeData("ui-tooltip-title"))})}})})(jQuery);(function(e,t){var i="ui-effects-";e.effects={effect:{}},function(e,t){function i(e,t,i){var s=c[t.type]||{};return null==e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:e>s.max?s.max:e)}function s(i){var s=l(),a=s._rgba=[];return i=i.toLowerCase(),f(h,function(e,n){var r,o=n.re.exec(i),h=o&&n.parse(o),l=n.space||"rgba";return h?(r=s[l](h),s[u[l].cache]=r[u[l].cache],a=s._rgba=r._rgba,!1):t}),a.length?("0,0,0,0"===a.join()&&e.extend(a,n.transparent),s):n[i]}function a(e,t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var n,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",o=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,s,a){return new e.Color.fn.parse(t,i,s,a)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},p=e("

    ")[0],f=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(a,r,o,h){if(a===t)return this._rgba=[null,null,null,null],this;(a.jquery||a.nodeType)&&(a=e(a).css(r),r=t);var c=this,d=e.type(a),p=this._rgba=[];return r!==t&&(a=[a,r,o,h],d="array"),"string"===d?this.parse(s(a)||n._default):"array"===d?(f(u.rgba.props,function(e,t){p[t.idx]=i(a[t.idx],t)}),this):"object"===d?(a instanceof l?f(u,function(e,t){a[t.cache]&&(c[t.cache]=a[t.cache].slice())}):f(u,function(t,s){var n=s.cache;f(s.props,function(e,t){if(!c[n]&&s.to){if("alpha"===e||null==a[e])return;c[n]=s.to(c._rgba)}c[n][t.idx]=i(a[e],t,!0)}),c[n]&&0>e.inArray(null,c[n].slice(0,3))&&(c[n][3]=1,s.from&&(c._rgba=s.from(c[n])))}),this):t},is:function(e){var i=l(e),s=!0,a=this;return f(u,function(e,n){var r,o=i[n.cache];return o&&(r=a[n.cache]||n.to&&n.to(a._rgba)||[],f(n.props,function(e,i){return null!=o[i.idx]?s=o[i.idx]===r[i.idx]:t})),s}),s},_space:function(){var e=[],t=this;return f(u,function(i,s){t[s.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var s=l(e),a=s._space(),n=u[a],r=0===this.alpha()?l("transparent"):this,o=r[n.cache]||n.to(r._rgba),h=o.slice();return s=s[n.cache],f(n.props,function(e,a){var n=a.idx,r=o[n],l=s[n],u=c[a.type]||{};null!==l&&(null===r?h[n]=l:(u.mod&&(l-r>u.mod/2?r+=u.mod:r-l>u.mod/2&&(r-=u.mod)),h[n]=i((l-r)*t+r,a)))}),this[a](h)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),a=l(t)._rgba;return l(e.map(i,function(e,t){return(1-s)*a[t]+s*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,s=e[0]/255,a=e[1]/255,n=e[2]/255,r=e[3],o=Math.max(s,a,n),h=Math.min(s,a,n),l=o-h,u=o+h,c=.5*u;return t=h===o?0:s===o?60*(a-n)/l+360:a===o?60*(n-s)/l+120:60*(s-a)/l+240,i=0===l?0:.5>=c?l/u:l/(2-u),[Math.round(t)%360,i,c,null==r?1:r]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],s=e[2],n=e[3],r=.5>=s?s*(1+i):s+i-s*i,o=2*s-r;return[Math.round(255*a(o,r,t+1/3)),Math.round(255*a(o,r,t)),Math.round(255*a(o,r,t-1/3)),n]},f(u,function(s,a){var n=a.props,r=a.cache,h=a.to,u=a.from;l.fn[s]=function(s){if(h&&!this[r]&&(this[r]=h(this._rgba)),s===t)return this[r].slice();var a,o=e.type(s),c="array"===o||"object"===o?s:arguments,d=this[r].slice();return f(n,function(e,t){var s=c["object"===o?e:t.idx];null==s&&(s=d[t.idx]),d[t.idx]=i(s,t)}),u?(a=l(u(d)),a[r]=d,a):l(d)},f(n,function(t,i){l.fn[t]||(l.fn[t]=function(a){var n,r=e.type(a),h="alpha"===t?this._hsla?"hsla":"rgba":s,l=this[h](),u=l[i.idx];return"undefined"===r?u:("function"===r&&(a=a.call(this,u),r=e.type(a)),null==a&&i.empty?this:("string"===r&&(n=o.exec(a),n&&(a=u+parseFloat(n[2])*("+"===n[1]?1:-1))),l[i.idx]=a,this[h](l)))})})}),l.hook=function(t){var i=t.split(" ");f(i,function(t,i){e.cssHooks[i]={set:function(t,a){var n,r,o="";if("transparent"!==a&&("string"!==e.type(a)||(n=s(a)))){if(a=l(n||a),!d.rgba&&1!==a._rgba[3]){for(r="backgroundColor"===i?t.parentNode:t;(""===o||"transparent"===o)&&r&&r.style;)try{o=e.css(r,"backgroundColor"),r=r.parentNode}catch(h){}a=a.blend(o&&"transparent"!==o?o:"_default")}a=a.toRgbaString()}try{t.style[i]=a}catch(h){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook(r),e.cssHooks.borderColor={expand:function(e){var t={};return f(["Top","Right","Bottom","Left"],function(i,s){t["border"+s+"Color"]=e}),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(t){var i,s,a=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(a&&a.length&&a[0]&&a[a[0]])for(s=a.length;s--;)i=a[s],"string"==typeof a[i]&&(n[e.camelCase(i)]=a[i]);else for(i in a)"string"==typeof a[i]&&(n[i]=a[i]);return n}function s(t,i){var s,a,r={};for(s in i)a=i[s],t[s]!==a&&(n[s]||(e.fx.step[s]||!isNaN(parseFloat(a)))&&(r[s]=a));return r}var a=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(jQuery.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,n,r,o){var h=e.speed(n,r,o);return this.queue(function(){var n,r=e(this),o=r.attr("class")||"",l=h.children?r.find("*").addBack():r;l=l.map(function(){var t=e(this);return{el:t,start:i(this)}}),n=function(){e.each(a,function(e,i){t[i]&&r[i+"Class"](t[i])})},n(),l=l.map(function(){return this.end=i(this.el[0]),this.diff=s(this.start,this.end),this}),r.attr("class",o),l=l.map(function(){var t=this,i=e.Deferred(),s=e.extend({},h,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()}),e.when.apply(e,l.get()).done(function(){n(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),h.complete.call(r[0])})})},e.fn.extend({addClass:function(t){return function(i,s,a,n){return s?e.effects.animateClass.call(this,{add:i},s,a,n):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,s,a,n){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},s,a,n):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(i){return function(s,a,n,r,o){return"boolean"==typeof a||a===t?n?e.effects.animateClass.call(this,a?{add:s}:{remove:s},n,r,o):i.apply(this,arguments):e.effects.animateClass.call(this,{toggle:s},a,n,r)}}(e.fn.toggleClass),switchClass:function(t,i,s,a,n){return e.effects.animateClass.call(this,{add:i,remove:t},s,a,n)}})}(),function(){function s(t,i,s,a){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(a=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(a=s,s=i,i={}),e.isFunction(s)&&(a=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.fx.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=a||i.complete,t}function a(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?e.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}e.extend(e.effects,{version:"1.10.3",save:function(e,t){for(var s=0;t.length>s;s++)null!==t[s]&&e.data(i+t[s],e[0].style[t[s]])},restore:function(e,s){var a,n;for(n=0;s.length>n;n++)null!==s[n]&&(a=e.data(i+s[n]),a===t&&(a=""),e.css(s[n],a))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,s;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},s=e("

    ").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),a={width:t.width(),height:t.height()},n=document.activeElement;try{n.id}catch(r){n=document.body}return t.wrap(s),(t[0]===n||e.contains(t[0],n))&&e(n).focus(),s=t.parent(),"static"===t.css("position")?(s.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(a),s.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).focus()),t},setTransition:function(t,i,s,a){return a=a||{},e.each(i,function(e,i){var n=t.cssUnit(i);n[0]>0&&(a[i]=n[0]*s+n[1])}),a}}),e.fn.extend({effect:function(){function t(t){function s(){e.isFunction(n)&&n.call(a[0]),e.isFunction(t)&&t()}var a=e(this),n=i.complete,o=i.mode;(a.is(":hidden")?"hide"===o:"show"===o)?(a[o](),s()):r.call(a[0],i,s)}var i=s.apply(this,arguments),a=i.mode,n=i.queue,r=e.effects.effect[i.effect];return e.fx.off||!r?a?this[a](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):n===!1?this.each(t):this.queue(n||"fx",t)},show:function(e){return function(t){if(a(t))return e.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(e.fn.show),hide:function(e){return function(t){if(a(t))return e.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(e.fn.hide),toggle:function(e){return function(t){if(a(t)||"boolean"==typeof t)return e.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])}),s}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}()})(jQuery);(function(e){var t=/up|down|vertical/,i=/up|left|vertical|horizontal/;e.effects.effect.blind=function(a,s){var n,r,o,l=e(this),h=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(l,a.mode||"hide"),d=a.direction||"up",c=t.test(d),p=c?"height":"width",f=c?"top":"left",m=i.test(d),g={},v="show"===u;l.parent().is(".ui-effects-wrapper")?e.effects.save(l.parent(),h):e.effects.save(l,h),l.show(),n=e.effects.createWrapper(l).css({overflow:"hidden"}),r=n[p](),o=parseFloat(n.css(f))||0,g[p]=v?r:0,m||(l.css(c?"bottom":"right",0).css(c?"top":"left","auto").css({position:"absolute"}),g[f]=v?o:r+o),v&&(n.css(p,0),m||n.css(f,o+r)),n.animate(g,{duration:a.duration,easing:a.easing,queue:!1,complete:function(){"hide"===u&&l.hide(),e.effects.restore(l,h),e.effects.removeWrapper(l),s()}})}})(jQuery);(function(e){e.effects.effect.bounce=function(t,i){var a,s,n,r=e(this),o=["position","top","bottom","left","right","height","width"],l=e.effects.setMode(r,t.mode||"effect"),h="hide"===l,u="show"===l,d=t.direction||"up",c=t.distance,p=t.times||5,f=2*p+(u||h?1:0),m=t.duration/f,g=t.easing,v="up"===d||"down"===d?"top":"left",y="up"===d||"left"===d,b=r.queue(),_=b.length;for((u||h)&&o.push("opacity"),e.effects.save(r,o),r.show(),e.effects.createWrapper(r),c||(c=r["top"===v?"outerHeight":"outerWidth"]()/3),u&&(n={opacity:1},n[v]=0,r.css("opacity",0).css(v,y?2*-c:2*c).animate(n,m,g)),h&&(c/=Math.pow(2,p-1)),n={},n[v]=0,a=0;p>a;a++)s={},s[v]=(y?"-=":"+=")+c,r.animate(s,m,g).animate(n,m,g),c=h?2*c:c/2;h&&(s={opacity:0},s[v]=(y?"-=":"+=")+c,r.animate(s,m,g)),r.queue(function(){h&&r.hide(),e.effects.restore(r,o),e.effects.removeWrapper(r),i()}),_>1&&b.splice.apply(b,[1,0].concat(b.splice(_,f+1))),r.dequeue()}})(jQuery);(function(e){e.effects.effect.clip=function(t,i){var a,s,n,r=e(this),o=["position","top","bottom","left","right","height","width"],l=e.effects.setMode(r,t.mode||"hide"),h="show"===l,u=t.direction||"vertical",d="vertical"===u,c=d?"height":"width",p=d?"top":"left",f={};e.effects.save(r,o),r.show(),a=e.effects.createWrapper(r).css({overflow:"hidden"}),s="IMG"===r[0].tagName?a:r,n=s[c](),h&&(s.css(c,0),s.css(p,n/2)),f[c]=h?n:0,f[p]=h?0:n/2,s.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){h||r.hide(),e.effects.restore(r,o),e.effects.removeWrapper(r),i()}})}})(jQuery);(function(e){e.effects.effect.drop=function(t,i){var a,s=e(this),n=["position","top","bottom","left","right","opacity","height","width"],r=e.effects.setMode(s,t.mode||"hide"),o="show"===r,l=t.direction||"left",h="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l?"pos":"neg",d={opacity:o?1:0};e.effects.save(s,n),s.show(),e.effects.createWrapper(s),a=t.distance||s["top"===h?"outerHeight":"outerWidth"](!0)/2,o&&s.css("opacity",0).css(h,"pos"===u?-a:a),d[h]=(o?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+a,s.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&s.hide(),e.effects.restore(s,n),e.effects.removeWrapper(s),i()}})}})(jQuery);(function(e){e.effects.effect.explode=function(t,i){function s(){b.push(this),b.length===d*c&&a()}function a(){p.css({visibility:"visible"}),e(b).remove(),m||p.hide(),i()}var n,r,o,l,h,u,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=d,p=e(this),f=e.effects.setMode(p,t.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/c),y=Math.ceil(p.outerHeight()/d),b=[];for(n=0;d>n;n++)for(l=g.top+n*y,u=n-(d-1)/2,r=0;c>r;r++)o=g.left+r*v,h=r-(c-1)/2,p.clone().appendTo("body").wrap("
    ").css({position:"absolute",visibility:"visible",left:-r*v,top:-n*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:o+(m?h*v:0),top:l+(m?u*y:0),opacity:m?0:1}).animate({left:o+(m?0:h*v),top:l+(m?0:u*y),opacity:m?1:0},t.duration||500,t.easing,s)}})(jQuery);(function(e){e.effects.effect.fade=function(t,i){var s=e(this),a=e.effects.setMode(s,t.mode||"toggle");s.animate({opacity:a},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}})(jQuery);(function(e){e.effects.effect.fold=function(t,i){var s,a,n=e(this),r=["position","top","bottom","left","right","height","width"],o=e.effects.setMode(n,t.mode||"hide"),l="show"===o,h="hide"===o,u=t.size||15,d=/([0-9]+)%/.exec(u),c=!!t.horizFirst,p=l!==c,f=p?["width","height"]:["height","width"],m=t.duration/2,g={},v={};e.effects.save(n,r),n.show(),s=e.effects.createWrapper(n).css({overflow:"hidden"}),a=p?[s.width(),s.height()]:[s.height(),s.width()],d&&(u=parseInt(d[1],10)/100*a[h?0:1]),l&&s.css(c?{height:0,width:u}:{height:u,width:0}),g[f[0]]=l?a[0]:u,v[f[1]]=l?a[1]:0,s.animate(g,m,t.easing).animate(v,m,t.easing,function(){h&&n.hide(),e.effects.restore(n,r),e.effects.removeWrapper(n),i()})}})(jQuery);(function(e){e.effects.effect.highlight=function(t,i){var s=e(this),a=["backgroundImage","backgroundColor","opacity"],n=e.effects.setMode(s,t.mode||"show"),r={backgroundColor:s.css("backgroundColor")};"hide"===n&&(r.opacity=0),e.effects.save(s,a),s.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===n&&s.hide(),e.effects.restore(s,a),i()}})}})(jQuery);(function(e){e.effects.effect.pulsate=function(t,i){var s,a=e(this),n=e.effects.setMode(a,t.mode||"show"),r="show"===n,o="hide"===n,l=r||"hide"===n,h=2*(t.times||5)+(l?1:0),u=t.duration/h,d=0,c=a.queue(),p=c.length;for((r||!a.is(":visible"))&&(a.css("opacity",0).show(),d=1),s=1;h>s;s++)a.animate({opacity:d},u,t.easing),d=1-d;a.animate({opacity:d},u,t.easing),a.queue(function(){o&&a.hide(),i()}),p>1&&c.splice.apply(c,[1,0].concat(c.splice(p,h+1))),a.dequeue()}})(jQuery);(function(e){e.effects.effect.puff=function(t,i){var s=e(this),a=e.effects.setMode(s,t.mode||"hide"),n="hide"===a,r=parseInt(t.percent,10)||150,o=r/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:a,complete:i,percent:n?r:100,from:n?h:{height:h.height*o,width:h.width*o,outerHeight:h.outerHeight*o,outerWidth:h.outerWidth*o}}),s.effect(t)},e.effects.effect.scale=function(t,i){var s=e(this),a=e.extend(!0,{},t),n=e.effects.setMode(s,t.mode||"effect"),r=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===n?0:100),o=t.direction||"both",h=t.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},u={y:"horizontal"!==o?r/100:1,x:"vertical"!==o?r/100:1};a.effect="size",a.queue=!1,a.complete=i,"effect"!==n&&(a.origin=h||["middle","center"],a.restore=!0),a.from=t.from||("show"===n?{height:0,width:0,outerHeight:0,outerWidth:0}:l),a.to={height:l.height*u.y,width:l.width*u.x,outerHeight:l.outerHeight*u.y,outerWidth:l.outerWidth*u.x},a.fade&&("show"===n&&(a.from.opacity=0,a.to.opacity=1),"hide"===n&&(a.from.opacity=1,a.to.opacity=0)),s.effect(a)},e.effects.effect.size=function(t,i){var s,a,n,r=e(this),o=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],u=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(r,t.mode||"effect"),f=t.restore||"effect"!==p,m=t.scale||"both",g=t.origin||["middle","center"],v=r.css("position"),y=f?o:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&r.show(),s={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===t.mode&&"show"===p?(r.from=t.to||b,r.to=t.from||s):(r.from=t.from||("show"===p?b:s),r.to=t.to||("hide"===p?b:s)),n={from:{y:r.from.height/s.height,x:r.from.width/s.width},to:{y:r.to.height/s.height,x:r.to.width/s.width}},("box"===m||"both"===m)&&(n.from.y!==n.to.y&&(y=y.concat(d),r.from=e.effects.setTransition(r,d,n.from.y,r.from),r.to=e.effects.setTransition(r,d,n.to.y,r.to)),n.from.x!==n.to.x&&(y=y.concat(c),r.from=e.effects.setTransition(r,c,n.from.x,r.from),r.to=e.effects.setTransition(r,c,n.to.x,r.to))),("content"===m||"both"===m)&&n.from.y!==n.to.y&&(y=y.concat(u).concat(l),r.from=e.effects.setTransition(r,u,n.from.y,r.from),r.to=e.effects.setTransition(r,u,n.to.y,r.to)),e.effects.save(r,y),r.show(),e.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),g&&(a=e.effects.getBaseline(g,s),r.from.top=(s.outerHeight-r.outerHeight())*a.y,r.from.left=(s.outerWidth-r.outerWidth())*a.x,r.to.top=(s.outerHeight-r.to.outerHeight)*a.y,r.to.left=(s.outerWidth-r.to.outerWidth)*a.x),r.css(r.from),("content"===m||"both"===m)&&(d=d.concat(["marginTop","marginBottom"]).concat(u),c=c.concat(["marginLeft","marginRight"]),l=o.concat(d).concat(c),r.find("*[width]").each(function(){var i=e(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&e.effects.save(i,l),i.from={height:s.height*n.from.y,width:s.width*n.from.x,outerHeight:s.outerHeight*n.from.y,outerWidth:s.outerWidth*n.from.x},i.to={height:s.height*n.to.y,width:s.width*n.to.x,outerHeight:s.height*n.to.y,outerWidth:s.width*n.to.x},n.from.y!==n.to.y&&(i.from=e.effects.setTransition(i,d,n.from.y,i.from),i.to=e.effects.setTransition(i,d,n.to.y,i.to)),n.from.x!==n.to.x&&(i.from=e.effects.setTransition(i,c,n.from.x,i.from),i.to=e.effects.setTransition(i,c,n.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,l)})})),r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===p&&r.hide(),e.effects.restore(r,y),f||("static"===v?r.css({position:"relative",top:r.to.top,left:r.to.left}):e.each(["top","left"],function(e,t){r.css(t,function(t,i){var s=parseInt(i,10),a=e?r.to.left:r.to.top;return"auto"===i?a+"px":s+a+"px"})})),e.effects.removeWrapper(r),i()}})}})(jQuery);(function(e){e.effects.effect.shake=function(t,i){var s,a=e(this),n=["position","top","bottom","left","right","height","width"],r=e.effects.setMode(a,t.mode||"effect"),o=t.direction||"left",h=t.distance||20,l=t.times||3,u=2*l+1,d=Math.round(t.duration/u),c="up"===o||"down"===o?"top":"left",p="up"===o||"left"===o,f={},m={},g={},v=a.queue(),y=v.length;for(e.effects.save(a,n),a.show(),e.effects.createWrapper(a),f[c]=(p?"-=":"+=")+h,m[c]=(p?"+=":"-=")+2*h,g[c]=(p?"-=":"+=")+2*h,a.animate(f,d,t.easing),s=1;l>s;s++)a.animate(m,d,t.easing).animate(g,d,t.easing);a.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function(){"hide"===r&&a.hide(),e.effects.restore(a,n),e.effects.removeWrapper(a),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),a.dequeue()}})(jQuery);(function(e){e.effects.effect.slide=function(t,i){var s,a=e(this),n=["position","top","bottom","left","right","width","height"],r=e.effects.setMode(a,t.mode||"show"),o="show"===r,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h,d={};e.effects.save(a,n),a.show(),s=t.distance||a["top"===l?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(a).css({overflow:"hidden"}),o&&a.css(l,u?isNaN(s)?"-"+s:-s:s),d[l]=(o?u?"+=":"-=":u?"-=":"+=")+s,a.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&a.hide(),e.effects.restore(a,n),e.effects.removeWrapper(a),i()}})}})(jQuery);(function(e){e.effects.effect.transfer=function(t,i){var s=e(this),a=e(t.to),n="fixed"===a.css("position"),r=e("body"),o=n?r.scrollTop():0,h=n?r.scrollLeft():0,l=a.offset(),u={top:l.top-o,left:l.left-h,height:a.innerHeight(),width:a.innerWidth()},d=s.offset(),c=e("
    ").appendTo(document.body).addClass(t.className).css({top:d.top-o,left:d.left-h,height:s.innerHeight(),width:s.innerWidth(),position:n?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){c.remove(),i()})}})(jQuery); \ No newline at end of file diff --git a/web/assets/email/aomc/template-assets/assets/.source-stamp b/web/assets/email/aomc/template-assets/assets/.source-stamp new file mode 100644 index 00000000..03e6c379 --- /dev/null +++ b/web/assets/email/aomc/template-assets/assets/.source-stamp @@ -0,0 +1 @@ +819e1a45c318db5fcbfb21b00b453703 \ No newline at end of file diff --git a/web/assets/email/aomc/template-assets/assets/img/header.jpg b/web/assets/email/aomc/template-assets/assets/img/header.jpg new file mode 100644 index 00000000..c80e1652 Binary files /dev/null and b/web/assets/email/aomc/template-assets/assets/img/header.jpg differ diff --git a/web/assets/email/aomc/template-assets/assets/img/logo.gif b/web/assets/email/aomc/template-assets/assets/img/logo.gif new file mode 100644 index 00000000..cfa39664 Binary files /dev/null and b/web/assets/email/aomc/template-assets/assets/img/logo.gif differ diff --git a/web/assets/email/aomc/template-assets/assets/img/separateur.jpg b/web/assets/email/aomc/template-assets/assets/img/separateur.jpg new file mode 100644 index 00000000..5cd3df4a Binary files /dev/null and b/web/assets/email/aomc/template-assets/assets/img/separateur.jpg differ