diff --git a/sites/all/libraries/jquery.ui/AUTHORS.txt b/sites/all/libraries/jquery.ui/AUTHORS.txt new file mode 100644 index 0000000..0e9c180 --- /dev/null +++ b/sites/all/libraries/jquery.ui/AUTHORS.txt @@ -0,0 +1,26 @@ +jQuery UI Authors (http://ui.jquery.com/about) + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +and logs, available at http://jquery-ui.googlecode.com/svn/ + +Brandon Aaron +Paul Bakaus (paulbakaus.com) +David Bolter +Chi Cheng (cloudream@gmail.com) +Maggie Costello +Aaron Eisenberger (aaronchi@gmail.com) +Ariel Flesler +Scott González +Marc Grabanski (m@marcgrabanski.com) +Klaus Hartl (stilbuero.de) +Scott Jehl +Cody Lindley +Eduardo Lundgren (eduardolundgren@gmail.com) +Todd Parker +John Resig +Patty Toland +Ca-Phun Ung (yelotofu.com) +Keith Wood (kbwood@virginbroadband.com.au) +Richard D. Worth (rdworth.org) +Jörn Zaefferer diff --git a/sites/all/libraries/jquery.ui/GPL-LICENSE.txt b/sites/all/libraries/jquery.ui/GPL-LICENSE.txt new file mode 100644 index 0000000..4f3d3e8 --- /dev/null +++ b/sites/all/libraries/jquery.ui/GPL-LICENSE.txt @@ -0,0 +1,278 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the 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 Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. diff --git a/sites/all/libraries/jquery.ui/MIT-LICENSE.txt b/sites/all/libraries/jquery.ui/MIT-LICENSE.txt new file mode 100644 index 0000000..4b2e630 --- /dev/null +++ b/sites/all/libraries/jquery.ui/MIT-LICENSE.txt @@ -0,0 +1,25 @@ +Copyright (c) 2008 Paul Bakaus, http://ui.jquery.com/ + +This software consists of voluntary contributions made by many +individuals (AUTHORS.txt, http://ui.jquery.com/about) For exact +contribution history, see the revision history and logs, available +at http://jquery-ui.googlecode.com/svn/ + +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. diff --git a/sites/all/libraries/jquery.ui/demos/functional/css/base.css b/sites/all/libraries/jquery.ui/demos/functional/css/base.css new file mode 100644 index 0000000..bd67b7f --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/css/base.css @@ -0,0 +1,1030 @@ +/* Site + -------------------------------- */ + +html { + overflow-y: scroll; + background: #5f5f5f url('../images/html_bg.png') repeat-x scroll; +} + +body { + margin: 0; + padding: 0 0 20px; + background: transparent url('../images/body_bg.jpg') no-repeat center top; + min-height: 100%; + /* font-family: "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif"; */ + font-family: "Arial", "Helvetica", "Verdana", "sans-serif"; +} + +#wrapper { + margin: 0 auto; + width: 956px; + position: relative; + /* + background: url('../images/body_footer_bg.jpg') no-repeat center bottom; + padding-bottom: 365px; + */ +} + +#banner { + height: 125px; +} + +#content .bg { + opacity: 0; + -moz-opacity: 0; + filter: alpha(opacity=0); +} + +table.layout-grid a.disabled, table.layout-grid a.disabled:hover { + color: #aaa; + cursor: default; + text-decoration: line-through; +} + +div.notice { + background: #FFF1AF; + padding: 3px; + margin-bottom: 5px; + font-size: 12px; + border: 1px solid #EFD500; +} + + +/* Logo + -------------------------------- */ + +h1.logo { + position: absolute; + top: 55px; + left: 28px; + margin: 0; +} + +h1.logo, +h1.logo a { + width: 235px; + height: 55px; +} + +h1.logo a { + display: block; + background: url('../images/logo.gif') no-repeat; +} + +h1.logo a span { + display: none; +} + +/* Navigation + -------------------------------- */ + +#navigation { + height: 41px; + float: left; + position: absolute; + top: 62px; + right: 0px; +} + +#navigation .left { + float: left; + width: 5px; + height: 41px; + /* background: url('/images/navigation.png') no-repeat left top; */ + background: url('/images/navigation_l.png') no-repeat left top; +} + +#ie6 #navigation .left { + background: transparent none; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/navigation_l.png', sizingMethod='scale'); + zoom: 1; +} + +#navigation .right { + float: left; + width: 3px; + height: 41px; + background: url('/images/navigation.png') no-repeat right top; +} + +#navigation ul, +#navigation ul li { + float: left; + list-style-type: none; + margin: 0; + padding: 0; + font-size: 13px; + line-height: 38px; +} + +#navigation ul { + height: 41px; + background: url('/images/navigation.png') repeat-x 0 -41px; +} + +#navigation ul li a { + float: left; + display: block; + height: 41px; + padding: 0 18px; + color: #ccc; + text-decoration: none; + background: url('/images/navigation_s.png') no-repeat right top; +} + +#navigation ul li.selected a { + color: #fff; +} + +#navigation ul li.last a{ + background-image: none; +} + +#navigation ul li a:hover { + color: #fff; +} + + +/* Dock + -------------------------------- */ + +#dock { + height: 25px; + float: left; + position: absolute; + top: 0; + right: 2px; +} + +#dock .left { + float: left; + width: 3px; + height: 25px; + background: url('../images/dock.png') no-repeat left top; +} + +#dock .right { + float: left; + width: 3px; + height: 25px; + background: url('../images/dock.png') no-repeat right top; +} + +#dock ul, +#dock ul li { + float: left; + list-style-type: none; + margin: 0; + padding: 0; +} + +#dock ul { + padding: 0 6px; + height: 25px; + background-color: #000; +} + +#dock ul li { + padding: 0 6px; + position: relative; +} + +#dock ul li a { + float: left; + display: block; + padding: 0 5px; + color: #ccc; + text-decoration: none; + font-size: 12px; + line-height: 22px; +} + +#dock ul li a:hover, +#dock ul li.selected a { + color: #fff; + border-bottom: 2px solid #ff9c08; +} + +#dock ul li.selected a { + font-weight: bold; +} + + +/* Navigation + -------------------------------- */ + +#navigation { + height: 41px; + float: left; + position: absolute; + top: 62px; + right: 0px; +} + +#navigation .left { + float: left; + width: 5px; + height: 41px; + /* background: url('../images/navigation.png') no-repeat left top; */ + background: url('../images/navigation_l.png') no-repeat left top; +} + +#ie6 #navigation .left { + background: transparent none; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/navigation_l.png', sizingMethod='scale'); + zoom: 1; +} + +#navigation .right { + float: left; + width: 3px; + height: 41px; + background: url('../images/navigation.png') no-repeat right top; +} + +#navigation ul, +#navigation ul li { + float: left; + list-style-type: none; + margin: 0; + padding: 0; + font-size: 13px; + line-height: 38px; +} + +#navigation ul { + height: 41px; + background: url('../images/navigation.png') repeat-x 0 -41px; +} + +#navigation ul li a { + float: left; + display: block; + height: 41px; + padding: 0 18px; + color: #ccc; + text-decoration: none; + background: url('../images/navigation_s.png') no-repeat right top; +} + +#navigation ul li.selected a { + color: #fff; +} + +#navigation ul li.last a{ + background-image: none; +} + +#navigation ul li a:hover { + color: #fff; +} + + +/* Content + -------------------------------- */ + +#content-wrapper { + background: #FFF url('../images/content_bg.png') repeat-y 0 0; +} + +#content { + background: url('../images/content_body_bg.png') no-repeat 0 13px; + zoom: 1; +} + +.content-top { + font-size: 1px; + height: 13px; + background: url('../images/content_top_bg.png'); +} + +.content { + padding: 0 3px 0 3px; + overflow: hidden; +} + +#content .content { + min-height: 380px; + background: url('../images/dot.png') repeat-y 203px 0; +} + +#home #content .content, +#download #content .content, +#demos #content .content { + background: none; +} + +#ie6 #content .content { + height: 380px; + overflow-y: visible; +} + +/* Layout */ + +.content-head { + height: 74px; + border-bottom: 1px solid #ccc; + background-color: #fff; +} + +.content-head h2 { + float: left; + margin: 0; + padding: 20px 0 20px 24px; + color: #ff9c08; + font: normal 29px/30px "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif"; + letter-spacing: .5px; +} + +.content-head h2 span { + padding-right: 16px; + border-right: 1px solid #ccc; +} + +.content-head p { + margin: 0; + padding: 28px 0 0 12px; + float: left; + font: normal 15px "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif"; + letter-spacing: .5px; +} + + +/* Layout + -------------------------------- */ + +.themes { + background: url('../images/themes_bg.png') repeat-x scroll 0 -1px; +} + + +/* Layout + -------------------------------- */ + +.layout-grid { + width: 100%; +} + +.layout-grid td { + vertical-align: top; +} + +.layout-grid td.home { + background: url('../images/home_bg.jpg') no-repeat scroll right top; + height: 412px; + padding: 0 600px 0 24px; +} + +.layout-grid td.left-nav { + width: 200px; +} + +.layout-grid td.normal { + border-left: 1px solid #ccc; + padding: 20px 24px; + font-family: "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif"; +} + +.layout-grid td.demos { + background: url('../images/demos_bg.jpg') no-repeat; + height: 337px; + overflow: hidden; +} + +.layout-grid td.download { + background: url('../images/demos_bg.jpg') no-repeat; + height: 337px; +} + + +/* Home + -------------------------------- */ + +.home h3 { + margin: 0; + padding: 17px 0 11px 0; + color: #ff9c08; + font: normal 30px "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif"; + letter-spacing: .5px; +} + +.home p.large { + padding-bottom: 15px; + color: #000; + font: bold 13px/19px "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif"; + letter-spacing: .2px; + line-height: 16px; +} + +.home p { + margin: 0; + padding-bottom: 14px; + color: #333; + font: normal 11px/14px 'Trebuchet MS', 'Arial', 'Helvetica', sans-serif; +} + +.teaserbox { + position: absolute; + top: 265px; + left: 452px; + width: 450px; +} + +.teaserbox ul { + list-style-type: square; +} + +.teaserbox p { + margin: 5px; + padding: 0px; +} + +.teaserbox h4 { + margin-bottom: 0px; + position: relative; + left: 1px; + top: 1px; + color: #fff; +} + +.teaserbox h4 span { + position: absolute; + top: -1px; + left: -1px; + color: #000; +} + + +/* Side Menu + -------------------------------- */ + +.section { + padding: 24px 23px 8px 22px; + border-bottom: 1px dashed #ccc; +} + + + +ul.side-menu, +ul.side-menu li, +p.side-menu-title { + list-style-type: none; + margin: 0; + padding: 0; + letter-spacing: 0.75pt; +} + +ul.side-menu li a { + font: normal 11px 'Arial', 'Helvetica', sans-serif; + text-decoration: none; + color: #000; +} + +ul.side-menu li a:hover { + color: #e87b10; +} + +p.side-menu-title { + font: bold 15px 'Arial', 'Helvetica', sans-serif; + color: #e87b10; +} + +ul.side-menu { + padding: 5px 2px 0; +} + + +/* Normal + -------------------------------- */ + +.normal h3, +.normal h4 { + margin: 0; + font-weight: normal; +} + +.normal h3 { + padding: 0 0 9px; +} + +.normal h4 { + padding-bottom: 21px; + border-bottom: 1px dashed #999; + font-size: 12px; + font-weight: bold; +} + +.normal .pull-quote { + padding: 6px 0; + line-height: 20px; + text-transform: uppercase; + font-size: 12px; +} + +.normal p { + font-size: 12px; +} + + +/* Download + -------------------------------- */ + +td.download { + /*height: 650px !important;*/ +} + +.download .click-to-download { + position: relative; + margin: 61px 3px 0; + padding: 0 19px; + background: url('../images/download-top.gif') no-repeat left top; + width: 270px; + height: 226px; + float: left; + font-family: "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif"; +} + +.download .click-to-download .bg-footer, +.download .click-to-download .bg { + position: absolute; + bottom: 0; + left: 0; + width: 308px; + height: 102px; + background: url('../images/download-bottom.png') no-repeat left top; +} + +.download .click-to-download .bg { + background-position: left bottom; +} + +.download .click-to-download h3 { + margin: 0; + padding: 14px 0 10px; + font-weight: normal; + font-size: 21px; +} + +.download .click-to-download h3 span { + font-size: 10px; +} + +.download .click-to-download p { + margin: 0; + padding: 12px 0 0; + font-size: 12px; +} + +.download .click-to-download a.download { + display: block; + position: absolute; + left: 65px; + top: 136px; + height: 38px !important; + width: 240px; + font-size: 16px; + font-weight: bold; +} + +.download .click-to-download a.download:link { + color: #333; + text-decoration: none; +} + +.download .click-to-download a.download:visited { + color: #333; + text-decoration: none; +} + +.download .builder { + position: absolute; + top: 475px; + right: 16px; + width: 612px; + font-family: "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif"; + font-size: 12px; + opacity: 0; + filter: alpha(opacity=0); +} + +.download .builder h3 { + margin: 0; + padding: 5px 10px 10px; + font-weight: normal; + font-size: 21px; +} + +.download .builder p { + margin: 0; + padding: 0 0 0 12px; + font-size: 12px; +} + +.download .builder .top { + height: 8px; + background-image: url('../images/builder_top.png'); +} + +.download .builder .bottom { + height: 8px; + background-image: url('../images/builder_bottom.png'); +} + +.download .builder .content { + background-image: url('../images/builder_bg.png'); +} + +.download .p { + padding: 5px 10px 10px; +} + +.components-list { + font-size: 12px; +} + +.components-list table { + width: 100%; +} + +.components-list th, +.components-list td { + text-align: left; + vertical-align: middle !important; + padding: 3px; +} + +.components-list th { + line-height: 22px; + padding: 0 0 4px 2px; + cursor: default; +} + +.components-list label { + padding-left: 5px; +} + +.list-section { + border-bottom: 1px dashed #bbb; + background: #EAEAEA; + padding: 10px 10px 10px 10px; + width: 715px; + line-height: 18px; +} + +.list-padding { + padding: 5px; + line-height: 18px; +} + +.list-component { + background-color: #F4F4F4; +} + +.list-component-selected { + font-weight: bold; +} + +.text-bg-up, +.text-bg-down { + background:#FFFFFF url(../images/text-bg-up.gif) repeat-x scroll 0pt; + background-position:0px 0px; +} + +.text-bg-down { background:#FFFFFF url(../images/text-bg-down.gif) repeat-x scroll 0pt !important; } + +.ui-transparent { + opacity:0; + filter:Alpha(Opacity=0); +} +.text-align-right { + text-align: right !important; +} +.text-align-left { + text-align: left !important; +} +.text-align-center { + text-align: center !important; +} +.label-files { + background: url(../images/group.png) no-repeat; + padding-left: 19px; + line-height: 20px; + cursor: pointer; +} + +.download #total-size { + width: 160px; + margin-left: 90px; + text-align: right; +} + +.big { + font-size: 13px; + font-weight: bold; +} + +.title-big { + font-size: 14px; + font-weight: bold; + letter-spacing: .3px; +} + + +/* Launch Pad + -------------------------------- */ + +#launch-pad { + height: 127px; + overflow: hidden; + background: url('../images/launch-pad_bg.png') repeat-y center top; + padding: 11px 0px 11px 16px; +} + +#launch-pad .launch-pad-button { + float: left; + width: 255px; + height: 106px; + background: url('../images/launch-pad_button.png') no-repeat; + padding: 21px 22px 0 23px; + margin: 0 6px; + cursor: pointer; + cursor: hand; + position: relative; +} + +#ie6 #launch-pad .launch-pad-button { + height: 106px; +} + +#launch-pad .launch-pad-button .bg { + position: absolute; + top: 0; + left: 0; + width: 310px; + height: 127px; + background: url('../images/launch-pad_button.png') no-repeat left bottom; +} + +#launch-pad .launch-pad-button h3, +#launch-pad .launch-pad-button p { + position: relative; +} + +#launch-pad .launch-pad-button.left { + margin-left: 0; +} + +#launch-pad .launch-pad-button.right { + margin-right: 0; +} + +#launch-pad .launch-pad-button h3 { + margin: 0; + padding: 0 0 4px; + color: #ff9c08; + font: normal 18px 'Arial', 'Helvetica', sans-serif; + letter-spacing: .8px +} + +#launch-pad .launch-pad-button h3 a, +#launch-pad .launch-pad-button h3 a:hover { + color: #ff9c08; + text-decoration: none; +} + +#launch-pad .launch-pad-button p { + margin: 0; + padding: 0 2px; + color: #cbcbcb; + font: normal 11px/15px 'Arial', 'Helvetica', sans-serif; + letter-spacing: .2px; +} + + +/* Footer + -------------------------------- */ + +#footer { + height: 45px; + padding: 10px 0; + position: relative; +} + +#footer .inner { + position: relative; + z-index: 2; +} + +#ie6 #footer .inner { + zoom: 1; +} + +#footer .bg { + background: url('../images/footer_bg.png') no-repeat left top; + width: 100%; + height: 65px; + position: absolute; + top: 0; + left: 0; + z-index: 1; +} + +#ie6 #footer .bg { + background: transparent none; + filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/footer_bg.png', sizingMethod='scale'); + zoom: 1; +} + +#footer p { + margin: 0; + padding: 0; + color: #5e5e5e; + font: normal 9px 'Arial', 'Helvetica', sans-serif; + text-transform: uppercase; +} + +#footer p a { + color: #bbb; +} + +#footer span.first { + display: block; + float: left; + padding: 6px 0 0 16px; +} + +#footer .block { + display: block; + float: left; +} + +#footer .block span, +#footer span.empty { + display: none; +} + +#footer .liferay { + margin: 3px 22px 0px 3px; + background: url('../images/icon_liferay.gif'); + width: 98px; + height: 22px; + border: 0; +} + +#footer .adobe { + margin: 2px 0 0 0; + background: url('../images/icon_adobe.png'); + width: 28px; + height: 28px; +} + +/* Demoflow + -------------------------------- */ + +div.demoflow-button-left { + position: absolute; + left: -3px; + top: 371px; + background: url('../images/demos_arrows.png') no-repeat left top; + width: 52px; + height: 45px; + cursor: pointer; cursor: hand; + z-index: 999; +} + +div.demoflow-button-left .bg { + background: url('../images/demos_arrows.png') no-repeat left bottom; + width: 52px; + height: 45px; + position: absolute; + top: 0; + left: 0; +} + +div.demoflow-button-right { + position: absolute; + right: -4px; + top: 371px; + background: url('../images/demos_arrows.png') no-repeat right top; + width: 52px; + height: 45px; + cursor: pointer; cursor: hand; + z-index: 999; +} + +div.demoflow-button-right .bg { + position: absolute; + left: 0; + top: 0; + background: url('../images/demos_arrows.png') no-repeat right bottom; + width: 52px; + height: 45px; +} + +.demoflow { + position: relative; + top: 22px; + left: 0; + width: 950px; + height: 337px; +} + +.demoflow div { + float: left; + height: 100px; + width: 75px; + cursor: pointer; cursor: hand; +} + +.ie .demoflow div { + zoom: 1; +} + +.demoflow div { + border: 1px solid #666; +} + + +.demoflow div:hover { + border: 1px solid #666; + /*opacity: 1 !important;*/ +} + +.demoflow div img { + height: 100%; + width: 100%; +} + +.demoflow div.shadow { + height: 100%; + width: 100%; + position: absolute; + top: 0px; + left: 0px; + background-color: black; +} + +.ie .demoflow div.shadow { + display: none; +} + +/* Functional Demos */ + +#links { + float:left; + width:155px; + font-size: 13px; +} + +#functional ul { + list-style: none; + padding: 0; + margin: 0; +} + +#functional #links ul { + margin-top:10px; + line-height:1.2em; +} + +#functional #links ul li a{ + border-bottom: 1px solid #F4F4F4; + display:block; + padding: 3px 3px 3px 12px; + font-size: 95%; + text-decoration: none; + color: #000; + height: 15px; +} + +#functional #links ul li a:hover, +#functional #links ul li a:focus { + background: #EAEAEA; + border-color: #BBBBBB; +} + +/* About */ + +div.about ul { + list-style-type: square; + margin-bottom: 50px; +} + +div.about ul li h5 { + font-size: 16px; + margin-bottom: 10px; +} + +div.about ul li a:link, div.about ul li a:visited { + text-decoration: none; + color: #666; +} + +div.about ul li a:hover { + color: #000; +} + +div.about ul li p { + padding-right: 40px; + padding-left: 20px; +} \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/css/chilli-recipes.css b/sites/all/libraries/jquery.ui/demos/functional/css/chilli-recipes.css new file mode 100644 index 0000000..a204a20 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/css/chilli-recipes.css @@ -0,0 +1,98 @@ +/* +=============================================================================== +Chili is the jQuery code highlighter plugin +............................................................................... + Copyright 2007 / Andrea Ercolino +------------------------------------------------------------------------------- +LICENSE: http://www.opensource.org/licenses/mit-license.php +WEBSITE: http://noteslog.com/chili/ +=============================================================================== +*/ + +/* +this file shows how to configure a static setup +it must be linked from the head of a page like: + +*/ + +.html .php { color: red; font-weight: bold; } +.html .tag { color: navy; font-weight: bold; } +.html .aname { color: purple; } +.html .avalue { color: fuchsia; } +.html .mlcom { color: green; } +.html .entity { color: teal; } + +.javascript .mlcom { color: #4040c2; } +.javascript .com { color: green; } +.javascript .regexp { color: maroon; } +.javascript .string { color: teal; } +.javascript .keywords { color: navy; font-weight: bold; } +.javascript .global { color: blue; } +.javascript .numbers { color: red; } + +.mysql .function { color: #e17100; } +.mysql .keyword { color: navy; font-weight: bold; } +.mysql .mlcom { color: gray; } +.mysql .com { color: green; } +.mysql .number { color: red; } +.mysql .hexnum { color: red; font-weight: bold; } +.mysql .string { color: purple; } +.mysql .quid { color: fuchsia; } +.mysql .id { color: maroon; } +.mysql .value { color: gray; font-weight: bold; } +.mysql .variable { color: #4040c2; } + +.php .com { color: green; } +.php .const1 { color: red; } +.php .const2 { color: red; } +.php .func { color: #e17100; } +.php .global { color: red; } +.php .keyword { color: navy; font-weight: bold; } +.php .mlcom { color: gray; } +.php .name { color: maroon; } +.php .number { color: red; } +.php .string1 { color: purple; } +.php .string2 { color: fuchsia; } +.php .value { color: gray; font-weight: bold; } +.php .variable { color: #4040c2; } + +.css .mlcom { color: #4040c2; } +.css .color { color: green; } +.css .string { color: teal; } +.css .attrib { color: navy; font-weight: bold; } +.css .value { color: blue; } +.css .number { color: red; } + + + +/* +=============================================================================== +Chili is the jQuery code highlighter plugin +............................................................................... + Copyright 2007 / Andrea Ercolino +------------------------------------------------------------------------------- +LICENSE: http://www.opensource.org/licenses/mit-license.php +WEBSITE: http://noteslog.com/chili/ +=============================================================================== +*/ + +.javascript .mlcom { color: #4040c2; } +.javascript .com { color: green; } +.javascript .regexp { color: maroon; } +.javascript .string { color: teal; } +.javascript .keywords { color: navy; font-weight: bold; } +.javascript .global { color: blue; } +.javascript .numbers { color: red; } + +.javascript .jquery .object { color: red; font-weight: bold; } +.javascript .jquery .private { background-color: #CCCC99; } +.javascript .jquery .attributes { background-color: #CCCC00; } +.javascript .jquery .traversing { background-color: #CCCC00; } +.javascript .jquery .manipulation { background-color: #CCCC00; } +.javascript .jquery .utilities { background-color: #CCCCFF; } +.javascript .jquery .core { background-color: #7F7FFF; color: white; } +.javascript .jquery .ajax { background-color: #7F7FFF; color: #FFD400; } +.javascript .jquery .css { background-color: #999900; color: white; } +.javascript .jquery .effects { background-color: #FFAA00; } +.javascript .jquery .events { background-color: #FFD400; } + diff --git a/sites/all/libraries/jquery.ui/demos/functional/css/functional_demos.css b/sites/all/libraries/jquery.ui/demos/functional/css/functional_demos.css new file mode 100644 index 0000000..70a87f3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/css/functional_demos.css @@ -0,0 +1,208 @@ +/*************************************/ +/* Viewer: models */ + +#containerDemo { + width: 690px; + zoom: 1; +} +#containerDemo .ui-wrapper { + margin:0px 10px; +} +#containerDemo .ui-details { + margin:0px 10px 10px 0px; + border-bottom: 2px solid #bbb; +} + +#containerDemo .menutitle { + font-size: 14px; + letter-spacing: .5px; + padding-bottom: 3px; +} + +#containerDemo .ui-demo-options { + background: #f2f2f2; + border-bottom: 1px #bbb solid; + padding: 10px; + margin: 10px 0 20px 0; + width: 690px; + _width: 670px; + font-size: 12px; +} + +.sortable-container li { + margin: 0; + padding: 0; + border: 0; + outline: 0; + list-style: circle; + background: #EAEAEA; + font-size: 12px; + margin:2px; + padding: 3px; + width: 100px; +} + +.colored { + display: block; + background: #fff; + margin-top: 5px; + border-top: 1px solid #ccc; + border-bottom: 1px solid #ccc; + white-space: pre; + padding: 10px; + font-size: 11px; + font-family: Courier New; + width: 640px; + overflow-x: auto; + overflow-y: hidden; + /*min height hack*/ + * min-height:25px; + * height:auto !important; + * height:25px; + * padding: 15px; +} + +#containerDemo .ui-demo-description { + margin-bottom: 10px; + font-size: 12px; +} +#containerDemo .link-view-source { + margin-left: 5px; +} +#containerDemo .proxy { + border: 1px dashed #000; +} + +#containerDemo .lightblue-bg{ + background: #E8EEF7; +} +#containerDemo .blue-bg { + background: #C3D9FF; +} +#containerDemo .green-bg { + background: #74DD82; +} +#containerDemo a { + color:#000; +} + +.snippet { + white-space: nowrap; + overflow: hidden; + empty-cells: show; +} + +/*************************************/ +/* Components */ + +.proxy { + border: 1px dashed #000/*#3399ff*/; +} + +.resizable { + width: 100px; height: 100px; + border: 1px solid #000; + padding: 10px; + font-size: 12px; +} + +.draggable { + width: 100px; + height: 40px; + top: 10px; + right: 10px; + background-color: #68BFEF; + border: 2px solid #0090DF; + padding: 5px; + margin: 0 0 12px 12px; + font-size: 12px; +} + +div.drag-handle +{ + cursor: move; + background-color: #0090DF; + height: 15px; +} + +.block { + border: 2px solid #0090DF; + background-color: #68BFEF; + width: 75px; + height: 75px; + margin: 10px; + z-index: 100; +} +.drop { + background-color: #e9b96e; + border: 3px double #c17d11; + width: 150px; + margin: 10px; + min-height: 200px; + min-height:200px; + height:auto !important; + height:200px; + opacity: 0.7; + filter:alpha(opacity:70); + text-align: center; +} +.droppable-active { + opacity: 1.0; + filter:alpha(opacity:100); +} +.droppable-hover { + outline: 1px dotted black; + background-color: #73d216; + border-color: #4e9a06; +} +.silver { + background-color: #fafafa; + border-color: silver; +} +.draggable.green { + background-color: #73d216; + border-color: #4e9a06; +} + +.draggable.red { + background-color: #ef2929; + border-color: #cc0000; +} + +.ui-selecting { + background-color: #eee; +} +.ui-selected { + background-color: #E6F7D4; +} + +.sortable-container #example2 li { + background: none; +} + +.sortable-container #example3 li { + list-style: none; +} +.droppable-photos-container { + border: 2px #ccc dotted; + width:144px; + height: 108px; + float:left; + margin-top: 2px; + padding: 2px; +} +.droppable-img-content { + float: left; padding: 5px; +} + +#accordionDemo, select { + position: relative; + font-size: 12px; +} +#accordionDemo h3 { + padding: 0; +} + +.ui-accordion-data { + padding: 10px; +} diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/Thumbs.db b/sites/all/libraries/jquery.ui/demos/functional/images/Thumbs.db new file mode 100644 index 0000000..378e981 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/Thumbs.db differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/ajax-loader.gif b/sites/all/libraries/jquery.ui/demos/functional/images/ajax-loader.gif new file mode 100644 index 0000000..5a4f384 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/ajax-loader.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/body_bg.jpg b/sites/all/libraries/jquery.ui/demos/functional/images/body_bg.jpg new file mode 100644 index 0000000..0beed72 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/body_bg.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/body_bg.png b/sites/all/libraries/jquery.ui/demos/functional/images/body_bg.png new file mode 100644 index 0000000..2213c6a Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/body_bg.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/clock.png b/sites/all/libraries/jquery.ui/demos/functional/images/clock.png new file mode 100644 index 0000000..dbb57fa Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/clock.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/content_bg.png b/sites/all/libraries/jquery.ui/demos/functional/images/content_bg.png new file mode 100644 index 0000000..6cb278c Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/content_bg.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/content_body_bg.png b/sites/all/libraries/jquery.ui/demos/functional/images/content_body_bg.png new file mode 100644 index 0000000..cca6d94 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/content_body_bg.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/content_top_bg.png b/sites/all/libraries/jquery.ui/demos/functional/images/content_top_bg.png new file mode 100644 index 0000000..1faf799 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/content_top_bg.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/dot.png b/sites/all/libraries/jquery.ui/demos/functional/images/dot.png new file mode 100644 index 0000000..dfbcff2 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/dot.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/favicon.ico b/sites/all/libraries/jquery.ui/demos/functional/images/favicon.ico new file mode 100644 index 0000000..77e3bd2 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/favicon.ico differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/footer_bg.png b/sites/all/libraries/jquery.ui/demos/functional/images/footer_bg.png new file mode 100644 index 0000000..b96db44 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/footer_bg.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/functional-demo-face.png b/sites/all/libraries/jquery.ui/demos/functional/images/functional-demo-face.png new file mode 100644 index 0000000..cf21240 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/functional-demo-face.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/html_bg.png b/sites/all/libraries/jquery.ui/demos/functional/images/html_bg.png new file mode 100644 index 0000000..e97e604 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/html_bg.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/icon_liferay.gif b/sites/all/libraries/jquery.ui/demos/functional/images/icon_liferay.gif new file mode 100644 index 0000000..bfdf1d4 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/icon_liferay.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/logo.gif b/sites/all/libraries/jquery.ui/demos/functional/images/logo.gif new file mode 100644 index 0000000..a6cfb97 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/logo.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/navigation.png b/sites/all/libraries/jquery.ui/demos/functional/images/navigation.png new file mode 100644 index 0000000..699fa69 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/navigation.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/navigation_l.png b/sites/all/libraries/jquery.ui/demos/functional/images/navigation_l.png new file mode 100644 index 0000000..806e23d Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/navigation_l.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/images/navigation_s.png b/sites/all/libraries/jquery.ui/demos/functional/images/navigation_s.png new file mode 100644 index 0000000..f283806 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/functional/images/navigation_s.png differ diff --git a/sites/all/libraries/jquery.ui/demos/functional/index.html b/sites/all/libraries/jquery.ui/demos/functional/index.html new file mode 100644 index 0000000..47e3c58 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/index.html @@ -0,0 +1,282 @@ + + + + jQuery UI - Functional demos + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+
+ +
+
+

+ Functional Demos +

+

+ Learn how to build Cross-Browser Rich Internet Applications! +

+ +
+
+ + + + + + +
+
+

+ Interaction +

+ +
+
+
+

+ Widgets +

+ + +
+
+
+

+ Effects +

+ + +
+
+
+ +
+

+ Instructions +

+

+ + The functional demos are provided to give users an idea of how jQuery UI works. You only need to copy and paste code from the demos. Have fun playing with it. +

+ +
+ +
+ +
+
+ +
+
+
+
+
+ + +
+ + + + diff --git a/sites/all/libraries/jquery.ui/demos/functional/js/beautify.js b/sites/all/libraries/jquery.ui/demos/functional/js/beautify.js new file mode 100644 index 0000000..35ec018 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/js/beautify.js @@ -0,0 +1,533 @@ +/* + + JS Beautifier +--------------- + $Date: 2008-04-21 16:13:36 +0300 (Mon, 21 Apr 2008) $ + $Revision: 53 $ + + + Written by Einars "elfz" Lielmanis, + http://elfz.laacz.lv/beautify/ + + Originally converted to javascript by Vital, + http://my.opera.com/Vital/blog/2007/11/21/javascript-beautify-on-javascript-translated + + + You are free to use this in any way you want, in case you find this useful or working for you. + + Usage: + js_beautify(js_source_text); + +*/ + + +function js_beautify(js_source_text, indent_size, indent_character) +{ + + var input, output, token_text, last_type, last_text, last_word, current_mode, modes, indent_level, indent_string; + var whitespace, wordchar, punct, parser_pos, line_starters, in_case; + var prefix, token_type; + + function print_newline(ignore_repeated) + { + ignore_repeated = typeof ignore_repeated === 'undefined' ? true: ignore_repeated; + + // remove trailing whitespace and indent + while (output.length && (output[output.length - 1] === ' ' || output[output.length - 1] === indent_string)) { + output.pop(); + } + + if (!output.length) { + return; // no newline on start of file + } + + if (output[output.length - 1] !== "\n" || !ignore_repeated) { + output.push("\n"); + } + for (var i = 0; i < indent_level; i++) { + output.push(indent_string); + } + } + + + + function print_space() + { + var last_output = output.length ? output[output.length - 1] : ' '; + if (last_output !== ' ' && last_output !== '\n' && last_output !== indent_string) { // prevent occassional duplicate space + output.push(' '); + } + } + + + function print_token() + { + output.push(token_text); + } + + function indent() + { + indent_level++; + } + + + function unindent() + { + if (indent_level) { + indent_level--; + } + } + + + function remove_indent() + { + if (output.length && output[output.length - 1] === indent_string) { + output.pop(); + } + } + + + function set_mode(mode) + { + modes.push(current_mode); + current_mode = mode; + } + + + function restore_mode() + { + current_mode = modes.pop(); + } + + + function in_array(what, arr) + { + for (var i = 0; i < arr.length; i++) + { + if (arr[i] === what) { + return true; + } + } + return false; + } + + + + function get_next_token() + { + var n_newlines = 0; + var c = ''; + + do { + if (parser_pos >= input.length) { + return ['', 'TK_EOF']; + } + c = input.charAt(parser_pos); + + parser_pos += 1; + if (c === "\n") { + n_newlines += 1; + } + } + while (in_array(c, whitespace)); + + if (n_newlines > 1) { + for (var i = 0; i < 2; i++) { + print_newline(i === 0); + } + } + var wanted_newline = (n_newlines === 1); + + + if (in_array(c, wordchar)) { + if (parser_pos < input.length) { + while (in_array(input.charAt(parser_pos), wordchar)) { + c += input.charAt(parser_pos); + parser_pos += 1; + if (parser_pos === input.length) { + break; + } + } + } + + // small and surprisingly unugly hack for 1E-10 representation + if (parser_pos !== input.length && c.match(/^[0-9]+[Ee]$/) && input.charAt(parser_pos) === '-') { + parser_pos += 1; + + var t = get_next_token(parser_pos); + c += '-' + t[0]; + return [c, 'TK_WORD']; + } + + if (c === 'in') { // hack for 'in' operator + return [c, 'TK_OPERATOR']; + } + return [c, 'TK_WORD']; + } + + if (c === '(' || c === '[') { + return [c, 'TK_START_EXPR']; + } + + if (c === ')' || c === ']') { + return [c, 'TK_END_EXPR']; + } + + if (c === '{') { + return [c, 'TK_START_BLOCK']; + } + + if (c === '}') { + return [c, 'TK_END_BLOCK']; + } + + if (c === ';') { + return [c, 'TK_END_COMMAND']; + } + + if (c === '/') { + var comment = ''; + // peek for comment /* ... */ + if (input.charAt(parser_pos) === '*') { + parser_pos += 1; + if (parser_pos < input.length) { + while (! (input.charAt(parser_pos) === '*' && input.charAt(parser_pos + 1) && input.charAt(parser_pos + 1) === '/') && parser_pos < input.length) { + comment += input.charAt(parser_pos); + parser_pos += 1; + if (parser_pos >= input.length) { + break; + } + } + } + parser_pos += 2; + return ['/*' + comment + '*/', 'TK_BLOCK_COMMENT']; + } + // peek for comment // ... + if (input.charAt(parser_pos) === '/') { + comment = c; + while (input.charAt(parser_pos) !== "\x0d" && input.charAt(parser_pos) !== "\x0a") { + comment += input.charAt(parser_pos); + parser_pos += 1; + if (parser_pos >= input.length) { + break; + } + } + parser_pos += 1; + if (wanted_newline) { + print_newline(); + } + return [comment, 'TK_COMMENT']; + } + + } + + if (c === "'" || // string + c === '"' || // string + (c === '/' && + ((last_type === 'TK_WORD' && last_text === 'return') || (last_type === 'TK_START_EXPR' || last_type === 'TK_END_BLOCK' || last_type === 'TK_OPERATOR' || last_type === 'TK_EOF' || last_type === 'TK_END_COMMAND')))) { // regexp + var sep = c; + var esc = false; + c = ''; + + if (parser_pos < input.length) { + + while (esc || input.charAt(parser_pos) !== sep) { + c += input.charAt(parser_pos); + if (!esc) { + esc = input.charAt(parser_pos) === '\\'; + } else { + esc = false; + } + parser_pos += 1; + if (parser_pos >= input.length) { + break; + } + } + + } + + parser_pos += 1; + if (last_type === 'TK_END_COMMAND') { + print_newline(); + } + return [sep + c + sep, 'TK_STRING']; + } + + if (in_array(c, punct)) { + while (parser_pos < input.length && in_array(c + input.charAt(parser_pos), punct)) { + c += input.charAt(parser_pos); + parser_pos += 1; + if (parser_pos >= input.length) { + break; + } + } + return [c, 'TK_OPERATOR']; + } + + return [c, 'TK_UNKNOWN']; + } + + + //---------------------------------- + + indent_character = indent_character || ' '; + indent_size = indent_size || 4; + + indent_string = ''; + while (indent_size--) { + indent_string += indent_character; + } + + input = js_source_text; + + last_word = ''; // last 'TK_WORD' passed + last_type = 'TK_START_EXPR'; // last token type + last_text = ''; // last token text + output = []; + + whitespace = "\n\r\t ".split(''); + wordchar = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$'.split(''); + punct = '+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! !! , : ? ^ ^= |='.split(' '); + + // words which should always start on new line. + line_starters = 'continue,try,throw,return,var,if,switch,case,default,for,while,break,function'.split(','); + + // states showing if we are currently in expression (i.e. "if" case) - 'EXPRESSION', or in usual block (like, procedure), 'BLOCK'. + // some formatting depends on that. + current_mode = 'BLOCK'; + modes = [current_mode]; + + indent_level = 0; + parser_pos = 0; // parser position + in_case = false; // flag for parser that case/default has been processed, and next colon needs special attention + while (true) { + var t = get_next_token(parser_pos); + token_text = t[0]; + token_type = t[1]; + if (token_type === 'TK_EOF') { + break; + } + + switch (token_type) { + + case 'TK_START_EXPR': + + set_mode('EXPRESSION'); + if (last_type === 'TK_END_EXPR' || last_type === 'TK_START_EXPR') { + // do nothing on (( and )( and ][ and ]( .. + } else if (last_type !== 'TK_WORD' && last_type !== 'TK_OPERATOR') { + print_space(); + } else if (in_array(last_word, line_starters) && last_word !== 'function') { + print_space(); + } + print_token(); + break; + + case 'TK_END_EXPR': + + print_token(); + restore_mode(); + break; + + case 'TK_START_BLOCK': + + set_mode('BLOCK'); + if (last_type !== 'TK_OPERATOR' && last_type !== 'TK_START_EXPR') { + if (last_type === 'TK_START_BLOCK') { + print_newline(); + } else { + print_space(); + } + } + print_token(); + indent(); + break; + + case 'TK_END_BLOCK': + if (last_type === 'TK_START_BLOCK') { + // nothing + unindent(); + } else { + unindent(); + print_newline(); + } + print_token(); + restore_mode(); + break; + + case 'TK_WORD': + + if (token_text === 'case' || token_text === 'default') { + if (last_text === ':') { + // switch cases following one another + remove_indent(); + } else { + // case statement starts in the same line where switch + unindent(); + print_newline(); + indent(); + } + print_token(); + in_case = true; + break; + } + + prefix = 'NONE'; + if (last_type === 'TK_END_BLOCK') { + if (!in_array(token_text.toLowerCase(), ['else', 'catch', 'finally'])) { + prefix = 'NEWLINE'; + } else { + prefix = 'SPACE'; + print_space(); + } + } else if (last_type === 'TK_END_COMMAND' && current_mode === 'BLOCK') { + prefix = 'NEWLINE'; + } else if (last_type === 'TK_END_COMMAND' && current_mode === 'EXPRESSION') { + prefix = 'SPACE'; + } else if (last_type === 'TK_WORD') { + prefix = 'SPACE'; + } else if (last_type === 'TK_START_BLOCK') { + prefix = 'NEWLINE'; + } else if (last_type === 'TK_END_EXPR') { + print_space(); + prefix = 'NEWLINE'; + } + + if (in_array(token_text, line_starters) || prefix === 'NEWLINE') { + + if (last_text === 'else') { + // no need to force newline on else break + print_space(); + } else if ((last_type === 'TK_START_EXPR' || last_text === '=') && token_text === 'function') { + // no need to force newline on 'function': (function + // DONOTHING + } else if (last_type === 'TK_WORD' && (last_text === 'return' || last_text === 'throw')) { + // no newline between 'return nnn' + print_space(); + } else if (last_type !== 'TK_END_EXPR') { + if ((last_type !== 'TK_START_EXPR' || token_text !== 'var') && last_text !== ':') { + // no need to force newline on 'var': for (var x = 0...) + if (token_text === 'if' && last_type === 'TK_WORD' && last_word === 'else') { + // no newline for } else if { + print_space(); + } else { + print_newline(); + } + } + } + } else if (prefix === 'SPACE') { + print_space(); + } + print_token(); + last_word = token_text; + break; + + case 'TK_END_COMMAND': + + print_token(); + break; + + case 'TK_STRING': + + if (last_type === 'TK_START_BLOCK' || last_type === 'TK_END_BLOCK') { + print_newline(); + } else if (last_type === 'TK_WORD') { + print_space(); + } + print_token(); + break; + + case 'TK_OPERATOR': + + var start_delim = true; + var end_delim = true; + + if (token_text === ':' && in_case) { + print_token(); // colon really asks for separate treatment + print_newline(); + break; + } + + in_case = false; + + if (token_text === ',') { + if (last_type === 'TK_END_BLOCK') { + print_token(); + print_newline(); + } else { + if (current_mode === 'BLOCK') { + print_token(); + print_newline(); + } else { + print_token(); + print_space(); + } + } + break; + } else if (token_text === '--' || token_text === '++') { // unary operators special case + if (last_text === ';') { + // space for (;; ++i) + start_delim = true; + end_delim = false; + } else { + start_delim = false; + end_delim = false; + } + } else if (token_text === '!' && last_type === 'TK_START_EXPR') { + // special case handling: if (!a) + start_delim = false; + end_delim = false; + } else if (last_type === 'TK_OPERATOR') { + start_delim = false; + end_delim = false; + } else if (last_type === 'TK_END_EXPR') { + start_delim = true; + end_delim = true; + } else if (token_text === '.') { + // decimal digits or object.property + start_delim = false; + end_delim = false; + + } else if (token_text === ':') { + // zz: xx + // can't differentiate ternary op, so for now it's a ? b: c; without space before colon + start_delim = false; + } + if (start_delim) { + print_space(); + } + + print_token(); + + if (end_delim) { + print_space(); + } + break; + + case 'TK_BLOCK_COMMENT': + + print_newline(); + print_token(); + print_newline(); + break; + + case 'TK_COMMENT': + + // print_newline(); + print_space(); + print_token(); + print_newline(); + break; + + case 'TK_UNKNOWN': + print_token(); + break; + } + + last_type = token_type; + last_text = token_text; + } + + return output.join(''); + +} diff --git a/sites/all/libraries/jquery.ui/demos/functional/js/behaviour.functionaldemos.js b/sites/all/libraries/jquery.ui/demos/functional/js/behaviour.functionaldemos.js new file mode 100644 index 0000000..9973450 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/js/behaviour.functionaldemos.js @@ -0,0 +1,12 @@ +$(document).ready(function() { + + $('.component-links a').history(function() { + loadDemo( $(this).attr('href').replace(/^#/, "") ); + }); + + var instructions = $("#containerDemo").html(); + $.ajaxHistory.initialize(function() { + $("#containerDemo").html(instructions); + }); + +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/js/behaviour.js b/sites/all/libraries/jquery.ui/demos/functional/js/behaviour.js new file mode 100644 index 0000000..9659233 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/js/behaviour.js @@ -0,0 +1,205 @@ +$(document).ready(function() { + + // link demos + + $(".demoflow div.wrapper").click(function() { + + var demo = $(this).children('img').attr('_demo'); + + if (demo) { + location.href = '/repository/real-world/' + demo; + }else { + //alert('Under construction!'); + } + + }); + + if ($("div.demoflow").size()) { + + var inst = new $.ui.carousel($("div.demoflow")[0], { height: 200, width: 310 }); + + $("div.demoflow-button-left, div.demoflow-button-right").bind("mousedown", function() { + var right = this.className.indexOf("right") == -1; + if(inst.autoRotator) window.clearInterval(inst.autoRotator); + inst.timer = window.setInterval(function() { inst.rotate(right ? "right" : null); }, 13); + }) + .bind("mouseup", function() { + window.clearInterval(inst.timer); + }); + + $('.demoflow div.shadow').hover(function() { + this._lastopacity = $(this).css('opacity'); + $(this).stop().animate({opacity: 0 }, 300); + }, function() { + $(this).stop().animate({opacity: this._lastopacity }, 300); + }); + + + window.setTimeout(function() { + inst.element.animate({ opacity: 1 },2000); inst.rotate(0,2000,0.45); + window.setTimeout(function() { + inst.autoRotator = window.setInterval(function() { inst.rotate(0,2000,0.45); },5000); + },3000); + },0); + + } + + $('a').click(function(){ + this.blur(); + }); + + // smooth hover effects by DragonInteractive + var hover = hoverEffects(); + hover.init(); + +}); + + $.ui.carousel = function(element, options) { + + this.element = $(element); + this.options = $.extend({}, options); + var self = this; + + $.extend(this, { + start: Math.PI/2, + step: 2*Math.PI/$("> *", this.element).length, + radiusX: 400, + radiusY: -45, + paddingX: this.element.outerWidth() / 2, + paddingY: this.element.outerHeight() / 2 + }); + + $("> *", this.element).css({ position: "absolute", top: 0, left: 0, zIndex: 1 }); + this.rotate(); + this.rotate("right"); + + this.element.parent().bind("mousewheel", function(event ,delta) { + if(self.autoRotator) window.clearInterval(self.autoRotator); + self.rotate(delta < 0 ? "right" : "left"); + return false; + }); + + }; + + $.ui.carousel.prototype.rotate = function(d,ani,speed) { + + this.start = this.start + (d == "right" ? -(speed || 0.03) : (speed || 0.03)); + var o = this.options; + var self = this; + + setTimeout(function(){ + $("> *", self.element).each(function(i) { + var angle = self.start + i * self.step; + var x = self.radiusX * Math.cos(angle); + var y = self.radiusY * Math.sin(angle); + var _self = this; + + var width = o.width * ((self.radiusY+y) / (2 * self.radiusY)); + width = (width * width * width) / (o.width * o.width); //This makes the pieces smaller + var height = parseInt(width * o.height / o.width); + + //This is highly custom - it will hide the elements at the back + $(_self).css({ visibility: height < 30 ? "hidden" : "visible" }); + if(height < 30 && !ani) return; //This imrpoves the speed, but cannot be used with animation + + + if(ani) { + $(_self).animate({ + top: Math.round(self.paddingY + y - height/2) + "px", + left: Math.round(self.paddingX + x - width/2) + "px", + width: Math.round(width) + "px", + height: Math.round(height) + "px" + },{ duration: ani, easing: "easeOutQuad" }); + $(_self).css({ zIndex: Math.round(parseInt(100 * (self.radiusY+y) / (2 * self.radiusY))) }); + } else { + $(_self).css({ + top: self.paddingY + y - height/2 + "px", + left: self.paddingX + x - width/2 + "px", + width: width + "px", + height: height + "px", + zIndex: parseInt(100 * (self.radiusY+y) / (2 * self.radiusY)) + }); + } + + $("div.shadow",_self).css({ opacity: 1 - (width / o.width) }); + + }); + }, 0); + } + + +/** + * All credit here goes to DragonInteractive and Yuri Vishnevsky + */ +var hoverEffects = function() { + var me = this; + var args = arguments; + var self = { + c: { + navItems: '.download .click-to-download, #launch-pad .launch-pad-button, div.demoflow-button-left, div.demoflow-button-right', + navSpeed: ($.browser.safari ? 600: 350), + snOpeningSpeed: ($.browser.safari ? 400: 250), + snOpeningTimeout: 150, + snClosingSpeed: function() { + if (self.subnavHovered()) return 123450; + return 150 + }, + snClosingTimeout: 700 + }, + init: function() { + //$('.bg', this.c.navItems).css({ + // 'opacity': 0 + //}); + this.initHoverFades() + }, + subnavHovered: function() { + var hovered = false; + $(self.c.navItems).each(function() { + if (this.hovered) hovered = true + }); + return hovered + }, + initHoverFades: function() { + //$('#navigation .bg').css('opacity', 0); + $(self.c.navItems).hover(function() { + self.fadeNavIn.apply(this) + }, + function() { + var el = this; + setTimeout(function() { + if (!el.open) self.fadeNavOut.apply(el) + }, + 10) + }) + }, + fadeNavIn: function() { + $('.bg', this).stop().animate({ + 'opacity': 1 + }, + self.c.navSpeed) + }, + fadeNavOut: function() { + $('.bg', this).stop().animate({ + 'opacity': 0 + }, + self.c.navSpeed) + }, + initSubmenus: function() { + $(this.c.navItems).hover(function() { + $(self.c.navItems).not(this).each(function() { + self.fadeNavOut.apply(this); + }); + this.hovered = true; + var el = this; + self.fadeNavIn.apply(el); + }, + function() { + this.hovered = false; + var el = this; + if (!el.open) self.fadeNavOut.apply(el); + }) + } + }; + + return self; +}; \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/js/chili-recipes.js b/sites/all/libraries/jquery.ui/demos/functional/js/chili-recipes.js new file mode 100644 index 0000000..cecf296 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/js/chili-recipes.js @@ -0,0 +1,163 @@ +/* +=============================================================================== +Chili is the jQuery code highlighter plugin +............................................................................... + Copyright 2007 / Andrea Ercolino +------------------------------------------------------------------------------- +LICENSE: http://www.opensource.org/licenses/mit-license.php +WEBSITE: http://noteslog.com/chili/ +=============================================================================== +*/ + +/* +this file shows how to configure a static setup +it must be linked from the head of a page like: + +*/ + +ChiliBook.recipeLoading = false; + +ChiliBook.recipes[ "jquery.js" ] = +{ + steps: + { + mlcom : { exp: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\// } + , com : { exp: /\/\/.*/ } + , regexp : { exp: /\/[^\/\\\n]*(?:\\.[^\/\\\n]*)*\/[gim]*/ } + , string : { exp: /(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/ } + , numbers : { exp: /\b[+-]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?\b/ } + , keywords: { exp: /\b(arguments|break|case|catch|continue|default|delete|do|else|false|for|function|if|in|instanceof|new|null|return|switch|this|true|try|typeof|var|void|while|with)\b/ } + , global : { exp: /\b(toString|valueOf|window|element|prototype|constructor|document|escape|unescape|parseInt|parseFloat|setTimeout|clearTimeout|setInterval|clearInterval|NaN|isNaN|Infinity)\b/ } + + , "jquery utilities" : { + exp : /(?:\$\.browser|\$\.each|\$\.extend|\$\.grep|\$\.map|\$\.merge|\$\.trim)\b/ + , replacement: '$$' + } + ,"jquery private" : { + exp : /(?:\$\.find|\$\.parents|\$\.sibling|\.domManip|\.eventTesting|\.extend|\.get|\.init|\.jquery|\.pushStack)\b/ + , replacement: '$$' + } + ,"jquery ajax" : { + exp : /(?:\$\.ajax|\$\.ajaxSetup|\$\.ajaxTimeout|\$\.get|\$\.getIfModified|\$\.getJSON|\$\.getScript|\$\.post|.ajaxComplete|.ajaxError|.ajaxSend|.ajaxStart|.ajaxStop|.ajaxSuccess|.load|.loadIfModified|.serialize)\b/ + , replacement: '$$' + } + , "jquery object" : { + exp : /jQuery|\$(?=\W)/ + , replacement: '$$' + } + ,"jquery core" : { + exp : /\$\.extend|\$\.noConflict|\.(?:each|eq|get|gt|index|lt|size)\b/ + , replacement: '$$' + } + ,"jquery css" : { + exp : /\.(?:css|height|width)\b/ + , replacement: '$$' + } + ,"jquery attributes" : { + exp : /\.(?:addClass|attr|html|removeAttr|removeClass|text|toggleClass|val)\b/ + , replacement: '$$' + } + ,"jquery traversing" : { + exp : /\.(?:add|children|contains|end|filter|find|is|next|not|parent|parents|prev|siblings)\b/ + , replacement: '$$' + } + ,"jquery manipulation": { + exp : /\.(?:after|append|appendTo|before|clone|empty|insertAfter|insertBefore|prepend|prependTo|remove|wrap)\b/ + , replacement: '$$' + } + ,"jquery effects" : { + exp : /\.(?:animate|fadeIn|fadeOut|fadeTo|hide|show|slideDown|slideToggle|slideUp|toggle)\b/ + , replacement: '$$' + } + ,"jquery events" : { + exp : /\.(?:bind|blur|change|click|dblclick|error|focus|hover|keydown|keypress|keyup|load|mousedown|mousemove|mouseout|mouseover|mouseup|one|ready|resize|scroll|select|submit|toggle|trigger|unbind|unload)\b/ + , replacement: '$$' + } + } +}; + +ChiliBook.recipes[ "html.js" ] = +{ + steps: { + mlcom : { exp: /\

+ \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.datepicker.sel.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.datepicker.sel.html new file mode 100644 index 0000000..3f8185a --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.datepicker.sel.html @@ -0,0 +1,54 @@ + + + +

+ diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.datepicker.two.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.datepicker.two.html new file mode 100644 index 0000000..639aa05 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.datepicker.two.html @@ -0,0 +1,7 @@ + to + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.dialog.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.dialog.html new file mode 100644 index 0000000..47f9b8e --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.dialog.html @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.draggable.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.draggable.html new file mode 100644 index 0000000..0dbb15e --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.draggable.html @@ -0,0 +1,85 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.droppable.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.droppable.html new file mode 100644 index 0000000..06be124 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.droppable.html @@ -0,0 +1,87 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.droppable.photos.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.droppable.photos.html new file mode 100644 index 0000000..5fcbd13 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.droppable.photos.html @@ -0,0 +1,17 @@ +
+ + + +
Drop here!
+ +
\ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.easing.ex2.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.easing.ex2.html new file mode 100644 index 0000000..9e7f1d6 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.easing.ex2.html @@ -0,0 +1,19 @@ +
+ + +
+ \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.easing.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.easing.html new file mode 100644 index 0000000..c73302c --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.easing.html @@ -0,0 +1,109 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.general.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.general.html new file mode 100644 index 0000000..fa803b3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.general.html @@ -0,0 +1,140 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.showhide.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.showhide.html new file mode 100644 index 0000000..6f90909 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.effects.showhide.html @@ -0,0 +1,151 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.resizable.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.resizable.html new file mode 100644 index 0000000..5e6341b --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.resizable.html @@ -0,0 +1,92 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.selectable.data.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.selectable.data.html new file mode 100644 index 0000000..7c19ce5 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.selectable.data.html @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.selectable.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.selectable.html new file mode 100644 index 0000000..5dfc235 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.selectable.html @@ -0,0 +1,31 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.slider.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.slider.html new file mode 100644 index 0000000..6b05402 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.slider.html @@ -0,0 +1,44 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.ex1.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.ex1.html new file mode 100644 index 0000000..729d690 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.ex1.html @@ -0,0 +1,40 @@ +
+ +
+ + + + + + +

+ +
+ +
+ Selected users +
    +
  • Susan
  • +
  • Beth
  • +
  • Bob
  • +
  • Edward
  • +
  • Kate
  • +
+
+ +
+ User list +
    +
  • Jack
  • +
  • John
  • +
  • Marry
  • +
  • Claire
  • +
  • Daniel
  • +
+
+ +
+ +
+
+
\ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.ex3.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.ex3.html new file mode 100644 index 0000000..edb8078 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.ex3.html @@ -0,0 +1,23 @@ +
+ +
+ +
+ +
    +
  • Jack
  • +
  • John
  • +
  • Marry
  • +
  • Claire
  • +
  • Daniel
  • +
+ +
+ +
+ +
\ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.html new file mode 100644 index 0000000..6d4ece1 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.sortable.html @@ -0,0 +1,55 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.ex1.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.ex1.html new file mode 100644 index 0000000..976269e --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.ex1.html @@ -0,0 +1,35 @@ +
+ + + + + + + +

+ + +
+

First tab is active by default

+
+
+

Second tab is active


+

Alternative ways to specify the active tab will overrule this argument, listed in the order of their precedence:


+
    +
  1. If a fragment identifier (hash) in the URL of the page refers to the id of a tab panel of a tab interface the corresponding tab will become the initial tab.
  2. +
  3. Same if you use the cookie option to save the latest selected tab in.
  4. +
  5. Last not least you can set the selected tab by attaching the selected tab class + class (default: "ui-tabs-selected") to one of the li elements + representing a single tab.
  6. +
+
+
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. +
+
\ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.html b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.html new file mode 100644 index 0000000..5435d77 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.html @@ -0,0 +1,54 @@ + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.php b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.php new file mode 100644 index 0000000..f350750 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/functional/templates/ui.tabs.php @@ -0,0 +1,88 @@ + + +
+ + diff --git a/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/caps.gif b/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/caps.gif new file mode 100644 index 0000000..24184e7 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/caps.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/sideboxlight_bg.gif b/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/sideboxlight_bg.gif new file mode 100644 index 0000000..2d52b80 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/sideboxlight_bg.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/slider_handlebg.png b/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/slider_handlebg.png new file mode 100644 index 0000000..1077c4d Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/images/slider_handlebg.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/index.html b/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/index.html new file mode 100644 index 0000000..3d89981 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/accordion-drawers/index.html @@ -0,0 +1,277 @@ + + + + + Slide Demo - Fixed Drawer + + + + + + + + + + + + +
+

Fixed drawer slide out demo (using accordion plugin)

+

This example demonstrates the Apple downloads slider/accordion effect using the jQuery Accordion plugin.

+

Mouse over the headings to reveal the list of available links.

+ +

+ Read the article this demonstration relates to +

+
+ + + diff --git a/sites/all/libraries/jquery.ui/demos/real-world/effects/demo.js b/sites/all/libraries/jquery.ui/demos/real-world/effects/demo.js new file mode 100644 index 0000000..86f29c7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/effects/demo.js @@ -0,0 +1,65 @@ +$(document).ready(function() { + + $("div.effect") + .hover(function() { + $(this).addClass("hover"); + }, function() { + $(this).removeClass("hover"); + }) + ; + + + var effect = function(el, n, o) { + + $.extend(o, { + easing: "easeOutQuint" + }); + + $(el).bind("click", function() { + + $(this).addClass("current").hide(n, o, 1000, function() { + var self = this; + window.setTimeout(function() { + $(self).show(n, o, 1000, function() { $(this).removeClass("current"); }); + },500); + }); + }); + + }; + + + effect("#blindHorizontally", "blind", { direction: "horizontal" }); + effect("#blindVertically", "blind", { direction: "vertical" }); + + effect("#bounce3times", "bounce", { times: 3 }); + + effect("#clipHorizontally", "clip", { direction: "horizontal" }); + effect("#clipVertically", "clip", { direction: "vertical" }); + + effect("#dropDown", "drop", { direction: "down" }); + effect("#dropUp", "drop", { direction: "up" }); + effect("#dropLeft", "drop", { direction: "left" }); + effect("#dropRight", "drop", { direction: "right" }); + + effect("#explode9", "explode", { }); + effect("#explode36", "explode", { pieces: 36 }); + + effect("#fold", "fold", { size: 50 }); + + effect("#highlight", "highlight", { }); + + effect("#pulsate", "pulsate", { times: 2 }); + + effect("#puff", "puff", { times: 2 }); + effect("#scale", "scale", { }); + + $("#shake").bind("click", function() { $(this).addClass("current").effect("shake", {}, 100, function() { $(this).removeClass("current"); }); }); + + effect("#slideDown", "slide", { direction: "down" }); + effect("#slideUp", "slide", { direction: "up" }); + effect("#slideLeft", "slide", { direction: "left" }); + effect("#slideRight", "slide", { direction: "right" }); + + $("#transfer").bind("click", function() { $(this).addClass("current").effect("transfer", { to: "div:eq(0)" }, 1000, function() { $(this).removeClass("current"); }); }); + +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/real-world/effects/index.html b/sites/all/libraries/jquery.ui/demos/real-world/effects/index.html new file mode 100644 index 0000000..fde47bc --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/effects/index.html @@ -0,0 +1,165 @@ + + + + + Effects Test Suite + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sites/all/libraries/jquery.ui/demos/real-world/effects/style.css b/sites/all/libraries/jquery.ui/demos/real-world/effects/style.css new file mode 100644 index 0000000..587c646 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/effects/style.css @@ -0,0 +1,49 @@ +body,html { + margin: 0; + padding: 0; + font-size: 12px; + font-family: Arial; + background: #000; +} + +ul.effects { + margin: 0; + padding: 0; +} + +ul.effects li { + margin: 0; + padding: 0; + width: 120px; + height: 100px; + float: left; + margin-top: 20px; + margin-left: 20px; +} + +div.effect { + width: 120px; + height: 100px; + background: #333; + border: 5px outset #aaa; + float: left; + cursor: pointer; + cursor: hand; +} + +div.current { + border: 5px outset #FF0000; + background: #660000; +} + +div.effect p { + color: #eee; + margin: 0px; + padding: 10px; +} + +.ui-effects-transfer { + border: 1px dotted #fff; + background: #666; + opacity: 0.5; +} \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/image-cropper.css b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/image-cropper.css new file mode 100644 index 0000000..0c24745 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/image-cropper.css @@ -0,0 +1,68 @@ + +/*************************************/ +/* Real-World CSS */ + +@import "real-world.css"; + +/*************************************/ +/* Demo CSS */ + +#sidebar div { + text-align:center; +} +.thumb ul { + padding:10px 0 0 0; +} +.thumbs li { + margin:4px 20px; +} +.thumbs li a, +.thumbs li a img{ + height: 75px; + width: 75px; + display: block; +} +.thumbs li a:hover, +.thumbs li a:hover img{ + height: 130px; + width: 130px; +} +.thumbs li a:hover { + border: 4px solid #E8EEF7; +} + +#break strong { + margin:0 0 4px 0; +} +#break ul { + padding:6px; +} +#break ul li { + padding:3px 0px; + font-style: italic; +} +#break ul li span { + font-style: normal; +} + +.ui-resizable-knob { + border: 1px #fff dashed; +} + +/*************************************/ +/* Cropper CSS */ + +#_Container_Image, #\\_Container\\_Image { + position: relative; +} +#_Container, #\\_Container { + position: absolute; + top:0px; + left:0px; + width: 150px; + height:150px; +} + +#_Wrapper, #\\_Wrapper { + position: relative; +} diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/image-cropper.js b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/image-cropper.js new file mode 100644 index 0000000..e647ddc --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/image-cropper.js @@ -0,0 +1,90 @@ + var getSizeImg = function(src) { + var timg = $('').attr('src', src).css({ position: 'absolute', top: '-1000px', left: '-1000px' }).appendTo('body'); + var size = {width: timg.get(0).offsetWidth, height: timg.get(0).offsetHeight }; + + try { document.body.removeChild(timg[0]); } + catch(e) {}; + + return size; + }; + +$().ready(function(){ + + $('#_Container').resizable({ + containment: $('#_Wrapper'), + handles: 'all', + knobHandles: true, + autoHide: true, + minWidth: 100, + minHeight: 100, + resize: function(event, ui){ + var self = $(this).data("resizable"), + imageSize = $('#_Container').data("image-size"), + top = self.position.top, + height = ((self.position.top + self.size.height) <= imageSize.height ? self.size.height : imageSize.height), + left = self.position.left, + width = ((self.position.left + self.size.width) <= imageSize.width ? self.size.width : imageSize.width); + + left = left > 0 ? left : 0; + top = top > 0 ? top : 0; + + var bgPos = '-' + (left + 1) + 'px -' + (top + 1) + 'px'; + + //the borders of the resize rect are offsetting the bg pos incorrectly. subtract (add, since its a negative) 1 to fix. + $(this).css({backgroundPosition: bgPos}); + + $("#log-top").html(top + "px"); + $("#log-height").html(height + "px"); + $("#log-left").html(left + "px"); + $("#log-width").html(width + "px"); + }, + stop: function(event, ui){ + var self = $(this).data("resizable"), + top = self.position.top, + left = self.position.left; + + left = left > 0 ? left : 0; + top = top > 0 ? top : 0; + + $(this).css({backgroundPosition: ((left + 1) * -1) + 'px ' + ((top + 1) * -1) + 'px'}); + } + }) + .draggable({ + cursor: 'move', + containment: $('#_Wrapper'), + drag: function(event, ui){ + var self = $(this).data("draggable"); + $(this).css({backgroundPosition: ((self.position.left + 1) * -1) + 'px ' + ((self.position.top + 1) * -1) + 'px'}); + + $("#log-top").html(self.position.top+"px"); + $("#log-left").html(self.position.left+"px"); + } + }); + + $('.thumbs') + .find("li a") + .click(function(event){ + $('#_Container').css({top: '0', left: '0'}); + + var size = getSizeImg($(this).find("img").attr("src")); + + $('#_Container_Image').css({ + width: size.width, + height: size.height, + background: 'transparent url('+$(this).find("img").attr("src")+') no-repeat scroll 0%' + }); + + $('#_Wrapper').css({ width: size.width, height: size.height }); + $('#_Container') + .css('background', 'transparent url('+$(this).find("img").attr("src")+') no-repeat scroll 0px 0px') + .data("image-size", size); + + return false; + }); + + $('#_Container_Image').css({ opacity: 0.5 }); + $("#log-height").html($('#_Container').height()+"px"); + $("#log-width").html($('#_Container').width()+"px"); + + $(".thumbs li a:first").click(); +}); diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img01.jpg b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img01.jpg new file mode 100644 index 0000000..4d5f884 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img01.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img02.jpg b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img02.jpg new file mode 100644 index 0000000..5745265 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img02.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img03.jpg b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img03.jpg new file mode 100644 index 0000000..7e6928f Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img03.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img04.jpg b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img04.jpg new file mode 100644 index 0000000..8216a23 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img04.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img05.jpg b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img05.jpg new file mode 100644 index 0000000..35de5bd Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/img/img05.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/index.html b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/index.html new file mode 100644 index 0000000..4062ae3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/index.html @@ -0,0 +1,52 @@ + + + + + + Image Cropper: jQuery Real-world Demo + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+
+
+ Properties: +
    +
  • width: 0px
  • +
  • height: 0px
  • +
  • top: 0px
  • +
  • left: 0px
  • +
+
+
+ + diff --git a/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/real-world.css b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/real-world.css new file mode 100644 index 0000000..f7630bd --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/image-cropper/real-world.css @@ -0,0 +1,104 @@ +/*************************************/ +/* Blueprint: reset.css */ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +/* Remember to define focus styles! */ +:focus { + outline: 0; +} +body { + line-height: 1; + color: black; + background: white; +} +ol, ul { + list-style: none; +} + +/* Tables still need 'cellspacing="0"' in the markup. */ +table { + border-collapse: separate; + border-spacing: 0; +} +caption, th, td { + text-align: left; + font-weight: normal; +} + +/* Remove possible quote marks (") from ,
. */ +blockquote:before, blockquote:after, +q:before, q:after { + content: ""; +} +blockquote, q { + quotes: "" ""; +} + +.clear { + clear:both; +} + +/*************************************/ +/* Layout */ +body, html { + height: 100%; + font-family:sans-serif; + font-size:13px; + margin:0px; + padding:0px; +} +body, html { + height: 100%; + font-family:sans-serif; + font-size:13px; + +} +#main { + height:auto; + background: #E8EEF7; + border-left:1px solid #ccc; + border-bottom:1px solid #ccc; + margin:0 0 0 200px; +} + #header { + height:30px; + padding:10px; + font-size:2em; + font-weight:bold; + text-align: center; + border-bottom:1px solid #ccc; + background: #E8EEF7; + } + #main #content { + padding:10px; + background: #FFF; + } + #main #break { + padding:10px; + border-top:1px solid #ccc; + } +#sidebar { + float:left; + width:200px; + height:100%; + border-right:1px solid #ccc; +} + #sidebar div { + padding:10px; + } diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/add.png b/sites/all/libraries/jquery.ui/demos/real-world/layout/add.png new file mode 100644 index 0000000..920e2b5 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/layout/add.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/demo-ie.css b/sites/all/libraries/jquery.ui/demos/real-world/layout/demo-ie.css new file mode 100644 index 0000000..3096987 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/layout/demo-ie.css @@ -0,0 +1,4 @@ +body { height: 100% } +.ui-sortable h2 { top: -4px; } + +#overlay #preloader img { margin-top: 11px; } \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/demo.css b/sites/all/libraries/jquery.ui/demos/real-world/layout/demo.css new file mode 100644 index 0000000..28cd306 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/layout/demo.css @@ -0,0 +1,44 @@ +body { background-color:#666; color:#FFF; font:11px/1.5 Arial, sans-serif; margin:0; padding:30px 0 0 30px; } +h1 { font-size:18px; margin:0 0 20px; } +a { color:#FFF; } + +.clear { clear:both; font-size:1px; line-height:1px; } + +#overlay { background:#666; height:100%; left:0; position:absolute; top:0; width:100%; z-index:2000; } +#overlay #preloader { background:url(loader_bg.gif) no-repeat; height:50px; left:50%; line-height:50px; margin:-25px 0 0 -25px; position:absolute; text-align:center; top:50%; width:50px; } +#overlay #preloader img { margin:0; vertical-align:middle; } + +.ui-sortable { background-color:#FFF; border:1px solid #555; color:#222; margin:0 15px 15px 0; padding:0 10px 10px; width:175px; } +.ui-sortable h2 { background-color:#555; border-top:3px solid #666; color:#FFF; font-size:11px; margin:0 -10px 10px; line-height:2; padding:0 10px; position:relative; } + +dl.sort { color:#222; margin:10px 0; } +#uidemo dl.first { margin-top:0; } +#uidemo dl.last { margin-bottom:0; } + +dl.sort dt { background-color:#666; color:#FFF; cursor:move; height:2em; line-height:2; padding:0 6px; position:relative; } +dl.sort dd { background-color:#FFF; margin:0; padding:3px 6px; } + +.ui-sortable-helper { width:175px; } +.placeholder { border:1px dashed #AAA; } + +span.options { cursor:default; font-size:1px; line-height:1px; position:absolute; } +span.options a { background-color:#FFF; cursor:pointer; display:block; float:left; text-indent:-9000px; } +span.options a.add { background: url(add.png) no-repeat; } + +.ui-sortable h2 span.options { right:-12px; top:5px; width:30px; } +.ui-sortable h2 span.options a { height:12px; width:30px; } + +dl.sort dt span.options { right:5px; top:5px; width:27px; } +dl.sort dt span.options a { height:12px; width:12px; } +dl.sort dt span.options a.down { background: url(down.png) no-repeat; } +dl.sort dt span.options a.up { margin-right:3px; background: url(up.png) no-repeat; } +dl.sort dt span.options a.disabled { background:#555 !important; cursor:default; } + +#container { float:left; } +#header { width:638px; } +#content { float:left; width:400px; } +#sidebar { float:left; width:200px; } +#footer { width:638px; } +#meta { float:left; } + +#trashcan p { margin:0; } \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/demo.js b/sites/all/libraries/jquery.ui/demos/real-world/layout/demo.js new file mode 100644 index 0000000..e118fd2 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/layout/demo.js @@ -0,0 +1,114 @@ +(function($){ + function updateUpDown(sortable) { + $('dl:not(.ui-sortable-helper)', sortable) + .removeClass('first').removeClass('last') + .find('.up, .down').removeClass('disabled').end() + .filter(':first').addClass('first').find('.up').addClass('disabled').end().end() + .filter(':last').addClass('last').find('.down').addClass('disabled').end().end(); + }; + + function moveUpDown() { + var link = $(this), + dl = link.parents('dl'), + prev = dl.prev('dl'), + next = dl.next('dl'); + + if(link.is('.up') && prev.length > 0) + dl.insertBefore(prev); + + if(link.is('.down') && next.length > 0) + dl.insertAfter(next); + + updateUpDown(dl.parent()); + }; + + function addControls() { + $(this).append('updown') + .find('a.up, a.down').bind('click', moveUpDown); + updateUpDown($(this).parents(".ui-sortable:first")); + } + + var counter = 1; + function addItem() { + var sortable = $(this).parents('.ui-sortable:first'); + var options = 'updown'; + var tpl = '
{name}' + options + '
{desc}
'; + var html = tpl.replace(/{name}/g, 'Dynamic name ' + counter).replace(/{desc}/g, 'Description'); + counter += 1; + sortable.append(html).sortable('refresh').find('a.up, a.down').bind('click', moveUpDown); + updateUpDown(sortable); + }; + + function emptyTrashCan(item) { + item.remove(); + }; + + function sortableChange(event, ui) { + if(ui.sender){ + var w = ui.element.width(); + ui.placeholder.width(w); + ui.helper.css("width",ui.element.children().width()); + } + }; + + function sortableUpdate(event, ui) { + if(ui.element[0].id == 'trashcan'){ + emptyTrashCan(ui.item); + } else { + updateUpDown(ui.element[0]); + if(ui.sender) + updateUpDown(ui.sender[0]); + } + }; + + $(document).ready(function(){ + var els = ['#header', '#content', '#sidebar', '#footer', '#trashcan']; + var $els = $(els.toString()); + + $('h2', $els.slice(0,-1)).append('add'); + $('dt', $els).each(addControls); + //$('dt', $els).append('updown'); + + $('a.add').bind('click', addItem); + //$('a.up, a.down').bind('click', moveUpDown); + + $els.each(function(){ + updateUpDown(this); + }); + + $els.sortable({ + items: '> dl', + handle: 'dt', + cursor: 'move', + //cursorAt: { top: 2, left: 2 }, + //opacity: 0.8, + //helper: 'clone', + appendTo: 'body', + //placeholder: 'clone', + //placeholder: 'placeholder', + connectWith: els, + start: function(event,ui) { + ui.helper.css("width", ui.item.parent().width()); + }, + change: sortableChange, + update: sortableUpdate + }).bind("sortreceive", function(event, ui) { + $(ui.item).removeClass('ui-draggable').find('dt').each(addControls); + }); + $('#components > dl').draggable({ + connectToSortable: $els.not("#trashcan"), + helper: 'clone', + handle: 'dt' + }) + }); + + $(window).bind('load',function(){ + setTimeout(function(){ + // fixes the weird scrolling in IE while killing the fade + $(document.body).css("height", "auto") + $('#overlay').fadeOut(function(){ + $(this).remove(); + }); + }, 500); + }); +})(jQuery); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/down.png b/sites/all/libraries/jquery.ui/demos/real-world/layout/down.png new file mode 100644 index 0000000..8a39bea Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/layout/down.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/img01.png b/sites/all/libraries/jquery.ui/demos/real-world/layout/img01.png new file mode 100644 index 0000000..42900c7 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/layout/img01.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/index.html b/sites/all/libraries/jquery.ui/demos/real-world/layout/index.html new file mode 100644 index 0000000..0c64182 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/layout/index.html @@ -0,0 +1,105 @@ + + + + UI Sortable: Layout Demo + + + + + + + + + + + + + + + + + + +

UI Sortable: Layout demo

+ +
+ + +
+

Content

+
+
Blog
+
Main blog post
+
+
+ + + +
+ + +
+ +
+
+

Components

+
+
Subheadline
+
Paragraph
+
+
+
Image
+
+
Caption
+
+
+ +
+

Trash can

+

Drag modules here to delete them.

+
+
+ +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/loader.gif b/sites/all/libraries/jquery.ui/demos/real-world/layout/loader.gif new file mode 100644 index 0000000..7e717cd Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/layout/loader.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/loader_bg.gif b/sites/all/libraries/jquery.ui/demos/real-world/layout/loader_bg.gif new file mode 100644 index 0000000..9c04884 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/layout/loader_bg.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/layout/up.png b/sites/all/libraries/jquery.ui/demos/real-world/layout/up.png new file mode 100644 index 0000000..6451c92 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/layout/up.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010020.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010020.JPG new file mode 100644 index 0000000..7e6928f Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010020.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010036.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010036.JPG new file mode 100644 index 0000000..8216a23 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010036.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010039.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010039.JPG new file mode 100644 index 0000000..35de5bd Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010039.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010044.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010044.JPG new file mode 100644 index 0000000..4d5f884 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010044.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010050.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010050.JPG new file mode 100644 index 0000000..5745265 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010050.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010055.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010055.JPG new file mode 100644 index 0000000..246121b Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010055.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010058.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010058.JPG new file mode 100644 index 0000000..d107b38 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010058.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010059.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010059.JPG new file mode 100644 index 0000000..c7fcdbd Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010059.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010061.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010061.JPG new file mode 100644 index 0000000..1812fbf Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010061.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010063.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010063.JPG new file mode 100644 index 0000000..05b0d13 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/P1010063.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/slider-bg-2.png b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/slider-bg-2.png new file mode 100644 index 0000000..8b24cf0 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/slider-bg-2.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/slider-handle.gif b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/slider-handle.gif new file mode 100644 index 0000000..9b89f26 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/slider-handle.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG new file mode 100644 index 0000000..cba6345 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010020.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG new file mode 100644 index 0000000..1d062b3 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010036.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG new file mode 100644 index 0000000..2d0b6c7 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010039.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG new file mode 100644 index 0000000..9d0cccf Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010044.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG new file mode 100644 index 0000000..89a36b7 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010050.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG new file mode 100644 index 0000000..889b4e6 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010055.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG new file mode 100644 index 0000000..6a83a62 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010058.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG new file mode 100644 index 0000000..6aac872 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010059.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG new file mode 100644 index 0000000..bfe698e Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010061.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG new file mode 100644 index 0000000..88c22e0 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/img/thumbs/P1010063.JPG differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/index.html b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/index.html new file mode 100644 index 0000000..b6be459 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/index.html @@ -0,0 +1,145 @@ + + + + jQuery UI Draggables and Droppables playground + + + + + + + + + + + + + + + + + + + + +

Manage Your Photos

+
+
+

Drag photos to the Trash or waste them in the Shredder:

+ +
+ +
+ + + diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/demo.js b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/demo.js new file mode 100644 index 0000000..af56d6d --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/demo.js @@ -0,0 +1,150 @@ +/* + * The very first increment of Droppables&Draggables demo. The code is going to + * be more concise (remove unnecessary code repetitions etc.). And imho the + * photo management is a good candidate for demonstration of more jQuery UI + * components (sortables, selectables...). More to come... + * + */ + +$(window).bind('load', function() { + // make images in the gallery draggable + $('ul.gallery img').addClass('img_content').draggable({ + helper: 'clone' + }); + + // make the trash box droppable, accepting images from the content section only + $('#trash div').droppable({ + accept: '.img_content', + activeClass: 'active', + drop: function(ev, ui) { + var $that = $(this); + ui.draggable.parent().fadeOut('slow', function() { + ui.draggable + .hide() + .appendTo($that) + .fadeIn('slow') + .animate({ + width: '72px', + height: '54px' + }) + .removeClass('img_content') + .addClass('img_trash'); + $(this).remove(); + }); + } + }); + + // make the shredder box droppable, accepting images from both content and trash sections + $('#shred div').droppable({ + accept: '.img_content, .img_trash', + activeClass: 'active', + drop: function(ev, ui) { + var $that = $(this); + // images from the content + if (ui.draggable.hasClass('img_content')) { + ui.draggable.parent().fadeOut('slow', function() { + ui.draggable + .appendTo($that) + .animate({ + width: '0', + height: '0' + }, 'slow', function(){ + $(this).remove(); + }); + $(this).remove(); + }); + } + // images from the trash + else if (ui.draggable.hasClass('img_trash')) { + ui.draggable + .appendTo($that) + .animate({ + width: '0', + height: '0' + }, 'slow', function(){ + $(this).remove(); + }); + } + } + }); + + // make the gallery droppable as well, accepting images from the trash only + $('ul.gallery').droppable({ + accept: '.img_trash', + activeClass: 'active', + drop: function(ev, ui) { + var $that = $(this); + ui.draggable.fadeOut('slow', function() { + var $item = createGalleryItem(this).appendTo($that); + $(this) + .removeClass('img_trash') + .addClass('img_content') + .css({ width: '144px', height: '108px' }) + .show(); + $item.fadeIn('slow'); + }); + } + }); + + // handle the trash icon behavior + $('a.tb_trash').livequery('click', function() { + var $this = $(this); + var $img = $this.parent().siblings('img'); + var $item = $this.parents('li'); + + $item.fadeOut('slow', function() { + $img + .hide() + .appendTo('#trash div') + .fadeIn('slow') + .animate({ + width: '72px', + height: '54px' + }) + .removeClass('img_content') + .addClass('img_trash'); + $(this).remove(); + }); + + return false; + }); + + // handle the magnify button + $('a.tb_supersize').livequery('click', function() { + $('') + .attr('src', $(this).attr('href')) + .appendTo('#body_wrap') + .displayBox(); + return false; + }); + + + var sliderChange = function(event, ui){ + $('.img_content').each(function(index, item){ + var _new = 1.44 * $('#sliderSize').slider("value"); + + $(this).css("width", _new+'px') + .parent().css("width", (_new+16)+'px'); + + }); + } + $('#sliderSize').slider({ + startValue : 100, + min : 50, + max : 100, + stepping : 5, + slide : sliderChange, + change : sliderChange + }); + +}); + +function createGalleryItem(img) { + var title = img.getAttribute('alt'); + var href = img.getAttribute('src').replace(/thumbs\//, ''); + + var $item = $('
  • '+title+'

  • ').hide(); + $item.prepend($(img)); + + return $item; +} diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/jquery.blockUI.js b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/jquery.blockUI.js new file mode 100644 index 0000000..1c338eb --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/jquery.blockUI.js @@ -0,0 +1,361 @@ +/* + * jQuery blockUI plugin + * Version 1.33 (09/14/2007) + * @requires jQuery v1.1.1 + * + * $Id: jquery.blockUI.js 3291 2007-09-14 23:56:25Z malsup $ + * + * Examples at: http://malsup.com/jquery/block/ + * Copyright (c) 2007 M. Alsup + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + (function($) { +/** + * blockUI provides a mechanism for blocking user interaction with a page (or parts of a page). + * This can be an effective way to simulate synchronous behavior during ajax operations without + * locking the browser. It will prevent user operations for the current page while it is + * active ane will return the page to normal when it is deactivate. blockUI accepts the following + * two optional arguments: + * + * message (String|Element|jQuery): The message to be displayed while the UI is blocked. The message + * argument can be a plain text string like "Processing...", an HTML string like + * "

    Please wait...

    ", a DOM element, or a jQuery object. + * The default message is "

    Please wait...

    " + * + * css (Object): Object which contains css property/values to override the default styles of + * the message. Use this argument if you wish to override the default + * styles. The css Object should be in a format suitable for the jQuery.css + * function. For example: + * $.blockUI({ + * backgroundColor: '#ff8', + * border: '5px solid #f00, + * fontWeight: 'bold' + * }); + * + * The default blocking message used when blocking the entire page is "

    Please wait...

    " + * but this can be overridden by assigning a value to $.blockUI.defaults.pageMessage in your + * own code. For example: + * + * $.blockUI.defaults.pageMessage = "

    Bitte Wartezeit

    "; + * + * The default message styling can also be overridden. For example: + * + * $.extend($.blockUI.defaults.pageMessageCSS, { color: '#00a', backgroundColor: '#0f0' }); + * + * The default styles work well for simple messages like "Please wait", but for longer messages + * style overrides may be necessary. + * + * @example $.blockUI(); + * @desc prevent user interaction with the page (and show the default message of 'Please wait...') + * + * @example $.blockUI( { backgroundColor: '#f00', color: '#fff'} ); + * @desc prevent user interaction and override the default styles of the message to use a white on red color scheme + * + * @example $.blockUI('Processing...'); + * @desc prevent user interaction and display the message "Processing..." instead of the default message + * + * @name blockUI + * @param String|jQuery|Element message Message to display while the UI is blocked + * @param Object css Style object to control look of the message + * @cat Plugins/blockUI + */ +$.blockUI = function(msg, css, opts) { + $.blockUI.impl.install(window, msg, css, opts); +}; + +// expose version number so other plugins can interogate +$.blockUI.version = 1.33; + +/** + * unblockUI removes the UI block that was put in place by blockUI + * + * @example $.unblockUI(); + * @desc unblocks the page + * + * @name unblockUI + * @cat Plugins/blockUI + */ +$.unblockUI = function(opts) { + $.blockUI.impl.remove(window, opts); +}; + +/** + * Blocks user interaction with the selected elements. (Hat tip: Much of + * this logic comes from Brandon Aaron's bgiframe plugin. Thanks, Brandon!) + * By default, no message is displayed when blocking elements. + * + * @example $('div.special').block(); + * @desc prevent user interaction with all div elements with the 'special' class. + * + * @example $('div.special').block('Please wait'); + * @desc prevent user interaction with all div elements with the 'special' class + * and show a message over the blocked content. + * + * @name block + * @type jQuery + * @param String|jQuery|Element message Message to display while the element is blocked + * @param Object css Style object to control look of the message + * @cat Plugins/blockUI + */ +$.fn.block = function(msg, css, opts) { + return this.each(function() { + if (!this.$pos_checked) { + if ($.css(this,"position") == 'static') + this.style.position = 'relative'; + if ($.browser.msie) this.style.zoom = 1; // force 'hasLayout' in IE + this.$pos_checked = 1; + } + $.blockUI.impl.install(this, msg, css, opts); + }); +}; + +/** + * Unblocks content that was blocked by "block()" + * + * @example $('div.special').unblock(); + * @desc unblocks all div elements with the 'special' class. + * + * @name unblock + * @type jQuery + * @cat Plugins/blockUI + */ +$.fn.unblock = function(opts) { + return this.each(function() { + $.blockUI.impl.remove(this, opts); + }); +}; + +/** + * displays the first matched element in a "display box" above a page overlay. + * + * @example $('#myImage').displayBox(); + * @desc displays "myImage" element in a box + * + * @name displayBox + * @type jQuery + * @cat Plugins/blockUI + */ +$.fn.displayBox = function(css, fn, isFlash) { + var msg = this[0]; + if (!msg) return; + var $msg = $(msg); + css = css || {}; + + var w = $msg.width() || $msg.attr('width') || css.width || $.blockUI.defaults.displayBoxCSS.width; + var h = $msg.height() || $msg.attr('height') || css.height || $.blockUI.defaults.displayBoxCSS.height ; + if (w[w.length-1] == '%') { + var ww = document.documentElement.clientWidth || document.body.clientWidth; + w = parseInt(w) || 100; + w = (w * ww) / 100; + } + if (h[h.length-1] == '%') { + var hh = document.documentElement.clientHeight || document.body.clientHeight; + h = parseInt(h) || 100; + h = (h * hh) / 100; + } + + var ml = '-' + parseInt(w)/2 + 'px'; + var mt = '-' + parseInt(h)/2 + 'px'; + + // supress opacity on overlay if displaying flash content on mac/ff platform + var ua = navigator.userAgent.toLowerCase(); + var opts = { + displayMode: fn || 1, + noalpha: isFlash && /mac/.test(ua) && /firefox/.test(ua) + }; + + $.blockUI.impl.install(window, msg, { width: w, height: h, marginTop: mt, marginLeft: ml }, opts); +}; + + +// override these in your code to change the default messages and styles +$.blockUI.defaults = { + // the message displayed when blocking the entire page + pageMessage: '

    Please wait...

    ', + // the message displayed when blocking an element + elementMessage: '', // none + // styles for the overlay iframe + overlayCSS: { backgroundColor: '#fff', opacity: '0.5' }, + // styles for the message when blocking the entire page + pageMessageCSS: { width:'250px', margin:'-50px 0 0 -125px', top:'50%', left:'50%', textAlign:'center', color:'#000', backgroundColor:'#fff', border:'3px solid #aaa' }, + // styles for the message when blocking an element + elementMessageCSS: { width:'250px', padding:'10px', textAlign:'center', backgroundColor:'#fff'}, + // styles for the displayBox + displayBoxCSS: { width: '400px', height: '400px', top:'50%', left:'50%' }, + // allow body element to be stetched in ie6 + ie6Stretch: 1, + // supress tab nav from leaving blocking content? + allowTabToLeave: 0, + // Title attribute for overlay when using displayBox + closeMessage: 'Click to close', + // use fadeOut effect when unblocking (can be overridden on unblock call) + fadeOut: 1, + // fadeOut transition time in millis + fadeTime: 400 +}; + +// the gory details +$.blockUI.impl = { + box: null, + boxCallback: null, + pageBlock: null, + pageBlockEls: [], + op8: window.opera && window.opera.version() < 9, + ie6: $.browser.msie && /MSIE 6.0/.test(navigator.userAgent), + install: function(el, msg, css, opts) { + opts = opts || {}; + this.boxCallback = typeof opts.displayMode == 'function' ? opts.displayMode : null; + this.box = opts.displayMode ? msg : null; + var full = (el == window); + + // use logical settings for opacity support based on browser but allow overrides via opts arg + var noalpha = this.op8 || $.browser.mozilla && /Linux/.test(navigator.platform); + if (typeof opts.alphaOverride != 'undefined') + noalpha = opts.alphaOverride == 0 ? 1 : 0; + + if (full && this.pageBlock) this.remove(window, {fadeOut:0}); + // check to see if we were only passed the css object (a literal) + if (msg && typeof msg == 'object' && !msg.jquery && !msg.nodeType) { + css = msg; + msg = null; + } + msg = msg ? (msg.nodeType ? $(msg) : msg) : full ? $.blockUI.defaults.pageMessage : $.blockUI.defaults.elementMessage; + if (opts.displayMode) + var basecss = jQuery.extend({}, $.blockUI.defaults.displayBoxCSS); + else + var basecss = jQuery.extend({}, full ? $.blockUI.defaults.pageMessageCSS : $.blockUI.defaults.elementMessageCSS); + css = jQuery.extend(basecss, css || {}); + var f = ($.browser.msie) ? $('') + : $(''); + var w = $('
    '); + var m = full ? $('
    ') + : $(''); + w.css('position', full ? 'fixed' : 'absolute'); + if (msg) m.css(css); + if (!noalpha) w.css($.blockUI.defaults.overlayCSS); + if (this.op8) w.css({ width:''+el.clientWidth,height:''+el.clientHeight }); // lame + if ($.browser.msie) f.css('opacity','0.0'); + + $([f[0],w[0],m[0]]).appendTo(full ? 'body' : el); + + // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling) + var expr = $.browser.msie && (!$.boxModel || $('object,embed', full ? null : el).length > 0); + if (this.ie6 || expr) { + // stretch content area if it's short + if (full && $.blockUI.defaults.ie6Stretch && $.boxModel) + $('html,body').css('height','100%'); + + // fix ie6 problem when blocked element has a border width + if ((this.ie6 || !$.boxModel) && !full) { + var t = this.sz(el,'borderTopWidth'), l = this.sz(el,'borderLeftWidth'); + var fixT = t ? '(0 - '+t+')' : 0; + var fixL = l ? '(0 - '+l+')' : 0; + } + + // simulate fixed position + $.each([f,w,m], function(i,o) { + var s = o[0].style; + s.position = 'absolute'; + if (i < 2) { + full ? s.setExpression('height','document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"') + : s.setExpression('height','this.parentNode.offsetHeight + "px"'); + full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') + : s.setExpression('width','this.parentNode.offsetWidth + "px"'); + if (fixL) s.setExpression('left', fixL); + if (fixT) s.setExpression('top', fixT); + } + else { + if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'); + s.marginTop = 0; + } + }); + } + if (opts.displayMode) { + w.css('cursor','default').attr('title', $.blockUI.defaults.closeMessage); + m.css('cursor','default'); + $([f[0],w[0],m[0]]).removeClass('blockUI').addClass('displayBox'); + $().click($.blockUI.impl.boxHandler).bind('keypress', $.blockUI.impl.boxHandler); + } + else + this.bind(1, el); + m.append(msg).show(); + if (msg.jquery) msg.show(); + if (opts.displayMode) return; + if (full) { + this.pageBlock = m[0]; + this.pageBlockEls = $(':input:enabled:visible',this.pageBlock); + setTimeout(this.focus, 20); + } + else this.center(m[0]); + }, + remove: function(el, opts) { + var o = $.extend({}, $.blockUI.defaults, opts); + this.bind(0, el); + var full = el == window; + var els = full ? $('body').children().filter('.blockUI') : $('.blockUI', el); + if (full) this.pageBlock = this.pageBlockEls = null; + + if (o.fadeOut) { + els.fadeOut(o.fadeTime, function() { + if (this.parentNode) this.parentNode.removeChild(this); + }); + } + else els.remove(); + }, + boxRemove: function(el) { + $().unbind('click',$.blockUI.impl.boxHandler).unbind('keypress', $.blockUI.impl.boxHandler); + if (this.boxCallback) + this.boxCallback(this.box); + $('body .displayBox').hide().remove(); + }, + // event handler to suppress keyboard/mouse events when blocking + handler: function(e) { + if (e.keyCode && e.keyCode == 9) { + if ($.blockUI.impl.pageBlock && !$.blockUI.defaults.allowTabToLeave) { + var els = $.blockUI.impl.pageBlockEls; + var fwd = !e.shiftKey && e.target == els[els.length-1]; + var back = e.shiftKey && e.target == els[0]; + if (fwd || back) { + setTimeout(function(){$.blockUI.impl.focus(back)},10); + return false; + } + } + } + if ($(e.target).parents('div.blockMsg').length > 0) + return true; + return $(e.target).parents().children().filter('div.blockUI').length == 0; + }, + boxHandler: function(e) { + if ((e.keyCode && e.keyCode == 27) || (e.type == 'click' && $(e.target).parents('div.blockMsg').length == 0)) + $.blockUI.impl.boxRemove(); + return true; + }, + // bind/unbind the handler + bind: function(b, el) { + var full = el == window; + // don't bother unbinding if there is nothing to unbind + if (!b && (full && !this.pageBlock || !full && !el.$blocked)) return; + if (!full) el.$blocked = b; + var $e = $(el).find('a,:input'); + $.each(['mousedown','mouseup','keydown','keypress','click'], function(i,o) { + $e[b?'bind':'unbind'](o, $.blockUI.impl.handler); + }); + }, + focus: function(back) { + if (!$.blockUI.impl.pageBlockEls) return; + var e = $.blockUI.impl.pageBlockEls[back===true ? $.blockUI.impl.pageBlockEls.length-1 : 0]; + if (e) e.focus(); + }, + center: function(el) { + var p = el.parentNode, s = el.style; + var l = ((p.offsetWidth - el.offsetWidth)/2) - this.sz(p,'borderLeftWidth'); + var t = ((p.offsetHeight - el.offsetHeight)/2) - this.sz(p,'borderTopWidth'); + s.left = l > 0 ? (l+'px') : '0'; + s.top = t > 0 ? (t+'px') : '0'; + }, + sz: function(el, p) { return parseInt($.css(el,p))||0; } +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/jquery.livequery.js b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/jquery.livequery.js new file mode 100644 index 0000000..95877ef --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/js/jquery.livequery.js @@ -0,0 +1,250 @@ +/* Copyright (c) 2007 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) + * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. + * + * Version: @VERSION + * Requires jQuery 1.1.3+ + * Docs: http://docs.jquery.com/Plugins/livequery + */ + +(function($) { + +$.extend($.fn, { + livequery: function(type, fn, fn2) { + var self = this, q; + + // Handle different call patterns + if ($.isFunction(type)) + fn2 = fn, fn = type, type = undefined; + + // See if Live Query already exists + $.each( $.livequery.queries, function(i, query) { + if ( self.selector == query.selector && self.context == query.context && + type == query.type && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) ) + // Found the query, exit the each loop + return (q = query) && false; + }); + + // Create new Live Query if it wasn't found + q = q || new $.livequery(this.selector, this.context, type, fn, fn2); + + // Make sure it is running + q.stopped = false; + + // Run it + $.livequery.run( q.id ); + + // Contnue the chain + return this; + }, + + expire: function(type, fn, fn2) { + var self = this; + + // Handle different call patterns + if ($.isFunction(type)) + fn2 = fn, fn = type, type = undefined; + + // Find the Live Query based on arguments and stop it + $.each( $.livequery.queries, function(i, query) { + if ( self.selector == query.selector && self.context == query.context && + (!type || type == query.type) && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) && !this.stopped ) + $.livequery.stop(query.id); + }); + + // Continue the chain + return this; + } +}); + +$.livequery = function(selector, context, type, fn, fn2) { + this.selector = selector; + this.context = context || document; + this.type = type; + this.fn = fn; + this.fn2 = fn2; + this.elements = []; + this.stopped = false; + + // The id is the index of the Live Query in $.livequery.queries + this.id = $.livequery.queries.push(this)-1; + + // Mark the functions for matching later on + fn.$lqguid = fn.$lqguid || $.livequery.guid++; + if (fn2) fn2.$lqguid = fn2.$lqguid || $.livequery.guid++; + + // Return the Live Query + return this; +}; + +$.livequery.prototype = { + stop: function() { + var query = this; + + if ( this.type ) + // Unbind all bound events + this.elements.unbind(this.type, this.fn); + else if (this.fn2) + // Call the second function for all matched elements + this.elements.each(function(i, el) { + query.fn2.apply(el); + }); + + // Clear out matched elements + this.elements = []; + + // Stop the Live Query from running until restarted + this.stopped = true; + }, + + run: function() { + // Short-circuit if stopped + if ( this.stopped ) return; + var query = this; + + var oEls = this.elements, + els = $(this.selector, this.context), + nEls = els.not(oEls); + + // Set elements to the latest set of matched elements + this.elements = els; + + if (this.type) { + // Bind events to newly matched elements + nEls.bind(this.type, this.fn); + + // Unbind events to elements no longer matched + if (oEls.length > 0) + $.each(oEls, function(i, el) { + if ( $.inArray(el, els) < 0 ) + $.event.remove(el, query.type, query.fn); + }); + } + else { + // Call the first function for newly matched elements + nEls.each(function() { + query.fn.apply(this); + }); + + // Call the second function for elements no longer matched + if ( this.fn2 && oEls.length > 0 ) + $.each(oEls, function(i, el) { + if ( $.inArray(el, els) < 0 ) + query.fn2.apply(el); + }); + } + } +}; + +$.extend($.livequery, { + guid: 0, + queries: [], + queue: [], + running: false, + timeout: null, + + checkQueue: function() { + if ( $.livequery.running && $.livequery.queue.length ) { + var length = $.livequery.queue.length; + // Run each Live Query currently in the queue + while ( length-- ) + $.livequery.queries[ $.livequery.queue.shift() ].run(); + } + }, + + pause: function() { + // Don't run anymore Live Queries until restarted + $.livequery.running = false; + }, + + play: function() { + // Restart Live Queries + $.livequery.running = true; + // Request a run of the Live Queries + $.livequery.run(); + }, + + registerPlugin: function() { + $.each( arguments, function(i,n) { + // Short-circuit if the method doesn't exist + if (!$.fn[n]) return; + + // Save a reference to the original method + var old = $.fn[n]; + + // Create a new method + $.fn[n] = function() { + // Call the original method + var r = old.apply(this, arguments); + + // Request a run of the Live Queries + $.livequery.run(); + + // Return the original methods result + return r; + } + }); + }, + + run: function(id) { + if (id != undefined) { + // Put the particular Live Query in the queue if it doesn't already exist + if ( $.inArray(id, $.livequery.queue) < 0 ) + $.livequery.queue.push( id ); + } + else + // Put each Live Query in the queue if it doesn't already exist + $.each( $.livequery.queries, function(id) { + if ( $.inArray(id, $.livequery.queue) < 0 ) + $.livequery.queue.push( id ); + }); + + // Clear timeout if it already exists + if ($.livequery.timeout) clearTimeout($.livequery.timeout); + // Create a timeout to check the queue and actually run the Live Queries + $.livequery.timeout = setTimeout($.livequery.checkQueue, 20); + }, + + stop: function(id) { + if (id != undefined) + // Stop are particular Live Query + $.livequery.queries[ id ].stop(); + else + // Stop all Live Queries + $.each( $.livequery.queries, function(id) { + $.livequery.queries[ id ].stop(); + }); + } +}); + +// Register core DOM manipulation methods +$.livequery.registerPlugin('append', 'prepend', 'after', 'before', 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'empty', 'remove'); + +// Run Live Queries when the Document is ready +$(function() { $.livequery.play(); }); + + +// Save a reference to the original init method +var init = $.prototype.init; + +// Create a new init method that exposes two new properties: selector and context +$.prototype.init = function(a,c) { + // Call the original init and save the result + var r = init.apply(this, arguments); + + // Copy over properties if they exist already + if (a && a.selector) + r.context = a.context, r.selector = a.selector; + + // Set properties + if ( typeof a == 'string' ) + r.context = c || document, r.selector = a; + + // Return the result + return r; +}; + +// Give the init function the jQuery prototype for later instantiation (needed after Rev 4091) +$.prototype.init.prototype = $.prototype; + +})(jQuery); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/css/screen.css b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/css/screen.css new file mode 100644 index 0000000..b9bbe43 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/css/screen.css @@ -0,0 +1,179 @@ +body { + padding: 0; + margin: 0; + line-height: 1.5em; + font-size: 75%; /* gives us 12px in most browsers */ + font-family: "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif; + background: #aefe05 url('../img/side_top.jpg') repeat-x top; /* body background from ui.jquery.com */ + color: 222; +} + +/* +================================ +=LAYOUT +================================ */ +h1 { + padding: 0 0 0 52px; + margin: 0; + font-size: 1.5em; /* 18px */ + line-height: 2em; /* 36px */ + background: url('../img/photos_gold_32.gif') no-repeat 8px 50%; /* Thanks to Iconbuffet.com */ + color: #fff; +} +#body_wrap { + width: 960px; + margin: 0 auto; + background: #fff url('../img/body_wrap_bg.gif') repeat-y; +} +#content { + float: left; + width: 632px; +} +#sidebar { + float: right; + width: 320px; +} +#footer { + clear: both; + background: #32342f; + color: #fff; +} + +/* +================================ +=SECTIONS +================================ */ +/* +---------------- +=HEADER +---------------- */ +/* +---------------- +=CONTENT +---------------- */ +#content h2 { + padding-left: 25px; +} +/* +=gallery +-------- */ +.gallery { + min-height: 108px; + padding: 0; + margin: 18px 0; + list-style: none; +} +* html .gallery { + height: 108px; /* min-height for lte IE6 */ +} +.gallery.active { + background: #eee; +} +.gallery li { + float: left; + width: 160px; + padding: 0 25px; + margin: 0 0 8px; +} +.gallery img { + display: block; + padding: 7px; + border: 1px solid #ccc; + background: #fff; +} +.displayBox img { + border: 25px solid #222; +} +/* img title */ +.gallery p { + float: left; + padding: 0; + margin: 0; +} +/* img toolbar */ +.gallery div { + float: right; +} +.gallery div a { + float: left; + width: 24px; + height: 24px; + background-repeat: no-repeat; + background-position: center; + text-indent: -9999px; /* Phark revisited image replacement */ +} +.gallery div a:focus { + outline: 0; +} +.tb_supersize { + background-image: url('../img/search_16.gif'); /* Thanks to Iconbuffet.com */ +} +.tb_trash { + background-image: url('../img/trash_16.gif'); /* Thanks to Iconbuffet.com */ +} + +/* +---------------- +=SIDEBAR +---------------- */ +.box, .box2 { + margin: 18px; + border: 1px solid #ccc; + background: #fff; +} +.box h2, .box2 h2 { + padding: 0 8px; + margin: 0; + font-size: 1.5em; + line-height: 2em; + background: #525252 url('../img/header_bg.png') repeat-x bottom; + color: #fff; +} +.box div { + min-height: 128px; + border: 2px solid #fff; +} +* html #sidebar .box div { + height: 128px; /* min-height for lte IE6 */ +} +#trash div.active { + border-color: green; +} +#shred div.active { + border-color: red; +} +#trash div img { + float: left; + margin: 4px; +} + +/* +---------------- +=FOOTER +---------------- */ +#footer p { + margin: 0; + text-align: right; +} + + +/* +================================ +=FLOAT CLEARING +================================ */ +#body_wrap, ul.gallery, #trash div { + display: inline-block; +} +#body_wrap:after, ul.gallery:after, #trash div:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} +* html #body_wrap, * html ul.gallery, * html #trash div { + height: 1%; +} +#body_wrap, ul.gallery, #trash div { + display: block; +} diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif new file mode 100644 index 0000000..7ad1d54 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/body_wrap_bg.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/header_bg.png b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/header_bg.png new file mode 100644 index 0000000..a517ae7 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/header_bg.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif new file mode 100644 index 0000000..e6bdfdc Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/photos_gold_32.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/search_16.gif b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/search_16.gif new file mode 100644 index 0000000..d9ed18d Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/search_16.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/side_top.jpg b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/side_top.jpg new file mode 100644 index 0000000..ecf5a18 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/side_top.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/trash_16.gif b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/trash_16.gif new file mode 100644 index 0000000..cbe5091 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/photo-manager/theme/img/trash_16.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_airport_express.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_airport_express.jpg new file mode 100644 index 0000000..d3ae98f Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_airport_express.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg new file mode 100644 index 0000000..b7d1e03 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_airport_extreme.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg new file mode 100644 index 0000000..b8bc108 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_aperture20080212.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg new file mode 100644 index 0000000..760035b Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_apple_remote_desktop_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg new file mode 100644 index 0000000..f757037 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_cinema_display20071026.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg new file mode 100644 index 0000000..d1bd8ff Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_dot_mac_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg new file mode 100644 index 0000000..085b180 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_final_cut_express_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg new file mode 100644 index 0000000..1f9c60a Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_final_cut_studio2_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg new file mode 100644 index 0000000..69d6961 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_ilife_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_imac20071026.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_imac20071026.jpg new file mode 100644 index 0000000..961eaf7 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_imac20071026.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg new file mode 100644 index 0000000..929b713 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_iwork_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg new file mode 100644 index 0000000..8bed6d3 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_keyboards20070807.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg new file mode 100644 index 0000000..ff708e4 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_logic_express_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg new file mode 100644 index 0000000..916ecce Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_logic_studio_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mac_mini.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mac_mini.jpg new file mode 100644 index 0000000..4822b02 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mac_mini.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg new file mode 100644 index 0000000..d1e6ab8 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mac_pro_20070622.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg new file mode 100644 index 0000000..525175a Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbook20071026.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg new file mode 100644 index 0000000..4e4f42c Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbook_pro20071026.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg new file mode 100644 index 0000000..595ecaf Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macbookair_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg new file mode 100644 index 0000000..34ace8d Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macosx_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg new file mode 100644 index 0000000..53066e4 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_macosx_server20071016.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg new file mode 100644 index 0000000..a0267a7 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_mighty_mouse.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_quicktime.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_quicktime.jpg new file mode 100644 index 0000000..163059d Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_quicktime.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg new file mode 100644 index 0000000..43151b5 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_shake_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg new file mode 100644 index 0000000..cdc24f5 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_timecapsule_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg new file mode 100644 index 0000000..1623791 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xsan_20080115.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xserve.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xserve.jpg new file mode 100644 index 0000000..f2c3f4b Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xserve.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg new file mode 100644 index 0000000..f93f3df Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/pb_xserve_raid.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg new file mode 100644 index 0000000..0eb8f8e Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_background_20070622.jpg differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png new file mode 100644 index 0000000..997ac18 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_scrollbar_20070622.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png new file mode 100644 index 0000000..6c9d0f9 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/images/productbrowser_scroller_20080115.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/product-slider/index.html b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/index.html new file mode 100644 index 0000000..530d859 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/product-slider/index.html @@ -0,0 +1,185 @@ + + + + + Slider Gallery + + + + + + + + + +
    +

    Slider Gallery

    +

    This shows a demonstration of a slider widget from the jQuery UI library used to create the same effect used on Apple's web site.

    +

    Read the article, and see the screencast this demonstration relates to

    + +
    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • + +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • + +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • + +
    • +
    • +
    • +
    +
    +
    + Wi-Fi + Macs + Applications + Servers +
    +
    +
    + + + + + + diff --git a/sites/all/libraries/jquery.ui/demos/real-world/range-interface/index.html b/sites/all/libraries/jquery.ui/demos/real-world/range-interface/index.html new file mode 100644 index 0000000..86110d9 --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/range-interface/index.html @@ -0,0 +1,130 @@ + + + + + +Slider Test Page + + + + + + + + + + + + + + + + + + + + + +
    +

    Slider Interface Example

    +
    +
    +
    +
    + 0 + 100 +
    +
    + +
    + +
    +
    0
    +
    10
    +
    20
    +
    30
    +
    40
    +
    50
    +
    60
    +
    70
    +
    80
    +
    90
    +
    100
    +
    +
    + + + diff --git a/sites/all/libraries/jquery.ui/demos/real-world/splitpane/css/demo.css b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/css/demo.css new file mode 100644 index 0000000..72ed40a --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/css/demo.css @@ -0,0 +1,149 @@ +/* -------------------------------------------------------------- + + jQuery UI: Demo Viewer + +-------------------------------------------------------------- */ + + +/*************************************/ +/* Blueprint: reset.css */ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +dl, dt, dd, ol, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +label { + margin-right: 5px; +} + +/* Remember to define focus styles! */ +:focus { + outline: 0; +} +body { + line-height: 1; + color: black; + background: white; + font-family: Arial,Sans-serif; font-size: 0.9em; + background-color: white; + overflow: hidden; +} +ol, ul { + list-style: none; +} + +/* Tables still need 'cellspacing="0"' in the markup. */ +table { + border-collapse: separate; + border-spacing: 0; +} +caption, th, td { + text-align: left; + font-weight: normal; +} + +/* Remove possible quote marks (") from ,
    . */ +blockquote:before, blockquote:after, +q:before, q:after { + content: ""; +} +blockquote, q { + quotes: "" ""; +} + +/*************************************/ +/* Viewer: Layout */ + +#wrapper { + background: #e1e7f2 url(../images/bg_gradient.gif) repeat-x; + } + #header { + padding: 10px; + background: #67A7E3; color: #fff; + position: relative; + } + #container { + height: 500px; + } + #container td { + overflow: hidden; + } + #container td div { + overflow: hidden; + padding: 0 15px 0 10px; + background: #fff; + height:475px; + font-size: 90%; + } + #container .ui-split-side-box { + width: 200px; + } + #container .ui-split-side { + overflow: hidden; + } + #container .ui-split-side ul { + margin: 0; padding: 0; padding-top: 3px; + } + #container .ui-split-side li { + margin: 0; padding: 0; border: 0; outline: 0; + list-style: none; + } + #container .ui-split-side li a { + height: 15px; + display:block; + padding: 3px 3px 3px 12px; + border-bottom: 1px solid #E8EEF7; + color: #000; + font-size: 90%; + text-decoration: none; + } + #container .ui-split-side li a:hover { + background: #E8EEF7; + border-color: #C3D9FF; + } + #container .ui-split-main-box { + + } + + #container .ui-resizable-e { + width: 10px; height: 475px; + background:#e1e7f2 url(../images/splitpane_handle-ew.gif) no-repeat scroll 75% 50% !important; + cursor:col-resize !important; + border-left: #bbb 1px solid; + padding: 3px; + } + #container .ui-resizable-n { + height: 10px; + background:#e1e7f2 url(../images/splitpane_handle-sn.gif) no-repeat scroll 50% 55% !important; + border-top: #bbb 1px solid; + padding: 3px; + } + + + + .ui-toolbar-item-hide-icon { + padding-left: 16px; height: 16px; + background-image: url(../images/icons_2.png); + background-repeat: no-repeat; margin: 0 2px; + display: inline-block; + } + + .ui-toolbar-item-hide-icon { background-position: -64px 50%; } + + .proxy { border: 1px dashed #000; }; + diff --git a/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/bg_gradient.gif b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/bg_gradient.gif new file mode 100644 index 0000000..d3f535e Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/bg_gradient.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/icons_2.png b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/icons_2.png new file mode 100644 index 0000000..a05f52c Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/icons_2.png differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif new file mode 100644 index 0000000..2627636 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/splitpane_handle-ew.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif new file mode 100644 index 0000000..bd60c40 Binary files /dev/null and b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/images/splitpane_handle-sn.gif differ diff --git a/sites/all/libraries/jquery.ui/demos/real-world/splitpane/index.html b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/index.html new file mode 100644 index 0000000..acb6caf --- /dev/null +++ b/sites/all/libraries/jquery.ui/demos/real-world/splitpane/index.html @@ -0,0 +1,96 @@ + + + + + + jQuery UI: SplitPane + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + + +
    + + +
    + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien. +

    + Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus. + +
    +
    +
    + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien. +

    + Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus. +
    +
    +
    + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum commodo mollis tortor. Ut dapibus turpis consequat quam. Nulla lacinia. Donec nunc. Donec sollicitudin. Vivamus orci. Pellentesque tempus velit vitae odio. Maecenas enim arcu, volutpat ac, viverra id, bibendum eu, felis. Vestibulum imperdiet arcu. Ut nisi. Cras vel lectus consectetuer mauris luctus ultrices. Duis fringilla pellentesque sapien. +

    + Cras tristique justo vel metus. Pellentesque dolor libero, ullamcorper ac, vehicula eget, porttitor at, dui. Ut a nibh. Nunc sit amet turpis. Aenean diam dui, consequat vel, scelerisque id, accumsan a, lectus. Duis ultrices, enim vitae pharetra tincidunt, elit nunc sollicitudin felis, dapibus pellentesque urna velit ut quam. Donec scelerisque vehicula dolor. Suspendisse lectus dui, posuere sit amet, sagittis nec, vulputate in, libero. Morbi tempus sagittis est. Phasellus in nisi. Sed a ligula. Vivamus condimentum quam non nibh. Fusce pellentesque, neque ac scelerisque luctus, leo elit bibendum elit, in rutrum leo erat tristique felis. Etiam consequat fringilla eros. Nullam neque. Aenean mollis, odio at consectetuer sollicitudin, tortor lorem facilisis nunc, sit amet condimentum lectus libero convallis dolor. Vivamus quis risus. +
    +
    +
    + + + diff --git a/sites/all/libraries/jquery.ui/jquery-1.2.6.js b/sites/all/libraries/jquery.ui/jquery-1.2.6.js new file mode 100644 index 0000000..e044f91 --- /dev/null +++ b/sites/all/libraries/jquery.ui/jquery-1.2.6.js @@ -0,0 +1,3549 @@ +(function(){ +/* + * jQuery 1.2.6 - New Wave Javascript + * + * Copyright (c) 2008 John Resig (jquery.com) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $ + * $Rev: 5685 $ + */ + +// Map over jQuery in case of overwrite +var _jQuery = window.jQuery, +// Map over the $ in case of overwrite + _$ = window.$; + +var jQuery = window.jQuery = window.$ = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context ); +}; + +// A simple way to check for HTML strings or ID strings +// (both of which we optimize for) +var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/, + +// Is it a simple selector + isSimple = /^.[^:#\[\.]*$/, + +// Will speed up references to undefined, and allows munging its name. + undefined; + +jQuery.fn = jQuery.prototype = { + init: function( selector, context ) { + // Make sure that a selection was provided + selector = selector || document; + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this[0] = selector; + this.length = 1; + return this; + } + // Handle HTML strings + if ( typeof selector == "string" ) { + // Are we dealing with HTML string or an ID? + var match = quickExpr.exec( selector ); + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) + selector = jQuery.clean( [ match[1] ], context ); + + // HANDLE: $("#id") + else { + var elem = document.getElementById( match[3] ); + + // Make sure an element was located + if ( elem ){ + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id != match[3] ) + return jQuery().find( selector ); + + // Otherwise, we inject the element directly into the jQuery object + return jQuery( elem ); + } + selector = []; + } + + // HANDLE: $(expr, [context]) + // (which is just equivalent to: $(content).find(expr) + } else + return jQuery( context ).find( selector ); + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) + return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector ); + + return this.setArray(jQuery.makeArray(selector)); + }, + + // The current version of jQuery being used + jquery: "1.2.6", + + // The number of elements contained in the matched element set + size: function() { + return this.length; + }, + + // The number of elements contained in the matched element set + length: 0, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == undefined ? + + // Return a 'clean' array + jQuery.makeArray( this ) : + + // Return just the object + this[ num ]; + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + // Build a new jQuery matched element set + var ret = jQuery( elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + // Return the newly-formed element set + return ret; + }, + + // Force the current matched set of elements to become + // the specified array of elements (destroying the stack in the process) + // You should use pushStack() in order to do this, but maintain the stack + setArray: function( elems ) { + // Resetting the length to 0, then using the native Array push + // is a super-fast way to populate an object with array-like properties + this.length = 0; + Array.prototype.push.apply( this, elems ); + + return this; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + var ret = -1; + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem && elem.jquery ? elem[0] : elem + , this ); + }, + + attr: function( name, value, type ) { + var options = name; + + // Look for the case where we're accessing a style value + if ( name.constructor == String ) + if ( value === undefined ) + return this[0] && jQuery[ type || "attr" ]( this[0], name ); + + else { + options = {}; + options[ name ] = value; + } + + // Check to see if we're setting style values + return this.each(function(i){ + // Set all the styles + for ( name in options ) + jQuery.attr( + type ? + this.style : + this, + name, jQuery.prop( this, options[ name ], type, i, name ) + ); + }); + }, + + css: function( key, value ) { + // ignore negative width and height values + if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 ) + value = undefined; + return this.attr( key, value, "curCSS" ); + }, + + text: function( text ) { + if ( typeof text != "object" && text != null ) + return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); + + var ret = ""; + + jQuery.each( text || this, function(){ + jQuery.each( this.childNodes, function(){ + if ( this.nodeType != 8 ) + ret += this.nodeType != 1 ? + this.nodeValue : + jQuery.fn.text( [ this ] ); + }); + }); + + return ret; + }, + + wrapAll: function( html ) { + if ( this[0] ) + // The elements to wrap the target around + jQuery( html, this[0].ownerDocument ) + .clone() + .insertBefore( this[0] ) + .map(function(){ + var elem = this; + + while ( elem.firstChild ) + elem = elem.firstChild; + + return elem; + }) + .append(this); + + return this; + }, + + wrapInner: function( html ) { + return this.each(function(){ + jQuery( this ).contents().wrapAll( html ); + }); + }, + + wrap: function( html ) { + return this.each(function(){ + jQuery( this ).wrapAll( html ); + }); + }, + + append: function() { + return this.domManip(arguments, true, false, function(elem){ + if (this.nodeType == 1) + this.appendChild( elem ); + }); + }, + + prepend: function() { + return this.domManip(arguments, true, true, function(elem){ + if (this.nodeType == 1) + this.insertBefore( elem, this.firstChild ); + }); + }, + + before: function() { + return this.domManip(arguments, false, false, function(elem){ + this.parentNode.insertBefore( elem, this ); + }); + }, + + after: function() { + return this.domManip(arguments, false, true, function(elem){ + this.parentNode.insertBefore( elem, this.nextSibling ); + }); + }, + + end: function() { + return this.prevObject || jQuery( [] ); + }, + + find: function( selector ) { + var elems = jQuery.map(this, function(elem){ + return jQuery.find( selector, elem ); + }); + + return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ? + jQuery.unique( elems ) : + elems ); + }, + + clone: function( events ) { + // Do the clone + var ret = this.map(function(){ + if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) { + // IE copies events bound via attachEvent when + // using cloneNode. Calling detachEvent on the + // clone will also remove the events from the orignal + // In order to get around this, we use innerHTML. + // Unfortunately, this means some modifications to + // attributes in IE that are actually only stored + // as properties will not be copied (such as the + // the name attribute on an input). + var clone = this.cloneNode(true), + container = document.createElement("div"); + container.appendChild(clone); + return jQuery.clean([container.innerHTML])[0]; + } else + return this.cloneNode(true); + }); + + // Need to set the expando to null on the cloned set if it exists + // removeData doesn't work here, IE removes it from the original as well + // this is primarily for IE but the data expando shouldn't be copied over in any browser + var clone = ret.find("*").andSelf().each(function(){ + if ( this[ expando ] != undefined ) + this[ expando ] = null; + }); + + // Copy the events from the original to the clone + if ( events === true ) + this.find("*").andSelf().each(function(i){ + if (this.nodeType == 3) + return; + var events = jQuery.data( this, "events" ); + + for ( var type in events ) + for ( var handler in events[ type ] ) + jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data ); + }); + + // Return the cloned set + return ret; + }, + + filter: function( selector ) { + return this.pushStack( + jQuery.isFunction( selector ) && + jQuery.grep(this, function(elem, i){ + return selector.call( elem, i ); + }) || + + jQuery.multiFilter( selector, this ) ); + }, + + not: function( selector ) { + if ( selector.constructor == String ) + // test special case where just one selector is passed in + if ( isSimple.test( selector ) ) + return this.pushStack( jQuery.multiFilter( selector, this, true ) ); + else + selector = jQuery.multiFilter( selector, this ); + + var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; + return this.filter(function() { + return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; + }); + }, + + add: function( selector ) { + return this.pushStack( jQuery.unique( jQuery.merge( + this.get(), + typeof selector == 'string' ? + jQuery( selector ) : + jQuery.makeArray( selector ) + ))); + }, + + is: function( selector ) { + return !!selector && jQuery.multiFilter( selector, this ).length > 0; + }, + + hasClass: function( selector ) { + return this.is( "." + selector ); + }, + + val: function( value ) { + if ( value == undefined ) { + + if ( this.length ) { + var elem = this[0]; + + // We need to handle select boxes special + if ( jQuery.nodeName( elem, "select" ) ) { + var index = elem.selectedIndex, + values = [], + options = elem.options, + one = elem.type == "select-one"; + + // Nothing was selected + if ( index < 0 ) + return null; + + // Loop through all the selected options + for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { + var option = options[ i ]; + + if ( option.selected ) { + // Get the specifc value for the option + value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value; + + // We don't need an array for one selects + if ( one ) + return value; + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + + // Everything else, we just grab the value + } else + return (this[0].value || "").replace(/\r/g, ""); + + } + + return undefined; + } + + if( value.constructor == Number ) + value += ''; + + return this.each(function(){ + if ( this.nodeType != 1 ) + return; + + if ( value.constructor == Array && /radio|checkbox/.test( this.type ) ) + this.checked = (jQuery.inArray(this.value, value) >= 0 || + jQuery.inArray(this.name, value) >= 0); + + else if ( jQuery.nodeName( this, "select" ) ) { + var values = jQuery.makeArray(value); + + jQuery( "option", this ).each(function(){ + this.selected = (jQuery.inArray( this.value, values ) >= 0 || + jQuery.inArray( this.text, values ) >= 0); + }); + + if ( !values.length ) + this.selectedIndex = -1; + + } else + this.value = value; + }); + }, + + html: function( value ) { + return value == undefined ? + (this[0] ? + this[0].innerHTML : + null) : + this.empty().append( value ); + }, + + replaceWith: function( value ) { + return this.after( value ).remove(); + }, + + eq: function( i ) { + return this.slice( i, i + 1 ); + }, + + slice: function() { + return this.pushStack( Array.prototype.slice.apply( this, arguments ) ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function(elem, i){ + return callback.call( elem, i, elem ); + })); + }, + + andSelf: function() { + return this.add( this.prevObject ); + }, + + data: function( key, value ){ + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value === undefined ) { + var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + if ( data === undefined && this.length ) + data = jQuery.data( this[0], key ); + + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + } else + return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){ + jQuery.data( this, key, value ); + }); + }, + + removeData: function( key ){ + return this.each(function(){ + jQuery.removeData( this, key ); + }); + }, + + domManip: function( args, table, reverse, callback ) { + var clone = this.length > 1, elems; + + return this.each(function(){ + if ( !elems ) { + elems = jQuery.clean( args, this.ownerDocument ); + + if ( reverse ) + elems.reverse(); + } + + var obj = this; + + if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) ) + obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") ); + + var scripts = jQuery( [] ); + + jQuery.each(elems, function(){ + var elem = clone ? + jQuery( this ).clone( true )[0] : + this; + + // execute all scripts after the elements have been injected + if ( jQuery.nodeName( elem, "script" ) ) + scripts = scripts.add( elem ); + else { + // Remove any inner scripts for later evaluation + if ( elem.nodeType == 1 ) + scripts = scripts.add( jQuery( "script", elem ).remove() ); + + // Inject the elements into the document + callback.call( obj, elem ); + } + }); + + scripts.each( evalScript ); + }); + } +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.fn.init.prototype = jQuery.fn; + +function evalScript( i, elem ) { + if ( elem.src ) + jQuery.ajax({ + url: elem.src, + async: false, + dataType: "script" + }); + + else + jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); + + if ( elem.parentNode ) + elem.parentNode.removeChild( elem ); +} + +function now(){ + return +new Date; +} + +jQuery.extend = jQuery.fn.extend = function() { + // copy reference to target object + var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; + + // Handle a deep copy situation + if ( target.constructor == Boolean ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target != "object" && typeof target != "function" ) + target = {}; + + // extend jQuery itself if only one argument is passed + if ( length == i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) + // Extend the base object + for ( var name in options ) { + var src = target[ name ], copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) + continue; + + // Recurse if we're merging object values + if ( deep && copy && typeof copy == "object" && !copy.nodeType ) + target[ name ] = jQuery.extend( deep, + // Never move original objects, clone them + src || ( copy.length != null ? [ ] : { } ) + , copy ); + + // Don't bring in undefined values + else if ( copy !== undefined ) + target[ name ] = copy; + + } + + // Return the modified object + return target; +}; + +var expando = "jQuery" + now(), uuid = 0, windowData = {}, + // exclude the following css properties to add px + exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, + // cache defaultView + defaultView = document.defaultView || {}; + +jQuery.extend({ + noConflict: function( deep ) { + window.$ = _$; + + if ( deep ) + window.jQuery = _jQuery; + + return jQuery; + }, + + // See test/unit/core.js for details concerning this function. + isFunction: function( fn ) { + return !!fn && typeof fn != "string" && !fn.nodeName && + fn.constructor != Array && /^[\s[]?function/.test( fn + "" ); + }, + + // check if an element is in a (or is an) XML document + isXMLDoc: function( elem ) { + return elem.documentElement && !elem.body || + elem.tagName && elem.ownerDocument && !elem.ownerDocument.body; + }, + + // Evalulates a script in a global context + globalEval: function( data ) { + data = jQuery.trim( data ); + + if ( data ) { + // Inspired by code by Andrea Giammarchi + // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html + var head = document.getElementsByTagName("head")[0] || document.documentElement, + script = document.createElement("script"); + + script.type = "text/javascript"; + if ( jQuery.browser.msie ) + script.text = data; + else + script.appendChild( document.createTextNode( data ) ); + + // Use insertBefore instead of appendChild to circumvent an IE6 bug. + // This arises when a base node is used (#2709). + head.insertBefore( script, head.firstChild ); + head.removeChild( script ); + } + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); + }, + + cache: {}, + + data: function( elem, name, data ) { + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ]; + + // Compute a unique ID for the element + if ( !id ) + id = elem[ expando ] = ++uuid; + + // Only generate the data cache if we're + // trying to access or manipulate it + if ( name && !jQuery.cache[ id ] ) + jQuery.cache[ id ] = {}; + + // Prevent overriding the named cache with undefined values + if ( data !== undefined ) + jQuery.cache[ id ][ name ] = data; + + // Return the named cache data, or the ID for the element + return name ? + jQuery.cache[ id ][ name ] : + id; + }, + + removeData: function( elem, name ) { + elem = elem == window ? + windowData : + elem; + + var id = elem[ expando ]; + + // If we want to remove a specific section of the element's data + if ( name ) { + if ( jQuery.cache[ id ] ) { + // Remove the section of cache data + delete jQuery.cache[ id ][ name ]; + + // If we've removed all the data, remove the element's cache + name = ""; + + for ( name in jQuery.cache[ id ] ) + break; + + if ( !name ) + jQuery.removeData( elem ); + } + + // Otherwise, we want to remove all of the element's data + } else { + // Clean up the element expando + try { + delete elem[ expando ]; + } catch(e){ + // IE has trouble directly removing the expando + // but it's ok with using removeAttribute + if ( elem.removeAttribute ) + elem.removeAttribute( expando ); + } + + // Completely remove the data cache + delete jQuery.cache[ id ]; + } + }, + + // args is for internal usage only + each: function( object, callback, args ) { + var name, i = 0, length = object.length; + + if ( args ) { + if ( length == undefined ) { + for ( name in object ) + if ( callback.apply( object[ name ], args ) === false ) + break; + } else + for ( ; i < length; ) + if ( callback.apply( object[ i++ ], args ) === false ) + break; + + // A special, fast, case for the most common use of each + } else { + if ( length == undefined ) { + for ( name in object ) + if ( callback.call( object[ name ], name, object[ name ] ) === false ) + break; + } else + for ( var value = object[0]; + i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} + } + + return object; + }, + + prop: function( elem, value, type, i, name ) { + // Handle executable functions + if ( jQuery.isFunction( value ) ) + value = value.call( elem, i ); + + // Handle passing in a number to a CSS property + return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ? + value + "px" : + value; + }, + + className: { + // internal only, use addClass("class") + add: function( elem, classNames ) { + jQuery.each((classNames || "").split(/\s+/), function(i, className){ + if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) + elem.className += (elem.className ? " " : "") + className; + }); + }, + + // internal only, use removeClass("class") + remove: function( elem, classNames ) { + if (elem.nodeType == 1) + elem.className = classNames != undefined ? + jQuery.grep(elem.className.split(/\s+/), function(className){ + return !jQuery.className.has( classNames, className ); + }).join(" ") : + ""; + }, + + // internal only, use hasClass("class") + has: function( elem, className ) { + return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; + } + }, + + // A method for quickly swapping in/out CSS properties to get correct calculations + swap: function( elem, options, callback ) { + var old = {}; + // Remember the old values, and insert the new ones + for ( var name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + callback.call( elem ); + + // Revert the old values + for ( var name in options ) + elem.style[ name ] = old[ name ]; + }, + + css: function( elem, name, force ) { + if ( name == "width" || name == "height" ) { + var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; + + function getWH() { + val = name == "width" ? elem.offsetWidth : elem.offsetHeight; + var padding = 0, border = 0; + jQuery.each( which, function() { + padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; + border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; + }); + val -= Math.round(padding + border); + } + + if ( jQuery(elem).is(":visible") ) + getWH(); + else + jQuery.swap( elem, props, getWH ); + + return Math.max(0, val); + } + + return jQuery.curCSS( elem, name, force ); + }, + + curCSS: function( elem, name, force ) { + var ret, style = elem.style; + + // A helper method for determining if an element's values are broken + function color( elem ) { + if ( !jQuery.browser.safari ) + return false; + + // defaultView is cached + var ret = defaultView.getComputedStyle( elem, null ); + return !ret || ret.getPropertyValue("color") == ""; + } + + // We need to handle opacity special in IE + if ( name == "opacity" && jQuery.browser.msie ) { + ret = jQuery.attr( style, "opacity" ); + + return ret == "" ? + "1" : + ret; + } + // Opera sometimes will give the wrong display answer, this fixes it, see #2037 + if ( jQuery.browser.opera && name == "display" ) { + var save = style.outline; + style.outline = "0 solid black"; + style.outline = save; + } + + // Make sure we're using the right name for getting the float value + if ( name.match( /float/i ) ) + name = styleFloat; + + if ( !force && style && style[ name ] ) + ret = style[ name ]; + + else if ( defaultView.getComputedStyle ) { + + // Only "float" is needed here + if ( name.match( /float/i ) ) + name = "float"; + + name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); + + var computedStyle = defaultView.getComputedStyle( elem, null ); + + if ( computedStyle && !color( elem ) ) + ret = computedStyle.getPropertyValue( name ); + + // If the element isn't reporting its values properly in Safari + // then some display: none elements are involved + else { + var swap = [], stack = [], a = elem, i = 0; + + // Locate all of the parent display: none elements + for ( ; a && color(a); a = a.parentNode ) + stack.unshift(a); + + // Go through and make them visible, but in reverse + // (It would be better if we knew the exact display type that they had) + for ( ; i < stack.length; i++ ) + if ( color( stack[ i ] ) ) { + swap[ i ] = stack[ i ].style.display; + stack[ i ].style.display = "block"; + } + + // Since we flip the display style, we have to handle that + // one special, otherwise get the value + ret = name == "display" && swap[ stack.length - 1 ] != null ? + "none" : + ( computedStyle && computedStyle.getPropertyValue( name ) ) || ""; + + // Finally, revert the display styles back + for ( i = 0; i < swap.length; i++ ) + if ( swap[ i ] != null ) + stack[ i ].style.display = swap[ i ]; + } + + // We should always get a number back from opacity + if ( name == "opacity" && ret == "" ) + ret = "1"; + + } else if ( elem.currentStyle ) { + var camelCase = name.replace(/\-(\w)/g, function(all, letter){ + return letter.toUpperCase(); + }); + + ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; + + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { + // Remember the original values + var left = style.left, rsLeft = elem.runtimeStyle.left; + + // Put in the new values to get a computed value out + elem.runtimeStyle.left = elem.currentStyle.left; + style.left = ret || 0; + ret = style.pixelLeft + "px"; + + // Revert the changed values + style.left = left; + elem.runtimeStyle.left = rsLeft; + } + } + + return ret; + }, + + clean: function( elems, context ) { + var ret = []; + context = context || document; + // !context.createElement fails in IE with an error but returns typeof 'object' + if (typeof context.createElement == 'undefined') + context = context.ownerDocument || context[0] && context[0].ownerDocument || document; + + jQuery.each(elems, function(i, elem){ + if ( !elem ) + return; + + if ( elem.constructor == Number ) + elem += ''; + + // Convert html string into DOM nodes + if ( typeof elem == "string" ) { + // Fix "XHTML"-style tags in all browsers + elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ + return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? + all : + front + ">"; + }); + + // Trim whitespace, otherwise indexOf won't work as expected + var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div"); + + var wrap = + // option or optgroup + !tags.indexOf("", "" ] || + + !tags.indexOf("", "" ] || + + tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && + [ 1, "", "
    " ] || + + !tags.indexOf("", "" ] || + + // matched above + (!tags.indexOf("", "" ] || + + !tags.indexOf("", "" ] || + + // IE can't serialize and + + + + + + + + + + + + +
    + +
    + There is one obvious advantage: +
    +

    + You've seen it coming!
    + Buy now and get nothing for free!
    + Well, at least no free beer. Perhaps a bear, if you can afford it. +

    +
    + Now that you've got... +
    +

    + your bear, you have to admit it!
    + No, we aren't selling bears. +

    +

    + We could talk about renting one. +

    +
    + Rent one bear, ... +
    +

    + get two for three beer. +

    +

    + And now, for something completely different. +

    +
    +
    + + +
    +
    Red
    +
    + Fancy stuff about red thingies. +
    +
    Green
    +
    + Green! Green! Green! +
    +
    Blue
    +
    + Cool kids are blue. +
    +
    + +
    +
    +
    Tennis
    +
    + One ball, two players. Lots of fun. +
    +
    +
    +
    Soccer
    +
    + One ball, 22 players. Lots of fun. +
    +
    +
    +
    Baseball
    +
    + Well, one ball, some guys running around, some guys hitting others with a stick.
    + Sounds like fun, doesn't it? +
    +
    + Well, apart from the running part. +
    +
    +
    + +
    + + + diff --git a/sites/all/libraries/jquery.ui/tests/accordion.js b/sites/all/libraries/jquery.ui/tests/accordion.js new file mode 100644 index 0000000..78acbd8 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/accordion.js @@ -0,0 +1,150 @@ +/* + * accordion unit tests + */ +(function($) { + +module("accordion"); + +jQuery.ui.accordion.defaults.animated = false; + +function state(accordion) { + var args = $.makeArray(arguments).slice(1); + $.each(args, function(i, n) { + equals(accordion.find("div").eq(i).is(":visible"), n); + }); +} + +$.fn.triggerEvent = function(type, target) { + return this.triggerHandler(type, [jQuery.event.fix({ type: type, target: target })]); +} + +test("basics", function() { + state($('#list1').accordion(), 1, 0, 0); +}); + +test("autoheight", function() { + $('#navigation').accordion({ header: '.head', autoHeight: false }); + equals( 90, $('#navigation ul:first').height() ); + equals( 126, $('#navigation ul:eq(1)').height() ); + equals( 54, $('#navigation ul:last').height() ); + $('#navigation').accordion("destroy").accordion({ header: '.head', autoHeight: true }); + equals( 126, $('#navigation ul:first').height() ); + equals( 126, $('#navigation ul:eq(1)').height() ); + equals( 126, $('#navigation ul:last').height() ); +}); + +test("activate, numeric", function() { + var ac = $('#list1').accordion({ active: 1 }); + state(ac, 0, 1, 0); + ac.accordion("activate", 2); + state(ac, 0, 0, 1); + ac.accordion("activate", 0); + state(ac, 1, 0, 0); + ac.accordion("activate", 1); + state(ac, 0, 1, 0); + ac.accordion("activate", 2); + state(ac, 0, 0, 1); + ac.accordion("activate", -1); + state(ac, 0, 0, 1); +}); + +test("activate, boolean and numeric, alwaysOpen:false", function() { + var ac = $('#list1').accordion({alwaysOpen: false}).accordion("activate", 2); + state(ac, 0, 0, 1); + ok("x", "----"); + ac.accordion("activate", 0); + state(ac, 1, 0, 0); + ok("x", "----"); + ac.accordion("activate", -1); + state(ac, 0, 0, 0); +}); + +test("activate, boolean, alwaysOpen:true", function() { + var ac = $('#list1').accordion().accordion("activate", 2); + state(ac, 0, 0, 1); + ac.accordion("activate", -1); + state(ac, 0, 0, 1); +}); + +test("activate, string expression", function() { + var ac = $('#list1').accordion({ active: ":last" }); + state(ac, 0, 0, 1); + ac.accordion("activate", ":first"); + state(ac, 1, 0, 0); + ac.accordion("activate", ":eq(1)"); + state(ac, 0, 1, 0); + ac.accordion("activate", ":last"); + state(ac, 0, 0, 1); +}); + +test("activate, jQuery or DOM element", function() { + var ac = $('#list1').accordion({ active: $("#list1 a:last") }); + state(ac, 0, 0, 1); + ac.accordion("activate", $("#list1 a:first")); + state(ac, 1, 0, 0); + ac.accordion("activate", $("#list1 a")[1]); + state(ac, 0, 1, 0); +}); + +function state2(accordion) { + var args = $.makeArray(arguments).slice(1); + $.each(args, function(i, n) { + equals(accordion.find("ul").eq(i).is(":visible"), n); + }); +} + +test("handle click on header-descendant", function() { + var ac = $('#navigation').accordion({ header: '.head', autoHeight: false }) + ac.triggerEvent("click", $('#navigation span:contains(Bass)')[0]); + state2(ac, 0, 1, 0); +}); + +test("active:false", function() { + $("#list1").accordion({ + active: false, + alwaysOpen: false + }); + equals( $("#list1 a.selected").size(), 0, "no headers selected" ); +}); + +test("accordionchange event, open closed and close again", function() { + expect(8); + $("#list1").accordion({ + active: false, + alwaysOpen: false + }) + .one("accordionchange", function(event, ui) { + equals( ui.oldHeader.size(), 0 ) + equals( ui.oldContent.size(), 0 ) + equals( ui.newHeader.size(), 1 ) + equals( ui.newContent.size(), 1 ) + }) + .accordion("activate", 0) + .one("accordionchange", function(event, ui) { + equals( ui.oldHeader.size(), 1 ) + equals( ui.oldContent.size(), 1 ) + equals( ui.newHeader.size(), 0 ) + equals( ui.newContent.size(), 0 ) + }) + .accordion("activate", 0); +}); + +test("accessibility", function () { + expect(9); + var ac = $('#list1').accordion().accordion("activate", 1); + var headers = $(".ui-accordion-header"); + + equals( headers.eq(1).attr("tabindex"), "0", "active header should have tabindex=0"); + equals( headers.eq(0).attr("tabindex"), "-1", "inactive header should have tabindex=-1"); + equals( ac.attr("role"), "tablist", "main role"); + equals( headers.attr("role"), "tab", "tab roles"); + equals( headers.next().attr("role"), "tabpanel", "tabpanel roles"); + equals( headers.eq(1).attr("aria-expanded"), "true", "active tab has aria-expanded"); + equals( headers.eq(0).attr("aria-expanded"), "false", "inactive tab has aria-expanded"); + ac.accordion("activate", 0); + equals( headers.eq(0).attr("aria-expanded"), "true", "newly active tab has aria-expanded"); + equals( headers.eq(1).attr("aria-expanded"), "false", "newly inactive tab has aria-expanded"); +}); + + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/all.html b/sites/all/libraries/jquery.ui/tests/all.html new file mode 100644 index 0000000..15bd848 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/all.html @@ -0,0 +1,221 @@ + + + + jQuery UI All Tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    jQuery UI All Tests

    + +

    + +

    Run individual testsuites or doubleclick a test below

    + + +
      + +
      + +

      + +
      Relative
      +
      Absolute
      + +
      +
      +
      +
      + +
      + There is one obvious advantage: +
      +

      + You've seen it coming!
      + Buy now and get nothing for free!
      + Well, at least no free beer. Perhaps a bear, if you can afford it. +

      +
      + Now that you've got... +
      +

      + your bear, you have to admit it!
      + No, we aren't selling bears. +

      +

      + We could talk about renting one. +

      +
      + Rent one bear, ... +
      +

      + get two for three beer. +

      +

      + And now, for something completely different. +

      +
      +
      + + +
      +
      Red
      +
      + Fancy stuff about red thingies. +
      +
      Green
      +
      + Green! Green! Green! +
      +
      Blue
      +
      + Cool kids are blue. +
      +
      + +
      +
      +
      Tennis
      +
      + One ball, two players. Lots of fun. +
      +
      +
      +
      Soccer
      +
      + One ball, 22 players. Lots of fun. +
      +
      +
      +
      Baseball
      +
      + Well, one ball, some guys running around, some guys hitting others with a stick.
      + Sounds like fun, doesn't it? +
      +
      + Well, apart from the running part. +
      +
      +
      + +
      I'm a resizable.
      + + + +
        +
      • Item 1
      • +
      • Item 2
      • +
      • Item 3
      • +
      • Item 4
      • +
      • Item 5
      • +
      + +
        +
      • Item 1
      • +
      • Item 2
      • +
      • Item 3
      • +
      • Item 4
      • +
      • Item 5
      • +
      + +

      + + + +
      +
        +
      • 1
      • +
      • 2
      • +
      • 3
      • +
      +
      +
      +
      +
      +
      +
        +
      • 1
      • +
      • 2
      • +
      +
      +
      +
      + +
      + + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/tests/all_2.html b/sites/all/libraries/jquery.ui/tests/all_2.html new file mode 100644 index 0000000..82d50b4 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/all_2.html @@ -0,0 +1,81 @@ + + + + jQuery UI All Tests + + + + + + + + + + + + + + + + + + + + + + + + + + +

      jQuery UI All Tests

      + +

      + +

      Run individual testsuites or doubleclick a test below

      +
        +
      + +
        + +
        + +
        + + + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/tests/core.html b/sites/all/libraries/jquery.ui/tests/core.html new file mode 100644 index 0000000..c86d272 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/core.html @@ -0,0 +1,63 @@ + + + + jQuery UI Core Test Suite + + + + + + + + + + + + + +
        +
        + + + + + + + + + anchor + anchor +
        +
        + + + + + + + + +
        +
        + + + + +
        +
        + + + + +
        +
        +
        + + + diff --git a/sites/all/libraries/jquery.ui/tests/core.js b/sites/all/libraries/jquery.ui/tests/core.js new file mode 100644 index 0000000..c1427ec --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/core.js @@ -0,0 +1,78 @@ +/* + * core unit tests + */ +(function($) { + +module("selectors"); + +test("tabbable - enabled elements", function() { + expect(10); + + ok( $('#input1-1').is(':tabbable'), 'input, no type'); + ok( $('#input1-2').is(':tabbable'), 'input, type text'); + ok( $('#input1-3').is(':tabbable'), 'input, type checkbox'); + ok( $('#input1-4').is(':tabbable'), 'input, type radio'); + ok( $('#input1-5').is(':tabbable'), 'input, type button'); + ok(!$('#input1-6').is(':tabbable'), 'input, type hidden'); + ok( $('#input1-7').is(':tabbable'), 'select'); + ok( $('#input1-8').is(':tabbable'), 'textarea'); + ok( $('#anchor1-1').is(':tabbable'), 'anchor with href'); + ok(!$('#anchor1-2').is(':tabbable'), 'anchor without href'); +}); + +test("tabbable - disabled elements", function() { + expect(8); + + ok(!$('#input2-1').is(':tabbable'), 'input, no type'); + ok(!$('#input2-2').is(':tabbable'), 'input, type text'); + ok(!$('#input2-3').is(':tabbable'), 'input, type checkbox'); + ok(!$('#input2-4').is(':tabbable'), 'input, type radio'); + ok(!$('#input2-5').is(':tabbable'), 'input, type button'); + ok(!$('#input2-6').is(':tabbable'), 'input, type hidden'); + ok(!$('#input2-7').is(':tabbable'), 'select'); + ok(!$('#input2-8').is(':tabbable'), 'textarea'); +}); + +test("tabbable - hidden styles", function() { + expect(6); + + ok(!$('#input3-1').is(':tabbable'), 'input, hidden wrapper - display: none'); + ok(!$('#anchor3-1').is(':tabbable'), 'anchor, hidden wrapper - display: none'); + ok(!$('#input3-2').is(':tabbable'), 'input, hidden wrapper - visibility: hidden'); + ok(!$('#anchor3-2').is(':tabbable'), 'anchor, hidden wrapper - visibility: hidden'); + ok(!$('#input3-3').is(':tabbable'), 'input, display: none'); + ok(!$('#input3-4').is(':tabbable'), 'input, visibility: hidden'); +}); + +test("tabbable - tabindex", function() { + expect(4); + + ok( $('#input4-1').is(':tabbable'), 'input, tabindex 0'); + ok( $('#input4-2').is(':tabbable'), 'input, tabindex 10'); + ok(!$('#input4-3').is(':tabbable'), 'input, tabindex -1'); + ok(!$('#input4-4').is(':tabbable'), 'input, tabindex -50'); +}); + +module('jQuery extensions'); + +test("attr - aria", function() { + expect(6); + + var el = $('#aria'); + + ok(!el.attr('role'), 'role is empty via attr'); + equals(el.attr('role', 'tablist').attr('role'), 'tablist', 'role is tablist'); + + equals(el.attr('aria-expanded'), undefined, 'aria expanded is undefined'); + + el.attr('aria-expanded', true); + equals(el.attr('aria-expanded'), 'true', 'aria expanded is true'); + + el.removeAttr('aria-expanded'); + equals(el.attr('aria-expanded'), undefined, 'aria expanded is undefined after removing'); + + el.attr('aria-expanded', false); + equals(el.attr('aria-expanded'), 'false', 'aria expanded is false'); +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/datepicker.html b/sites/all/libraries/jquery.ui/tests/datepicker.html new file mode 100644 index 0000000..4d8d59d --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/datepicker.html @@ -0,0 +1,30 @@ + + + + jQuery UI Datepicker Test Suite + + + + + + + + + + + + + + + + + + +
        +

        +
        + + + diff --git a/sites/all/libraries/jquery.ui/tests/datepicker.js b/sites/all/libraries/jquery.ui/tests/datepicker.js new file mode 100644 index 0000000..eebe3ec --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/datepicker.js @@ -0,0 +1,1759 @@ +/* + * datepicker unit tests + */ +(function($) { + +module('datepicker'); + +function equalsDate(d1, d2, message) { + if (!d1 || !d2) { + ok(false, message + ' - missing date'); + return; + } + d1 = new Date(d1.getFullYear(), d1.getMonth(), d1.getDate()); + d2 = new Date(d2.getFullYear(), d2.getMonth(), d2.getDate()); + equals(d1.toString(), d2.toString(), message); +} + +function equalsDateArray(a1, a2, message) { + if (!a1 || !a2) { + ok(false, message + ' - missing dates'); + return; + } + a1[0] = (a1[0] ? new Date(a1[0].getFullYear(), a1[0].getMonth(), a1[0].getDate()) : ''); + a1[1] = (a1[1] ? new Date(a1[1].getFullYear(), a1[1].getMonth(), a1[1].getDate()) : ''); + a2[0] = (a2[0] ? new Date(a2[0].getFullYear(), a2[0].getMonth(), a2[0].getDate()) : ''); + a2[1] = (a2[1] ? new Date(a2[1].getFullYear(), a2[1].getMonth(), a2[1].getDate()) : ''); + same(a1, a2, message); +} + +function init(id, options) { + $.datepicker.setDefaults($.datepicker.regional['']); + var inp = $(id); + inp.datepicker($.extend({duration: ''}, options || {})); + return inp; +} + +var PROP_NAME = 'datepicker'; + +test('setDefaults', function() { + var inp = init('#inp'); + var dp = $('#ui-datepicker-div'); + ok(!dp.is(':visible'), 'Initially invisible'); + ok(inp.is('.hasDatepicker'), 'Marker class set'); + ok($($.datepicker.dpDiv).html() == '', 'Content empty'); + inp.datepicker('show'); + ok($($.datepicker.dpDiv).html() != '', 'Content present'); + inp.datepicker('hide'); + equals($.datepicker._defaults.showOn, 'focus', 'Initial showOn'); + $.datepicker.setDefaults({showOn: 'button'}); + equals($.datepicker._defaults.showOn, 'button', 'Change default showOn'); + $.datepicker.setDefaults({showOn: 'focus'}); + equals($.datepicker._defaults.showOn, 'focus', 'Restore showOn'); +}); + +test('destroy', function() { + var inp = init('#inp'); + ok(inp.is('.hasDatepicker'), 'Default - marker class set'); + ok($.data(inp[0], PROP_NAME), 'Default - instance present'); + ok(inp.next().is('#alt'), 'Default - button absent'); + inp.datepicker('destroy'); + inp = $('#inp'); + ok(!inp.is('.hasDatepicker'), 'Default - marker class cleared'); + ok(!$.data(inp[0], PROP_NAME), 'Default - instance absent'); + ok(inp.next().is('#alt'), 'Default - button absent'); + // With button + inp= init('#inp', {showOn: 'both'}); + ok(inp.is('.hasDatepicker'), 'Button - marker class set'); + ok($.data(inp[0], PROP_NAME), 'Button - instance present'); + ok(inp.next().text() == '...', 'Button - button added'); + inp.datepicker('destroy'); + inp = $('#inp'); + ok(!inp.is('.hasDatepicker'), 'Button - marker class cleared'); + ok(!$.data(inp[0], PROP_NAME), 'Button - instance absent'); + ok(inp.next().is('#alt'), 'Button - button removed'); + // With append text + inp = init('#inp', {appendText: 'Testing'}); + ok(inp.is('.hasDatepicker'), 'Append - marker class set'); + ok($.data(inp[0], PROP_NAME), 'Append - instance present'); + ok(inp.next().text() == 'Testing', 'Append - append text added'); + inp.datepicker('destroy'); + inp = $('#inp'); + ok(!inp.is('.hasDatepicker'), 'Append - marker class cleared'); + ok(!$.data(inp[0], PROP_NAME), 'Append - instance absent'); + ok(inp.next().is('#alt'), 'Append - append text removed'); + // With both + inp= init('#inp', {showOn: 'both', buttonImageOnly: true, + buttonImage: 'img/calendar.gif', appendText: 'Testing'}); + ok(inp.is('.hasDatepicker'), 'Both - marker class set'); + ok($.data(inp[0], PROP_NAME), 'Both - instance present'); + ok(inp.next()[0].nodeName.toLowerCase() == 'img', 'Both - button added'); + ok(inp.next().next().text() == 'Testing', 'Both - append text added'); + inp.datepicker('destroy'); + inp = $('#inp'); + ok(!inp.is('.hasDatepicker'), 'Both - marker class cleared'); + ok(!$.data(inp[0], PROP_NAME), 'Both - instance absent'); + ok(inp.next().is('#alt'), 'Both - button and append text absent'); + // Inline + var inl = init('#inl'); + ok(inl.is('.hasDatepicker'), 'Inline - marker class set'); + ok(inl.html() != '', 'Inline - datepicker present'); + ok($.data(inl[0], PROP_NAME), 'Inline - instance present'); + ok(inl.next().length == 0 || inl.next().is('p'), 'Inline - button absent'); + inl.datepicker('destroy'); + inl = $('#inl'); + ok(!inl.is('.hasDatepicker'), 'Inline - marker class cleared'); + ok(inl.html() == '', 'Inline - datepicker absent'); + ok(!$.data(inl[0], PROP_NAME), 'Inline - instance absent'); + ok(inl.next().length == 0 || inl.next().is('p'), 'Inline - button absent'); +}); + +test('option', function() { + var inp = init('#inp'); + var inst = $.data(inp[0], PROP_NAME); + equals(inst.settings.showOn, null, 'Initial setting showOn'); + equals($.datepicker._get(inst, 'showOn'), 'focus', 'Initial instance showOn'); + equals($.datepicker._defaults.showOn, 'focus', 'Initial default showOn'); + inp.datepicker('option', 'showOn', 'button'); + equals(inst.settings.showOn, 'button', 'Change setting showOn'); + equals($.datepicker._get(inst, 'showOn'), 'button', 'Change instance showOn'); + equals($.datepicker._defaults.showOn, 'focus', 'Retain default showOn'); + inp.datepicker('option', {showOn: 'both'}); + equals(inst.settings.showOn, 'both', 'Change setting showOn'); + equals($.datepicker._get(inst, 'showOn'), 'both', 'Change instance showOn'); + equals($.datepicker._defaults.showOn, 'focus', 'Retain default showOn'); + inp.datepicker('option', 'showOn', undefined); + equals(inst.settings.showOn, null, 'Clear setting showOn'); + equals($.datepicker._get(inst, 'showOn'), 'focus', 'Restore instance showOn'); + equals($.datepicker._defaults.showOn, 'focus', 'Retain default showOn'); +}); + +test('change', function() { + var inp = init('#inp'); + var inst = $.data(inp[0], PROP_NAME); + equals(inst.settings.showOn, null, 'Initial setting showOn'); + equals($.datepicker._get(inst, 'showOn'), 'focus', 'Initial instance showOn'); + equals($.datepicker._defaults.showOn, 'focus', 'Initial default showOn'); + inp.datepicker('change', 'showOn', 'button'); + equals(inst.settings.showOn, 'button', 'Change setting showOn'); + equals($.datepicker._get(inst, 'showOn'), 'button', 'Change instance showOn'); + equals($.datepicker._defaults.showOn, 'focus', 'Retain default showOn'); + inp.datepicker('change', {showOn: 'both'}); + equals(inst.settings.showOn, 'both', 'Change setting showOn'); + equals($.datepicker._get(inst, 'showOn'), 'both', 'Change instance showOn'); + equals($.datepicker._defaults.showOn, 'focus', 'Retain default showOn'); + inp.datepicker('change', 'showOn', undefined); + equals(inst.settings.showOn, null, 'Clear setting showOn'); + equals($.datepicker._get(inst, 'showOn'), 'focus', 'Restore instance showOn'); + equals($.datepicker._defaults.showOn, 'focus', 'Retain default showOn'); +}); + +test('invocation', function() { + var inp = init('#inp'); + var dp = $('#ui-datepicker-div'); + var body = $('body'); + // On focus + var button = inp.siblings('button'); + ok(button.length == 0, 'Focus - button absent'); + var image = inp.siblings('img'); + ok(image.length == 0, 'Focus - image absent'); + inp.focus(); + ok(dp.is(':visible'), 'Focus - rendered on focus'); + inp.simulate('keydown', {keyCode: $.simulate.VK_ESC}); + ok(!dp.is(':visible'), 'Focus - hidden on exit'); + inp.focus(); + ok(dp.is(':visible'), 'Focus - rendered on focus'); + body.simulate('mousedown', {}); + ok(!dp.is(':visible'), 'Focus - hidden on external click'); + inp.datepicker('hide').datepicker('destroy'); + // On button + inp = init('#inp', {showOn: 'button', buttonText: 'Popup'}); + ok(!dp.is(':visible'), 'Button - initially hidden'); + button = inp.siblings('button'); + image = inp.siblings('img'); + ok(button.length == 1, 'Button - button present'); + ok(image.length == 0, 'Button - image absent'); + equals(button.text(), 'Popup', 'Button - button text'); + inp.focus(); + ok(!dp.is(':visible'), 'Button - not rendered on focus'); + button.click(); + ok(dp.is(':visible'), 'Button - rendered on button click'); + button.click(); + ok(!dp.is(':visible'), 'Button - hidden on second button click'); + inp.datepicker('hide').datepicker('destroy'); + // On image button + inp = init('#inp', {showOn: 'button', buttonImageOnly: true, + buttonImage: 'img/calendar.gif', buttonText: 'Cal'}); + ok(!dp.is(':visible'), 'Image button - initially hidden'); + button = inp.siblings('button'); + ok(button.length == 0, 'Image button - button absent'); + image = inp.siblings('img'); + ok(image.length == 1, 'Image button - image present'); + equals(image.attr('src'), 'img/calendar.gif', 'Image button - image source'); + equals(image.attr('title'), 'Cal', 'Image button - image text'); + inp.focus(); + ok(!dp.is(':visible'), 'Image button - not rendered on focus'); + image.click(); + ok(dp.is(':visible'), 'Image button - rendered on image click'); + image.click(); + ok(!dp.is(':visible'), 'Image button - hidden on second image click'); + inp.datepicker('hide').datepicker('destroy'); + // On both + inp = init('#inp', {showOn: 'both', buttonImage: 'img/calendar.gif'}); + ok(!dp.is(':visible'), 'Both - initially hidden'); + button = inp.siblings('button'); + ok(button.length == 1, 'Both - button present'); + image = inp.siblings('img'); + ok(image.length == 0, 'Both - image absent'); + image = button.children('img'); + ok(image.length == 1, 'Both - button image present'); + inp.focus(); + ok(dp.is(':visible'), 'Both - rendered on focus'); + body.simulate('mousedown', {}); + ok(!dp.is(':visible'), 'Both - hidden on external click'); + button.click(); + ok(dp.is(':visible'), 'Both - rendered on button click'); + button.click(); + ok(!dp.is(':visible'), 'Both - hidden on second button click'); + inp.datepicker('hide').datepicker('destroy'); +}); + +test('baseStructure', function() { + var dp = $('#ui-datepicker-div'); + var inp = init('#inp'); + inp.focus(); + var iframe = ($.browser.msie && parseInt($.browser.version) < 7); + ok(dp.is(':visible'), 'Structure - datepicker visible'); + ok(!dp.is('.ui-datepicker-rtl'), 'Structure - not right-to-left'); + ok(!dp.is('.ui-datepicker-multi'), 'Structure - not multi-month'); + equals(dp.children().length, 4 + (iframe ? 1 : 0), 'Structure - child count'); + var control = dp.children(':first'); + ok(control.is('div.ui-datepicker-control'), 'Structure - control division'); + equals(control.children().length, 2, 'Structure - control child count'); + ok(control.children(':first').is('div.ui-datepicker-clear'), + 'Structure - clear division'); + ok(control.children(':last').is('div.ui-datepicker-close'), + 'Structure - close division'); + var links = dp.children(':eq(1)'); + ok(links.is('div.ui-datepicker-links'), 'Structure - links division'); + equals(links.children().length, 3, 'Structure - links child count'); + ok(links.children(':first').is('div.ui-datepicker-prev') && + links.children(':first').html() != '', + 'Structure - prev division'); + ok(links.children(':eq(1)').is('div.ui-datepicker-current') && + links.children(':eq(1)').html() != '', + 'Structure - current division'); + ok(links.children(':last').is('div.ui-datepicker-next') && + links.children(':last').html() != '', + 'Structure - next division'); + var month = dp.children(':eq(2)'); + ok(month.is('div.ui-datepicker-one-month') && month.is('div.ui-datepicker-new-row'), + 'Structure - month division'); + var header = month.children(':first'); + ok(header.is('div.ui-datepicker-header'), 'Structure - month header division'); + equals(header.children().length, 2, 'Structure - month header child count'); + ok(header.children(':first').is('select.ui-datepicker-new-month'), + 'Structure - new month select'); + ok(header.children(':last').is('select.ui-datepicker-new-year'), + 'Structure - new year select'); + var table = month.children(':eq(1)'); + ok(table.is('table.ui-datepicker'), 'Structure - month table'); + ok(table.children(':first').is('thead'), 'Structure - month table thead'); + var titles = table.children(':first').children(':first'); + ok(titles.is('tr.ui-datepicker-title-row'), 'Structure - month table title row'); + equals(titles.find('a').length, 7, 'Structure - month table title links'); + ok(table.children(':eq(1)').is('tbody'), 'Structure - month table body'); + ok(table.children(':eq(1)').children('tr').length >= 4, + 'Structure - month table week count'); + var week = table.children(':eq(1)').children(':first'); + ok(week.is('tr.ui-datepicker-days-row'), 'Structure - month table week row'); + equals(week.children().length, 7, 'Structure - week child count'); + ok(week.children(':first').is('td.ui-datepicker-days-cell') && + week.children(':first').is('.ui-datepicker-week-end-cell') && + !week.children(':first').is('.ui-datepicker-week-col'), + 'Structure - month table first day cell'); + ok(week.children(':eq(1)').is('td.ui-datepicker-days-cell') && + !week.children(':eq(1)').is('.ui-datepicker-week-end-cell'), + 'Structure - month table second day cell'); + ok(dp.children('.ui-datepicker-status').length == 0, 'Structure - status'); + ok(dp.children('iframe').length == (iframe ? 1 : 0), 'Structure - iframe'); + inp.datepicker('hide').datepicker('destroy'); + // Multi-month 2 + inp = init('#inp', {numberOfMonths: 2}); + inp.focus(); + ok(dp.is('.ui-datepicker-multi'), 'Structure multi - multi-month'); + equals(dp.children().length, 5 + (iframe ? 1 : 0), 'Structure multi - child count'); + month = dp.children(':eq(2)'); + ok(month.is('div.ui-datepicker-one-month') && month.is('div.ui-datepicker-new-row'), + 'Structure multi - first month division'); + month = dp.children(':eq(3)'); + ok(month.is('div.ui-datepicker-one-month') && !month.is('div.ui-datepicker-new-row'), + 'Structure multi - second month division'); + inp.datepicker('hide').datepicker('destroy'); + // Multi-month [2, 2] + inp = init('#inp', {numberOfMonths: [2, 2]}); + inp.focus(); + ok(dp.is('.ui-datepicker-multi'), 'Structure multi - multi-month'); + equals(dp.children().length, 7 + (iframe ? 1 : 0), 'Structure multi - child count'); + month = dp.children(':eq(2)'); + ok(month.is('div.ui-datepicker-one-month') && month.is('div.ui-datepicker-new-row'), + 'Structure multi - first month division'); + month = dp.children(':eq(3)'); + ok(month.is('div.ui-datepicker-one-month') && !month.is('div.ui-datepicker-new-row'), + 'Structure multi - second month division'); + month = dp.children(':eq(4)'); + ok(month.is('div.ui-datepicker-one-month') && month.is('div.ui-datepicker-new-row'), + 'Structure multi - third month division'); + month = dp.children(':eq(5)'); + ok(month.is('div.ui-datepicker-one-month') && !month.is('div.ui-datepicker-new-row'), + 'Structure multi - fourth month division'); + inp.datepicker('hide').datepicker('destroy'); + // Inline + var inl = init('#inl'); + dp = inl.children(); + ok(dp.is('.ui-datepicker-inline'), 'Structure inline - main div'); + ok(!dp.is('.ui-datepicker-rtl'), 'Structure inline - not right-to-left'); + ok(!dp.is('.ui-datepicker-multi'), 'Structure inline - not multi-month'); + equals(dp.children().length, 3, 'Structure inline - child count'); + var links = dp.children(':first'); + ok(links.is('div.ui-datepicker-links'), 'Structure inline - links division'); + equals(links.children().length, 3, 'Structure inline - links child count'); + var month = dp.children(':eq(1)'); + ok(month.is('div.ui-datepicker-one-month') && month.is('div.ui-datepicker-new-row'), + 'Structure inline - month division'); + var header = month.children(':first'); + ok(header.is('div.ui-datepicker-header'), 'Structure inline - month header division'); + equals(header.children().length, 2, 'Structure inline - month header child count'); + var table = month.children(':eq(1)'); + ok(table.is('table.ui-datepicker'), 'Structure inline - month table'); + ok(table.children(':first').is('thead'), 'Structure inline - month table thead'); + ok(table.children(':eq(1)').is('tbody'), 'Structure inline - month table body'); + ok(dp.children('.ui-datepicker-status').length == 0, 'Structure inline - status'); + inl.datepicker('destroy'); + // Inline multi-month + inl = init('#inl', {numberOfMonths: 2}); + dp = inl.children(); + ok(dp.is('.ui-datepicker-inline'), 'Structure inline multi - main div'); + ok(dp.is('.ui-datepicker-multi'), 'Structure inline multi - not multi-month'); + equals(dp.children().length, 4, 'Structure inline multi - child count'); + var links = dp.children(':first'); + ok(links.is('div.ui-datepicker-links'), 'Structure inline multi - links division'); + equals(links.children().length, 3, 'Structure inline multi - links child count'); + var month = dp.children(':eq(1)'); + ok(month.is('div.ui-datepicker-one-month') && month.is('div.ui-datepicker-new-row'), + 'Structure inline multi - first month division'); + month = dp.children(':eq(2)'); + ok(month.is('div.ui-datepicker-one-month') && !month.is('div.ui-datepicker-new-row'), + 'Structure inline multi - second month division'); + inl.datepicker('destroy'); +}); + +test('customStructure', function() { + var dp = $('#ui-datepicker-div'); + // Check right-to-left localisation + var inp = init('#inp', $.datepicker.regional['he']); + inp.focus(); + var iframe = ($.browser.msie && parseInt($.browser.version) < 7); + ok(dp.is('.ui-datepicker-rtl'), 'Structure RTL - right-to-left'); + var links = dp.children(':eq(1)'); + ok(links.is('div.ui-datepicker-links'), 'Structure - links division'); + equals(links.children().length, 3, 'Structure - links child count'); + ok(links.children(':first').is('div.ui-datepicker-next'), + 'Structure - next division'); + ok(links.children(':eq(1)').is('div.ui-datepicker-current'), + 'Structure - current division'); + ok(links.children(':last').is('div.ui-datepicker-prev'), + 'Structure - prev division'); + inp.datepicker('hide').datepicker('destroy'); + // Close at bottom + inp = init('#inp', {closeAtTop: false}); + inp.focus(); + equals(dp.children().length, 4 + (iframe ? 1 : 0), + 'Structure close at bottom - child count'); + ok(dp.children(':first').is('div.ui-datepicker-links'), + 'Structure close at bottom - links division'); + ok(dp.children(':last').prev().is('div.ui-datepicker-control'), + 'Structure close at bottom - control division'); + inp.datepicker('hide').datepicker('destroy'); + // Mandatory + inp = init('#inp', {mandatory: true}); + inp.focus(); + var control = dp.children(':first'); + ok(control.is('div.ui-datepicker-control'), + 'Structure mandatory - control division'); + equals(control.children().length, 1, 'Structure mandatory - control child count'); + ok(control.children(':first').is('div.ui-datepicker-close'), + 'Structure mandatory - close division'); + inp.datepicker('hide').datepicker('destroy'); + // Hide prev/next + inp = init('#inp', {hideIfNoPrevNext: true, + minDate: new Date(2008, 2 - 1, 4), maxDate: new Date(2008, 2 - 1, 14)}); + inp.val('02/10/2008').focus(); + var links = dp.children(':eq(1)'); + ok(links.is('div.ui-datepicker-links'), + 'Structure hide prev/next - links division'); + equals(links.children().length, 2, 'Structure hide prev/next - links child count'); + ok(links.children(':first').is('div.ui-datepicker-prev') && + links.children(':first').html() == '', + 'Structure hide prev/next - prev division'); + ok(links.children(':last').is('div.ui-datepicker-next') && + links.children(':last').html() == '', + 'Structure hide prev/next - next division'); + inp.datepicker('hide').datepicker('destroy'); + // Can't change month + inp = init('#inp', {changeMonth: false}); + inp.focus(); + var header = dp.children(':eq(2)').children(':first'); + equals(header.children().length, 1, 'Structure change month - header child count'); + ok(header.children(':last').is('select.ui-datepicker-new-year'), + 'Structure change month - new year select'); + inp.datepicker('hide').datepicker('destroy'); + // Can't change year + inp = init('#inp', {changeYear: false}); + inp.focus(); + var header = dp.children(':eq(2)').children(':first'); + equals(header.children().length, 1, 'Structure change year - header child count'); + ok(header.children(':first').is('select.ui-datepicker-new-month'), + 'Structure change year - new month select'); + inp.datepicker('hide').datepicker('destroy'); + // Can't change first day of week + inp = init('#inp', {changeFirstDay: false}); + inp.focus(); + var titles = dp.find('.ui-datepicker-title-row'); + equals(titles.children().length, 7, 'Structure change first day - titles child count'); + equals(titles.find('a').length, 0, 'Structure change first day - titles links count'); + inp.datepicker('hide').datepicker('destroy'); + // Show weeks + inp = init('#inp', {showWeeks: true}); + inp.focus(); + titles = dp.find('.ui-datepicker-title-row'); + equals(titles.children().length, 8, 'Structure show weeks - titles child count'); + var week = dp.find('.ui-datepicker-days-row:first'); + equals(week.children().length, 8, 'Structure show weeks - week child count'); + ok(week.children(':first').is('td.ui-datepicker-week-col'), + 'Structure show weeks - week column'); + inp.datepicker('hide').datepicker('destroy'); + // Show status + inp = init('#inp', {showStatus: true}); + inp.focus(); + equals(dp.children().length, 6 + (iframe ? 1 : 0), + 'Structure show status - datepicker child count'); + ok(dp.children(':last').prev().is('div.ui-datepicker-status'), + 'Structure show status - status division'); + inp.datepicker('hide').datepicker('destroy'); + // Inline + var inl = init('#inl', {showStatus: true, hideIfNoPrevNext: true, + minDate: new Date(2008, 2 - 1, 4), maxDate: new Date(2008, 2 - 1, 14)}); + dp = inl.children(); + ok(dp.is('.ui-datepicker-inline'), 'Structure inline - main div'); + ok(!dp.is('.ui-datepicker-rtl'), 'Structure inline - not right-to-left'); + ok(!dp.is('.ui-datepicker-multi'), 'Structure inline - not multi-month'); + equals(dp.children().length, 5, 'Structure inline - child count'); + var links = dp.children(':first'); + ok(links.is('div.ui-datepicker-links'), 'Structure inline - links division'); + equals(links.children().children().length, 0, 'Structure inline - links child count'); + var month = dp.children(':eq(1)'); + ok(month.is('div.ui-datepicker-one-month') && month.is('div.ui-datepicker-new-row'), + 'Structure inline - month division'); + ok(dp.children(':last').prev().is('div.ui-datepicker-status'), + 'Structure inline - status'); + inl.datepicker('destroy'); +}); + +test('enableDisable', function() { + var inp = init('#inp'); + ok(!inp.datepicker('isDisabled'), 'Enable/disable - initially marked as enabled'); + ok(!inp[0].disabled, 'Enable/disable - field initially enabled'); + inp.datepicker('disable'); + ok(inp.datepicker('isDisabled'), 'Enable/disable - now marked as disabled'); + ok(inp[0].disabled, 'Enable/disable - field now disabled'); + inp.datepicker('enable'); + ok(!inp.datepicker('isDisabled'), 'Enable/disable - now marked as enabled'); + ok(!inp[0].disabled, 'Enable/disable - field now enabled'); + inp.datepicker('destroy'); + // With a button + inp = init('#inp', {showOn: 'button'}); + ok(!inp.datepicker('isDisabled'), 'Enable/disable button - initially marked as enabled'); + ok(!inp[0].disabled, 'Enable/disable button - field initially enabled'); + ok(!inp.next('button')[0].disabled, 'Enable/disable button - button initially enabled'); + inp.datepicker('disable'); + ok(inp.datepicker('isDisabled'), 'Enable/disable button - now marked as disabled'); + ok(inp[0].disabled, 'Enable/disable button - field now disabled'); + ok(inp.next('button')[0].disabled, 'Enable/disable button - button now disabled'); + inp.datepicker('enable'); + ok(!inp.datepicker('isDisabled'), 'Enable/disable button - now marked as enabled'); + ok(!inp[0].disabled, 'Enable/disable button - field now enabled'); + ok(!inp.next('button')[0].disabled, 'Enable/disable button - button now enabled'); + inp.datepicker('destroy'); + // With an image button + inp = init('#inp', {showOn: 'button', buttonImageOnly: true, + buttonImage: 'img/calendar.gif'}); + ok(!inp.datepicker('isDisabled'), 'Enable/disable image - initially marked as enabled'); + ok(!inp[0].disabled, 'Enable/disable image - field initially enabled'); + ok(inp.next('img').css('opacity') == 1, 'Enable/disable image - image initially enabled'); + inp.datepicker('disable'); + ok(inp.datepicker('isDisabled'), 'Enable/disable image - now marked as disabled'); + ok(inp[0].disabled, 'Enable/disable image - field now disabled'); + ok(inp.next('img').css('opacity') != 1, 'Enable/disable image - image now disabled'); + inp.datepicker('enable'); + ok(!inp.datepicker('isDisabled'), 'Enable/disable image - now marked as enabled'); + ok(!inp[0].disabled, 'Enable/disable image - field now enabled'); + ok(inp.next('img').css('opacity') == 1, 'Enable/disable image - image now enabled'); + inp.datepicker('destroy'); + // Inline + var inl = init('#inl'); + ok(!inl.datepicker('isDisabled'), 'Enable/disable inline - initially marked as enabled'); + ok($('.ui-datepicker-disabled', inl).length == 0, 'Enable/disable inline - cover initially absent'); + inl.datepicker('disable'); + ok(inl.datepicker('isDisabled'), 'Enable/disable inline - now marked as disabled'); + var disabled = $('.ui-datepicker-disabled', inl); + var dp = $('.ui-datepicker-inline', inl); + ok(disabled.length == 1, 'Enable/disable inline - cover now present'); + ok(disabled.offset().top == dp.offset().top && disabled.offset().left == dp.offset().left, + 'Enable/disable inline - cover positioning'); + ok(disabled.width() == dp.width() && disabled.height() == dp.height(), + 'Enable/disable inline - cover sizing'); + inl.datepicker('enable'); + ok(!inl.datepicker('isDisabled'), 'Enable/disable inline - now marked as enabled'); + ok($('.ui-datepicker-disabled', inl).length == 0, 'Enable/disable inline - cover now absent'); + inl.datepicker('destroy'); +}); + +test('keystrokes', function() { + var inp = init('#inp'); + var date = new Date(); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke enter'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 4), + 'Keystroke enter - preset'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_HOME}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke ctrl+home'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_END}); + ok(inp.datepicker('getDate') == null, 'Keystroke ctrl+end'); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + ok(inp.datepicker('getDate') == null, 'Keystroke esc'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 4), + 'Keystroke esc - preset'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 4), + 'Keystroke esc - abandoned'); + // Moving by day or week + inp.val('').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_LEFT}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() - 1); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke ctrl+left'); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_LEFT}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() + 1); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke left'); + inp.val('').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_RIGHT}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() + 1); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke ctrl+right'); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_RIGHT}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() - 1); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke right'); + inp.val('').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_UP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() - 7); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke ctrl+up'); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_UP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() + 7); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke up'); + inp.val('').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() + 7); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke ctrl+down'); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() - 7); + equalsDate(inp.datepicker('getDate'), date, 'Keystroke down'); + // Moving by month or year + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 1 - 1, 4), + 'Keystroke pgup'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 3 - 1, 4), + 'Keystroke pgdn'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2007, 2 - 1, 4), + 'Keystroke ctrl+pgup'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2009, 2 - 1, 4), + 'Keystroke ctrl+pgdn'); + // Check for moving to short months + inp.val('03/31/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 29), + 'Keystroke pgup - Feb'); + inp.val('01/30/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 29), + 'Keystroke pgdn - Feb'); + inp.val('02/29/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2007, 2 - 1, 28), + 'Keystroke ctrl+pgup - Feb'); + inp.val('02/29/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2009, 2 - 1, 28), + 'Keystroke ctrl+pgdn - Feb'); + // Goto current + inp.datepicker('option', {gotoCurrent: true}). + datepicker('hide').val('02/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_HOME}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 4), + 'Keystroke ctrl+home'); + // Change steps + inp.datepicker('option', {stepMonths: 2, stepBigMonths: 6, gotoCurrent: false}). + datepicker('hide').val('02/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2007, 12 - 1, 4), + 'Keystroke pgup step 2'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 4 - 1, 4), + 'Keystroke pgdn step 2'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2007, 8 - 1, 4), + 'Keystroke ctrl+pgup step 6'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 8 - 1, 4), + 'Keystroke ctrl+pgdn step 6'); +}); + +test('mouse', function() { + var inp = init('#inp'); + var dp = $('#ui-datepicker-div'); + var date = new Date(); + inp.val('').datepicker('show'); + $('.ui-datepicker tbody a:contains(10)', dp).simulate('click', {}); + date.setDate(10); + equalsDate(inp.datepicker('getDate'), date, 'Mouse click'); + inp.val('02/04/2008').datepicker('show'); + $('.ui-datepicker tbody a:contains(12)', dp).simulate('click', {}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 12), + 'Mouse click - preset'); + inp.val('02/04/2008').datepicker('show'); + $('.ui-datepicker-clear a', dp).simulate('click', {}); + ok(inp.datepicker('getDate') == null, 'Mouse click - clear'); + inp.val('').datepicker('show'); + $('.ui-datepicker-close a', dp).simulate('click', {}); + ok(inp.datepicker('getDate') == null, 'Mouse click - close'); + inp.val('02/04/2008').datepicker('show'); + $('.ui-datepicker-close a', dp).simulate('click', {}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 4), + 'Mouse click - close + preset'); + inp.val('02/04/2008').datepicker('show'); + $('.ui-datepicker-prev a', dp).simulate('click', {}); + $('.ui-datepicker-close a', dp).simulate('click', {}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 4), + 'Mouse click - abandoned'); + // Current/previous/next + inp.val('02/04/2008').datepicker('show'); + $('.ui-datepicker-current a', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(14)', dp).simulate('click', {}); + date.setDate(14); + equalsDate(inp.datepicker('getDate'), date, 'Mouse click - current'); + inp.val('02/04/2008').datepicker('show'); + $('.ui-datepicker-prev a', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(16)', dp).simulate('click', {}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 1 - 1, 16), + 'Mouse click - previous'); + inp.val('02/04/2008').datepicker('show'); + $('.ui-datepicker-next a', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(18)', dp).simulate('click', {}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 3 - 1, 18), + 'Mouse click - next'); + // Previous/next with minimum/maximum + inp.datepicker('option', {minDate: new Date(2008, 2 - 1, 2), + maxDate: new Date(2008, 2 - 1, 26)}).val('02/04/2008').datepicker('show'); + $('.ui-datepicker-prev a', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(16)', dp).simulate('click', {}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 16), + 'Mouse click - previous + min/max'); + inp.val('02/04/2008').datepicker('show'); + $('.ui-datepicker-next a', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(18)', dp).simulate('click', {}); + equalsDate(inp.datepicker('getDate'), new Date(2008, 2 - 1, 18), + 'Mouse click - next + min/max'); + // Change day of week + inp.val('02/04/2008').datepicker('show'); + equals($('.ui-datepicker-title-row td:first', dp).text(), 'Su', + 'Mouse click - initial day of week'); + $('.ui-datepicker-title-row td:last a', dp).simulate('click', {}); + equals($('.ui-datepicker-title-row td:first', dp).text(), 'Sa', + 'Mouse click - day of week'); + // Highlight week + inp.datepicker('option', {highlightWeek: true}). + datepicker('hide').val('02/04/2008').datepicker('show'); + ok(!$('.ui-datepicker tr:eq(2)', dp).is('.ui-datepicker-week-over'), + 'Mouse over - no week highlight'); + $('.ui-datepicker tr:eq(2) td:first', dp).simulate('mouseover', {}); + ok($('.ui-datepicker tr:eq(2)', dp).is('.ui-datepicker-week-over'), + 'Mouse over - week highlight'); + // Inline + var inl = init('#inl'); + var dp = $('.ui-datepicker-inline', inl); + var date = new Date(); + inl.datepicker('setDate', date); + $('.ui-datepicker tbody a:contains(10)', dp).simulate('click', {}); + date.setDate(10); + equalsDate(inl.datepicker('getDate'), date, 'Mouse click inline'); + inl.datepicker('setDate', new Date(2008, 2 - 1, 4)); + $('.ui-datepicker tbody a:contains(12)', dp).simulate('click', {}); + equalsDate(inl.datepicker('getDate'), new Date(2008, 2 - 1, 12), + 'Mouse click inline - preset'); + $('.ui-datepicker-current a', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(14)', dp).simulate('click', {}); + date.setDate(14); + equalsDate(inl.datepicker('getDate'), date, 'Mouse click inline - current'); + inl.datepicker('setDate', new Date(2008, 2 - 1, 4)); + $('.ui-datepicker-prev a', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(16)', dp).simulate('click', {}); + equalsDate(inl.datepicker('getDate'), new Date(2008, 1 - 1, 16), + 'Mouse click inline - previous'); + inl.datepicker('setDate', new Date(2008, 2 - 1, 4)); + $('.ui-datepicker-next a', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(18)', dp).simulate('click', {}); + equalsDate(inl.datepicker('getDate'), new Date(2008, 3 - 1, 18), + 'Mouse click inline - next'); +}); + +test('defaultDate', function() { + var inp = init('#inp'); + var date = new Date(); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), date, 'Default date null'); + // numeric values + inp.datepicker('option', {defaultDate: -2}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() - 2); + equalsDate(inp.datepicker('getDate'), date, 'Default date -2'); + inp.datepicker('option', {defaultDate: 3}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() + 5); + equalsDate(inp.datepicker('getDate'), date, 'Default date 3'); + inp.datepicker('option', {defaultDate: 1 / 0}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() - 3); + equalsDate(inp.datepicker('getDate'), date, 'Default date Infinity'); + inp.datepicker('option', {defaultDate: 1 / 'a'}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), date, 'Default date NaN'); + // string values + inp.datepicker('option', {defaultDate: '-1d'}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() - 1); + equalsDate(inp.datepicker('getDate'), date, 'Default date -1d'); + inp.datepicker('option', {defaultDate: '+3D'}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() + 4); + equalsDate(inp.datepicker('getDate'), date, 'Default date +3D'); + inp.datepicker('option', {defaultDate: ' -2 w '}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date = new Date(); + date.setDate(date.getDate() - 14); + equalsDate(inp.datepicker('getDate'), date, 'Default date -2 w'); + inp.datepicker('option', {defaultDate: '+1 W'}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() + 21); + equalsDate(inp.datepicker('getDate'), date, 'Default date +1 W'); + inp.datepicker('option', {defaultDate: ' -1 m '}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date = new Date(); + date.setMonth(date.getMonth() - 1); + equalsDate(inp.datepicker('getDate'), date, 'Default date -1 m'); + inp.datepicker('option', {defaultDate: '+2M'}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setMonth(date.getMonth() + 3); + equalsDate(inp.datepicker('getDate'), date, 'Default date +2M'); + inp.datepicker('option', {defaultDate: '-2y'}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date = new Date(); + date.setFullYear(date.getFullYear() - 2); + equalsDate(inp.datepicker('getDate'), date, 'Default date -2y'); + inp.datepicker('option', {defaultDate: '+1 Y '}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setFullYear(date.getFullYear() + 3); + equalsDate(inp.datepicker('getDate'), date, 'Default date +1 Y'); + inp.datepicker('option', {defaultDate: '+1M +10d'}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date = new Date(); + date.setMonth(date.getMonth() + 1); + date.setDate(date.getDate() + 10); + equalsDate(inp.datepicker('getDate'), date, 'Default date +1M +10d'); + date = new Date(2007, 1 - 1, 26); + inp.datepicker('option', {defaultDate: date}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), date, 'Default date 01/26/2007'); +}); + +test('miscellaneous', function() { + var dp = $('#ui-datepicker-div'); + var inp = init('#inp'); + // Year range + inp.val('02/04/2008').datepicker('show'); + equals(dp.find('.ui-datepicker-new-year').text(), + '199819992000200120022003200420052006200720082009201020112012201320142015201620172018', + 'Year range - default'); + inp.datepicker('hide').datepicker('option', {yearRange: '-6:+2'}).datepicker('show'); + equals(dp.find('.ui-datepicker-new-year').text(), + '200220032004200520062007200820092010', 'Year range - -6:+2'); + inp.datepicker('hide').datepicker('option', {yearRange: '2000:2010'}).datepicker('show'); + equals(dp.find('.ui-datepicker-new-year').text(), + '20002001200220032004200520062007200820092010', 'Year range - 2000:2010'); + // Navigation as date format + equals(dp.find('.ui-datepicker-prev').text(), + '', 'Navigation next - default'); + inp.datepicker('hide').datepicker('option', {navigationAsDateFormat: true, + prevText: '< M', currentText: 'MM', nextText: 'M >'}). + val('02/04/2008').datepicker('show'); + var longNames = $.datepicker.regional[''].monthNames; + var shortNames = $.datepicker.regional[''].monthNamesShort; + var date = new Date(); + equals(dp.find('.ui-datepicker-prev').text(), + '< ' + shortNames[0], 'Navigation prev - as date format'); + equals(dp.find('.ui-datepicker-current').text(), + longNames[date.getMonth()], 'Navigation current - as date format'); + equals(dp.find('.ui-datepicker-next').text(), + shortNames[2] + ' >', 'Navigation next - as date format'); + inp.simulate('keydown', {keyCode: $.simulate.VK_PGDN}); + equals(dp.find('.ui-datepicker-prev').text(), + '< ' + shortNames[1], 'Navigation prev - as date format + pgdn'); + equals(dp.find('.ui-datepicker-current').text(), + longNames[date.getMonth()], 'Navigation current - as date format + pgdn'); + equals(dp.find('.ui-datepicker-next').text(), + shortNames[3] + ' >', 'Navigation next - as date format + pgdn'); + inp.datepicker('hide').datepicker('option', {gotoCurrent: true}). + val('02/04/2008').datepicker('show'); + equals(dp.find('.ui-datepicker-prev').text(), + '< ' + shortNames[0], 'Navigation prev - as date format + goto current'); + equals(dp.find('.ui-datepicker-current').text(), + longNames[1], 'Navigation current - as date format + goto current'); + equals(dp.find('.ui-datepicker-next').text(), + shortNames[2] + ' >', 'Navigation next - as date format + goto current'); +}); + +test('minMax', function() { + var inp = init('#inp'); + var lastYear = new Date(2007, 6 - 1, 4); + var nextYear = new Date(2009, 6 - 1, 4); + var minDate = new Date(2008, 2 - 1, 29); + var maxDate = new Date(2008, 12 - 1, 7); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), lastYear, + 'Min/max - null, null - ctrl+pgup'); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), nextYear, + 'Min/max - null, null - ctrl+pgdn'); + inp.datepicker('option', {minDate: minDate}). + datepicker('hide').val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), minDate, + 'Min/max - 02/29/2008, null - ctrl+pgup'); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), nextYear, + 'Min/max - 02/29/2008, null - ctrl+pgdn'); + inp.datepicker('option', {maxDate: maxDate}). + datepicker('hide').val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), minDate, + 'Min/max - 02/29/2008, 12/07/2008 - ctrl+pgup'); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), maxDate, + 'Min/max - 02/29/2008, 12/07/2008 - ctrl+pgdn'); + inp.datepicker('option', {minDate: null}). + datepicker('hide').val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), lastYear, + 'Min/max - null, 12/07/2008 - ctrl+pgup'); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), maxDate, + 'Min/max - null, 12/07/2008 - ctrl+pgdn'); + // Relative dates + var date = new Date(); + date.setDate(date.getDate() - 7); + inp.datepicker('option', {minDate: '-1w', maxDate: '+1 M +10 D '}). + datepicker('hide').val('').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), date, + 'Min/max - -1w, +1 M +10 D - ctrl+pgup'); + date = new Date(); + date.setMonth(date.getMonth() + 1); + date.setDate(date.getDate() + 10); + inp.val('').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDate(inp.datepicker('getDate'), date, + 'Min/max - -1w, +1 M +10 D - ctrl+pgdn'); +}); + +test('setDate', function() { + var inp = init('#inp'); + var date1 = new Date(2008, 6 - 1, 4); + var date2 = new Date(); + ok(inp.datepicker('getDate') == null, 'Set date - default'); + inp.datepicker('setDate', date1); + equalsDate(inp.datepicker('getDate'), date1, 'Set date - 2008-06-04'); + date1 = new Date(); + date1.setDate(date1.getDate() + 7); + inp.datepicker('setDate', +7); + equalsDate(inp.datepicker('getDate'), date1, 'Set date - +7'); + date2.setFullYear(date2.getFullYear() + 2); + inp.datepicker('setDate', '+2y'); + equalsDate(inp.datepicker('getDate'), date2, 'Set date - +2y'); + inp.datepicker('setDate', date1, date2); + equalsDate(inp.datepicker('getDate'), date1, 'Set date - two dates'); + inp.datepicker('setDate'); + ok(inp.datepicker('getDate') == null, 'Set date - null'); + // Ranges + date1 = new Date(2008, 6 - 1, 4); + date2 = new Date(2009, 7 - 1, 5); + inp.datepicker('option', {rangeSelect: true}); + inp.datepicker('setDate', date1, date2); + equalsDateArray(inp.datepicker('getDate'), [date1, date2], + 'Set date range - 2008-06-04 - 2009-07-05'); + inp.datepicker('setDate', date1); + equalsDateArray(inp.datepicker('getDate'), [date1, date1], + 'Set date range - 2008-06-04'); + date1 = new Date(); + date1.setDate(date1.getDate() - 10); + date2 = new Date(); + date2.setDate(date2.getDate() + 10); + inp.datepicker('setDate', -10, +10); + equalsDateArray(inp.datepicker('getDate'), [date1, date2], + 'Set date range - -10 - +10'); + inp.datepicker('setDate', -10); + equalsDateArray(inp.datepicker('getDate'), [date1, date1], + 'Set date range - -10'); + date1 = new Date(); + date1.setDate(date1.getDate() - 14); + date2 = new Date(); + date2.setFullYear(date2.getFullYear() + 1); + inp.datepicker('setDate', '-2w', '+1Y'); + equalsDateArray(inp.datepicker('getDate'), [date1, date2], + 'Set date range - -2w - +1Y'); + inp.datepicker('setDate', '-2w'); + equalsDateArray(inp.datepicker('getDate'), [date1, date1], + 'Set date range - -2w'); + inp.datepicker('setDate'); + isObj(inp.datepicker('getDate'), [null, null], 'Set date range - null'); + // Inline + var inl = init('#inl'); + date1 = new Date(2008, 6 - 1, 4); + date2 = new Date(); + equalsDate(inl.datepicker('getDate'), date2, 'Set date inline - default'); + inl.datepicker('setDate', date1); + equalsDate(inl.datepicker('getDate'), date1, 'Set date inline - 2008-06-04'); + date1 = new Date(); + date1.setDate(date1.getDate() + 7); + inl.datepicker('setDate', +7); + equalsDate(inl.datepicker('getDate'), date1, 'Set date inline - +7'); + date2.setFullYear(date2.getFullYear() + 2); + inl.datepicker('setDate', '+2y'); + equalsDate(inl.datepicker('getDate'), date2, 'Set date inline - +2y'); + inl.datepicker('setDate', date1, date2); + equalsDate(inl.datepicker('getDate'), date1, 'Set date inline - two dates'); + inl.datepicker('setDate'); + ok(inl.datepicker('getDate') == null, 'Set date inline - null'); + // Alternate field + var alt = $('#alt'); + inp.datepicker('option', {altField: '#alt', altFormat: 'yy-mm-dd'}); + date1 = new Date(2008, 6 - 1, 4); + date2 = new Date(2009, 7 - 1, 5); + inp.datepicker('setDate', date1, date2); + equals(inp.val(), '06/04/2008 - 07/05/2009', + 'Set date alternate - 06/04/2008 - 07/05/2009'); + equals(alt.val(), '2008-06-04 - 2009-07-05', + 'Set date alternate - 2008-06-04 - 2009-07-05'); + inp.datepicker('option', {rangeSelect: false}).datepicker('setDate', date1); + equals(inp.val(), '06/04/2008', 'Set date alternate - 06/04/2008'); + equals(alt.val(), '2008-06-04', 'Set date alternate - 2008-06-04'); +}); + +test('ranges', function() { + var inp = init('#inp', {rangeSelect: true}); + var date1 = new Date(); + var date2 = new Date(); + // Select today - today + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDateArray(inp.datepicker('getDate'), [date1, date1], + 'Range - enter/enter'); + // Can't select prior to start date + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_UP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDateArray(inp.datepicker('getDate'), [date1, date1], + 'Range - enter/ctrl+up/enter'); + // Can select after start date + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date2.setDate(date2.getDate() + 7); + equalsDateArray(inp.datepicker('getDate'), [date1, date2], + 'Range - enter/ctrl+down/enter'); + equals(inp.val(), $.datepicker.formatDate('mm/dd/yy', date1) + ' - ' + + $.datepicker.formatDate('mm/dd/yy', date2), 'Range - value'); + // Select then cancel defaults to first date + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + equalsDateArray(inp.datepicker('getDate'), [date1, date1], + 'Range - enter/ctrl+down/esc'); + // Separator + inp.datepicker('option', {rangeSeparator: ' to '}). + datepicker('hide').val('06/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDateArray(inp.datepicker('getDate'), + [new Date(2008, 6 - 1, 4), new Date(2008, 6 - 1, 11)], + 'Range separator - enter/ctrl+down/enter'); + equals(inp.val(), '06/04/2008 to 06/11/2008', + 'Range separator - value'); + // Callbacks + inp.datepicker('option', {onSelect: callback, rangeSeparator: ' - '}). + datepicker('hide').val('06/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(selectedDate, '06/04/2008 - 06/11/2008', + 'Range onSelect - enter/ctrl+down/enter'); + inp.datepicker('option', {onChangeMonthYear: callback2, onSelect: null}). + datepicker('hide').val('05/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(selectedDate, '2008/4', + 'Range onChangeMonthYear - enter/ctrl+down/enter'); + inp.datepicker('option', {onClose: callback, onChangeMonthYear: null}). + datepicker('hide').val('03/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(selectedDate, '03/04/2008 - 03/11/2008', + 'Range onClose - enter/ctrl+down/enter'); + // Minimum/maximum + date1 = new Date(2008, 5 - 1, 20); + date2 = new Date(2008, 7 - 1, 2); + inp.datepicker('option', {minDate: date1, maxDate: date2, onClose: null}). + datepicker('hide').val('06/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGUP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDateArray(inp.datepicker('getDate'), [date1, date2], + 'Range min/max - pgup/enter/pgdn/pgdn/enter'); + inp.val('06/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_UP}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equalsDateArray(inp.datepicker('getDate'), + [new Date(2008, 5 - 1, 28), new Date(2008, 6 - 1, 11)], + 'Range min/max - ctrl+up/enter/ctrl+down/ctrl+down/enter'); + // Inline + var inl = init('#inl', {rangeSelect: true}); + var dp = $('.ui-datepicker-inline', inl); + date1 = new Date(); + date1.setDate(12); + date2 = new Date(); + date2.setDate(19); + $('.ui-datepicker tbody a:contains(12)', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(12)', dp).simulate('click', {}); + equalsDateArray(inl.datepicker('getDate'), [date1, date1], + 'Range inline - same day'); + $('.ui-datepicker tbody a:contains(12)', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(10)', dp).simulate('click', {}); // Doesn't select + equalsDateArray(inl.datepicker('getDate'), [date1, date1], + 'Range inline - prev'); + $('.ui-datepicker tbody a:contains(12)', dp).simulate('click', {}); // Selects + inl.datepicker('setDate', date1); + $('.ui-datepicker tbody a:contains(12)', dp).simulate('click', {}); + $('.ui-datepicker tbody a:contains(19)', dp).simulate('click', {}); + equalsDateArray(inl.datepicker('getDate'), [date1, date2], + 'Range inline - next'); +}); + +test('altField', function() { + var inp = init('#inp'); + var alt = $('#alt'); + // No alternate field set + alt.val(''); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(inp.val(), '06/04/2008', 'Alt field - dp - enter'); + equals(alt.val(), '', 'Alt field - alt not set'); + // Alternate field set + alt.val(''); + inp.datepicker('option', {altField: '#alt', altFormat: 'yy-mm-dd'}). + val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(inp.val(), '06/04/2008', 'Alt field - dp - enter'); + equals(alt.val(), '2008-06-04', 'Alt field - alt - enter'); + // Move from initial date + alt.val(''); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(inp.val(), '07/04/2008', 'Alt field - dp - pgdn'); + equals(alt.val(), '2008-07-04', 'Alt field - alt - pgdn'); + // Alternate field set - closed + alt.val(''); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + equals(inp.val(), '06/04/2008', 'Alt field - dp - pgdn/esc'); + equals(alt.val(), '', 'Alt field - alt - pgdn/esc'); + // Clear date and alternate + alt.val(''); + inp.val('06/04/2008').datepicker('show'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_END}); + equals(inp.val(), '', 'Alt field - dp - ctrl+end'); + equals(alt.val(), '', 'Alt field - alt - ctrl+end'); + // Range select no alternate field set + alt.val(''); + inp.datepicker('option', {rangeSelect: true, altField: '', altFormat: ''}). + datepicker('hide').val('06/04/2008 - 07/14/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(inp.val(), '06/04/2008 - 06/04/2008', 'Alt field range - dp - enter'); + equals(alt.val(), '', 'Alt field range - alt not set'); + // Range select no movement + alt.val(''); + inp.datepicker('option', {altField: '#alt', altFormat: 'yy-mm-dd'}). + datepicker('hide').val('06/04/2008 - 07/14/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(inp.val(), '06/04/2008 - 06/04/2008', 'Alt field range - dp - enter'); + equals(alt.val(), '2008-06-04 - 2008-06-04', 'Alt field range - alt - enter'); + // Range select next month + alt.val(''); + inp.val('06/04/2008 - 07/14/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(inp.val(), '06/04/2008 - 07/04/2008', + 'Alt field range - dp - enter/pgdn/enter'); + equals(alt.val(), '2008-06-04 - 2008-07-04', + 'Alt field range - alt - enter/pgdn/enter'); + // Range select escape + alt.val(''); + inp.val('06/04/2008 - 07/14/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + equals(inp.val(), '06/04/2008 - 06/04/2008', + 'Alt field range - dp - enter/pgdn/esc'); + equals(alt.val(), '2008-06-04 - 2008-06-04', + 'Alt field range - alt - enter/pgdn/esc'); + // Range select clear + alt.val(''); + inp.val('06/04/2008 - 07/14/2008').datepicker('show'); + inp.simulate('keydown', {keyCode: $.simulate.VK_ENTER}). + simulate('keydown', {keyCode: $.simulate.VK_PGDN}). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_END}); + equals(inp.val(), '', 'Alt field range - dp - enter/pgdn/ctrl+end'); + equals(alt.val(), '', 'Alt field range - alt - enter/pgdn/ctrl+end'); +}); + +test('daylightSaving', function() { + var inp = init('#inp'); + var dp = $('#ui-datepicker-div'); + ok(true, 'Daylight saving - ' + new Date()); + // Australia, Sydney - AM change, southern hemisphere + inp.val('04/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(13)', dp).simulate('click', {}); + equals(inp.val(), '04/05/2008', 'Daylight saving - Australia 04/05/2008'); + inp.val('04/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(14)', dp).simulate('click', {}); + equals(inp.val(), '04/06/2008', 'Daylight saving - Australia 04/06/2008'); + inp.val('04/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(15)', dp).simulate('click', {}); + equals(inp.val(), '04/07/2008', 'Daylight saving - Australia 04/07/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(13)', dp).simulate('click', {}); + equals(inp.val(), '10/04/2008', 'Daylight saving - Australia 10/04/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(14)', dp).simulate('click', {}); + equals(inp.val(), '10/05/2008', 'Daylight saving - Australia 10/05/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(15)', dp).simulate('click', {}); + equals(inp.val(), '10/06/2008', 'Daylight saving - Australia 10/06/2008'); + // Brasil, Brasilia - midnight change, southern hemisphere + inp.val('02/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(27)', dp).simulate('click', {}); + equals(inp.val(), '02/16/2008', 'Daylight saving - Brasil 02/16/2008'); + inp.val('02/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(28)', dp).simulate('click', {}); + equals(inp.val(), '02/17/2008', 'Daylight saving - Brasil 02/17/2008'); + inp.val('02/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(29)', dp).simulate('click', {}); + equals(inp.val(), '02/18/2008', 'Daylight saving - Brasil 02/18/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(20)', dp).simulate('click', {}); + equals(inp.val(), '10/11/2008', 'Daylight saving - Brasil 10/11/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(21)', dp).simulate('click', {}); + equals(inp.val(), '10/12/2008', 'Daylight saving - Brasil 10/12/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(22)', dp).simulate('click', {}); + equals(inp.val(), '10/13/2008', 'Daylight saving - Brasil 10/13/2008'); + // Lebanon, Beirut - midnight change, northern hemisphere + inp.val('03/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(41)', dp).simulate('click', {}); + equals(inp.val(), '03/29/2008', 'Daylight saving - Lebanon 03/29/2008'); + inp.val('03/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(42)', dp).simulate('click', {}); + equals(inp.val(), '03/30/2008', 'Daylight saving - Lebanon 03/30/2008'); + inp.val('03/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(43)', dp).simulate('click', {}); + equals(inp.val(), '03/31/2008', 'Daylight saving - Lebanon 03/31/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(34)', dp).simulate('click', {}); + equals(inp.val(), '10/25/2008', 'Daylight saving - Lebanon 10/25/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(35)', dp).simulate('click', {}); + equals(inp.val(), '10/26/2008', 'Daylight saving - Lebanon 10/26/2008'); + inp.val('10/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(36)', dp).simulate('click', {}); + equals(inp.val(), '10/27/2008', 'Daylight saving - Lebanon 10/27/2008'); + // US, Eastern - AM change, northern hemisphere + inp.val('03/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(20)', dp).simulate('click', {}); + equals(inp.val(), '03/08/2008', 'Daylight saving - US 03/08/2008'); + inp.val('03/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(21)', dp).simulate('click', {}); + equals(inp.val(), '03/09/2008', 'Daylight saving - US 03/09/2008'); + inp.val('03/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(22)', dp).simulate('click', {}); + equals(inp.val(), '03/10/2008', 'Daylight saving - US 03/10/2008'); + inp.val('11/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(13)', dp).simulate('click', {}); + equals(inp.val(), '11/01/2008', 'Daylight saving - US 11/01/2008'); + inp.val('11/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(14)', dp).simulate('click', {}); + equals(inp.val(), '11/02/2008', 'Daylight saving - US 11/02/2008'); + inp.val('11/01/2008').datepicker('show'); + $('.ui-datepicker td:eq(15)', dp).simulate('click', {}); + equals(inp.val(), '11/03/2008', 'Daylight saving - US 11/03/2008'); +}); + +var beforeShowThis = null; +var beforeShowInput = null; +var beforeShowInst = null; + +function beforeAll(input, inst) { + beforeShowThis = this; + beforeShowInput = input; + beforeShowInst = inst; + return {currentText: 'Current'}; +} + +var beforeShowDayThis = null; +var beforeShowDayOK = true; + +function beforeDay(date) { + beforeShowDayThis = this; + beforeShowDayOK &= (date > new Date(2008, 1 - 1, 26) && + date < new Date(2008, 3 - 1, 6)); + return [(date.getDate() % 2 == 0), (date.getDate() % 10 == 0 ? 'day10' : ''), + (date.getDate() % 3 == 0 ? 'Divisble by 3' : '')]; +} + +function calcWeek(date) { + var doy = date.getDate() + 6; + for (var m = date.getMonth() - 1; m >= 0; m--) + doy += $.datepicker._getDaysInMonth(date.getFullYear(), m); + // Simple count from 01/01 starting at week 1 + return Math.floor(doy / 7); +} + +test('callbacks', function() { + // Before show + var inp = init('#inp', {beforeShow: beforeAll}); + var inst = $.data(inp[0], 'datepicker'); + equals($.datepicker._get(inst, 'currentText'), 'Today', 'Before show - initial'); + inp.val('02/04/2008').datepicker('show'); + equals($.datepicker._get(inst, 'currentText'), 'Current', 'Before show - changed'); + ok(beforeShowThis.id == inp[0].id, 'Before show - this OK'); + ok(beforeShowInput.id == inp[0].id, 'Before show - input OK'); + isObj(beforeShowInst, inst, 'Before show - inst OK'); + inp.datepicker('hide').datepicker('destroy'); + // Before show day + inp = init('#inp', {beforeShowDay: beforeDay}); + var dp = $('#ui-datepicker-div'); + inp.val('02/04/2008').datepicker('show'); + ok(beforeShowDayThis.id == inp[0].id, 'Before show day - this OK'); + ok(beforeShowDayOK, 'Before show day - dates OK'); + var day20 = dp.find('.ui-datepicker td:contains("20")'); + var day21 = dp.find('.ui-datepicker td:contains("21")'); + ok(!day20.is('.ui-datepicker-unselectable'), 'Before show day - unselectable 20'); + ok(day21.is('.ui-datepicker-unselectable'), 'Before show day - unselectable 21'); + ok(day20.is('.day10'), 'Before show day - CSS 20'); + ok(!day21.is('.day10'), 'Before show day - CSS 21'); + ok(day20.attr('title') == '', 'Before show day - title 20'); + ok(day21.attr('title') == 'Divisble by 3', 'Before show day - title 21'); + inp.datepicker('hide').datepicker('destroy'); + // Calculate week + inp = init('#inp', {showWeeks: true, calculateWeek: calcWeek}); + inp.val('02/04/2008').datepicker('show'); + equals($('.ui-datepicker-week-col:first').text(), 4, 'Calculate week'); + equals($('.ui-datepicker-week-col:last').text(), 8, 'Calculate week'); + // Make Tuesday first + $('.ui-datepicker-title-row a:contains("Tu")', dp).simulate('click', {}); + equals($('.ui-datepicker-week-col:first').text(), 5, 'Calculate week'); + equals($('.ui-datepicker-week-col:last').text(), 9, 'Calculate week'); + inp.datepicker('hide').datepicker('destroy'); +}); + +var selectedThis = null; +var selectedDate = null; +var selectedInst = null; + +function callback(date, inst) { + selectedThis = this; + selectedDate = date; + selectedInst = inst; +} + +function callback2(year, month, inst) { + selectedThis = this; + selectedDate = year + '/' + month; + selectedInst = inst; +} + +test('events', function() { + var inp = init('#inp', {onSelect: callback}); + var date = new Date(); + // onSelect + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(selectedThis, inp[0], 'Callback selected this'); + equals(selectedInst, $.data(inp[0], PROP_NAME), 'Callback selected inst'); + equals(selectedDate, $.datepicker.formatDate('mm/dd/yy', date), + 'Callback selected date'); + inp.val('').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_DOWN}). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + date.setDate(date.getDate() + 7); + equals(selectedDate, $.datepicker.formatDate('mm/dd/yy', date), + 'Callback selected date - ctrl+down'); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + equals(selectedDate, $.datepicker.formatDate('mm/dd/yy', date), + 'Callback selected date - esc'); + // onChangeMonthYear + inp.datepicker('option', {onChangeMonthYear: callback2, onSelect: null}). + val('').datepicker('show'); + var newMonthYear = function(date) { + return date.getFullYear() + '/' + (date.getMonth() + 1); + }; + date = new Date(); + date.setDate(1); + inp.simulate('keydown', {keyCode: $.simulate.VK_PGUP}); + date.setMonth(date.getMonth() - 1); + equals(selectedThis, inp[0], 'Callback change month/year this'); + equals(selectedInst, $.data(inp[0], PROP_NAME), 'Callback change month/year inst'); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year date - pgup'); + inp.simulate('keydown', {keyCode: $.simulate.VK_PGDN}); + date.setMonth(date.getMonth() + 1); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year date - pgdn'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}); + date.setFullYear(date.getFullYear() - 1); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year date - ctrl+pgup'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_HOME}); + date.setFullYear(date.getFullYear() + 1); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year date - ctrl+home'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}); + date.setFullYear(date.getFullYear() + 1); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year date - ctrl+pgdn'); + inp.datepicker('setDate', new Date(2007, 1 - 1, 26)); + equals(selectedDate, '2007/1', 'Callback change month/year date - setDate'); + selectedDate = null; + inp.datepicker('setDate', new Date(2007, 1 - 1, 12)); + ok(selectedDate == null, 'Callback change month/year date - setDate no change'); + // onChangeMonthYear step by 2 + inp.datepicker('option', {stepMonths: 2}). + datepicker('hide').val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_PGUP}); + date.setMonth(date.getMonth() - 14); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year by 2 date - pgup'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGUP}); + date.setMonth(date.getMonth() - 12); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year by 2 date - ctrl+pgup'); + inp.simulate('keydown', {keyCode: $.simulate.VK_PGDN}); + date.setMonth(date.getMonth() + 2); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year by 2 date - pgdn'); + inp.simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_PGDN}); + date.setMonth(date.getMonth() + 12); + equals(selectedDate, newMonthYear(date), + 'Callback change month/year by 2 date - ctrl+pgdn'); + // onClose + inp.datepicker('option', {onClose: callback, onChangeMonthYear: null, stepMonths: 1}). + val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + equals(selectedThis, inp[0], 'Callback close this'); + equals(selectedInst, $.data(inp[0], PROP_NAME), 'Callback close inst'); + equals(selectedDate, '', 'Callback close date - esc'); + inp.val('').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + equals(selectedDate, $.datepicker.formatDate('mm/dd/yy', new Date()), + 'Callback close date - enter'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {keyCode: $.simulate.VK_ESC}); + equals(selectedDate, '02/04/2008', 'Callback close date - preset'); + inp.val('02/04/2008').datepicker('show'). + simulate('keydown', {ctrlKey: true, keyCode: $.simulate.VK_END}); + equals(selectedDate, '', 'Callback close date - ctrl+end'); +}); + +function highlight20(date, inst) { + return (date.getDate() == 20 ? '*** 20 ***' : $.datepicker.dateStatus(date, inst)); +} + +test('status', function() { + var dp = $('#ui-datepicker-div'); + var inp = init('#inp', {showStatus: true, statusForDate: highlight20, showWeeks: true}); + inp.val('').datepicker('show'); + var status = $('.ui-datepicker-status', dp); + ok(status.length == 1, 'Status - present'); + equals(status.text(), 'Select a date', 'Status - default'); + $('.ui-datepicker-clear a', dp).simulate('mouseover'); + equals(status.text(), 'Erase the current date', 'Status - clear'); + $('.ui-datepicker-close a', dp).simulate('mouseover'); + equals(status.text(), 'Close without change', 'Status - close'); + $('.ui-datepicker-prev a', dp).simulate('mouseover'); + equals(status.text(), 'Show the previous month', 'Status - previous'); + $('.ui-datepicker-current a', dp).simulate('mouseover'); + equals(status.text(), 'Show the current month', 'Status - current'); + $('.ui-datepicker-next a', dp).simulate('mouseover'); + equals(status.text(), 'Show the next month', 'Status - next'); + $('.ui-datepicker-new-month', dp).simulate('mouseover'); + equals(status.text(), 'Show a different month', 'Status - new month'); + $('.ui-datepicker-new-year', dp).simulate('mouseover'); + equals(status.text(), 'Show a different year', 'Status - new year'); + $('.ui-datepicker-title-row td:first', dp).simulate('mouseover'); + equals(status.text(), 'Week of the year', 'Status - week header'); + var day = 0; + $('.ui-datepicker-title-row a', dp).each(function() { + $(this).simulate('mouseover'); + equals(status.text(), 'Set ' + $.datepicker.regional[''].dayNames[day] + + ' as first week day', 'Status - day ' + day); + day++; + }); + $('.ui-datepicker-days-row:eq(1) td:first', dp).simulate('mouseover'); + equals(status.text(), 'Week of the year', 'Status - week column'); + day = 0; + var month = $.datepicker.regional[''].monthNamesShort[new Date().getMonth()]; + $('.ui-datepicker-days-row:eq(1) a', dp).each(function() { + $(this).simulate('mouseover'); + equals(status.text(), 'Select ' + $.datepicker.regional[''].dayNames[day] + + ', ' + month + ' ' + $(this).text(), 'Status - dates'); + day++; + }); + $('.ui-datepicker-days-row a:contains("20")', dp).each(function() { + $(this).simulate('mouseover'); + equals(status.text(), '*** 20 ***', 'Status - dates'); + }); + inp.datepicker('hide').datepicker('destroy'); +}); + +test('localisation', function() { + var inp = init('#inp', $.datepicker.regional['fr']); + inp.datepicker('option', {dateFormat: 'DD, d MM yy', showStatus: true, showWeeks: true}). + val('').datepicker('show'); + var dp = $('#ui-datepicker-div'); + var status = $('.ui-datepicker-status', dp); + equals($('.ui-datepicker-clear', dp).text(), 'Effacer', 'Localisation - clear'); + equals($('.ui-datepicker-close', dp).text(), 'Fermer', 'Localisation - close'); + $('.ui-datepicker-close a', dp).simulate('mouseover'); + equals(status.text(), 'Fermer sans modifier', 'Localisation - status'); + equals($('.ui-datepicker-prev', dp).text(), '', 'Localisation - next'); + equals($('.ui-datepicker-current', dp).text(), 'Courant', 'Localisation - current'); + var month = 0; + $('.ui-datepicker-new-month option', dp).each(function() { + equals($(this).text(), $.datepicker.regional['fr'].monthNames[month], + 'Localisation - month ' + month); + month++; + }); + equals($('.ui-datepicker-title-row td:first', dp).text(), + $.datepicker.regional['fr'].weekHeader, 'Localisation - week header'); + var day = 1; + $('.ui-datepicker-title-row a', dp).each(function() { + equals($(this).text(), $.datepicker.regional['fr'].dayNamesMin[day], + 'Localisation - day ' + day); + day = (day + 1) % 7; + }); + inp.simulate('keydown', {keyCode: $.simulate.VK_ENTER}); + var date = new Date(); + equals(inp.val(), $.datepicker.regional['fr'].dayNames[date.getDay()] + ', ' + + date.getDate() + ' ' + $.datepicker.regional['fr'].monthNames[date.getMonth()] + + ' ' + date.getFullYear(), 'Localisation - formatting'); +}); + +test('noWeekends', function() { + for (var i = 1; i <= 31; i++) { + var date = new Date(2001, 1 - 1, i); + isSet($.datepicker.noWeekends(date), [(i + 1) % 7 >= 2, ''], + 'No weekends ' + date); + } +}); + +test('iso8601Week', function() { + var date = new Date(2000, 12 - 1, 31); + equals($.datepicker.iso8601Week(date), 52, 'ISO 8601 week ' + date); + date = new Date(2001, 1 - 1, 1); + equals($.datepicker.iso8601Week(date), 1, 'ISO 8601 week ' + date); + date = new Date(2001, 1 - 1, 7); + equals($.datepicker.iso8601Week(date), 1, 'ISO 8601 week ' + date); + date = new Date(2001, 1 - 1, 8); + equals($.datepicker.iso8601Week(date), 2, 'ISO 8601 week ' + date); + date = new Date(2003, 12 - 1, 28); + equals($.datepicker.iso8601Week(date), 52, 'ISO 8601 week ' + date); + date = new Date(2003, 12 - 1, 29); + equals($.datepicker.iso8601Week(date), 1, 'ISO 8601 week ' + date); + date = new Date(2004, 1 - 1, 4); + equals($.datepicker.iso8601Week(date), 1, 'ISO 8601 week ' + date); + date = new Date(2004, 1 - 1, 5); + equals($.datepicker.iso8601Week(date), 2, 'ISO 8601 week ' + date); + date = new Date(2009, 12 - 1, 28); + equals($.datepicker.iso8601Week(date), 53, 'ISO 8601 week ' + date); + date = new Date(2010, 1 - 1, 3); + equals($.datepicker.iso8601Week(date), 53, 'ISO 8601 week ' + date); + date = new Date(2010, 1 - 1, 4); + equals($.datepicker.iso8601Week(date), 1, 'ISO 8601 week ' + date); + date = new Date(2010, 1 - 1, 10); + equals($.datepicker.iso8601Week(date), 1, 'ISO 8601 week ' + date); +}); + +test('parseDate', function() { + init('#inp'); + ok($.datepicker.parseDate('d m y', '') == null, 'Parse date empty'); + equalsDate($.datepicker.parseDate('d m y', '3 2 01'), + new Date(2001, 2 - 1, 3), 'Parse date d m y'); + equalsDate($.datepicker.parseDate('dd mm yy', '03 02 2001'), + new Date(2001, 2 - 1, 3), 'Parse date dd mm yy'); + equalsDate($.datepicker.parseDate('d m y', '13 12 01'), + new Date(2001, 12 - 1, 13), 'Parse date d m y'); + equalsDate($.datepicker.parseDate('dd mm yy', '13 12 2001'), + new Date(2001, 12 - 1, 13), 'Parse date dd mm yy'); + equalsDate($.datepicker.parseDate('y-o', '2001-34'), + new Date(2001, 2 - 1, 3), 'Parse date y-o'); + equalsDate($.datepicker.parseDate('yy-oo', '2001-347'), + new Date(2001, 12 - 1, 13), 'Parse date yy oo'); + equalsDate($.datepicker.parseDate('oo yy', '348 2004'), + new Date(2004, 12 - 1, 13), 'Parse date oo-yy'); + equalsDate($.datepicker.parseDate('D d M y', 'Sat 3 Feb 01'), + new Date(2001, 2 - 1, 3), 'Parse date D d M y'); + equalsDate($.datepicker.parseDate('d MM DD yy', '3 February Saturday 2001'), + new Date(2001, 2 - 1, 3), 'Parse date dd MM DD yy'); + equalsDate($.datepicker.parseDate('DD, MM d, yy', 'Saturday, February 3, 2001'), + new Date(2001, 2 - 1, 3), 'Parse date DD, MM d, yy'); + equalsDate($.datepicker.parseDate('\'day\' d \'of\' MM (\'\'DD\'\'), yy', + 'day 3 of February (\'Saturday\'), 2001'), new Date(2001, 2 - 1, 3), + 'Parse date \'day\' d \'of\' MM (\'\'DD\'\'), yy'); + equalsDate($.datepicker.parseDate('y-m-d', '01-02-03'), + new Date(2001, 2 - 1, 3), 'Parse date y-m-d - default cutoff'); + equalsDate($.datepicker.parseDate('y-m-d', '51-02-03'), + new Date(1951, 2 - 1, 3), 'Parse date y-m-d - default cutoff'); + equalsDate($.datepicker.parseDate('y-m-d', '51-02-03', {shortYearCutoff: 80}), + new Date(2051, 2 - 1, 3), 'Parse date y-m-d - cutoff 80'); + equalsDate($.datepicker.parseDate('y-m-d', '51-02-03', {shortYearCutoff: '+60'}), + new Date(2051, 2 - 1, 3), 'Parse date y-m-d - cutoff +60'); + var fr = $.datepicker.regional['fr']; + var settings = {dayNamesShort: fr.dayNamesShort, dayNames: fr.dayNames, + monthNamesShort: fr.monthNamesShort, monthNames: fr.monthNames}; + equalsDate($.datepicker.parseDate('D d M y', 'Lun 9 Avr 01', settings), + new Date(2001, 4 - 1, 9), 'Parse date D M y with settings'); + equalsDate($.datepicker.parseDate('d MM DD yy', '9 Avril Lundi 2001', settings), + new Date(2001, 4 - 1, 9), 'Parse date d MM DD yy with settings'); + equalsDate($.datepicker.parseDate('DD, MM d, yy', 'Lundi, Avril 9, 2001', settings), + new Date(2001, 4 - 1, 9), 'Parse date DD, MM d, yy with settings'); + equalsDate($.datepicker.parseDate('\'jour\' d \'de\' MM (\'\'DD\'\'), yy', + 'jour 9 de Avril (\'Lundi\'), 2001', settings), new Date(2001, 4 - 1, 9), + 'Parse date \'jour\' d \'de\' MM (\'\'DD\'\'), yy with settings'); +}); + +test('parseDateErrors', function() { + init('#inp'); + var expectError = function(expr, value, error) { + try { + expr(); + ok(false, 'Parsed error ' + value); + } + catch (e) { + equals(e, error, 'Parsed error ' + value); + } + }; + expectError(function() { $.datepicker.parseDate(null, 'Sat 2 01'); }, + 'Sat 2 01', 'Invalid arguments'); + expectError(function() { $.datepicker.parseDate('d m y', null); }, + 'null', 'Invalid arguments'); + expectError(function() { $.datepicker.parseDate('d m y', 'Sat 2 01'); }, + 'Sat 2 01 - d m y', 'Missing number at position 0'); + expectError(function() { $.datepicker.parseDate('dd mm yy', 'Sat 2 01'); }, + 'Sat 2 01 - dd mm yy', 'Missing number at position 0'); + expectError(function() { $.datepicker.parseDate('d m y', '3 Feb 01'); }, + '3 Feb 01 - d m y', 'Missing number at position 2'); + expectError(function() { $.datepicker.parseDate('dd mm yy', '3 Feb 01'); }, + '3 Feb 01 - dd mm yy', 'Missing number at position 2'); + expectError(function() { $.datepicker.parseDate('d m y', '3 2 AD01'); }, + '3 2 AD01 - d m y', 'Missing number at position 4'); + expectError(function() { $.datepicker.parseDate('d m yy', '3 2 AD01'); }, + '3 2 AD01 - dd mm yy', 'Missing number at position 4'); + expectError(function() { $.datepicker.parseDate('y-o', '2001-D01'); }, + '2001-D01 - y-o', 'Missing number at position 5'); + expectError(function() { $.datepicker.parseDate('yy-oo', '2001-D01'); }, + '2001-D01 - yy-oo', 'Missing number at position 5'); + expectError(function() { $.datepicker.parseDate('D d M y', 'D7 3 Feb 01'); }, + 'D7 3 Feb 01 - D d M y', 'Unknown name at position 0'); + expectError(function() { $.datepicker.parseDate('D d M y', 'Sat 3 M2 01'); }, + 'Sat 3 M2 01 - D d M y', 'Unknown name at position 6'); + expectError(function() { $.datepicker.parseDate('DD, MM d, yy', 'Saturday- Feb 3, 2001'); }, + 'Saturday- Feb 3, 2001 - DD, MM d, yy', 'Unexpected literal at position 8'); + expectError(function() { $.datepicker.parseDate('\'day\' d \'of\' MM (\'\'DD\'\'), yy', + 'day 3 of February ("Saturday"), 2001'); }, + 'day 3 of Mon2 ("Day7"), 2001', 'Unexpected literal at position 19'); + expectError(function() { $.datepicker.parseDate('d m y', '29 2 01'); }, + '29 2 01 - d m y', 'Invalid date'); + var fr = $.datepicker.regional['fr']; + var settings = {dayNamesShort: fr.dayNamesShort, dayNames: fr.dayNames, + monthNamesShort: fr.monthNamesShort, monthNames: fr.monthNames}; + expectError(function() { $.datepicker.parseDate('D d M y', 'Mon 9 Avr 01', settings); }, + 'Mon 9 Avr 01 - D d M y', 'Unknown name at position 0'); + expectError(function() { $.datepicker.parseDate('D d M y', 'Lun 9 Apr 01', settings); }, + 'Lun 9 Apr 01 - D d M y', 'Unknown name at position 6'); +}); + +test('formatDate', function() { + init('#inp'); + equals($.datepicker.formatDate('d m y', new Date(2001, 2 - 1, 3)), + '3 2 01', 'Format date d m y'); + equals($.datepicker.formatDate('dd mm yy', new Date(2001, 2 - 1, 3)), + '03 02 2001', 'Format date dd mm yy'); + equals($.datepicker.formatDate('d m y', new Date(2001, 12 - 1, 13)), + '13 12 01', 'Format date d m y'); + equals($.datepicker.formatDate('dd mm yy', new Date(2001, 12 - 1, 13)), + '13 12 2001', 'Format date dd mm yy'); + equals($.datepicker.formatDate('yy-o', new Date(2001, 2 - 1, 3)), + '2001-34', 'Format date yy-o'); + equals($.datepicker.formatDate('yy-oo', new Date(2001, 2 - 1, 3)), + '2001-034', 'Format date yy-oo'); + equals($.datepicker.formatDate('D M y', new Date(2001, 2 - 1, 3)), + 'Sat Feb 01', 'Format date D M y'); + equals($.datepicker.formatDate('DD MM yy', new Date(2001, 2 - 1, 3)), + 'Saturday February 2001', 'Format date DD MM yy'); + equals($.datepicker.formatDate('DD, MM d, yy', new Date(2001, 2 - 1, 3)), + 'Saturday, February 3, 2001', 'Format date DD, MM d, yy'); + equals($.datepicker.formatDate('\'day\' d \'of\' MM (\'\'DD\'\'), yy', + new Date(2001, 2 - 1, 3)), 'day 3 of February (\'Saturday\'), 2001', + 'Format date \'day\' d \'of\' MM (\'\'DD\'\'), yy'); + var fr = $.datepicker.regional['fr']; + var settings = {dayNamesShort: fr.dayNamesShort, dayNames: fr.dayNames, + monthNamesShort: fr.monthNamesShort, monthNames: fr.monthNames}; + equals($.datepicker.formatDate('D M y', new Date(2001, 4 - 1, 9), settings), + 'Lun Avr 01', 'Format date D M y with settings'); + equals($.datepicker.formatDate('DD MM yy', new Date(2001, 4 - 1, 9), settings), + 'Lundi Avril 2001', 'Format date DD MM yy with settings'); + equals($.datepicker.formatDate('DD, MM d, yy', new Date(2001, 4 - 1, 9), settings), + 'Lundi, Avril 9, 2001', 'Format date DD, MM d, yy with settings'); + equals($.datepicker.formatDate('\'jour\' d \'de\' MM (\'\'DD\'\'), yy', + new Date(2001, 4 - 1, 9), settings), 'jour 9 de Avril (\'Lundi\'), 2001', + 'Format date \'jour\' d \'de\' MM (\'\'DD\'\'), yy with settings'); +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/dialog.html b/sites/all/libraries/jquery.ui/tests/dialog.html new file mode 100644 index 0000000..60e136b --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/dialog.html @@ -0,0 +1,26 @@ + + + + jQuery UI Dialog Test Suite + + + + + + + + + + + + + + + + +
        +
        Dialog Content
        +
        + + + diff --git a/sites/all/libraries/jquery.ui/tests/dialog.js b/sites/all/libraries/jquery.ui/tests/dialog.js new file mode 100644 index 0000000..7ab8457 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/dialog.js @@ -0,0 +1,746 @@ +/* + * dialog unit tests + */ +(function($) { +// +// Dialog Test Helper Functions +// + +var defaults = { + autoOpen: true, + autoResize: true, + buttons: {}, + closeOnEscape: true, + closeText: 'close', + disabled: false, + dialogClass: undefined, + draggable: true, + height: 200, + maxHeight: undefined, + maxWidth: undefined, + minHeight: 100, + minWidth: 150, + modal: false, + overlay: {}, + position: 'center', + resizable: true, + stack: true, + title: '', + width: 300 +}; + +var el, + offsetBefore, offsetAfter, + heightBefore, heightAfter, + widthBefore, widthAfter, + dragged; + +function dlg() { + return el.data("dialog").element.parents(".ui-dialog:first"); +} + +function isOpen(why) { + ok(dlg().is(":visible"), why); +} + +function isNotOpen(why) { + ok(!dlg().is(":visible"), why); +} + +function drag(handle, dx, dy) { + var d = dlg(); + offsetBefore = d.offset(); + heightBefore = d.height(); + widthBefore = d.width(); + //this mouseover is to work around a limitation in resizable + //TODO: fix resizable so handle doesn't require mouseover in order to be used + $(handle, d).simulate("mouseover"); + $(handle, d).simulate("drag", { + dx: dx || 0, + dy: dy || 0 + }); + dragged = { dx: dx, dy: dy }; + offsetAfter = d.offset(); + heightAfter = d.height(); + widthAfter = d.width(); +} + +function moved(dx, dy, msg) { + msg = msg ? msg + "." : ""; + var actual = { left: offsetAfter.left, top: offsetAfter.top }; + var expected = { left: offsetBefore.left + dx, top: offsetBefore.top + dy }; + same(actual, expected, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] ' + msg); +} + +function shouldmove(why) { + var handle = $(".ui-dialog-titlebar", dlg()); + drag(handle, 50, 50); + moved(50, 50, why); +} + +function shouldnotmove(why) { + var handle = $(".ui-dialog-titlebar", dlg()); + drag(handle, 50, 50); + moved(0, 0, why); +} + +function resized(dw, dh, msg) { + msg = msg ? msg + "." : ""; + var actual = { width: widthAfter, height: heightAfter }; + var expected = { width: widthBefore + dw, height: heightBefore + dh }; + same(actual, expected, 'resized[' + dragged.dx + ', ' + dragged.dy + '] ' + msg); +} + +function shouldresize(why) { + var handle = $(".ui-resizable-se", dlg()); + drag(handle, 50, 50); + resized(50, 50, why); +} + +function shouldnotresize(why) { + var handle = $(".ui-resizable-se", dlg()); + drag(handle, 50, 50); + resized(0, 0, why); +} + +function broder(el, side){ + return parseInt(el.css('border-' + side + '-width'), 10); +} + +function margin(el, side) { + return parseInt(el.css('margin-' + side), 10); +} + +// Dialog Tests +module("dialog"); + +test("init", function() { + expect(6); + + $("
        ").appendTo('body').dialog().remove(); + ok(true, '.dialog() called on element'); + + $([]).dialog().remove(); + ok(true, '.dialog() called on empty collection'); + + $('
        ').dialog().remove(); + ok(true, '.dialog() called on disconnected DOMElement'); + + $('
        ').dialog().dialog("foo").remove(); + ok(true, 'arbitrary method called after init'); + + el = $('
        ').dialog(); + var foo = el.data("foo.dialog"); + el.remove(); + ok(true, 'arbitrary option getter after init'); + + $('
        ').dialog().data("foo.dialog", "bar").remove(); + ok(true, 'arbitrary option setter after init'); +}); + +test("destroy", function() { + expect(6); + + $("
        ").appendTo('body').dialog().dialog("destroy").remove(); + ok(true, '.dialog("destroy") called on element'); + + $([]).dialog().dialog("destroy").remove(); + ok(true, '.dialog("destroy") called on empty collection'); + + $('
        ').dialog().dialog("destroy").remove(); + ok(true, '.dialog("destroy") called on disconnected DOMElement'); + + $('
        ').dialog().dialog("destroy").dialog("foo").remove(); + ok(true, 'arbitrary method called after destroy'); + + el = $('
        ').dialog(); + var foo = el.dialog("destroy").data("foo.dialog"); + el.remove(); + ok(true, 'arbitrary option getter after destroy'); + + $('
        ').dialog().dialog("destroy").data("foo.dialog", "bar").remove(); + ok(true, 'arbitrary option setter after destroy'); +}); + +/* +//This one takes a while to run + +test("element types", function() { + var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' + + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' + + ',acronym,code,samp,kbd,var,img,object,hr' + + ',input,button,label,select,iframe').split(','); + + $.each(typeNames, function(i) { + var typeName = typeNames[i]; + el = $(document.createElement(typeName)).appendTo('body'); + (typeName == 'table' && el.append("content")); + el.dialog(); + ok(true, '$("<' + typeName + '/>").dialog()'); + el.dialog("destroy"); + el.remove(); + }); +}); + +*/ + +test("defaults", function() { + el = $('
        ').dialog(); + $.each(defaults, function(key, val) { + var actual = el.data(key + ".dialog"), expected = val; + same(actual, expected, key); + }); + el.remove(); +}); + +test("title id", function() { + expect(3); + + var titleId; + + // reset the uuid so we know what values to expect + $.ui.dialog.uuid = 0; + + el = $('
        ').dialog(); + titleId = dlg().find('.ui-dialog-title').attr('id'); + equals(titleId, 'ui-dialog-title-1', 'auto-numbered title id'); + el.remove(); + + el = $('
        ').dialog(); + titleId = dlg().find('.ui-dialog-title').attr('id'); + equals(titleId, 'ui-dialog-title-2', 'auto-numbered title id'); + el.remove(); + + el = $('
        ').dialog(); + titleId = dlg().find('.ui-dialog-title').attr('id'); + equals(titleId, 'ui-dialog-title-foo', 'carried over title id'); + el.remove(); +}); + +test("ARIA", function() { + expect(4); + + el = $('
        ').dialog(); + + equals(dlg().attr('role'), 'dialog', 'dialog role'); + + var labelledBy = dlg().attr('aria-labelledby'); + ok(labelledBy.length > 0, 'has aria-labelledby attribute'); + equals(dlg().find('.ui-dialog-title').attr('id'), labelledBy, + 'proper aria-labelledby attribute'); + + equals(dlg().find('.ui-dialog-titlebar-close').attr('role'), 'button', + 'close link role'); + + el.remove(); +}); + +module("dialog: Options"); + +test("autoOpen", function() { + expect(2); + + el = $('
        ').dialog({ autoOpen: false }); + isNotOpen('.dialog({ autoOpen: false })'); + el.remove(); + + el = $('
        ').dialog({ autoOpen: true }); + isOpen('.dialog({ autoOpen: true })'); + el.remove(); +}); + +test("autoResize", function() { + expect(2); + + var actual, + before, + expected, + handle; + + el = $('
        content
        content
        content
        content
        content
        ').dialog({ autoResize: false }); + expected = { height: el.height() }; + handle = $(".ui-resizable-se", dlg()); + drag(handle, 50, 50); + actual = { height: el.height() }; + same(actual, expected, '.dialog({ autoResize: false })'); + el.remove(); + el = $('
        content
        content
        content
        content
        content
        ').dialog({ autoResize: true }); + before = { width: el.width(), height: el.height() }; + handle = $(".ui-resizable-se", dlg()); + drag(handle, 50, 50); + expected = { width: before.width + 50, height: before.height + 50 }; + actual = { width: el.width(), height: el.height() }; + same(actual, expected, '.dialog({ autoResize: true })'); + el.remove(); +}); + +test("buttons", function() { + expect(17); + + var buttons = { + "Ok": function(ev, ui) { + ok(true, "button click fires callback"); + equals(this, el[0], "context of callback"); + equals(ev.target, btn[0], "event target"); + }, + "Cancel": function(ev, ui) { + ok(true, "button click fires callback"); + equals(this, el[0], "context of callback"); + equals(ev.target, btn[1], "event target"); + } + }; + + el = $('
        ').dialog({ buttons: buttons }); + var btn = $("button", dlg()); + equals(btn.length, 2, "number of buttons"); + + var i = 0; + $.each(buttons, function(key, val) { + equals(btn.eq(i).text(), key, "text of button " + (i+1)); + i++; + }); + + equals(btn.parent().attr('className'), 'ui-dialog-buttonpane', "buttons in container"); + btn.trigger("click"); + + var newButtons = { + "Close": function(ev, ui) { + ok(true, "button click fires callback"); + equals(this, el[0], "context of callback"); + equals(ev.target, btn[0], "event target"); + } + }; + + equals(el.data("buttons.dialog"), buttons, '.data("buttons.dialog") getter'); + el.data("buttons.dialog", newButtons); + equals(el.data("buttons.dialog"), newButtons, '.data("buttons.dialog", ...) setter'); + + btn = $("button", dlg()); + equals(btn.length, 1, "number of buttons after setter"); + btn.trigger('click'); + + i = 0; + $.each(newButtons, function(key, val) { + equals(btn.eq(i).text(), key, "text of button " + (i+1)); + i += 1; + }); + + el.remove(); +}); + +test("closeOnEscape", function() { + ok(false, 'missing test'); +}); + +test("closeText", function() { + expect(3); + + el = $('
        ').dialog(); + equals(dlg().find('.ui-dialog-titlebar-close span').text(), 'close', + 'default close text'); + el.remove(); + + el = $('
        ').dialog({ closeText: "foo" }); + equals(dlg().find('.ui-dialog-titlebar-close span').text(), 'foo', + 'closeText on init'); + el.remove(); + + el = $('
        ').dialog().dialog('option', 'closeText', 'bar'); + equals(dlg().find('.ui-dialog-titlebar-close span').text(), 'bar', + 'closeText via option method'); + el.remove(); +}); + +test("dialogClass", function() { + expect(4); + + el = $('
        ').dialog(); + equals(dlg().is(".foo"), false, 'dialogClass not specified. foo class added'); + el.remove(); + + el = $('
        ').dialog({ dialogClass: "foo" }); + equals(dlg().is(".foo"), true, 'dialogClass in init. foo class added'); + el.remove(); + + el = $('
        ').dialog({ dialogClass: "foo bar" }); + equals(dlg().is(".foo"), true, 'dialogClass in init, two classes. foo class added'); + equals(dlg().is(".bar"), true, 'dialogClass in init, two classes. bar class added'); + el.remove(); +}); + +test("draggable", function() { + expect(4); + + el = $('
        ').dialog({ draggable: false }); + shouldnotmove(); + el.data('draggable.dialog', true); + shouldmove(); + el.remove(); + + el = $('
        ').dialog({ draggable: true }); + shouldmove(); + el.data('draggable.dialog', false); + shouldnotmove(); + el.remove(); +}); + +test("height", function() { + expect(3); + + el = $('
        ').dialog(); + equals(dlg().height(), defaults.height, "default height"); + el.remove(); + + el = $('
        ').dialog({ height: 437 }); + equals(dlg().height(), 437, "explicit height"); + el.remove(); + + el = $('
        ').dialog(); + el.data('height.dialog', 438); + equals(dlg().height(), 438, "explicit height set after init"); + el.remove(); +}); + +test("maxHeight", function() { + expect(3); + + el = $('
        ').dialog({ maxHeight: 400 }); + drag('.ui-resizable-s', 1000, 1000); + equals(heightAfter, 400, "maxHeight"); + el.remove(); + + el = $('
        ').dialog({ maxHeight: 400 }); + drag('.ui-resizable-n', -1000, -1000); + equals(heightAfter, 400, "maxHeight"); + el.remove(); + + el = $('
        ').dialog({ maxHeight: 400 }).data('maxHeight.dialog', 600); + drag('.ui-resizable-n', -1000, -1000); + equals(heightAfter, 600, "maxHeight"); + el.remove(); +}); + +test("maxWidth", function() { + expect(3); + + el = $('
        ').dialog({ maxWidth: 400 }); + drag('.ui-resizable-e', 1000, 1000); + equals(widthAfter, 400, "maxWidth"); + el.remove(); + + el = $('
        ').dialog({ maxWidth: 400 }); + drag('.ui-resizable-w', -1000, -1000); + equals(widthAfter, 400, "maxWidth"); + el.remove(); + + el = $('
        ').dialog({ maxWidth: 400 }).data('maxWidth.dialog', 600); + drag('.ui-resizable-w', -1000, -1000); + equals(widthAfter, 600, "maxWidth"); + el.remove(); +}); + +test("minHeight", function() { + expect(3); + + el = $('
        ').dialog({ minHeight: 10 }); + drag('.ui-resizable-s', -1000, -1000); + equals(heightAfter, 10, "minHeight"); + el.remove(); + + el = $('
        ').dialog({ minHeight: 10 }); + drag('.ui-resizable-n', 1000, 1000); + equals(heightAfter, 10, "minHeight"); + el.remove(); + + el = $('
        ').dialog({ minHeight: 10 }).data('minHeight.dialog', 30); + drag('.ui-resizable-n', 1000, 1000); + equals(heightAfter, 30, "minHeight"); + el.remove(); +}); + +test("minWidth", function() { + expect(3); + + el = $('
        ').dialog({ minWidth: 10 }); + drag('.ui-resizable-e', -1000, -1000); + equals(widthAfter, 10, "minWidth"); + el.remove(); + + el = $('
        ').dialog({ minWidth: 10 }); + drag('.ui-resizable-w', 1000, 1000); + equals(widthAfter, 10, "minWidth"); + el.remove(); + + el = $('
        ').dialog({ minWidth: 30 }).data('minWidth.dialog', 30); + drag('.ui-resizable-w', 1000, 1000); + equals(widthAfter, 30, "minWidth"); + el.remove(); +}); + +test("modal", function() { + ok(false, "missing test"); +}); + +test("overlay", function() { + ok(false, "missing test"); +}); + +test("position", function() { + ok(false, "missing test"); +}); + +test("resizable", function() { + expect(4); + + el = $('
        ').dialog(); + shouldresize("[default]"); + el.data('resizable.dialog', false); + shouldnotresize('disabled after init'); + el.remove(); + + el = $('
        ').dialog({ resizable: false }); + shouldnotresize("disabled in init options"); + el.data('resizable.dialog', true); + shouldresize('enabled after init'); + el.remove(); +}); + +test("stack", function() { + ok(false, "missing test"); +}); + +test("title", function() { + expect(5); + + function titleText() { + return dlg().find(".ui-dialog-title").html(); + } + + el = $('
        ').dialog(); + equals(titleText(), " ", "[default]"); + el.remove(); + + el = $('
        ').dialog(); + equals(titleText(), "foo", "title in element attribute"); + el.remove(); + + el = $('
        ').dialog({ title: 'foo' }); + equals(titleText(), "foo", "title in init options"); + el.remove(); + + el = $('
        ').dialog({ title: 'bar' }); + equals(titleText(), "bar", "title in init options should override title in element attribute"); + el.remove(); + + el = $('
        ').dialog().data('title.dialog', 'foo'); + equals(titleText(), 'foo', 'title after init'); + el.remove(); +}); + +test("width", function() { + expect(3); + + el = $('
        ').dialog(); + equals(dlg().width(), defaults.width, "default width"); + el.remove(); + + el = $('
        ').dialog({width: 437 }); + equals(dlg().width(), 437, "explicit width"); + el.data('width.dialog', 438); + equals(dlg().width(), 438, 'explicit width after init'); + el.remove(); +}); + +module("dialog: Methods"); + +test("isOpen", function() { + expect(4); + + el = $('
        ').dialog(); + equals(el.dialog('isOpen'), true, "dialog is open after init"); + el.dialog('close'); + equals(el.dialog('isOpen'), false, "dialog is closed"); + el.remove(); + + el = $('
        ').dialog({autoOpen: false}); + equals(el.dialog('isOpen'), false, "dialog is closed after init"); + el.dialog('open'); + equals(el.dialog('isOpen'), true, "dialog is open"); + el.remove(); +}); + +module("dialog: Callbacks"); + +test("open", function() { + expect(6); + + el = $("
        "); + el.dialog({ + open: function(ev, ui) { + ok(true, 'autoOpen: true fires open callback'); + equals(this, el[0], "context of callback"); + } + }); + el.remove(); + + el = $("
        "); + el.dialog({ + autoOpen: false, + open: function(ev, ui) { + ok(true, '.dialog("open") fires open callback'); + equals(this, el[0], "context of callback"); + } + }); + el.dialog("open"); + el.remove(); + + el = $('
        ').dialog({ + autoOpen: false + }); + el.bind('dialogopen', function(ev, ui) { + ok(true, 'dialog("open") fires open event'); + equals(this, el[0], 'context of event'); + }); + el.dialog('open'); + el.remove(); +}); + +test("dragStart", function() { + expect(2); + + el = $("
        "); + el.dialog({ + dragStart: function(ev, ui) { + ok(true, 'dragging fires dragStart callback'); + equals(this, el[0], "context of callback"); + } + }); + var handle = $(".ui-dialog-titlebar", dlg()); + drag(handle, 50, 50); + el.remove(); +}); + +test("drag", function() { + var fired = false; + + el = $("
        "); + el.dialog({ + drag: function(ev, ui) { + fired = true; + equals(this, el[0], "context of callback"); + } + }); + var handle = $(".ui-dialog-titlebar", dlg()); + drag(handle, 50, 50); + ok(fired, "drag fired"); + el.remove(); +}); + +test("dragStop", function() { + expect(2); + + el = $("
        "); + el.dialog({ + dragStop: function(ev, ui) { + ok(true, 'dragging fires dragStop callback'); + equals(this, el[0], "context of callback"); + } + }); + var handle = $(".ui-dialog-titlebar", dlg()); + drag(handle, 50, 50); + el.remove(); +}); + +test("resizeStart", function() { + expect(2); + + el = $("
        "); + el.dialog({ + resizeStart: function(ev, ui) { + ok(true, 'resizing fires resizeStart callback'); + equals(this, el[0], "context of callback"); + } + }); + var handle = $(".ui-resizable-se", dlg()); + drag(handle, 50, 50); + el.remove(); +}); + +test("resize", function() { + var fired = false; + + el = $("
        "); + el.dialog({ + resize: function(ev, ui) { + fired = true; + equals(this, el[0], "context of callback"); + } + }); + var handle = $(".ui-resizable-se", dlg()); + drag(handle, 50, 50); + ok(fired, "resize fired"); + el.remove(); +}); + +test("resizeStop", function() { + expect(2); + + el = $("
        "); + el.dialog({ + resizeStop: function(ev, ui) { + ok(true, 'resizing fires resizeStop callback'); + equals(this, el[0], "context of callback"); + } + }); + var handle = $(".ui-resizable-se", dlg()); + drag(handle, 50, 50); + el.remove(); +}); + +test("close", function() { + expect(4); + + el = $('
        ').dialog({ + close: function(ev, ui) { + ok(true, '.dialog("close") fires close callback'); + equals(this, el[0], "context of callback"); + } + }); + el.dialog("close"); + el.remove(); + + el = $('
        ').dialog().bind('dialogclose', function(ev, ui) { + ok(true, '.dialog("close") firse dialogclose event'); + equals(this, el[0], 'context of event'); + }); + el.dialog('close'); + el.remove(); +}); + +test("beforeclose", function() { + expect(6); + + el = $('
        ').dialog({ + beforeclose: function(ev, ui) { + ok(true, '.dialog("close") fires beforeclose callback'); + equals(this, el[0], "context of callback"); + return false; + } + }); + el.dialog('close'); + isOpen('beforeclose callback should prevent dialog from closing'); + el.remove(); + + el = $('
        ').dialog().bind('dialogbeforeclose', function(ev, ui) { + ok(true, '.dialog("close") triggers dialogbeforeclose event'); + equals(this, el[0], "context of event"); + return false; + }); + el.dialog('close'); + isOpen('dialogbeforeclose event should prevent dialog from closing'); + el.remove(); +}); + +module("dialog: Tickets"); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/draggable.html b/sites/all/libraries/jquery.ui/tests/draggable.html new file mode 100644 index 0000000..b11079d --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/draggable.html @@ -0,0 +1,28 @@ + + + + jQuery UI Draggable Test Suite + + + + + + + + + + + + + + +
        +
        Relative
        +
        Absolute
        +
        +
        + +
        + + + diff --git a/sites/all/libraries/jquery.ui/tests/draggable.js b/sites/all/libraries/jquery.ui/tests/draggable.js new file mode 100644 index 0000000..d245312 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/draggable.js @@ -0,0 +1,787 @@ +/* + * draggable unit tests + */ +(function($) { +// +// Draggable Test Helper Functions +// + +var defaults = { + appendTo: "parent", + axis: false, + cancel: ":input", + connectToSortable: false, + containment: false, + cursor: "default", + cursorAt: null, + delay: 0, + disabled: false, + distance: 1, + grid: false, + handle: false, + helper: "original", + iframeFix: false, + opacity: 1.0, + refreshPositions: false, + revert: false, + revertDuration: 500, + scroll: true, + scrollSensitivity: 20, + scrollSpeed: 20, + scope: "default", + snap: false, + snapMode: "both", + snapTolerance: 20, + stack: false, + zIndex: null +}; + +var el, offsetBefore, offsetAfter, dragged; + +var drag = function(handle, dx, dy) { + var element = el.data("draggable").element; + offsetBefore = el.offset(); + $(handle).simulate("drag", { + dx: dx || 0, + dy: dy || 0 + }); + dragged = { dx: dx, dy: dy }; + offsetAfter = el.offset(); +} + +var moved = function (dx, dy, msg) { + msg = msg ? msg + "." : ""; + var actual = { left: offsetAfter.left, top: offsetAfter.top }; + var expected = { left: offsetBefore.left + dx, top: offsetBefore.top + dy }; + same(actual, expected, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] ' + msg); +} + +function shouldmove(why) { + drag(el, 50, 50); + moved(50, 50, why); +} + +function shouldnotmove(why) { + drag(el, 50, 50); + moved(0, 0, why); +} + +var border = function(el, side) { return parseInt(el.css('border-' + side + '-width')); } + +var margin = function(el, side) { return parseInt(el.css('margin-' + side)); } + +// Draggable Tests +module("draggable"); + +test("init", function() { + expect(6); + + $("
        ").appendTo('body').draggable().remove(); + ok(true, '.draggable() called on element'); + + $([]).draggable(); + ok(true, '.draggable() called on empty collection'); + + $("
        ").draggable(); + ok(true, '.draggable() called on disconnected DOMElement'); + + $("
        ").draggable().draggable("foo"); + ok(true, 'arbitrary method called after init'); + + $("
        ").draggable().data("foo.draggable"); + ok(true, 'arbitrary option getter after init'); + + $("
        ").draggable().data("foo.draggable", "bar"); + ok(true, 'arbitrary option setter after init'); +}); + +test("destroy", function() { + expect(6); + + $("
        ").appendTo('body').draggable().draggable("destroy").remove(); + ok(true, '.draggable("destroy") called on element'); + + $([]).draggable().draggable("destroy"); + ok(true, '.draggable("destroy") called on empty collection'); + + $("
        ").draggable().draggable("destroy"); + ok(true, '.draggable("destroy") called on disconnected DOMElement'); + + $("
        ").draggable().draggable("destroy").draggable("foo"); + ok(true, 'arbitrary method called after destroy'); + + $("
        ").draggable().draggable("destroy").data("foo.draggable"); + ok(true, 'arbitrary option getter after destroy'); + + $("
        ").draggable().draggable("destroy").data("foo.draggable", "bar"); + ok(true, 'arbitrary option setter after destroy'); +}); + +test("enable", function() { + expect(6); + el = $("#draggable2").draggable({ disabled: true }); + shouldnotmove('.draggable({ disabled: true })'); + el.draggable("enable"); + shouldmove('.draggable("enable")'); + equals(el.data("disabled.draggable"), false, "disabled.draggable getter"); + + el.draggable("destroy"); + el.draggable({ disabled: true }); + shouldnotmove('.draggable({ disabled: true })'); + el.data("disabled.draggable", false); + equals(el.data("disabled.draggable"), false, "disabled.draggable setter"); + shouldmove('.data("disabled.draggable", false)'); +}); + +test("disable", function() { + expect(6); + el = $("#draggable2").draggable({ disabled: false }); + shouldmove('.draggable({ disabled: false })'); + el.draggable("disable"); + shouldnotmove('.draggable("disable")'); + equals(el.data("disabled.draggable"), true, "disabled.draggable getter"); + + el.draggable("destroy"); + + el.draggable({ disabled: false }); + shouldmove('.draggable({ disabled: false })'); + el.data("disabled.draggable", true); + equals(el.data("disabled.draggable"), true, "disabled.draggable setter"); + shouldnotmove('.data("disabled.draggable", true)'); +}); + +test("element types", function() { + var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' + + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' + + ',acronym,code,samp,kbd,var,img,object,hr' + + ',input,button,label,select,iframe').split(','); + + $.each(typeNames, function(i) { + var typeName = typeNames[i]; + el = $(document.createElement(typeName)).appendTo('body'); + (typeName == 'table' && el.append("content")); + el.draggable({ cancel: '' }); + drag(el, 50, 50); + moved(50, 50, "<" + typeName + ">"); + el.draggable("destroy"); + el.remove(); + }); +}); + +test("defaults", function() { + el = $('
        ').draggable(); + $.each(defaults, function(key, val) { + var actual = el.data(key + ".draggable"), expected = val; + same(actual, expected, key); + }); + el.remove(); +}); + +test("No options, relative", function() { + el = $("#draggable1").draggable(); + drag(el, 50, 50); + moved(50, 50); +}); + +test("No options, absolute", function() { + el = $("#draggable2").draggable(); + drag(el, 50, 50); + moved(50, 50); +}); + +module("draggable: Options"); + +test("{ axis: false }, default", function() { + el = $("#draggable2").draggable({ axis: false }); + drag(el, 50, 50); + moved(50, 50); +}); + +test("{ axis: 'x' }", function() { + el = $("#draggable2").draggable({ axis: "x" }); + drag(el, 50, 50); + moved(50, 0); +}); + +test("{ axis: 'y' }", function() { + el = $("#draggable2").draggable({ axis: "y" }); + drag(el, 50, 50); + moved(0, 50); +}); + +test("{ axis: ? }, unexpected", function() { + var unexpected = { + "true": true, + "{}": {}, + "[]": [], + "null": null, + "undefined": undefined, + "function() {}": function() {} + }; + $.each(unexpected, function(key, val) { + el = $("#draggable2").draggable({ axis: val }); + drag(el, 50, 50); + moved(50, 50, "axis: " + key); + el.draggable("destroy"); + }) +}); + +test("{ cancel: 'span' }", function() { + el = $("#draggable2").draggable(); + drag("#draggable2 span", 50, 50); + moved(50, 50); + + el.draggable("destroy"); + + el = $("#draggable2").draggable({ cancel: 'span' }); + drag("#draggable2 span", 50, 50); + moved(0, 0); +}); + +test("{ cancel: ? }, unexpected", function() { + var unexpected = { + "true": true, + "false": false, + "{}": {}, + "[]": [], + "null": null, + "undefined": undefined, + "function() {return '';}": function() {return '';}, + "function() {return true;}": function() {return true;}, + "function() {return false;}": function() {return false;} + }; + $.each(unexpected, function(key, val) { + el = $("#draggable2").draggable({ cancel: val }); + drag(el, 50, 50); + var expected = [50, 50]; + moved(expected[0], expected[1], "cancel: " + key); + el.draggable("destroy"); + }) +}); + +test("{ containment: 'parent' }, relative", function() { + el = $("#draggable1").draggable({ containment: 'parent' }); + var p = el.parent(), po = p.offset(); + drag(el, -100, -100); + var expected = { + left: po.left + border(p, 'left') + margin(el, 'left'), + top: po.top + border(p, 'top') + margin(el, 'top') + } + same(offsetAfter, expected, 'compare offset to parent'); +}); + +test("{ containment: 'parent' }, absolute", function() { + el = $("#draggable2").draggable({ containment: 'parent' }); + var p = el.parent(), po = p.offset(); + drag(el, -100, -100); + var expected = { + left: po.left + border(p, 'left') + margin(el, 'left'), + top: po.top + border(p, 'top') + margin(el, 'top') + } + same(offsetAfter, expected, 'compare offset to parent'); +}); + +test("{ cursor: 'move' }", function() { + + function getCursor() { return $("body").css("cursor"); } + + expect(2); + + var expected = "move", actual, before, after; + + el = $("#draggable2").draggable({ + cursor: expected, + start: function(event, ui) { + actual = getCursor(); + } + }); + + before = getCursor(); + drag("#draggable2", -1, -1); + after = getCursor(); + + equals(actual, expected, "start callback: cursor '" + expected + "'"); + equals(after, before, "after drag: cursor restored"); + +}); + +test("{ cursorAt: { left: -5, top: -5 } }", function() { + + expect(4); + + var dx = -3, dy = -3; + var ox = 5, oy = 5; + var cax = -5, cay = -5; + + var actual = null; + $("#draggable2").draggable({ + cursorAt: { left: cax, top: cay }, + drag: function(event, ui) { + actual = ui.absolutePosition; + } + }); + var el = $("#draggable2").data("draggable").element; + + var before = el.offset(); + var pos = { clientX: before.left + ox, clientY: before.top + oy }; + $("#draggable2").simulate("mousedown", pos); + pos = { clientX: pos.clientX + dx, clientY: pos.clientY + dy }; + $(document).simulate("mousemove", pos); + $(document).simulate("mousemove", pos); + $("#draggable2").simulate("mouseup", pos); + var expected = { + left: before.left + ox - cax + dx, + top: before.top + oy - cay + dy + }; + + equals(actual.left, expected.left, "Absolute: -1px left"); + equals(actual.top, expected.top, "Absolute: -1px top"); + + var actual = null; + $("#draggable1").draggable({ + cursorAt: { left: cax, top: cay }, + drag: function(event, ui) { + actual = ui.absolutePosition; + } + }); + var el = $("#draggable2").data("draggable").element; + + var before = el.offset(); + var pos = { clientX: before.left + ox, clientY: before.top + oy }; + $("#draggable2").simulate("mousedown", pos); + pos = { clientX: pos.clientX + dx, clientY: pos.clientY + dy }; + $(document).simulate("mousemove", pos); + $(document).simulate("mousemove", pos); + $("#draggable2").simulate("mouseup", pos); + var expected = { + left: before.left + ox - cax + dx, + top: before.top + oy - cay + dy + }; + + equals(actual.left, expected.left, "Relative: -1px left"); + equals(actual.top, expected.top, "Relative: -1px top"); + +}); + +test("{ distance: 10 }", function() { + + el = $("#draggable2").draggable({ distance: 10 }); + drag(el, -9, -9); + moved(0, 0, 'distance not met'); + + drag(el, -10, -10); + moved(-10, -10, 'distance met'); + + drag(el, 9, 9); + moved(0, 0, 'distance not met'); + +}); + +test("{ grid: [50, 50] }, relative", function() { + el = $("#draggable1").draggable({ grid: [50, 50] }); + drag(el, 24, 24); + moved(0, 0); + drag(el, 26, 25); + moved(50, 50); +}); + +test("{ grid: [50, 50] }, absolute", function() { + el = $("#draggable2").draggable({ grid: [50, 50] }); + drag(el, 24, 24); + moved(0, 0); + drag(el, 26, 25); + moved(50, 50); +}); + +test("{ handle: 'span' }", function() { + el = $("#draggable2").draggable({ handle: 'span' }); + + drag("#draggable2 span", 50, 50); + moved(50, 50, "drag span"); + + drag("#draggable2", 50, 50); + moved(0, 0, "drag element"); +}); + +test("{ helper: 'clone' }, relative", function() { + el = $("#draggable1").draggable({ helper: "clone" }); + drag(el, 50, 50); + moved(0, 0); +}); + +test("{ helper: 'clone' }, absolute", function() { + el = $("#draggable2").draggable({ helper: "clone" }); + drag(el, 50, 50); + moved(0, 0); +}); + +test("{ opacity: 0.5 }", function() { + + expect(1); + + var opacity = null; + el = $("#draggable2").draggable({ + opacity: 0.5, + start: function(event, ui) { + opacity = $(this).css("opacity"); + } + }); + + drag("#draggable2", -1, -1); + + equals(opacity, 0.5, "start callback: opacity is"); + +}); + +test("{ zIndex: 10 }", function() { + + expect(1); + + var expected = 10, actual; + + var zIndex = null; + el = $("#draggable2").draggable({ + zIndex: expected, + start: function(event, ui) { + actual = $(this).css("zIndex"); + } + }); + + drag("#draggable2", -1, -1); + + equals(actual, expected, "start callback: zIndex is"); + +}); + +module("draggable: Callbacks"); + +test("callbacks occurance count", function() { + + expect(3); + + var start = 0, stop = 0, dragc = 0; + el = $("#draggable2").draggable({ + start: function() { start++; }, + drag: function() { dragc++; }, + stop: function() { stop++; } + }); + + drag(el, 10, 10); + + equals(start, 1, "start callback should happen exactly once"); + equals(dragc, 3, "drag callback should happen exactly once per mousemove"); + equals(stop, 1, "stop callback should happen exactly once"); + +}); + +module("draggable: Scroll offsets"); + + +function testScroll(position) { + $("#main").css('position', position); + drag(el, 50, 50); + moved(50, 50, position+' parent'); + +} + +function setScroll(what) { + if(what) { + $(document).scrollTop(100); $(document).scrollLeft(100); + } else { + $("#main")[0].scrollTop = 100; $("#main")[0].scrollLeft = 100; + } +} + +function restoreScroll(what) { + if(what) { + $(document).scrollTop(0); $(document).scrollLeft(0); + } else { + $("#main")[0].scrollTop = 0; $("#main")[0].scrollLeft = 0; + } +} + +test("{ helper: 'original' }, relative, with scroll offset on parent", function() { + + el = $("#draggable1").draggable({ helper: "original" }); + + setScroll(); + testScroll('relative'); + + setScroll(); + testScroll('static'); + + setScroll(); + testScroll('absolute'); + + restoreScroll(); + +}); + +test("{ helper: 'original' }, relative, with scroll offset on root", function() { + + el = $("#draggable1").draggable({ helper: "original" }); + + setScroll('root'); + testScroll('relative'); + + setScroll('root'); + testScroll('static'); + + setScroll('root'); + testScroll('absolute'); + + restoreScroll('root'); + +}); + +test("{ helper: 'original' }, relative, with scroll offset on root and parent", function() { + + el = $("#draggable1").draggable({ helper: "original" }); + + setScroll(); + setScroll('root'); + testScroll('relative'); + + setScroll(); + setScroll('root'); + testScroll('static'); + + setScroll(); + setScroll('root'); + testScroll('absolute'); + + restoreScroll(); + restoreScroll('root'); + +}); + +test("{ helper: 'original' }, absolute, with scroll offset on parent", function() { + + el = $("#draggable1").css({ position: 'absolute', top: 0, left: 0 }).draggable({ helper: "original" }); + + setScroll(); + testScroll('relative'); + + setScroll(); + testScroll('static'); + + setScroll(); + testScroll('absolute'); + + restoreScroll(); + +}); + +test("{ helper: 'original' }, absolute, with scroll offset on root", function() { + + el = $("#draggable1").css({ position: 'absolute', top: 0, left: 0 }).draggable({ helper: "original" }); + + setScroll('root'); + testScroll('relative'); + + setScroll('root'); + testScroll('static'); + + setScroll('root'); + testScroll('absolute'); + + restoreScroll('root'); + +}); + +test("{ helper: 'original' }, absolute, with scroll offset on root and parent", function() { + + el = $("#draggable1").css({ position: 'absolute', top: 0, left: 0 }).draggable({ helper: "original" }); + + setScroll(); + setScroll('root'); + testScroll('relative'); + + setScroll(); + setScroll('root'); + testScroll('static'); + + setScroll(); + setScroll('root'); + testScroll('absolute'); + + restoreScroll(); + restoreScroll('root'); + +}); + +//Fixed not for IE < 7 +if(!($.browser.msie && $.browser.version < 7)) { + + test("{ helper: 'original' }, fixed, with scroll offset on parent", function() { + + el = $("#draggable1").css({ position: 'fixed', top: 0, left: 0 }).draggable({ helper: "original" }); + + setScroll(); + testScroll('relative'); + + setScroll(); + testScroll('static'); + + setScroll(); + testScroll('absolute'); + + restoreScroll(); + + }); + + test("{ helper: 'original' }, fixed, with scroll offset on root", function() { + + el = $("#draggable1").css({ position: 'fixed', top: 0, left: 0 }).draggable({ helper: "original" }); + + setScroll('root'); + testScroll('relative'); + + setScroll('root'); + testScroll('static'); + + setScroll('root'); + testScroll('absolute'); + + restoreScroll('root'); + + }); + + test("{ helper: 'original' }, fixed, with scroll offset on root and parent", function() { + + el = $("#draggable1").css({ position: 'fixed', top: 0, left: 0 }).draggable({ helper: "original" }); + + setScroll(); + setScroll('root'); + testScroll('relative'); + + setScroll(); + setScroll('root'); + testScroll('static'); + + setScroll(); + setScroll('root'); + testScroll('absolute'); + + restoreScroll(); + restoreScroll('root'); + + }); + +} + + + +test("{ helper: 'clone' }, absolute", function() { + + var helperOffset = null; + var origOffset = $("#draggable1").offset(); + + el = $("#draggable1").draggable({ helper: "clone", drag: function(event, ui) { + helperOffset = ui.helper.offset(); + } }); + + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + +}); + +test("{ helper: 'clone' }, absolute with scroll offset on parent", function() { + + setScroll(); + var helperOffset = null; + var origOffset = null; + + el = $("#draggable1").draggable({ helper: "clone", drag: function(event, ui) { + helperOffset = ui.helper.offset(); + } }); + + $("#main").css('position', 'relative'); + origOffset = $("#draggable1").offset(); + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + $("#main").css('position', 'static'); + origOffset = $("#draggable1").offset(); + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + $("#main").css('position', 'absolute'); + origOffset = $("#draggable1").offset(); + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + restoreScroll(); + +}); + +test("{ helper: 'clone' }, absolute with scroll offset on root", function() { + + setScroll('root'); + var helperOffset = null; + var origOffset = null; + + el = $("#draggable1").draggable({ helper: "clone", drag: function(event, ui) { + helperOffset = ui.helper.offset(); + } }); + + $("#main").css('position', 'relative'); + origOffset = $("#draggable1").offset(); + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + $("#main").css('position', 'static'); + origOffset = $("#draggable1").offset(); + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + $("#main").css('position', 'absolute'); + origOffset = $("#draggable1").offset(); + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + restoreScroll('root'); + +}); + +test("{ helper: 'clone' }, absolute with scroll offset on root and parent", function() { + + setScroll('root'); + setScroll(); + var helperOffset = null; + var origOffset = null; + + el = $("#draggable1").draggable({ helper: "clone", drag: function(event, ui) { + helperOffset = ui.helper.offset(); + } }); + + $("#main").css('position', 'relative'); + origOffset = $("#draggable1").offset() + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + $("#main").css('position', 'static'); + origOffset = $("#draggable1").offset() + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + $("#main").css('position', 'absolute'); + origOffset = $("#draggable1").offset() + drag(el, 1, 1); + same({ top: helperOffset.top-1, left: helperOffset.left-1 }, origOffset, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] '); + + restoreScroll('root'); + restoreScroll(); + +}); + +module("draggable: behaviour"); + +test("Events should not be executed on the element if drag is initiated", function() { + //TODO: Implement missing test +}); + + +module("draggable: Tickets"); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/droppable.html b/sites/all/libraries/jquery.ui/tests/droppable.html new file mode 100644 index 0000000..cd32526 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/droppable.html @@ -0,0 +1,27 @@ + + + + jQuery UI Droppable Test Suite + + + + + + + + + + + + + + + +
        +
        Draggable
        +
        Droppable
        +
         
        +
        + + + diff --git a/sites/all/libraries/jquery.ui/tests/droppable.js b/sites/all/libraries/jquery.ui/tests/droppable.js new file mode 100644 index 0000000..35d34f6 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/droppable.js @@ -0,0 +1,223 @@ +/* + * droppable unit tests + */ +(function($) { +// +// Droppable Test Helper Functions +// + +var defaults = { + accept: null, + activeClass: null, + cssNamespace: "ui", + disabled: false, + greedy: false, + hoverClass: null, + scope: "default", + tolerance: "intersect" +}; + +var el, drg; + +function shouldBeDroppable() { + ok(false, "missing test - should be droppable"); +} + +function shouldNotBeDroppable() { + ok(false, "missing test - should not be droppable"); +} + +// Droppable Tests +module("droppable"); + +test("init", function() { + expect(6); + + $("
        ").appendTo('body').droppable().remove(); + ok(true, '.droppable() called on element'); + + $([]).droppable(); + ok(true, '.droppable() called on empty collection'); + + $("
        ").droppable(); + ok(true, '.droppable() called on disconnected DOMElement'); + + $("
        ").droppable().droppable("foo"); + ok(true, 'arbitrary method called after init'); + + $("
        ").droppable().data("foo.droppable"); + ok(true, 'arbitrary option getter after init'); + + $("
        ").droppable().data("foo.droppable", "bar"); + ok(true, 'arbitrary option setter after init'); +}); + +test("destroy", function() { + expect(6); + + $("
        ").appendTo('body').droppable().droppable("destroy").remove(); + ok(true, '.droppable("destroy") called on element'); + + $([]).droppable().droppable("destroy"); + ok(true, '.droppable("destroy") called on empty collection'); + + $("
        ").droppable().droppable("destroy"); + ok(true, '.droppable("destroy") called on disconnected DOMElement'); + + $("
        ").droppable().droppable("destroy").droppable("foo"); + ok(true, 'arbitrary method called after destroy'); + + $("
        ").droppable().droppable("destroy").data("foo.droppable"); + ok(true, 'arbitrary option getter after destroy'); + + $("
        ").droppable().droppable("destroy").data("foo.droppable", "bar"); + ok(true, 'arbitrary option setter after destroy'); +}); + +test("enable", function() { + expect(6); + el = $("#droppable1").droppable({ disabled: true }); + shouldNotBeDroppable(); + el.droppable("enable"); + shouldBeDroppable(); + equals(el.data("disabled.droppable"), false, "disabled.droppable getter"); + el.droppable("destroy"); + el.droppable({ disabled: true }); + shouldNotBeDroppable(); + el.data("disabled.droppable", false); + equals(el.data("disabled.droppable"), false, "disabled.droppable setter"); + shouldBeDroppable(); +}); + +test("disable", function() { + expect(6); + el = $("#droppable1").droppable({ disabled: false }); + shouldBeDroppable(); + el.droppable("disable"); + shouldNotBeDroppable(); + equals(el.data("disabled.droppable"), true, "disabled.droppable getter"); + el.droppable("destroy"); + el.droppable({ disabled: false }); + shouldBeDroppable(); + el.data("disabled.droppable", true); + equals(el.data("disabled.droppable"), true, "disabled.droppable setter"); + shouldNotBeDroppable(); +}); + +test("element types", function() { + var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' + + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' + + ',acronym,code,samp,kbd,var,img,object,hr' + + ',input,button,label,select,iframe').split(','); + + $.each(typeNames, function(i) { + var typeName = typeNames[i]; + el = $(document.createElement(typeName)).appendTo('body'); + (typeName == 'table' && el.append("content")); + el.droppable(); + shouldBeDroppable(); + el.droppable("destroy"); + el.remove(); + }); +}); + +test("defaults", function() { + el = $("
        ").droppable(); + $.each(defaults, function(key, val) { + var actual = el.data(key + ".droppable"), expected = val; + same(actual, expected, key); + }); + el.remove(); +}); + +test("option setting", function() { + // The plugin shouldn't modify an option value set by the user + $.each(defaults, function(key, val) { + el = $("
        ").droppable(); + el.data(key + ".droppable", val); + var actual = el.data(key + ".droppable"), expected = val; + same(actual, expected, key); + el.remove(); + }); +}); + +module("droppable: Options"); + +test("accept, selector", function() { + ok(false, "missing test"); +}); + +test("accept, fn", function() { + ok(false, "missing test"); +}); + +test("activeClass", function() { + ok(false, "missing test"); +}); + +test("cssNamespace", function() { + //cssNamespace should be appended with '-droppable' and added as className + el = $("
        ").droppable({ cssNamespace: "ui" }); + equals(el[0].className, "ui-droppable"); + el.droppable("destroy"); + + //no className should be added if cssNamepsace is null + el = $("
        ").droppable({ cssNamespace: null }); + equals(el[0].className, ""); + el.droppable("destroy"); +}); + +test("greedy", function() { + ok(false, "missing test"); +}); + +test("hoverClass", function() { + ok(false, "missing test"); +}); + +test("scope", function() { + ok(false, "missing test"); +}); + +test("tolerance, fit", function() { + ok(false, "missing test"); +}); + +test("tolerance, intersect", function() { + ok(false, "missing test"); +}); + +test("tolerance, pointer", function() { + ok(false, "missing test"); +}); + +test("tolerance, touch", function() { + ok(false, "missing test"); +}); + +module("droppable: Callbacks"); + +test("activate", function() { + ok(false, "missing test"); +}); + +test("deactivate", function() { + ok(false, "missing test"); +}); + +test("over", function() { + ok(false, "missing test"); +}); + +test("out", function() { + ok(false, "missing test"); +}); + +test("drop", function() { + ok(false, "missing test"); +}); + +module("droppable: Tickets"); + + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/images/bg.gif b/sites/all/libraries/jquery.ui/tests/images/bg.gif new file mode 100644 index 0000000..43488af Binary files /dev/null and b/sites/all/libraries/jquery.ui/tests/images/bg.gif differ diff --git a/sites/all/libraries/jquery.ui/tests/images/clock.png b/sites/all/libraries/jquery.ui/tests/images/clock.png new file mode 100644 index 0000000..dbb57fa Binary files /dev/null and b/sites/all/libraries/jquery.ui/tests/images/clock.png differ diff --git a/sites/all/libraries/jquery.ui/tests/images/progress-bg.gif b/sites/all/libraries/jquery.ui/tests/images/progress-bg.gif new file mode 100644 index 0000000..1c1abeb Binary files /dev/null and b/sites/all/libraries/jquery.ui/tests/images/progress-bg.gif differ diff --git a/sites/all/libraries/jquery.ui/tests/images/spinner-bg.gif b/sites/all/libraries/jquery.ui/tests/images/spinner-bg.gif new file mode 100644 index 0000000..914b6d1 Binary files /dev/null and b/sites/all/libraries/jquery.ui/tests/images/spinner-bg.gif differ diff --git a/sites/all/libraries/jquery.ui/tests/images/test.jpg b/sites/all/libraries/jquery.ui/tests/images/test.jpg new file mode 100644 index 0000000..7d8ec09 Binary files /dev/null and b/sites/all/libraries/jquery.ui/tests/images/test.jpg differ diff --git a/sites/all/libraries/jquery.ui/tests/plugins/cookie/jquery.cookie.js b/sites/all/libraries/jquery.ui/tests/plugins/cookie/jquery.cookie.js new file mode 100644 index 0000000..38f8054 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/plugins/cookie/jquery.cookie.js @@ -0,0 +1,97 @@ +/** + * Cookie plugin + * + * Copyright (c) 2006 Klaus Hartl (stilbuero.de) + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + */ + +/** + * Create a cookie with the given name and value and other optional parameters. + * + * @example $.cookie('the_cookie', 'the_value'); + * @desc Set the value of a cookie. + * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true }); + * @desc Create a cookie with all available options. + * @example $.cookie('the_cookie', 'the_value'); + * @desc Create a session cookie. + * @example $.cookie('the_cookie', null); + * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain + * used when the cookie was set. + * + * @param String name The name of the cookie. + * @param String value The value of the cookie. + * @param Object options An object literal containing key/value pairs to provide optional cookie attributes. + * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object. + * If a negative value is specified (e.g. a date in the past), the cookie will be deleted. + * If set to null or omitted, the cookie will be a session cookie and will not be retained + * when the the browser exits. + * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie). + * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie). + * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will + * require a secure protocol (like HTTPS). + * @type undefined + * + * @name $.cookie + * @cat Plugins/Cookie + * @author Klaus Hartl/klaus.hartl@stilbuero.de + */ + +/** + * Get the value of a cookie with the given name. + * + * @example $.cookie('the_cookie'); + * @desc Get the value of a cookie. + * + * @param String name The name of the cookie. + * @return The value of the cookie. + * @type String + * + * @name $.cookie + * @cat Plugins/Cookie + * @author Klaus Hartl/klaus.hartl@stilbuero.de + */ +jQuery.cookie = function(name, value, options) { + if (typeof value != 'undefined') { // name and value given, set cookie + options = options || {}; + if (value === null) { + value = ''; + options = $.extend({}, options); // clone object since it's unexpected behavior if the expired property were changed + options.expires = -1; + } + var expires = ''; + if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { + var date; + if (typeof options.expires == 'number') { + date = new Date(); + date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); + } else { + date = options.expires; + } + expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE + } + // NOTE Needed to parenthesize options.path and options.domain + // in the following expressions, otherwise they evaluate to undefined + // in the packed version for some reason... + var path = options.path ? '; path=' + (options.path) : ''; + var domain = options.domain ? '; domain=' + (options.domain) : ''; + var secure = options.secure ? '; secure' : ''; + document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); + } else { // only name given, get cookie + var cookieValue = null; + if (document.cookie && document.cookie != '') { + var cookies = document.cookie.split(';'); + for (var i = 0; i < cookies.length; i++) { + var cookie = jQuery.trim(cookies[i]); + // Does this cookie string begin with the name we want? + if (cookie.substring(0, name.length + 1) == (name + '=')) { + cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); + break; + } + } + } + return cookieValue; + } +}; \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/tests/plugins/cookie/jquery.cookie.min.js b/sites/all/libraries/jquery.ui/tests/plugins/cookie/jquery.cookie.min.js new file mode 100644 index 0000000..35734d5 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/plugins/cookie/jquery.cookie.min.js @@ -0,0 +1,10 @@ +/** + * Cookie plugin + * + * Copyright (c) 2006 Klaus Hartl (stilbuero.de) + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + */ +jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options=$.extend({},options);options.expires=-1;}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires='; expires='+date.toUTCString();}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('q.5=x(k,d,a){4(m d!=\'H\'){a=a||{};4(d===p){d=\'\';a=$.A({},a);a.3=-1}2 g=\'\';4(a.3&&(m a.3==\'u\'||a.3.s)){2 f;4(m a.3==\'u\'){f=F C();f.B(f.z()+(a.3*y*o*o*v))}n{f=a.3}g=\'; 3=\'+f.s()}2 b=a.7?\'; 7=\'+(a.7):\'\';2 e=a.9?\'; 9=\'+(a.9):\'\';2 l=a.t?\'; t\':\'\';6.5=[k,\'=\',L(d),g,b,e,l].K(\'\')}n{2 h=p;4(6.5&&6.5!=\'\'){2 c=6.5.E(\';\');D(2 i=0;i +var equiv = function () { + + var innerEquiv; // the real equiv function + var callers = []; // stack to decide between skip/abort functions + + // Determine what is o. + function hoozit(o) { + if (typeof o === "string") { + return "string"; + + } else if (typeof o === "boolean") { + return "boolean"; + + } else if (typeof o === "number") { + + if (isNaN(o)) { + return "nan"; + } else { + return "number"; + } + + } else if (typeof o === "undefined") { + return "undefined"; + + // consider: typeof null === object + } else if (o === null) { + return "null"; + + // consider: typeof [] === object + } else if (o instanceof Array) { + return "array"; + + // consider: typeof new Date() === object + } else if (o instanceof Date) { + return "date"; + + // consider: /./ instanceof Object; + // /./ instanceof RegExp; + // typeof /./ === "function"; // => false in IE and Opera, + // true in FF and Safari + } else if (o instanceof RegExp) { + return "regexp"; + + } else if (typeof o === "object") { + return "object"; + + } else if (o instanceof Function) { + return "function"; + } + } + + // Call the o related callback with the given arguments. + function bindCallbacks(o, callbacks, args) { + var prop = hoozit(o); + if (prop) { + if (hoozit(callbacks[prop]) === "function") { + return callbacks[prop].apply(callbacks, args); + } else { + return callbacks[prop]; // or undefined + } + } + } + + var callbacks = function () { + + // for string, boolean, number and null + function useStrictEquality(b, a) { + return a === b; + } + + return { + "string": useStrictEquality, + "boolean": useStrictEquality, + "number": useStrictEquality, + "null": useStrictEquality, + "undefined": useStrictEquality, + + "nan": function (b) { + return isNaN(b); + }, + + "date": function (b, a) { + return hoozit(b) === "date" && a.valueOf() === b.valueOf(); + }, + + "regexp": function (b, a) { + return hoozit(b) === "regexp" && + a.source === b.source && // the regex itself + a.global === b.global && // and its modifers (gmi) ... + a.ignoreCase === b.ignoreCase && + a.multiline === b.multiline; + }, + + // - skip when the property is a method of an instance (OOP) + // - abort otherwise, + // initial === would have catch identical references anyway + "function": function () { + var caller = callers[callers.length - 1]; + return caller !== Object && + typeof caller !== "undefined"; + }, + + "array": function (b, a) { + var i; + var len; + + // b could be an object literal here + if ( ! (hoozit(b) === "array")) { + return false; + } + + len = a.length; + if (len !== b.length) { // safe and faster + return false; + } + for (i = 0; i < len; i++) { + if( ! innerEquiv(a[i], b[i])) { + return false; + } + } + return true; + }, + + "object": function (b, a) { + var i; + var eq = true; // unless we can proove it + var aProperties = [], bProperties = []; // collection of strings + + // comparing constructors is more strict than using instanceof + if ( a.constructor !== b.constructor) { + return false; + } + + // stack constructor before traversing properties + callers.push(a.constructor); + + for (i in a) { // be strict: don't ensures hasOwnProperty and go deep + + aProperties.push(i); // collect a's properties + + if ( ! innerEquiv(a[i], b[i])) { + eq = false; + } + } + + callers.pop(); // unstack, we are done + + for (i in b) { + bProperties.push(i); // collect b's properties + } + + // Ensures identical properties name + return eq && innerEquiv(aProperties.sort(), bProperties.sort()); + } + }; + }(); + + innerEquiv = function () { // can take multiple arguments + var args = Array.prototype.slice.apply(arguments); + if (args.length < 2) { + return true; // end transition + } + + return (function (a, b) { + if (a === b) { + return true; // catch the most you can + + } else if (typeof a !== typeof b || a === null || b === null || typeof a === "undefined" || typeof b === "undefined") { + return false; // don't lose time with error prone cases + + } else { + return bindCallbacks(a, callbacks, [b, a]); + } + + // apply transition with (1..n) arguments + })(args[0], args[1]) && arguments.callee.apply(this, args.splice(1, args.length -1)); + }; + + return innerEquiv; +}(); // equiv + +var GETParams = $.map( location.search.slice(1).split('&'), decodeURIComponent ), + ngindex = $.inArray("noglobals", GETParams), + noglobals = ngindex !== -1; + +if( noglobals ) + GETParams.splice( ngindex, 1 ); + +var config = { + stats: { + all: 0, + bad: 0 + }, + queue: [], + // block until document ready + blocking: true, + //restrict modules/tests by get parameters + filters: GETParams, + isLocal: !!(window.location.protocol == 'file:') +}; + +// public API as global methods +$.extend(window, { + test: test, + module: module, + expect: expect, + ok: ok, + equals: equals, + start: start, + stop: stop, + reset: reset, + isLocal: config.isLocal, + same: function(a, b, message) { + push(equiv(a, b), a, b, message); + }, + QUnit: { + equiv: equiv, + ok: ok, + done: function(failures, total){}, + log: function(result, message){} + }, + // legacy methods below + isSet: isSet, + isObj: isObj, + compare: function() { + throw "compare is deprecated - use same() instead"; + }, + compare2: function() { + throw "compare2 is deprecated - use same() instead"; + }, + serialArray: function() { + throw "serialArray is deprecated - use jsDump.parse() instead"; + }, + q: q, + t: t, + url: url, + triggerEvent: triggerEvent +}); + +$(window).load(function() { + $('#userAgent').html(navigator.userAgent); + var head = $('
        ').insertAfter("#userAgent"); + $('').attr("disabled", true).prependTo(head).click(function() { + $('li.pass')[this.checked ? 'hide' : 'show'](); + }); + $('').attr("disabled", true).appendTo(head).click(function() { + $("li.fail:contains('missing test - untested code is broken code')").parent('ol').parent('li.fail')[this.checked ? 'hide' : 'show'](); + }); + $("#filter-missing").after(''); + runTest(); +}); + +function synchronize(callback) { + config.queue.push(callback); + if(!config.blocking) { + process(); + } +} + +function process() { + while(config.queue.length && !config.blocking) { + config.queue.shift()(); + } +} + +function stop(timeout) { + config.blocking = true; + if (timeout) + config.timeout = setTimeout(function() { + QUnit.ok( false, "Test timed out" ); + start(); + }, timeout); +} +function start() { + // A slight delay, to avoid any current callbacks + setTimeout(function() { + if(config.timeout) + clearTimeout(config.timeout); + config.blocking = false; + process(); + }, 13); +} + +function validTest( name ) { + var i = config.filters.length, + run = false; + + if( !i ) + return true; + + while( i-- ){ + var filter = config.filters[i], + not = filter.charAt(0) == '!'; + if( not ) + filter = filter.slice(1); + if( name.indexOf(filter) != -1 ) + return !not; + if( not ) + run = true; + } + return run; +} + +function runTest() { + config.blocking = false; + var started = +new Date; + config.fixture = document.getElementById('main').innerHTML; + config.ajaxSettings = $.ajaxSettings; + synchronize(function() { + $('

        ').html(['Tests completed in ', + +new Date - started, ' milliseconds.
        ', + '', config.stats.bad, ' tests of ', config.stats.all, ' failed.'] + .join('')) + .appendTo("body"); + $("#banner").addClass(config.stats.bad ? "fail" : "pass"); + QUnit.done( config.stats.bad, config.stats.all ); + }); +} + +var pollution; + +function saveGlobal(){ + pollution = [ ]; + + if( noglobals ) + for( var key in window ) + pollution.push(key); +} +function checkPollution( name ){ + var old = pollution; + saveGlobal(); + + if( pollution.length > old.length ){ + ok( false, "Introduced global variable(s): " + diff(old, pollution).join(", ") ); + config.expected++; + } +} + +function diff( clean, dirty ){ + return $.grep( dirty, function(name){ + return $.inArray( name, clean ) == -1; + }); +} + +function test(name, callback) { + if(config.currentModule) + name = config.currentModule + " module: " + name; + var lifecycle = $.extend({ + setup: function() {}, + teardown: function() {} + }, config.moduleLifecycle); + + if ( !validTest(name) ) + return; + + synchronize(function() { + config.assertions = []; + config.expected = null; + try { + if( !pollution ) + saveGlobal(); + lifecycle.setup(); + } catch(e) { + QUnit.ok( false, "Setup failed on " + name + ": " + e.message ); + } + }) + synchronize(function() { + try { + callback(); + } catch(e) { + if( typeof console != "undefined" && console.error && console.warn ) { + console.error("Test " + name + " died, exception and test follows"); + console.error(e); + console.warn(callback.toString()); + } + QUnit.ok( false, "Died on test #" + (config.assertions.length + 1) + ": " + e.message ); + // else next test will carry the responsibility + saveGlobal(); + } + }); + synchronize(function() { + try { + checkPollution(); + lifecycle.teardown(); + } catch(e) { + QUnit.ok( false, "Teardown failed on " + name + ": " + e.message ); + } + }) + synchronize(function() { + try { + reset(); + } catch(e) { + if( typeof console != "undefined" && console.error && console.warn ) { + console.error("reset() failed, following Test " + name + ", exception and reset fn follows"); + console.error(e); + console.warn(reset.toString()); + } + } + + if(config.expected && config.expected != config.assertions.length) { + QUnit.ok( false, "Expected " + config.expected + " assertions, but " + config.assertions.length + " were run" ); + } + + var good = 0, bad = 0; + var ol = $("

          ").hide(); + config.stats.all += config.assertions.length; + for ( var i = 0; i < config.assertions.length; i++ ) { + var assertion = config.assertions[i]; + $("
        1. ").addClass(assertion.result ? "pass" : "fail").text(assertion.message || "(no message)").appendTo(ol); + assertion.result ? good++ : bad++; + } + config.stats.bad += bad; + + var b = $("").html(name + " (" + bad + ", " + good + ", " + config.assertions.length + ")") + .click(function(){ + $(this).next().toggle(); + }) + .dblclick(function(event) { + var target = $(event.target).filter("strong").clone(); + if ( target.length ) { + target.children().remove(); + location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text())); + } + }); + + $("
        2. ").addClass(bad ? "fail" : "pass").append(b).append(ol).appendTo("#tests"); + + if(bad) { + $("#filter-pass").attr("disabled", null); + $("#filter-missing").attr("disabled", null); + } + }); +} + +// call on start of module test to prepend name to all tests +function module(name, lifecycle) { + config.currentModule = name; + config.moduleLifecycle = lifecycle; +} + +/** + * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through. + */ +function expect(asserts) { + config.expected = asserts; +} + +/** + * Resets the test setup. Useful for tests that modify the DOM. + */ +function reset() { + $("#main").html( config.fixture ); + $.event.global = {}; + $.ajaxSettings = $.extend({}, config.ajaxSettings); +} + +/** + * Asserts true. + * @example ok( $("a").size() > 5, "There must be at least 5 anchors" ); + */ +function ok(a, msg) { + QUnit.log(a, msg); + + config.assertions.push({ + result: !!a, + message: msg + }); +} + +/** + * Asserts that two arrays are the same + */ +function isSet(a, b, msg) { + function serialArray( a ) { + var r = []; + + if ( a && a.length ) + for ( var i = 0; i < a.length; i++ ) { + var str = a[i].nodeName; + if ( str ) { + str = str.toLowerCase(); + if ( a[i].id ) + str += "#" + a[i].id; + } else + str = a[i]; + r.push( str ); + } + + return "[ " + r.join(", ") + " ]"; + } + var ret = true; + if ( a && b && a.length != undefined && a.length == b.length ) { + for ( var i = 0; i < a.length; i++ ) + if ( a[i] != b[i] ) + ret = false; + } else + ret = false; + QUnit.ok( ret, !ret ? (msg + " expected: " + serialArray(b) + " result: " + serialArray(a)) : msg ); +} + +/** + * Asserts that two objects are equivalent + */ +function isObj(a, b, msg) { + var ret = true; + + if ( a && b ) { + for ( var i in a ) + if ( a[i] != b[i] ) + ret = false; + + for ( i in b ) + if ( a[i] != b[i] ) + ret = false; + } else + ret = false; + + QUnit.ok( ret, msg ); +} + +/** + * Returns an array of elements with the given IDs, eg. + * @example q("main", "foo", "bar") + * @result [
          , , ] + */ +function q() { + var r = []; + for ( var i = 0; i < arguments.length; i++ ) + r.push( document.getElementById( arguments[i] ) ); + return r; +} + +/** + * Asserts that a select matches the given IDs + * @example t("Check for something", "//[a]", ["foo", "baar"]); + * @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar' + */ +function t(a,b,c) { + var f = $(b); + var s = ""; + for ( var i = 0; i < f.length; i++ ) + s += (s && ",") + '"' + f[i].id + '"'; + isSet(f, q.apply(q,c), a + " (" + b + ")"); +} + +/** + * Add random number to url to stop IE from caching + * + * @example url("data/test.html") + * @result "data/test.html?10538358428943" + * + * @example url("data/test.php?foo=bar") + * @result "data/test.php?foo=bar&10538358345554" + */ +function url(value) { + return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random()*100000); +} + +/** + * Checks that the first two arguments are equal, with an optional message. + * Prints out both actual and expected values. + * + * Prefered to ok( actual == expected, message ) + * + * @example equals( $.format("Received {0} bytes.", 2), "Received 2 bytes." ); + * + * @param Object actual + * @param Object expected + * @param String message (optional) + */ +function equals(actual, expected, message) { + push(expected == actual, actual, expected, message); +} + +function push(result, actual, expected, message) { + message = message || (result ? "okay" : "failed"); + QUnit.ok( result, result ? message + ": " + expected : message + ", expected: " + jsDump.parse(expected) + " result: " + jsDump.parse(actual) ); +} + +/** + * Trigger an event on an element. + * + * @example triggerEvent( document.body, "click" ); + * + * @param DOMElement elem + * @param String type + */ +function triggerEvent( elem, type, event ) { + if ( $.browser.mozilla || $.browser.opera ) { + event = document.createEvent("MouseEvents"); + event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView, + 0, 0, 0, 0, 0, false, false, false, false, 0, null); + elem.dispatchEvent( event ); + } else if ( $.browser.msie ) { + elem.fireEvent("on"+type); + } +} + +})(jQuery); + +/** + * jsDump + * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com + * Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php) + * Date: 5/15/2008 + * @projectDescription Advanced and extensible data dumping for Javascript. + * @version 1.0.0 + * @author Ariel Flesler + * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html} + */ +(function(){ + function quote( str ){ + return '"' + str.toString().replace(/"/g, '\\"') + '"'; + }; + function literal( o ){ + return o + ''; + }; + function join( pre, arr, post ){ + var s = jsDump.separator(), + base = jsDump.indent(); + inner = jsDump.indent(1); + if( arr.join ) + arr = arr.join( ',' + s + inner ); + if( !arr ) + return pre + post; + return [ pre, inner + arr, base + post ].join(s); + }; + function array( arr ){ + var i = arr.length, ret = Array(i); + this.up(); + while( i-- ) + ret[i] = this.parse( arr[i] ); + this.down(); + return join( '[', ret, ']' ); + }; + + var reName = /^function (\w+)/; + + var jsDump = window.jsDump = { + parse:function( obj, type ){//type is used mostly internally, you can fix a (custom)type in advance + var parser = this.parsers[ type || this.typeOf(obj) ]; + type = typeof parser; + + return type == 'function' ? parser.call( this, obj ) : + type == 'string' ? parser : + this.parsers.error; + }, + typeOf:function( obj ){ + var type = typeof obj, + f = 'function';//we'll use it 3 times, save it + return type != 'object' && type != f ? type : + !obj ? 'null' : + obj.exec ? 'regexp' :// some browsers (FF) consider regexps functions + obj.getHours ? 'date' : + obj.scrollBy ? 'window' : + obj.nodeName == '#document' ? 'document' : + obj.nodeName ? 'node' : + obj.item ? 'nodelist' : // Safari reports nodelists as functions + obj.callee ? 'arguments' : + obj.call || obj.constructor != Array && //an array would also fall on this hack + (obj+'').indexOf(f) != -1 ? f : //IE reports functions like alert, as objects + 'length' in obj ? 'array' : + type; + }, + separator:function(){ + return this.multiline ? this.HTML ? '
          ' : '\n' : this.HTML ? ' ' : ' '; + }, + indent:function( extra ){// extra can be a number, shortcut for increasing-calling-decreasing + if( !this.multiline ) + return ''; + var chr = this.indentChar; + if( this.HTML ) + chr = chr.replace(/\t/g,' ').replace(/ /g,' '); + return Array( this._depth_ + (extra||0) ).join(chr); + }, + up:function( a ){ + this._depth_ += a || 1; + }, + down:function( a ){ + this._depth_ -= a || 1; + }, + setParser:function( name, parser ){ + this.parsers[name] = parser; + }, + // The next 3 are exposed so you can use them + quote:quote, + literal:literal, + join:join, + // + _depth_: 1, + // This is the list of parsers, to modify them, use jsDump.setParser + parsers:{ + window: '[Window]', + document: '[Document]', + error:'[ERROR]', //when no parser is found, shouldn't happen + unknown: '[Unknown]', + 'null':'null', + undefined:'undefined', + 'function':function( fn ){ + var ret = 'function', + name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE + if( name ) + ret += ' ' + name; + ret += '('; + + ret = [ ret, this.parse( fn, 'functionArgs' ), '){'].join(''); + return join( ret, this.parse(fn,'functionCode'), '}' ); + }, + array: array, + nodelist: array, + arguments: array, + object:function( map ){ + var ret = [ ]; + this.up(); + for( var key in map ) + ret.push( this.parse(key,'key') + ': ' + this.parse(map[key]) ); + this.down(); + return join( '{', ret, '}' ); + }, + node:function( node ){ + var open = this.HTML ? '<' : '<', + close = this.HTML ? '>' : '>'; + + var tag = node.nodeName.toLowerCase(), + ret = open + tag; + + for( var a in this.DOMAttrs ){ + var val = node[this.DOMAttrs[a]]; + if( val ) + ret += ' ' + a + '=' + this.parse( val, 'attribute' ); + } + return ret + close + open + '/' + tag + close; + }, + functionArgs:function( fn ){//function calls it internally, it's the arguments part of the function + var l = fn.length; + if( !l ) return ''; + + var args = Array(l); + while( l-- ) + args[l] = String.fromCharCode(97+l);//97 is 'a' + return ' ' + args.join(', ') + ' '; + }, + key:quote, //object calls it internally, the key part of an item in a map + functionCode:'[code]', //function calls it internally, it's the content of the function + attribute:quote, //node calls it internally, it's an html attribute value + string:quote, + date:quote, + regexp:literal, //regex + number:literal, + 'boolean':literal + }, + DOMAttrs:{//attributes to dump from nodes, name=>realName + id:'id', + name:'name', + 'class':'className' + }, + HTML:false,//if true, entities are escaped ( <, >, \t, space and \n ) + indentChar:' ',//indentation unit + multiline:true //if true, items in a collection, are separated by a \n, else just a space. + }; + +})(); diff --git a/sites/all/libraries/jquery.ui/tests/qunit/testsuite.css b/sites/all/libraries/jquery.ui/tests/qunit/testsuite.css new file mode 100644 index 0000000..2f5c405 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/qunit/testsuite.css @@ -0,0 +1,120 @@ +body, div, h1 { font-family: 'trebuchet ms', verdana, arial; margin: 0; padding: 0 } +body {font-size: 10pt; } +h1 { padding: 15px; font-size: large; background-color: #06b; color: white; } +h1 a { color: white; } +h2 { padding: 10px; background-color: #eee; color: black; margin: 0; font-size: small; font-weight: normal } + +.pass { color: green; } +.fail { color: red; } +p.result { margin-left: 1em; } + +#banner { height: 2em; border-bottom: 1px solid white; } +h2.pass { background-color: green; } +h2.fail { background-color: red; } + +div.testrunner-toolbar { background: #eee; border-top: 1px solid black; padding: 10px; } + +ol#tests > li > strong { cursor:pointer; } + +div#fx-tests h4 { + background: red; +} + +div#fx-tests h4.pass { + background: green; +} + +div#fx-tests div.box { + background: red url(data/cow.jpg) no-repeat; + overflow: hidden; + border: 2px solid #000; +} + +div#fx-tests div.overflow { + overflow: visible; +} + +div.inline { + display: inline; +} + +div.autoheight { + height: auto; +} + +div.autowidth { + width: auto; +} + +div.autoopacity { + opacity: auto; +} + +div.largewidth { + width: 100px; +} + +div.largeheight { + height: 100px; +} + +div.largeopacity { + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100); +} + +div.medwidth { + width: 50px; +} + +div.medheight { + height: 50px; +} + +div.medopacity { + opacity: 0.5; + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50); +} + +div.nowidth { + width: 0px; +} + +div.noheight { + height: 0px; +} + +div.noopacity { + opacity: 0; + filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); +} + +div.hidden { + display: none; +} + +div#fx-tests div.widewidth { + background-repeat: repeat-x; +} + +div#fx-tests div.wideheight { + background-repeat: repeat-y; +} + +div#fx-tests div.widewidth.wideheight { + background-repeat: repeat; +} + +div#fx-tests div.noback { + background-image: none; +} + +div.chain, div.chain div { width: 100px; height: 20px; position: relative; float: left; } +div.chain div { position: absolute; top: 0px; left: 0px; } + +div.chain.test { background: red; } +div.chain.test div { background: green; } + +div.chain.out { background: green; } +div.chain.out div { background: red; display: none; } + +div#show-tests * { display: none; } diff --git a/sites/all/libraries/jquery.ui/tests/resizable.html b/sites/all/libraries/jquery.ui/tests/resizable.html new file mode 100644 index 0000000..258713e --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/resizable.html @@ -0,0 +1,25 @@ + + + + jQuery UI Resizable Test Suite + + + + + + + + + + + + + + +
          +
          I'm a resizable.
          + +
          + + + diff --git a/sites/all/libraries/jquery.ui/tests/resizable.js b/sites/all/libraries/jquery.ui/tests/resizable.js new file mode 100644 index 0000000..0d6adbd --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/resizable.js @@ -0,0 +1,416 @@ +/* + * resizable tests + */ +(function($) { +// +// Resizable Test Helper Functions +// + +var defaults = { + animate: false, + animateDuration: 'slow', + animateEasing: 'swing', + alsoResize: false, + aspectRatio: false, + autoHide: false, + cancel: ':input', + containment: false, + delay: 0, + disabled: false, + disableSelection: true, + distance: 1, + ghost: false, + grid: false, + handles: '???', + helper: null, + knobHandles: false, + maxHeight: null, + maxWidth: null, + minHeight: 10, + minWidth: 10, + preserveCursor: true, + preventDefault: true, + proportionallyResize: false, + transparent: false +}; + +var drag = function(el, dx, dy, complete) { + + // speed = sync -> Drag syncrhonously. + // speed = fast|slow -> Drag asyncrhonously - animated. + + //this mouseover is to work around a limitation in resizable + //TODO: fix resizable so handle doesn't require mouseover in order to be used + $(el).simulate("mouseover"); + + return $(el).simulate("drag", { + dx: dx||0, dy: dy||0, speed: 'sync', complete: complete + }); +}; + +// Resizable Tests +module("resizable"); + +test("init", function() { + expect(6); + + $("
          ").appendTo('body').resizable().remove(); + ok(true, '.resizable() called on element'); + + $([]).resizable().remove(); + ok(true, '.resizable() called on empty collection'); + + $('
          ').resizable().remove(); + ok(true, '.resizable() called on disconnected DOMElement'); + + $('
          ').resizable().resizable("foo").remove(); + ok(true, 'arbitrary method called after init'); + + el = $('
          ').resizable() + var foo = el.data("foo.resizable"); + el.remove(); + ok(true, 'arbitrary option getter after init'); + + $('
          ').resizable().data("foo.resizable", "bar").remove(); + ok(true, 'arbitrary option setter after init'); +}); + +test("destroy", function() { + expect(6); + + $("
          ").appendTo('body').resizable().resizable("destroy").remove(); + ok(true, '.resizable("destroy") called on element'); + + $([]).resizable().resizable("destroy").remove(); + ok(true, '.resizable("destroy") called on empty collection'); + + $('
          ').resizable().resizable("destroy").remove(); + ok(true, '.resizable("destroy") called on disconnected DOMElement'); + + $('
          ').resizable().resizable("destroy").resizable("foo").remove(); + ok(true, 'arbitrary method called after destroy'); + + el = $('
          ').resizable(); + var foo = el.resizable("destroy").data("foo.resizable"); + el.remove(); + ok(true, 'arbitrary option getter after destroy'); + + $('
          ').resizable().resizable("destroy").data("foo.resizable", "bar").remove(); + ok(true, 'arbitrary option setter after destroy'); +}); + +test("element types", function() { + var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' + + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' + + ',acronym,code,samp,kbd,var,img,object,hr' + + ',input,button,label,select,iframe').split(','); + + $.each(typeNames, function(i) { + var typeName = typeNames[i]; + el = $(document.createElement(typeName)).appendTo('body'); + (typeName == 'table' && el.append("content")); + el.resizable(); + ok(true, '$("<' + typeName + '/>").resizable()'); + el.resizable("destroy"); + el.remove(); + }); +}); + +test("defaults", function() { + el = $('
          ').resizable(); + $.each(defaults, function(key, val) { + var actual = el.data(key + ".resizable"), expected = val; + same(actual, expected, key); + }); + el.remove(); +}); + +test("n", function() { + expect(2); + + var handle = '.ui-resizable-n', target = $('#resizable1').resizable({ handles: 'all' }); + + drag(handle, 0, -50); + equals( target.height(), 150, "compare height" ); + + drag(handle, 0, 50); + equals( target.height(), 100, "compare height" ); +}); + +test("s", function() { + expect(2); + + var handle = '.ui-resizable-s', target = $('#resizable1').resizable({ handles: 'all' }); + + drag(handle, 0, 50); + equals( target.height(), 150, "compare height" ); + + drag(handle, 0, -50); + equals( target.height(), 100, "compare height" ); +}); + +test("e", function() { + expect(2); + + var handle = '.ui-resizable-e', target = $('#resizable1').resizable({ handles: 'all' }); + + drag(handle, 50); + equals( target.width(), 150, "compare width"); + + drag(handle, -50); + equals( target.width(), 100, "compare width" ); +}); + +test("w", function() { + expect(2); + + var handle = '.ui-resizable-w', target = $('#resizable1').resizable({ handles: 'all' }); + + drag(handle, -50); + equals( target.width(), 150, "compare width" ); + + drag(handle, 50); + equals( target.width(), 100, "compare width" ); +}); + +test("ne", function() { + expect(4); + + var handle = '.ui-resizable-ne', target = $('#resizable1').css({ overflow: 'hidden' }).resizable({ handles: 'all' }); + + drag(handle, -50, -50); + equals( target.width(), 50, "compare width" ); + equals( target.height(), 150, "compare height" ); + + drag(handle, 50, 50); + equals( target.width(), 100, "compare width" ); + equals( target.height(), 100, "compare height" ); +}); + +test("se", function() { + expect(4); + + var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ handles: 'all' }); + + drag(handle, 50, 50); + equals( target.width(), 150, "compare width" ); + equals( target.height(), 150, "compare height" ); + + drag(handle, -50, -50); + equals( target.width(), 100, "compare width" ); + equals( target.height(), 100, "compare height" ); +}); + +test("sw", function() { + expect(4); + + var handle = '.ui-resizable-sw', target = $('#resizable1').resizable({ handles: 'all' }); + + drag(handle, -50, -50); + equals( target.width(), 150, "compare width" ); + equals( target.height(), 50, "compare height" ); + + drag(handle, 50, 50); + equals( target.width(), 100, "compare width" ); + equals( target.height(), 100, "compare height" ); +}); + +test("nw", function() { + expect(4); + + var handle = '.ui-resizable-nw', target = $('#resizable1').resizable({ handles: 'all' }); + + drag(handle, -50, -50); + equals( target.width(), 150, "compare width" ); + equals( target.height(), 150, "compare height" ); + + drag(handle, 50, 50); + equals( target.width(), 100, "compare width" ); + equals( target.height(), 100, "compare height" ); +}); + +module("resizable: Options"); + +test("aspectRatio: 'preserve' (e)", function() { + expect(4); + + var handle = '.ui-resizable-e', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); + + drag(handle, 80); + equals( target.width(), 130, "compare maxWidth"); + equals( target.height(), 130, "compare maxHeight"); + + drag(handle, -130); + equals( target.width(), 70, "compare minWidth"); + equals( target.height(), 70, "compare minHeight"); +}); + +test("aspectRatio: 'preserve' (w)", function() { + expect(4); + + var handle = '.ui-resizable-w', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); + + drag(handle, -80); + equals( target.width(), 130, "compare maxWidth"); + equals( target.height(), 130, "compare maxHeight"); + + drag(handle, 130); + equals( target.width(), 70, "compare minWidth"); + equals( target.height(), 70, "compare minHeight"); +}); + +test("aspectRatio: 'preserve' (n)", function() { + expect(4); + + var handle = '.ui-resizable-n', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); + + drag(handle, 0, -80); + equals( target.width(), 130, "compare maxWidth"); + equals( target.height(), 130, "compare maxHeight"); + + drag(handle, 0, 80); + equals( target.width(), 70, "compare minWidth"); + equals( target.height(), 70, "compare minHeight"); +}); + +test("aspectRatio: 'preserve' (s)", function() { + expect(4); + + var handle = '.ui-resizable-s', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); + + drag(handle, 0, 80); + equals( target.width(), 130, "compare maxWidth"); + equals( target.height(), 130, "compare maxHeight"); + + drag(handle, 0, -80); + equals( target.width(), 70, "compare minWidth"); + equals( target.height(), 70, "compare minHeight"); +}); + +test("aspectRatio: 'preserve' (se)", function() { + expect(4); + + var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); + + drag(handle, 80, 80); + equals( target.width(), 130, "compare maxWidth"); + equals( target.height(), 130, "compare maxHeight"); + + drag(handle, -80, -80); + equals( target.width(), 70, "compare minWidth"); + equals( target.height(), 70, "compare minHeight"); +}); + +test("aspectRatio: 'preserve' (sw)", function() { + expect(4); + + var handle = '.ui-resizable-sw', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); + + drag(handle, -80, 80); + equals( target.width(), 130, "compare maxWidth"); + equals( target.height(), 130, "compare maxHeight"); + + drag(handle, 80, -80); + equals( target.width(), 70, "compare minWidth"); + equals( target.height(), 70, "compare minHeight"); +}); + +test("aspectRatio: 'preserve' (ne)", function() { + expect(4); + + var handle = '.ui-resizable-ne', target = $('#resizable1').resizable({ aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }); + + drag(handle, 80, -80); + equals( target.width(), 130, "compare maxWidth"); + equals( target.height(), 130, "compare maxHeight"); + + drag(handle, -80, 80); + equals( target.width(), 70, "compare minWidth"); + equals( target.height(), 70, "compare minHeight"); +}); + +test("grid", function() { + expect(4); + + var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ handles: 'all', grid: [0, 20] }); + + drag(handle, 3, 9); + equals( target.width(), 103, "compare width"); + equals( target.height(), 100, "compare height"); + + drag(handle, 15, 11); + equals( target.width(), 118, "compare width"); + equals( target.height(), 120, "compare height"); +}); + +test("grid (wrapped)", function() { + expect(4); + + var handle = '.ui-resizable-se', target = $('#resizable2').resizable({ handles: 'all', grid: [0, 20] }); + + drag(handle, 3, 9); + equals( target.width(), 103, "compare width"); + equals( target.height(), 100, "compare height"); + + drag(handle, 15, 11); + equals( target.width(), 118, "compare width"); + equals( target.height(), 120, "compare height"); +}); + +test("ui-resizable-se { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { + expect(4); + + var handle = '.ui-resizable-se', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }); + + drag(handle, -50, -50); + equals( target.width(), 60, "compare minWidth" ); + equals( target.height(), 60, "compare minHeight" ); + + drag(handle, 70, 70); + equals( target.width(), 100, "compare maxWidth" ); + equals( target.height(), 100, "compare maxHeight" ); +}); + +test("ui-resizable-sw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { + expect(4); + + var handle = '.ui-resizable-sw', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }); + + drag(handle, 50, -50); + equals( target.width(), 60, "compare minWidth" ); + equals( target.height(), 60, "compare minHeight" ); + + drag(handle, -70, 70); + equals( target.width(), 100, "compare maxWidth" ); + equals( target.height(), 100, "compare maxHeight" ); +}); + +test("ui-resizable-ne { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { + expect(4); + + var handle = '.ui-resizable-ne', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }); + + drag(handle, -50, 50); + equals( target.width(), 60, "compare minWidth" ); + equals( target.height(), 60, "compare minHeight" ); + + drag(handle, 70, -70); + equals( target.width(), 100, "compare maxWidth" ); + equals( target.height(), 100, "compare maxHeight" ); +}); + +test("ui-resizable-nw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() { + expect(4); + + var handle = '.ui-resizable-nw', target = $('#resizable1').resizable({ handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }); + + drag(handle, 70, 70); + equals( target.width(), 60, "compare minWidth" ); + equals( target.height(), 60, "compare minHeight" ); + + drag(handle, -70, -70); + equals( target.width(), 100, "compare maxWidth" ); + equals( target.height(), 100, "compare maxHeight" ); +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/selectable.html b/sites/all/libraries/jquery.ui/tests/selectable.html new file mode 100644 index 0000000..da32ceb --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/selectable.html @@ -0,0 +1,30 @@ + + + + jQuery UI Selectable Test Suite + + + + + + + + + + + + + + +
          +
            +
          • Item 1
          • +
          • Item 2
          • +
          • Item 3
          • +
          • Item 4
          • +
          • Item 5
          • +
          +
          + + + diff --git a/sites/all/libraries/jquery.ui/tests/selectable.js b/sites/all/libraries/jquery.ui/tests/selectable.js new file mode 100644 index 0000000..bad81b1 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/selectable.js @@ -0,0 +1,196 @@ +/* + * selectable unit tests + */ +(function($) { +// +// Selectable Test Helper Functions +// + +var defaults = { + autoRefresh: true, + disabled: false, + filter: '*' +}; + +var el; + +var drag = function(dx, dy) { + var off = el.offset(), pos = { clientX: off.left, clientY: off.top }; + el.simulate("mousedown", pos); + $(document).simulate("mousemove", pos); + pos.clientX += dx; + pos.clientY += dy; + $(document).simulate("mousemove", pos); + $(document).simulate("mouseup", pos); +} + +var border = function(el, side) { return parseInt(el.css('border-' + side + '-width')); } + +var margin = function(el, side) { return parseInt(el.css('margin-' + side)); } + +// Selectable Tests +module("selectable"); + +test("init", function() { + expect(6); + + $("
          ").appendTo('body').selectable().remove(); + ok(true, '.selectable() called on element'); + + $([]).selectable().remove(); + ok(true, '.selectable() called on empty collection'); + + $("
          ").selectable().remove(); + ok(true, '.selectable() called on disconnected DOMElement'); + + $("
          ").selectable().selectable("foo").remove(); + ok(true, 'arbitrary method called after init'); + + el = $("
          ").selectable() + var foo = el.data("foo.selectable"); + el.remove(); + ok(true, 'arbitrary option getter after init'); + + $("
          ").selectable().data("foo.selectable", "bar").remove(); + ok(true, 'arbitrary option setter after init'); +}); + +test("destroy", function() { + expect(6); + + $("
          ").appendTo('body').selectable().selectable("destroy").remove(); + ok(true, '.selectable("destroy") called on element'); + + $([]).selectable().selectable("destroy").remove(); + ok(true, '.selectable("destroy") called on empty collection'); + + $("
          ").selectable().selectable("destroy").remove(); + ok(true, '.selectable("destroy") called on disconnected DOMElement'); + + $("
          ").selectable().selectable("destroy").selectable("foo").remove(); + ok(true, 'arbitrary method called after destroy'); + + el = $("
          ").selectable(); + var foo = el.selectable("destroy").data("foo.selectable"); + el.remove(); + ok(true, 'arbitrary option getter after destroy'); + + $("
          ").selectable().selectable("destroy").data("foo.selectable", "bar").remove(); + ok(true, 'arbitrary option setter after destroy'); +}); + +test("defaults", function() { + el = $('
          ').selectable(); + $.each(defaults, function(key, val) { + var actual = el.data(key + ".selectable"), expected = val; + same(actual, expected, key); + }); + el.remove(); +}); + +module("selectable: Options"); + +test("autoRefresh", function() { + expect(3); + el = $("#selectable1"); + var actual, sel = $("*", el), selected = function() { actual += 1 }; + + actual = 0; + el = $("#selectable1").selectable({ autoRefresh: false, selected: selected }); + sel.hide(); + drag(1000, 1000); + equals(actual, sel.length); + el.selectable("destroy"); + + actual = 0; + sel.show(); + el = $("#selectable1").selectable({ autoRefresh: true, selected: selected }); + sel.hide(); + drag(1000, 1000); + equals(actual, 0); + sel.show(); + drag(1000, 1000); + equals(actual, sel.length); + el.selectable("destroy"); + sel.show(); +}); + +test("filter", function() { + expect(2); + el = $("#selectable1"); + var actual, sel = $("*", el), selected = function() { actual += 1 }; + + actual = 0; + el = $("#selectable1").selectable({ filter: '.special', selected: selected }); + drag(1000, 1000); + ok(sel.length != 1, "this test assumes more than 1 selectee"); + equals(actual, 1); + el.selectable("destroy"); +}); + +module("selectable: Methods"); + +test("disable", function() { + expect(2); + var fired = false; + + el = $("#selectable1"); + el.selectable({ + disabled: false, + start: function() { fired = true; } + }); + el.simulate("drag", 20, 20); + equals(fired, true, "start fired"); + el.selectable("disable"); + fired = false; + el.simulate("drag", 20, 20); + equals(fired, false, "start fired"); + el.selectable("destroy"); +}); + +test("enable", function() { + expect(2); + var fired = false; + + el = $("#selectable1"); + el.selectable({ + disabled: true, + start: function() { fired = true; } + }); + el.simulate("drag", 20, 20); + equals(fired, false, "start fired"); + el.selectable("enable"); + el.simulate("drag", 20, 20); + equals(fired, true, "start fired"); + el.selectable("destroy"); +}); + +module("selectable: Callbacks"); + +test("start", function() { + expect(2); + el = $("#selectable1"); + el.selectable({ + start: function(ev, ui) { + ok(true, "drag fired start callback"); + equals(this, el[0], "context of callback"); + } + }); + el.simulate("drag", 20, 20); +}); + +test("stop", function() { + expect(2); + el = $("#selectable1"); + el.selectable({ + start: function(ev, ui) { + ok(true, "drag fired stop callback"); + equals(this, el[0], "context of callback"); + } + }); + el.simulate("drag", 20, 20); +}); + +module("selectable: Tickets"); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/simulate/jquery.simulate.js b/sites/all/libraries/jquery.ui/tests/simulate/jquery.simulate.js new file mode 100644 index 0000000..bb385a6 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/simulate/jquery.simulate.js @@ -0,0 +1,152 @@ +/* + * jquery.simulate - simulate browser mouse and keyboard events + * + * Copyright (c) 2007 Eduardo Lundgren (eduardolundgren@gmail.com) + * and Richard D. Worth (rdworth@gmail.com) + * + * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. + * + */ + +;(function($) { + +$.fn.extend({ + simulate: function(type, options) { + return this.each(function() { + var opt = $.extend({}, $.simulate.defaults, options || {}); + new $.simulate(this, type, opt); + }); + } +}); + +$.simulate = function(el, type, options) { + this.target = el; + this.options = options; + + if (/^drag$/.test(type)) { + this[type].apply(this, [this.target, options]); + } else { + this.simulateEvent(el, type, options); + } +} + +$.extend($.simulate.prototype, { + simulateEvent: function(el, type, options) { + var evt = this.createEvent(type, options); + this.dispatchEvent(el, type, evt, options); + return evt; + }, + createEvent: function(type, options) { + if (/^mouse(over|out|down|up|move)|(dbl)?click$/.test(type)) { + return this.mouseEvent(type, options); + } else if (/^key(up|down|press)$/.test(type)) { + return this.keyboardEvent(type, options); + } + }, + mouseEvent: function(type, options) { + var evt; + var e = $.extend({ + bubbles: true, cancelable: (type != "mousemove"), view: window, detail: 0, + screenX: 0, screenY: 0, clientX: 0, clientY: 0, + ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, + button: 0, relatedTarget: undefined + }, options); + + var relatedTarget = $(e.relatedTarget)[0]; + + if ($.isFunction(document.createEvent)) { + evt = document.createEvent("MouseEvents"); + evt.initMouseEvent(type, e.bubbles, e.cancelable, e.view, e.detail, + e.screenX, e.screenY, e.clientX, e.clientY, + e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, + e.button, e.relatedTarget || document.body.parentNode); + } else if (document.createEventObject) { + evt = document.createEventObject(); + $.extend(evt, e); + evt.button = { 0:1, 1:4, 2:2 }[evt.button] || evt.button; + } + return evt; + }, + keyboardEvent: function(type, options) { + var evt; + + var e = $.extend({ bubbles: true, cancelable: true, view: window, + ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, + keyCode: 0, charCode: 0 + }, options); + + if ($.isFunction(document.createEvent)) { + try { + evt = document.createEvent("KeyEvents"); + evt.initKeyEvent(type, e.bubbles, e.cancelable, e.view, + e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, + e.keyCode, e.charCode); + } catch(err) { + evt = document.createEvent("Events"); + evt.initEvent(type, e.bubbles, e.cancelable); + $.extend(evt, { view: e.view, + ctrlKey: e.ctrlKey, altKey: e.altKey, shiftKey: e.shiftKey, metaKey: e.metaKey, + keyCode: e.keyCode, charCode: e.charCode + }); + } + } else if (document.createEventObject) { + evt = document.createEventObject(); + $.extend(evt, e); + } + if ($.browser.msie || $.browser.opera) { + evt.keyCode = (e.charCode > 0) ? e.charCode : e.keyCode; + evt.charCode = undefined; + } + return evt; + }, + + dispatchEvent: function(el, type, evt) { + if (el.dispatchEvent) { + el.dispatchEvent(evt); + } else if (el.fireEvent) { + el.fireEvent('on' + type, evt); + } + return evt; + }, + + drag: function(el) { + var self = this, center = this.findCenter(this.target), + options = this.options, x = Math.floor(center.x), y = Math.floor(center.y), + dx = options.dx || 0, dy = options.dy || 0, target = this.target; + var coord = { clientX: x, clientY: y }; + this.simulateEvent(target, "mousedown", coord); + coord = { clientX: x + 1, clientY: y + 1 }; + this.simulateEvent(document, "mousemove", coord); + coord = { clientX: x + dx, clientY: y + dy }; + this.simulateEvent(document, "mousemove", coord); + this.simulateEvent(document, "mousemove", coord); + this.simulateEvent(target, "mouseup", coord); + }, + findCenter: function(el) { + var el = $(this.target), o = el.offset(); + return { + x: o.left + el.outerWidth() / 2, + y: o.top + el.outerHeight() / 2 + }; + } +}); + +$.extend($.simulate, { + defaults: { + speed: 'sync' + }, + VK_TAB: 9, + VK_ENTER: 13, + VK_ESC: 27, + VK_PGUP: 33, + VK_PGDN: 34, + VK_END: 35, + VK_HOME: 36, + VK_LEFT: 37, + VK_UP: 38, + VK_RIGHT: 39, + VK_DOWN: 40 +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/slider.html b/sites/all/libraries/jquery.ui/tests/slider.html new file mode 100644 index 0000000..66fbcba --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/slider.html @@ -0,0 +1,27 @@ + + + + jQuery UI Slider Test Suite + + + + + + + + + + + + + + +
          +
          +
          +
          +
          +
          + + + diff --git a/sites/all/libraries/jquery.ui/tests/slider.js b/sites/all/libraries/jquery.ui/tests/slider.js new file mode 100644 index 0000000..bc0d43a --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/slider.js @@ -0,0 +1,193 @@ +/* + * slider unit tests + */ +(function($) { +// +// Selectable Test Helper Functions +// + +var defaults = { + animate: false, + axis: "???", + handle: ".ui-slider-handle", + handles: "???", + disabled: false, + max: 100, + min: 0, + range: false, + startValue: "???", + stepping: "???", + steps: 0 +}; + +var keyCodes = { + leftArrow: 37, + upArrow: 38, + rightArrow: 39, + downArrow: 40 +}; + +$.each(keyCodes, function(key, val) { + $.fn[key] = function() { + return this.simulate("keydown", { keyCode: val }); + } +}); + +function assertChange(stepping, start, result, action) { + return function() { + expect(1); + var slider = $("#slider3").slider({ + stepping: stepping, + startValue: start, + min: 0, + max: 1000, + change: function(event, ui) { + equals(ui.value, result, "changed to " + ui.value); + } + }); + action.apply(slider); + } +} + +// Slider Tests +module("slider"); + +test("init", function() { + expect(6); + + $("
          ").appendTo('body').slider().remove(); + ok(true, '.slider() called on element'); + + $([]).slider().remove(); + ok(true, '.slider() called on empty collection'); + + $('
          ').slider().remove(); + ok(true, '.slider() called on disconnected DOMElement'); + + $('
          ').slider().slider("foo").remove(); + ok(true, 'arbitrary method called after init'); + + el = $('
          ').slider(); + var foo = el.data("foo.slider"); + el.remove(); + ok(true, 'arbitrary option getter after init'); + + $('
          ').slider().data("foo.slider", "bar").remove(); + ok(true, 'arbitrary option setter after init'); +}); + +test("destroy", function() { + expect(6); + + $("
          ").appendTo('body').slider().slider("destroy").remove(); + ok(true, '.slider("destroy") called on element'); + + $([]).slider().slider("destroy").remove(); + ok(true, '.slider("destroy") called on empty collection'); + + $('
          ').slider().slider("destroy").remove(); + ok(true, '.slider("destroy") called on disconnected DOMElement'); + + $('
          ').slider().slider("destroy").slider("foo").remove(); + ok(true, 'arbitrary method called after destroy'); + + el = $('
          ').slider(); + var foo = el.slider("destroy").data("foo.slider"); + el.remove(); + ok(true, 'arbitrary option getter after destroy'); + + $('
          ').slider().slider("destroy").data("foo.slider", "bar").remove(); + ok(true, 'arbitrary option setter after destroy'); +}); + +test("defaults", function() { + el = $('
          ').slider(); + $.each(defaults, function(key, val) { + var actual = el.data(key + ".slider"), expected = val; + same(actual, expected, key); + }); + el.remove(); +}); + +module("slider: single handle"); + +test("change one step via keydown", assertChange(1, undefined, 1, function() { + this.find("a").rightArrow(); +})) +test("change - 10 steps via keydown", assertChange(10, 20, 10, function() { + this.find("a").leftArrow(); +})) +test("change +10 steps via keydown", assertChange(10, 20, 30, function() { + this.find("a").rightArrow(); +})) + +test("moveTo, absolute value", assertChange(1, 1, 10, function() { + this.slider("moveTo", 10); +})) + +test("moveTo, absolute value as string", assertChange(1, 1, 10, function() { + this.slider("moveTo", "10"); +})) + +test("moveTo, absolute value, below min", assertChange(1, 1, 0, function() { + this.slider("moveTo", -10); +})) + +test("moveTo, relative positive value", assertChange(1, 1, 11, function() { + this.slider("moveTo", "+=10"); +})) + +test("moveTo, relative positive value, above max", assertChange(1, 10, 1000, function() { + this.slider("moveTo", "+=2000"); +})) + +test("moveTo, relative negative value", assertChange(1, 20, 10, function() { + this.slider("moveTo", "-=10"); +})) + +test("options update min/max", function() { + expect(2); + var slider = $("#slider3").slider({ + stepping: 1, + startValue: 1 + }); + slider.slider("moveTo", "-=10"); + equals(slider.slider("value"), 0); + slider.data("min.slider", -10); + slider.slider("moveTo", "-=20"); + equals(slider.slider("value"), -10); +}) + +module("slider: setup and teardown"); + +test("destroy and recreate", function() { + expect(3) + var slider = $("#slider3").slider(); + slider.slider("moveTo", "+=20"); + equals(slider.slider("value"), 20); + slider.slider("destroy"); + + slider.slider("moveTo", "+=30"); + ok(true, "nothing happens after slider is destroyed"); + + slider.slider().slider("moveTo", "30"); + + equals(Math.round(slider.slider("value")), 30); +}) + +test("handle creation", function() { + var slider = $("#slider1"); + equals(slider.children().size(), 0); + slider.slider({ + handles: [ + { start: 0 }, + { start: 10 } + ] + }); + equals(slider.children().size(), 2); + var instance = $.data(slider[0], "slider") + equals(instance.handle.length, 2); + ok(instance.handle.jquery, "handle must be a jquery object") +}) + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/sortable.html b/sites/all/libraries/jquery.ui/tests/sortable.html new file mode 100644 index 0000000..b9713d1 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/sortable.html @@ -0,0 +1,30 @@ + + + + jQuery UI Sortable Test Suite + + + + + + + + + + + + + + +
          +
            +
          • Item 1
          • +
          • Item 2
          • +
          • Item 3
          • +
          • Item 4
          • +
          • Item 5
          • +
          +
          + + + diff --git a/sites/all/libraries/jquery.ui/tests/sortable.js b/sites/all/libraries/jquery.ui/tests/sortable.js new file mode 100644 index 0000000..28cdc5f --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/sortable.js @@ -0,0 +1,148 @@ +/* + * sortable unit tests + */ +(function($) { +// +// Sortable Test Helper Functions +// + +var defaults = { + appendTo: "parent", + cancel: ":input", + delay: 0, + disabled: false, + distance: 1, + dropOnEmpty: true, + helper: "original", + items: "> *", + scroll: true, + scrollSensitivity: 20, + scrollSpeed: 20, + tolerance: "guess", + zIndex: 1000 +}; + +var el, offsetBefore, offsetAfter, dragged; + +var drag = function(handle, dx, dy) { + offsetBefore = $(handle).offset(); + $(handle).simulate("drag", { + dx: dx || 0, + dy: dy || 0 + }); + dragged = { dx: dx, dy: dy }; + offsetAfter = $(handle).offset(); +} + +var sort = function(handle, dx, dy, index, msg) { + drag(handle, dx, dy); + equals($(handle).parent().children().index(handle), index, msg); +} + +var border = function(el, side) { return parseInt(el.css('border-' + side + '-width')); } +var margin = function(el, side) { return parseInt(el.css('margin-' + side)); } + +// Sortable Tests +module("sortable"); + +test("init", function() { + expect(6); + + $("
          ").appendTo('body').sortable().remove(); + ok(true, '.sortable() called on element'); + + $([]).sortable(); + ok(true, '.sortable() called on empty collection'); + + $("
          ").sortable(); + ok(true, '.sortable() called on disconnected DOMElement'); + + $("
          ").sortable().sortable("foo"); + ok(true, 'arbitrary method called after init'); + + $("
          ").sortable().data("foo.sortable"); + ok(true, 'arbitrary option getter after init'); + + $("
          ").sortable().data("foo.sortable", "bar"); + ok(true, 'arbitrary option setter after init'); +}); + +test("destroy", function() { + expect(6); + + $("
          ").appendTo('body').sortable().sortable("destroy").remove(); + ok(true, '.sortable("destroy") called on element'); + + $([]).sortable().sortable("destroy"); + ok(true, '.sortable("destroy") called on empty collection'); + + $("
          ").sortable().sortable("destroy"); + ok(true, '.sortable("destroy") called on disconnected DOMElement'); + + $("
          ").sortable().sortable("destroy").sortable("foo"); + ok(true, 'arbitrary method called after destroy'); + + $("
          ").sortable().sortable("destroy").data("foo.sortable"); + ok(true, 'arbitrary option getter after destroy'); + + $("
          ").sortable().sortable("destroy").data("foo.sortable", "bar"); + ok(true, 'arbitrary option setter after destroy'); +}); + +test("enable", function() { + expect(4); + el = $("#sortable").sortable({ disabled: true }); + + sort($("li", el)[0], 0, 40, 0, '.sortable({ disabled: true })'); + + el.sortable("enable"); + equals(el.data("disabled.sortable"), false, "disabled.sortable getter"); + + el.sortable("destroy"); + el.sortable({ disabled: true }); + el.data("disabled.sortable", false); + equals(el.data("disabled.sortable"), false, "disabled.sortable setter"); + + sort($("li", el)[0], 0, 40, 2, '.data("disabled.sortable", false)'); +}); + +test("disable", function() { + expect(5); + el = $("#sortable").sortable({ disabled: false }); + sort($("li", el)[0], 0, 40, 2, '.sortable({ disabled: false })'); + + el.sortable("disable"); + sort($("li", el)[0], 0, 40, 0, 'disabled.sortable getter'); + + el.sortable("destroy"); + + el.sortable({ disabled: false }); + sort($("li", el)[0], 0, 40, 2, '.sortable({ disabled: false })'); + el.data("disabled.sortable", true); + equals(el.data("disabled.sortable"), true, "disabled.sortable setter"); + sort($("li", el)[0], 0, 40, 0, '.data("disabled.sortable", true)'); +}); + +test("defaults", function() { + el = $('
          ').sortable(); + $.each(defaults, function(key, val) { + var actual = el.data(key + ".sortable"), expected = val; + same(actual, expected, key); + }); + el.remove(); +}); + +test("#3019: Stop fires too early", function() { + + var helper = null; + el = $("#sortable").sortable({ stop: function(event, ui) { + helper = ui.helper; + }}); + + sort($("li", el)[0], 0, 40, 2, 'Dragging the sortable'); + equals(helper, null, "helper should be false"); + +}); + + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/tabs.html b/sites/all/libraries/jquery.ui/tests/tabs.html new file mode 100644 index 0000000..1453f2e --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/tabs.html @@ -0,0 +1,45 @@ + + + + jQuery UI Tabs Test Suite + + + + + + + + + + + + + + + + +
          + +
          +
            +
          • 1
          • +
          • 2
          • +
          • 3
          • +
          +
          +
          +
          +
          +
          +
            +
          • 1
          • +
          • 2
          • +
          +
          +
          +
          + +
          + + + diff --git a/sites/all/libraries/jquery.ui/tests/tabs.js b/sites/all/libraries/jquery.ui/tests/tabs.js new file mode 100644 index 0000000..fa5138f --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/tabs.js @@ -0,0 +1,224 @@ +/* + * tabs unit tests + */ +(function($) { +// +// Tabs Test Helper Functions +// + +var defaults = { + ajaxOptions: null, + cache: false, + cookie: null, + deselectable: false, + deselectableClass: 'ui-tabs-deselectable', + disabled: [], + disabledClass: 'ui-tabs-disabled', + event: 'click', + fx: null, + hideClass: 'ui-tabs-hide', + idPrefix: 'ui-tabs-', + loadingClass: 'ui-tabs-loading', + navClass: 'ui-tabs-nav', + panelClass: 'ui-tabs-panel', + panelTemplate: '
          ', + selectedClass: 'ui-tabs-selected', + spinner: 'Loading…', + tabTemplate: '
        3. #{label}
        4. ' +}; + +var el; + +// need to wait a bit for the pseudo animation... +function defer(defered, ms) { + var queue = defer.queue || (defer.queue = []); + if (!queue.length) stop(); + queue.push(defered); + setTimeout(function() { + queue.shift()(); + if (!queue.length) start(); + }, ms || 100); +} + +module('tabs'); + + test('init', function() { + expect(4); + + var el = $('#tabs1 > ul').tabs(); + ok(true, '.tabs() called on element'); + + el.tabs('destroy').tabs({ selected: 1 }); + equals( el.data('selected.tabs'), 1, 'selected.tabs set' ); + equals( $('li', el).index( $('li.ui-tabs-selected', el) ), 1, 'second tab active'); + equals( $('div', '#tabs1').index( $('div.ui-tabs-hide', '#tabs1') ), 0, 'first panel should be hidden' ); + + }); + + test('destroy', function() { + expect(0); + + }); + + test("defaults", function() { + el = $('#tabs1').tabs(); + $.each(defaults, function(key, val) { + var actual = el.data(key + ".tabs"), expected = val; + same(actual, expected, key); + }); + el.tabs("destroy"); + }); + + test('add', function() { + expect(0); + + }); + + test('remove', function() { + expect(0); + + }); + + test('enable', function() { + expect(0); + + }); + + test('disable', function() { + expect(0); + + }); + + test('select', function() { + expect(0); + + }); + + test('load', function() { + expect(0); + + }); + + test('url', function() { + expect(0); + + }); + + +module('tabs: Options'); + + test('select: null', function() { + expect(3); + + var el = $('#tabs1 > ul'); + + el.tabs({ selected: null }); + equals( el.data('selected.tabs'), null, 'option set' ); + equals( $('li.ui-tabs-selected', el).length, 0, 'all tabs should be deselected' ); + equals( $('div.ui-tabs-hide', '#tabs1').length, 3, 'all panels should be hidden' ); + + // TODO select == null with cookie + // TODO select == null with select method + + }); + + test('deselectable: true', function() { + expect(7); + + var el = $('#tabs1 > ul'); + + el.tabs({ deselectable: true }); + equals( el.data('deselectable.tabs'), true, 'option set' ); + equals( $('li.ui-tabs-deselectable', el).length, 1, 'class "ui-tabs-deselectable" attached once'); + equals( $('li', el).index( $('li.ui-tabs-deselectable', el) ), 0, 'class "ui-tabs-deselectable" attached to first tab'); + + el.tabs('select', 1); + equals( $('li.ui-tabs-deselectable', el).length, 1, 'class "ui-tabs-deselectable" attached once'); + equals( $('li', el).index( $('li.ui-tabs-deselectable', el) ), 1, 'class "ui-tabs-deselectable" attached to second tab'); + + el.tabs('select', 1); + equals( $('li.ui-tabs-deselectable', el).length, 0, 'class "ui-tabs-deselectable" not attached'); + defer(function() { + equals( $('div.ui-tabs-hide', '#tabs1').length, 3, 'all panels should be hidden' ); + }); + + }); + + test('cookie', function() { + expect(5); + + var el = $('#tabs1 > ul'); + var cookieName = 'ui-tabs-' + $.data(el[0]); + $.cookie(cookieName, null); // blank state + var cookie = function() { + return parseInt($.cookie(cookieName), 10); + }; + + el.tabs({ cookie: {} }); + equals(cookie(), 0, 'initial cookie value, no cookie given'); + + el.tabs('destroy'); + el.tabs({ selected: 1, cookie: {} }); + equals(cookie(), 1, 'initial cookie value, given selected'); + + el.tabs('select', 2); + equals(cookie(), 2, 'cookie value after tabs select'); + + el.tabs('destroy'); + $.cookie(cookieName, 1); + el.tabs({ cookie: {} }); + equals(cookie(), 1, 'initial cookie value, from existing cookie'); + + el.tabs('destroy'); + ok($.cookie(cookieName) === null, 'erase cookie after destroy'); + + }); + + +module('tabs: Tickets'); + + test('id containing colon, #????', function() { + expect(4); + + var el = $('#tabs2 > ul').tabs(); + ok( $('div.ui-tabs-panel:eq(0)', '#tabs2').is(':visible'), 'first panel should be visible' ); + ok( $('div.ui-tabs-panel:eq(1)', '#tabs2').is(':hidden'), 'second panel should be hidden' ); + + el.tabs('select', 1).tabs('select', 0); + defer(function() { + ok( $('div.ui-tabs-panel:eq(0)', '#tabs2').is(':visible'), 'first panel should be visible' ); + ok( $('div.ui-tabs-panel:eq(1)', '#tabs2').is(':hidden'), 'second panel should be hidden' ); + }); + + }); + + test('panel containing inline style, #????', function() { + expect(3); + + var inlineStyle = function(property) { + return $('#inline-style')[0].style[property]; + }; + var expected = inlineStyle('height'); + + var el = $('#tabs2 > ul').tabs(); + equals(inlineStyle('height'), expected, 'init should not remove inline style'); + + el.tabs('select', 1); + defer(function() { + equals(inlineStyle('height'), expected, 'show tab should not remove inline style'); + + el.tabs('select', 0); + defer(function() { + equals(inlineStyle('height'), expected, 'hide tab should not remove inline style'); + }); + + }); + + }); + +// test('', function() { +// expect(0); +// +// }); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/testsuite.css b/sites/all/libraries/jquery.ui/tests/testsuite.css new file mode 100644 index 0000000..b511c67 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/testsuite.css @@ -0,0 +1,4 @@ +@import url("qunit/testsuite.css"); +html { border: 0; } +.xerror, .error, .ui-tabs-hide { display: none } +#main { position: absolute; top: -10000px; left: -10000px; } diff --git a/sites/all/libraries/jquery.ui/tests/testsuite.js b/sites/all/libraries/jquery.ui/tests/testsuite.js new file mode 100644 index 0000000..5ae100a --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/testsuite.js @@ -0,0 +1,10 @@ +$(function() { + +$('body').prepend( + '

          ' + document.title + '

          ' + + '' + + '

          ' + + '
            ' +); + +}); diff --git a/sites/all/libraries/jquery.ui/tests/ui.html b/sites/all/libraries/jquery.ui/tests/ui.html new file mode 100644 index 0000000..54b7cd2 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/ui.html @@ -0,0 +1,33 @@ + + + + jQuery UI Test Suite + + + + + + + + + + + + + + + + + + + + + + + +
            + +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/ui.js b/sites/all/libraries/jquery.ui/tests/ui.js new file mode 100644 index 0000000..f9f19da --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/ui.js @@ -0,0 +1,35 @@ +/* + * common UI unit tests + */ +(function($) { + +var plugins = [ + "accordion", + "datepicker", + "dialog", + "draggable", + "droppable", + "resizable", + "selectable", + "slider", + "sortable", + "tabs" +]; + +module("version"); + +test("core", function() { + equals($.ui.version, "@VERSION", "$.ui.version"); +}); + +$(plugins).each(function() { + var pluginName = this; + test(pluginName, function() { + if ($.ui[pluginName]) + equals($.ui[pluginName].version, "@VERSION", "$.ui." + pluginName + ".version"); + else + ok(false, "$.ui." + pluginName + " undefined."); + }); +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/tests/visual/all.css b/sites/all/libraries/jquery.ui/tests/visual/all.css new file mode 100644 index 0000000..38ae396 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/all.css @@ -0,0 +1,80 @@ + +body { margin: 0; padding: 20px; background: #191919; } +ul.plugins { margin: 0; padding: 0; } +ul.plugins li { margin: 0 12px 12px 0; + list-style-type: none; width: 210px; height: 220px; float: left; + color: white; border: 1px solid gray; text-align: center; font-weight: bold; } + +#accordion, #draggable, +#resizable, #selectable, #sortable, #tabs { + margin: 10px; + width: 190px; height: 180px; + text-align: center; + background: #FEA620; color: white; font-weight: bold; +} +#selectable div { + width: 45px; height: 45px; float: left; margin: 6px; + border: 1px solid white; +} +#selectable .ui-selecting { + background: gray; +} +#selectable .ui-selected { + background: black; +} +#sortable div { + width: 45px; height: 45px; float: left; margin: 6px; + border: 1px solid white; +} +#sortable .ui-sortable-helper { + background: black; +} + +.draggable { margin: 10px; width: 32px; height: 30px; float: left; background: #FEA620; } +#droppable { margin: 10px; width: 190px; height: 130px; float: left; border: 1px solid #FEA620; overflow: hidden; } +#droppable .draggable { margin: 7px; } + +.ui-dialog { background-color: #FEA620; } +.ui-dialog .ui-dialog-titlebar { background: black; padding: 0px; height: 28px; _height: 29px; } +.ui-dialog.ui-draggable .ui-dialog-titlebar { cursor: move; } + +.ui-dialog .ui-dialog-titlebar-close { + width: 16px; height: 16px; position: absolute; top: 6px; right: 7px; + cursor: default; color: white; +} + +.ui-dialog .ui-dialog-titlebar-close-hover { color: #FEA620; } + +.ui-dialog .ui-dialog-title { + margin-left: 5px; color: white; font-weight: bold; + position: relative; top: 7px; left: 4px; +} + +.ui-dialog .ui-dialog-content { + margin: 1.2em; +} + +.ui-dialog .ui-dialog-buttonpane { + position: absolute; + bottom: 8px; + right: 12px; + width: 100%; + text-align: right; +} + +.ui-dialog .ui-dialog-buttonpane button { + margin: 6px; +} + +/* Dialog handle styles */ +.ui-dialog .ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: gray !important; border: none !important; } +.ui-dialog .ui-resizable-s { cursor: s-resize; height: 8px; width: 100%; bottom: 0px; left: 0px; background: gray !important; border: none !important; } +.ui-dialog .ui-resizable-e { cursor: e-resize; width: 7px; right: 0px; top: 0px; height: 100%; background: gray !important; border: none !important; } +.ui-dialog .ui-resizable-w { cursor: w-resize; width: 7px; left: 0px; top: 0px; height: 100%; background: gray !important; border: none !important; } +.ui-dialog .ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: gray !important; border: none !important; } +.ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: gray !important; border: none !important; } +.ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: gray !important; border: none !important; } +.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: gray !important; border: none !important; } + +.ui-slider { margin: 10px; background: #FEA620; height: 15px; position: relative; } +.ui-slider-handle { width: 10px; height: 15px; background: white; position: absolute; top: 0px; left: 0px; } diff --git a/sites/all/libraries/jquery.ui/tests/visual/all.html b/sites/all/libraries/jquery.ui/tests/visual/all.html new file mode 100644 index 0000000..23eb00a --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/all.html @@ -0,0 +1,107 @@ + + + + Simple All + + + + + + + + + + + + + + + + + + +
              +
            • + Datepicker +
              + +
              +
            • +
            • + Dialog +
              + +
              +
            • +
            • + Draggable +
              +
            • +
            • + Droppable +
              D
              +
              R
              +
              A
              +
              G
              +
              + DROP +
              +
              +
            • +
            • + Resizable +
              +
            • +
            • + Selectable +
              +
              1
              +
              2
              +
              3
              +
              4
              +
              5
              +
              6
              +
              7
              +
              8
              +
              9
              +
              +
            • +
            • + Slider +
              +
            • +
            • + Sortable +
              +
              C
              +
              I
              +
              G
              +
              F
              +
              D
              +
              H
              +
              A
              +
              E
              +
              B
              +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/datepicker.html b/sites/all/libraries/jquery.ui/tests/visual/datepicker.html new file mode 100644 index 0000000..d3439fd --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/datepicker.html @@ -0,0 +1,28 @@ + + + + Simple Datepicker + + + + + + + + + +
              +
            • + Datepicker +
              + +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/dialog.html b/sites/all/libraries/jquery.ui/tests/visual/dialog.html new file mode 100644 index 0000000..66a3f88 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/dialog.html @@ -0,0 +1,31 @@ + + + + Simple Dialog + + + + + + + + + + +
              +
            • + Dialog +
              + +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/draggable.handle.html b/sites/all/libraries/jquery.ui/tests/visual/draggable.handle.html new file mode 100644 index 0000000..fa58014 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/draggable.handle.html @@ -0,0 +1,27 @@ + + + + Simple Draggable + + + + + + + + +
              +
            • + Draggable +
              + Handle +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/draggable.html b/sites/all/libraries/jquery.ui/tests/visual/draggable.html new file mode 100644 index 0000000..97de964 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/draggable.html @@ -0,0 +1,25 @@ + + + + Simple Draggable + + + + + + + + +
              +
            • + Draggable +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/draggable.scroll.html b/sites/all/libraries/jquery.ui/tests/visual/draggable.scroll.html new file mode 100644 index 0000000..90ec325 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/draggable.scroll.html @@ -0,0 +1,158 @@ + + + + + + + + +jQuery UI Draggable Visual Test + + + + + + + + + + + + +
            +
            (Broken in IE)
            +
            +
            + +
            +
            +
            +
            + +
            +
            Absolute
            +
            +
            + +
            +
            Absolute
            +
            +
            + +
            +
            Fixed
            +
            +
            + +
            +
            Fixed
            +
            +
            + + + +
            +
            +
            Relative
            +
            +
            + +
            + +
            +
            +
            Relative
            +
            +
            +
            + +
            +
            +
            Relative (Broken in IE)
            +
            +
            + +
            + +
            +
            +
            Relative
            +
            +
            +
            + + + +
            +
            +
            Absolute
            +
            +
            + +
            + +
            +
            +
            Absolute
            +
            +
            +
            + +
            +
            +
            Absolute
            +
            +
            + +
            + +
            +
            +
            Absolute
            +
            +
            +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/droppable.html b/sites/all/libraries/jquery.ui/tests/visual/droppable.html new file mode 100644 index 0000000..b891766 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/droppable.html @@ -0,0 +1,39 @@ + + + + Simple Droppable + + + + + + + + + +
              +
            • + Droppable +
              D
              +
              R
              +
              A
              +
              G
              +
              + DROP +
              +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/effects.all.css b/sites/all/libraries/jquery.ui/tests/visual/effects.all.css new file mode 100644 index 0000000..587c646 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/effects.all.css @@ -0,0 +1,49 @@ +body,html { + margin: 0; + padding: 0; + font-size: 12px; + font-family: Arial; + background: #000; +} + +ul.effects { + margin: 0; + padding: 0; +} + +ul.effects li { + margin: 0; + padding: 0; + width: 120px; + height: 100px; + float: left; + margin-top: 20px; + margin-left: 20px; +} + +div.effect { + width: 120px; + height: 100px; + background: #333; + border: 5px outset #aaa; + float: left; + cursor: pointer; + cursor: hand; +} + +div.current { + border: 5px outset #FF0000; + background: #660000; +} + +div.effect p { + color: #eee; + margin: 0px; + padding: 10px; +} + +.ui-effects-transfer { + border: 1px dotted #fff; + background: #666; + opacity: 0.5; +} \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/tests/visual/effects.all.html b/sites/all/libraries/jquery.ui/tests/visual/effects.all.html new file mode 100644 index 0000000..cc1c947 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/effects.all.html @@ -0,0 +1,165 @@ + + + + + Effects Test Suite + + + + + + + + + + + + + + + + + + + + + + +
              + +
            • +
              +

              Blind horizontally

              +
              +
            • + +
            • +
              +

              Blind vertically

              +
              +
            • + +
            • +
              +

              Bounce 3 times

              +
              +
            • + +
            • +
              +

              Clip horizontally

              +
              +
            • + +
            • +
              +

              Clip vertically

              +
              +
            • + +
            • + +
            • + +
            • +
              +

              Drop up

              +
              +
            • + +
            • +
              +

              Drop left

              +
              +
            • + +
            • +
              +

              Drop right

              +
              +
            • + +
            • +
              +

              Explode in 9 pieces

              +
              +
            • + +
            • +
              +

              Explode in 36 pieces

              +
              +
            • + +
            • +
              +

              Fold

              +
              +
            • + +
            • +
              +

              Highlight

              +
              +
            • + +
            • +
              +

              Pulsate 2 times

              +
              +
            • + +
            • +
              +

              Puff

              +
              +
            • + +
            • +
              +

              Scale

              +
              +
            • + +
            • +
              +

              Shake

              +
              +
            • + +
            • +
              +

              Slide down

              +
              +
            • + +
            • +
              +

              Slide up

              +
              +
            • + +
            • +
              +

              Slide left

              +
              +
            • + +
            • +
              +

              Slide right

              +
              +
            • + +
            • +
              +

              Transfer to first element

              +
              +
            • + +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/effects.all.js b/sites/all/libraries/jquery.ui/tests/visual/effects.all.js new file mode 100644 index 0000000..86f29c7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/effects.all.js @@ -0,0 +1,65 @@ +$(document).ready(function() { + + $("div.effect") + .hover(function() { + $(this).addClass("hover"); + }, function() { + $(this).removeClass("hover"); + }) + ; + + + var effect = function(el, n, o) { + + $.extend(o, { + easing: "easeOutQuint" + }); + + $(el).bind("click", function() { + + $(this).addClass("current").hide(n, o, 1000, function() { + var self = this; + window.setTimeout(function() { + $(self).show(n, o, 1000, function() { $(this).removeClass("current"); }); + },500); + }); + }); + + }; + + + effect("#blindHorizontally", "blind", { direction: "horizontal" }); + effect("#blindVertically", "blind", { direction: "vertical" }); + + effect("#bounce3times", "bounce", { times: 3 }); + + effect("#clipHorizontally", "clip", { direction: "horizontal" }); + effect("#clipVertically", "clip", { direction: "vertical" }); + + effect("#dropDown", "drop", { direction: "down" }); + effect("#dropUp", "drop", { direction: "up" }); + effect("#dropLeft", "drop", { direction: "left" }); + effect("#dropRight", "drop", { direction: "right" }); + + effect("#explode9", "explode", { }); + effect("#explode36", "explode", { pieces: 36 }); + + effect("#fold", "fold", { size: 50 }); + + effect("#highlight", "highlight", { }); + + effect("#pulsate", "pulsate", { times: 2 }); + + effect("#puff", "puff", { times: 2 }); + effect("#scale", "scale", { }); + + $("#shake").bind("click", function() { $(this).addClass("current").effect("shake", {}, 100, function() { $(this).removeClass("current"); }); }); + + effect("#slideDown", "slide", { direction: "down" }); + effect("#slideUp", "slide", { direction: "up" }); + effect("#slideLeft", "slide", { direction: "left" }); + effect("#slideRight", "slide", { direction: "right" }); + + $("#transfer").bind("click", function() { $(this).addClass("current").effect("transfer", { to: "div:eq(0)" }, 1000, function() { $(this).removeClass("current"); }); }); + +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/tests/visual/resizable.html b/sites/all/libraries/jquery.ui/tests/visual/resizable.html new file mode 100644 index 0000000..caef95f --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/resizable.html @@ -0,0 +1,26 @@ + + + + Simple Resizable + + + + + + + + + +
              +
            • + Resizable +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/selectable.html b/sites/all/libraries/jquery.ui/tests/visual/selectable.html new file mode 100644 index 0000000..a0f21d0 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/selectable.html @@ -0,0 +1,36 @@ + + + + Simple Selectable + + + + + + + + + +
              +
            • + Selectable +
              +
              1
              +
              2
              +
              3
              +
              4
              +
              5
              +
              6
              +
              7
              +
              8
              +
              9
              +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/slider.html b/sites/all/libraries/jquery.ui/tests/visual/slider.html new file mode 100644 index 0000000..543140d --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/slider.html @@ -0,0 +1,26 @@ + + + + Simple Slider + + + + + + + + + +
              +
            • + Slider +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/sortable.html b/sites/all/libraries/jquery.ui/tests/visual/sortable.html new file mode 100644 index 0000000..d0b6bcb --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/sortable.html @@ -0,0 +1,36 @@ + + + + Simple Sortable + + + + + + + + + +
              +
            • + Sortable +
              +
              C
              +
              I
              +
              G
              +
              F
              +
              D
              +
              H
              +
              A
              +
              E
              +
              B
              +
              +
            • +
            + + + diff --git a/sites/all/libraries/jquery.ui/tests/visual/sortable_massive_scale.html b/sites/all/libraries/jquery.ui/tests/visual/sortable_massive_scale.html new file mode 100644 index 0000000..701b2f9 --- /dev/null +++ b/sites/all/libraries/jquery.ui/tests/visual/sortable_massive_scale.html @@ -0,0 +1,756 @@ + + + + Sortable Visual Test + + + + + + + + + + +
              +
            • Draggable
            • +
            + +
              +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            + +
              +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            + +
              +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            + +
              +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            + +
              +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            • Item 1
            • +
            • Item 2
            • +
            • Item 3
            • +
            • Item 4
            • +
            • Item 5
            • +
            • Item 6
            • +
            • Item 7
            • +
            • Item 8
            • +
            • Item 9
            • +
            • Item 10
            • +
            • Item 11
            • +
            • Item 12
            • +
            • Item 13
            • +
            • Item 14
            • +
            • Item 15
            • +
            • Item 16
            • +
            • Item 17
            • +
            • Item 18
            • +
            • Item 19
            • +
            • Item 20
            • +
            + + \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_arrows_leftright.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_arrows_leftright.gif new file mode 100644 index 0000000..b26780a Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_arrows_leftright.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_arrows_updown.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_arrows_updown.gif new file mode 100644 index 0000000..69eb077 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_arrows_updown.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_close.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_close.gif new file mode 100644 index 0000000..70d0c82 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_close.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_doc.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_doc.gif new file mode 100644 index 0000000..26db434 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_doc.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_folder_closed.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_folder_closed.gif new file mode 100644 index 0000000..4efed68 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_folder_closed.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_folder_open.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_folder_open.gif new file mode 100644 index 0000000..0032ff6 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_folder_open.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_minus.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_minus.gif new file mode 100644 index 0000000..6851f39 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_minus.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_plus.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_plus.gif new file mode 100644 index 0000000..74ac5cb Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_plus.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_resize_se.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_resize_se.gif new file mode 100644 index 0000000..251dc16 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_11x11_icon_resize_se.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_down.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_down.gif new file mode 100644 index 0000000..29c6c70 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_down.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_left.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_left.gif new file mode 100644 index 0000000..9f95efa Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_left.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_right.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_right.gif new file mode 100644 index 0000000..bc02050 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_right.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_up.gif b/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_up.gif new file mode 100644 index 0000000..28169eb Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/222222_7x7_arrow_up.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_arrows_leftright.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_arrows_leftright.gif new file mode 100644 index 0000000..136e626 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_arrows_leftright.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_arrows_updown.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_arrows_updown.gif new file mode 100644 index 0000000..4f00635 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_arrows_updown.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_close.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_close.gif new file mode 100644 index 0000000..390a759 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_close.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_doc.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_doc.gif new file mode 100644 index 0000000..e91c733 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_doc.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_folder_closed.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_folder_closed.gif new file mode 100644 index 0000000..85f0e0b Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_folder_closed.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_folder_open.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_folder_open.gif new file mode 100644 index 0000000..f6414c7 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_folder_open.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_minus.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_minus.gif new file mode 100644 index 0000000..25b3e17 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_minus.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_plus.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_plus.gif new file mode 100644 index 0000000..41d9534 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_11x11_icon_plus.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_down.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_down.gif new file mode 100644 index 0000000..92fdfe0 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_down.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_left.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_left.gif new file mode 100644 index 0000000..cf01ff3 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_left.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_right.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_right.gif new file mode 100644 index 0000000..3190e7a Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_right.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_up.gif b/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_up.gif new file mode 100644 index 0000000..7ae34bf Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/454545_7x7_arrow_up.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_arrows_leftright.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_arrows_leftright.gif new file mode 100644 index 0000000..19f9d6b Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_arrows_leftright.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_arrows_updown.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_arrows_updown.gif new file mode 100644 index 0000000..c10451f Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_arrows_updown.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_close.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_close.gif new file mode 100644 index 0000000..326d015 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_close.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_doc.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_doc.gif new file mode 100644 index 0000000..7d1b5cb Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_doc.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_folder_closed.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_folder_closed.gif new file mode 100644 index 0000000..71bff05 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_folder_closed.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_folder_open.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_folder_open.gif new file mode 100644 index 0000000..33a20b8 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_folder_open.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_minus.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_minus.gif new file mode 100644 index 0000000..777c328 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_minus.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_plus.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_plus.gif new file mode 100644 index 0000000..43531ff Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_11x11_icon_plus.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_down.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_down.gif new file mode 100644 index 0000000..c91731d Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_down.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_left.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_left.gif new file mode 100644 index 0000000..d6c523b Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_left.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_right.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_right.gif new file mode 100644 index 0000000..d65b2ed Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_right.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_up.gif b/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_up.gif new file mode 100644 index 0000000..165666a Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/888888_7x7_arrow_up.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/bg.gif b/sites/all/libraries/jquery.ui/themes/default/images/bg.gif new file mode 100644 index 0000000..43488af Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/bg.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_background.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_background.png new file mode 100644 index 0000000..cf55ffd Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_background.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_hex.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_hex.png new file mode 100644 index 0000000..888f444 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_hex.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_b.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_b.png new file mode 100644 index 0000000..2f99dae Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_b.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_h.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_h.png new file mode 100644 index 0000000..a217e92 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_h.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_s.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_s.png new file mode 100644 index 0000000..7826b41 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_hsb_s.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_indic.gif b/sites/all/libraries/jquery.ui/themes/default/images/custom_indic.gif new file mode 100644 index 0000000..222fb94 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_indic.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_b.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_b.png new file mode 100644 index 0000000..80764e5 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_b.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_g.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_g.png new file mode 100644 index 0000000..fc9778b Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_g.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_r.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_r.png new file mode 100644 index 0000000..91b0cd4 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_rgb_r.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/custom_submit.png b/sites/all/libraries/jquery.ui/themes/default/images/custom_submit.png new file mode 100644 index 0000000..cd202cd Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/custom_submit.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/dadada_40x100_textures_02_glass_75.png b/sites/all/libraries/jquery.ui/themes/default/images/dadada_40x100_textures_02_glass_75.png new file mode 100644 index 0000000..60ba001 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/dadada_40x100_textures_02_glass_75.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/e6e6e6_40x100_textures_02_glass_75.png b/sites/all/libraries/jquery.ui/themes/default/images/e6e6e6_40x100_textures_02_glass_75.png new file mode 100644 index 0000000..a8b7ba3 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/e6e6e6_40x100_textures_02_glass_75.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/ffffff_40x100_textures_02_glass_65.png b/sites/all/libraries/jquery.ui/themes/default/images/ffffff_40x100_textures_02_glass_65.png new file mode 100644 index 0000000..2c16183 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/ffffff_40x100_textures_02_glass_65.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/progress-bg.gif b/sites/all/libraries/jquery.ui/themes/default/images/progress-bg.gif new file mode 100644 index 0000000..1c1abeb Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/progress-bg.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/select.png b/sites/all/libraries/jquery.ui/themes/default/images/select.png new file mode 100644 index 0000000..21213bf Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/select.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/select2.png b/sites/all/libraries/jquery.ui/themes/default/images/select2.png new file mode 100644 index 0000000..2cd2cab Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/select2.png differ diff --git a/sites/all/libraries/jquery.ui/themes/default/images/spinner-bg.gif b/sites/all/libraries/jquery.ui/themes/default/images/spinner-bg.gif new file mode 100644 index 0000000..914b6d1 Binary files /dev/null and b/sites/all/libraries/jquery.ui/themes/default/images/spinner-bg.gif differ diff --git a/sites/all/libraries/jquery.ui/themes/default/ui.all.css b/sites/all/libraries/jquery.ui/themes/default/ui.all.css new file mode 100644 index 0000000..5c380e5 --- /dev/null +++ b/sites/all/libraries/jquery.ui/themes/default/ui.all.css @@ -0,0 +1,551 @@ +/* + * jQuery UI screen structure and presentation + * This CSS file was generated by ThemeRoller, a Filament Group Project for jQuery UI + * Author: Scott Jehl, scott@filamentgroup.com, http://www.filamentgroup.com + * Visit themeroller.com +*/ + + +/* Accordion */ +.ui-accordion { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + font-family: Verdana, Arial, sans-serif; + border-bottom: 1px solid #d3d3d3; +} +.ui-accordion-group { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + border: 1px solid #d3d3d3; + border-bottom: none; +} +.ui-accordion-header { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + cursor: pointer; + background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; +} +.ui-accordion-header a { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + display: block; + font-size: 1.1em; + font-weight: normal; + text-decoration: none; + padding: .5em .5em .5em 1.7em; + color: #555555; + background: url(images/888888_7x7_arrow_right.gif) .5em 50% no-repeat; +} +.ui-accordion-header a:hover { + background: url(images/454545_7x7_arrow_right.gif) .5em 50% no-repeat; + color: #212121; +} +.ui-accordion-header:hover { + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; + color: #212121; +} +.selected .ui-accordion-header, .selected .ui-accordion-header:hover { + background: #ffffff url(images/ffffff_40x100_textures_02_glass_65.png) 0 50% repeat-x; +} +.selected .ui-accordion-header a, .selected .ui-accordion-header a:hover { + color: #222222; + background: url(images/222222_7x7_arrow_down.gif) .5em 50% no-repeat; +} +.ui-accordion-content { + padding: 1.5em 1.7em; + background: #ffffff; + color: #222222; + font-size: 1.1em; +} + + +/* Datepicker */ +/* Main Style Sheet for jQuery UI date picker */ +.ui-datepicker-div, #ui-datepicker-div, .ui-datepicker-inline { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + font-family: Verdana, Arial, sans-serif; + background: #ffffff; + font-size: 1.1em; + border: 4px solid #d3d3d3; + width: 15.5em; + padding: 2.5em .5em .5em .5em; + position: relative; +} +#ui-datepicker-div, .ui-datepicker-div { + z-index: 9999; /*must have*/ + display: none; + background: #ffffff; +} +.ui-datepicker-inline { + float: left; + display: block; +} +.ui-datepicker-control { + display: none; +} +.ui-datepicker-current { + display: none; +} +.ui-datepicker-next, .ui-datepicker-prev { + position: absolute; + left: .5em; + top: .5em; + background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; +} +.ui-datepicker-next { + left: 14.6em; +} +.ui-datepicker-next:hover, .ui-datepicker-prev:hover { + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; +} +.ui-datepicker-next a, .ui-datepicker-prev a { + text-indent: -999999px; + width: 1.3em; + height: 1.4em; + display: block; + font-size: 1em; + background: url(images/888888_7x7_arrow_left.gif) 50% 50% no-repeat; + border: 1px solid #d3d3d3; + cursor: pointer; +} +.ui-datepicker-next a { + background: url(images/888888_7x7_arrow_right.gif) 50% 50% no-repeat; +} +.ui-datepicker-prev a:hover { + background: url(images/454545_7x7_arrow_left.gif) 50% 50% no-repeat; +} +.ui-datepicker-next a:hover { + background: url(images/454545_7x7_arrow_right.gif) 50% 50% no-repeat; +} +.ui-datepicker-prev a:active { + background: url(images/222222_7x7_arrow_left.gif) 50% 50% no-repeat; +} +.ui-datepicker-next a:active { + background: url(images/222222_7x7_arrow_right.gif) 50% 50% no-repeat; +} +.ui-datepicker-header select { + border: 1px solid #d3d3d3; + color: #555555; + background: #e6e6e6; + font-size: 1em; + line-height: 1.4em; + position: absolute; + top: .5em; + margin: 0 !important; + +} +.ui-datepicker-header select.ui-datepicker-new-month { +width: 7em; +left: 2.2em; +} +.ui-datepicker-header select.ui-datepicker-new-year { +width: 5em; +left: 9.4em; +} +table.ui-datepicker { + width: 15.5em; + text-align: right; +} +table.ui-datepicker td a { + padding: .1em .3em .1em 0; + display: block; + color: #555555; + background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; + cursor: pointer; + border: 1px solid #ffffff; +} +table.ui-datepicker td a:hover { + border: 1px solid #999999; + color: #212121; + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; +} +table.ui-datepicker td a:active { + border: 1px solid #dddddd; + color: #222222; + background: #ffffff url(images/ffffff_40x100_textures_02_glass_65.png) 0 50% repeat-x; +} +table.ui-datepicker .ui-datepicker-title-row td { + padding: .3em 0; + text-align: center; + font-size: .9em; + color: #222222; + text-transform: uppercase; + /*border-bottom: 1px solid #d3d3d3;*/ +} +table.ui-datepicker .ui-datepicker-title-row td a { + color: #222222; +} + + + +/* Dialog */ +.ui-dialog { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + font-family: Verdana, Arial, sans-serif; + background: #ffffff; + color: #222222; + border: 4px solid #d3d3d3; + position: relative; +} +.ui-dialog-content { + border: 1px solid #d3d3d3; + background: #ffffff; + color: #222222; +} +.ui-resizable-handle { + position: absolute; + font-size: 0.1px; + z-index: 99999; +} +.ui-resizable .ui-resizable-handle { + display: block; +} +body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ +body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ +.ui-resizable-n { + cursor: n-resize; + height: 7px; + width: 100%; + top: -5px; + left: 0px; +} +.ui-resizable-s { + cursor: s-resize; + height: 7px; + width: 100%; + bottom: -5px; + left: 0px; +} +.ui-resizable-e { + cursor: e-resize; + width: 7px; + right: -5px; + top: 0px; + height: 100%; +} +.ui-resizable-w { + cursor: w-resize; + width: 7px; + left: -5px; + top: 0px; + height: 100%; +} +.ui-resizable-se { + cursor: se-resize; + width: 13px; + height: 13px; + right: 0px; + bottom: 0px; + background: url(images/222222_11x11_icon_resize_se.gif) no-repeat 0 0; +} +.ui-resizable-sw { + cursor: sw-resize; + width: 9px; + height: 9px; + left: 0px; + bottom: 0px; +} +.ui-resizable-nw { + cursor: nw-resize; + width: 9px; + height: 9px; + left: 0px; + top: 0px; +} +.ui-resizable-ne { + cursor: ne-resize; + width: 9px; + height: 9px; + right: 0px; + top: 0px; +} +.ui-dialog-titlebar { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + padding: .5em 1.5em .5em 1em; + color: #555555; + background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; + border-bottom: 1px solid #d3d3d3; + font-size: 1.1em; + font-weight: normal; + position: relative; +} +.ui-dialog-title { + +} +.ui-dialog-titlebar-close { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + background: url(images/888888_11x11_icon_close.gif) 0 0 no-repeat; + position: absolute; + right: 8px; + top: .7em; + width: 11px; + height: 11px; + z-index: 100; +} +.ui-dialog-titlebar-close-hover, .ui-dialog-titlebar-close:hover { + background: url(images/454545_11x11_icon_close.gif) 0 0 no-repeat; +} +.ui-dialog-titlebar-close:active { + background: url(images/222222_11x11_icon_close.gif) 0 0 no-repeat; +} +.ui-dialog-titlebar-close span { + display: none; +} +.ui-dialog-content { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + background: #ffffff; + color: #222222; + padding: 1.5em 1.7em; +} +.ui-dialog-buttonpane { + position: absolute; + bottom: 0; + width: 100%; + text-align: left; + border-top: 1px solid #d3d3d3; + background: ; +} +.ui-dialog-buttonpane button { + margin: .5em 0 .5em 8px; + color: #555555; + background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; + font-size: 1.1em; + border: 1px solid #d3d3d3; + cursor: pointer; + padding: .2em .6em .3em .6em; + line-height: 1.4em; +} +.ui-dialog-buttonpane button:hover { + color: #212121; + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; + border: 1px solid #999999; +} +.ui-dialog-buttonpane button:active { + color: #222222; + background: #ffffff url(images/ffffff_40x100_textures_02_glass_65.png) 0 50% repeat-x; + border: 1px solid #dddddd; +} +.ui-dialog.ui-draggable .ui-dialog-titlebar, +.ui-dialog.ui-draggable .ui-dialog-titlebar { + cursor: move; +} + + +.bold { + color: red !important; +} +.ui-hidden { + left:-10000px; + position:absolute; + top:-10000px; + visibility:hidden; +} + + +/* Resizable */ +/* Note: for resizable styles, use the styles listed above in the dialog section */ + + +/*UI tabs*/ +.ui-tabs-nav { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + font-family: Verdana,Arial,sans-serif; + font-size: 1.1em; + float: left; + position: relative; + z-index: 1; + border-right: 1px solid #d3d3d3; + bottom: -1px; +} +.ui-tabs-nav ul { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; +} +.ui-tabs-nav li { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + float: left; + border: 1px solid #d3d3d3; + border-right: none; +} +.ui-tabs-nav li a { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + float: left; + font-size: 1em; + font-weight: normal; + text-decoration: none; + padding: .5em 1.7em; + color: #555555; + background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; +} +.ui-tabs-nav li a:hover { + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; + color: #212121; +} +.ui-tabs-nav li.ui-tabs-selected { + border-bottom-color: #ffffff; +} +.ui-tabs-nav li.ui-tabs-selected a, .ui-tabs-nav li.ui-tabs-selected a:hover { + background: #ffffff url(images/ffffff_40x100_textures_02_glass_65.png) 0 50% repeat-x; + color: #212121; +} +.ui-tabs-panel { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + font-family: Verdana,Arial,sans-serif; + clear:left; + border: 1px solid #d3d3d3; + background: #ffffff url(images/ffffff_40x100_textures_01_flat_75.png) 0 0 repeat-x; + color: #222222; + padding: 1.5em 1.7em; + font-size: 1.1em; +} +.ui-tabs-hide { + display: none;/* for accessible hiding: position: absolute; left: -99999999px*/; +} + + +/* Slider */ +.ui-slider { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + font-family: Verdana, Arial, sans-serif; + background: #ffffff; + border: 1px solid #d3d3d3; + height: .8em; + position: relative; +} +.ui-slider-handle { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + position: absolute; + z-index: 2; + top: -3px; + width: 1.2em; + height: 1.2em; + background: #ffffff url(images/ffffff_40x100_textures_02_glass_65.png) 0 50% repeat-x; + border: 1px solid #dddddd; +} +.ui-slider-handle:hover { + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; + border: 1px solid #999999; +} +.ui-slider-handle-active, .ui-slider-handle-active:hover { + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; + border: 1px solid #dddddd; +} +.ui-slider-range { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + height: .8em; + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; + position: absolute; + border: 1px solid #d3d3d3; + border-left: 0; + border-right: 0; + top: -1px; + z-index: 1; +} + + +/* +Generic ThemeRoller Classes +>> Make your jQuery Components ThemeRoller-Compatible! +*/ +/*component global class*/ +.ui-component { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; + font-family: Verdana, Arial, sans-serif; + font-size: 1.1em; +} +/*component content styles*/ +.ui-component-content { + border: 1px solid #d3d3d3; + background: #ffffff; + color: #222222; +} +.ui-component-content a { + color: #222222; + text-decoration: underline; +} +/*component states*/ +.ui-default-state { + border: 1px solid #d3d3d3; + background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; + font-weight: normal; + color: #555555 !important; +} +.ui-default-state a { + color: #555555; +} +.ui-default-state:hover, .ui-hover-state { + border: 1px solid #999999; + background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50% repeat-x; + font-weight: normal; + color: #212121 !important; +} +.ui-hover-state a { + color: #212121; +} +.ui-default-state:active, .ui-active-state { + border: 1px solid #dddddd; + background: #ffffff url(images/ffffff_40x100_textures_02_glass_65.png) 0 50% repeat-x; + font-weight: normal; + color: #222222 !important; + outline: none; +} +.ui-active-state a { + color: #222222; + outline: none; +} +/*icons*/ +.ui-arrow-right-default {background: url(images/888888_7x7_arrow_right.gif) no-repeat 50% 50%;} +.ui-arrow-right-default:hover, .ui-arrow-right-hover {background: url(images/454545_7x7_arrow_right.gif) no-repeat 50% 50%;} +.ui-arrow-right-default:active, .ui-arrow-right-active {background: url(images/222222_7x7_arrow_right.gif) no-repeat 50% 50%;} +.ui-arrow-left-default {background: url(images/888888_7x7_arrow_left.gif) no-repeat 50% 50%;} +.ui-arrow-left-default:hover, .ui-arrow-left-hover {background: url(images/454545_7x7_arrow_left.gif) no-repeat 50% 50%;} +.ui-arrow-left-default:active, .ui-arrow-left-active {background: url(images/222222_7x7_arrow_left.gif) no-repeat 50% 50%;} +.ui-arrow-down-default {background: url(images/888888_7x7_arrow_down.gif) no-repeat 50% 50%;} +.ui-arrow-down-default:hover, .ui-arrow-down-hover {background: url(images/454545_7x7_arrow_down.gif) no-repeat 50% 50%;} +.ui-arrow-down-default:active, .ui-arrow-down-active {background: url(images/222222_7x7_arrow_down.gif) no-repeat 50% 50%;} +.ui-arrow-up-default {background: url(images/888888_7x7_arrow_up.gif) no-repeat 50% 50%;} +.ui-arrow-up-default:hover, .ui-arrow-up-hover {background: url(images/454545_7x7_arrow_up.gif) no-repeat 50% 50%;} +.ui-arrow-up-default:active, .ui-arrow-up-active {background: url(images/222222_7x7_arrow_up.gif) no-repeat 50% 50%;} +.ui-close-default {background: url(images/888888_11x11_icon_close.gif) no-repeat 50% 50%;} +.ui-close-default:hover, .ui-close-hover {background: url(images/454545_11x11_icon_close.gif) no-repeat 50% 50%;} +.ui-close-default:active, .ui-close-active {background: url(images/222222_11x11_icon_close.gif) no-repeat 50% 50%;} +.ui-folder-closed-default {background: url(images/888888_11x11_icon_folder_closed.gif) no-repeat 50% 50%;} +.ui-folder-closed-default:hover, .ui-folder-closed-hover {background: url(images/454545_11x11_icon_folder_closed.gif) no-repeat 50% 50%;} +.ui-folder-closed-default:active, .ui-folder-closed-active {background: url(images/222222_11x11_icon_folder_closed.gif) no-repeat 50% 50%;} +.ui-folder-open-default {background: url(images/888888_11x11_icon_folder_open.gif) no-repeat 50% 50%;} +.ui-folder-open-default:hover, .ui-folder-open-hover {background: url(images/454545_11x11_icon_folder_open.gif) no-repeat 50% 50%;} +.ui-folder-open-default:active, .ui-folder-open-active {background: url(images/222222_11x11_icon_folder_open.gif) no-repeat 50% 50%;} +.ui-doc-default {background: url(images/888888_11x11_icon_doc.gif) no-repeat 50% 50%;} +.ui-doc-default:hover, .ui-doc-hover {background: url(images/454545_11x11_icon_doc.gif) no-repeat 50% 50%;} +.ui-doc-default:active, .ui-doc-active {background: url(images/222222_11x11_icon_doc.gif) no-repeat 50% 50%;} +.ui-arrows-leftright-default {background: url(images/888888_11x11_icon_arrows_leftright.gif) no-repeat 50% 50%;} +.ui-arrows-leftright-default:hover, .ui-arrows-leftright-hover {background: url(images/454545_11x11_icon_arrows_leftright.gif) no-repeat 50% 50%;} +.ui-arrows-leftright-default:active, .ui-arrows-leftright-active {background: url(images/222222_11x11_icon_arrows_leftright.gif) no-repeat 50% 50%;} +.ui-arrows-updown-default {background: url(images/888888_11x11_icon_arrows_updown.gif) no-repeat 50% 50%;} +.ui-arrows-updown-default:hover, .ui-arrows-updown-hover {background: url(images/454545_11x11_icon_arrows_updown.gif) no-repeat 50% 50%;} +.ui-arrows-updown-default:active, .ui-arrows-updown-active {background: url(images/222222_11x11_icon_arrows_updown.gif) no-repeat 50% 50%;} +.ui-minus-default {background: url(images/888888_11x11_icon_minus.gif) no-repeat 50% 50%;} +.ui-minus-default:hover, .ui-minus-hover {background: url(images/454545_11x11_icon_minus.gif) no-repeat 50% 50%;} +.ui-minus-default:active, .ui-minus-active {background: url(images/222222_11x11_icon_minus.gif) no-repeat 50% 50%;} +.ui-plus-default {background: url(images/888888_11x11_icon_plus.gif) no-repeat 50% 50%;} +.ui-plus-default:hover, .ui-plus-hover {background: url(images/454545_11x11_icon_plus.gif) no-repeat 50% 50%;} +.ui-plus-default:active, .ui-plus-active {background: url(images/222222_11x11_icon_plus.gif) no-repeat 50% 50%;} +/*hidden elements*/ +.ui-hidden { + display: none;/* for accessible hiding: position: absolute; left: -99999999px*/; +} +.ui-accessible-hidden { + position: absolute; left: -99999999px; +} +/*reset styles*/ +.ui-reset { + /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; +} +/*clearfix class*/ +.ui-clearfix:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} +.ui-clearfix {display: inline-block;} +/* Hides from IE-mac \*/ +* html .ui-clearfix {height: 1%;} +.ui-clearfix {display: block;} +/* End hide from IE-mac */ diff --git a/sites/all/libraries/jquery.ui/themes/default/ui.datepicker.css b/sites/all/libraries/jquery.ui/themes/default/ui.datepicker.css new file mode 100644 index 0000000..d485bc7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/themes/default/ui.datepicker.css @@ -0,0 +1,213 @@ +/* Main Style Sheet for jQuery UI date picker */ +#ui-datepicker-div, .ui-datepicker-inline { + font-family: Arial, Helvetica, sans-serif; + font-size: 14px; + padding: 0; + margin: 0; + background: #ddd; + width: 185px; +} +#ui-datepicker-div { + display: none; + border: 1px solid #777; + z-index: 100; /*must have*/ +} +.ui-datepicker-inline { + float: left; + display: block; + border: 0; +} +.ui-datepicker-rtl { + direction: rtl; +} +.ui-datepicker-dialog { + padding: 5px !important; + border: 4px ridge #ddd !important; +} +.ui-datepicker-disabled { + position: absolute; + z-index: 100; + background-color: white; + opacity: 0.5; +} +button.ui-datepicker-trigger { + width: 25px; +} +img.ui-datepicker-trigger { + margin: 2px; + vertical-align: middle; +} +.ui-datepicker-prompt { + float: left; + padding: 2px; + background: #ddd; + color: #000; +} +* html .ui-datepicker-prompt { + width: 185px; +} +.ui-datepicker-control, .ui-datepicker-links, .ui-datepicker-header, .ui-datepicker { + clear: both; + float: left; + width: 100%; + color: #fff; +} +.ui-datepicker-control { + background: #400; + padding: 2px 0px; +} +.ui-datepicker-links { + background: #000; + padding: 2px 0px; +} +.ui-datepicker-control, .ui-datepicker-links { + font-weight: bold; + font-size: 80%; +} +.ui-datepicker-links label { /* disabled links */ + padding: 2px 5px; + color: #888; +} +.ui-datepicker-clear, .ui-datepicker-prev { + float: left; + width: 34%; +} +.ui-datepicker-rtl .ui-datepicker-clear, .ui-datepicker-rtl .ui-datepicker-prev { + float: right; + text-align: right; +} +.ui-datepicker-current { + float: left; + width: 30%; + text-align: center; +} +.ui-datepicker-close, .ui-datepicker-next { + float: right; + width: 34%; + text-align: right; +} +.ui-datepicker-rtl .ui-datepicker-close, .ui-datepicker-rtl .ui-datepicker-next { + float: left; + text-align: left; +} +.ui-datepicker-header { + padding: 1px 0 3px; + background: #333; + text-align: center; + font-weight: bold; + height: 1.3em; +} +.ui-datepicker-header select { + background: #333; + color: #fff; + border: 0px; + font-weight: bold; +} +.ui-datepicker { + background: #ccc; + text-align: center; + font-size: 100%; +} +.ui-datepicker a { + display: block; + width: 100%; +} +.ui-datepicker-title-row { + background: #777; +} +.ui-datepicker-days-row { + background: #eee; + color: #666; +} +.ui-datepicker-week-col { + background: #777; + color: #fff; +} +.ui-datepicker-days-cell { + color: #000; + border: 1px solid #ddd; +} +.ui-datepicker-days-cell a{ + display: block; +} +.ui-datepicker-week-end-cell { + background: #ddd; +} +.ui-datepicker-title-row .ui-datepicker-week-end-cell { + background: #777; +} +.ui-datepicker-days-cell-over { + background: #fff; + border: 1px solid #777; +} +.ui-datepicker-unselectable { + color: #888; +} +.ui-datepicker-today { + background: #fcc !important; +} +.ui-datepicker-current-day { + background: #999 !important; +} +.ui-datepicker-status { + background: #ddd; + width: 100%; + font-size: 80%; + text-align: center; +} + +/* ________ Datepicker Links _______ + +** Reset link properties and then override them with !important */ +#ui-datepicker-div a, .ui-datepicker-inline a { + cursor: pointer; + margin: 0; + padding: 0; + background: none; + color: #000; +} +.ui-datepicker-inline .ui-datepicker-links a { + padding: 0 5px !important; +} +.ui-datepicker-control a, .ui-datepicker-links a { + padding: 2px 5px !important; + color: #eee !important; +} +.ui-datepicker-title-row a { + color: #eee !important; +} +.ui-datepicker-control a:hover { + background: #fdd !important; + color: #333 !important; +} +.ui-datepicker-links a:hover, .ui-datepicker-title-row a:hover { + background: #ddd !important; + color: #333 !important; +} + +/* ___________ MULTIPLE MONTHS _________*/ + +.ui-datepicker-multi .ui-datepicker { + border: 1px solid #777; +} +.ui-datepicker-one-month { + float: left; + width: 185px; +} +.ui-datepicker-new-row { + clear: left; +} + +/* ___________ IE6 IFRAME FIX ________ */ + +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +} diff --git a/sites/all/libraries/jquery.ui/ui/effects.blind.js b/sites/all/libraries/jquery.ui/ui/effects.blind.js new file mode 100644 index 0000000..b102a58 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.blind.js @@ -0,0 +1,49 @@ +/* + * jQuery UI Effects Blind 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Blind + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.blind = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var direction = o.options.direction || 'vertical'; // Default direction + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper + var ref = (direction == 'vertical') ? 'height' : 'width'; + var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width(); + if(mode == 'show') wrapper.css(ref, 0); // Shift + + // Animation + var animation = {}; + animation[ref] = mode == 'show' ? distance : 0; + + // Animate + wrapper.animate(animation, o.duration, o.options.easing, function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(el[0], arguments); // Callback + el.dequeue(); + }); + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.bounce.js b/sites/all/libraries/jquery.ui/ui/effects.bounce.js new file mode 100644 index 0000000..0f3ac6b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.bounce.js @@ -0,0 +1,78 @@ +/* + * jQuery UI Effects Bounce 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Bounce + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.bounce = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var direction = o.options.direction || 'up'; // Default direction + var distance = o.options.distance || 20; // Default distance + var times = o.options.times || 5; // Default # of times + var speed = o.duration || 250; // Default speed per bounce + if (/show|hide/.test(mode)) props.push('opacity'); // Avoid touching opacity to prevent clearType and PNG issues in IE + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + $.effects.createWrapper(el); // Create Wrapper + var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; + var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; + var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 3 : el.outerWidth({margin:true}) / 3); + if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift + if (mode == 'hide') distance = distance / (times * 2); + if (mode != 'hide') times--; + + // Animate + if (mode == 'show') { // Show Bounce + var animation = {opacity: 1}; + animation[ref] = (motion == 'pos' ? '+=' : '-=') + distance; + el.animate(animation, speed / 2, o.options.easing); + distance = distance / 2; + times--; + }; + for (var i = 0; i < times; i++) { // Bounces + var animation1 = {}, animation2 = {}; + animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance; + animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance; + el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing); + distance = (mode == 'hide') ? distance * 2 : distance / 2; + }; + if (mode == 'hide') { // Last Bounce + var animation = {opacity: 0}; + animation[ref] = (motion == 'pos' ? '-=' : '+=') + distance; + el.animate(animation, speed / 2, o.options.easing, function(){ + el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + } else { + var animation1 = {}, animation2 = {}; + animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance; + animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance; + el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing, function(){ + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + }; + el.queue('fx', function() { el.dequeue(); }); + el.dequeue(); + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.clip.js b/sites/all/libraries/jquery.ui/ui/effects.clip.js new file mode 100644 index 0000000..6ac0276 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.clip.js @@ -0,0 +1,54 @@ +/* + * jQuery UI Effects Clip 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Clip + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.clip = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left','height','width']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var direction = o.options.direction || 'vertical'; // Default direction + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper + var animate = el[0].tagName == 'IMG' ? wrapper : el; + var ref = { + size: (direction == 'vertical') ? 'height' : 'width', + position: (direction == 'vertical') ? 'top' : 'left' + }; + var distance = (direction == 'vertical') ? animate.height() : animate.width(); + if(mode == 'show') { animate.css(ref.size, 0); animate.css(ref.position, distance / 2); } // Shift + + // Animation + var animation = {}; + animation[ref.size] = mode == 'show' ? distance : 0; + animation[ref.position] = mode == 'show' ? 0 : distance / 2; + + // Animate + animate.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(el[0], arguments); // Callback + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.core.js b/sites/all/libraries/jquery.ui/ui/effects.core.js new file mode 100644 index 0000000..603b6c5 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.core.js @@ -0,0 +1,510 @@ +/* + * jQuery UI Effects 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/ + */ +;(function($) { + +$.effects = $.effects || {}; //Add the 'effects' scope + +$.extend($.effects, { + version: "1.6", + save: function(el, set) { + for(var i=0;i
          '); + var wrapper = el.parent(); + if (el.css('position') == 'static'){ + wrapper.css({position: 'relative'}); + el.css({position: 'relative'}); + } else { + var top = el.css('top'); if(isNaN(parseInt(top))) top = 'auto'; + var left = el.css('left'); if(isNaN(parseInt(left))) left = 'auto'; + wrapper.css({ position: el.css('position'), top: top, left: left, zIndex: el.css('z-index') }).show(); + el.css({position: 'relative', top:0, left:0}); + } + wrapper.css(props); + return wrapper; + }, + removeWrapper: function(el) { + if (el.parent().attr('id') == 'fxWrapper') + return el.parent().replaceWith(el); + return el; + }, + setTransition: function(el, list, factor, val) { + val = val || {}; + $.each(list,function(i, x){ + unit = el.cssUnit(x); + if (unit[0] > 0) val[x] = unit[0] * factor + unit[1]; + }); + return val; + }, + animateClass: function(value, duration, easing, callback) { + + var cb = (typeof easing == "function" ? easing : (callback ? callback : null)); + var ea = (typeof easing == "object" ? easing : null); + + return this.each(function() { + + var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || ''; + if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */ + if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; } + + //Let's get a style offset + var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle)); + if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove); + var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle)); + if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove); + + // The main function to form the object for animation + for(var n in newStyle) { + if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */ + && n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */ + && newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */ + && (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */ + && (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */ + ) offset[n] = newStyle[n]; + } + + that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object + // Change style attribute back to original. For stupid IE, we need to clear the damn object. + if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr); + if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove); + if(cb) cb.apply(this, arguments); + }); + + }); + } +}); + +//Extend the methods of jQuery +$.fn.extend({ + //Save old methods + _show: $.fn.show, + _hide: $.fn.hide, + __toggle: $.fn.toggle, + _addClass: $.fn.addClass, + _removeClass: $.fn.removeClass, + _toggleClass: $.fn.toggleClass, + // New ec methods + effect: function(fx,o,speed,callback) { + return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: o || {}, duration: speed, callback: callback }) : null; + }, + show: function() { + if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0]))) + return this._show.apply(this, arguments); + else { + var o = arguments[1] || {}; o['mode'] = 'show'; + return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]); + } + }, + hide: function() { + if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0]))) + return this._hide.apply(this, arguments); + else { + var o = arguments[1] || {}; o['mode'] = 'hide'; + return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]); + } + }, + toggle: function(){ + if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])) || (arguments[0].constructor == Function)) + return this.__toggle.apply(this, arguments); + else { + var o = arguments[1] || {}; o['mode'] = 'toggle'; + return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]); + } + }, + addClass: function(classNames,speed,easing,callback) { + return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames); + }, + removeClass: function(classNames,speed,easing,callback) { + return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames); + }, + toggleClass: function(classNames,speed,easing,callback) { + return speed ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames); + }, + morph: function(remove,add,speed,easing,callback) { + return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]); + }, + switchClass: function() { + return this.morph.apply(this, arguments); + }, + // helper functions + cssUnit: function(key) { + var style = this.css(key), val = []; + $.each( ['em','px','%','pt'], function(i, unit){ + if(style.indexOf(unit) > 0) + val = [parseFloat(style), unit]; + }); + return val; + } +}); + +/* + * jQuery Color Animations + * Copyright 2007 John Resig + * Released under the MIT and GPL licenses. + */ + +// We override the animation for all of these color styles +$.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){ + $.fx.step[attr] = function(fx){ + if ( fx.state == 0 ) { + fx.start = getColor( fx.elem, attr ); + fx.end = getRGB( fx.end ); + } + + fx.elem.style[attr] = "rgb(" + [ + Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0), + Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0), + Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0) + ].join(",") + ")"; + } +}); + +// Color Conversion functions from highlightFade +// By Blair Mitchelmore +// http://jquery.offput.ca/highlightFade/ + +// Parse strings looking for color tuples [255,255,255] +function getRGB(color) { + var result; + + // Check if we're already dealing with an array of colors + if ( color && color.constructor == Array && color.length == 3 ) + return color; + + // Look for rgb(num,num,num) + if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) + return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])]; + + // Look for rgb(num%,num%,num%) + if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)) + return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55]; + + // Look for #a0b1c2 + if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)) + return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)]; + + // Look for #fff + if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)) + return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)]; + + // Look for rgba(0, 0, 0, 0) == transparent in Safari 3 + if (result = /rgba\(0, 0, 0, 0\)/.exec(color)) + return colors['transparent']; + + // Otherwise, we're most likely dealing with a named color + return colors[$.trim(color).toLowerCase()]; +} + +function getColor(elem, attr) { + var color; + + do { + color = $.curCSS(elem, attr); + + // Keep going until we find an element that has color, or we hit the body + if ( color != '' && color != 'transparent' || $.nodeName(elem, "body") ) + break; + + attr = "backgroundColor"; + } while ( elem = elem.parentNode ); + + return getRGB(color); +}; + +// Some named colors to work with +// From Interface by Stefan Petre +// http://interface.eyecon.ro/ + +var colors = { + aqua:[0,255,255], + azure:[240,255,255], + beige:[245,245,220], + black:[0,0,0], + blue:[0,0,255], + brown:[165,42,42], + cyan:[0,255,255], + darkblue:[0,0,139], + darkcyan:[0,139,139], + darkgrey:[169,169,169], + darkgreen:[0,100,0], + darkkhaki:[189,183,107], + darkmagenta:[139,0,139], + darkolivegreen:[85,107,47], + darkorange:[255,140,0], + darkorchid:[153,50,204], + darkred:[139,0,0], + darksalmon:[233,150,122], + darkviolet:[148,0,211], + fuchsia:[255,0,255], + gold:[255,215,0], + green:[0,128,0], + indigo:[75,0,130], + khaki:[240,230,140], + lightblue:[173,216,230], + lightcyan:[224,255,255], + lightgreen:[144,238,144], + lightgrey:[211,211,211], + lightpink:[255,182,193], + lightyellow:[255,255,224], + lime:[0,255,0], + magenta:[255,0,255], + maroon:[128,0,0], + navy:[0,0,128], + olive:[128,128,0], + orange:[255,165,0], + pink:[255,192,203], + purple:[128,0,128], + violet:[128,0,128], + red:[255,0,0], + silver:[192,192,192], + white:[255,255,255], + yellow:[255,255,0], + transparent: [255,255,255] +}; + +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +$.easing.jswing = $.easing.swing; + +$.extend($.easing, +{ + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert($.easing.default); + return $.easing[$.easing.def](x, t, b, c, d); + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return $.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.drop.js b/sites/all/libraries/jquery.ui/ui/effects.drop.js new file mode 100644 index 0000000..e101421 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.drop.js @@ -0,0 +1,50 @@ +/* + * jQuery UI Effects Drop 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Drop + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.drop = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left','opacity']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var direction = o.options.direction || 'left'; // Default Direction + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + $.effects.createWrapper(el); // Create Wrapper + var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; + var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; + var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 2 : el.outerWidth({margin:true}) / 2); + if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift + + // Animation + var animation = {opacity: mode == 'show' ? 1 : 0}; + animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance; + + // Animate + el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.explode.js b/sites/all/libraries/jquery.ui/ui/effects.explode.js new file mode 100644 index 0000000..406d49e --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.explode.js @@ -0,0 +1,79 @@ +/* + * jQuery UI Effects Explode 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Explode + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.explode = function(o) { + + return this.queue(function() { + + var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3; + var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3; + + o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode; + var el = $(this).show().css('visibility', 'hidden'); + var offset = el.offset(); + + //Substract the margins - not fixing the problem yet. + offset.top -= parseInt(el.css("marginTop")) || 0; + offset.left -= parseInt(el.css("marginLeft")) || 0; + + var width = el.outerWidth(true); + var height = el.outerHeight(true); + + for(var i=0;i
          ') + .css({ + position: 'absolute', + visibility: 'visible', + left: -j*(width/cells), + top: -i*(height/rows) + }) + .parent() + .addClass('effects-explode') + .css({ + position: 'absolute', + overflow: 'hidden', + width: width/cells, + height: height/rows, + left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? (j-Math.floor(cells/2))*(width/cells) : 0), + top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? (i-Math.floor(rows/2))*(height/rows) : 0), + opacity: o.options.mode == 'show' ? 0 : 1 + }).animate({ + left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? 0 : (j-Math.floor(cells/2))*(width/cells)), + top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? 0 : (i-Math.floor(rows/2))*(height/rows)), + opacity: o.options.mode == 'show' ? 1 : 0 + }, o.duration || 500); + } + } + + // Set a timeout, to call the callback approx. when the other animations have finished + setTimeout(function() { + + o.options.mode == 'show' ? el.css({ visibility: 'visible' }) : el.css({ visibility: 'visible' }).hide(); + if(o.callback) o.callback.apply(el[0]); // Callback + el.dequeue(); + + $('.effects-explode').remove(); + + }, o.duration || 500); + + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.fold.js b/sites/all/libraries/jquery.ui/ui/effects.fold.js new file mode 100644 index 0000000..9640f90 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.fold.js @@ -0,0 +1,55 @@ +/* + * jQuery UI Effects Fold 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Fold + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.fold = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var size = o.options.size || 15; // Default fold size + var horizFirst = !(!o.options.horizFirst); // Ensure a boolean value + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper + var widthFirst = ((mode == 'show') != horizFirst); + var ref = widthFirst ? ['width', 'height'] : ['height', 'width']; + var distance = widthFirst ? [wrapper.width(), wrapper.height()] : [wrapper.height(), wrapper.width()]; + var percent = /([0-9]+)%/.exec(size); + if(percent) size = parseInt(percent[1]) / 100 * distance[mode == 'hide' ? 0 : 1]; + if(mode == 'show') wrapper.css(horizFirst ? {height: 0, width: size} : {height: size, width: 0}); // Shift + + // Animation + var animation1 = {}, animation2 = {}; + animation1[ref[0]] = mode == 'show' ? distance[0] : size; + animation2[ref[1]] = mode == 'show' ? distance[1] : 0; + + // Animate + wrapper.animate(animation1, o.duration / 2, o.options.easing) + .animate(animation2, o.duration / 2, o.options.easing, function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(el[0], arguments); // Callback + el.dequeue(); + }); + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.highlight.js b/sites/all/libraries/jquery.ui/ui/effects.highlight.js new file mode 100644 index 0000000..5b9783b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.highlight.js @@ -0,0 +1,48 @@ +/* + * jQuery UI Effects Highlight 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Highlight + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.highlight = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['backgroundImage','backgroundColor','opacity']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode + var color = o.options.color || "#ffff99"; // Default highlight color + var oldColor = el.css("backgroundColor"); + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + el.css({backgroundImage: 'none', backgroundColor: color}); // Shift + + // Animation + var animation = {backgroundColor: oldColor }; + if (mode == "hide") animation['opacity'] = 0; + + // Animate + el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == "hide") el.hide(); + $.effects.restore(el, props); + if (mode == "show" && $.browser.msie) this.style.removeAttribute('filter'); + if(o.callback) o.callback.apply(this, arguments); + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.pulsate.js b/sites/all/libraries/jquery.ui/ui/effects.pulsate.js new file mode 100644 index 0000000..3e0d410 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.pulsate.js @@ -0,0 +1,55 @@ +/* + * jQuery UI Effects Pulsate 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Pulsate + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.pulsate = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this); + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode + var times = o.options.times || 5; // Default # of times + + // Adjust + if (mode == 'hide') times--; + if (el.is(':hidden')) { // Show fadeIn + el.css('opacity', 0); + el.show(); // Show + el.animate({opacity: 1}, o.duration / 2, o.options.easing); + times = times-2; + } + + // Animate + for (var i = 0; i < times; i++) { // Pulsate + el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing); + }; + if (mode == 'hide') { // Last Pulse + el.animate({opacity: 0}, o.duration / 2, o.options.easing, function(){ + el.hide(); // Hide + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + } else { + el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing, function(){ + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + }; + el.queue('fx', function() { el.dequeue(); }); + el.dequeue(); + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.scale.js b/sites/all/libraries/jquery.ui/ui/effects.scale.js new file mode 100644 index 0000000..0bdec4c --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.scale.js @@ -0,0 +1,180 @@ +/* + * jQuery UI Effects Scale 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Scale + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.puff = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this); + + // Set options + var options = $.extend(true, {}, o.options); + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var percent = parseInt(o.options.percent) || 150; // Set default puff percent + options.fade = true; // It's not a puff if it doesn't fade! :) + var original = {height: el.height(), width: el.width()}; // Save original + + // Adjust + var factor = percent / 100; + el.from = (mode == 'hide') ? original : {height: original.height * factor, width: original.width * factor}; + + // Animation + options.from = el.from; + options.percent = (mode == 'hide') ? percent : 100; + options.mode = mode; + + // Animate + el.effect('scale', options, o.duration, o.callback); + el.dequeue(); + }); + +}; + +$.effects.scale = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this); + + // Set options + var options = $.extend(true, {}, o.options); + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var percent = parseInt(o.options.percent) || (parseInt(o.options.percent) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent + var direction = o.options.direction || 'both'; // Set default axis + var origin = o.options.origin; // The origin of the scaling + if (mode != 'effect') { // Set default origin and restore for show/hide + options.origin = origin || ['middle','center']; + options.restore = true; + } + var original = {height: el.height(), width: el.width()}; // Save original + el.from = o.options.from || (mode == 'show' ? {height: 0, width: 0} : original); // Default from state + + // Adjust + var factor = { // Set scaling factor + y: direction != 'horizontal' ? (percent / 100) : 1, + x: direction != 'vertical' ? (percent / 100) : 1 + }; + el.to = {height: original.height * factor.y, width: original.width * factor.x}; // Set to state + + if (o.options.fade) { // Fade option to support puff + if (mode == 'show') {el.from.opacity = 0; el.to.opacity = 1;}; + if (mode == 'hide') {el.from.opacity = 1; el.to.opacity = 0;}; + }; + + // Animation + options.from = el.from; options.to = el.to; options.mode = mode; + + // Animate + el.effect('size', options, o.duration, o.callback); + el.dequeue(); + }); + +}; + +$.effects.size = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left','width','height','overflow','opacity']; + var props1 = ['position','top','left','overflow','opacity']; // Always restore + var props2 = ['width','height','overflow']; // Copy for children + var cProps = ['fontSize']; + var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom']; + var hProps = ['borderLeftWidth', 'borderRightWidth', 'paddingLeft', 'paddingRight']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var restore = o.options.restore || false; // Default restore + var scale = o.options.scale || 'both'; // Default scale mode + var origin = o.options.origin; // The origin of the sizing + var original = {height: el.height(), width: el.width()}; // Save original + el.from = o.options.from || original; // Default from state + el.to = o.options.to || original; // Default to state + // Adjust + if (origin) { // Calculate baseline shifts + var baseline = $.effects.getBaseline(origin, original); + el.from.top = (original.height - el.from.height) * baseline.y; + el.from.left = (original.width - el.from.width) * baseline.x; + el.to.top = (original.height - el.to.height) * baseline.y; + el.to.left = (original.width - el.to.width) * baseline.x; + }; + var factor = { // Set scaling factor + from: {y: el.from.height / original.height, x: el.from.width / original.width}, + to: {y: el.to.height / original.height, x: el.to.width / original.width} + }; + if (scale == 'box' || scale == 'both') { // Scale the css box + if (factor.from.y != factor.to.y) { // Vertical props scaling + props = props.concat(vProps); + el.from = $.effects.setTransition(el, vProps, factor.from.y, el.from); + el.to = $.effects.setTransition(el, vProps, factor.to.y, el.to); + }; + if (factor.from.x != factor.to.x) { // Horizontal props scaling + props = props.concat(hProps); + el.from = $.effects.setTransition(el, hProps, factor.from.x, el.from); + el.to = $.effects.setTransition(el, hProps, factor.to.x, el.to); + }; + }; + if (scale == 'content' || scale == 'both') { // Scale the content + if (factor.from.y != factor.to.y) { // Vertical props scaling + props = props.concat(cProps); + el.from = $.effects.setTransition(el, cProps, factor.from.y, el.from); + el.to = $.effects.setTransition(el, cProps, factor.to.y, el.to); + }; + }; + $.effects.save(el, restore ? props : props1); el.show(); // Save & Show + $.effects.createWrapper(el); // Create Wrapper + el.css('overflow','hidden').css(el.from); // Shift + + // Animate + if (scale == 'content' || scale == 'both') { // Scale the children + vProps = vProps.concat(['marginTop','marginBottom']).concat(cProps); // Add margins/font-size + hProps = hProps.concat(['marginLeft','marginRight']); // Add margins + props2 = props.concat(vProps).concat(hProps); // Concat + el.find("*[width]").each(function(){ + child = $(this); + if (restore) $.effects.save(child, props2); + var c_original = {height: child.height(), width: child.width()}; // Save original + child.from = {height: c_original.height * factor.from.y, width: c_original.width * factor.from.x}; + child.to = {height: c_original.height * factor.to.y, width: c_original.width * factor.to.x}; + if (factor.from.y != factor.to.y) { // Vertical props scaling + child.from = $.effects.setTransition(child, vProps, factor.from.y, child.from); + child.to = $.effects.setTransition(child, vProps, factor.to.y, child.to); + }; + if (factor.from.x != factor.to.x) { // Horizontal props scaling + child.from = $.effects.setTransition(child, hProps, factor.from.x, child.from); + child.to = $.effects.setTransition(child, hProps, factor.to.x, child.to); + }; + child.css(child.from); // Shift children + child.animate(child.to, o.duration, o.options.easing, function(){ + if (restore) $.effects.restore(child, props2); // Restore children + }); // Animate children + }); + }; + + // Animate + el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.shake.js b/sites/all/libraries/jquery.ui/ui/effects.shake.js new file mode 100644 index 0000000..1cdbdbc --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.shake.js @@ -0,0 +1,57 @@ +/* + * jQuery UI Effects Shake 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Shake + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.shake = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var direction = o.options.direction || 'left'; // Default direction + var distance = o.options.distance || 20; // Default distance + var times = o.options.times || 3; // Default # of times + var speed = o.duration || o.options.duration || 140; // Default speed per shake + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + $.effects.createWrapper(el); // Create Wrapper + var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; + var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; + + // Animation + var animation = {}, animation1 = {}, animation2 = {}; + animation[ref] = (motion == 'pos' ? '-=' : '+=') + distance; + animation1[ref] = (motion == 'pos' ? '+=' : '-=') + distance * 2; + animation2[ref] = (motion == 'pos' ? '-=' : '+=') + distance * 2; + + // Animate + el.animate(animation, speed, o.options.easing); + for (var i = 1; i < times; i++) { // Shakes + el.animate(animation1, speed, o.options.easing).animate(animation2, speed, o.options.easing); + }; + el.animate(animation1, speed, o.options.easing). + animate(animation, speed / 2, o.options.easing, function(){ // Last shake + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + el.queue('fx', function() { el.dequeue(); }); + el.dequeue(); + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.slide.js b/sites/all/libraries/jquery.ui/ui/effects.slide.js new file mode 100644 index 0000000..ebfc068 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.slide.js @@ -0,0 +1,50 @@ +/* + * jQuery UI Effects Slide 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Slide + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.slide = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode + var direction = o.options.direction || 'left'; // Default Direction + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper + var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; + var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; + var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true})); + if (mode == 'show') el.css(ref, motion == 'pos' ? -distance : distance); // Shift + + // Animation + var animation = {}; + animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance; + + // Animate + el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/effects.transfer.js b/sites/all/libraries/jquery.ui/ui/effects.transfer.js new file mode 100644 index 0000000..aaf8825 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/effects.transfer.js @@ -0,0 +1,59 @@ +/* + * jQuery UI Effects Transfer 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Transfer + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.transfer = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this); + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var target = $(o.options.to); // Find Target + var position = el.offset(); + var transfer = $('
          ').appendTo(document.body); + if(o.options.className) transfer.addClass(o.options.className); + + // Set target css + transfer.addClass(o.options.className); + transfer.css({ + top: position.top, + left: position.left, + height: el.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')), + width: el.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')), + position: 'absolute' + }); + + // Animation + position = target.offset(); + animation = { + top: position.top, + left: position.left, + height: target.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')), + width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')) + }; + + // Animate + transfer.animate(animation, o.duration, o.options.easing, function() { + transfer.remove(); // Remove div + if(o.callback) o.callback.apply(el[0], arguments); // Callback + el.dequeue(); + }); + + }); + +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/jquery.ui.i18n.all.js b/sites/all/libraries/jquery.ui/ui/i18n/jquery.ui.i18n.all.js new file mode 100644 index 0000000..2c0c701 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/jquery.ui.i18n.all.js @@ -0,0 +1,909 @@ +/* Arabic Translation for jQuery UI date picker plugin. */ +/* Khaled Al Horani -- koko.dw@gmail.com */ +/* خالد الحوراني -- koko.dw@gmail.com */ +/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ +jQuery(function($){ + $.datepicker.regional['ar'] = { + clearText: 'مسح', clearStatus: 'امسح التاريخ الحالي', + closeText: 'إغلاق', closeStatus: 'إغلاق بدون حفظ', + prevText: '<السابق', prevStatus: 'عرض الشهر السابق', + prevBigText: '<<', prevBigStatus: '', + nextText: 'التالي>', nextStatus: 'عرض الشهر القادم', + nextBigText: '>>', nextBigStatus: '', + currentText: 'اليوم', currentStatus: 'عرض الشهر الحالي', + monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'آذار', 'حزيران', + 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], + monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], + monthStatus: 'عرض شهر آخر', yearStatus: 'عرض سنة آخرى', + weekHeader: 'أسبوع', weekStatus: 'أسبوع السنة', + dayNames: ['السبت', 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة'], + dayNamesShort: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'], + dayNamesMin: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'], + dayStatus: 'اختر DD لليوم الأول من الأسبوع', dateStatus: 'اختر D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: 'اختر يوم', isRTL: true}; + $.datepicker.setDefaults($.datepicker.regional['ar']); +});/* Bulgarian initialisation for the jQuery UI date picker plugin. */ +/* Written by Stoyan Kyosev (http://svest.org). */ +jQuery(function($){ + $.datepicker.regional['bg'] = { + clearText: 'изчисти', clearStatus: 'изчисти актуалната дата', + closeText: 'затвори', closeStatus: 'затвори без промени', + prevText: '<назад', prevStatus: 'покажи последния месец', + prevBigText: '<<', prevBigStatus: '', + nextText: 'напред>', nextStatus: 'покажи следващия месец', + nextBigText: '>>', nextBigStatus: '', + currentText: 'днес', currentStatus: '', + monthNames: ['Януари','Февруари','Март','Април','Май','Юни', + 'Юли','Август','Септември','Октомври','Ноември','Декември'], + monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни', + 'Юли','Авг','Сеп','Окт','Нов','Дек'], + monthStatus: 'покажи друг месец', yearStatus: 'покажи друга година', + weekHeader: 'Wk', weekStatus: 'седмица от месеца', + dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'], + dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'], + dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'], + dayStatus: 'Сложи DD като първи ден от седмицата', dateStatus: 'Избери D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Избери дата', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['bg']); +}); +/* Inicialitzaci� en catal� per a l'extenci� 'calendar' per jQuery. */ +/* Writers: (joan.leon@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ca'] = { + clearText: 'Netejar', clearStatus: '', + closeText: 'Tancar', closeStatus: '', + prevText: '<Ant', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Seg>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Avui', currentStatus: '', + monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny', + 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'], + monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun', + 'Jul','Ago','Set','Oct','Nov','Des'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'], + dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'], + dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'mm/dd/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['ca']); +});/* Czech initialisation for the jQuery UI date picker plugin. */ +/* Written by Tomas Muller (tomas@tomas-muller.net). */ +jQuery(function($){ + $.datepicker.regional['cs'] = { + clearText: 'Vymazat', clearStatus: 'Vymaže zadané datum', + closeText: 'Zavřít', closeStatus: 'Zavře kalendář beze změny', + prevText: '<Dříve', prevStatus: 'Přejít na předchozí měsí', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Později>', nextStatus: 'Přejít na další měsíc', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Nyní', currentStatus: 'Přejde na aktuální měsíc', + monthNames: ['leden','únor','březen','duben','květen','červen', + 'červenec','srpen','září','říjen','listopad','prosinec'], + monthNamesShort: ['led','úno','bře','dub','kvě','čer', + 'čvc','srp','zář','říj','lis','pro'], + monthStatus: 'Přejít na jiný měsíc', yearStatus: 'Přejít na jiný rok', + weekHeader: 'Týd', weekStatus: 'Týden v roce', + dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'], + dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], + dayNamesMin: ['ne','po','út','st','čt','pá','so'], + dayStatus: 'Nastavit DD jako první den v týdnu', dateStatus: '\'Vyber\' DD, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Vyberte datum', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['cs']); +}); +/* Danish initialisation for the jQuery UI date picker plugin. */ +/* Written by Jan Christensen ( deletestuff@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['da'] = { + clearText: 'Nulstil', clearStatus: 'Nulstil den aktuelle dato', + closeText: 'Luk', closeStatus: 'Luk uden ændringer', + prevText: '<Forrige', prevStatus: 'Vis forrige måned', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Næste>', nextStatus: 'Vis næste måned', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Idag', currentStatus: 'Vis aktuel måned', + monthNames: ['Januar','Februar','Marts','April','Maj','Juni', + 'Juli','August','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dec'], + monthStatus: 'Vis en anden måned', yearStatus: 'Vis et andet år', + weekHeader: 'Uge', weekStatus: 'Årets uge', + dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], + dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], + dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], + dayStatus: 'Sæt DD som første ugedag', dateStatus: 'Vælg D, M d', + dateFormat: 'dd-mm-yy', firstDay: 0, + initStatus: 'Vælg en dato', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['da']); +}); +/* German initialisation for the jQuery UI date picker plugin. */ +/* Written by Milian Wolff (mail@milianw.de). */ +jQuery(function($){ + $.datepicker.regional['de'] = { + clearText: 'löschen', clearStatus: 'aktuelles Datum löschen', + closeText: 'schließen', closeStatus: 'ohne Änderungen schließen', + prevText: '<zurück', prevStatus: 'letzten Monat zeigen', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Vor>', nextStatus: 'nächsten Monat zeigen', + nextBigText: '>>', nextBigStatus: '', + currentText: 'heute', currentStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni', + 'Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dez'], + monthStatus: 'anderen Monat anzeigen', yearStatus: 'anderes Jahr anzeigen', + weekHeader: 'Wo', weekStatus: 'Woche des Monats', + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayStatus: 'Setze DD als ersten Wochentag', dateStatus: 'Wähle D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Wähle ein Datum', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['de']); +}); +/* Esperanto initialisation for the jQuery UI date picker plugin. */ +/* Written by Olivier M. (olivierweb@ifrance.com). */ +jQuery(function($){ + $.datepicker.regional['eo'] = { + clearText: 'Vakigi', clearStatus: '', + closeText: 'Fermi', closeStatus: 'Fermi sen modifi', + prevText: '<Anta', prevStatus: 'Vidi la antaŭan monaton', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Sekv>', nextStatus: 'Vidi la sekvan monaton', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Nuna', currentStatus: 'Vidi la nunan monaton', + monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio', + 'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aŭg','Sep','Okt','Nov','Dec'], + monthStatus: 'Vidi alian monaton', yearStatus: 'Vidi alian jaron', + weekHeader: 'Sb', weekStatus: '', + dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'], + dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'], + dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'], + dayStatus: 'Uzi DD kiel unua tago de la semajno', dateStatus: 'Elekti DD, MM d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: 'Elekti la daton', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['eo']); +}); +/* Inicializaci�n en espa�ol para la extensi�n 'UI date picker' para jQuery. */ +/* Traducido por Vester (xvester@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['es'] = { + clearText: 'Limpiar', clearStatus: '', + closeText: 'Cerrar', closeStatus: '', + prevText: '<Ant', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Sig>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Hoy', currentStatus: '', + monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', + 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], + monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun', + 'Jul','Ago','Sep','Oct','Nov','Dic'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'], + dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'], + dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['es']); +});/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */ +/* Javad Mowlanezhad -- jmowla@gmail.com */ +/* Jalali calendar should supported soon! (Its implemented but I have to test it) */ +jQuery(function($) { + $.datepicker.regional['fa'] = { + clearText: 'حذف تاريخ', clearStatus: 'پاک کردن تاريخ جاري', + closeText: 'بستن', closeStatus: 'بستن بدون اعمال تغييرات', + prevText: '<قبلي', prevStatus: 'نمايش ماه قبل', + prevBigText: '<<', prevBigStatus: '', + nextText: 'بعدي>', nextStatus: 'نمايش ماه بعد', + nextBigText: '>>', nextBigStatus: '', + currentText: 'امروز', currentStatus: 'نمايش ماه جاري', + monthNames: ['فروردين','ارديبهشت','خرداد','تير','مرداد','شهريور', + 'مهر','آبان','آذر','دي','بهمن','اسفند'], + monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], + monthStatus: 'نمايش ماه متفاوت', yearStatus: 'نمايش سال متفاوت', + weekHeader: 'هف', weekStatus: 'هفتهِ سال', + dayNames: ['يکشنبه','دوشنبه','سه‌شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'], + dayNamesShort: ['ي','د','س','چ','پ','ج', 'ش'], + dayNamesMin: ['ي','د','س','چ','پ','ج', 'ش'], + dayStatus: 'قبول DD بعنوان اولين روز هفته', dateStatus: 'انتخاب D, M d', + dateFormat: 'yy/mm/dd', firstDay: 6, + initStatus: 'انتخاب تاريخ', isRTL: true}; + $.datepicker.setDefaults($.datepicker.regional['fa']); +});/* Finnish initialisation for the jQuery UI date picker plugin. */ +/* Written by Harri Kilpi� (harrikilpio@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['fi'] = { + clearText: 'Tyhjennä', clearStatus: '', + closeText: 'Sulje', closeStatus: '', + prevText: '«Edellinen', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Seuraava»', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Tänään', currentStatus: '', + monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu', + 'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'], + monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä', + 'Heinä','Elo','Syys','Loka','Marras','Joulu'], + monthStatus: '', yearStatus: '', + weekHeader: 'Vk', weekStatus: '', + dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','Su'], + dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'], + dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['fi']); +}); +/* French initialisation for the jQuery UI date picker plugin. */ +/* Written by Keith Wood (kbwood@virginbroadband.com.au) and Stéphane Nahmani (sholby@sholby.net). */ +jQuery(function($){ + $.datepicker.regional['fr'] = { + clearText: 'Effacer', clearStatus: 'Effacer la date sélectionnée', + closeText: 'Fermer', closeStatus: 'Fermer sans modifier', + prevText: '<Préc', prevStatus: 'Voir le mois précédent', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Suiv>', nextStatus: 'Voir le mois suivant', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Courant', currentStatus: 'Voir le mois courant', + monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', + 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], + monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun', + 'Jul','Aoû','Sep','Oct','Nov','Déc'], + monthStatus: 'Voir un autre mois', yearStatus: 'Voir une autre année', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], + dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], + dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], + dayStatus: 'Utiliser DD comme premier jour de la semaine', dateStatus: '\'Choisir\' le DD d MM', + dateFormat: 'dd/mm/yy', firstDay: 1, + initStatus: 'Choisir la date', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['fr']); +});/* Hebrew initialisation for the UI Datepicker extension. */ +/* Written by Amir Hardon (ahardon at gmail dot com). */ +jQuery(function($){ + $.datepicker.regional['he'] = { + clearText: 'נקה', clearStatus: '', + closeText: 'סגור', closeStatus: '', + prevText: '<הקודם', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'הבא>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'היום', currentStatus: '', + monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', + 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], + monthNamesShort: ['1','2','3','4','5','6', + '7','8','9','10','11','12'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], + dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + dayStatus: 'DD', dateStatus: 'DD, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: true}; + $.datepicker.setDefaults($.datepicker.regional['he']); +}); +/* Croatian i18n for the jQuery UI date picker plugin. */ +/* Written by Vjekoslav Nesek. */ +jQuery(function($){ + $.datepicker.regional['hr'] = { + clearText: 'izbriši', clearStatus: 'Izbriši trenutni datum', + closeText: 'Zatvori', closeStatus: 'Zatvori kalendar', + prevText: '<', prevStatus: 'Prikaži prethodni mjesec', + prevBigText: '<<', prevBigStatus: '', + nextText: '>', nextStatus: 'Prikaži slijedeći mjesec', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Danas', currentStatus: 'Današnji datum', + monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipani', + 'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'], + monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip', + 'Srp','Kol','Ruj','Lis','Stu','Pro'], + monthStatus: 'Prikaži mjesece', yearStatus: 'Prikaži godine', + weekHeader: 'Tje', weekStatus: 'Tjedan', + dayNames: ['Nedjalja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], + dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], + dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], + dayStatus: 'Odaber DD za prvi dan tjedna', dateStatus: '\'Datum\' D, M d', + dateFormat: 'dd.mm.yy.', firstDay: 1, + initStatus: 'Odaberi datum', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['hr']); +});/* Hungarian initialisation for the jQuery UI date picker plugin. */ +/* Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */ +jQuery(function($){ + $.datepicker.regional['hu'] = { + clearText: 'törlés', clearStatus: '', + closeText: 'bezárás', closeStatus: '', + prevText: '« vissza', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'előre »', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'ma', currentStatus: '', + monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', + 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'], + monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', + 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'], + monthStatus: '', yearStatus: '', + weekHeader: 'Hé', weekStatus: '', + dayNames: ['Vasámap', 'Hétfö', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'], + dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'], + dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['hu']); +}); +/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ +jQuery(function($){ + $.datepicker.regional['hy'] = { + clearText: 'Մաքրել', clearStatus: '', + closeText: 'Փակել', closeStatus: '', + prevText: '<Նախ.', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Հաջ.>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Այսօր', currentStatus: '', + monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս', + 'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'], + monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս', + 'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'], + monthStatus: '', yearStatus: '', + weekHeader: 'ՇԲՏ', weekStatus: '', + dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'], + dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], + dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['hy']); +});/* Indonesian initialisation for the jQuery UI date picker plugin. */ +/* Written by Deden Fathurahman (dedenf@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['id'] = { + clearText: 'kosongkan', clearStatus: 'bersihkan tanggal yang sekarang', + closeText: 'Tutup', closeStatus: 'Tutup tanpa mengubah', + prevText: '<mundur', prevStatus: 'Tampilkan bulan sebelumnya', + prevBigText: '<<', prevBigStatus: '', + nextText: 'maju>', nextStatus: 'Tampilkan bulan berikutnya', + nextBigText: '>>', nextBigStatus: '', + currentText: 'hari ini', currentStatus: 'Tampilkan bulan sekarang', + monthNames: ['Januari','Februari','Maret','April','Mei','Juni', + 'Juli','Agustus','September','Oktober','Nopember','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', + 'Jul','Agus','Sep','Okt','Nop','Des'], + monthStatus: 'Tampilkan bulan yang berbeda', yearStatus: 'Tampilkan tahun yang berbeda', + weekHeader: 'Mg', weekStatus: 'Minggu dalam tahun', + dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'], + dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'], + dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'], + dayStatus: 'gunakan DD sebagai awal hari dalam minggu', dateStatus: 'pilih le DD, MM d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: 'Pilih Tanggal', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['id']); +});/* Icelandic initialisation for the jQuery UI date picker plugin. */ +/* Written by Haukur H. Thorsson (haukur@eskill.is). */ +jQuery(function($){ + $.datepicker.regional['is'] = { + clearText: 'Hreinsa', clearStatus: '', + closeText: 'Loka', closeStatus: '', + prevText: '< Fyrri', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Næsti >', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Í dag', currentStatus: '', + monthNames: ['Janúar','Febrúar','Mars','Apríl','Maí','Júní', + 'Júlí','Ágúst','September','Október','Nóvember','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maí','Jún', + 'Júl','Ágú','Sep','Okt','Nóv','Des'], + monthStatus: '', yearStatus: '', + weekHeader: 'Vika', weekStatus: '', + dayNames: ['Sunnudagur','Mánudagur','Þriðjudagur','Miðvikudagur','Fimmtudagur','Föstudagur','Laugardagur'], + dayNamesShort: ['Sun','Mán','Þri','Mið','Fim','Fös','Lau'], + dayNamesMin: ['Su','Má','Þr','Mi','Fi','Fö','La'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['is']); +});/* Italian initialisation for the jQuery UI date picker plugin. */ +/* Written by Apaella (apaella@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['it'] = { + clearText: 'Svuota', clearStatus: 'Annulla', + closeText: 'Chiudi', closeStatus: 'Chiudere senza modificare', + prevText: '<Prec', prevStatus: 'Mese precedente', + prevBigText: '<<', prevBigStatus: 'Mostra l\'anno precedente', + nextText: 'Succ>', nextStatus: 'Mese successivo', + nextBigText: '>>', nextBigStatus: 'Mostra l\'anno successivo', + currentText: 'Oggi', currentStatus: 'Mese corrente', + monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', + 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'], + monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu', + 'Lug','Ago','Set','Ott','Nov','Dic'], + monthStatus: 'Seleziona un altro mese', yearStatus: 'Seleziona un altro anno', + weekHeader: 'Sm', weekStatus: 'Settimana dell\'anno', + dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'], + dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'], + dayNamesMin: ['Do','Lu','Ma','Me','Gio','Ve','Sa'], + dayStatus: 'Usa DD come primo giorno della settimana', dateStatus: '\'Seleziona\' D, M d', + dateFormat: 'dd/mm/yy', firstDay: 1, + initStatus: 'Scegliere una data', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['it']); +}); +/* Japanese initialisation for the jQuery UI date picker plugin. */ +/* Written by Kentaro SATO (kentaro@ranvis.com). */ +jQuery(function($){ + $.datepicker.regional['ja'] = { + clearText: 'クリア', clearStatus: '日付をクリアします', + closeText: '閉じる', closeStatus: '変更せずに閉じます', + prevText: '<前', prevStatus: '前月を表示します', + prevBigText: '<<', prevBigStatus: '前年を表示します', + nextText: '次>', nextStatus: '翌月を表示します', + nextBigText: '>>', nextBigStatus: '翌年を表示します', + currentText: '今日', currentStatus: '今月を表示します', + monthNames: ['1月','2月','3月','4月','5月','6月', + '7月','8月','9月','10月','11月','12月'], + monthNamesShort: ['1月','2月','3月','4月','5月','6月', + '7月','8月','9月','10月','11月','12月'], + monthStatus: '表示する月を変更します', yearStatus: '表示する年を変更します', + weekHeader: '週', weekStatus: '暦週で第何週目かを表します', + dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'], + dayNamesShort: ['日','月','火','水','木','金','土'], + dayNamesMin: ['日','月','火','水','木','金','土'], + dayStatus: '週の始まりをDDにします', dateStatus: 'Md日(D)', + dateFormat: 'yy/mm/dd', firstDay: 0, + initStatus: '日付を選択します', isRTL: false, + showMonthAfterYear: true}; + $.datepicker.setDefaults($.datepicker.regional['ja']); +});/* Korean initialisation for the jQuery calendar extension. */ +/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ko'] = { + clearText: '지우기', clearStatus: '', + closeText: '닫기', closeStatus: '', + prevText: '이전달', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: '다음달', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: '오늘', currentStatus: '', + monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', + '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], + monthNamesShort: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', + '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], + monthStatus: '', yearStatus: '', + weekHeader: 'Wk', weekStatus: '', + dayNames: ['일','월','화','수','목','금','토'], + dayNamesShort: ['일','월','화','수','목','금','토'], + dayNamesMin: ['일','월','화','수','목','금','토'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['ko']); +});/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* @author Arturas Paleicikas */ +jQuery(function($){ + $.datepicker.regional['lt'] = { + clearText: 'Išvalyti', clearStatus: '', + closeText: 'Uždaryti', closeStatus: '', + prevText: '<Atgal', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Pirmyn>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Šiandien', currentStatus: '', + monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis', + 'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'], + monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir', + 'Lie','Rugp','Rugs','Spa','Lap','Gru'], + monthStatus: '', yearStatus: '', + weekHeader: '', weekStatus: '', + dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'], + dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'], + dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['lt']); +});/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* @author Arturas Paleicikas */ +jQuery(function($){ + $.datepicker.regional['lv'] = { + clearText: 'Notīrīt', clearStatus: '', + closeText: 'Aizvērt', closeStatus: '', + prevText: 'Iepr', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Nāka', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Šodien', currentStatus: '', + monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs', + 'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn', + 'Jūl','Aug','Sep','Okt','Nov','Dec'], + monthStatus: '', yearStatus: '', + weekHeader: 'Nav', weekStatus: '', + dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'], + dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'], + dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd-mm-yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['lv']); +});/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Mathias Bynens */ +jQuery(function($){ + $.datepicker.regional.nl = { + clearText: 'Wissen', clearStatus: 'Wis de huidige datum', + closeText: 'Sluiten', closeStatus: 'Sluit zonder verandering', + prevText: '←', prevStatus: 'Bekijk de vorige maand', + prevBigText: '«', nextBigStatus: 'Bekijk het vorige jaar', + nextText: '→', nextStatus: 'Bekijk de volgende maand', + nextBigText: '»', nextBigStatus: 'Bekijk het volgende jaar', + currentText: 'Vandaag', currentStatus: 'Bekijk de huidige maand', + monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', + 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], + monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun', + 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], + monthStatus: 'Bekijk een andere maand', yearStatus: 'Bekijk een ander jaar', + weekHeader: 'Wk', weekStatus: 'Week van het jaar', + dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], + dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], + dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], + dayStatus: 'Stel DD in als eerste dag van de week', dateStatus: 'dd/mm/yy', + dateFormat: 'dd/mm/yy', firstDay: 1, + initStatus: 'Kies een datum', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional.nl); +});/* Norwegian initialisation for the jQuery UI date picker plugin. */ +/* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['no'] = { + clearText: 'Tøm', clearStatus: '', + closeText: 'Lukk', closeStatus: '', + prevText: '«Forrige', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Neste»', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'I dag', currentStatus: '', + monthNames: ['Januar','Februar','Mars','April','Mai','Juni', + 'Juli','August','September','Oktober','November','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jun', + 'Jul','Aug','Sep','Okt','Nov','Des'], + monthStatus: '', yearStatus: '', + weekHeader: 'Uke', weekStatus: '', + dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], + dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], + dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['no']); +}); +/* Polish initialisation for the jQuery UI date picker plugin. */ +/* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['pl'] = { + clearText: 'Wyczyść', clearStatus: 'Wyczyść obecną datę', + closeText: 'Zamknij', closeStatus: 'Zamknij bez zapisywania', + prevText: '<Poprzedni', prevStatus: 'Pokaż poprzedni miesiąc', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Następny>', nextStatus: 'Pokaż następny miesiąc', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Dziś', currentStatus: 'Pokaż aktualny miesiąc', + monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec', + 'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'], + monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze', + 'Lip','Sie','Wrz','Pa','Lis','Gru'], + monthStatus: 'Pokaż inny miesiąc', yearStatus: 'Pokaż inny rok', + weekHeader: 'Tydz', weekStatus: 'Tydzień roku', + dayNames: ['Niedziela','Poniedzialek','Wtorek','Środa','Czwartek','Piątek','Sobota'], + dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'], + dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'], + dayStatus: 'Ustaw DD jako pierwszy dzień tygodnia', dateStatus: '\'Wybierz\' D, M d', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: 'Wybierz datę', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['pl']); +}); +/* Brazilian initialisation for the jQuery UI date picker plugin. */ +/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['pt-BR'] = { + clearText: 'Limpar', clearStatus: '', + closeText: 'Fechar', closeStatus: '', + prevText: '<Anterior', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Próximo>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Hoje', currentStatus: '', + monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', + 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], + monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', + 'Jul','Ago','Set','Out','Nov','Dez'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sabado'], + dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'], + dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['pt-BR']); +});/* Romanian initialisation for the jQuery UI date picker plugin. */ +/* Written by Edmond L. (ll_edmond@walla.com). */ +jQuery(function($){ + $.datepicker.regional['ro'] = { + clearText: 'Curat', clearStatus: 'Sterge data curenta', + closeText: 'Inchide', closeStatus: 'Inchide fara schimbare', + prevText: '<Anterior', prevStatus: 'Arata luna trecuta', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Urmator>', nextStatus: 'Arata luna urmatoare', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Azi', currentStatus: 'Arata luna curenta', + monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Junie', + 'Julie','August','Septembrie','Octobrie','Noiembrie','Decembrie'], + monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', + 'Jul', 'Aug', 'Sep', 'Oct', 'Noi', 'Dec'], + monthStatus: 'Arata o luna diferita', yearStatus: 'Arat un an diferit', + weekHeader: 'Sapt', weekStatus: 'Saptamana anului', + dayNames: ['Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata'], + dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'], + dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sa'], + dayStatus: 'Seteaza DD ca prima saptamana zi', dateStatus: 'Selecteaza D, M d', + dateFormat: 'mm/dd/yy', firstDay: 0, + initStatus: 'Selecteaza o data', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['ro']); +}); +/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Andrew Stromnov (stromnov@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ru'] = { + clearText: 'Очистить', clearStatus: '', + closeText: 'Закрыть', closeStatus: '', + prevText: '<Пред', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'След>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Сегодня', currentStatus: '', + monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', + 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], + monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', + 'Июл','Авг','Сен','Окт','Ноя','Дек'], + monthStatus: '', yearStatus: '', + weekHeader: 'Не', weekStatus: '', + dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'], + dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'], + dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['ru']); +});/* Slovak initialisation for the jQuery UI date picker plugin. */ +/* Written by Vojtech Rinik (vojto@hmm.sk). */ +jQuery(function($){ + $.datepicker.regional['sk'] = { + clearText: 'Zmazať', clearStatus: '', + closeText: 'Zavrieť', closeStatus: '', + prevText: '<Predchádzajúci', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Nasledujúci>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Dnes', currentStatus: '', + monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', + 'Júl','August','September','Október','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún', + 'Júl','Aug','Sep','Okt','Nov','Dec'], + monthStatus: '', yearStatus: '', + weekHeader: 'Ty', weekStatus: '', + dayNames: ['Nedel\'a','Pondelok','Utorok','Streda','Štvrtok','Piatok','Sobota'], + dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'], + dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['sk']); +}); +/* Slovenian initialisation for the jQuery UI date picker plugin. */ +/* Written by Jaka Jancar (jaka@kubje.org). */ +/* c = č, s = š z = ž C = Č S = Š Z = Ž */ +jQuery(function($){ + $.datepicker.regional['sl'] = { + clearText: 'Izbriši', clearStatus: 'Izbriši trenutni datum', + closeText: 'Zapri', closeStatus: 'Zapri brez spreminjanja', + prevText: '<Prejšnji', prevStatus: 'Prikaži prejšnji mesec', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Naslednji>', nextStatus: 'Prikaži naslednji mesec', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Trenutni', currentStatus: 'Prikaži trenutni mesec', + monthNames: ['Januar','Februar','Marec','April','Maj','Junij', + 'Julij','Avgust','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Avg','Sep','Okt','Nov','Dec'], + monthStatus: 'Prikaži drug mesec', yearStatus: 'Prikaži drugo leto', + weekHeader: 'Teden', weekStatus: 'Teden v letu', + dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'], + dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'], + dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'], + dayStatus: 'Nastavi DD za prvi dan v tednu', dateStatus: 'Izberi DD, d MM yy', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Izbira datuma', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['sl']); +}); +/* Albanian initialisation for the jQuery UI date picker plugin. */ +/* Written by Flakron Bytyqi (flakron@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['sq'] = { + clearText: 'fshije', clearStatus: 'fshije datën aktuale', + closeText: 'mbylle', closeStatus: 'mbylle pa ndryshime', + prevText: '<mbrapa', prevStatus: 'trego muajin e fundit', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Përpara>', nextStatus: 'trego muajin tjetër', + nextBigText: '>>', nextBigStatus: '', + currentText: 'sot', currentStatus: '', + monthNames: ['Janar','Shkurt','Mars','Pril','Maj','Qershor', + 'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'], + monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer', + 'Kor','Gus','Sht','Tet','Nën','Dhj'], + monthStatus: 'trego muajin tjetër', yearStatus: 'trego tjetër vit', + weekHeader: 'Ja', weekStatus: 'Java e muajit', + dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'], + dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'], + dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'], + dayStatus: 'Vendose DD si ditë të parë të javës', dateStatus: '\'Zgjedh\' D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Zgjedhe një datë', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['sq']); +}); +/* Swedish initialisation for the jQuery UI date picker plugin. */ +/* Written by Anders Ekdahl ( anders@nomadiz.se). */ +jQuery(function($){ + $.datepicker.regional['sv'] = { + clearText: 'Rensa', clearStatus: '', + closeText: 'Stäng', closeStatus: '', + prevText: '«Förra', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Nästa»', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Idag', currentStatus: '', + monthNames: ['Januari','Februari','Mars','April','Maj','Juni', + 'Juli','Augusti','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dec'], + monthStatus: '', yearStatus: '', + weekHeader: 'Ve', weekStatus: '', + dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'], + dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'], + dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['sv']); +}); +/* Thai initialisation for the jQuery UI date picker plugin. */ +/* Written by pipo (pipo@sixhead.com). */ +jQuery(function($){ + $.datepicker.regional['th'] = { + clearText: 'ลบ', clearStatus: '', + closeText: 'ปิด', closeStatus: '', + prevText: '« ย้อน', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'ถัดไป »', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'วันนี้', currentStatus: '', + monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน', + 'กรกฏาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'], + monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.', + 'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'], + dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], + dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['th']); +});/* Turkish initialisation for the jQuery UI date picker plugin. */ +/* Written by Izzet Emre Erkan (kara@karalamalar.net). */ +jQuery(function($){ + $.datepicker.regional['tr'] = { + clearText: 'temizle', clearStatus: 'geçerli tarihi temizler', + closeText: 'kapat', closeStatus: 'sadece göstergeyi kapat', + prevText: '<geri', prevStatus: 'önceki ayı göster', + prevBigText: '<<', prevBigStatus: '', + nextText: 'ileri>', nextStatus: 'sonraki ayı göster', + nextBigText: '>>', nextBigStatus: '', + currentText: 'bugün', currentStatus: '', + monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', + 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'], + monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz', + 'Tem','Ağu','Eyl','Eki','Kas','Ara'], + monthStatus: 'başka ay', yearStatus: 'başka yıl', + weekHeader: 'Hf', weekStatus: 'Ayın haftaları', + dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'], + dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], + dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], + dayStatus: 'Haftanın ilk gününü belirleyin', dateStatus: 'D, M d seçiniz', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Bir tarih seçiniz', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['tr']); +});/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['uk'] = { + clearText: 'Очистити', clearStatus: '', + closeText: 'Закрити', closeStatus: '', + prevText: '<', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: '>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Сьогодні', currentStatus: '', + monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень', + 'Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'], + monthNamesShort: ['Січ','Лют','Бер','Кві','Тра','Чер', + 'Лип','Сер','Вер','Жов','Лис','Гру'], + monthStatus: '', yearStatus: '', + weekHeader: 'Не', weekStatus: '', + dayNames: ['неділя','понеділок','вівторок','середа','четвер','пятниця','суббота'], + dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'], + dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['uk']); +});/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Cloudream (cloudream@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-CN'] = { + clearText: '清除', clearStatus: '清除已选日期', + closeText: '关闭', closeStatus: '不改变当前选择', + prevText: '<上月', prevStatus: '显示上月', + prevBigText: '<<', prevBigStatus: '显示上一年', + nextText: '下月>', nextStatus: '显示下月', + nextBigText: '>>', nextBigStatus: '显示下一年', + currentText: '今天', currentStatus: '显示本月', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一','二','三','四','五','六', + '七','八','九','十','十一','十二'], + monthStatus: '选择月份', yearStatus: '选择年份', + weekHeader: '周', weekStatus: '年内周次', + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + dayStatus: '设置 DD 为一周起始', dateStatus: '选择 m月 d日, DD', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: '请选择日期', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['zh-CN']); +}); +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Ressol (ressol@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-TW'] = { + clearText: '清除', clearStatus: '清除已選日期', + closeText: '關閉', closeStatus: '不改變目前的選擇', + prevText: '<上月', prevStatus: '顯示上月', + prevBigText: '<<', prevBigStatus: '顯示上一年', + nextText: '下月>', nextStatus: '顯示下月', + nextBigText: '>>', nextBigStatus: '顯示下一年', + currentText: '今天', currentStatus: '顯示本月', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一','二','三','四','五','六', + '七','八','九','十','十一','十二'], + monthStatus: '選擇月份', yearStatus: '選擇年份', + weekHeader: '周', weekStatus: '年內周次', + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + dayStatus: '設定 DD 為一周起始', dateStatus: '選擇 m月 d日, DD', + dateFormat: 'yy/mm/dd', firstDay: 1, + initStatus: '請選擇日期', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['zh-TW']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ar.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ar.js new file mode 100644 index 0000000..7618788 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ar.js @@ -0,0 +1,26 @@ +/* Arabic Translation for jQuery UI date picker plugin. */ +/* Khaled Al Horani -- koko.dw@gmail.com */ +/* خالد الحوراني -- koko.dw@gmail.com */ +/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ +jQuery(function($){ + $.datepicker.regional['ar'] = { + clearText: 'مسح', clearStatus: 'امسح التاريخ الحالي', + closeText: 'إغلاق', closeStatus: 'إغلاق بدون حفظ', + prevText: '<السابق', prevStatus: 'عرض الشهر السابق', + prevBigText: '<<', prevBigStatus: '', + nextText: 'التالي>', nextStatus: 'عرض الشهر القادم', + nextBigText: '>>', nextBigStatus: '', + currentText: 'اليوم', currentStatus: 'عرض الشهر الحالي', + monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'آذار', 'حزيران', + 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], + monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], + monthStatus: 'عرض شهر آخر', yearStatus: 'عرض سنة آخرى', + weekHeader: 'أسبوع', weekStatus: 'أسبوع السنة', + dayNames: ['السبت', 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة'], + dayNamesShort: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'], + dayNamesMin: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'], + dayStatus: 'اختر DD لليوم الأول من الأسبوع', dateStatus: 'اختر D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: 'اختر يوم', isRTL: true}; + $.datepicker.setDefaults($.datepicker.regional['ar']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-bg.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-bg.js new file mode 100644 index 0000000..9aa82d7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-bg.js @@ -0,0 +1,25 @@ +/* Bulgarian initialisation for the jQuery UI date picker plugin. */ +/* Written by Stoyan Kyosev (http://svest.org). */ +jQuery(function($){ + $.datepicker.regional['bg'] = { + clearText: 'изчисти', clearStatus: 'изчисти актуалната дата', + closeText: 'затвори', closeStatus: 'затвори без промени', + prevText: '<назад', prevStatus: 'покажи последния месец', + prevBigText: '<<', prevBigStatus: '', + nextText: 'напред>', nextStatus: 'покажи следващия месец', + nextBigText: '>>', nextBigStatus: '', + currentText: 'днес', currentStatus: '', + monthNames: ['Януари','Февруари','Март','Април','Май','Юни', + 'Юли','Август','Септември','Октомври','Ноември','Декември'], + monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни', + 'Юли','Авг','Сеп','Окт','Нов','Дек'], + monthStatus: 'покажи друг месец', yearStatus: 'покажи друга година', + weekHeader: 'Wk', weekStatus: 'седмица от месеца', + dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'], + dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'], + dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'], + dayStatus: 'Сложи DD като първи ден от седмицата', dateStatus: 'Избери D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Избери дата', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['bg']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ca.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ca.js new file mode 100644 index 0000000..aa55d17 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ca.js @@ -0,0 +1,25 @@ +/* Inicialitzaci en catal per a l'extenci 'calendar' per jQuery. */ +/* Writers: (joan.leon@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ca'] = { + clearText: 'Netejar', clearStatus: '', + closeText: 'Tancar', closeStatus: '', + prevText: '<Ant', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Seg>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Avui', currentStatus: '', + monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny', + 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'], + monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun', + 'Jul','Ago','Set','Oct','Nov','Des'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'], + dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'], + dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'mm/dd/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['ca']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-cs.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-cs.js new file mode 100644 index 0000000..c558552 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-cs.js @@ -0,0 +1,25 @@ +/* Czech initialisation for the jQuery UI date picker plugin. */ +/* Written by Tomas Muller (tomas@tomas-muller.net). */ +jQuery(function($){ + $.datepicker.regional['cs'] = { + clearText: 'Vymazat', clearStatus: 'Vymaže zadané datum', + closeText: 'Zavřít', closeStatus: 'Zavře kalendář beze změny', + prevText: '<Dříve', prevStatus: 'Přejít na předchozí měsí', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Později>', nextStatus: 'Přejít na další měsíc', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Nyní', currentStatus: 'Přejde na aktuální měsíc', + monthNames: ['leden','únor','březen','duben','květen','červen', + 'červenec','srpen','září','říjen','listopad','prosinec'], + monthNamesShort: ['led','úno','bře','dub','kvě','čer', + 'čvc','srp','zář','říj','lis','pro'], + monthStatus: 'Přejít na jiný měsíc', yearStatus: 'Přejít na jiný rok', + weekHeader: 'Týd', weekStatus: 'Týden v roce', + dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'], + dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], + dayNamesMin: ['ne','po','út','st','čt','pá','so'], + dayStatus: 'Nastavit DD jako první den v týdnu', dateStatus: '\'Vyber\' DD, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Vyberte datum', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['cs']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-da.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-da.js new file mode 100644 index 0000000..d6afdc7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-da.js @@ -0,0 +1,25 @@ +/* Danish initialisation for the jQuery UI date picker plugin. */ +/* Written by Jan Christensen ( deletestuff@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['da'] = { + clearText: 'Nulstil', clearStatus: 'Nulstil den aktuelle dato', + closeText: 'Luk', closeStatus: 'Luk uden ændringer', + prevText: '<Forrige', prevStatus: 'Vis forrige måned', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Næste>', nextStatus: 'Vis næste måned', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Idag', currentStatus: 'Vis aktuel måned', + monthNames: ['Januar','Februar','Marts','April','Maj','Juni', + 'Juli','August','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dec'], + monthStatus: 'Vis en anden måned', yearStatus: 'Vis et andet år', + weekHeader: 'Uge', weekStatus: 'Årets uge', + dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], + dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], + dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], + dayStatus: 'Sæt DD som første ugedag', dateStatus: 'Vælg D, M d', + dateFormat: 'dd-mm-yy', firstDay: 0, + initStatus: 'Vælg en dato', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['da']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-de.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-de.js new file mode 100644 index 0000000..f90c8b8 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-de.js @@ -0,0 +1,25 @@ +/* German initialisation for the jQuery UI date picker plugin. */ +/* Written by Milian Wolff (mail@milianw.de). */ +jQuery(function($){ + $.datepicker.regional['de'] = { + clearText: 'löschen', clearStatus: 'aktuelles Datum löschen', + closeText: 'schließen', closeStatus: 'ohne Änderungen schließen', + prevText: '<zurück', prevStatus: 'letzten Monat zeigen', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Vor>', nextStatus: 'nächsten Monat zeigen', + nextBigText: '>>', nextBigStatus: '', + currentText: 'heute', currentStatus: '', + monthNames: ['Januar','Februar','März','April','Mai','Juni', + 'Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dez'], + monthStatus: 'anderen Monat anzeigen', yearStatus: 'anderes Jahr anzeigen', + weekHeader: 'Wo', weekStatus: 'Woche des Monats', + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], + dayStatus: 'Setze DD als ersten Wochentag', dateStatus: 'Wähle D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Wähle ein Datum', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['de']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-eo.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-eo.js new file mode 100644 index 0000000..92009dc --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-eo.js @@ -0,0 +1,25 @@ +/* Esperanto initialisation for the jQuery UI date picker plugin. */ +/* Written by Olivier M. (olivierweb@ifrance.com). */ +jQuery(function($){ + $.datepicker.regional['eo'] = { + clearText: 'Vakigi', clearStatus: '', + closeText: 'Fermi', closeStatus: 'Fermi sen modifi', + prevText: '<Anta', prevStatus: 'Vidi la antaŭan monaton', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Sekv>', nextStatus: 'Vidi la sekvan monaton', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Nuna', currentStatus: 'Vidi la nunan monaton', + monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio', + 'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aŭg','Sep','Okt','Nov','Dec'], + monthStatus: 'Vidi alian monaton', yearStatus: 'Vidi alian jaron', + weekHeader: 'Sb', weekStatus: '', + dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'], + dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'], + dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'], + dayStatus: 'Uzi DD kiel unua tago de la semajno', dateStatus: 'Elekti DD, MM d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: 'Elekti la daton', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['eo']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-es.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-es.js new file mode 100644 index 0000000..951e82c --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-es.js @@ -0,0 +1,25 @@ +/* Inicializacin en espaol para la extensin 'UI date picker' para jQuery. */ +/* Traducido por Vester (xvester@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['es'] = { + clearText: 'Limpiar', clearStatus: '', + closeText: 'Cerrar', closeStatus: '', + prevText: '<Ant', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Sig>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Hoy', currentStatus: '', + monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', + 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], + monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun', + 'Jul','Ago','Sep','Oct','Nov','Dic'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'], + dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'], + dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['es']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fa.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fa.js new file mode 100644 index 0000000..d770217 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fa.js @@ -0,0 +1,25 @@ +/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */ +/* Javad Mowlanezhad -- jmowla@gmail.com */ +/* Jalali calendar should supported soon! (Its implemented but I have to test it) */ +jQuery(function($) { + $.datepicker.regional['fa'] = { + clearText: 'حذف تاريخ', clearStatus: 'پاک کردن تاريخ جاري', + closeText: 'بستن', closeStatus: 'بستن بدون اعمال تغييرات', + prevText: '<قبلي', prevStatus: 'نمايش ماه قبل', + prevBigText: '<<', prevBigStatus: '', + nextText: 'بعدي>', nextStatus: 'نمايش ماه بعد', + nextBigText: '>>', nextBigStatus: '', + currentText: 'امروز', currentStatus: 'نمايش ماه جاري', + monthNames: ['فروردين','ارديبهشت','خرداد','تير','مرداد','شهريور', + 'مهر','آبان','آذر','دي','بهمن','اسفند'], + monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], + monthStatus: 'نمايش ماه متفاوت', yearStatus: 'نمايش سال متفاوت', + weekHeader: 'هف', weekStatus: 'هفتهِ سال', + dayNames: ['يکشنبه','دوشنبه','سه‌شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'], + dayNamesShort: ['ي','د','س','چ','پ','ج', 'ش'], + dayNamesMin: ['ي','د','س','چ','پ','ج', 'ش'], + dayStatus: 'قبول DD بعنوان اولين روز هفته', dateStatus: 'انتخاب D, M d', + dateFormat: 'yy/mm/dd', firstDay: 6, + initStatus: 'انتخاب تاريخ', isRTL: true}; + $.datepicker.setDefaults($.datepicker.regional['fa']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fi.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fi.js new file mode 100644 index 0000000..4a9cf27 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fi.js @@ -0,0 +1,25 @@ +/* Finnish initialisation for the jQuery UI date picker plugin. */ +/* Written by Harri Kilpi (harrikilpio@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['fi'] = { + clearText: 'Tyhjennä', clearStatus: '', + closeText: 'Sulje', closeStatus: '', + prevText: '«Edellinen', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Seuraava»', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Tänään', currentStatus: '', + monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu', + 'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'], + monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä', + 'Heinä','Elo','Syys','Loka','Marras','Joulu'], + monthStatus: '', yearStatus: '', + weekHeader: 'Vk', weekStatus: '', + dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','Su'], + dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'], + dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['fi']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fr.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fr.js new file mode 100644 index 0000000..6ffdbc6 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-fr.js @@ -0,0 +1,25 @@ +/* French initialisation for the jQuery UI date picker plugin. */ +/* Written by Keith Wood (kbwood@virginbroadband.com.au) and Stéphane Nahmani (sholby@sholby.net). */ +jQuery(function($){ + $.datepicker.regional['fr'] = { + clearText: 'Effacer', clearStatus: 'Effacer la date sélectionnée', + closeText: 'Fermer', closeStatus: 'Fermer sans modifier', + prevText: '<Préc', prevStatus: 'Voir le mois précédent', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Suiv>', nextStatus: 'Voir le mois suivant', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Courant', currentStatus: 'Voir le mois courant', + monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', + 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], + monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun', + 'Jul','Aoû','Sep','Oct','Nov','Déc'], + monthStatus: 'Voir un autre mois', yearStatus: 'Voir une autre année', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], + dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], + dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], + dayStatus: 'Utiliser DD comme premier jour de la semaine', dateStatus: '\'Choisir\' le DD d MM', + dateFormat: 'dd/mm/yy', firstDay: 1, + initStatus: 'Choisir la date', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['fr']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-he.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-he.js new file mode 100644 index 0000000..e31b6e8 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-he.js @@ -0,0 +1,25 @@ +/* Hebrew initialisation for the UI Datepicker extension. */ +/* Written by Amir Hardon (ahardon at gmail dot com). */ +jQuery(function($){ + $.datepicker.regional['he'] = { + clearText: 'נקה', clearStatus: '', + closeText: 'סגור', closeStatus: '', + prevText: '<הקודם', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'הבא>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'היום', currentStatus: '', + monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', + 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], + monthNamesShort: ['1','2','3','4','5','6', + '7','8','9','10','11','12'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], + dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + dayStatus: 'DD', dateStatus: 'DD, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: true}; + $.datepicker.setDefaults($.datepicker.regional['he']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hr.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hr.js new file mode 100644 index 0000000..be438ac --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hr.js @@ -0,0 +1,25 @@ +/* Croatian i18n for the jQuery UI date picker plugin. */ +/* Written by Vjekoslav Nesek. */ +jQuery(function($){ + $.datepicker.regional['hr'] = { + clearText: 'izbriši', clearStatus: 'Izbriši trenutni datum', + closeText: 'Zatvori', closeStatus: 'Zatvori kalendar', + prevText: '<', prevStatus: 'Prikaži prethodni mjesec', + prevBigText: '<<', prevBigStatus: '', + nextText: '>', nextStatus: 'Prikaži slijedeći mjesec', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Danas', currentStatus: 'Današnji datum', + monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipani', + 'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'], + monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip', + 'Srp','Kol','Ruj','Lis','Stu','Pro'], + monthStatus: 'Prikaži mjesece', yearStatus: 'Prikaži godine', + weekHeader: 'Tje', weekStatus: 'Tjedan', + dayNames: ['Nedjalja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], + dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], + dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], + dayStatus: 'Odaber DD za prvi dan tjedna', dateStatus: '\'Datum\' D, M d', + dateFormat: 'dd.mm.yy.', firstDay: 1, + initStatus: 'Odaberi datum', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['hr']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hu.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hu.js new file mode 100644 index 0000000..a4b1f28 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hu.js @@ -0,0 +1,25 @@ +/* Hungarian initialisation for the jQuery UI date picker plugin. */ +/* Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */ +jQuery(function($){ + $.datepicker.regional['hu'] = { + clearText: 'törlés', clearStatus: '', + closeText: 'bezárás', closeStatus: '', + prevText: '« vissza', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'előre »', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'ma', currentStatus: '', + monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', + 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'], + monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', + 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'], + monthStatus: '', yearStatus: '', + weekHeader: 'Hé', weekStatus: '', + dayNames: ['Vasámap', 'Hétfö', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'], + dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'], + dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['hu']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hy.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hy.js new file mode 100644 index 0000000..5edfa89 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-hy.js @@ -0,0 +1,25 @@ +/* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ +jQuery(function($){ + $.datepicker.regional['hy'] = { + clearText: 'Մաքրել', clearStatus: '', + closeText: 'Փակել', closeStatus: '', + prevText: '<Նախ.', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Հաջ.>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Այսօր', currentStatus: '', + monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս', + 'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'], + monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս', + 'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'], + monthStatus: '', yearStatus: '', + weekHeader: 'ՇԲՏ', weekStatus: '', + dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'], + dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], + dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['hy']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-id.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-id.js new file mode 100644 index 0000000..8615813 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-id.js @@ -0,0 +1,25 @@ +/* Indonesian initialisation for the jQuery UI date picker plugin. */ +/* Written by Deden Fathurahman (dedenf@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['id'] = { + clearText: 'kosongkan', clearStatus: 'bersihkan tanggal yang sekarang', + closeText: 'Tutup', closeStatus: 'Tutup tanpa mengubah', + prevText: '<mundur', prevStatus: 'Tampilkan bulan sebelumnya', + prevBigText: '<<', prevBigStatus: '', + nextText: 'maju>', nextStatus: 'Tampilkan bulan berikutnya', + nextBigText: '>>', nextBigStatus: '', + currentText: 'hari ini', currentStatus: 'Tampilkan bulan sekarang', + monthNames: ['Januari','Februari','Maret','April','Mei','Juni', + 'Juli','Agustus','September','Oktober','Nopember','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', + 'Jul','Agus','Sep','Okt','Nop','Des'], + monthStatus: 'Tampilkan bulan yang berbeda', yearStatus: 'Tampilkan tahun yang berbeda', + weekHeader: 'Mg', weekStatus: 'Minggu dalam tahun', + dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'], + dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'], + dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'], + dayStatus: 'gunakan DD sebagai awal hari dalam minggu', dateStatus: 'pilih le DD, MM d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: 'Pilih Tanggal', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['id']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-is.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-is.js new file mode 100644 index 0000000..2d96223 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-is.js @@ -0,0 +1,25 @@ +/* Icelandic initialisation for the jQuery UI date picker plugin. */ +/* Written by Haukur H. Thorsson (haukur@eskill.is). */ +jQuery(function($){ + $.datepicker.regional['is'] = { + clearText: 'Hreinsa', clearStatus: '', + closeText: 'Loka', closeStatus: '', + prevText: '< Fyrri', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Næsti >', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Í dag', currentStatus: '', + monthNames: ['Janúar','Febrúar','Mars','Apríl','Maí','Júní', + 'Júlí','Ágúst','September','Október','Nóvember','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maí','Jún', + 'Júl','Ágú','Sep','Okt','Nóv','Des'], + monthStatus: '', yearStatus: '', + weekHeader: 'Vika', weekStatus: '', + dayNames: ['Sunnudagur','Mánudagur','Þriðjudagur','Miðvikudagur','Fimmtudagur','Föstudagur','Laugardagur'], + dayNamesShort: ['Sun','Mán','Þri','Mið','Fim','Fös','Lau'], + dayNamesMin: ['Su','Má','Þr','Mi','Fi','Fö','La'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['is']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-it.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-it.js new file mode 100644 index 0000000..ebe8cec --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-it.js @@ -0,0 +1,25 @@ +/* Italian initialisation for the jQuery UI date picker plugin. */ +/* Written by Apaella (apaella@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['it'] = { + clearText: 'Svuota', clearStatus: 'Annulla', + closeText: 'Chiudi', closeStatus: 'Chiudere senza modificare', + prevText: '<Prec', prevStatus: 'Mese precedente', + prevBigText: '<<', prevBigStatus: 'Mostra l\'anno precedente', + nextText: 'Succ>', nextStatus: 'Mese successivo', + nextBigText: '>>', nextBigStatus: 'Mostra l\'anno successivo', + currentText: 'Oggi', currentStatus: 'Mese corrente', + monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', + 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'], + monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu', + 'Lug','Ago','Set','Ott','Nov','Dic'], + monthStatus: 'Seleziona un altro mese', yearStatus: 'Seleziona un altro anno', + weekHeader: 'Sm', weekStatus: 'Settimana dell\'anno', + dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'], + dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'], + dayNamesMin: ['Do','Lu','Ma','Me','Gio','Ve','Sa'], + dayStatus: 'Usa DD come primo giorno della settimana', dateStatus: '\'Seleziona\' D, M d', + dateFormat: 'dd/mm/yy', firstDay: 1, + initStatus: 'Scegliere una data', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['it']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ja.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ja.js new file mode 100644 index 0000000..02f9c0b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ja.js @@ -0,0 +1,26 @@ +/* Japanese initialisation for the jQuery UI date picker plugin. */ +/* Written by Kentaro SATO (kentaro@ranvis.com). */ +jQuery(function($){ + $.datepicker.regional['ja'] = { + clearText: 'クリア', clearStatus: '日付をクリアします', + closeText: '閉じる', closeStatus: '変更せずに閉じます', + prevText: '<前', prevStatus: '前月を表示します', + prevBigText: '<<', prevBigStatus: '前年を表示します', + nextText: '次>', nextStatus: '翌月を表示します', + nextBigText: '>>', nextBigStatus: '翌年を表示します', + currentText: '今日', currentStatus: '今月を表示します', + monthNames: ['1月','2月','3月','4月','5月','6月', + '7月','8月','9月','10月','11月','12月'], + monthNamesShort: ['1月','2月','3月','4月','5月','6月', + '7月','8月','9月','10月','11月','12月'], + monthStatus: '表示する月を変更します', yearStatus: '表示する年を変更します', + weekHeader: '週', weekStatus: '暦週で第何週目かを表します', + dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'], + dayNamesShort: ['日','月','火','水','木','金','土'], + dayNamesMin: ['日','月','火','水','木','金','土'], + dayStatus: '週の始まりをDDにします', dateStatus: 'Md日(D)', + dateFormat: 'yy/mm/dd', firstDay: 0, + initStatus: '日付を選択します', isRTL: false, + showMonthAfterYear: true}; + $.datepicker.setDefaults($.datepicker.regional['ja']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ko.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ko.js new file mode 100644 index 0000000..aa3bfa7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ko.js @@ -0,0 +1,25 @@ +/* Korean initialisation for the jQuery calendar extension. */ +/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ko'] = { + clearText: '지우기', clearStatus: '', + closeText: '닫기', closeStatus: '', + prevText: '이전달', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: '다음달', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: '오늘', currentStatus: '', + monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', + '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], + monthNamesShort: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', + '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], + monthStatus: '', yearStatus: '', + weekHeader: 'Wk', weekStatus: '', + dayNames: ['일','월','화','수','목','금','토'], + dayNamesShort: ['일','월','화','수','목','금','토'], + dayNamesMin: ['일','월','화','수','목','금','토'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['ko']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-lt.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-lt.js new file mode 100644 index 0000000..d35e1d9 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-lt.js @@ -0,0 +1,25 @@ +/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* @author Arturas Paleicikas */ +jQuery(function($){ + $.datepicker.regional['lt'] = { + clearText: 'Išvalyti', clearStatus: '', + closeText: 'Uždaryti', closeStatus: '', + prevText: '<Atgal', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Pirmyn>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Šiandien', currentStatus: '', + monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis', + 'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'], + monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir', + 'Lie','Rugp','Rugs','Spa','Lap','Gru'], + monthStatus: '', yearStatus: '', + weekHeader: '', weekStatus: '', + dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'], + dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'], + dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['lt']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-lv.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-lv.js new file mode 100644 index 0000000..4c09faa --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-lv.js @@ -0,0 +1,25 @@ +/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* @author Arturas Paleicikas */ +jQuery(function($){ + $.datepicker.regional['lv'] = { + clearText: 'Notīrīt', clearStatus: '', + closeText: 'Aizvērt', closeStatus: '', + prevText: 'Iepr', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Nāka', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Šodien', currentStatus: '', + monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs', + 'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn', + 'Jūl','Aug','Sep','Okt','Nov','Dec'], + monthStatus: '', yearStatus: '', + weekHeader: 'Nav', weekStatus: '', + dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'], + dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'], + dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd-mm-yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['lv']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-nl.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-nl.js new file mode 100644 index 0000000..00227f7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-nl.js @@ -0,0 +1,25 @@ +/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Mathias Bynens */ +jQuery(function($){ + $.datepicker.regional.nl = { + clearText: 'Wissen', clearStatus: 'Wis de huidige datum', + closeText: 'Sluiten', closeStatus: 'Sluit zonder verandering', + prevText: '←', prevStatus: 'Bekijk de vorige maand', + prevBigText: '«', nextBigStatus: 'Bekijk het vorige jaar', + nextText: '→', nextStatus: 'Bekijk de volgende maand', + nextBigText: '»', nextBigStatus: 'Bekijk het volgende jaar', + currentText: 'Vandaag', currentStatus: 'Bekijk de huidige maand', + monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', + 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], + monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun', + 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], + monthStatus: 'Bekijk een andere maand', yearStatus: 'Bekijk een ander jaar', + weekHeader: 'Wk', weekStatus: 'Week van het jaar', + dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], + dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], + dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], + dayStatus: 'Stel DD in als eerste dag van de week', dateStatus: 'dd/mm/yy', + dateFormat: 'dd/mm/yy', firstDay: 1, + initStatus: 'Kies een datum', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional.nl); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-no.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-no.js new file mode 100644 index 0000000..a0eb570 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-no.js @@ -0,0 +1,25 @@ +/* Norwegian initialisation for the jQuery UI date picker plugin. */ +/* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['no'] = { + clearText: 'Tøm', clearStatus: '', + closeText: 'Lukk', closeStatus: '', + prevText: '«Forrige', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Neste»', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'I dag', currentStatus: '', + monthNames: ['Januar','Februar','Mars','April','Mai','Juni', + 'Juli','August','September','Oktober','November','Desember'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jun', + 'Jul','Aug','Sep','Okt','Nov','Des'], + monthStatus: '', yearStatus: '', + weekHeader: 'Uke', weekStatus: '', + dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], + dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], + dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['no']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-pl.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-pl.js new file mode 100644 index 0000000..b9833c0 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-pl.js @@ -0,0 +1,25 @@ +/* Polish initialisation for the jQuery UI date picker plugin. */ +/* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['pl'] = { + clearText: 'Wyczyść', clearStatus: 'Wyczyść obecną datę', + closeText: 'Zamknij', closeStatus: 'Zamknij bez zapisywania', + prevText: '<Poprzedni', prevStatus: 'Pokaż poprzedni miesiąc', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Następny>', nextStatus: 'Pokaż następny miesiąc', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Dziś', currentStatus: 'Pokaż aktualny miesiąc', + monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec', + 'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'], + monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze', + 'Lip','Sie','Wrz','Pa','Lis','Gru'], + monthStatus: 'Pokaż inny miesiąc', yearStatus: 'Pokaż inny rok', + weekHeader: 'Tydz', weekStatus: 'Tydzień roku', + dayNames: ['Niedziela','Poniedzialek','Wtorek','Środa','Czwartek','Piątek','Sobota'], + dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'], + dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'], + dayStatus: 'Ustaw DD jako pierwszy dzień tygodnia', dateStatus: '\'Wybierz\' D, M d', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: 'Wybierz datę', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['pl']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-pt-BR.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-pt-BR.js new file mode 100644 index 0000000..54e6f16 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-pt-BR.js @@ -0,0 +1,25 @@ +/* Brazilian initialisation for the jQuery UI date picker plugin. */ +/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['pt-BR'] = { + clearText: 'Limpar', clearStatus: '', + closeText: 'Fechar', closeStatus: '', + prevText: '<Anterior', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Próximo>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Hoje', currentStatus: '', + monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', + 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], + monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', + 'Jul','Ago','Set','Out','Nov','Dez'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sabado'], + dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'], + dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['pt-BR']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ro.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ro.js new file mode 100644 index 0000000..b07a030 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ro.js @@ -0,0 +1,25 @@ +/* Romanian initialisation for the jQuery UI date picker plugin. */ +/* Written by Edmond L. (ll_edmond@walla.com). */ +jQuery(function($){ + $.datepicker.regional['ro'] = { + clearText: 'Curat', clearStatus: 'Sterge data curenta', + closeText: 'Inchide', closeStatus: 'Inchide fara schimbare', + prevText: '<Anterior', prevStatus: 'Arata luna trecuta', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Urmator>', nextStatus: 'Arata luna urmatoare', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Azi', currentStatus: 'Arata luna curenta', + monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Junie', + 'Julie','August','Septembrie','Octobrie','Noiembrie','Decembrie'], + monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', + 'Jul', 'Aug', 'Sep', 'Oct', 'Noi', 'Dec'], + monthStatus: 'Arata o luna diferita', yearStatus: 'Arat un an diferit', + weekHeader: 'Sapt', weekStatus: 'Saptamana anului', + dayNames: ['Duminica', 'Luni', 'Marti', 'Miercuri', 'Joi', 'Vineri', 'Sambata'], + dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'], + dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sa'], + dayStatus: 'Seteaza DD ca prima saptamana zi', dateStatus: 'Selecteaza D, M d', + dateFormat: 'mm/dd/yy', firstDay: 0, + initStatus: 'Selecteaza o data', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['ro']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ru.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ru.js new file mode 100644 index 0000000..87914da --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-ru.js @@ -0,0 +1,25 @@ +/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Andrew Stromnov (stromnov@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ru'] = { + clearText: 'Очистить', clearStatus: '', + closeText: 'Закрыть', closeStatus: '', + prevText: '<Пред', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'След>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Сегодня', currentStatus: '', + monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', + 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], + monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', + 'Июл','Авг','Сен','Окт','Ноя','Дек'], + monthStatus: '', yearStatus: '', + weekHeader: 'Не', weekStatus: '', + dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'], + dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'], + dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['ru']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sk.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sk.js new file mode 100644 index 0000000..f809749 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sk.js @@ -0,0 +1,25 @@ +/* Slovak initialisation for the jQuery UI date picker plugin. */ +/* Written by Vojtech Rinik (vojto@hmm.sk). */ +jQuery(function($){ + $.datepicker.regional['sk'] = { + clearText: 'Zmazať', clearStatus: '', + closeText: 'Zavrieť', closeStatus: '', + prevText: '<Predchádzajúci', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Nasledujúci>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Dnes', currentStatus: '', + monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', + 'Júl','August','September','Október','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún', + 'Júl','Aug','Sep','Okt','Nov','Dec'], + monthStatus: '', yearStatus: '', + weekHeader: 'Ty', weekStatus: '', + dayNames: ['Nedel\'a','Pondelok','Utorok','Streda','Štvrtok','Piatok','Sobota'], + dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'], + dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['sk']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sl.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sl.js new file mode 100644 index 0000000..107dc38 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sl.js @@ -0,0 +1,26 @@ +/* Slovenian initialisation for the jQuery UI date picker plugin. */ +/* Written by Jaka Jancar (jaka@kubje.org). */ +/* c = č, s = š z = ž C = Č S = Š Z = Ž */ +jQuery(function($){ + $.datepicker.regional['sl'] = { + clearText: 'Izbriši', clearStatus: 'Izbriši trenutni datum', + closeText: 'Zapri', closeStatus: 'Zapri brez spreminjanja', + prevText: '<Prejšnji', prevStatus: 'Prikaži prejšnji mesec', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Naslednji>', nextStatus: 'Prikaži naslednji mesec', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Trenutni', currentStatus: 'Prikaži trenutni mesec', + monthNames: ['Januar','Februar','Marec','April','Maj','Junij', + 'Julij','Avgust','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Avg','Sep','Okt','Nov','Dec'], + monthStatus: 'Prikaži drug mesec', yearStatus: 'Prikaži drugo leto', + weekHeader: 'Teden', weekStatus: 'Teden v letu', + dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'], + dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'], + dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'], + dayStatus: 'Nastavi DD za prvi dan v tednu', dateStatus: 'Izberi DD, d MM yy', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Izbira datuma', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['sl']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sq.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sq.js new file mode 100644 index 0000000..5d18938 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sq.js @@ -0,0 +1,25 @@ +/* Albanian initialisation for the jQuery UI date picker plugin. */ +/* Written by Flakron Bytyqi (flakron@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['sq'] = { + clearText: 'fshije', clearStatus: 'fshije datën aktuale', + closeText: 'mbylle', closeStatus: 'mbylle pa ndryshime', + prevText: '<mbrapa', prevStatus: 'trego muajin e fundit', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Përpara>', nextStatus: 'trego muajin tjetër', + nextBigText: '>>', nextBigStatus: '', + currentText: 'sot', currentStatus: '', + monthNames: ['Janar','Shkurt','Mars','Pril','Maj','Qershor', + 'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'], + monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer', + 'Kor','Gus','Sht','Tet','Nën','Dhj'], + monthStatus: 'trego muajin tjetër', yearStatus: 'trego tjetër vit', + weekHeader: 'Ja', weekStatus: 'Java e muajit', + dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'], + dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'], + dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'], + dayStatus: 'Vendose DD si ditë të parë të javës', dateStatus: '\'Zgjedh\' D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Zgjedhe një datë', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['sq']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sv.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sv.js new file mode 100644 index 0000000..1c72ff7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-sv.js @@ -0,0 +1,25 @@ +/* Swedish initialisation for the jQuery UI date picker plugin. */ +/* Written by Anders Ekdahl ( anders@nomadiz.se). */ +jQuery(function($){ + $.datepicker.regional['sv'] = { + clearText: 'Rensa', clearStatus: '', + closeText: 'Stäng', closeStatus: '', + prevText: '«Förra', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'Nästa»', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Idag', currentStatus: '', + monthNames: ['Januari','Februari','Mars','April','Maj','Juni', + 'Juli','Augusti','September','Oktober','November','December'], + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', + 'Jul','Aug','Sep','Okt','Nov','Dec'], + monthStatus: '', yearStatus: '', + weekHeader: 'Ve', weekStatus: '', + dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'], + dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'], + dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['sv']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-th.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-th.js new file mode 100644 index 0000000..493d051 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-th.js @@ -0,0 +1,25 @@ +/* Thai initialisation for the jQuery UI date picker plugin. */ +/* Written by pipo (pipo@sixhead.com). */ +jQuery(function($){ + $.datepicker.regional['th'] = { + clearText: 'ลบ', clearStatus: '', + closeText: 'ปิด', closeStatus: '', + prevText: '« ย้อน', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: 'ถัดไป »', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'วันนี้', currentStatus: '', + monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน', + 'กรกฏาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'], + monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.', + 'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'], + monthStatus: '', yearStatus: '', + weekHeader: 'Sm', weekStatus: '', + dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'], + dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], + dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd/mm/yy', firstDay: 0, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['th']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-tr.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-tr.js new file mode 100644 index 0000000..40a6a99 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-tr.js @@ -0,0 +1,25 @@ +/* Turkish initialisation for the jQuery UI date picker plugin. */ +/* Written by Izzet Emre Erkan (kara@karalamalar.net). */ +jQuery(function($){ + $.datepicker.regional['tr'] = { + clearText: 'temizle', clearStatus: 'geçerli tarihi temizler', + closeText: 'kapat', closeStatus: 'sadece göstergeyi kapat', + prevText: '<geri', prevStatus: 'önceki ayı göster', + prevBigText: '<<', prevBigStatus: '', + nextText: 'ileri>', nextStatus: 'sonraki ayı göster', + nextBigText: '>>', nextBigStatus: '', + currentText: 'bugün', currentStatus: '', + monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', + 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'], + monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz', + 'Tem','Ağu','Eyl','Eki','Kas','Ara'], + monthStatus: 'başka ay', yearStatus: 'başka yıl', + weekHeader: 'Hf', weekStatus: 'Ayın haftaları', + dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'], + dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], + dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], + dayStatus: 'Haftanın ilk gününü belirleyin', dateStatus: 'D, M d seçiniz', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: 'Bir tarih seçiniz', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['tr']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-uk.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-uk.js new file mode 100644 index 0000000..1dbc44b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-uk.js @@ -0,0 +1,25 @@ +/* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['uk'] = { + clearText: 'Очистити', clearStatus: '', + closeText: 'Закрити', closeStatus: '', + prevText: '<', prevStatus: '', + prevBigText: '<<', prevBigStatus: '', + nextText: '>', nextStatus: '', + nextBigText: '>>', nextBigStatus: '', + currentText: 'Сьогодні', currentStatus: '', + monthNames: ['Січень','Лютий','Березень','Квітень','Травень','Червень', + 'Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'], + monthNamesShort: ['Січ','Лют','Бер','Кві','Тра','Чер', + 'Лип','Сер','Вер','Жов','Лис','Гру'], + monthStatus: '', yearStatus: '', + weekHeader: 'Не', weekStatus: '', + dayNames: ['неділя','понеділок','вівторок','середа','четвер','пятниця','суббота'], + dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'], + dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'], + dayStatus: 'DD', dateStatus: 'D, M d', + dateFormat: 'dd.mm.yy', firstDay: 1, + initStatus: '', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['uk']); +}); \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-zh-CN.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-zh-CN.js new file mode 100644 index 0000000..f2076f8 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-zh-CN.js @@ -0,0 +1,25 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Cloudream (cloudream@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-CN'] = { + clearText: '清除', clearStatus: '清除已选日期', + closeText: '关闭', closeStatus: '不改变当前选择', + prevText: '<上月', prevStatus: '显示上月', + prevBigText: '<<', prevBigStatus: '显示上一年', + nextText: '下月>', nextStatus: '显示下月', + nextBigText: '>>', nextBigStatus: '显示下一年', + currentText: '今天', currentStatus: '显示本月', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一','二','三','四','五','六', + '七','八','九','十','十一','十二'], + monthStatus: '选择月份', yearStatus: '选择年份', + weekHeader: '周', weekStatus: '年内周次', + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + dayStatus: '设置 DD 为一周起始', dateStatus: '选择 m月 d日, DD', + dateFormat: 'yy-mm-dd', firstDay: 1, + initStatus: '请选择日期', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['zh-CN']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-zh-TW.js b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-zh-TW.js new file mode 100644 index 0000000..0e8e73b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-zh-TW.js @@ -0,0 +1,25 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Ressol (ressol@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-TW'] = { + clearText: '清除', clearStatus: '清除已選日期', + closeText: '關閉', closeStatus: '不改變目前的選擇', + prevText: '<上月', prevStatus: '顯示上月', + prevBigText: '<<', prevBigStatus: '顯示上一年', + nextText: '下月>', nextStatus: '顯示下月', + nextBigText: '>>', nextBigStatus: '顯示下一年', + currentText: '今天', currentStatus: '顯示本月', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一','二','三','四','五','六', + '七','八','九','十','十一','十二'], + monthStatus: '選擇月份', yearStatus: '選擇年份', + weekHeader: '周', weekStatus: '年內周次', + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + dayStatus: '設定 DD 為一周起始', dateStatus: '選擇 m月 d日, DD', + dateFormat: 'yy/mm/dd', firstDay: 1, + initStatus: '請選擇日期', isRTL: false}; + $.datepicker.setDefaults($.datepicker.regional['zh-TW']); +}); diff --git a/sites/all/libraries/jquery.ui/ui/jquery.ui.all.js b/sites/all/libraries/jquery.ui/ui/jquery.ui.all.js new file mode 100644 index 0000000..e75fd07 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/jquery.ui.all.js @@ -0,0 +1,8862 @@ +/* + * jQuery UI 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ +;(function($) { + +var _remove = $.fn.remove, + isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9); + +//Helper functions and ui object +$.ui = { + + version: "1.6", + + // $.ui.plugin is deprecated. Use the proxy pattern instead. + plugin: { + add: function(module, option, set) { + var proto = $.ui[module].prototype; + for(var i in set) { + proto.plugins[i] = proto.plugins[i] || []; + proto.plugins[i].push([option, set[i]]); + } + }, + call: function(instance, name, args) { + var set = instance.plugins[name]; + if(!set) { return; } + + for (var i = 0; i < set.length; i++) { + if (instance.options[set[i][0]]) { + set[i][1].apply(instance.element, args); + } + } + } + }, + + contains: function(a, b) { + var safari2 = $.browser.safari && $.browser.version < 522; + if (a.contains && !safari2) { + return a.contains(b); + } + if (a.compareDocumentPosition) + return !!(a.compareDocumentPosition(b) & 16); + while (b = b.parentNode) + if (b == a) return true; + return false; + }, + + cssCache: {}, + css: function(name) { + if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; } + var tmp = $('
          ').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body'); + + //if (!$.browser.safari) + //tmp.appendTo('body'); + + //Opera and Safari set width and height to 0px instead of auto + //Safari returns rgba(0,0,0,0) when bgcolor is not set + $.ui.cssCache[name] = !!( + (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) || + !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))) + ); + try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){} + return $.ui.cssCache[name]; + }, + + hasScroll: function(el, a) { + + //If overflow is hidden, the element might have extra content, but the user wants to hide it + if ($(el).css('overflow') == 'hidden') { return false; } + + var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop', + has = false; + + if (el[scroll] > 0) { return true; } + + // TODO: determine which cases actually cause this to happen + // if the element doesn't have the scroll set, see if it's possible to + // set the scroll + el[scroll] = 1; + has = (el[scroll] > 0); + el[scroll] = 0; + return has; + }, + + isOverAxis: function(x, reference, size) { + //Determines when x coordinate is over "b" element axis + return (x > reference) && (x < (reference + size)); + }, + + isOver: function(y, x, top, left, height, width) { + //Determines when x, y coordinates is over "b" element + return $.ui.isOverAxis(y, top, height) && $.ui.isOverAxis(x, left, width); + }, + + keyCode: { + BACKSPACE: 8, + CAPS_LOCK: 20, + COMMA: 188, + CONTROL: 17, + DELETE: 46, + DOWN: 40, + END: 35, + ENTER: 13, + ESCAPE: 27, + HOME: 36, + INSERT: 45, + 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, + SHIFT: 16, + SPACE: 32, + TAB: 9, + UP: 38 + } + +}; + +// WAI-ARIA normalization +if (isFF2) { + var attr = $.attr, + removeAttr = $.fn.removeAttr, + ariaNS = "http://www.w3.org/2005/07/aaa", + ariaState = /^aria-/, + ariaRole = /^wairole:/; + + $.attr = function(elem, name, value) { + var set = value !== undefined; + + return (name == 'role' + ? (set + ? attr.call(this, elem, name, "wairole:" + value) + : (attr.apply(this, arguments) || "").replace(ariaRole, "")) + : (ariaState.test(name) + ? (set + ? elem.setAttributeNS(ariaNS, + name.replace(ariaState, "aaa:"), value) + : attr.call(this, elem, name.replace(ariaState, "aaa:"))) + : attr.apply(this, arguments))); + }; + + $.fn.removeAttr = function(name) { + return (ariaState.test(name) + ? this.each(function() { + this.removeAttributeNS(ariaNS, name.replace(ariaState, "")); + }) : removeAttr.call(this, name)); + }; +} + +//jQuery plugins +$.fn.extend({ + + remove: function() { + // Safari has a native remove event which actually removes DOM elements, + // so we have to use triggerHandler instead of trigger (#3037). + $("*", this).add(this).each(function() { + $(this).triggerHandler("remove"); + }); + return _remove.apply(this, arguments ); + }, + + enableSelection: function() { + return this + .attr('unselectable', 'off') + .css('MozUserSelect', '') + .unbind('selectstart.ui'); + }, + + disableSelection: function() { + return this + .attr('unselectable', 'on') + .css('MozUserSelect', 'none') + .bind('selectstart.ui', function() { return false; }); + }, + + scrollParent: function() { + + var scrollParent; + if(($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { + scrollParent = this.parents().filter(function() { + return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); + }).eq(0); + } else { + scrollParent = this.parents().filter(function() { + return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); + }).eq(0); + } + + return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent; + + + } + +}); + + +//Additional selectors +$.extend($.expr[':'], { + + data: function(a, i, m) { + return $.data(a, m[3]); + }, + + // TODO: add support for object, area + tabbable: function(a, i, m) { + + var nodeName = a.nodeName.toLowerCase(); + function isVisible(element) { + return !($(element).is(':hidden') || $(element).parents(':hidden').length); + } + + return ( + // in tab order + a.tabIndex >= 0 && + + ( // filter node types that participate in the tab order + + // anchor tag + ('a' == nodeName && a.href) || + + // enabled form element + (/input|select|textarea|button/.test(nodeName) && + 'hidden' != a.type && !a.disabled) + ) && + + // visible on page + isVisible(a) + ); + + } + +}); + + +// $.widget is a factory to create jQuery plugins +// taking some boilerplate code out of the plugin code +function getter(namespace, plugin, method, args) { + function getMethods(type) { + var methods = $[namespace][plugin][type] || []; + return (typeof methods == 'string' ? methods.split(/,?\s+/) : methods); + } + + var methods = getMethods('getter'); + if (args.length == 1 && typeof args[0] == 'string') { + methods = methods.concat(getMethods('getterSetter')); + } + return ($.inArray(method, methods) != -1); +} + +$.widget = function(name, prototype) { + var namespace = name.split(".")[0]; + name = name.split(".")[1]; + + // create plugin method + $.fn[name] = function(options) { + var isMethodCall = (typeof options == 'string'), + args = Array.prototype.slice.call(arguments, 1); + + // prevent calls to internal methods + if (isMethodCall && options.substring(0, 1) == '_') { + return this; + } + + // handle getter methods + if (isMethodCall && getter(namespace, name, options, args)) { + var instance = $.data(this[0], name); + return (instance ? instance[options].apply(instance, args) + : undefined); + } + + // handle initialization and non-getter methods + return this.each(function() { + var instance = $.data(this, name); + + // constructor + (!instance && !isMethodCall && + $.data(this, name, new $[namespace][name](this, options))); + + // method call + (instance && isMethodCall && $.isFunction(instance[options]) && + instance[options].apply(instance, args)); + }); + }; + + // create widget constructor + $[namespace] = $[namespace] || {}; + $[namespace][name] = function(element, options) { + var self = this; + + this.widgetName = name; + this.widgetEventPrefix = $[namespace][name].eventPrefix || name; + this.widgetBaseClass = namespace + '-' + name; + + this.options = $.extend({}, + $.widget.defaults, + $[namespace][name].defaults, + $.metadata && $.metadata.get(element)[name], + options); + + this.element = $(element) + .bind('setData.' + name, function(event, key, value) { + return self._setData(key, value); + }) + .bind('getData.' + name, function(event, key) { + return self._getData(key); + }) + .bind('remove', function() { + return self.destroy(); + }); + + this._init(); + }; + + // add widget prototype + $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype); + + // TODO: merge getter and getterSetter properties from widget prototype + // and plugin prototype + $[namespace][name].getterSetter = 'option'; +}; + +$.widget.prototype = { + _init: function() {}, + destroy: function() { + this.element.removeData(this.widgetName); + }, + + option: function(key, value) { + var options = key, + self = this; + + if (typeof key == "string") { + if (value === undefined) { + return this._getData(key); + } + options = {}; + options[key] = value; + } + + $.each(options, function(key, value) { + self._setData(key, value); + }); + }, + _getData: function(key) { + return this.options[key]; + }, + _setData: function(key, value) { + this.options[key] = value; + + if (key == 'disabled') { + this.element[value ? 'addClass' : 'removeClass']( + this.widgetBaseClass + '-disabled'); + } + }, + + enable: function() { + this._setData('disabled', false); + }, + disable: function() { + this._setData('disabled', true); + }, + + _trigger: function(type, event, data) { + var eventName = (type == this.widgetEventPrefix + ? type : this.widgetEventPrefix + type); + event = event || $.event.fix({ type: eventName, target: this.element[0] }); + return this.element.triggerHandler(eventName, [event, data], this.options[type]); + } +}; + +$.widget.defaults = { + disabled: false +}; + + +/** Mouse Interaction Plugin **/ + +$.ui.mouse = { + _mouseInit: function() { + var self = this; + + this.element + .bind('mousedown.'+this.widgetName, function(event) { + return self._mouseDown(event); + }) + .bind('click.'+this.widgetName, function(event) { + if(self._preventClickEvent) { + self._preventClickEvent = false; + return false; + } + }); + + // Prevent text selection in IE + if ($.browser.msie) { + this._mouseUnselectable = this.element.attr('unselectable'); + this.element.attr('unselectable', 'on'); + } + + this.started = false; + }, + + // TODO: make sure destroying one instance of mouse doesn't mess with + // other instances of mouse + _mouseDestroy: function() { + this.element.unbind('.'+this.widgetName); + + // Restore text selection in IE + ($.browser.msie + && this.element.attr('unselectable', this._mouseUnselectable)); + }, + + _mouseDown: function(event) { + // we may have missed mouseup (out of window) + (this._mouseStarted && this._mouseUp(event)); + + this._mouseDownEvent = event; + + var self = this, + btnIsLeft = (event.which == 1), + elIsCancel = (typeof this.options.cancel == "string" ? $(event.target).parents().add(event.target).filter(this.options.cancel).length : false); + if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) { + return true; + } + + this.mouseDelayMet = !this.options.delay; + if (!this.mouseDelayMet) { + this._mouseDelayTimer = setTimeout(function() { + self.mouseDelayMet = true; + }, this.options.delay); + } + + if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { + this._mouseStarted = (this._mouseStart(event) !== false); + if (!this._mouseStarted) { + event.preventDefault(); + return true; + } + } + + // these delegates are required to keep context + this._mouseMoveDelegate = function(event) { + return self._mouseMove(event); + }; + this._mouseUpDelegate = function(event) { + return self._mouseUp(event); + }; + $(document) + .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) + .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); + + // preventDefault() is used to prevent the selection of text here - + // however, in Safari, this causes select boxes not to be selectable + // anymore, so this fix is needed + if(!$.browser.safari) event.preventDefault(); + return true; + }, + + _mouseMove: function(event) { + // IE mouseup check - mouseup happened when mouse was out of window + if ($.browser.msie && !event.button) { + return this._mouseUp(event); + } + + if (this._mouseStarted) { + this._mouseDrag(event); + return event.preventDefault(); + } + + if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { + this._mouseStarted = + (this._mouseStart(this._mouseDownEvent, event) !== false); + (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event)); + } + + return !this._mouseStarted; + }, + + _mouseUp: function(event) { + $(document) + .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) + .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); + + if (this._mouseStarted) { + this._mouseStarted = false; + this._preventClickEvent = true; + this._mouseStop(event); + } + + return false; + }, + + _mouseDistanceMet: function(event) { + return (Math.max( + Math.abs(this._mouseDownEvent.pageX - event.pageX), + Math.abs(this._mouseDownEvent.pageY - event.pageY) + ) >= this.options.distance + ); + }, + + _mouseDelayMet: function(event) { + return this.mouseDelayMet; + }, + + // These are placeholder methods, to be overriden by extending plugin + _mouseStart: function(event) {}, + _mouseDrag: function(event) {}, + _mouseStop: function(event) {}, + _mouseCapture: function(event) { return true; } +}; + +$.ui.mouse.defaults = { + cancel: null, + distance: 1, + delay: 0 +}; + +})(jQuery); +/* + * jQuery UI Draggable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Draggables + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.draggable", $.extend({}, $.ui.mouse, { + + _init: function() { + + if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position"))) + this.element[0].style.position = 'relative'; + + (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-draggable")); + (this.options.disabled && this.element.addClass('ui-draggable-disabled')); + + this._mouseInit(); + + }, + + destroy: function() { + if(!this.element.data('draggable')) return; + this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable ui-draggable-dragging ui-draggable-disabled'); + this._mouseDestroy(); + }, + + _mouseCapture: function(event) { + + var o = this.options; + + if (this.helper || o.disabled || $(event.target).is('.ui-resizable-handle')) + return false; + + //Quit if we're not on a valid handle + this.handle = this._getHandle(event); + if (!this.handle) + return false; + + return true; + + }, + + _mouseStart: function(event) { + + var o = this.options; + + //Create and append the visible helper + this.helper = this._createHelper(event); + + //Cache the helper size + this._cacheHelperProportions(); + + //If ddmanager is used for droppables, set the global draggable + if($.ui.ddmanager) + $.ui.ddmanager.current = this; + + /* + * - Position generation - + * This block generates everything position related - it's the core of draggables. + */ + + //Cache the margins of the original element + this._cacheMargins(); + + //Store the helper's css position + this.cssPosition = this.helper.css("position"); + this.scrollParent = this.helper.scrollParent(); + + //The element's absolute position on the page minus margins + this.offset = this.element.offset(); + this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left + }; + + $.extend(this.offset, { + click: { //Where the click happened, relative to the element + left: event.pageX - this.offset.left, + top: event.pageY - this.offset.top + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper + }); + + //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied + if(o.cursorAt) + this._adjustOffsetFromHelper(o.cursorAt); + + //Generate the original position + this.originalPosition = this._generatePosition(event); + + //Set a containment if given in the options + if(o.containment) + this._setContainment(); + + //Call plugins and callbacks + this._propagate("start", event); + + //Recache the helper size + this._cacheHelperProportions(); + + //Prepare the droppable offsets + if ($.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(this, event); + + this.helper.addClass("ui-draggable-dragging"); + this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position + return true; + }, + + _mouseDrag: function(event, noPropagation) { + + //Compute the helpers position + this.position = this._generatePosition(event); + this.positionAbs = this._convertPositionTo("absolute"); + + //Call plugins and callbacks and use the resulting position if something is returned + if(!noPropagation) this.position = this._propagate("drag", event) || this.position; + + if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; + if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; + if($.ui.ddmanager) $.ui.ddmanager.drag(this, event); + + return false; + }, + + _mouseStop: function(event) { + + //If we are using droppables, inform the manager about the drop + var dropped = false; + if ($.ui.ddmanager && !this.options.dropBehaviour) + var dropped = $.ui.ddmanager.drop(this, event); + + if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) { + var self = this; + $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() { + self._propagate("stop", event); + self._clear(); + }); + } else { + this._propagate("stop", event); + this._clear(); + } + + return false; + }, + + _getHandle: function(event) { + + var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false; + $(this.options.handle, this.element) + .find("*") + .andSelf() + .each(function() { + if(this == event.target) handle = true; + }); + + return handle; + + }, + + _createHelper: function(event) { + + var o = this.options; + var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper == 'clone' ? this.element.clone() : this.element); + + if(!helper.parents('body').length) + helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo)); + + if(helper[0] != this.element[0] && !(/(fixed|absolute)/).test(helper.css("position"))) + helper.css("position", "absolute"); + + return helper; + + }, + + _adjustOffsetFromHelper: function(obj) { + if(obj.left != undefined) this.offset.click.left = obj.left + this.margins.left; + if(obj.right != undefined) this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; + if(obj.top != undefined) this.offset.click.top = obj.top + this.margins.top; + if(obj.bottom != undefined) this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; + }, + + _getParentOffset: function() { + + this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); //Get the offsetParent and cache its position + + if((this.offsetParent[0] == document.body && $.browser.mozilla) //Ugly FF3 fix + || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.browser.msie)) //Ugly IE fix + po = { top: 0, left: 0 }; + + return { + top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), + left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) + }; + + }, + + _getRelativeOffset: function() { + + if(this.cssPosition == "relative") { + var p = this.element.position(); + return { + top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(), + left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft() + }; + } else { + 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) + }; + }, + + _cacheHelperProportions: function() { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight() + }; + }, + + _setContainment: function() { + + var o = this.options; + if(o.containment == 'parent') o.containment = this.helper[0].parentNode; + if(o.containment == 'document' || o.containment == 'window') this.containment = [ + 0 - this.offset.relative.left - this.offset.parent.left, + 0 - this.offset.relative.top - this.offset.parent.top, + $(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0), + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0) + ]; + + if(!(/^(document|window|parent)$/).test(o.containment)) { + var ce = $(o.containment)[0]; + var co = $(o.containment).offset(); + var over = ($(ce).css("overflow") != 'hidden'); + + this.containment = [ + co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, + co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top, + co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left, + co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top + ]; + } + + }, + + _convertPositionTo: function(d, pos) { + + if(!pos) pos = this.position; + var mod = d == "absolute" ? 1 : -1; + var scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + return { + top: ( + pos.top // the calculated relative position + + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod + + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods) + ), + left: ( + pos.left // the calculated relative position + + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : ( scrollIsRootNode ? 0 : scroll.scrollLeft() ) ) * mod + + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods) + ) + }; + }, + + _generatePosition: function(event) { + + var o = this.options, scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + var position = { + top: ( + event.pageY // The absolute mouse position + - this.offset.click.top // Click offset (relative to the element) + - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.top // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) + ), + left: ( + event.pageX // The absolute mouse position + - this.offset.click.left // Click offset (relative to the element) + - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.left // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) + ) + }; + + if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options + + /* + * - Position constraining - + * Constrain the position to a mix of grid, containment. + */ + if(this.containment) { + if(position.left < this.containment[0]) position.left = this.containment[0]; + if(position.top < this.containment[1]) position.top = this.containment[1]; + if(position.left > this.containment[2]) position.left = this.containment[2]; + if(position.top > this.containment[3]) position.top = this.containment[3]; + } + + if(o.grid) { + var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1]; + position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; + + var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0]; + position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; + } + + return position; + }, + + _clear: function() { + this.helper.removeClass("ui-draggable-dragging"); + if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove(); + //if($.ui.ddmanager) $.ui.ddmanager.current = null; + this.helper = null; + this.cancelHelperRemoval = false; + }, + + // From now on bulk stuff - mainly helpers + + _propagate: function(n, event) { + $.ui.plugin.call(this, n, [event, this._uiHash()]); + if(n == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins + return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [event, this._uiHash()], this.options[n]); + }, + + plugins: {}, + + _uiHash: function(event) { + return { + helper: this.helper, + position: this.position, + absolutePosition: this.positionAbs, + options: this.options + }; + } + +})); + +$.extend($.ui.draggable, { + version: "1.6", + defaults: { + appendTo: "parent", + axis: false, + cancel: ":input", + connectToSortable: false, + containment: false, + cssNamespace: "ui", + cursor: "default", + cursorAt: null, + delay: 0, + distance: 1, + grid: false, + handle: false, + helper: "original", + iframeFix: false, + opacity: 1, + refreshPositions: false, + revert: false, + revertDuration: 500, + scope: "default", + scroll: true, + scrollSensitivity: 20, + scrollSpeed: 20, + snap: false, + snapMode: "both", + snapTolerance: 20, + stack: false, + zIndex: null + } +}); + +$.ui.plugin.add("draggable", "connectToSortable", { + start: function(event, ui) { + + var inst = $(this).data("draggable"); + inst.sortables = []; + $(ui.options.connectToSortable).each(function() { + // 'this' points to a string, and should therefore resolved as query, but instead, if the string is assigned to a variable, it loops through the strings properties, + // so we have to append '' to make it anonymous again + $(this+'').each(function() { + if($.data(this, 'sortable')) { + var sortable = $.data(this, 'sortable'); + inst.sortables.push({ + instance: sortable, + shouldRevert: sortable.options.revert + }); + sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache + sortable._propagate("activate", event, inst); + } + }); + }); + + }, + stop: function(event, ui) { + + //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper + var inst = $(this).data("draggable"); + + $.each(inst.sortables, function() { + if(this.instance.isOver) { + this.instance.isOver = 0; + inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance + this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work) + if(this.shouldRevert) this.instance.options.revert = true; //revert here + this.instance._mouseStop(event); + + //Also propagate receive event, since the sortable is actually receiving a element + this.instance.element.triggerHandler("sortreceive", [event, $.extend(this.instance._ui(), { sender: inst.element })], this.instance.options["receive"]); + + this.instance.options.helper = this.instance.options._helper; + + if(inst.options.helper == 'original') { + this.instance.currentItem.css({ top: 'auto', left: 'auto' }); + } + + } else { + this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance + this.instance._propagate("deactivate", event, inst); + } + + }); + + }, + drag: function(event, ui) { + + var inst = $(this).data("draggable"), self = this; + + var checkPos = function(o) { + var dyClick = this.offset.click.top, dxClick = this.offset.click.left; + var helperTop = this.positionAbs.top, helperLeft = this.positionAbs.left; + var itemHeight = o.height, itemWidth = o.width; + var itemTop = o.top, itemLeft = o.left; + + return $.ui.isOver(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth); + }; + + $.each(inst.sortables, function(i) { + + if(checkPos.call(inst, this.instance.containerCache)) { + + //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once + if(!this.instance.isOver) { + this.instance.isOver = 1; + //Now we fake the start of dragging for the sortable instance, + //by cloning the list group item, appending it to the sortable and using it as inst.currentItem + //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one) + this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true); + this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it + this.instance.options.helper = function() { return ui.helper[0]; }; + + event.target = this.instance.currentItem[0]; + this.instance._mouseCapture(event, true); + this.instance._mouseStart(event, true, true); + + //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes + this.instance.offset.click.top = inst.offset.click.top; + this.instance.offset.click.left = inst.offset.click.left; + this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left; + this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top; + + inst._propagate("toSortable", event); + + } + + //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable + if(this.instance.currentItem) this.instance._mouseDrag(event); + + } else { + + //If it doesn't intersect with the sortable, and it intersected before, + //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval + if(this.instance.isOver) { + this.instance.isOver = 0; + this.instance.cancelHelperRemoval = true; + this.instance.options.revert = false; //No revert here + this.instance._mouseStop(event, true); + this.instance.options.helper = this.instance.options._helper; + + //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size + this.instance.currentItem.remove(); + if(this.instance.placeholder) this.instance.placeholder.remove(); + + inst._propagate("fromSortable", event); + } + + }; + + }); + + } +}); + +$.ui.plugin.add("draggable", "cursor", { + start: function(event, ui) { + var t = $('body'); + if (t.css("cursor")) ui.options._cursor = t.css("cursor"); + t.css("cursor", ui.options.cursor); + }, + stop: function(event, ui) { + if (ui.options._cursor) $('body').css("cursor", ui.options._cursor); + } +}); + +$.ui.plugin.add("draggable", "iframeFix", { + start: function(event, ui) { + $(ui.options.iframeFix === true ? "iframe" : ui.options.iframeFix).each(function() { + $('
          ') + .css({ + width: this.offsetWidth+"px", height: this.offsetHeight+"px", + position: "absolute", opacity: "0.001", zIndex: 1000 + }) + .css($(this).offset()) + .appendTo("body"); + }); + }, + stop: function(event, ui) { + $("div.ui-draggable-iframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers + } +}); + +$.ui.plugin.add("draggable", "opacity", { + start: function(event, ui) { + var t = $(ui.helper); + if(t.css("opacity")) ui.options._opacity = t.css("opacity"); + t.css('opacity', ui.options.opacity); + }, + stop: function(event, ui) { + if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity); + } +}); + +$.ui.plugin.add("draggable", "scroll", { + start: function(event, ui) { + var o = ui.options; + var i = $(this).data("draggable"); + + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset(); + + }, + drag: function(event, ui) { + + var o = ui.options, scrolled = false; + var i = $(this).data("draggable"); + + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') { + + if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed; + else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed; + + if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed; + else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed; + + } else { + + if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); + else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); + + if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); + else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); + + } + + if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(i, event); + + + + // This is a special case where we need to modify a offset calculated on start, since the following happened: + // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent + // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that + // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag + if(scrolled !== false && i.cssPosition == 'absolute' && i.scrollParent[0] != document && $.ui.contains(i.scrollParent[0], i.offsetParent[0])) { + i.offset.parent = i._getParentOffset(); + + } + + // This is another very weird special case that only happens for relative elements: + // 1. If the css position is relative + // 2. and the scroll parent is the document or similar to the offset parent + // we have to refresh the relative offset during the scroll so there are no jumps + if(scrolled !== false && i.cssPosition == 'relative' && !(i.scrollParent[0] != document && i.scrollParent[0] != i.offsetParent[0])) { + i.offset.relative = i._getRelativeOffset(); + } + + + } +}); + +$.ui.plugin.add("draggable", "snap", { + start: function(event, ui) { + + var inst = $(this).data("draggable"); + inst.snapElements = []; + + $(ui.options.snap.constructor != String ? ( ui.options.snap.items || ':data(draggable)' ) : ui.options.snap).each(function() { + var $t = $(this); var $o = $t.offset(); + if(this != inst.element[0]) inst.snapElements.push({ + item: this, + width: $t.outerWidth(), height: $t.outerHeight(), + top: $o.top, left: $o.left + }); + }); + + }, + drag: function(event, ui) { + + var inst = $(this).data("draggable"); + var d = ui.options.snapTolerance; + + var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width, + y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height; + + for (var i = inst.snapElements.length - 1; i >= 0; i--){ + + var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width, + t = inst.snapElements[i].top, b = t + inst.snapElements[i].height; + + //Yes, I know, this is insane ;) + if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) { + if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); + inst.snapElements[i].snapping = false; + continue; + } + + if(ui.options.snapMode != 'inner') { + var ts = Math.abs(t - y2) <= d; + var bs = Math.abs(b - y1) <= d; + var ls = Math.abs(l - x2) <= d; + var rs = Math.abs(r - x1) <= d; + if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top; + if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top; + if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left; + if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left; + } + + var first = (ts || bs || ls || rs); + + if(ui.options.snapMode != 'outer') { + var ts = Math.abs(t - y1) <= d; + var bs = Math.abs(b - y2) <= d; + var ls = Math.abs(l - x1) <= d; + var rs = Math.abs(r - x2) <= d; + if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top; + if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top; + if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left; + if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left; + } + + if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) + (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); + inst.snapElements[i].snapping = (ts || bs || ls || rs || first); + + }; + + } +}); + +$.ui.plugin.add("draggable", "stack", { + start: function(event, ui) { + var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) { + return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min); + }); + + $(group).each(function(i) { + this.style.zIndex = ui.options.stack.min + i; + }); + + this[0].style.zIndex = ui.options.stack.min + group.length; + } +}); + +$.ui.plugin.add("draggable", "zIndex", { + start: function(event, ui) { + var t = $(ui.helper); + if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex"); + t.css('zIndex', ui.options.zIndex); + }, + stop: function(event, ui) { + if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex); + } +}); + +})(jQuery); +/* + * jQuery UI Droppable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Droppables + * + * Depends: + * ui.core.js + * ui.draggable.js + */ +(function($) { + +$.widget("ui.droppable", { + + _init: function() { + + var o = this.options, accept = o.accept; + this.isover = 0; this.isout = 1; + + this.options.accept = this.options.accept && $.isFunction(this.options.accept) ? this.options.accept : function(d) { + return d.is(accept); + }; + + //Store the droppable's proportions + this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight }; + + // Add the reference and positions to the manager + $.ui.ddmanager.droppables[this.options.scope] = $.ui.ddmanager.droppables[this.options.scope] || []; + $.ui.ddmanager.droppables[this.options.scope].push(this); + + (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-droppable")); + + }, + + destroy: function() { + var drop = $.ui.ddmanager.droppables[this.options.scope]; + for ( var i = 0; i < drop.length; i++ ) + if ( drop[i] == this ) + drop.splice(i, 1); + + this.element + .removeClass("ui-droppable-disabled") + .removeData("droppable") + .unbind(".droppable"); + }, + + _setData: function(key, value) { + + if(key == 'accept') { + this.options.accept = value && $.isFunction(value) ? value : function(d) { + return d.is(accept); + }; + } else { + $.widget.prototype._setData.apply(this, arguments); + } + + }, + + _activate: function(event) { + + var draggable = $.ui.ddmanager.current; + $.ui.plugin.call(this, 'activate', [event, this.ui(draggable)]); + if(draggable) this.element.triggerHandler("dropactivate", [event, this.ui(draggable)], this.options.activate); + + }, + + _deactivate: function(event) { + + var draggable = $.ui.ddmanager.current; + $.ui.plugin.call(this, 'deactivate', [event, this.ui(draggable)]); + if(draggable) this.element.triggerHandler("dropdeactivate", [event, this.ui(draggable)], this.options.deactivate); + + }, + + _over: function(event) { + + var draggable = $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element + + if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { + $.ui.plugin.call(this, 'over', [event, this.ui(draggable)]); + this.element.triggerHandler("dropover", [event, this.ui(draggable)], this.options.over); + } + + }, + + _out: function(event) { + + var draggable = $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element + + if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { + $.ui.plugin.call(this, 'out', [event, this.ui(draggable)]); + this.element.triggerHandler("dropout", [event, this.ui(draggable)], this.options.out); + } + + }, + + _drop: function(event,custom) { + + var draggable = custom || $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element + + var childrenIntersection = false; + this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() { + var inst = $.data(this, 'droppable'); + if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) { + childrenIntersection = true; return false; + } + }); + if(childrenIntersection) return false; + + if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { + $.ui.plugin.call(this, 'drop', [event, this.ui(draggable)]); + this.element.triggerHandler("drop", [event, this.ui(draggable)], this.options.drop); + return this.element; + } + + return false; + + }, + + plugins: {}, + + ui: function(c) { + return { + draggable: (c.currentItem || c.element), + helper: c.helper, + position: c.position, + absolutePosition: c.positionAbs, + options: this.options, + element: this.element + }; + } + +}); + +$.extend($.ui.droppable, { + version: "1.6", + defaults: { + accept: '*', + activeClass: null, + cssNamespace: 'ui', + greedy: false, + hoverClass: null, + scope: 'default', + tolerance: 'intersect' + } +}); + +$.ui.intersect = function(draggable, droppable, toleranceMode) { + + if (!droppable.offset) return false; + + var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width, + y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height; + var l = droppable.offset.left, r = l + droppable.proportions.width, + t = droppable.offset.top, b = t + droppable.proportions.height; + + switch (toleranceMode) { + case 'fit': + return (l < x1 && x2 < r + && t < y1 && y2 < b); + break; + case 'intersect': + return (l < x1 + (draggable.helperProportions.width / 2) // Right Half + && x2 - (draggable.helperProportions.width / 2) < r // Left Half + && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half + && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half + break; + case 'pointer': + var draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left), + draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top), + isOver = $.ui.isOver(draggableTop, draggableLeft, t, l, droppable.proportions.height, droppable.proportions.width); + return isOver; + break; + case 'touch': + return ( + (y1 >= t && y1 <= b) || // Top edge touching + (y2 >= t && y2 <= b) || // Bottom edge touching + (y1 < t && y2 > b) // Surrounded vertically + ) && ( + (x1 >= l && x1 <= r) || // Left edge touching + (x2 >= l && x2 <= r) || // Right edge touching + (x1 < l && x2 > r) // Surrounded horizontally + ); + break; + default: + return false; + break; + } + +}; + +/* + This manager tracks offsets of draggables and droppables +*/ +$.ui.ddmanager = { + current: null, + droppables: { 'default': [] }, + prepareOffsets: function(t, event) { + + var m = $.ui.ddmanager.droppables[t.options.scope]; + var type = event ? event.type : null; // workaround for #2317 + var list = (t.currentItem || t.element).find(":data(droppable)").andSelf(); + + droppablesLoop: for (var i = 0; i < m.length; i++) { + + if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue; //No disabled and non-accepted + for (var j=0; j < list.length; j++) { if(list[j] == m[i].element[0]) { m[i].proportions.height = 0; continue droppablesLoop; } }; //Filter out elements in the current dragged item + m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue + + m[i].offset = m[i].element.offset(); + m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight }; + + if(type == "dragstart" || type == "sortactivate") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables + + } + + }, + drop: function(draggable, event) { + + var dropped = false; + $.each($.ui.ddmanager.droppables[draggable.options.scope], function() { + + if(!this.options) return; + if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) + dropped = this._drop.call(this, event); + + if (!this.options.disabled && this.visible && this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { + this.isout = 1; this.isover = 0; + this._deactivate.call(this, event); + } + + }); + return dropped; + + }, + drag: function(draggable, event) { + + //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse. + if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event); + + //Run through all droppables and check their positions based on specific tolerance options + + $.each($.ui.ddmanager.droppables[draggable.options.scope], function() { + + if(this.options.disabled || this.greedyChild || !this.visible) return; + var intersects = $.ui.intersect(draggable, this, this.options.tolerance); + + var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null); + if(!c) return; + + var parentInstance; + if (this.options.greedy) { + var parent = this.element.parents(':data(droppable):eq(0)'); + if (parent.length) { + parentInstance = $.data(parent[0], 'droppable'); + parentInstance.greedyChild = (c == 'isover' ? 1 : 0); + } + } + + // we just moved into a greedy child + if (parentInstance && c == 'isover') { + parentInstance['isover'] = 0; + parentInstance['isout'] = 1; + parentInstance._out.call(parentInstance, event); + } + + this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0; + this[c == "isover" ? "_over" : "_out"].call(this, event); + + // we just moved out of a greedy child + if (parentInstance && c == 'isout') { + parentInstance['isout'] = 0; + parentInstance['isover'] = 1; + parentInstance._over.call(parentInstance, event); + } + }); + + } +}; + +/* + * Droppable Extensions + */ + +$.ui.plugin.add("droppable", "activeClass", { + activate: function(event, ui) { + $(this).addClass(ui.options.activeClass); + }, + deactivate: function(event, ui) { + $(this).removeClass(ui.options.activeClass); + }, + drop: function(event, ui) { + $(this).removeClass(ui.options.activeClass); + } +}); + +$.ui.plugin.add("droppable", "hoverClass", { + over: function(event, ui) { + $(this).addClass(ui.options.hoverClass); + }, + out: function(event, ui) { + $(this).removeClass(ui.options.hoverClass); + }, + drop: function(event, ui) { + $(this).removeClass(ui.options.hoverClass); + } +}); + +})(jQuery); +/* + * jQuery UI Resizable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Resizables + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.resizable", $.extend({}, $.ui.mouse, { + + _init: function() { + + var self = this, o = this.options; + + var elpos = this.element.css('position'); + + this.originalElement = this.element; + + // simulate .ui-resizable { position: relative; } + this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos }); + + $.extend(o, { + _aspectRatio: !!(o.aspectRatio), + helper: o.helper || o.ghost || o.animate ? o.helper || 'ui-resizable-helper' : null, + knobHandles: o.knobHandles === true ? 'ui-resizable-knob-handle' : o.knobHandles + }); + + //Default Theme + var aBorder = '1px solid #DEDEDE'; + + o.defaultTheme = { + 'ui-resizable': { display: 'block' }, + 'ui-resizable-handle': { position: 'absolute', background: '#F2F2F2', fontSize: '0.1px' }, + 'ui-resizable-n': { cursor: 'n-resize', height: '4px', left: '0px', right: '0px', borderTop: aBorder }, + 'ui-resizable-s': { cursor: 's-resize', height: '4px', left: '0px', right: '0px', borderBottom: aBorder }, + 'ui-resizable-e': { cursor: 'e-resize', width: '4px', top: '0px', bottom: '0px', borderRight: aBorder }, + 'ui-resizable-w': { cursor: 'w-resize', width: '4px', top: '0px', bottom: '0px', borderLeft: aBorder }, + 'ui-resizable-se': { cursor: 'se-resize', width: '4px', height: '4px', borderRight: aBorder, borderBottom: aBorder }, + 'ui-resizable-sw': { cursor: 'sw-resize', width: '4px', height: '4px', borderBottom: aBorder, borderLeft: aBorder }, + 'ui-resizable-ne': { cursor: 'ne-resize', width: '4px', height: '4px', borderRight: aBorder, borderTop: aBorder }, + 'ui-resizable-nw': { cursor: 'nw-resize', width: '4px', height: '4px', borderLeft: aBorder, borderTop: aBorder } + }; + + o.knobTheme = { + 'ui-resizable-handle': { background: '#F2F2F2', border: '1px solid #808080', height: '8px', width: '8px' }, + 'ui-resizable-n': { cursor: 'n-resize', top: '0px', left: '45%' }, + 'ui-resizable-s': { cursor: 's-resize', bottom: '0px', left: '45%' }, + 'ui-resizable-e': { cursor: 'e-resize', right: '0px', top: '45%' }, + 'ui-resizable-w': { cursor: 'w-resize', left: '0px', top: '45%' }, + 'ui-resizable-se': { cursor: 'se-resize', right: '0px', bottom: '0px' }, + 'ui-resizable-sw': { cursor: 'sw-resize', left: '0px', bottom: '0px' }, + 'ui-resizable-nw': { cursor: 'nw-resize', left: '0px', top: '0px' }, + 'ui-resizable-ne': { cursor: 'ne-resize', right: '0px', top: '0px' } + }; + + o._nodeName = this.element[0].nodeName; + + //Wrap the element if it cannot hold child nodes + if(o._nodeName.match(/canvas|textarea|input|select|button|img/i)) { + var el = this.element; + + //Opera fixing relative position + if (/relative/.test(el.css('position')) && $.browser.opera) + el.css({ position: 'relative', top: 'auto', left: 'auto' }); + + //Create a wrapper element and set the wrapper to the new current internal element + el.wrap( + $('
          ').css( { + position: el.css('position'), + width: el.outerWidth(), + height: el.outerHeight(), + top: el.css('top'), + left: el.css('left') + }) + ); + + var oel = this.element; this.element = this.element.parent(); + + // store instance on wrapper + this.element.data('resizable', this); + + //Move margins to the wrapper + this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"), + marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom") + }); + + oel.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0}); + + //Prevent Safari textarea resize + if ($.browser.safari && o.preventDefault) oel.css('resize', 'none'); + + o.proportionallyResize = oel.css({ position: 'static', zoom: 1, display: 'block' }); + + // avoid IE jump + this.element.css({ margin: oel.css('margin') }); + + // fix handlers offset + this._proportionallyResize(); + } + + if(!o.handles) o.handles = !$('.ui-resizable-handle', this.element).length ? "e,s,se" : { 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' }; + if(o.handles.constructor == String) { + + o.zIndex = o.zIndex || 1000; + + if(o.handles == 'all') o.handles = 'n,e,s,w,se,sw,ne,nw'; + + var n = o.handles.split(","); o.handles = {}; + + // insertions are applied when don't have theme loaded + var insertionsDefault = { + handle: 'position: absolute; display: none; overflow:hidden;', + n: 'top: 0pt; width:100%;', + e: 'right: 0pt; height:100%;', + s: 'bottom: 0pt; width:100%;', + w: 'left: 0pt; height:100%;', + se: 'bottom: 0pt; right: 0px;', + sw: 'bottom: 0pt; left: 0px;', + ne: 'top: 0pt; right: 0px;', + nw: 'top: 0pt; left: 0px;' + }; + + for(var i = 0; i < n.length; i++) { + var handle = $.trim(n[i]), dt = o.defaultTheme, hname = 'ui-resizable-'+handle, loadDefault = !$.ui.css(hname) && !o.knobHandles, userKnobClass = $.ui.css('ui-resizable-knob-handle'), + allDefTheme = $.extend(dt[hname], dt['ui-resizable-handle']), allKnobTheme = $.extend(o.knobTheme[hname], !userKnobClass ? o.knobTheme['ui-resizable-handle'] : {}); + + // increase zIndex of sw, se, ne, nw axis + var applyZIndex = /sw|se|ne|nw/.test(handle) ? { zIndex: ++o.zIndex } : {}; + + var defCss = (loadDefault ? insertionsDefault[handle] : ''), + axis = $(['
          '].join('')).css( applyZIndex ); + o.handles[handle] = '.ui-resizable-'+handle; + + this.element.append( + //Theme detection, if not loaded, load o.defaultTheme + axis.css( loadDefault ? allDefTheme : {} ) + // Load the knobHandle css, fix width, height, top, left... + .css( o.knobHandles ? allKnobTheme : {} ).addClass(o.knobHandles ? 'ui-resizable-knob-handle' : '').addClass(o.knobHandles) + ); + } + + if (o.knobHandles) this.element.addClass('ui-resizable-knob').css( !$.ui.css('ui-resizable-knob') ? { /*border: '1px #fff dashed'*/ } : {} ); + } + + this._renderAxis = function(target) { + target = target || this.element; + + for(var i in o.handles) { + if(o.handles[i].constructor == String) + o.handles[i] = $(o.handles[i], this.element).show(); + + if (o.transparent) + o.handles[i].css({opacity:0}); + + //Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls) + if (this.element.is('.ui-wrapper') && + o._nodeName.match(/textarea|input|select|button/i)) { + + var axis = $(o.handles[i], this.element), padWrapper = 0; + + //Checking the correct pad and border + padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth(); + + //The padding type i have to apply... + var padPos = [ 'padding', + /ne|nw|n/.test(i) ? 'Top' : + /se|sw|s/.test(i) ? 'Bottom' : + /^e$/.test(i) ? 'Right' : 'Left' ].join(""); + + if (!o.transparent) + target.css(padPos, padWrapper); + + this._proportionallyResize(); + } + if(!$(o.handles[i]).length) continue; + } + }; + + this._renderAxis(this.element); + o._handles = $('.ui-resizable-handle', self.element); + + if (o.disableSelection) + o._handles.disableSelection(); + + //Matching axis name + o._handles.mouseover(function() { + if (!o.resizing) { + if (this.className) + var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i); + //Axis, default = se + self.axis = o.axis = axis && axis[1] ? axis[1] : 'se'; + } + }); + + //If we want to auto hide the elements + if (o.autoHide) { + o._handles.hide(); + $(self.element).addClass("ui-resizable-autohide").hover(function() { + $(this).removeClass("ui-resizable-autohide"); + o._handles.show(); + }, + function(){ + if (!o.resizing) { + $(this).addClass("ui-resizable-autohide"); + o._handles.hide(); + } + }); + } + + this._mouseInit(); + }, + + destroy: function() { + var el = this.element, wrapped = el.children(".ui-resizable").get(0); + + this._mouseDestroy(); + + var _destroy = function(exp) { + $(exp).removeClass("ui-resizable ui-resizable-disabled") + .removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove(); + }; + + _destroy(el); + + if (el.is('.ui-wrapper') && wrapped) { + el.parent().append( + $(wrapped).css({ + position: el.css('position'), + width: el.outerWidth(), + height: el.outerHeight(), + top: el.css('top'), + left: el.css('left') + }) + ).end().remove(); + + _destroy(wrapped); + } + }, + + _mouseCapture: function(event) { + + if(this.options.disabled) return false; + + var handle = false; + for(var i in this.options.handles) { + if($(this.options.handles[i])[0] == event.target) handle = true; + } + if (!handle) return false; + + return true; + + }, + + _mouseStart: function(event) { + + var o = this.options, iniPos = this.element.position(), el = this.element, + ie6 = $.browser.msie && $.browser.version < 7; + o.resizing = true; + o.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() }; + + // bugfix #1749 + if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) { + + // sOffset decides if document scrollOffset will be added to the top/left of the resizable element + var sOffset = $.browser.msie && !o.containment && (/absolute/).test(el.css('position')) && !(/relative/).test(el.parent().css('position')); + var dscrollt = sOffset ? this.documentScroll.top : 0, dscrolll = sOffset ? this.documentScroll.left : 0; + + el.css({ position: 'absolute', top: (iniPos.top + dscrollt), left: (iniPos.left + dscrolll) }); + } + + //Opera fixing relative position + if ($.browser.opera && (/relative/).test(el.css('position'))) + el.css({ position: 'relative', top: 'auto', left: 'auto' }); + + this._renderProxy(); + + var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top')); + + if (o.containment) { + curleft += $(o.containment).scrollLeft()||0; + curtop += $(o.containment).scrollTop()||0; + } + + //Store needed variables + this.offset = this.helper.offset(); + this.position = { left: curleft, top: curtop }; + this.size = o.helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; + this.originalSize = o.helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; + this.originalPosition = { left: curleft, top: curtop }; + this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() }; + this.originalMousePosition = { left: event.pageX, top: event.pageY }; + + //Aspect Ratio + o.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height)||1); + + if (o.preserveCursor) { + var cursor = $('.ui-resizable-' + this.axis).css('cursor'); + $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor); + } + + this._propagate("start", event); + return true; + }, + + _mouseDrag: function(event) { + + //Increase performance, avoid regex + var el = this.helper, o = this.options, props = {}, + self = this, smp = this.originalMousePosition, a = this.axis; + + var dx = (event.pageX-smp.left)||0, dy = (event.pageY-smp.top)||0; + var trigger = this._change[a]; + if (!trigger) return false; + + // Calculate the attrs that will be change + var data = trigger.apply(this, [event, dx, dy]), ie6 = $.browser.msie && $.browser.version < 7, csdif = this.sizeDiff; + + if (o._aspectRatio || event.shiftKey) + data = this._updateRatio(data, event); + + data = this._respectSize(data, event); + + // plugins callbacks need to be called first + this._propagate("resize", event); + + el.css({ + top: this.position.top + "px", left: this.position.left + "px", + width: this.size.width + "px", height: this.size.height + "px" + }); + + if (!o.helper && o.proportionallyResize) + this._proportionallyResize(); + + this._updateCache(data); + + // calling the user callback at the end + this.element.triggerHandler("resize", [event, this.ui()], this.options["resize"]); + + return false; + }, + + _mouseStop: function(event) { + + this.options.resizing = false; + var o = this.options, self = this; + + if(o.helper) { + var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName), + soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height, + soffsetw = ista ? 0 : self.sizeDiff.width; + + var s = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) }, + left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null, + top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null; + + if (!o.animate) + this.element.css($.extend(s, { top: top, left: left })); + + if (o.helper && !o.animate) this._proportionallyResize(); + } + + if (o.preserveCursor) + $('body').css('cursor', 'auto'); + + this._propagate("stop", event); + + if (o.helper) this.helper.remove(); + + return false; + }, + + _updateCache: function(data) { + var o = this.options; + this.offset = this.helper.offset(); + if (data.left) this.position.left = data.left; + if (data.top) this.position.top = data.top; + if (data.height) this.size.height = data.height; + if (data.width) this.size.width = data.width; + }, + + _updateRatio: function(data, event) { + + var o = this.options, cpos = this.position, csize = this.size, a = this.axis; + + if (data.height) data.width = (csize.height * o.aspectRatio); + else if (data.width) data.height = (csize.width / o.aspectRatio); + + if (a == 'sw') { + data.left = cpos.left + (csize.width - data.width); + data.top = null; + } + if (a == 'nw') { + data.top = cpos.top + (csize.height - data.height); + data.left = cpos.left + (csize.width - data.width); + } + + return data; + }, + + _respectSize: function(data, event) { + + var el = this.helper, o = this.options, pRatio = o._aspectRatio || event.shiftKey, a = this.axis, + ismaxw = data.width && o.maxWidth && o.maxWidth < data.width, ismaxh = data.height && o.maxHeight && o.maxHeight < data.height, + isminw = data.width && o.minWidth && o.minWidth > data.width, isminh = data.height && o.minHeight && o.minHeight > data.height; + + if (isminw) data.width = o.minWidth; + if (isminh) data.height = o.minHeight; + if (ismaxw) data.width = o.maxWidth; + if (ismaxh) data.height = o.maxHeight; + + var dw = this.originalPosition.left + this.originalSize.width, dh = this.position.top + this.size.height; + var cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a); + + if (isminw && cw) data.left = dw - o.minWidth; + if (ismaxw && cw) data.left = dw - o.maxWidth; + if (isminh && ch) data.top = dh - o.minHeight; + if (ismaxh && ch) data.top = dh - o.maxHeight; + + // fixing jump error on top/left - bug #2330 + var isNotwh = !data.width && !data.height; + if (isNotwh && !data.left && data.top) data.top = null; + else if (isNotwh && !data.top && data.left) data.left = null; + + return data; + }, + + _proportionallyResize: function() { + var o = this.options; + if (!o.proportionallyResize) return; + var prel = o.proportionallyResize, el = this.helper || this.element; + + if (!o.borderDif) { + var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')], + p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')]; + + o.borderDif = $.map(b, function(v, i) { + var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0; + return border + padding; + }); + } + prel.css({ + height: (el.height() - o.borderDif[0] - o.borderDif[2]) + "px", + width: (el.width() - o.borderDif[1] - o.borderDif[3]) + "px" + }); + }, + + _renderProxy: function() { + var el = this.element, o = this.options; + this.elementOffset = el.offset(); + + if(o.helper) { + this.helper = this.helper || $('
          '); + + // fix ie6 offset + var ie6 = $.browser.msie && $.browser.version < 7, ie6offset = (ie6 ? 1 : 0), + pxyoffset = ( ie6 ? 2 : -1 ); + + this.helper.addClass(o.helper).css({ + width: el.outerWidth() + pxyoffset, + height: el.outerHeight() + pxyoffset, + position: 'absolute', + left: this.elementOffset.left - ie6offset +'px', + top: this.elementOffset.top - ie6offset +'px', + zIndex: ++o.zIndex + }); + + this.helper.appendTo("body"); + + if (o.disableSelection) + this.helper.disableSelection(); + + } else { + this.helper = el; + } + }, + + _change: { + e: function(event, dx, dy) { + return { width: this.originalSize.width + dx }; + }, + w: function(event, dx, dy) { + var o = this.options, cs = this.originalSize, sp = this.originalPosition; + return { left: sp.left + dx, width: cs.width - dx }; + }, + n: function(event, dx, dy) { + var o = this.options, cs = this.originalSize, sp = this.originalPosition; + return { top: sp.top + dy, height: cs.height - dy }; + }, + s: function(event, dx, dy) { + return { height: this.originalSize.height + dy }; + }, + se: function(event, dx, dy) { + return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [event, dx, dy])); + }, + sw: function(event, dx, dy) { + return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [event, dx, dy])); + }, + ne: function(event, dx, dy) { + return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [event, dx, dy])); + }, + nw: function(event, dx, dy) { + return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [event, dx, dy])); + } + }, + + _propagate: function(n, event) { + $.ui.plugin.call(this, n, [event, this.ui()]); + if (n != "resize") this.element.triggerHandler(["resize", n].join(""), [event, this.ui()], this.options[n]); + }, + + plugins: {}, + + ui: function() { + return { + originalElement: this.originalElement, + element: this.element, + helper: this.helper, + position: this.position, + size: this.size, + options: this.options, + originalSize: this.originalSize, + originalPosition: this.originalPosition + }; + } + +})); + +$.extend($.ui.resizable, { + version: "1.6", + defaults: { + alsoResize: false, + animate: false, + animateDuration: "slow", + animateEasing: "swing", + aspectRatio: false, + autoHide: false, + cancel: ":input", + containment: false, + disableSelection: true, + distance: 1, + delay: 0, + ghost: false, + grid: false, + knobHandles: false, + maxHeight: null, + maxWidth: null, + minHeight: 10, + minWidth: 10, + preserveCursor: true, + preventDefault: true, + proportionallyResize: false, + transparent: false + } +}); + +/* + * Resizable Extensions + */ + +$.ui.plugin.add("resizable", "alsoResize", { + + start: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), + + _store = function(exp) { + $(exp).each(function() { + $(this).data("resizable-alsoresize", { + width: parseInt($(this).width(), 10), height: parseInt($(this).height(), 10), + left: parseInt($(this).css('left'), 10), top: parseInt($(this).css('top'), 10) + }); + }); + }; + + if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) { + if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); } + else { $.each(o.alsoResize, function(exp, c) { _store(exp); }); } + }else{ + _store(o.alsoResize); + } + }, + + resize: function(event, ui){ + var o = ui.options, self = $(this).data("resizable"), os = self.originalSize, op = self.originalPosition; + + var delta = { + height: (self.size.height - os.height) || 0, width: (self.size.width - os.width) || 0, + top: (self.position.top - op.top) || 0, left: (self.position.left - op.left) || 0 + }, + + _alsoResize = function(exp, c) { + $(exp).each(function() { + var start = $(this).data("resizable-alsoresize"), style = {}, css = c && c.length ? c : ['width', 'height', 'top', 'left']; + + $.each(css || ['width', 'height', 'top', 'left'], function(i, prop) { + var sum = (start[prop]||0) + (delta[prop]||0); + if (sum && sum >= 0) + style[prop] = sum || null; + }); + $(this).css(style); + }); + }; + + if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) { + $.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); }); + }else{ + _alsoResize(o.alsoResize); + } + }, + + stop: function(event, ui){ + $(this).removeData("resizable-alsoresize-start"); + } +}); + +$.ui.plugin.add("resizable", "animate", { + + stop: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"); + + var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName), + soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height, + soffsetw = ista ? 0 : self.sizeDiff.width; + + var style = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) }, + left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null, + top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null; + + self.element.animate( + $.extend(style, top && left ? { top: top, left: left } : {}), { + duration: o.animateDuration, + easing: o.animateEasing, + step: function() { + + var data = { + width: parseInt(self.element.css('width'), 10), + height: parseInt(self.element.css('height'), 10), + top: parseInt(self.element.css('top'), 10), + left: parseInt(self.element.css('left'), 10) + }; + + if (pr) pr.css({ width: data.width, height: data.height }); + + // propagating resize, and updating values for each animation step + self._updateCache(data); + self._propagate("animate", event); + + } + } + ); + } + +}); + +$.ui.plugin.add("resizable", "containment", { + + start: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), el = self.element; + var oc = o.containment, ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc; + if (!ce) return; + + self.containerElement = $(ce); + + if (/document/.test(oc) || oc == document) { + self.containerOffset = { left: 0, top: 0 }; + self.containerPosition = { left: 0, top: 0 }; + + self.parentData = { + element: $(document), left: 0, top: 0, + width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight + }; + } + + // i'm a node, so compute top, left, right, bottom + else{ + var element = $(ce), p = []; + $([ "Top", "Right", "Left", "Bottom" ]).each(function(i, name) { p[i] = num(element.css("padding" + name)); }); + + self.containerOffset = element.offset(); + self.containerPosition = element.position(); + self.containerSize = { height: (element.innerHeight() - p[3]), width: (element.innerWidth() - p[1]) }; + + var co = self.containerOffset, ch = self.containerSize.height, cw = self.containerSize.width, + width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch); + + self.parentData = { + element: ce, left: co.left, top: co.top, width: width, height: height + }; + } + }, + + resize: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), + ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position, + pRatio = o._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement; + + if (ce[0] != document && (/static/).test(ce.css('position'))) cop = co; + + if (cp.left < (o.helper ? co.left : 0)) { + self.size.width = self.size.width + (o.helper ? (self.position.left - co.left) : (self.position.left - cop.left)); + if (pRatio) self.size.height = self.size.width / o.aspectRatio; + self.position.left = o.helper ? co.left : 0; + } + + if (cp.top < (o.helper ? co.top : 0)) { + self.size.height = self.size.height + (o.helper ? (self.position.top - co.top) : self.position.top); + if (pRatio) self.size.width = self.size.height * o.aspectRatio; + self.position.top = o.helper ? co.top : 0; + } + + self.offset.left = self.parentData.left+self.position.left; + self.offset.top = self.parentData.top+self.position.top; + + var woset = Math.abs( (o.helper ? self.offset.left - cop.left : (self.offset.left - cop.left)) + self.sizeDiff.width ), + hoset = Math.abs( (o.helper ? self.offset.top - cop.top : (self.offset.top - co.top)) + self.sizeDiff.height ); + + var isParent = self.containerElement.get(0) == self.element.parent().get(0), + isOffsetRelative = /relative|absolute/.test(self.containerElement.css('position')); + + if(isParent && isOffsetRelative) woset -= self.parentData.left; + + if (woset + self.size.width >= self.parentData.width) { + self.size.width = self.parentData.width - woset; + if (pRatio) self.size.height = self.size.width / o.aspectRatio; + } + + if (hoset + self.size.height >= self.parentData.height) { + self.size.height = self.parentData.height - hoset; + if (pRatio) self.size.width = self.size.height * o.aspectRatio; + } + }, + + stop: function(event, ui){ + var o = ui.options, self = $(this).data("resizable"), cp = self.position, + co = self.containerOffset, cop = self.containerPosition, ce = self.containerElement; + + var helper = $(self.helper), ho = helper.offset(), w = helper.outerWidth() - self.sizeDiff.width, h = helper.outerHeight() - self.sizeDiff.height; + + if (o.helper && !o.animate && (/relative/).test(ce.css('position'))) + $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h }); + + if (o.helper && !o.animate && (/static/).test(ce.css('position'))) + $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h }); + + } +}); + +$.ui.plugin.add("resizable", "ghost", { + + start: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize, cs = self.size; + + if (!pr) self.ghost = self.element.clone(); + else self.ghost = pr.clone(); + + self.ghost.css( + { opacity: .25, display: 'block', position: 'relative', height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 } + ) + .addClass('ui-resizable-ghost').addClass(typeof o.ghost == 'string' ? o.ghost : ''); + + self.ghost.appendTo(self.helper); + + }, + + resize: function(event, ui){ + var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize; + + if (self.ghost) self.ghost.css({ position: 'relative', height: self.size.height, width: self.size.width }); + + }, + + stop: function(event, ui){ + var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize; + if (self.ghost && self.helper) self.helper.get(0).removeChild(self.ghost.get(0)); + } + +}); + +$.ui.plugin.add("resizable", "grid", { + + resize: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), cs = self.size, os = self.originalSize, op = self.originalPosition, a = self.axis, ratio = o._aspectRatio || event.shiftKey; + o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid; + var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1); + + if (/^(se|s|e)$/.test(a)) { + self.size.width = os.width + ox; + self.size.height = os.height + oy; + } + else if (/^(ne)$/.test(a)) { + self.size.width = os.width + ox; + self.size.height = os.height + oy; + self.position.top = op.top - oy; + } + else if (/^(sw)$/.test(a)) { + self.size.width = os.width + ox; + self.size.height = os.height + oy; + self.position.left = op.left - ox; + } + else { + self.size.width = os.width + ox; + self.size.height = os.height + oy; + self.position.top = op.top - oy; + self.position.left = op.left - ox; + } + } + +}); + +var num = function(v) { + return parseInt(v, 10) || 0; +}; + +})(jQuery); +/* + * jQuery UI Selectable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Selectables + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.selectable", $.extend({}, $.ui.mouse, { + + _init: function() { + var self = this; + + this.element.addClass("ui-selectable"); + + this.dragged = false; + + // cache selectee children based on filter + var selectees; + this.refresh = function() { + selectees = $(self.options.filter, self.element[0]); + selectees.each(function() { + var $this = $(this); + var pos = $this.offset(); + $.data(this, "selectable-item", { + element: this, + $element: $this, + left: pos.left, + top: pos.top, + right: pos.left + $this.width(), + bottom: pos.top + $this.height(), + startselected: false, + selected: $this.hasClass('ui-selected'), + selecting: $this.hasClass('ui-selecting'), + unselecting: $this.hasClass('ui-unselecting') + }); + }); + }; + this.refresh(); + + this.selectees = selectees.addClass("ui-selectee"); + + this._mouseInit(); + + this.helper = $(document.createElement('div')) + .css({border:'1px dotted black'}) + .addClass("ui-selectable-helper"); + }, + + destroy: function() { + this.element + .removeClass("ui-selectable ui-selectable-disabled") + .removeData("selectable") + .unbind(".selectable"); + this._mouseDestroy(); + }, + + _mouseStart: function(event) { + var self = this; + + this.opos = [event.pageX, event.pageY]; + + if (this.options.disabled) + return; + + var options = this.options; + + this.selectees = $(options.filter, this.element[0]); + + // selectable START callback + this.element.triggerHandler("selectablestart", [event, { + "selectable": this.element[0], + "options": options + }], options.start); + + $('body').append(this.helper); + // position helper (lasso) + this.helper.css({ + "z-index": 100, + "position": "absolute", + "left": event.clientX, + "top": event.clientY, + "width": 0, + "height": 0 + }); + + if (options.autoRefresh) { + this.refresh(); + } + + this.selectees.filter('.ui-selected').each(function() { + var selectee = $.data(this, "selectable-item"); + selectee.startselected = true; + if (!event.metaKey) { + selectee.$element.removeClass('ui-selected'); + selectee.selected = false; + selectee.$element.addClass('ui-unselecting'); + selectee.unselecting = true; + // selectable UNSELECTING callback + self.element.triggerHandler("selectableunselecting", [event, { + selectable: self.element[0], + unselecting: selectee.element, + options: options + }], options.unselecting); + } + }); + + var isSelectee = false; + $(event.target).parents().andSelf().each(function() { + if($.data(this, "selectable-item")) isSelectee = true; + }); + return this.options.keyboard ? !isSelectee : true; + }, + + _mouseDrag: function(event) { + var self = this; + this.dragged = true; + + if (this.options.disabled) + return; + + var options = this.options; + + var x1 = this.opos[0], y1 = this.opos[1], x2 = event.pageX, y2 = event.pageY; + if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; } + if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; } + this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1}); + + this.selectees.each(function() { + var selectee = $.data(this, "selectable-item"); + //prevent helper from being selected if appendTo: selectable + if (!selectee || selectee.element == self.element[0]) + return; + var hit = false; + if (options.tolerance == 'touch') { + hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) ); + } else if (options.tolerance == 'fit') { + hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2); + } + + if (hit) { + // SELECT + if (selectee.selected) { + selectee.$element.removeClass('ui-selected'); + selectee.selected = false; + } + if (selectee.unselecting) { + selectee.$element.removeClass('ui-unselecting'); + selectee.unselecting = false; + } + if (!selectee.selecting) { + selectee.$element.addClass('ui-selecting'); + selectee.selecting = true; + // selectable SELECTING callback + self.element.triggerHandler("selectableselecting", [event, { + selectable: self.element[0], + selecting: selectee.element, + options: options + }], options.selecting); + } + } else { + // UNSELECT + if (selectee.selecting) { + if (event.metaKey && selectee.startselected) { + selectee.$element.removeClass('ui-selecting'); + selectee.selecting = false; + selectee.$element.addClass('ui-selected'); + selectee.selected = true; + } else { + selectee.$element.removeClass('ui-selecting'); + selectee.selecting = false; + if (selectee.startselected) { + selectee.$element.addClass('ui-unselecting'); + selectee.unselecting = true; + } + // selectable UNSELECTING callback + self.element.triggerHandler("selectableunselecting", [event, { + selectable: self.element[0], + unselecting: selectee.element, + options: options + }], options.unselecting); + } + } + if (selectee.selected) { + if (!event.metaKey && !selectee.startselected) { + selectee.$element.removeClass('ui-selected'); + selectee.selected = false; + + selectee.$element.addClass('ui-unselecting'); + selectee.unselecting = true; + // selectable UNSELECTING callback + self.element.triggerHandler("selectableunselecting", [event, { + selectable: self.element[0], + unselecting: selectee.element, + options: options + }], options.unselecting); + } + } + } + }); + + return false; + }, + + _mouseStop: function(event) { + var self = this; + + this.dragged = false; + + var options = this.options; + + $('.ui-unselecting', this.element[0]).each(function() { + var selectee = $.data(this, "selectable-item"); + selectee.$element.removeClass('ui-unselecting'); + selectee.unselecting = false; + selectee.startselected = false; + self.element.triggerHandler("selectableunselected", [event, { + selectable: self.element[0], + unselected: selectee.element, + options: options + }], options.unselected); + }); + $('.ui-selecting', this.element[0]).each(function() { + var selectee = $.data(this, "selectable-item"); + selectee.$element.removeClass('ui-selecting').addClass('ui-selected'); + selectee.selecting = false; + selectee.selected = true; + selectee.startselected = true; + self.element.triggerHandler("selectableselected", [event, { + selectable: self.element[0], + selected: selectee.element, + options: options + }], options.selected); + }); + this.element.triggerHandler("selectablestop", [event, { + selectable: self.element[0], + options: this.options + }], this.options.stop); + + this.helper.remove(); + + return false; + } + +})); + +$.extend($.ui.selectable, { + version: "1.6", + defaults: { + appendTo: 'body', + autoRefresh: true, + cancel: ":input", + delay: 0, + distance: 1, + filter: '*', + tolerance: 'touch' + } +}); + +})(jQuery); +/* + * jQuery UI Sortable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Sortables + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.sortable", $.extend({}, $.ui.mouse, { + _init: function() { + + var o = this.options; + this.containerCache = {}; + this.element.addClass("ui-sortable"); + + //Get the items + this.refresh(); + + //Let's determine if the items are floating + this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false; + + //Let's determine the parent's offset + this.offset = this.element.offset(); + + //Initialize mouse events for interaction + this._mouseInit(); + + }, + + destroy: function() { + this.element + .removeClass("ui-sortable ui-sortable-disabled") + .removeData("sortable") + .unbind(".sortable"); + this._mouseDestroy(); + + for ( var i = this.items.length - 1; i >= 0; i-- ) + this.items[i].item.removeData("sortable-item"); + }, + + _mouseCapture: function(event, overrideHandle) { + + if (this.reverting) { + return false; + } + + if(this.options.disabled || this.options.type == 'static') return false; + + //We have to refresh the items data once first + this._refreshItems(event); + + //Find out if the clicked node (or one of its parents) is a actual item in this.items + var currentItem = null, self = this, nodes = $(event.target).parents().each(function() { + if($.data(this, 'sortable-item') == self) { + currentItem = $(this); + return false; + } + }); + if($.data(event.target, 'sortable-item') == self) currentItem = $(event.target); + + if(!currentItem) return false; + if(this.options.handle && !overrideHandle) { + var validHandle = false; + + $(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == event.target) validHandle = true; }); + if(!validHandle) return false; + } + + this.currentItem = currentItem; + this._removeCurrentsFromItems(); + return true; + + }, + + _mouseStart: function(event, overrideHandle, noActivation) { + + var o = this.options; + this.currentContainer = this; + + //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture + this.refreshPositions(); + + //Create and append the visible helper + this.helper = this._createHelper(event); + + //Cache the helper size + this._cacheHelperProportions(); + + /* + * - Position generation - + * This block generates everything position related - it's the core of draggables. + */ + + //Cache the margins of the original element + this._cacheMargins(); + + //Get the next scrolling parent + this.scrollParent = this.helper.scrollParent(); + + //The element's absolute position on the page minus margins + this.offset = this.currentItem.offset(); + + this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left + }; + + // Only after we got the offset, we can change the helper's position to absolute + // TODO: Still need to figure out a way to make relative sorting possible + this.helper.css("position", "absolute"); + this.cssPosition = this.helper.css("position"); + + $.extend(this.offset, { + click: { //Where the click happened, relative to the element + left: event.pageX - this.offset.left, + top: event.pageY - this.offset.top + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper + }); + + //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied + if(o.cursorAt) + this._adjustOffsetFromHelper(o.cursorAt); + + //Generate the original position + this.originalPosition = this._generatePosition(event); + + //Cache the former DOM position + this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] }; + + //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way + if(this.helper[0] != this.currentItem[0]) { + this.currentItem.hide(); + } + + //Create the placeholder + this._createPlaceholder(); + + //Set a containment if given in the options + if(o.containment) + this._setContainment(); + + //Call plugins and callbacks + this._propagate("start", event); + + //Recache the helper size + if(!this._preserveHelperProportions) + this._cacheHelperProportions(); + + + //Post 'activate' events to possible containers + if(!noActivation) { + for (var i = this.containers.length - 1; i >= 0; i--) { this.containers[i]._propagate("activate", event, this); } + } + + //Prepare possible droppables + if($.ui.ddmanager) + $.ui.ddmanager.current = this; + + if ($.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(this, event); + + this.dragging = true; + + this.helper.addClass('ui-sortable-helper'); + this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position + return true; + + }, + + _mouseDrag: function(event) { + + //Compute the helpers position + this.position = this._generatePosition(event); + this.positionAbs = this._convertPositionTo("absolute"); + + if (!this.lastPositionAbs) { + this.lastPositionAbs = this.positionAbs; + } + + //Call the internal plugins + $.ui.plugin.call(this, "sort", [event, this._ui()]); + + //Regenerate the absolute position used for position checks + this.positionAbs = this._convertPositionTo("absolute"); + + //Set the helper position + if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; + if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; + + //Rearrange + for (var i = this.items.length - 1; i >= 0; i--) { + + //Cache variables and intersection, continue if no intersection + var item = this.items[i], itemElement = item.item[0], intersection = this._intersectsWithPointer(item); + if (!intersection) continue; + + if(itemElement != this.currentItem[0] //cannot intersect with itself + && this.placeholder[intersection == 1 ? "next" : "prev"]()[0] != itemElement //no useless actions that have been done before + && !$.ui.contains(this.placeholder[0], itemElement) //no action if the item moved is the parent of the item checked + && (this.options.type == 'semi-dynamic' ? !$.ui.contains(this.element[0], itemElement) : true) + ) { + + this.direction = intersection == 1 ? "down" : "up"; + + if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) { + this.options.sortIndicator.call(this, event, item); + } else { + break; + } + + this._propagate("change", event); //Call plugins and callbacks + break; + } + } + + //Post events to containers + this._contactContainers(event); + + //Interconnect with droppables + if($.ui.ddmanager) $.ui.ddmanager.drag(this, event); + + //Call callbacks + this._trigger('sort', event, this._ui()); + + this.lastPositionAbs = this.positionAbs; + return false; + + }, + + _mouseStop: function(event, noPropagation) { + + if(!event) return; + + //If we are using droppables, inform the manager about the drop + if ($.ui.ddmanager && !this.options.dropBehaviour) + $.ui.ddmanager.drop(this, event); + + if(this.options.revert) { + var self = this; + var cur = self.placeholder.offset(); + + self.reverting = true; + + $(this.helper).animate({ + left: cur.left - this.offset.parent.left - self.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft), + top: cur.top - this.offset.parent.top - self.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) + }, parseInt(this.options.revert, 10) || 500, function() { + self._clear(event); + }); + } else { + this._clear(event, noPropagation); + } + + return false; + + }, + + cancel: function() { + + if(this.dragging) { + + this._mouseUp(); + + if(this.options.helper == "original") + this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"); + else + this.currentItem.show(); + + //Post deactivating events to containers + for (var i = this.containers.length - 1; i >= 0; i--){ + this.containers[i]._propagate("deactivate", null, this); + if(this.containers[i].containerCache.over) { + this.containers[i]._propagate("out", null, this); + this.containers[i].containerCache.over = 0; + } + } + + } + + //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node! + if(this.placeholder[0].parentNode) this.placeholder[0].parentNode.removeChild(this.placeholder[0]); + if(this.options.helper != "original" && this.helper && this.helper[0].parentNode) this.helper.remove(); + + $.extend(this, { + helper: null, + dragging: false, + reverting: false, + _noFinalSort: null + }); + + if(this.domPosition.prev) { + $(this.domPosition.prev).after(this.currentItem); + } else { + $(this.domPosition.parent).prepend(this.currentItem); + } + + return true; + + }, + + serialize: function(o) { + + var items = this._getItemsAsjQuery(o && o.connected); + var str = []; o = o || {}; + + $(items).each(function() { + var res = ($(o.item || this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/)); + if(res) str.push((o.key || res[1]+'[]')+'='+(o.key && o.expression ? res[1] : res[2])); + }); + + return str.join('&'); + + }, + + toArray: function(o) { + + var items = this._getItemsAsjQuery(o && o.connected); + var ret = []; o = o || {}; + + items.each(function() { ret.push($(o.item || this).attr(o.attribute || 'id') || ''); }); + return ret; + + }, + + /* Be careful with the following core functions */ + _intersectsWith: function(item) { + + var x1 = this.positionAbs.left, + x2 = x1 + this.helperProportions.width, + y1 = this.positionAbs.top, + y2 = y1 + this.helperProportions.height; + + var l = item.left, + r = l + item.width, + t = item.top, + b = t + item.height; + + var dyClick = this.offset.click.top, + dxClick = this.offset.click.left; + + var isOverElement = (y1 + dyClick) > t && (y1 + dyClick) < b && (x1 + dxClick) > l && (x1 + dxClick) < r; + + if( this.options.tolerance == "pointer" + || this.options.forcePointerForContainers + || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height']) + ) { + return isOverElement; + } else { + + return (l < x1 + (this.helperProportions.width / 2) // Right Half + && x2 - (this.helperProportions.width / 2) < r // Left Half + && t < y1 + (this.helperProportions.height / 2) // Bottom Half + && y2 - (this.helperProportions.height / 2) < b ); // Top Half + + } + }, + + _intersectsWithPointer: function(item) { + + var isOverElementHeight = $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height), + isOverElementWidth = $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width), + isOverElement = isOverElementHeight && isOverElementWidth, + verticalDirection = this._getDragVerticalDirection(), + horizontalDirection = this._getDragHorizontalDirection(); + + if (!isOverElement) + return false; + + return this.floating ? + ( ((horizontalDirection && horizontalDirection == "right") || verticalDirection == "down") ? 2 : 1 ) + : ( verticalDirection && (verticalDirection == "down" ? 2 : 1) ); + + }, + + _intersectsWithSides: function(item) { + + var isOverBottomHalf = $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height), + isOverRightHalf = $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width), + verticalDirection = this._getDragVerticalDirection(), + horizontalDirection = this._getDragHorizontalDirection(); + + if (this.floating && horizontalDirection) { + return ((horizontalDirection == "right" && isOverRightHalf) || (horizontalDirection == "left" && !isOverRightHalf)); + } else { + return verticalDirection && ((verticalDirection == "down" && isOverBottomHalf) || (verticalDirection == "up" && !isOverBottomHalf)); + } + + }, + + _getDragVerticalDirection: function() { + var delta = this.positionAbs.top - this.lastPositionAbs.top; + return delta != 0 && (delta > 0 ? "down" : "up"); + }, + + _getDragHorizontalDirection: function() { + var delta = this.positionAbs.left - this.lastPositionAbs.left; + return delta != 0 && (delta > 0 ? "right" : "left"); + }, + + refresh: function(event) { + this._refreshItems(event); + this.refreshPositions(); + }, + + _getItemsAsjQuery: function(connected) { + + var self = this; + var items = []; + var queries = []; + + if(this.options.connectWith && connected) { + for (var i = this.options.connectWith.length - 1; i >= 0; i--){ + var cur = $(this.options.connectWith[i]); + for (var j = cur.length - 1; j >= 0; j--){ + var inst = $.data(cur[j], 'sortable'); + if(inst && inst != this && !inst.options.disabled) { + queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper"), inst]); + } + }; + }; + } + + queries.push([$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element).not(".ui-sortable-helper"), this]); + + for (var i = queries.length - 1; i >= 0; i--){ + queries[i][0].each(function() { + items.push(this); + }); + }; + + return $(items); + + }, + + _removeCurrentsFromItems: function() { + + var list = this.currentItem.find(":data(sortable-item)"); + + for (var i=0; i < this.items.length; i++) { + + for (var j=0; j < list.length; j++) { + if(list[j] == this.items[i].item[0]) + this.items.splice(i,1); + }; + + }; + + }, + + _refreshItems: function(event) { + + this.items = []; + this.containers = [this]; + var items = this.items; + var self = this; + var queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element[0], event, { item: this.currentItem }) : $(this.options.items, this.element), this]]; + + if(this.options.connectWith) { + for (var i = this.options.connectWith.length - 1; i >= 0; i--){ + var cur = $(this.options.connectWith[i]); + for (var j = cur.length - 1; j >= 0; j--){ + var inst = $.data(cur[j], 'sortable'); + if(inst && inst != this && !inst.options.disabled) { + queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]); + this.containers.push(inst); + } + }; + }; + } + + for (var i = queries.length - 1; i >= 0; i--) { + var targetData = queries[i][1]; + var _queries = queries[i][0]; + + for (var j=0, queriesLength = _queries.length; j < queriesLength; j++) { + var item = $(_queries[j]); + + item.data('sortable-item', targetData); // Data for target checking (mouse manager) + + items.push({ + item: item, + instance: targetData, + width: 0, height: 0, + left: 0, top: 0 + }); + }; + }; + + }, + + refreshPositions: function(fast) { + + //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change + if(this.offsetParent && this.helper) { + this.offset.parent = this._getParentOffset(); + } + + for (var i = this.items.length - 1; i >= 0; i--){ + var item = this.items[i]; + + //We ignore calculating positions of all connected containers when we're not over them + if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0]) + continue; + + var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item; + + if (!fast) { + if (this.options.accurateIntersection) { + item.width = t.outerWidth(); + item.height = t.outerHeight(); + } + else { + item.width = t[0].offsetWidth; + item.height = t[0].offsetHeight; + } + } + + var p = t.offset(); + item.left = p.left; + item.top = p.top; + }; + + if(this.options.custom && this.options.custom.refreshContainers) { + this.options.custom.refreshContainers.call(this); + } else { + for (var i = this.containers.length - 1; i >= 0; i--){ + var p = this.containers[i].element.offset(); + this.containers[i].containerCache.left = p.left; + this.containers[i].containerCache.top = p.top; + this.containers[i].containerCache.width = this.containers[i].element.outerWidth(); + this.containers[i].containerCache.height = this.containers[i].element.outerHeight(); + }; + } + + }, + + _createPlaceholder: function(that) { + + var self = that || this, o = self.options; + + if(!o.placeholder || o.placeholder.constructor == String) { + var className = o.placeholder; + o.placeholder = { + element: function() { + + var el = $(document.createElement(self.currentItem[0].nodeName)) + .addClass(className || self.currentItem[0].className+" ui-sortable-placeholder") + .removeClass('ui-sortable-helper')[0]; + + if(!className) { + el.style.visibility = "hidden"; + document.body.appendChild(el); + // Name attributes are removed, otherwice causes elements to be unchecked + // Expando attributes also have to be removed because of stupid IE (no condition, doesn't hurt in other browsers) + el.innerHTML = self.currentItem[0].innerHTML.replace(/name\=\"[^\"\']+\"/g, '').replace(/jQuery[0-9]+\=\"[^\"\']+\"/g, ''); + document.body.removeChild(el); + }; + + return el; + }, + update: function(container, p) { + if(className && !o.forcePlaceholderSize) return; + if(!p.height()) { p.height(self.currentItem.innerHeight() - parseInt(self.currentItem.css('paddingTop')||0, 10) - parseInt(self.currentItem.css('paddingBottom')||0, 10)); }; + if(!p.width()) { p.width(self.currentItem.innerWidth() - parseInt(self.currentItem.css('paddingLeft')||0, 10) - parseInt(self.currentItem.css('paddingRight')||0, 10)); }; + } + }; + } + + //Create the placeholder + self.placeholder = $(o.placeholder.element.call(self.element, self.currentItem)); + + //Append it after the actual current item + self.currentItem.after(self.placeholder); + + //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317) + o.placeholder.update(self, self.placeholder); + + }, + + _contactContainers: function(event) { + for (var i = this.containers.length - 1; i >= 0; i--){ + + if(this._intersectsWith(this.containers[i].containerCache)) { + if(!this.containers[i].containerCache.over) { + + if(this.currentContainer != this.containers[i]) { + + //When entering a new container, we will find the item with the least distance and append our item near it + var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[i].floating ? 'left' : 'top']; + for (var j = this.items.length - 1; j >= 0; j--) { + if(!$.ui.contains(this.containers[i].element[0], this.items[j].item[0])) continue; + var cur = this.items[j][this.containers[i].floating ? 'left' : 'top']; + if(Math.abs(cur - base) < dist) { + dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j]; + } + } + + if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled + continue; + + this.currentContainer = this.containers[i]; + itemWithLeastDistance ? this.options.sortIndicator.call(this, event, itemWithLeastDistance, null, true) : this.options.sortIndicator.call(this, event, null, this.containers[i].element, true); + this._propagate("change", event); //Call plugins and callbacks + this.containers[i]._propagate("change", event, this); //Call plugins and callbacks + + //Update the placeholder + this.options.placeholder.update(this.currentContainer, this.placeholder); + + } + + this.containers[i]._propagate("over", event, this); + this.containers[i].containerCache.over = 1; + } + } else { + if(this.containers[i].containerCache.over) { + this.containers[i]._propagate("out", event, this); + this.containers[i].containerCache.over = 0; + } + } + + }; + }, + + _createHelper: function(event) { + + var o = this.options; + var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : (o.helper == 'clone' ? this.currentItem.clone() : this.currentItem); + + if(!helper.parents('body').length) //Add the helper to the DOM if that didn't happen already + $(o.appendTo != 'parent' ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(helper[0]); + + if(helper[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") }; + + if(helper[0].style.width == '' || o.forceHelperSize) helper.width(this.currentItem.width()); + if(helper[0].style.height == '' || o.forceHelperSize) helper.height(this.currentItem.height()); + + return helper; + + }, + + _adjustOffsetFromHelper: function(obj) { + if(obj.left != undefined) this.offset.click.left = obj.left + this.margins.left; + if(obj.right != undefined) this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; + if(obj.top != undefined) this.offset.click.top = obj.top + this.margins.top; + if(obj.bottom != undefined) this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; + }, + + _getParentOffset: function() { + + //Get the offsetParent and cache its position + this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); + + if((this.offsetParent[0] == document.body && $.browser.mozilla) //Ugly FF3 fix + || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.browser.msie)) //Ugly IE fix + po = { top: 0, left: 0 }; + + return { + top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), + left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) + }; + + }, + + _getRelativeOffset: function() { + + if(this.cssPosition == "relative") { + var p = this.currentItem.position(); + return { + top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(), + left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft() + }; + } else { + 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 o = this.options; + if(o.containment == 'parent') o.containment = this.helper[0].parentNode; + if(o.containment == 'document' || o.containment == 'window') this.containment = [ + 0 - this.offset.relative.left - this.offset.parent.left, + 0 - this.offset.relative.top - this.offset.parent.top, + $(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.margins.left - (parseInt(this.currentItem.css("marginRight"),10) || 0), + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.margins.top - (parseInt(this.currentItem.css("marginBottom"),10) || 0) + ]; + + if(!(/^(document|window|parent)$/).test(o.containment)) { + var ce = $(o.containment)[0]; + var co = $(o.containment).offset(); + var over = ($(ce).css("overflow") != 'hidden'); + + this.containment = [ + co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, + co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top, + co.left + (over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, + co.top + (over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top + ]; + } + + }, + + _convertPositionTo: function(d, pos) { + + if(!pos) pos = this.position; + var mod = d == "absolute" ? 1 : -1; + var scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + return { + top: ( + pos.top // the calculated relative position + + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod + + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods) + ), + left: ( + pos.left // the calculated relative position + + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : ( scrollIsRootNode ? 0 : scroll.scrollLeft() ) ) * mod + + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods) + ) + }; + }, + + _generatePosition: function(event) { + + var o = this.options, scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + var position = { + top: ( + event.pageY // The absolute mouse position + - this.offset.click.top // Click offset (relative to the element) + - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.top // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) + ), + left: ( + event.pageX // The absolute mouse position + - this.offset.click.left // Click offset (relative to the element) + - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.left // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : ( scrollIsRootNode ? 0 : scroll.scrollLeft() ) ) + ) + }; + + if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options + + /* + * - Position constraining - + * Constrain the position to a mix of grid, containment. + */ + if(this.containment) { + if(position.left < this.containment[0]) position.left = this.containment[0]; + if(position.top < this.containment[1]) position.top = this.containment[1]; + if(position.left + this.helperProportions.width > this.containment[2]) position.left = this.containment[2] - this.helperProportions.width; + if(position.top + this.helperProportions.height > this.containment[3]) position.top = this.containment[3] - this.helperProportions.height; + } + + if(o.grid) { + var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1]; + position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; + + var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0]; + position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; + } + + return position; + }, + + _rearrange: function(event, i, a, hardRefresh) { + + a ? a[0].appendChild(this.placeholder[0]) : i.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction == 'down' ? i.item[0] : i.item[0].nextSibling)); + + //Various things done here to improve the performance: + // 1. we create a setTimeout, that calls refreshPositions + // 2. on the instance, we have a counter variable, that get's higher after every append + // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same + // 4. this lets only the last addition to the timeout stack through + this.counter = this.counter ? ++this.counter : 1; + var self = this, counter = this.counter; + + window.setTimeout(function() { + if(counter == self.counter) self.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove + },0); + + }, + + _clear: function(event, noPropagation) { + + this.reverting = false; + + //We first have to update the dom position of the actual currentItem + if(!this._noFinalSort) this.placeholder.before(this.currentItem); + this._noFinalSort = null; + + if(this.helper[0] == this.currentItem[0]) { + for(var i in this._storedCSS) { + if(this._storedCSS[i] == 'auto' || this._storedCSS[i] == 'static') this._storedCSS[i] = ''; + } + this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"); + } else { + this.currentItem.show(); + } + + if(this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) this._propagate("update", event, null, noPropagation); //Trigger update callback if the DOM position has changed + if(!$.ui.contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element + this._propagate("remove", event, null, noPropagation); + for (var i = this.containers.length - 1; i >= 0; i--){ + if($.ui.contains(this.containers[i].element[0], this.currentItem[0])) { + this.containers[i]._propagate("update", event, this, noPropagation); + this.containers[i]._propagate("receive", event, this, noPropagation); + } + }; + }; + + //Post events to containers + for (var i = this.containers.length - 1; i >= 0; i--){ + this.containers[i]._propagate("deactivate", event, this, noPropagation); + if(this.containers[i].containerCache.over) { + this.containers[i]._propagate("out", event, this); + this.containers[i].containerCache.over = 0; + } + } + + this.dragging = false; + if(this.cancelHelperRemoval) { + this._propagate("beforeStop", event, null, noPropagation); + this._propagate("stop", event, null, noPropagation); + return false; + } + + this._propagate("beforeStop", event, null, noPropagation); + + //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node! + this.placeholder[0].parentNode.removeChild(this.placeholder[0]); + + if(this.options.helper != "original") this.helper.remove(); this.helper = null; + this._propagate("stop", event, null, noPropagation); + + return true; + + }, + + _propagate: function(n, event, inst, noPropagation) { + $.ui.plugin.call(this, n, [event, this._ui(inst)]); + var dontCancel = !noPropagation ? this.element.triggerHandler(n == "sort" ? n : "sort"+n, [event, this._ui(inst)], this.options[n]) : true; + if(dontCancel === false) this.cancel(); + }, + + plugins: {}, + + _ui: function(inst) { + var self = inst || this; + return { + helper: self.helper, + placeholder: self.placeholder || $([]), + position: self.position, + absolutePosition: self.positionAbs, + item: self.currentItem, + sender: inst ? inst.element : null + }; + } + +})); + +$.extend($.ui.sortable, { + getter: "serialize toArray", + version: "1.6", + defaults: { + accurateIntersection: true, + appendTo: "parent", + cancel: ":input", + delay: 0, + distance: 1, + dropOnEmpty: true, + forcePlaceholderSize: false, + forceHelperSize: false, + helper: "original", + items: '> *', + scope: "default", + scroll: true, + scrollSensitivity: 20, + scrollSpeed: 20, + sortIndicator: $.ui.sortable.prototype._rearrange, + tolerance: "default", + zIndex: 1000 + } +}); + +/* + * Sortable Extensions + */ + +$.ui.plugin.add("sortable", "cursor", { + start: function(event, ui) { + var t = $('body'), i = $(this).data('sortable'); + if (t.css("cursor")) i.options._cursor = t.css("cursor"); + t.css("cursor", i.options.cursor); + }, + beforeStop: function(event, ui) { + var i = $(this).data('sortable'); + if (i.options._cursor) $('body').css("cursor", i.options._cursor); + } +}); + +$.ui.plugin.add("sortable", "opacity", { + start: function(event, ui) { + var t = ui.helper, i = $(this).data('sortable'); + if(t.css("opacity")) i.options._opacity = t.css("opacity"); + t.css('opacity', i.options.opacity); + }, + beforeStop: function(event, ui) { + var i = $(this).data('sortable'); + if(i.options._opacity) $(ui.helper).css('opacity', i.options._opacity); + } +}); + +$.ui.plugin.add("sortable", "scroll", { + start: function(event, ui) { + var i = $(this).data("sortable"), o = i.options; + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset(); + }, + sort: function(event, ui) { + + var i = $(this).data("sortable"), o = i.options, scrolled = false; + + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') { + + if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed; + else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed; + + if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed; + else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed; + + } else { + + if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); + else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); + + if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); + else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); + + } + + if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(i, event); + + + + //This is a special case where we need to modify a offset calculated on start, since the following happened: + // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent + // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that + // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag + if(scrolled !== false && i.cssPosition == 'absolute' && i.scrollParent[0] != document && $.ui.contains(i.scrollParent[0], i.offsetParent[0])) { + i.offset.parent = i._getParentOffset(); + } + + // This is another very weird special case that only happens for relative elements: + // 1. If the css position is relative + // 2. and the scroll parent is the document or similar to the offset parent + // we have to refresh the relative offset during the scroll so there are no jumps + if(scrolled !== false && i.cssPosition == 'relative' && !(i.scrollParent[0] != document && i.scrollParent[0] != i.offsetParent[0])) { + i.offset.relative = i._getRelativeOffset(); + } + + } +}); + +$.ui.plugin.add("sortable", "zIndex", { + start: function(event, ui) { + var t = ui.helper, i = $(this).data('sortable'); + if(t.css("zIndex")) i.options._zIndex = t.css("zIndex"); + t.css('zIndex', i.options.zIndex); + }, + beforeStop: function(event, ui) { + var i = $(this).data('sortable'); + if(i.options._zIndex) $(ui.helper).css('zIndex', i.options._zIndex == 'auto' ? '' : i.options._zIndex); + } +}); + +})(jQuery); +/* + * jQuery UI Effects 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/ + */ +;(function($) { + +$.effects = $.effects || {}; //Add the 'effects' scope + +$.extend($.effects, { + version: "1.6", + save: function(el, set) { + for(var i=0;i
          '); + var wrapper = el.parent(); + if (el.css('position') == 'static'){ + wrapper.css({position: 'relative'}); + el.css({position: 'relative'}); + } else { + var top = el.css('top'); if(isNaN(parseInt(top))) top = 'auto'; + var left = el.css('left'); if(isNaN(parseInt(left))) left = 'auto'; + wrapper.css({ position: el.css('position'), top: top, left: left, zIndex: el.css('z-index') }).show(); + el.css({position: 'relative', top:0, left:0}); + } + wrapper.css(props); + return wrapper; + }, + removeWrapper: function(el) { + if (el.parent().attr('id') == 'fxWrapper') + return el.parent().replaceWith(el); + return el; + }, + setTransition: function(el, list, factor, val) { + val = val || {}; + $.each(list,function(i, x){ + unit = el.cssUnit(x); + if (unit[0] > 0) val[x] = unit[0] * factor + unit[1]; + }); + return val; + }, + animateClass: function(value, duration, easing, callback) { + + var cb = (typeof easing == "function" ? easing : (callback ? callback : null)); + var ea = (typeof easing == "object" ? easing : null); + + return this.each(function() { + + var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || ''; + if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */ + if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; } + + //Let's get a style offset + var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle)); + if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove); + var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle)); + if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove); + + // The main function to form the object for animation + for(var n in newStyle) { + if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */ + && n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */ + && newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */ + && (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */ + && (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */ + ) offset[n] = newStyle[n]; + } + + that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object + // Change style attribute back to original. For stupid IE, we need to clear the damn object. + if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr); + if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove); + if(cb) cb.apply(this, arguments); + }); + + }); + } +}); + +//Extend the methods of jQuery +$.fn.extend({ + //Save old methods + _show: $.fn.show, + _hide: $.fn.hide, + __toggle: $.fn.toggle, + _addClass: $.fn.addClass, + _removeClass: $.fn.removeClass, + _toggleClass: $.fn.toggleClass, + // New ec methods + effect: function(fx,o,speed,callback) { + return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: o || {}, duration: speed, callback: callback }) : null; + }, + show: function() { + if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0]))) + return this._show.apply(this, arguments); + else { + var o = arguments[1] || {}; o['mode'] = 'show'; + return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]); + } + }, + hide: function() { + if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0]))) + return this._hide.apply(this, arguments); + else { + var o = arguments[1] || {}; o['mode'] = 'hide'; + return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]); + } + }, + toggle: function(){ + if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])) || (arguments[0].constructor == Function)) + return this.__toggle.apply(this, arguments); + else { + var o = arguments[1] || {}; o['mode'] = 'toggle'; + return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]); + } + }, + addClass: function(classNames,speed,easing,callback) { + return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames); + }, + removeClass: function(classNames,speed,easing,callback) { + return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames); + }, + toggleClass: function(classNames,speed,easing,callback) { + return speed ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames); + }, + morph: function(remove,add,speed,easing,callback) { + return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]); + }, + switchClass: function() { + return this.morph.apply(this, arguments); + }, + // helper functions + cssUnit: function(key) { + var style = this.css(key), val = []; + $.each( ['em','px','%','pt'], function(i, unit){ + if(style.indexOf(unit) > 0) + val = [parseFloat(style), unit]; + }); + return val; + } +}); + +/* + * jQuery Color Animations + * Copyright 2007 John Resig + * Released under the MIT and GPL licenses. + */ + +// We override the animation for all of these color styles +$.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){ + $.fx.step[attr] = function(fx){ + if ( fx.state == 0 ) { + fx.start = getColor( fx.elem, attr ); + fx.end = getRGB( fx.end ); + } + + fx.elem.style[attr] = "rgb(" + [ + Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0), + Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0), + Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0) + ].join(",") + ")"; + } +}); + +// Color Conversion functions from highlightFade +// By Blair Mitchelmore +// http://jquery.offput.ca/highlightFade/ + +// Parse strings looking for color tuples [255,255,255] +function getRGB(color) { + var result; + + // Check if we're already dealing with an array of colors + if ( color && color.constructor == Array && color.length == 3 ) + return color; + + // Look for rgb(num,num,num) + if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) + return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])]; + + // Look for rgb(num%,num%,num%) + if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)) + return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55]; + + // Look for #a0b1c2 + if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)) + return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)]; + + // Look for #fff + if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)) + return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)]; + + // Look for rgba(0, 0, 0, 0) == transparent in Safari 3 + if (result = /rgba\(0, 0, 0, 0\)/.exec(color)) + return colors['transparent']; + + // Otherwise, we're most likely dealing with a named color + return colors[$.trim(color).toLowerCase()]; +} + +function getColor(elem, attr) { + var color; + + do { + color = $.curCSS(elem, attr); + + // Keep going until we find an element that has color, or we hit the body + if ( color != '' && color != 'transparent' || $.nodeName(elem, "body") ) + break; + + attr = "backgroundColor"; + } while ( elem = elem.parentNode ); + + return getRGB(color); +}; + +// Some named colors to work with +// From Interface by Stefan Petre +// http://interface.eyecon.ro/ + +var colors = { + aqua:[0,255,255], + azure:[240,255,255], + beige:[245,245,220], + black:[0,0,0], + blue:[0,0,255], + brown:[165,42,42], + cyan:[0,255,255], + darkblue:[0,0,139], + darkcyan:[0,139,139], + darkgrey:[169,169,169], + darkgreen:[0,100,0], + darkkhaki:[189,183,107], + darkmagenta:[139,0,139], + darkolivegreen:[85,107,47], + darkorange:[255,140,0], + darkorchid:[153,50,204], + darkred:[139,0,0], + darksalmon:[233,150,122], + darkviolet:[148,0,211], + fuchsia:[255,0,255], + gold:[255,215,0], + green:[0,128,0], + indigo:[75,0,130], + khaki:[240,230,140], + lightblue:[173,216,230], + lightcyan:[224,255,255], + lightgreen:[144,238,144], + lightgrey:[211,211,211], + lightpink:[255,182,193], + lightyellow:[255,255,224], + lime:[0,255,0], + magenta:[255,0,255], + maroon:[128,0,0], + navy:[0,0,128], + olive:[128,128,0], + orange:[255,165,0], + pink:[255,192,203], + purple:[128,0,128], + violet:[128,0,128], + red:[255,0,0], + silver:[192,192,192], + white:[255,255,255], + yellow:[255,255,0], + transparent: [255,255,255] +}; + +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +$.easing.jswing = $.easing.swing; + +$.extend($.easing, +{ + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert($.easing.default); + return $.easing[$.easing.def](x, t, b, c, d); + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return $.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +})(jQuery); +/* + * jQuery UI Effects Blind 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Blind + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.blind = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var direction = o.options.direction || 'vertical'; // Default direction + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper + var ref = (direction == 'vertical') ? 'height' : 'width'; + var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width(); + if(mode == 'show') wrapper.css(ref, 0); // Shift + + // Animation + var animation = {}; + animation[ref] = mode == 'show' ? distance : 0; + + // Animate + wrapper.animate(animation, o.duration, o.options.easing, function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(el[0], arguments); // Callback + el.dequeue(); + }); + + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Bounce 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Bounce + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.bounce = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var direction = o.options.direction || 'up'; // Default direction + var distance = o.options.distance || 20; // Default distance + var times = o.options.times || 5; // Default # of times + var speed = o.duration || 250; // Default speed per bounce + if (/show|hide/.test(mode)) props.push('opacity'); // Avoid touching opacity to prevent clearType and PNG issues in IE + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + $.effects.createWrapper(el); // Create Wrapper + var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; + var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; + var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 3 : el.outerWidth({margin:true}) / 3); + if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift + if (mode == 'hide') distance = distance / (times * 2); + if (mode != 'hide') times--; + + // Animate + if (mode == 'show') { // Show Bounce + var animation = {opacity: 1}; + animation[ref] = (motion == 'pos' ? '+=' : '-=') + distance; + el.animate(animation, speed / 2, o.options.easing); + distance = distance / 2; + times--; + }; + for (var i = 0; i < times; i++) { // Bounces + var animation1 = {}, animation2 = {}; + animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance; + animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance; + el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing); + distance = (mode == 'hide') ? distance * 2 : distance / 2; + }; + if (mode == 'hide') { // Last Bounce + var animation = {opacity: 0}; + animation[ref] = (motion == 'pos' ? '-=' : '+=') + distance; + el.animate(animation, speed / 2, o.options.easing, function(){ + el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + } else { + var animation1 = {}, animation2 = {}; + animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance; + animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance; + el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing, function(){ + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + }; + el.queue('fx', function() { el.dequeue(); }); + el.dequeue(); + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Clip 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Clip + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.clip = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left','height','width']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var direction = o.options.direction || 'vertical'; // Default direction + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper + var animate = el[0].tagName == 'IMG' ? wrapper : el; + var ref = { + size: (direction == 'vertical') ? 'height' : 'width', + position: (direction == 'vertical') ? 'top' : 'left' + }; + var distance = (direction == 'vertical') ? animate.height() : animate.width(); + if(mode == 'show') { animate.css(ref.size, 0); animate.css(ref.position, distance / 2); } // Shift + + // Animation + var animation = {}; + animation[ref.size] = mode == 'show' ? distance : 0; + animation[ref.position] = mode == 'show' ? 0 : distance / 2; + + // Animate + animate.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(el[0], arguments); // Callback + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Drop 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Drop + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.drop = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left','opacity']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var direction = o.options.direction || 'left'; // Default Direction + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + $.effects.createWrapper(el); // Create Wrapper + var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; + var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; + var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 2 : el.outerWidth({margin:true}) / 2); + if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift + + // Animation + var animation = {opacity: mode == 'show' ? 1 : 0}; + animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance; + + // Animate + el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Explode 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Explode + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.explode = function(o) { + + return this.queue(function() { + + var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3; + var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3; + + o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode; + var el = $(this).show().css('visibility', 'hidden'); + var offset = el.offset(); + + //Substract the margins - not fixing the problem yet. + offset.top -= parseInt(el.css("marginTop")) || 0; + offset.left -= parseInt(el.css("marginLeft")) || 0; + + var width = el.outerWidth(true); + var height = el.outerHeight(true); + + for(var i=0;i
          ') + .css({ + position: 'absolute', + visibility: 'visible', + left: -j*(width/cells), + top: -i*(height/rows) + }) + .parent() + .addClass('effects-explode') + .css({ + position: 'absolute', + overflow: 'hidden', + width: width/cells, + height: height/rows, + left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? (j-Math.floor(cells/2))*(width/cells) : 0), + top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? (i-Math.floor(rows/2))*(height/rows) : 0), + opacity: o.options.mode == 'show' ? 0 : 1 + }).animate({ + left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? 0 : (j-Math.floor(cells/2))*(width/cells)), + top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? 0 : (i-Math.floor(rows/2))*(height/rows)), + opacity: o.options.mode == 'show' ? 1 : 0 + }, o.duration || 500); + } + } + + // Set a timeout, to call the callback approx. when the other animations have finished + setTimeout(function() { + + o.options.mode == 'show' ? el.css({ visibility: 'visible' }) : el.css({ visibility: 'visible' }).hide(); + if(o.callback) o.callback.apply(el[0]); // Callback + el.dequeue(); + + $('.effects-explode').remove(); + + }, o.duration || 500); + + + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Fold 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Fold + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.fold = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var size = o.options.size || 15; // Default fold size + var horizFirst = !(!o.options.horizFirst); // Ensure a boolean value + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper + var widthFirst = ((mode == 'show') != horizFirst); + var ref = widthFirst ? ['width', 'height'] : ['height', 'width']; + var distance = widthFirst ? [wrapper.width(), wrapper.height()] : [wrapper.height(), wrapper.width()]; + var percent = /([0-9]+)%/.exec(size); + if(percent) size = parseInt(percent[1]) / 100 * distance[mode == 'hide' ? 0 : 1]; + if(mode == 'show') wrapper.css(horizFirst ? {height: 0, width: size} : {height: size, width: 0}); // Shift + + // Animation + var animation1 = {}, animation2 = {}; + animation1[ref[0]] = mode == 'show' ? distance[0] : size; + animation2[ref[1]] = mode == 'show' ? distance[1] : 0; + + // Animate + wrapper.animate(animation1, o.duration / 2, o.options.easing) + .animate(animation2, o.duration / 2, o.options.easing, function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(el[0], arguments); // Callback + el.dequeue(); + }); + + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Highlight 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Highlight + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.highlight = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['backgroundImage','backgroundColor','opacity']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode + var color = o.options.color || "#ffff99"; // Default highlight color + var oldColor = el.css("backgroundColor"); + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + el.css({backgroundImage: 'none', backgroundColor: color}); // Shift + + // Animation + var animation = {backgroundColor: oldColor }; + if (mode == "hide") animation['opacity'] = 0; + + // Animate + el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == "hide") el.hide(); + $.effects.restore(el, props); + if (mode == "show" && $.browser.msie) this.style.removeAttribute('filter'); + if(o.callback) o.callback.apply(this, arguments); + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Pulsate 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Pulsate + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.pulsate = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this); + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode + var times = o.options.times || 5; // Default # of times + + // Adjust + if (mode == 'hide') times--; + if (el.is(':hidden')) { // Show fadeIn + el.css('opacity', 0); + el.show(); // Show + el.animate({opacity: 1}, o.duration / 2, o.options.easing); + times = times-2; + } + + // Animate + for (var i = 0; i < times; i++) { // Pulsate + el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing); + }; + if (mode == 'hide') { // Last Pulse + el.animate({opacity: 0}, o.duration / 2, o.options.easing, function(){ + el.hide(); // Hide + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + } else { + el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing, function(){ + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + }; + el.queue('fx', function() { el.dequeue(); }); + el.dequeue(); + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Scale 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Scale + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.puff = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this); + + // Set options + var options = $.extend(true, {}, o.options); + var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode + var percent = parseInt(o.options.percent) || 150; // Set default puff percent + options.fade = true; // It's not a puff if it doesn't fade! :) + var original = {height: el.height(), width: el.width()}; // Save original + + // Adjust + var factor = percent / 100; + el.from = (mode == 'hide') ? original : {height: original.height * factor, width: original.width * factor}; + + // Animation + options.from = el.from; + options.percent = (mode == 'hide') ? percent : 100; + options.mode = mode; + + // Animate + el.effect('scale', options, o.duration, o.callback); + el.dequeue(); + }); + +}; + +$.effects.scale = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this); + + // Set options + var options = $.extend(true, {}, o.options); + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var percent = parseInt(o.options.percent) || (parseInt(o.options.percent) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent + var direction = o.options.direction || 'both'; // Set default axis + var origin = o.options.origin; // The origin of the scaling + if (mode != 'effect') { // Set default origin and restore for show/hide + options.origin = origin || ['middle','center']; + options.restore = true; + } + var original = {height: el.height(), width: el.width()}; // Save original + el.from = o.options.from || (mode == 'show' ? {height: 0, width: 0} : original); // Default from state + + // Adjust + var factor = { // Set scaling factor + y: direction != 'horizontal' ? (percent / 100) : 1, + x: direction != 'vertical' ? (percent / 100) : 1 + }; + el.to = {height: original.height * factor.y, width: original.width * factor.x}; // Set to state + + if (o.options.fade) { // Fade option to support puff + if (mode == 'show') {el.from.opacity = 0; el.to.opacity = 1;}; + if (mode == 'hide') {el.from.opacity = 1; el.to.opacity = 0;}; + }; + + // Animation + options.from = el.from; options.to = el.to; options.mode = mode; + + // Animate + el.effect('size', options, o.duration, o.callback); + el.dequeue(); + }); + +}; + +$.effects.size = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left','width','height','overflow','opacity']; + var props1 = ['position','top','left','overflow','opacity']; // Always restore + var props2 = ['width','height','overflow']; // Copy for children + var cProps = ['fontSize']; + var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom']; + var hProps = ['borderLeftWidth', 'borderRightWidth', 'paddingLeft', 'paddingRight']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var restore = o.options.restore || false; // Default restore + var scale = o.options.scale || 'both'; // Default scale mode + var origin = o.options.origin; // The origin of the sizing + var original = {height: el.height(), width: el.width()}; // Save original + el.from = o.options.from || original; // Default from state + el.to = o.options.to || original; // Default to state + // Adjust + if (origin) { // Calculate baseline shifts + var baseline = $.effects.getBaseline(origin, original); + el.from.top = (original.height - el.from.height) * baseline.y; + el.from.left = (original.width - el.from.width) * baseline.x; + el.to.top = (original.height - el.to.height) * baseline.y; + el.to.left = (original.width - el.to.width) * baseline.x; + }; + var factor = { // Set scaling factor + from: {y: el.from.height / original.height, x: el.from.width / original.width}, + to: {y: el.to.height / original.height, x: el.to.width / original.width} + }; + if (scale == 'box' || scale == 'both') { // Scale the css box + if (factor.from.y != factor.to.y) { // Vertical props scaling + props = props.concat(vProps); + el.from = $.effects.setTransition(el, vProps, factor.from.y, el.from); + el.to = $.effects.setTransition(el, vProps, factor.to.y, el.to); + }; + if (factor.from.x != factor.to.x) { // Horizontal props scaling + props = props.concat(hProps); + el.from = $.effects.setTransition(el, hProps, factor.from.x, el.from); + el.to = $.effects.setTransition(el, hProps, factor.to.x, el.to); + }; + }; + if (scale == 'content' || scale == 'both') { // Scale the content + if (factor.from.y != factor.to.y) { // Vertical props scaling + props = props.concat(cProps); + el.from = $.effects.setTransition(el, cProps, factor.from.y, el.from); + el.to = $.effects.setTransition(el, cProps, factor.to.y, el.to); + }; + }; + $.effects.save(el, restore ? props : props1); el.show(); // Save & Show + $.effects.createWrapper(el); // Create Wrapper + el.css('overflow','hidden').css(el.from); // Shift + + // Animate + if (scale == 'content' || scale == 'both') { // Scale the children + vProps = vProps.concat(['marginTop','marginBottom']).concat(cProps); // Add margins/font-size + hProps = hProps.concat(['marginLeft','marginRight']); // Add margins + props2 = props.concat(vProps).concat(hProps); // Concat + el.find("*[width]").each(function(){ + child = $(this); + if (restore) $.effects.save(child, props2); + var c_original = {height: child.height(), width: child.width()}; // Save original + child.from = {height: c_original.height * factor.from.y, width: c_original.width * factor.from.x}; + child.to = {height: c_original.height * factor.to.y, width: c_original.width * factor.to.x}; + if (factor.from.y != factor.to.y) { // Vertical props scaling + child.from = $.effects.setTransition(child, vProps, factor.from.y, child.from); + child.to = $.effects.setTransition(child, vProps, factor.to.y, child.to); + }; + if (factor.from.x != factor.to.x) { // Horizontal props scaling + child.from = $.effects.setTransition(child, hProps, factor.from.x, child.from); + child.to = $.effects.setTransition(child, hProps, factor.to.x, child.to); + }; + child.css(child.from); // Shift children + child.animate(child.to, o.duration, o.options.easing, function(){ + if (restore) $.effects.restore(child, props2); // Restore children + }); // Animate children + }); + }; + + // Animate + el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Shake 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Shake + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.shake = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var direction = o.options.direction || 'left'; // Default direction + var distance = o.options.distance || 20; // Default distance + var times = o.options.times || 3; // Default # of times + var speed = o.duration || o.options.duration || 140; // Default speed per shake + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + $.effects.createWrapper(el); // Create Wrapper + var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; + var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; + + // Animation + var animation = {}, animation1 = {}, animation2 = {}; + animation[ref] = (motion == 'pos' ? '-=' : '+=') + distance; + animation1[ref] = (motion == 'pos' ? '+=' : '-=') + distance * 2; + animation2[ref] = (motion == 'pos' ? '-=' : '+=') + distance * 2; + + // Animate + el.animate(animation, speed, o.options.easing); + for (var i = 1; i < times; i++) { // Shakes + el.animate(animation1, speed, o.options.easing).animate(animation2, speed, o.options.easing); + }; + el.animate(animation1, speed, o.options.easing). + animate(animation, speed / 2, o.options.easing, function(){ // Last shake + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + }); + el.queue('fx', function() { el.dequeue(); }); + el.dequeue(); + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Slide 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Slide + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.slide = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this), props = ['position','top','left']; + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode + var direction = o.options.direction || 'left'; // Default Direction + + // Adjust + $.effects.save(el, props); el.show(); // Save & Show + $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper + var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; + var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; + var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true})); + if (mode == 'show') el.css(ref, motion == 'pos' ? -distance : distance); // Shift + + // Animation + var animation = {}; + animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance; + + // Animate + el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if(mode == 'hide') el.hide(); // Hide + $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore + if(o.callback) o.callback.apply(this, arguments); // Callback + el.dequeue(); + }}); + + }); + +}; + +})(jQuery); +/* + * jQuery UI Effects Transfer 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Transfer + * + * Depends: + * effects.core.js + */ +(function($) { + +$.effects.transfer = function(o) { + + return this.queue(function() { + + // Create element + var el = $(this); + + // Set options + var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode + var target = $(o.options.to); // Find Target + var position = el.offset(); + var transfer = $('
          ').appendTo(document.body); + if(o.options.className) transfer.addClass(o.options.className); + + // Set target css + transfer.addClass(o.options.className); + transfer.css({ + top: position.top, + left: position.left, + height: el.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')), + width: el.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')), + position: 'absolute' + }); + + // Animation + position = target.offset(); + animation = { + top: position.top, + left: position.left, + height: target.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')), + width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')) + }; + + // Animate + transfer.animate(animation, o.duration, o.options.easing, function() { + transfer.remove(); // Remove div + if(o.callback) o.callback.apply(el[0], arguments); // Callback + el.dequeue(); + }); + + }); + +}; + +})(jQuery); +/* + * jQuery UI Accordion 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Accordion + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.accordion", { + + _init: function() { + var options = this.options; + + if ( options.navigation ) { + var current = this.element.find("a").filter(options.navigationFilter); + if ( current.length ) { + if ( current.filter(options.header).length ) { + options.active = current; + } else { + options.active = current.parent().parent().prev(); + current.addClass("current"); + } + } + } + + // calculate active if not specified, using the first header + options.headers = this.element.find(options.header); + options.active = findActive(options.headers, options.active); + + // IE7-/Win - Extra vertical space in Lists fixed + if ($.browser.msie) { + this.element.find('a').css('zoom', '1'); + } + + if (!this.element.hasClass("ui-accordion")) { + this.element.addClass("ui-accordion"); + $('').insertBefore(options.headers); + $('').appendTo(options.headers); + options.headers.addClass("ui-accordion-header"); + } + + var maxHeight; + if ( options.fillSpace ) { + maxHeight = this.element.parent().height(); + options.headers.each(function() { + maxHeight -= $(this).outerHeight(); + }); + var maxPadding = 0; + options.headers.next().each(function() { + maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height()); + }).height(maxHeight - maxPadding); + } else if ( options.autoHeight ) { + maxHeight = 0; + options.headers.next().each(function() { + maxHeight = Math.max(maxHeight, $(this).outerHeight()); + }).height(maxHeight); + } + + this.element.attr('role','tablist'); + + var self=this; + options.headers + .attr('role','tab') + .bind('keydown', function(event) { return self._keydown(event); }) + .next() + .attr('role','tabpanel'); + + options.headers + .not(options.active || "") + .attr('aria-expanded','false') + .attr("tabIndex", "-1") + .next() + .hide(); + + // make sure at least one header is in the tab order + if (!options.active.length) { + options.headers.eq(0).attr('tabIndex','0'); + } else { + options.active + .attr('aria-expanded','true') + .attr("tabIndex", "0") + .parent().andSelf().addClass(options.selectedClass); + } + + // only need links in taborder for Safari + if (!$.browser.safari) + options.headers.find('a').attr('tabIndex','-1'); + + if (options.event) { + this.element.bind((options.event) + ".accordion", clickHandler); + } + }, + + destroy: function() { + this.options.headers.parent().andSelf().removeClass(this.options.selectedClass); + this.options.headers.prev(".ui-accordion-left").remove(); + this.options.headers.children(".ui-accordion-right").remove(); + this.options.headers.next().css("display", ""); + if ( this.options.fillSpace || this.options.autoHeight ) { + this.options.headers.next().css("height", ""); + } + $.removeData(this.element[0], "accordion"); + + this.element.removeClass("ui-accordion").unbind(".accordion"); + }, + + _keydown: function(event) { + if (this.options.disabled || event.altKey || event.ctrlKey) + return; + + var keyCode = $.ui.keyCode; + + var length = this.options.headers.length; + var currentIndex = this.options.headers.index(event.target); + var toFocus = false; + + switch(event.keyCode) { + case keyCode.RIGHT: + case keyCode.DOWN: + toFocus = this.options.headers[(currentIndex + 1) % length]; + break; + case keyCode.LEFT: + case keyCode.UP: + toFocus = this.options.headers[(currentIndex - 1 + length) % length]; + break; + case keyCode.SPACE: + case keyCode.ENTER: + return clickHandler.call(this.element[0], { target: event.target }); + } + + if (toFocus) { + $(event.target).attr('tabIndex','-1'); + $(toFocus).attr('tabIndex','0'); + toFocus.focus(); + return false; + } + + return true; + }, + + activate: function(index) { + // call clickHandler with custom event + clickHandler.call(this.element[0], { + target: findActive( this.options.headers, index )[0] + }); + } + +}); + +function scopeCallback(callback, scope) { + return function() { + return callback.apply(scope, arguments); + }; +}; + +function completed(cancel) { + // if removed while animated data can be empty + if (!$.data(this, "accordion")) { + return; + } + + var instance = $.data(this, "accordion"); + var options = instance.options; + options.running = cancel ? 0 : --options.running; + if ( options.running ) { + return; + } + if ( options.clearStyle ) { + options.toShow.add(options.toHide).css({ + height: "", + overflow: "" + }); + } + instance._trigger('change', null, options.data); +} + +function toggle(toShow, toHide, data, clickedActive, down) { + var options = $.data(this, "accordion").options; + options.toShow = toShow; + options.toHide = toHide; + options.data = data; + var complete = scopeCallback(completed, this); + + $.data(this, "accordion")._trigger("changestart", null, options.data); + + // count elements to animate + options.running = toHide.size() === 0 ? toShow.size() : toHide.size(); + + if ( options.animated ) { + var animOptions = {}; + + if ( !options.alwaysOpen && clickedActive ) { + animOptions = { + toShow: $([]), + toHide: toHide, + complete: complete, + down: down, + autoHeight: options.autoHeight + }; + } else { + animOptions = { + toShow: toShow, + toHide: toHide, + complete: complete, + down: down, + autoHeight: options.autoHeight + }; + } + + if (!options.proxied) { + options.proxied = options.animated; + } + + if (!options.proxiedDuration) { + options.proxiedDuration = options.duration; + } + + options.animated = $.isFunction(options.proxied) ? + options.proxied(animOptions) : options.proxied; + + options.duration = $.isFunction(options.proxiedDuration) ? + options.proxiedDuration(animOptions) : options.proxiedDuration; + + var animations = $.ui.accordion.animations, + duration = options.duration, + easing = options.animated; + + if (!animations[easing]) { + animations[easing] = function(options) { + this.slide(options, { + easing: easing, + duration: duration || 700 + }); + }; + } + + animations[easing](animOptions); + + } else { + if ( !options.alwaysOpen && clickedActive ) { + toShow.toggle(); + } else { + toHide.hide(); + toShow.show(); + } + complete(true); + } + toHide.prev().attr('aria-expanded','false').attr("tabIndex", "-1"); + toShow.prev().attr('aria-expanded','true').attr("tabIndex", "0").focus();; +} + +function clickHandler(event) { + var options = $.data(this, "accordion").options; + if (options.disabled) { + return false; + } + + // called only when using activate(false) to close all parts programmatically + if ( !event.target && !options.alwaysOpen ) { + options.active.parent().andSelf().toggleClass(options.selectedClass); + var toHide = options.active.next(), + data = { + options: options, + newHeader: $([]), + oldHeader: options.active, + newContent: $([]), + oldContent: toHide + }, + toShow = (options.active = $([])); + toggle.call(this, toShow, toHide, data ); + return false; + } + // get the click target + var clicked = $(event.target); + + // due to the event delegation model, we have to check if one + // of the parent elements is our actual header, and find that + // otherwise stick with the initial target + clicked = $( clicked.parents(options.header)[0] || clicked ); + + var clickedActive = clicked[0] == options.active[0]; + + // if animations are still active, or the active header is the target, ignore click + if (options.running || (options.alwaysOpen && clickedActive)) { + return false; + } + if (!clicked.is(options.header)) { + return; + } + + // switch classes + options.active.parent().andSelf().toggleClass(options.selectedClass); + if ( !clickedActive ) { + clicked.parent().andSelf().addClass(options.selectedClass); + } + + // find elements to show and hide + var toShow = clicked.next(), + toHide = options.active.next(), + data = { + options: options, + newHeader: clickedActive && !options.alwaysOpen ? $([]) : clicked, + oldHeader: options.active, + newContent: clickedActive && !options.alwaysOpen ? $([]) : toShow, + oldContent: toHide + }, + down = options.headers.index( options.active[0] ) > options.headers.index( clicked[0] ); + + options.active = clickedActive ? $([]) : clicked; + toggle.call(this, toShow, toHide, data, clickedActive, down ); + + return false; +}; + +function findActive(headers, selector) { + return selector + ? typeof selector == "number" + ? headers.filter(":eq(" + selector + ")") + : headers.not(headers.not(selector)) + : selector === false + ? $([]) + : headers.filter(":eq(0)"); +} + +$.extend($.ui.accordion, { + version: "1.6", + defaults: { + autoHeight: true, + alwaysOpen: true, + animated: 'slide', + event: "click", + header: "a", + navigationFilter: function() { + return this.href.toLowerCase() == location.href.toLowerCase(); + }, + running: 0, + selectedClass: "selected" + }, + animations: { + slide: function(options, additions) { + options = $.extend({ + easing: "swing", + duration: 300 + }, options, additions); + if ( !options.toHide.size() ) { + options.toShow.animate({height: "show"}, options); + return; + } + var hideHeight = options.toHide.height(), + showHeight = options.toShow.height(), + difference = showHeight / hideHeight, + padding = options.toShow.outerHeight() - options.toShow.height(), + margin = options.toShow.css('marginBottom'), + overflow = options.toShow.css('overflow') + tmargin = options.toShow.css('marginTop'); + options.toShow.css({ height: 0, overflow: 'hidden', marginTop: 0, marginBottom: -padding }).show(); + options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate({height:"hide"},{ + step: function(now) { + var current = (hideHeight - now) * difference; + if ($.browser.msie || $.browser.opera) { + current = Math.ceil(current); + } + options.toShow.height( current ); + }, + duration: options.duration, + easing: options.easing, + complete: function() { + if ( !options.autoHeight ) { + options.toShow.css("height", "auto"); + } + options.toShow.css({marginTop: tmargin, marginBottom: margin, overflow: overflow}); + options.complete(); + } + }); + }, + bounceslide: function(options) { + this.slide(options, { + easing: options.down ? "easeOutBounce" : "swing", + duration: options.down ? 1000 : 200 + }); + }, + easeslide: function(options) { + this.slide(options, { + easing: "easeinout", + duration: 700 + }); + } + } +}); + +})(jQuery); +/* + * jQuery UI Datepicker 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Datepicker + * + * Depends: + * ui.core.js + */ + +(function($) { // hide the namespace + +$.extend($.ui, { datepicker: { version: "1.6" } }); + +var PROP_NAME = 'datepicker'; + +/* Date picker manager. + Use the singleton instance of this class, $.datepicker, to interact with the date picker. + Settings for (groups of) date pickers are maintained in an instance object, + allowing multiple different settings on the same page. */ + +function Datepicker() { + this.debug = false; // Change this to true to start debugging + this._curInst = null; // The current instance in use + this._keyEvent = false; // If the last event was a key event + this._disabledInputs = []; // List of date picker inputs that have been disabled + this._datepickerShowing = false; // True if the popup picker is showing , false if not + this._inDialog = false; // True if showing within a "dialog", false if not + this._mainDivId = 'ui-datepicker-div'; // The ID of the main datepicker division + this._inlineClass = 'ui-datepicker-inline'; // The name of the inline marker class + this._appendClass = 'ui-datepicker-append'; // The name of the append marker class + this._triggerClass = 'ui-datepicker-trigger'; // The name of the trigger marker class + this._dialogClass = 'ui-datepicker-dialog'; // The name of the dialog marker class + this._promptClass = 'ui-datepicker-prompt'; // The name of the dialog prompt marker class + this._disableClass = 'ui-datepicker-disabled'; // The name of the disabled covering marker class + this._unselectableClass = 'ui-datepicker-unselectable'; // The name of the unselectable cell marker class + this._currentClass = 'ui-datepicker-current-day'; // The name of the current day marker class + this._dayOverClass = 'ui-datepicker-days-cell-over'; // The name of the day hover marker class + this._weekOverClass = 'ui-datepicker-week-over'; // The name of the week hover marker class + this.regional = []; // Available regional settings, indexed by language code + this.regional[''] = { // Default regional settings + clearText: 'Clear', // Display text for clear link + clearStatus: 'Erase the current date', // Status text for clear link + closeText: 'Close', // Display text for close link + closeStatus: 'Close without change', // Status text for close link + prevText: '<Prev', // Display text for previous month link + prevStatus: 'Show the previous month', // Status text for previous month link + prevBigText: '<<', // Display text for previous year link + prevBigStatus: 'Show the previous year', // Status text for previous year link + nextText: 'Next>', // Display text for next month link + nextStatus: 'Show the next month', // Status text for next month link + nextBigText: '>>', // Display text for next year link + nextBigStatus: 'Show the next year', // Status text for next year link + currentText: 'Today', // Display text for current month link + currentStatus: 'Show the current month', // Status text for current month link + monthNames: ['January','February','March','April','May','June', + 'July','August','September','October','November','December'], // Names of months for drop-down and formatting + monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting + monthStatus: 'Show a different month', // Status text for selecting a month + yearStatus: 'Show a different year', // Status text for selecting a year + weekHeader: 'Wk', // Header for the week of the year column + weekStatus: 'Week of the year', // Status text for the week of the year column + dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting + dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting + dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday + dayStatus: 'Set DD as first week day', // Status text for the day of the week selection + dateStatus: 'Select DD, M d', // Status text for the date selection + dateFormat: 'mm/dd/yy', // See format options on parseDate + firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ... + initStatus: 'Select a date', // Initial Status text on opening + isRTL: false // True if right-to-left language, false if left-to-right + }; + this._defaults = { // Global defaults for all the date picker instances + showOn: 'focus', // 'focus' for popup on focus, + // 'button' for trigger button, or 'both' for either + showAnim: 'show', // Name of jQuery animation for popup + showOptions: {}, // Options for enhanced animations + defaultDate: null, // Used when field is blank: actual date, + // +/-number for offset from today, null for today + appendText: '', // Display text following the input box, e.g. showing the format + buttonText: '...', // Text for trigger button + buttonImage: '', // URL for trigger button image + buttonImageOnly: false, // True if the image appears alone, false if it appears on a button + closeAtTop: true, // True to have the clear/close at the top, + // false to have them at the bottom + mandatory: false, // True to hide the Clear link, false to include it + hideIfNoPrevNext: false, // True to hide next/previous month links + // if not applicable, false to just disable them + navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links + showBigPrevNext: false, // True to show big prev/next links + gotoCurrent: false, // True if today link goes back to current selection instead + changeMonth: true, // True if month can be selected directly, false if only prev/next + changeYear: true, // True if year can be selected directly, false if only prev/next + showMonthAfterYear: false, // True if the year select precedes month, false for month then year + yearRange: '-10:+10', // Range of years to display in drop-down, + // either relative to current year (-nn:+nn) or absolute (nnnn:nnnn) + changeFirstDay: true, // True to click on day name to change, false to remain as set + highlightWeek: false, // True to highlight the selected week + showOtherMonths: false, // True to show dates in other months, false to leave blank + showWeeks: false, // True to show week of the year, false to omit + calculateWeek: this.iso8601Week, // How to calculate the week of the year, + // takes a Date and returns the number of the week for it + shortYearCutoff: '+10', // Short year values < this are in the current century, + // > this are in the previous century, + // string value starting with '+' for current year + value + showStatus: false, // True to show status bar at bottom, false to not show it + statusForDate: this.dateStatus, // Function to provide status text for a date - + // takes date and instance as parameters, returns display text + minDate: null, // The earliest selectable date, or null for no limit + maxDate: null, // The latest selectable date, or null for no limit + duration: 'normal', // Duration of display/closure + beforeShowDay: null, // Function that takes a date and returns an array with + // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '', + // [2] = cell title (optional), e.g. $.datepicker.noWeekends + beforeShow: null, // Function that takes an input field and + // returns a set of custom settings for the date picker + onSelect: null, // Define a callback function when a date is selected + onChangeMonthYear: null, // Define a callback function when the month or year is changed + onClose: null, // Define a callback function when the datepicker is closed + numberOfMonths: 1, // Number of months to show at a time + showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0) + stepMonths: 1, // Number of months to step back/forward + stepBigMonths: 12, // Number of months to step back/forward for the big links + rangeSelect: false, // Allows for selecting a date range on one date picker + rangeSeparator: ' - ', // Text between two dates in a range + altField: '', // Selector for an alternate field to store selected dates into + altFormat: '', // The date format to use for the alternate field + constrainInput: true // The input is constrained by the current date format + }; + $.extend(this._defaults, this.regional['']); + this.dpDiv = $(''); +} + +$.extend(Datepicker.prototype, { + /* Class name added to elements to indicate already configured with a date picker. */ + markerClassName: 'hasDatepicker', + + /* Debug logging (if enabled). */ + log: function () { + if (this.debug) + console.log.apply('', arguments); + }, + + /* Override the default settings for all instances of the date picker. + @param settings object - the new settings to use as defaults (anonymous object) + @return the manager object */ + setDefaults: function(settings) { + extendRemove(this._defaults, settings || {}); + return this; + }, + + /* Attach the date picker to a jQuery selection. + @param target element - the target input field or division or span + @param settings object - the new settings to use for this date picker instance (anonymous) */ + _attachDatepicker: function(target, settings) { + // check for settings on the control itself - in namespace 'date:' + var inlineSettings = null; + for (var attrName in this._defaults) { + var attrValue = target.getAttribute('date:' + attrName); + if (attrValue) { + inlineSettings = inlineSettings || {}; + try { + inlineSettings[attrName] = eval(attrValue); + } catch (err) { + inlineSettings[attrName] = attrValue; + } + } + } + var nodeName = target.nodeName.toLowerCase(); + var inline = (nodeName == 'div' || nodeName == 'span'); + if (!target.id) + target.id = 'dp' + (++this.uuid); + var inst = this._newInst($(target), inline); + inst.settings = $.extend({}, settings || {}, inlineSettings || {}); + if (nodeName == 'input') { + this._connectDatepicker(target, inst); + } else if (inline) { + this._inlineDatepicker(target, inst); + } + }, + + /* Create a new instance object. */ + _newInst: function(target, inline) { + var id = target[0].id.replace(/([:\[\]\.])/g, '\\\\$1'); // escape jQuery meta chars + return {id: id, input: target, // associated target + selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection + drawMonth: 0, drawYear: 0, // month being drawn + inline: inline, // is datepicker inline or not + dpDiv: (!inline ? this.dpDiv : // presentation div + $('
          '))}; + }, + + /* Attach the date picker to an input field. */ + _connectDatepicker: function(target, inst) { + var input = $(target); + if (input.hasClass(this.markerClassName)) + return; + var appendText = this._get(inst, 'appendText'); + var isRTL = this._get(inst, 'isRTL'); + if (appendText) + input[isRTL ? 'before' : 'after']('' + appendText + ''); + var showOn = this._get(inst, 'showOn'); + if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field + input.focus(this._showDatepicker); + if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked + var buttonText = this._get(inst, 'buttonText'); + var buttonImage = this._get(inst, 'buttonImage'); + var trigger = $(this._get(inst, 'buttonImageOnly') ? + $('').addClass(this._triggerClass). + attr({ src: buttonImage, alt: buttonText, title: buttonText }) : + $('').addClass(this._triggerClass). + html(buttonImage == '' ? buttonText : $('').attr( + { src:buttonImage, alt:buttonText, title:buttonText }))); + input[isRTL ? 'before' : 'after'](trigger); + trigger.click(function() { + if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target) + $.datepicker._hideDatepicker(); + else + $.datepicker._showDatepicker(target); + return false; + }); + } + input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress). + bind("setData.datepicker", function(event, key, value) { + inst.settings[key] = value; + }).bind("getData.datepicker", function(event, key) { + return this._get(inst, key); + }); + $.data(target, PROP_NAME, inst); + }, + + /* Attach an inline date picker to a div. */ + _inlineDatepicker: function(target, inst) { + var divSpan = $(target); + if (divSpan.hasClass(this.markerClassName)) + return; + divSpan.addClass(this.markerClassName).append(inst.dpDiv). + bind("setData.datepicker", function(event, key, value){ + inst.settings[key] = value; + }).bind("getData.datepicker", function(event, key){ + return this._get(inst, key); + }); + $.data(target, PROP_NAME, inst); + this._setDate(inst, this._getDefaultDate(inst)); + this._updateDatepicker(inst); + this._updateAlternate(inst); + }, + + /* Pop-up the date picker in a "dialog" box. + @param input element - ignored + @param dateText string - the initial date to display (in the current format) + @param onSelect function - the function(dateText) to call when a date is selected + @param settings object - update the dialog date picker instance's settings (anonymous object) + @param pos int[2] - coordinates for the dialog's position within the screen or + event - with x/y coordinates or + leave empty for default (screen centre) + @return the manager object */ + _dialogDatepicker: function(input, dateText, onSelect, settings, pos) { + var inst = this._dialogInst; // internal instance + if (!inst) { + var id = 'dp' + (++this.uuid); + this._dialogInput = $(''); + this._dialogInput.keydown(this._doKeyDown); + $('body').append(this._dialogInput); + inst = this._dialogInst = this._newInst(this._dialogInput, false); + inst.settings = {}; + $.data(this._dialogInput[0], PROP_NAME, inst); + } + extendRemove(inst.settings, settings || {}); + this._dialogInput.val(dateText); + + this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null); + if (!this._pos) { + var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; + var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + this._pos = // should use actual width/height below + [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY]; + } + + // move input on screen for focus, but hidden behind dialog + this._dialogInput.css('left', this._pos[0] + 'px').css('top', this._pos[1] + 'px'); + inst.settings.onSelect = onSelect; + this._inDialog = true; + this.dpDiv.addClass(this._dialogClass); + this._showDatepicker(this._dialogInput[0]); + if ($.blockUI) + $.blockUI(this.dpDiv); + $.data(this._dialogInput[0], PROP_NAME, inst); + return this; + }, + + /* Detach a datepicker from its control. + @param target element - the target input field or division or span */ + _destroyDatepicker: function(target) { + var $target = $(target); + if (!$target.hasClass(this.markerClassName)) { + return; + } + var nodeName = target.nodeName.toLowerCase(); + $.removeData(target, PROP_NAME); + if (nodeName == 'input') { + $target.siblings('.' + this._appendClass).remove().end(). + siblings('.' + this._triggerClass).remove().end(). + removeClass(this.markerClassName). + unbind('focus', this._showDatepicker). + unbind('keydown', this._doKeyDown). + unbind('keypress', this._doKeyPress); + } else if (nodeName == 'div' || nodeName == 'span') + $target.removeClass(this.markerClassName).empty(); + }, + + /* Enable the date picker to a jQuery selection. + @param target element - the target input field or division or span */ + _enableDatepicker: function(target) { + var $target = $(target); + if (!$target.hasClass(this.markerClassName)) { + return; + } + var nodeName = target.nodeName.toLowerCase(); + if (nodeName == 'input') { + target.disabled = false; + $target.siblings('button.' + this._triggerClass). + each(function() { this.disabled = false; }).end(). + siblings('img.' + this._triggerClass). + css({opacity: '1.0', cursor: ''}); + } + else if (nodeName == 'div' || nodeName == 'span') { + $target.children('.' + this._disableClass).remove(); + } + this._disabledInputs = $.map(this._disabledInputs, + function(value) { return (value == target ? null : value); }); // delete entry + }, + + /* Disable the date picker to a jQuery selection. + @param target element - the target input field or division or span */ + _disableDatepicker: function(target) { + var $target = $(target); + if (!$target.hasClass(this.markerClassName)) { + return; + } + var nodeName = target.nodeName.toLowerCase(); + if (nodeName == 'input') { + target.disabled = true; + $target.siblings('button.' + this._triggerClass). + each(function() { this.disabled = true; }).end(). + siblings('img.' + this._triggerClass). + css({opacity: '0.5', cursor: 'default'}); + } + else if (nodeName == 'div' || nodeName == 'span') { + var inline = $target.children('.' + this._inlineClass); + var offset = inline.offset(); + var relOffset = {left: 0, top: 0}; + inline.parents().each(function() { + if ($(this).css('position') == 'relative') { + relOffset = $(this).offset(); + return false; + } + }); + $target.prepend('
          '); + } + this._disabledInputs = $.map(this._disabledInputs, + function(value) { return (value == target ? null : value); }); // delete entry + this._disabledInputs[this._disabledInputs.length] = target; + }, + + /* Is the first field in a jQuery collection disabled as a datepicker? + @param target element - the target input field or division or span + @return boolean - true if disabled, false if enabled */ + _isDisabledDatepicker: function(target) { + if (!target) + return false; + for (var i = 0; i < this._disabledInputs.length; i++) { + if (this._disabledInputs[i] == target) + return true; + } + return false; + }, + + /* Retrieve the instance data for the target control. + @param target element - the target input field or division or span + @return object - the associated instance data + @throws error if a jQuery problem getting data */ + _getInst: function(target) { + try { + return $.data(target, PROP_NAME); + } + catch (err) { + throw 'Missing instance data for this datepicker'; + } + }, + + /* Update the settings for a date picker attached to an input field or division. + @param target element - the target input field or division or span + @param name object - the new settings to update or + string - the name of the setting to change or + @param value any - the new value for the setting (omit if above is an object) */ + _optionDatepicker: function(target, name, value) { + var settings = name || {}; + if (typeof name == 'string') { + settings = {}; + settings[name] = value; + } + var inst = this._getInst(target); + if (inst) { + if (this._curInst == inst) { + this._hideDatepicker(null); + } + extendRemove(inst.settings, settings); + var date = new Date(); + extendRemove(inst, {rangeStart: null, // start of range + endDay: null, endMonth: null, endYear: null, // end of range + selectedDay: date.getDate(), selectedMonth: date.getMonth(), + selectedYear: date.getFullYear(), // starting point + currentDay: date.getDate(), currentMonth: date.getMonth(), + currentYear: date.getFullYear(), // current selection + drawMonth: date.getMonth(), drawYear: date.getFullYear()}); // month being drawn + this._updateDatepicker(inst); + } + }, + + // change method deprecated + _changeDatepicker: function(target, name, value) { + this._optionDatepicker(target, name, value); + }, + + /* Redraw the date picker attached to an input field or division. + @param target element - the target input field or division or span */ + _refreshDatepicker: function(target) { + var inst = this._getInst(target); + if (inst) { + this._updateDatepicker(inst); + } + }, + + /* Set the dates for a jQuery selection. + @param target element - the target input field or division or span + @param date Date - the new date + @param endDate Date - the new end date for a range (optional) */ + _setDateDatepicker: function(target, date, endDate) { + var inst = this._getInst(target); + if (inst) { + this._setDate(inst, date, endDate); + this._updateDatepicker(inst); + this._updateAlternate(inst); + } + }, + + /* Get the date(s) for the first entry in a jQuery selection. + @param target element - the target input field or division or span + @return Date - the current date or + Date[2] - the current dates for a range */ + _getDateDatepicker: function(target) { + var inst = this._getInst(target); + if (inst && !inst.inline) + this._setDateFromField(inst); + return (inst ? this._getDate(inst) : null); + }, + + /* Handle keystrokes. */ + _doKeyDown: function(event) { + var inst = $.datepicker._getInst(event.target); + var handled = true; + inst._keyEvent = true; + if ($.datepicker._datepickerShowing) + switch (event.keyCode) { + case 9: $.datepicker._hideDatepicker(null, ''); + break; // hide on tab out + case 13: var sel = $('td.' + $.datepicker._dayOverClass + + ', td.' + $.datepicker._currentClass, inst.dpDiv); + if (sel[0]) + $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]); + else + $.datepicker._hideDatepicker(null, $.datepicker._get(inst, 'duration')); + return false; // don't submit the form + break; // select the value on enter + case 27: $.datepicker._hideDatepicker(null, $.datepicker._get(inst, 'duration')); + break; // hide on escape + case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ? + -$.datepicker._get(inst, 'stepBigMonths') : + -$.datepicker._get(inst, 'stepMonths')), 'M'); + break; // previous month/year on page up/+ ctrl + case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ? + +$.datepicker._get(inst, 'stepBigMonths') : + +$.datepicker._get(inst, 'stepMonths')), 'M'); + break; // next month/year on page down/+ ctrl + case 35: if (event.ctrlKey || event.metaKey) $.datepicker._clearDate(event.target); + handled = event.ctrlKey || event.metaKey; + break; // clear on ctrl or command +end + case 36: if (event.ctrlKey || event.metaKey) $.datepicker._gotoToday(event.target); + handled = event.ctrlKey || event.metaKey; + break; // current on ctrl or command +home + case 37: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -1, 'D'); + handled = event.ctrlKey || event.metaKey; + // -1 day on ctrl or command +left + if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ? + -$.datepicker._get(inst, 'stepBigMonths') : + -$.datepicker._get(inst, 'stepMonths')), 'M'); + // next month/year on alt +left on Mac + break; + case 38: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -7, 'D'); + handled = event.ctrlKey || event.metaKey; + break; // -1 week on ctrl or command +up + case 39: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +1, 'D'); + handled = event.ctrlKey || event.metaKey; + // +1 day on ctrl or command +right + if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ? + +$.datepicker._get(inst, 'stepBigMonths') : + +$.datepicker._get(inst, 'stepMonths')), 'M'); + // next month/year on alt +right + break; + case 40: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +7, 'D'); + handled = event.ctrlKey || event.metaKey; + break; // +1 week on ctrl or command +down + default: handled = false; + } + else if (event.keyCode == 36 && event.ctrlKey) // display the date picker on ctrl+home + $.datepicker._showDatepicker(this); + else { + handled = false; + } + if (handled) { + event.preventDefault(); + event.stopPropagation(); + } + }, + + /* Filter entered characters - based on date format. */ + _doKeyPress: function(event) { + var inst = $.datepicker._getInst(event.target); + if ($.datepicker._get(inst, 'constrainInput')) { + var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat')); + var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode); + return event.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1); + } + }, + + /* Pop-up the date picker for a given input field. + @param input element - the input field attached to the date picker or + event - if triggered by focus */ + _showDatepicker: function(input) { + input = input.target || input; + if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger + input = $('input', input.parentNode)[0]; + if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here + return; + var inst = $.datepicker._getInst(input); + var beforeShow = $.datepicker._get(inst, 'beforeShow'); + extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {})); + $.datepicker._hideDatepicker(null, ''); + $.datepicker._lastInput = input; + $.datepicker._setDateFromField(inst); + if ($.datepicker._inDialog) // hide cursor + input.value = ''; + if (!$.datepicker._pos) { // position below input + $.datepicker._pos = $.datepicker._findPos(input); + $.datepicker._pos[1] += input.offsetHeight; // add the height + } + var isFixed = false; + $(input).parents().each(function() { + isFixed |= $(this).css('position') == 'fixed'; + return !isFixed; + }); + if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled + $.datepicker._pos[0] -= document.documentElement.scrollLeft; + $.datepicker._pos[1] -= document.documentElement.scrollTop; + } + var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]}; + $.datepicker._pos = null; + inst.rangeStart = null; + // determine sizing offscreen + inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'}); + $.datepicker._updateDatepicker(inst); + // fix width for dynamic number of date pickers + inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1] * + $('.ui-datepicker', inst.dpDiv[0])[0].offsetWidth); + // and adjust position before showing + offset = $.datepicker._checkOffset(inst, offset, isFixed); + inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ? + 'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none', + left: offset.left + 'px', top: offset.top + 'px'}); + if (!inst.inline) { + var showAnim = $.datepicker._get(inst, 'showAnim') || 'show'; + var duration = $.datepicker._get(inst, 'duration'); + var postProcess = function() { + $.datepicker._datepickerShowing = true; + if ($.browser.msie && parseInt($.browser.version,10) < 7) // fix IE < 7 select problems + $('iframe.ui-datepicker-cover').css({width: inst.dpDiv.width() + 4, + height: inst.dpDiv.height() + 4}); + }; + if ($.effects && $.effects[showAnim]) + inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); + else + inst.dpDiv[showAnim](duration, postProcess); + if (duration == '') + postProcess(); + if (inst.input[0].type != 'hidden') + inst.input[0].focus(); + $.datepicker._curInst = inst; + } + }, + + /* Generate the date picker content. */ + _updateDatepicker: function(inst) { + var dims = {width: inst.dpDiv.width() + 4, + height: inst.dpDiv.height() + 4}; + inst.dpDiv.empty().append(this._generateHTML(inst)). + find('iframe.ui-datepicker-cover'). + css({width: dims.width, height: dims.height}); + var numMonths = this._getNumberOfMonths(inst); + inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') + + 'Class']('ui-datepicker-multi'); + inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') + + 'Class']('ui-datepicker-rtl'); + if (inst.input && inst.input[0].type != 'hidden' && inst == $.datepicker._curInst) + $(inst.input[0]).focus(); + }, + + /* Check positioning to remain on screen. */ + _checkOffset: function(inst, offset, isFixed) { + var pos = inst.input ? this._findPos(inst.input[0]) : null; + var browserWidth = window.innerWidth || (document.documentElement ? + document.documentElement.clientWidth : document.body.clientWidth); + var browserHeight = window.innerHeight || (document.documentElement ? + document.documentElement.clientHeight : document.body.clientHeight); + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + // reposition date picker horizontally if outside the browser window + if (this._get(inst, 'isRTL') || (offset.left + inst.dpDiv.width() - scrollX) > browserWidth) + offset.left = Math.max((isFixed ? 0 : scrollX), + pos[0] + (inst.input ? inst.input.width() : 0) - (isFixed ? scrollX : 0) - inst.dpDiv.width() - + (isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0)); + else + offset.left -= (isFixed ? scrollX : 0); + // reposition date picker vertically if outside the browser window + if ((offset.top + inst.dpDiv.height() - scrollY) > browserHeight) + offset.top = Math.max((isFixed ? 0 : scrollY), + pos[1] - (isFixed ? scrollY : 0) - (this._inDialog ? 0 : inst.dpDiv.height()) - + (isFixed && $.browser.opera ? document.documentElement.scrollTop : 0)); + else + offset.top -= (isFixed ? scrollY : 0); + return offset; + }, + + /* Find an object's position on the screen. */ + _findPos: function(obj) { + while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) { + obj = obj.nextSibling; + } + var position = $(obj).offset(); + return [position.left, position.top]; + }, + + /* Hide the date picker from view. + @param input element - the input field attached to the date picker + @param duration string - the duration over which to close the date picker */ + _hideDatepicker: function(input, duration) { + var inst = this._curInst; + if (!inst || (input && inst != $.data(input, PROP_NAME))) + return; + var rangeSelect = this._get(inst, 'rangeSelect'); + if (rangeSelect && inst.stayOpen) + this._selectDate('#' + inst.id, this._formatDate(inst, + inst.currentDay, inst.currentMonth, inst.currentYear)); + inst.stayOpen = false; + if (this._datepickerShowing) { + duration = (duration != null ? duration : this._get(inst, 'duration')); + var showAnim = this._get(inst, 'showAnim'); + var postProcess = function() { + $.datepicker._tidyDialog(inst); + }; + if (duration != '' && $.effects && $.effects[showAnim]) + inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), + duration, postProcess); + else + inst.dpDiv[(duration == '' ? 'hide' : (showAnim == 'slideDown' ? 'slideUp' : + (showAnim == 'fadeIn' ? 'fadeOut' : 'hide')))](duration, postProcess); + if (duration == '') + this._tidyDialog(inst); + var onClose = this._get(inst, 'onClose'); + if (onClose) + onClose.apply((inst.input ? inst.input[0] : null), + [(inst.input ? inst.input.val() : ''), inst]); // trigger custom callback + this._datepickerShowing = false; + this._lastInput = null; + inst.settings.prompt = null; + if (this._inDialog) { + this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' }); + if ($.blockUI) { + $.unblockUI(); + $('body').append(this.dpDiv); + } + } + this._inDialog = false; + } + this._curInst = null; + }, + + /* Tidy up after a dialog display. */ + _tidyDialog: function(inst) { + inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker'); + $('.' + this._promptClass, inst.dpDiv).remove(); + }, + + /* Close date picker if clicked elsewhere. */ + _checkExternalClick: function(event) { + if (!$.datepicker._curInst) + return; + var $target = $(event.target); + if (($target.parents('#' + $.datepicker._mainDivId).length == 0) && + !$target.hasClass($.datepicker.markerClassName) && + !$target.hasClass($.datepicker._triggerClass) && + $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI)) + $.datepicker._hideDatepicker(null, ''); + }, + + /* Adjust one of the date sub-fields. */ + _adjustDate: function(id, offset, period) { + var target = $(id); + var inst = this._getInst(target[0]); + this._adjustInstDate(inst, offset, period); + this._updateDatepicker(inst); + }, + + /* Action for current link. */ + _gotoToday: function(id) { + var target = $(id); + var inst = this._getInst(target[0]); + if (this._get(inst, 'gotoCurrent') && inst.currentDay) { + inst.selectedDay = inst.currentDay; + inst.drawMonth = inst.selectedMonth = inst.currentMonth; + inst.drawYear = inst.selectedYear = inst.currentYear; + } + else { + var date = new Date(); + inst.selectedDay = date.getDate(); + inst.drawMonth = inst.selectedMonth = date.getMonth(); + inst.drawYear = inst.selectedYear = date.getFullYear(); + } + this._notifyChange(inst); + this._adjustDate(target); + }, + + /* Action for selecting a new month/year. */ + _selectMonthYear: function(id, select, period) { + var target = $(id); + var inst = this._getInst(target[0]); + inst._selectingMonthYear = false; + inst['selected' + (period == 'M' ? 'Month' : 'Year')] = + inst['draw' + (period == 'M' ? 'Month' : 'Year')] = + parseInt(select.options[select.selectedIndex].value,10); + this._notifyChange(inst); + this._adjustDate(target); + }, + + /* Restore input focus after not changing month/year. */ + _clickMonthYear: function(id) { + var target = $(id); + var inst = this._getInst(target[0]); + if (inst.input && inst._selectingMonthYear && !$.browser.msie) + inst.input[0].focus(); + inst._selectingMonthYear = !inst._selectingMonthYear; + }, + + /* Action for changing the first week day. */ + _changeFirstDay: function(id, day) { + var target = $(id); + var inst = this._getInst(target[0]); + inst.settings.firstDay = day; + this._updateDatepicker(inst); + }, + + /* Action for selecting a day. */ + _selectDay: function(id, month, year, td) { + if ($(td).hasClass(this._unselectableClass)) + return; + var target = $(id); + var inst = this._getInst(target[0]); + var rangeSelect = this._get(inst, 'rangeSelect'); + if (rangeSelect) { + inst.stayOpen = !inst.stayOpen; + if (inst.stayOpen) { + $('.ui-datepicker td', inst.dpDiv).removeClass(this._currentClass); + $(td).addClass(this._currentClass); + } + } + inst.selectedDay = inst.currentDay = $('a', td).html(); + inst.selectedMonth = inst.currentMonth = month; + inst.selectedYear = inst.currentYear = year; + if (inst.stayOpen) { + inst.endDay = inst.endMonth = inst.endYear = null; + } + else if (rangeSelect) { + inst.endDay = inst.currentDay; + inst.endMonth = inst.currentMonth; + inst.endYear = inst.currentYear; + } + this._selectDate(id, this._formatDate(inst, + inst.currentDay, inst.currentMonth, inst.currentYear)); + if (inst.stayOpen) { + inst.rangeStart = this._daylightSavingAdjust( + new Date(inst.currentYear, inst.currentMonth, inst.currentDay)); + this._updateDatepicker(inst); + } + else if (rangeSelect) { + inst.selectedDay = inst.currentDay = inst.rangeStart.getDate(); + inst.selectedMonth = inst.currentMonth = inst.rangeStart.getMonth(); + inst.selectedYear = inst.currentYear = inst.rangeStart.getFullYear(); + inst.rangeStart = null; + if (inst.inline) + this._updateDatepicker(inst); + } + }, + + /* Erase the input field and hide the date picker. */ + _clearDate: function(id) { + var target = $(id); + var inst = this._getInst(target[0]); + if (this._get(inst, 'mandatory')) + return; + inst.stayOpen = false; + inst.endDay = inst.endMonth = inst.endYear = inst.rangeStart = null; + this._selectDate(target, ''); + }, + + /* Update the input field with the selected date. */ + _selectDate: function(id, dateStr) { + var target = $(id); + var inst = this._getInst(target[0]); + dateStr = (dateStr != null ? dateStr : this._formatDate(inst)); + if (this._get(inst, 'rangeSelect') && dateStr) + dateStr = (inst.rangeStart ? this._formatDate(inst, inst.rangeStart) : + dateStr) + this._get(inst, 'rangeSeparator') + dateStr; + if (inst.input) + inst.input.val(dateStr); + this._updateAlternate(inst); + var onSelect = this._get(inst, 'onSelect'); + if (onSelect) + onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback + else if (inst.input) + inst.input.trigger('change'); // fire the change event + if (inst.inline) + this._updateDatepicker(inst); + else if (!inst.stayOpen) { + this._hideDatepicker(null, this._get(inst, 'duration')); + this._lastInput = inst.input[0]; + if (typeof(inst.input[0]) != 'object') + inst.input[0].focus(); // restore focus + this._lastInput = null; + } + }, + + /* Update any alternate field to synchronise with the main field. */ + _updateAlternate: function(inst) { + var altField = this._get(inst, 'altField'); + if (altField) { // update alternate field too + var altFormat = this._get(inst, 'altFormat') || this._get(inst, 'dateFormat'); + var date = this._getDate(inst); + dateStr = (isArray(date) ? (!date[0] && !date[1] ? '' : + this.formatDate(altFormat, date[0], this._getFormatConfig(inst)) + + this._get(inst, 'rangeSeparator') + this.formatDate( + altFormat, date[1] || date[0], this._getFormatConfig(inst))) : + this.formatDate(altFormat, date, this._getFormatConfig(inst))); + $(altField).each(function() { $(this).val(dateStr); }); + } + }, + + /* Set as beforeShowDay function to prevent selection of weekends. + @param date Date - the date to customise + @return [boolean, string] - is this date selectable?, what is its CSS class? */ + noWeekends: function(date) { + var day = date.getDay(); + return [(day > 0 && day < 6), '']; + }, + + /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition. + @param date Date - the date to get the week for + @return number - the number of the week within the year that contains this date */ + iso8601Week: function(date) { + var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate()); + var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4); // First week always contains 4 Jan + var firstDay = firstMon.getDay() || 7; // Day of week: Mon = 1, ..., Sun = 7 + firstMon.setDate(firstMon.getDate() + 1 - firstDay); // Preceding Monday + if (firstDay < 4 && checkDate < firstMon) { // Adjust first three days in year if necessary + checkDate.setDate(checkDate.getDate() - 3); // Generate for previous year + return $.datepicker.iso8601Week(checkDate); + } else if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) { // Check last three days in year + firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7; + if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) { // Adjust if necessary + return 1; + } + } + return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date + }, + + /* Provide status text for a particular date. + @param date the date to get the status for + @param inst the current datepicker instance + @return the status display text for this date */ + dateStatus: function(date, inst) { + return $.datepicker.formatDate($.datepicker._get(inst, 'dateStatus'), + date, $.datepicker._getFormatConfig(inst)); + }, + + /* Parse a string value into a date object. + See formatDate below for the possible formats. + + @param format string - the expected format of the date + @param value string - the date in the above format + @param settings Object - attributes include: + shortYearCutoff number - the cutoff year for determining the century (optional) + dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) + dayNames string[7] - names of the days from Sunday (optional) + monthNamesShort string[12] - abbreviated names of the months (optional) + monthNames string[12] - names of the months (optional) + @return Date - the extracted date value or null if value is blank */ + parseDate: function (format, value, settings) { + if (format == null || value == null) + throw 'Invalid arguments'; + value = (typeof value == 'object' ? value.toString() : value + ''); + if (value == '') + return null; + var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff; + var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; + var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; + var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; + var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; + var year = -1; + var month = -1; + var day = -1; + var doy = -1; + var literal = false; + // Check whether a format character is doubled + var lookAhead = function(match) { + var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); + if (matches) + iFormat++; + return matches; + }; + // Extract a number from the string value + var getNumber = function(match) { + lookAhead(match); + var origSize = (match == '@' ? 14 : (match == 'y' ? 4 : (match == 'o' ? 3 : 2))); + var size = origSize; + var num = 0; + while (size > 0 && iValue < value.length && + value.charAt(iValue) >= '0' && value.charAt(iValue) <= '9') { + num = num * 10 + parseInt(value.charAt(iValue++),10); + size--; + } + if (size == origSize) + throw 'Missing number at position ' + iValue; + return num; + }; + // Extract a name from the string value and convert to an index + var getName = function(match, shortNames, longNames) { + var names = (lookAhead(match) ? longNames : shortNames); + var size = 0; + for (var j = 0; j < names.length; j++) + size = Math.max(size, names[j].length); + var name = ''; + var iInit = iValue; + while (size > 0 && iValue < value.length) { + name += value.charAt(iValue++); + for (var i = 0; i < names.length; i++) + if (name == names[i]) + return i + 1; + size--; + } + throw 'Unknown name at position ' + iInit; + }; + // Confirm that a literal character matches the string value + var checkLiteral = function() { + if (value.charAt(iValue) != format.charAt(iFormat)) + throw 'Unexpected literal at position ' + iValue; + iValue++; + }; + var iValue = 0; + for (var iFormat = 0; iFormat < format.length; iFormat++) { + if (literal) + if (format.charAt(iFormat) == "'" && !lookAhead("'")) + literal = false; + else + checkLiteral(); + else + switch (format.charAt(iFormat)) { + case 'd': + day = getNumber('d'); + break; + case 'D': + getName('D', dayNamesShort, dayNames); + break; + case 'o': + doy = getNumber('o'); + break; + case 'm': + month = getNumber('m'); + break; + case 'M': + month = getName('M', monthNamesShort, monthNames); + break; + case 'y': + year = getNumber('y'); + break; + case '@': + var date = new Date(getNumber('@')); + year = date.getFullYear(); + month = date.getMonth() + 1; + day = date.getDate(); + break; + case "'": + if (lookAhead("'")) + checkLiteral(); + else + literal = true; + break; + default: + checkLiteral(); + } + } + if (year == -1) + year = new Date().getFullYear(); + else if (year < 100) + year += new Date().getFullYear() - new Date().getFullYear() % 100 + + (year <= shortYearCutoff ? 0 : -100); + if (doy > -1) { + month = 1; + day = doy; + do { + var dim = this._getDaysInMonth(year, month - 1); + if (day <= dim) + break; + month++; + day -= dim; + } while (true); + } + var date = this._daylightSavingAdjust(new Date(year, month - 1, day)); + if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) + throw 'Invalid date'; // E.g. 31/02/* + return date; + }, + + /* Standard date formats. */ + ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601) + COOKIE: 'D, dd M yy', + ISO_8601: 'yy-mm-dd', + RFC_822: 'D, d M y', + RFC_850: 'DD, dd-M-y', + RFC_1036: 'D, d M y', + RFC_1123: 'D, d M yy', + RFC_2822: 'D, d M yy', + RSS: 'D, d M y', // RFC 822 + TIMESTAMP: '@', + W3C: 'yy-mm-dd', // ISO 8601 + + /* Format a date object into a string value. + The format can be combinations of the following: + d - day of month (no leading zero) + dd - day of month (two digit) + o - day of year (no leading zeros) + oo - day of year (three digit) + D - day name short + DD - day name long + m - month of year (no leading zero) + mm - month of year (two digit) + M - month name short + MM - month name long + y - year (two digit) + yy - year (four digit) + @ - Unix timestamp (ms since 01/01/1970) + '...' - literal text + '' - single quote + + @param format string - the desired format of the date + @param date Date - the date value to format + @param settings Object - attributes include: + dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) + dayNames string[7] - names of the days from Sunday (optional) + monthNamesShort string[12] - abbreviated names of the months (optional) + monthNames string[12] - names of the months (optional) + @return string - the date in the above format */ + formatDate: function (format, date, settings) { + if (!date) + return ''; + var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; + var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; + var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; + var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; + // Check whether a format character is doubled + var lookAhead = function(match) { + var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); + if (matches) + iFormat++; + return matches; + }; + // Format a number, with leading zero if necessary + var formatNumber = function(match, value, len) { + var num = '' + value; + if (lookAhead(match)) + while (num.length < len) + num = '0' + num; + return num; + }; + // Format a name, short or long as requested + var formatName = function(match, value, shortNames, longNames) { + return (lookAhead(match) ? longNames[value] : shortNames[value]); + }; + var output = ''; + var literal = false; + if (date) + for (var iFormat = 0; iFormat < format.length; iFormat++) { + if (literal) + if (format.charAt(iFormat) == "'" && !lookAhead("'")) + literal = false; + else + output += format.charAt(iFormat); + else + switch (format.charAt(iFormat)) { + case 'd': + output += formatNumber('d', date.getDate(), 2); + break; + case 'D': + output += formatName('D', date.getDay(), dayNamesShort, dayNames); + break; + case 'o': + var doy = date.getDate(); + for (var m = date.getMonth() - 1; m >= 0; m--) + doy += this._getDaysInMonth(date.getFullYear(), m); + output += formatNumber('o', doy, 3); + break; + case 'm': + output += formatNumber('m', date.getMonth() + 1, 2); + break; + case 'M': + output += formatName('M', date.getMonth(), monthNamesShort, monthNames); + break; + case 'y': + output += (lookAhead('y') ? date.getFullYear() : + (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100); + break; + case '@': + output += date.getTime(); + break; + case "'": + if (lookAhead("'")) + output += "'"; + else + literal = true; + break; + default: + output += format.charAt(iFormat); + } + } + return output; + }, + + /* Extract all possible characters from the date format. */ + _possibleChars: function (format) { + var chars = ''; + var literal = false; + for (var iFormat = 0; iFormat < format.length; iFormat++) + if (literal) + if (format.charAt(iFormat) == "'" && !lookAhead("'")) + literal = false; + else + chars += format.charAt(iFormat); + else + switch (format.charAt(iFormat)) { + case 'd': case 'm': case 'y': case '@': + chars += '0123456789'; + break; + case 'D': case 'M': + return null; // Accept anything + case "'": + if (lookAhead("'")) + chars += "'"; + else + literal = true; + break; + default: + chars += format.charAt(iFormat); + } + return chars; + }, + + /* Get a setting value, defaulting if necessary. */ + _get: function(inst, name) { + return inst.settings[name] !== undefined ? + inst.settings[name] : this._defaults[name]; + }, + + /* Parse existing date and initialise date picker. */ + _setDateFromField: function(inst) { + var dateFormat = this._get(inst, 'dateFormat'); + var dates = inst.input ? inst.input.val().split(this._get(inst, 'rangeSeparator')) : null; + inst.endDay = inst.endMonth = inst.endYear = null; + var date = defaultDate = this._getDefaultDate(inst); + if (dates.length > 0) { + var settings = this._getFormatConfig(inst); + if (dates.length > 1) { + date = this.parseDate(dateFormat, dates[1], settings) || defaultDate; + inst.endDay = date.getDate(); + inst.endMonth = date.getMonth(); + inst.endYear = date.getFullYear(); + } + try { + date = this.parseDate(dateFormat, dates[0], settings) || defaultDate; + } catch (event) { + this.log(event); + date = defaultDate; + } + } + inst.selectedDay = date.getDate(); + inst.drawMonth = inst.selectedMonth = date.getMonth(); + inst.drawYear = inst.selectedYear = date.getFullYear(); + inst.currentDay = (dates[0] ? date.getDate() : 0); + inst.currentMonth = (dates[0] ? date.getMonth() : 0); + inst.currentYear = (dates[0] ? date.getFullYear() : 0); + this._adjustInstDate(inst); + }, + + /* Retrieve the default date shown on opening. */ + _getDefaultDate: function(inst) { + var date = this._determineDate(this._get(inst, 'defaultDate'), new Date()); + var minDate = this._getMinMaxDate(inst, 'min', true); + var maxDate = this._getMinMaxDate(inst, 'max'); + date = (minDate && date < minDate ? minDate : date); + date = (maxDate && date > maxDate ? maxDate : date); + return date; + }, + + /* A date may be specified as an exact value or a relative one. */ + _determineDate: function(date, defaultDate) { + var offsetNumeric = function(offset) { + var date = new Date(); + date.setDate(date.getDate() + offset); + return date; + }; + var offsetString = function(offset, getDaysInMonth) { + var date = new Date(); + var year = date.getFullYear(); + var month = date.getMonth(); + var day = date.getDate(); + var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g; + var matches = pattern.exec(offset); + while (matches) { + switch (matches[2] || 'd') { + case 'd' : case 'D' : + day += parseInt(matches[1],10); break; + case 'w' : case 'W' : + day += parseInt(matches[1],10) * 7; break; + case 'm' : case 'M' : + month += parseInt(matches[1],10); + day = Math.min(day, getDaysInMonth(year, month)); + break; + case 'y': case 'Y' : + year += parseInt(matches[1],10); + day = Math.min(day, getDaysInMonth(year, month)); + break; + } + matches = pattern.exec(offset); + } + return new Date(year, month, day); + }; + date = (date == null ? defaultDate : + (typeof date == 'string' ? offsetString(date, this._getDaysInMonth) : + (typeof date == 'number' ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : date))); + date = (date && date.toString() == 'Invalid Date' ? defaultDate : date); + if (date) { + date.setHours(0); + date.setMinutes(0); + date.setSeconds(0); + date.setMilliseconds(0); + } + return this._daylightSavingAdjust(date); + }, + + /* Handle switch to/from daylight saving. + Hours may be non-zero on daylight saving cut-over: + > 12 when midnight changeover, but then cannot generate + midnight datetime, so jump to 1AM, otherwise reset. + @param date (Date) the date to check + @return (Date) the corrected date */ + _daylightSavingAdjust: function(date) { + if (!date) return null; + date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0); + return date; + }, + + /* Set the date(s) directly. */ + _setDate: function(inst, date, endDate) { + var clear = !(date); + var origMonth = inst.selectedMonth; + var origYear = inst.selectedYear; + date = this._determineDate(date, new Date()); + inst.selectedDay = inst.currentDay = date.getDate(); + inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth(); + inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear(); + if (this._get(inst, 'rangeSelect')) { + if (endDate) { + endDate = this._determineDate(endDate, null); + inst.endDay = endDate.getDate(); + inst.endMonth = endDate.getMonth(); + inst.endYear = endDate.getFullYear(); + } else { + inst.endDay = inst.currentDay; + inst.endMonth = inst.currentMonth; + inst.endYear = inst.currentYear; + } + } + if (origMonth != inst.selectedMonth || origYear != inst.selectedYear) + this._notifyChange(inst); + this._adjustInstDate(inst); + if (inst.input) + inst.input.val(clear ? '' : this._formatDate(inst) + + (!this._get(inst, 'rangeSelect') ? '' : this._get(inst, 'rangeSeparator') + + this._formatDate(inst, inst.endDay, inst.endMonth, inst.endYear))); + }, + + /* Retrieve the date(s) directly. */ + _getDate: function(inst) { + var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null : + this._daylightSavingAdjust(new Date( + inst.currentYear, inst.currentMonth, inst.currentDay))); + if (this._get(inst, 'rangeSelect')) { + return [inst.rangeStart || startDate, + (!inst.endYear ? inst.rangeStart || startDate : + this._daylightSavingAdjust(new Date(inst.endYear, inst.endMonth, inst.endDay)))]; + } else + return startDate; + }, + + /* Generate the HTML for the current state of the date picker. */ + _generateHTML: function(inst) { + var today = new Date(); + today = this._daylightSavingAdjust( + new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time + var showStatus = this._get(inst, 'showStatus'); + var initStatus = this._get(inst, 'initStatus') || ' '; + var isRTL = this._get(inst, 'isRTL'); + // build the date picker HTML + var clear = (this._get(inst, 'mandatory') ? '' : + ''); + var controls = '
          ' + (isRTL ? '' : clear) + + '' + (isRTL ? clear : '') + '
          '; + var prompt = this._get(inst, 'prompt'); + var closeAtTop = this._get(inst, 'closeAtTop'); + var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext'); + var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat'); + var showBigPrevNext = this._get(inst, 'showBigPrevNext'); + var numMonths = this._getNumberOfMonths(inst); + var showCurrentAtPos = this._get(inst, 'showCurrentAtPos'); + var stepMonths = this._get(inst, 'stepMonths'); + var stepBigMonths = this._get(inst, 'stepBigMonths'); + var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1); + var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) : + new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); + var minDate = this._getMinMaxDate(inst, 'min', true); + var maxDate = this._getMinMaxDate(inst, 'max'); + var drawMonth = inst.drawMonth - showCurrentAtPos; + var drawYear = inst.drawYear; + if (drawMonth < 0) { + drawMonth += 12; + drawYear--; + } + if (maxDate) { + var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(), + maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate())); + maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw); + while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) { + drawMonth--; + if (drawMonth < 0) { + drawMonth = 11; + drawYear--; + } + } + } + // controls and links + var prevText = this._get(inst, 'prevText'); + prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText, + this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)), + this._getFormatConfig(inst))); + var prevBigText = (showBigPrevNext ? this._get(inst, 'prevBigText') : ''); + prevBigText = (!navigationAsDateFormat ? prevBigText : this.formatDate(prevBigText, + this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepBigMonths, 1)), + this._getFormatConfig(inst))); + var prev = '
          ' + (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? + (showBigPrevNext ? '' + prevBigText + '' : '') + + '' + prevText + '' : + (hideIfNoPrevNext ? '' : (showBigPrevNext ? '' : '') + + '')) + '
          '; + var nextText = this._get(inst, 'nextText'); + nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText, + this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)), + this._getFormatConfig(inst))); + var nextBigText = (showBigPrevNext ? this._get(inst, 'nextBigText') : ''); + nextBigText = (!navigationAsDateFormat ? nextBigText : this.formatDate(nextBigText, + this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepBigMonths, 1)), + this._getFormatConfig(inst))); + var next = '
          ' + (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ? + '' + nextText + '' + + (showBigPrevNext ? '' + nextBigText + '' : '') : + (hideIfNoPrevNext ? '' : '' + + (showBigPrevNext ? '' : ''))) + '
          '; + var currentText = this._get(inst, 'currentText'); + var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today); + currentText = (!navigationAsDateFormat ? currentText : + this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); + var html = (closeAtTop && !inst.inline ? controls : '') + + '' + + (prompt ? '
          ' + prompt + '
          ' : ''); + var firstDay = parseInt(this._get(inst, 'firstDay')); + firstDay = (isNaN(firstDay) ? 0 : firstDay); + var changeFirstDay = this._get(inst, 'changeFirstDay'); + var dayNames = this._get(inst, 'dayNames'); + var dayNamesShort = this._get(inst, 'dayNamesShort'); + var dayNamesMin = this._get(inst, 'dayNamesMin'); + var monthNames = this._get(inst, 'monthNames'); + var beforeShowDay = this._get(inst, 'beforeShowDay'); + var highlightWeek = this._get(inst, 'highlightWeek'); + var showOtherMonths = this._get(inst, 'showOtherMonths'); + var showWeeks = this._get(inst, 'showWeeks'); + var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week; + var weekStatus = this._get(inst, 'weekStatus'); + var status = (showStatus ? this._get(inst, 'dayStatus') || initStatus : ''); + var dateStatus = this._get(inst, 'statusForDate') || this.dateStatus; + var endDate = inst.endDay ? this._daylightSavingAdjust( + new Date(inst.endYear, inst.endMonth, inst.endDay)) : currentDate; + var defaultDate = this._getDefaultDate(inst); + for (var row = 0; row < numMonths[0]; row++) + for (var col = 0; col < numMonths[1]; col++) { + var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); + html += '
          ' + + this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate, + selectedDate, row > 0 || col > 0, showStatus, initStatus, monthNames) + // draw month headers + '' + + '' + + (showWeeks ? '' + + this._get(inst, 'weekHeader') + '' : ''); + for (var dow = 0; dow < 7; dow++) { // days of the week + var day = (dow + firstDay) % 7; + var dayStatus = (status.indexOf('DD') > -1 ? status.replace(/DD/, dayNames[day]) : + status.replace(/D/, dayNamesShort[day])); + html += '= 5 ? ' class="ui-datepicker-week-end-cell"' : '') + '>' + + (!changeFirstDay ? '' + + dayNamesMin[day] + (changeFirstDay ? '' : '') + ''; + } + html += ''; + var daysInMonth = this._getDaysInMonth(drawYear, drawMonth); + if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth) + inst.selectedDay = Math.min(inst.selectedDay, daysInMonth); + var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7; + var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate + var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays)); + for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows + html += '' + + (showWeeks ? '' : ''); + for (var dow = 0; dow < 7; dow++) { // create date picker days + var daySettings = (beforeShowDay ? + beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']); + var otherMonth = (printDate.getMonth() != drawMonth); + var unselectable = otherMonth || !daySettings[0] || + (minDate && printDate < minDate) || (maxDate && printDate > maxDate); + html += ''; // display for this month + printDate.setDate(printDate.getDate() + 1); + printDate = this._daylightSavingAdjust(printDate); + } + html += ''; + } + drawMonth++; + if (drawMonth > 11) { + drawMonth = 0; + drawYear++; + } + html += '
          ' + + calculateWeek(printDate) + '' + // actions + (otherMonth ? (showOtherMonths ? printDate.getDate() : ' ') : // display for other months + (unselectable ? printDate.getDate() : '' + printDate.getDate() + '')) + '
          '; + } + html += (showStatus ? '
          ' + initStatus + '
          ' : '') + + (!closeAtTop && !inst.inline ? controls : '') + + '
          ' + + ($.browser.msie && parseInt($.browser.version,10) < 7 && !inst.inline ? + '' : ''); + inst._keyEvent = false; + return html; + }, + + /* Generate the month and year header. */ + _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate, + selectedDate, secondary, showStatus, initStatus, monthNames) { + minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate); + var changeMonth = this._get(inst, 'changeMonth'); + var changeYear = this._get(inst, 'changeYear'); + var showMonthAfterYear = this._get(inst, 'showMonthAfterYear'); + var html = '
          '; + var monthHtml = ''; + // month selection + if (secondary || !changeMonth) + monthHtml += monthNames[drawMonth]; + else { + var inMinYear = (minDate && minDate.getFullYear() == drawYear); + var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear); + monthHtml += ''; + } + if (!showMonthAfterYear) + html += monthHtml + (secondary || changeMonth || changeYear ? ' ' : ''); + // year selection + if (secondary || !changeYear) + html += drawYear; + else { + // determine range of years to display + var years = this._get(inst, 'yearRange').split(':'); + var year = 0; + var endYear = 0; + if (years.length != 2) { + year = drawYear - 10; + endYear = drawYear + 10; + } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') { + year = endYear = new Date().getFullYear(); + year += parseInt(years[0], 10); + endYear += parseInt(years[1], 10); + } else { + year = parseInt(years[0], 10); + endYear = parseInt(years[1], 10); + } + year = (minDate ? Math.max(year, minDate.getFullYear()) : year); + endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear); + html += ''; + } + if (showMonthAfterYear) + html += (secondary || changeMonth || changeYear ? ' ' : '') + monthHtml; + html += '
          '; // Close datepicker_header + return html; + }, + + /* Provide code to set and clear the status panel. */ + _addStatus: function(showStatus, id, text, initStatus) { + return (showStatus ? ' onmouseover="jQuery(\'#ui-datepicker-status-' + id + + '\').html(\'' + (text || initStatus) + '\');" ' + + 'onmouseout="jQuery(\'#ui-datepicker-status-' + id + + '\').html(\'' + initStatus + '\');"' : ''); + }, + + /* Adjust one of the date sub-fields. */ + _adjustInstDate: function(inst, offset, period) { + var year = inst.drawYear + (period == 'Y' ? offset : 0); + var month = inst.drawMonth + (period == 'M' ? offset : 0); + var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + + (period == 'D' ? offset : 0); + var date = this._daylightSavingAdjust(new Date(year, month, day)); + // ensure it is within the bounds set + var minDate = this._getMinMaxDate(inst, 'min', true); + var maxDate = this._getMinMaxDate(inst, 'max'); + date = (minDate && date < minDate ? minDate : date); + date = (maxDate && date > maxDate ? maxDate : date); + inst.selectedDay = date.getDate(); + inst.drawMonth = inst.selectedMonth = date.getMonth(); + inst.drawYear = inst.selectedYear = date.getFullYear(); + if (period == 'M' || period == 'Y') + this._notifyChange(inst); + }, + + /* Notify change of month/year. */ + _notifyChange: function(inst) { + var onChange = this._get(inst, 'onChangeMonthYear'); + if (onChange) + onChange.apply((inst.input ? inst.input[0] : null), + [inst.selectedYear, inst.selectedMonth + 1, inst]); + }, + + /* Determine the number of months to show. */ + _getNumberOfMonths: function(inst) { + var numMonths = this._get(inst, 'numberOfMonths'); + return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths)); + }, + + /* Determine the current maximum date - ensure no time components are set - may be overridden for a range. */ + _getMinMaxDate: function(inst, minMax, checkRange) { + var date = this._determineDate(this._get(inst, minMax + 'Date'), null); + return (!checkRange || !inst.rangeStart ? date : + (!date || inst.rangeStart > date ? inst.rangeStart : date)); + }, + + /* Find the number of days in a given month. */ + _getDaysInMonth: function(year, month) { + return 32 - new Date(year, month, 32).getDate(); + }, + + /* Find the day of the week of the first of a month. */ + _getFirstDayOfMonth: function(year, month) { + return new Date(year, month, 1).getDay(); + }, + + /* Determines if we should allow a "next/prev" month display change. */ + _canAdjustMonth: function(inst, offset, curYear, curMonth) { + var numMonths = this._getNumberOfMonths(inst); + var date = this._daylightSavingAdjust(new Date( + curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1)); + if (offset < 0) + date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth())); + return this._isInRange(inst, date); + }, + + /* Is the given date in the accepted range? */ + _isInRange: function(inst, date) { + // during range selection, use minimum of selected date and range start + var newMinDate = (!inst.rangeStart ? null : this._daylightSavingAdjust( + new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay))); + newMinDate = (newMinDate && inst.rangeStart < newMinDate ? inst.rangeStart : newMinDate); + var minDate = newMinDate || this._getMinMaxDate(inst, 'min'); + var maxDate = this._getMinMaxDate(inst, 'max'); + return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate)); + }, + + /* Provide the configuration settings for formatting/parsing. */ + _getFormatConfig: function(inst) { + var shortYearCutoff = this._get(inst, 'shortYearCutoff'); + shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff : + new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)); + return {shortYearCutoff: shortYearCutoff, + dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'), + monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')}; + }, + + /* Format the given date for display. */ + _formatDate: function(inst, day, month, year) { + if (!day) { + inst.currentDay = inst.selectedDay; + inst.currentMonth = inst.selectedMonth; + inst.currentYear = inst.selectedYear; + } + var date = (day ? (typeof day == 'object' ? day : + this._daylightSavingAdjust(new Date(year, month, day))) : + this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); + return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst)); + } +}); + +/* jQuery extend now ignores nulls! */ +function extendRemove(target, props) { + $.extend(target, props); + for (var name in props) + if (props[name] == null || props[name] == undefined) + target[name] = props[name]; + return target; +}; + +/* Determine whether an object is an array. */ +function isArray(a) { + return (a && (($.browser.safari && typeof a == 'object' && a.length) || + (a.constructor && a.constructor.toString().match(/\Array\(\)/)))); +}; + +/* Invoke the datepicker functionality. + @param options string - a command, optionally followed by additional parameters or + Object - settings for attaching new datepicker functionality + @return jQuery object */ +$.fn.datepicker = function(options){ + + /* Initialise the date picker. */ + if (!$.datepicker.initialized) { + $(document.body).append($.datepicker.dpDiv). + mousedown($.datepicker._checkExternalClick); + $.datepicker.initialized = true; + } + + var otherArgs = Array.prototype.slice.call(arguments, 1); + if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate')) + return $.datepicker['_' + options + 'Datepicker']. + apply($.datepicker, [this[0]].concat(otherArgs)); + return this.each(function() { + typeof options == 'string' ? + $.datepicker['_' + options + 'Datepicker']. + apply($.datepicker, [this].concat(otherArgs)) : + $.datepicker._attachDatepicker(this, options); + }); +}; + +$.datepicker = new Datepicker(); // singleton instance +$.datepicker.initialized = false; +$.datepicker.uuid = new Date().getTime(); +$.datepicker.version = "1.6"; + +})(jQuery); +/* + * jQuery UI Dialog 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Dialog + * + * Depends: + * ui.core.js + * ui.draggable.js + * ui.resizable.js + */ +(function($) { + +var setDataSwitch = { + dragStart: "start.draggable", + drag: "drag.draggable", + dragStop: "stop.draggable", + maxHeight: "maxHeight.resizable", + minHeight: "minHeight.resizable", + maxWidth: "maxWidth.resizable", + minWidth: "minWidth.resizable", + resizeStart: "start.resizable", + resize: "drag.resizable", + resizeStop: "stop.resizable" +}; + +$.widget("ui.dialog", { + + _init: function() { + this.originalTitle = this.element.attr('title'); + this.options.title = this.options.title || this.originalTitle; + + var self = this, + options = this.options, + + uiDialogContent = this.element + .removeAttr('title') + .addClass('ui-dialog-content') + .wrap('
          ') + .wrap('
          '), + + uiDialogContainer = (this.uiDialogContainer = uiDialogContent.parent()) + .addClass('ui-dialog-container') + .css({ + position: 'relative', + width: '100%', + height: '100%' + }), + + uiDialogTitlebar = (this.uiDialogTitlebar = $('
          ')) + .addClass('ui-dialog-titlebar') + .mousedown(function() { + self.moveToTop(); + }) + .prependTo(uiDialogContainer), + + uiDialogTitlebarClose = $('') + .addClass('ui-dialog-titlebar-close') + .attr('role', 'button') + .appendTo(uiDialogTitlebar), + + uiDialogTitlebarCloseText = (this.uiDialogTitlebarCloseText = $('')) + .text(options.closeText) + .appendTo(uiDialogTitlebarClose), + + title = options.title || ' ', + titleId = $.ui.dialog.getTitleId(this.element), + uiDialogTitle = $('') + .addClass('ui-dialog-title') + .attr('id', titleId) + .html(title) + .prependTo(uiDialogTitlebar), + + uiDialog = (this.uiDialog = uiDialogContainer.parent()) + .appendTo(document.body) + .hide() + .addClass('ui-dialog') + .addClass(options.dialogClass) + .css({ + position: 'absolute', + width: options.width, + height: options.height, + overflow: 'hidden', + zIndex: options.zIndex + }) + // setting tabIndex makes the div focusable + // setting outline to 0 prevents a border on focus in Mozilla + .attr('tabIndex', -1).css('outline', 0).keydown(function(ev) { + (options.closeOnEscape && ev.keyCode + && ev.keyCode == $.ui.keyCode.ESCAPE && self.close()); + }) + .attr({ + role: 'dialog', + 'aria-labelledby': titleId + }) + .mouseup(function() { + self.moveToTop(); + }), + + uiDialogButtonPane = (this.uiDialogButtonPane = $('
          ')) + .addClass('ui-dialog-buttonpane') + .css({ + position: 'absolute', + bottom: 0 + }) + .appendTo(uiDialog), + + uiDialogTitlebarClose = $('.ui-dialog-titlebar-close', uiDialogTitlebar) + .hover( + function() { + $(this).addClass('ui-dialog-titlebar-close-hover'); + }, + function() { + $(this).removeClass('ui-dialog-titlebar-close-hover'); + } + ) + .mousedown(function(ev) { + ev.stopPropagation(); + }) + .click(function() { + self.close(); + return false; + }); + + uiDialogTitlebar.find("*").add(uiDialogTitlebar).disableSelection(); + + (options.draggable && $.fn.draggable && this._makeDraggable()); + (options.resizable && $.fn.resizable && this._makeResizable()); + + this._createButtons(options.buttons); + this._isOpen = false; + + (options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe()); + (options.autoOpen && this.open()); + }, + + destroy: function() { + (this.overlay && this.overlay.destroy()); + this.uiDialog.hide(); + this.element + .unbind('.dialog') + .removeData('dialog') + .removeClass('ui-dialog-content') + .hide().appendTo('body'); + this.uiDialog.remove(); + + (this.originalTitle && this.element.attr('title', this.originalTitle)); + }, + + close: function() { + if (false === this._trigger('beforeclose', null, { options: this.options })) { + return; + } + + (this.overlay && this.overlay.destroy()); + this.uiDialog + .hide(this.options.hide) + .unbind('keypress.ui-dialog'); + + this._trigger('close', null, { options: this.options }); + $.ui.dialog.overlay.resize(); + + this._isOpen = false; + }, + + isOpen: function() { + return this._isOpen; + }, + + // the force parameter allows us to move modal dialogs to their correct + // position on open + moveToTop: function(force) { + + if ((this.options.modal && !force) + || (!this.options.stack && !this.options.modal)) { + return this._trigger('focus', null, { options: this.options }); + } + + var maxZ = this.options.zIndex, options = this.options; + $('.ui-dialog:visible').each(function() { + maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10) || options.zIndex); + }); + (this.overlay && this.overlay.$el.css('z-index', ++maxZ)); + + //Save and then restore scroll since Opera 9.5+ resets when parent z-Index is changed. + // http://ui.jquery.com/bugs/ticket/3193 + var saveScroll = { scrollTop: this.element.attr('scrollTop'), scrollLeft: this.element.attr('scrollLeft') }; + this.uiDialog.css('z-index', ++maxZ); + this.element.attr(saveScroll); + this._trigger('focus', null, { options: this.options }); + }, + + open: function() { + if (this._isOpen) { return; } + + this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null; + (this.uiDialog.next().length && this.uiDialog.appendTo('body')); + this._position(this.options.position); + this.uiDialog.show(this.options.show); + (this.options.autoResize && this._size()); + this.moveToTop(true); + + // prevent tabbing out of modal dialogs + (this.options.modal && this.uiDialog.bind('keypress.ui-dialog', function(event) { + if (event.keyCode != $.ui.keyCode.TAB) { + return; + } + + var tabbables = $(':tabbable', this), + first = tabbables.filter(':first')[0], + last = tabbables.filter(':last')[0]; + + if (event.target == last && !event.shiftKey) { + setTimeout(function() { + first.focus(); + }, 1); + } else if (event.target == first && event.shiftKey) { + setTimeout(function() { + last.focus(); + }, 1); + } + })); + + this.uiDialog.find(':tabbable:first').focus(); + this._trigger('open', null, { options: this.options }); + this._isOpen = true; + }, + + _createButtons: function(buttons) { + var self = this, + hasButtons = false, + uiDialogButtonPane = this.uiDialogButtonPane; + + // remove any existing buttons + uiDialogButtonPane.empty().hide(); + + $.each(buttons, function() { return !(hasButtons = true); }); + if (hasButtons) { + uiDialogButtonPane.show(); + $.each(buttons, function(name, fn) { + $('') + .text(name) + .click(function() { fn.apply(self.element[0], arguments); }) + .appendTo(uiDialogButtonPane); + }); + } + }, + + _makeDraggable: function() { + var self = this, + options = this.options; + + this.uiDialog.draggable({ + cancel: '.ui-dialog-content', + helper: options.dragHelper, + handle: '.ui-dialog-titlebar', + start: function() { + self.moveToTop(); + (options.dragStart && options.dragStart.apply(self.element[0], arguments)); + }, + drag: function() { + (options.drag && options.drag.apply(self.element[0], arguments)); + }, + stop: function() { + (options.dragStop && options.dragStop.apply(self.element[0], arguments)); + $.ui.dialog.overlay.resize(); + } + }); + }, + + _makeResizable: function(handles) { + handles = (handles === undefined ? this.options.resizable : handles); + var self = this, + options = this.options, + resizeHandles = typeof handles == 'string' + ? handles + : 'n,e,s,w,se,sw,ne,nw'; + + this.uiDialog.resizable({ + cancel: '.ui-dialog-content', + helper: options.resizeHelper, + maxWidth: options.maxWidth, + maxHeight: options.maxHeight, + minWidth: options.minWidth, + minHeight: options.minHeight, + start: function() { + (options.resizeStart && options.resizeStart.apply(self.element[0], arguments)); + }, + resize: function() { + (options.autoResize && self._size.apply(self)); + (options.resize && options.resize.apply(self.element[0], arguments)); + }, + handles: resizeHandles, + stop: function() { + (options.autoResize && self._size.apply(self)); + (options.resizeStop && options.resizeStop.apply(self.element[0], arguments)); + $.ui.dialog.overlay.resize(); + } + }); + }, + + _position: function(pos) { + var wnd = $(window), doc = $(document), + pTop = doc.scrollTop(), pLeft = doc.scrollLeft(), + minTop = pTop; + + if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) { + pos = [ + pos == 'right' || pos == 'left' ? pos : 'center', + pos == 'top' || pos == 'bottom' ? pos : 'middle' + ]; + } + if (pos.constructor != Array) { + pos = ['center', 'middle']; + } + if (pos[0].constructor == Number) { + pLeft += pos[0]; + } else { + switch (pos[0]) { + case 'left': + pLeft += 0; + break; + case 'right': + pLeft += wnd.width() - this.uiDialog.outerWidth(); + break; + default: + case 'center': + pLeft += (wnd.width() - this.uiDialog.outerWidth()) / 2; + } + } + if (pos[1].constructor == Number) { + pTop += pos[1]; + } else { + switch (pos[1]) { + case 'top': + pTop += 0; + break; + case 'bottom': + // Opera check fixes #3564, can go away with jQuery 1.3 + pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight(); + break; + default: + case 'middle': + // Opera check fixes #3564, can go away with jQuery 1.3 + pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight()) / 2; + } + } + + // prevent the dialog from being too high (make sure the titlebar + // is accessible) + pTop = Math.max(pTop, minTop); + this.uiDialog.css({top: pTop, left: pLeft}); + }, + + _setData: function(key, value){ + (setDataSwitch[key] && this.uiDialog.data(setDataSwitch[key], value)); + switch (key) { + case "buttons": + this._createButtons(value); + break; + case "closeText": + this.uiDialogTitlebarCloseText.text(value); + break; + case "draggable": + (value + ? this._makeDraggable() + : this.uiDialog.draggable('destroy')); + break; + case "height": + this.uiDialog.height(value); + break; + case "position": + this._position(value); + break; + case "resizable": + var uiDialog = this.uiDialog, + isResizable = this.uiDialog.is(':data(resizable)'); + + // currently resizable, becoming non-resizable + (isResizable && !value && uiDialog.resizable('destroy')); + + // currently resizable, changing handles + (isResizable && typeof value == 'string' && + uiDialog.resizable('option', 'handles', value)); + + // currently non-resizable, becoming resizable + (isResizable || this._makeResizable(value)); + + break; + case "title": + $(".ui-dialog-title", this.uiDialogTitlebar).html(value || ' '); + break; + case "width": + this.uiDialog.width(value); + break; + } + + $.widget.prototype._setData.apply(this, arguments); + }, + + _size: function() { + var container = this.uiDialogContainer, + titlebar = this.uiDialogTitlebar, + content = this.element, + tbMargin = (parseInt(content.css('margin-top'), 10) || 0) + + (parseInt(content.css('margin-bottom'), 10) || 0), + lrMargin = (parseInt(content.css('margin-left'), 10) || 0) + + (parseInt(content.css('margin-right'), 10) || 0); + content.height(container.height() - titlebar.outerHeight() - tbMargin); + content.width(container.width() - lrMargin); + } + +}); + +$.extend($.ui.dialog, { + version: "1.6", + defaults: { + autoOpen: true, + autoResize: true, + bgiframe: false, + buttons: {}, + closeOnEscape: true, + closeText: 'close', + draggable: true, + height: 200, + minHeight: 100, + minWidth: 150, + modal: false, + overlay: {}, + position: 'center', + resizable: true, + stack: true, + width: 300, + zIndex: 1000 + }, + + getter: 'isOpen', + + uuid: 0, + + getTitleId: function($el) { + return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid); + }, + + overlay: function(dialog) { + this.$el = $.ui.dialog.overlay.create(dialog); + } +}); + +$.extend($.ui.dialog.overlay, { + instances: [], + events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','), + function(event) { return event + '.dialog-overlay'; }).join(' '), + create: function(dialog) { + if (this.instances.length === 0) { + // prevent use of anchors and inputs + // we use a setTimeout in case the overlay is created from an + // event that we're going to be cancelling (see #2804) + setTimeout(function() { + $('a, :input').bind($.ui.dialog.overlay.events, function() { + // allow use of the element if inside a dialog and + // - there are no modal dialogs + // - there are modal dialogs, but we are in front of the topmost modal + var allow = false; + var $dialog = $(this).parents('.ui-dialog'); + if ($dialog.length) { + var $overlays = $('.ui-dialog-overlay'); + if ($overlays.length) { + var maxZ = parseInt($overlays.css('z-index'), 10); + $overlays.each(function() { + maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10)); + }); + allow = parseInt($dialog.css('z-index'), 10) > maxZ; + } else { + allow = true; + } + } + return allow; + }); + }, 1); + + // allow closing by pressing the escape key + $(document).bind('keydown.dialog-overlay', function(event) { + (dialog.options.closeOnEscape && event.keyCode + && event.keyCode == $.ui.keyCode.ESCAPE && dialog.close()); + }); + + // handle window resize + $(window).bind('resize.dialog-overlay', $.ui.dialog.overlay.resize); + } + + var $el = $('
          ').appendTo(document.body) + .addClass('ui-dialog-overlay').css($.extend({ + borderWidth: 0, margin: 0, padding: 0, + position: 'absolute', top: 0, left: 0, + width: this.width(), + height: this.height() + }, dialog.options.overlay)); + + (dialog.options.bgiframe && $.fn.bgiframe && $el.bgiframe()); + + this.instances.push($el); + return $el; + }, + + destroy: function($el) { + this.instances.splice($.inArray(this.instances, $el), 1); + + if (this.instances.length === 0) { + $('a, :input').add([document, window]).unbind('.dialog-overlay'); + } + + $el.remove(); + }, + + height: function() { + // handle IE 6 + if ($.browser.msie && $.browser.version < 7) { + var scrollHeight = Math.max( + document.documentElement.scrollHeight, + document.body.scrollHeight + ); + var offsetHeight = Math.max( + document.documentElement.offsetHeight, + document.body.offsetHeight + ); + + if (scrollHeight < offsetHeight) { + return $(window).height() + 'px'; + } else { + return scrollHeight + 'px'; + } + // handle Opera + } else if ($.browser.opera) { + return Math.max( + window.innerHeight, + $(document).height() + ) + 'px'; + // handle "good" browsers + } else { + return $(document).height() + 'px'; + } + }, + + width: function() { + // handle IE 6 + if ($.browser.msie && $.browser.version < 7) { + var scrollWidth = Math.max( + document.documentElement.scrollWidth, + document.body.scrollWidth + ); + var offsetWidth = Math.max( + document.documentElement.offsetWidth, + document.body.offsetWidth + ); + + if (scrollWidth < offsetWidth) { + return $(window).width() + 'px'; + } else { + return scrollWidth + 'px'; + } + // handle Opera + } else if ($.browser.opera) { + return Math.max( + window.innerWidth, + $(document).width() + ) + 'px'; + // handle "good" browsers + } else { + return $(document).width() + 'px'; + } + }, + + resize: function() { + /* If the dialog is draggable and the user drags it past the + * right edge of the window, the document becomes wider so we + * need to stretch the overlay. If the user then drags the + * dialog back to the left, the document will become narrower, + * so we need to shrink the overlay to the appropriate size. + * This is handled by shrinking the overlay before setting it + * to the full document size. + */ + var $overlays = $([]); + $.each($.ui.dialog.overlay.instances, function() { + $overlays = $overlays.add(this); + }); + + $overlays.css({ + width: 0, + height: 0 + }).css({ + width: $.ui.dialog.overlay.width(), + height: $.ui.dialog.overlay.height() + }); + } +}); + +$.extend($.ui.dialog.overlay.prototype, { + destroy: function() { + $.ui.dialog.overlay.destroy(this.$el); + } +}); + +})(jQuery); +/* + * jQuery UI Slider 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Slider + * + * Depends: + * ui.core.js + */ +(function($) { + +$.fn.unwrap = $.fn.unwrap || function(expr) { + return this.each(function(){ + $(this).parents(expr).eq(0).after(this).remove(); + }); +}; + +$.widget("ui.slider", { + + _init: function() { + + var self = this; + this.element.addClass("ui-slider"); + this._initBoundaries(); + + // Initialize mouse and key events for interaction + this.handle = $(this.options.handle, this.element); + if (!this.handle.length) { + self.handle = self.generated = $(self.options.handles || [0]).map(function() { + var handle = $("
          ").addClass("ui-slider-handle").appendTo(self.element); + if (this.id) + handle.attr("id", this.id); + return handle[0]; + }); + } + + var handleclass = function(el) { + this.element = $(el); + this.element.data("mouse", this); + this.options = self.options; + + this.element.bind("mousedown", function() { + if(self.currentHandle) this.blur(self.currentHandle); + self._focus(this, true); + }); + + this._mouseInit(); + }; + + $.extend(handleclass.prototype, $.ui.mouse, { + _mouseCapture: function() { return true; }, + _mouseStart: function(event) { return self._start.call(self, event, this.element[0]); }, + _mouseDrag: function(event) { return self._drag.call(self, event, this.element[0]); }, + _mouseStop: function(event) { return self._stop.call(self, event, this.element[0]); }, + trigger: function(event) { this._mouseDown(event); } + }); + + $(this.handle) + .each(function() { + new handleclass(this); + }) + .wrap('') + .parent() + .bind('click', function() { return false; }) + .bind('focus', function(event) { self._focus(this.firstChild); }) + .bind('blur', function(event) { self._blur(this.firstChild); }) + .bind('keydown', function(event) { if(!self.options.noKeyboard) return self._keydown(event.keyCode, this.firstChild); }) + ; + + // Bind the click to the slider itself + this.element.bind('mousedown.slider', function(event) { + + if($(event.target).is('.ui-slider-handle')) return; + + //Go to the actual clicked posiion, apply a click + self._click.apply(self, [event]); + + //initiate a handle drag, so we can click+drag somewhere + self.currentHandle.data("mouse").trigger(event); + + //This is for always triggering the change event + self.firstValue = self.firstValue + 1; + + }); + + // Move the first handle to the startValue + $.each(this.options.handles || [], function(index, handle) { + self.moveTo(handle.start, index, true); + }); + if (!isNaN(this.options.startValue)) + this.moveTo(this.options.startValue, 0, true); + + this.previousHandle = $(this.handle[0]); //set the previous handle to the first to allow clicking before selecting the handle + if(this.handle.length == 2 && this.options.range) this._createRange(); + + }, + + destroy: function() { + + this.element + .removeClass("ui-slider ui-slider-disabled") + .removeData("slider") + .unbind(".slider"); + + if(this.handle && this.handle.length) { + this.handle + .unwrap("a"); + this.handle.each(function() { + var mouse = $(this).data("mouse"); + mouse && mouse._mouseDestroy(); + }); + } + + this.generated && this.generated.remove(); + + }, + + _start: function(event, handle) { + + var o = this.options; + if(o.disabled) return false; + + // Prepare the outer size + this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() }; + + // This is a especially ugly fix for strange blur events happening on mousemove events + if (!this.currentHandle) + this._focus(this.previousHandle, true); + + this.offset = this.element.offset(); + + this.handleOffset = this.currentHandle.offset(); + this.clickOffset = { top: event.pageY - this.handleOffset.top, left: event.pageX - this.handleOffset.left }; + + this.firstValue = this.value(); + + this._propagate('start', event); + this._drag(event, handle); + return true; + + }, + + _drag: function(event, handle) { + + var o = this.options; + + var position = { top: event.pageY - this.offset.top - this.clickOffset.top, left: event.pageX - this.offset.left - this.clickOffset.left}; + if(!this.currentHandle) this._focus(this.previousHandle, true); //This is a especially ugly fix for strange blur events happening on mousemove events + + position.left = this._translateLimits(position.left, "x"); + position.top = this._translateLimits(position.top, "y"); + + if (o.stepping.x) { + var value = this._convertValue(position.left, "x"); + value = this._round(value / o.stepping.x) * o.stepping.x; + position.left = this._translateValue(value, "x"); + } + if (o.stepping.y) { + var value = this._convertValue(position.top, "y"); + value = this._round(value / o.stepping.y) * o.stepping.y; + position.top = this._translateValue(value, "y"); + } + + position.left = this._translateRange(position.left, "x"); + position.top = this._translateRange(position.top, "y"); + + if(o.axis != "vertical") this.currentHandle.css({ left: position.left }); + if(o.axis != "horizontal") this.currentHandle.css({ top: position.top }); + + //Store the slider's value + this.currentHandle.data("mouse").sliderValue = { + x: this._round(this._convertValue(position.left, "x")) || 0, + y: this._round(this._convertValue(position.top, "y")) || 0 + }; + + if (this.rangeElement) + this._updateRange(); + this._propagate('slide', event); + return false; + + }, + + _stop: function(event) { + + this._propagate('stop', event); + + if (this.firstValue != this.value()) + this._propagate('change', event); + + // This is a especially ugly fix for strange blur events happening on mousemove events + this._focus(this.currentHandle, true); + + return false; + + }, + + _round: function(value) { + + return this.options.round ? parseInt(value,10) : parseFloat(value); + + }, + + _setData: function(key, value) { + + $.widget.prototype._setData.apply(this, arguments); + + if (/min|max|steps/.test(key)) { + this._initBoundaries(); + } + + if(key == "range") { + value ? this.handle.length == 2 && this._createRange() : this._removeRange(); + } + + }, + + _initBoundaries: function() { + + var element = this.element[0], o = this.options; + this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() }; + + $.extend(o, { + axis: o.axis || (element.offsetWidth < element.offsetHeight ? 'vertical' : 'horizontal'), + max: !isNaN(parseInt(o.max,10)) ? { x: parseInt(o.max, 10), y: parseInt(o.max, 10) } : ({ x: o.max && o.max.x || 100, y: o.max && o.max.y || 100 }), + min: !isNaN(parseInt(o.min,10)) ? { x: parseInt(o.min, 10), y: parseInt(o.min, 10) } : ({ x: o.min && o.min.x || 0, y: o.min && o.min.y || 0 }) + }); + //Prepare the real maxValue + o.realMax = { + x: o.max.x - o.min.x, + y: o.max.y - o.min.y + }; + //Calculate stepping based on steps + o.stepping = { + x: o.stepping && o.stepping.x || parseInt(o.stepping, 10) || (o.steps ? o.realMax.x/(o.steps.x || parseInt(o.steps, 10) || o.realMax.x) : 0), + y: o.stepping && o.stepping.y || parseInt(o.stepping, 10) || (o.steps ? o.realMax.y/(o.steps.y || parseInt(o.steps, 10) || o.realMax.y) : 0) + }; + + }, + + _keydown: function(keyCode, handle) { + + if (this.options.disabled) + return; + + var k = keyCode; + if(/(33|34|35|36|37|38|39|40)/.test(k)) { + var o = this.options, xpos, ypos; + if (/(35|36)/.test(k)) { + xpos = (k == 35) ? o.max.x : o.min.x; + ypos = (k == 35) ? o.max.y : o.min.y; + } else { + var oper = /(34|37|40)/.test(k) ? "-=" : "+="; + var step = /(37|38|39|40)/.test(k) ? "_oneStep" : "_pageStep"; + xpos = oper + this[step]("x"); + ypos = oper + this[step]("y"); + } + this.moveTo({ + x: xpos, + y: ypos + }, handle); + return false; + } + return true; + + }, + + _focus: function(handle,hard) { + + this.currentHandle = $(handle).addClass('ui-slider-handle-active'); + + if (hard) + this.currentHandle.parent()[0].focus(); + + }, + + _blur: function(handle) { + + $(handle).removeClass('ui-slider-handle-active'); + + if(this.currentHandle && this.currentHandle[0] == handle) { + this.previousHandle = this.currentHandle; + this.currentHandle = null; + }; + + }, + + _click: function(event) { + + // This method is only used if: + // - The user didn't click a handle + // - The Slider is not disabled + // - There is a current, or previous selected handle (otherwise we wouldn't know which one to move) + + var pointer = [event.pageX, event.pageY]; + + var clickedHandle = false; + this.handle.each(function() { + if(this == event.target) + clickedHandle = true; + }); + if (clickedHandle || this.options.disabled || !(this.currentHandle || this.previousHandle)) + return; + + // If a previous handle was focussed, focus it again + if (!this.currentHandle && this.previousHandle) + this._focus(this.previousHandle, true); + + // propagate only for distance > 0, otherwise propagation is done my drag + this.offset = this.element.offset(); + + this.moveTo({ + y: this._convertValue(event.pageY - this.offset.top - this.currentHandle[0].offsetHeight/2, "y"), + x: this._convertValue(event.pageX - this.offset.left - this.currentHandle[0].offsetWidth/2, "x") + }, null, !this.options.distance); + + }, + + _createRange: function() { + + if(this.rangeElement) return; + this.rangeElement = $('
          ') + .addClass('ui-slider-range') + .css({ position: 'absolute' }) + .appendTo(this.element); + this._updateRange(); + + }, + + _removeRange: function() { + + this.rangeElement.remove(); + this.rangeElement = null; + + }, + + _updateRange: function() { + + var prop = this.options.axis == "vertical" ? "top" : "left"; + var size = this.options.axis == "vertical" ? "height" : "width"; + + this.rangeElement.css(prop, (this._round($(this.handle[0]).css(prop)) || 0) + this._handleSize(0, this.options.axis == "vertical" ? "y" : "x")/2); + this.rangeElement.css(size, (this._round($(this.handle[1]).css(prop)) || 0) - (this._round($(this.handle[0]).css(prop)) || 0)); + + }, + + _getRange: function() { + + return this.rangeElement ? this._convertValue(this._round(this.rangeElement.css(this.options.axis == "vertical" ? "height" : "width")), this.options.axis == "vertical" ? "y" : "x") : null; + + }, + + _handleIndex: function() { + + return this.handle.index(this.currentHandle[0]); + + }, + + value: function(handle, axis) { + + if(this.handle.length == 1) this.currentHandle = this.handle; + if(!axis) axis = this.options.axis == "vertical" ? "y" : "x"; + + var curHandle = $(handle != undefined && handle !== null ? this.handle[handle] || handle : this.currentHandle); + + if(curHandle.data("mouse").sliderValue) { + return this._round(curHandle.data("mouse").sliderValue[axis]); + } else { + return this._round(((this._round(curHandle.css(axis == "x" ? "left" : "top")) / (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(handle,axis))) * this.options.realMax[axis]) + this.options.min[axis]); + } + + }, + + _convertValue: function(value,axis) { + + return this.options.min[axis] + (value / (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis))) * this.options.realMax[axis]; + + }, + + _translateValue: function(value,axis) { + + return ((value - this.options.min[axis]) / this.options.realMax[axis]) * (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis)); + + }, + + _translateRange: function(value,axis) { + + if (this.rangeElement) { + if (this.currentHandle[0] == this.handle[0] && value >= this._translateValue(this.value(1),axis)) + value = this._translateValue(this.value(1,axis) - this._oneStep(axis), axis); + if (this.currentHandle[0] == this.handle[1] && value <= this._translateValue(this.value(0),axis)) + value = this._translateValue(this.value(0,axis) + this._oneStep(axis), axis); + } + + if (this.options.handles) { + var handle = this.options.handles[this._handleIndex()]; + if (value < this._translateValue(handle.min,axis)) { + value = this._translateValue(handle.min,axis); + } else if (value > this._translateValue(handle.max,axis)) { + value = this._translateValue(handle.max,axis); + } + } + + return value; + + }, + + _translateLimits: function(value,axis) { + + if (value >= this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis)) + value = this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis); + + if (value <= 0) + value = 0; + + return value; + + }, + + _handleSize: function(handle,axis) { + + return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0]["offset"+(axis == "x" ? "Width" : "Height")]; + + }, + + _oneStep: function(axis) { + + return this.options.stepping[axis] || 1; + + }, + + _pageStep: function(axis) { + + return /* this.options.paging[axis] ||*/ 10; + + }, + + moveTo: function(value, handle, noPropagation) { + + var o = this.options; + + // Prepare the outer size + this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() }; + + //If no handle has been passed, no current handle is available and we have multiple handles, return false + if (handle == undefined && !this.currentHandle && this.handle.length != 1) + return false; + + //If only one handle is available, use it + if (handle == undefined && !this.currentHandle) + handle = 0; + + if (handle != undefined) + this.currentHandle = this.previousHandle = $(this.handle[handle] || handle); + + if(value.x !== undefined && value.y !== undefined) { + var x = value.x, y = value.y; + } else { + var x = value, y = value; + } + + if(x !== undefined && x.constructor != Number) { + var me = /^\-\=/.test(x), pe = /^\+\=/.test(x); + if(me || pe) { + x = this.value(null, "x") + this._round(x.replace(me ? '=' : '+=', '')); + } else { + x = isNaN(this._round(x)) ? undefined : this._round(x); + } + } + + if(y !== undefined && y.constructor != Number) { + var me = /^\-\=/.test(y), pe = /^\+\=/.test(y); + if(me || pe) { + y = this.value(null, "y") + this._round(y.replace(me ? '=' : '+=', '')); + } else { + y = isNaN(this._round(y)) ? undefined : this._round(y); + } + } + + if(o.axis != "vertical" && x !== undefined) { + if(o.stepping.x) x = this._round(x / o.stepping.x) * o.stepping.x; + x = this._translateValue(x, "x"); + x = this._translateLimits(x, "x"); + x = this._translateRange(x, "x"); + + o.animate ? this.currentHandle.stop().animate({ left: x }, (Math.abs(parseInt(this.currentHandle.css("left"),10) - x)) * (!isNaN(parseInt(o.animate,10)) ? o.animate : 5)) : this.currentHandle.css({ left: x }); + } + + if(o.axis != "horizontal" && y !== undefined) { + if(o.stepping.y) y = this._round(y / o.stepping.y) * o.stepping.y; + y = this._translateValue(y, "y"); + y = this._translateLimits(y, "y"); + y = this._translateRange(y, "y"); + o.animate ? this.currentHandle.stop().animate({ top: y }, (Math.abs(parseInt(this.currentHandle.css("top"),10) - y)) * (!isNaN(parseInt(o.animate,10)) ? o.animate : 5)) : this.currentHandle.css({ top: y }); + } + + if (this.rangeElement) + this._updateRange(); + + //Store the slider's value + this.currentHandle.data("mouse").sliderValue = { + x: this._round(this._convertValue(x, "x")) || 0, + y: this._round(this._convertValue(y, "y")) || 0 + }; + + if (!noPropagation) { + this._propagate('start', null); + this._propagate("slide", null); + this._propagate('stop', null); + this._propagate('change', null); + } + + }, + + _propagate: function(n, event) { + + $.ui.plugin.call(this, n, [event, this.ui()]); + this.element.triggerHandler(n == "slide" ? n : "slide"+n, [event, this.ui()], this.options[n]); + + }, + + plugins: {}, + + ui: function(event) { + return { + options: this.options, + handle: this.currentHandle, + value: this.options.axis != "both" || !this.options.axis ? + this._round(this.value(null, this.options.axis == "vertical" ? "y" : "x")) : + { + x: this._round(this.value(null, "x")), + y: this._round(this.value(null, "y")) + }, + range: this._getRange() + }; + } + +}); + +$.extend($.ui.slider, { + getter: "value", + version: "1.6", + defaults: { + animate: false, + distance: 1, + handle: ".ui-slider-handle", + round: true + } +}); + +})(jQuery); +/* + * jQuery UI Tabs 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Tabs + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.tabs", { + + _init: function() { + // create tabs + this._tabify(true); + }, + + destroy: function() { + var o = this.options; + this.element.unbind('.tabs') + .removeClass(o.navClass).removeData('tabs'); + this.$tabs.each(function() { + var href = $.data(this, 'href.tabs'); + if (href) + this.href = href; + var $this = $(this).unbind('.tabs'); + $.each(['href', 'load', 'cache'], function(i, prefix) { + $this.removeData(prefix + '.tabs'); + }); + }); + this.$lis.add(this.$panels).each(function() { + if ($.data(this, 'destroy.tabs')) + $(this).remove(); + else + $(this).removeClass([o.selectedClass, o.deselectableClass, + o.disabledClass, o.panelClass, o.hideClass].join(' ')); + }); + if (o.cookie) + this._cookie(null, o.cookie); + }, + + _setData: function(key, value) { + if ((/^selected/).test(key)) + this.select(value); + else { + this.options[key] = value; + this._tabify(); + } + }, + + length: function() { + return this.$tabs.length; + }, + + _tabId: function(a) { + return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '') + || this.options.idPrefix + $.data(a); + }, + + _sanitizeSelector: function(hash) { + return hash.replace(/:/g, '\\:'); // we need this because an id may contain a ":" + }, + + _cookie: function() { + var cookie = this.cookie || (this.cookie = 'ui-tabs-' + $.data(this.element[0])); + return $.cookie.apply(null, [cookie].concat($.makeArray(arguments))); + }, + + _tabify: function(init) { + + this.$lis = $('li:has(a[href])', this.element); + this.$tabs = this.$lis.map(function() { return $('a', this)[0]; }); + this.$panels = $([]); + + var self = this, o = this.options; + + this.$tabs.each(function(i, a) { + // inline tab + if (a.hash && a.hash.replace('#', '')) // Safari 2 reports '#' for an empty hash + self.$panels = self.$panels.add(self._sanitizeSelector(a.hash)); + // remote tab + else if ($(a).attr('href') != '#') { // prevent loading the page itself if href is just "#" + $.data(a, 'href.tabs', a.href); // required for restore on destroy + $.data(a, 'load.tabs', a.href); // mutable + var id = self._tabId(a); + a.href = '#' + id; + var $panel = $('#' + id); + if (!$panel.length) { + $panel = $(o.panelTemplate).attr('id', id).addClass(o.panelClass) + .insertAfter(self.$panels[i - 1] || self.element); + $panel.data('destroy.tabs', true); + } + self.$panels = self.$panels.add($panel); + } + // invalid tab href + else + o.disabled.push(i + 1); + }); + + // initialization from scratch + if (init) { + + // attach necessary classes for styling if not present + this.element.addClass(o.navClass); + this.$panels.addClass(o.panelClass); + + // Selected tab + // use "selected" option or try to retrieve: + // 1. from fragment identifier in url + // 2. from cookie + // 3. from selected class attribute on
        5. + if (o.selected === undefined) { + if (location.hash) { + this.$tabs.each(function(i, a) { + if (a.hash == location.hash) { + o.selected = i; + return false; // break + } + }); + } + else if (o.cookie) { + var index = parseInt(self._cookie(), 10); + if (index && self.$tabs[index]) o.selected = index; + } + else if (self.$lis.filter('.' + o.selectedClass).length) + o.selected = self.$lis.index( self.$lis.filter('.' + o.selectedClass)[0] ); + } + o.selected = o.selected === null || o.selected !== undefined ? o.selected : 0; // first tab selected by default + + // Take disabling tabs via class attribute from HTML + // into account and update option properly. + // A selected tab cannot become disabled. + o.disabled = $.unique(o.disabled.concat( + $.map(this.$lis.filter('.' + o.disabledClass), + function(n, i) { return self.$lis.index(n); } ) + )).sort(); + if ($.inArray(o.selected, o.disabled) != -1) + o.disabled.splice($.inArray(o.selected, o.disabled), 1); + + // highlight selected tab + this.$panels.addClass(o.hideClass); + this.$lis.removeClass(o.selectedClass); + if (o.selected !== null) { + this.$panels.eq(o.selected).removeClass(o.hideClass); + var classes = [o.selectedClass]; + if (o.deselectable) classes.push(o.deselectableClass); + this.$lis.eq(o.selected).addClass(classes.join(' ')); + + // seems to be expected behavior that the show callback is fired + var onShow = function() { + self._trigger('show', null, + self.ui(self.$tabs[o.selected], self.$panels[o.selected])); + }; + + // load if remote tab + if ($.data(this.$tabs[o.selected], 'load.tabs')) + this.load(o.selected, onShow); + // just trigger show event + else onShow(); + } + + // clean up to avoid memory leaks in certain versions of IE 6 + $(window).bind('unload', function() { + self.$tabs.unbind('.tabs'); + self.$lis = self.$tabs = self.$panels = null; + }); + + } + // update selected after add/remove + else + o.selected = this.$lis.index( this.$lis.filter('.' + o.selectedClass)[0] ); + + // set or update cookie after init and add/remove respectively + if (o.cookie) this._cookie(o.selected, o.cookie); + + // disable tabs + for (var i = 0, li; li = this.$lis[i]; i++) + $(li)[$.inArray(i, o.disabled) != -1 && !$(li).hasClass(o.selectedClass) ? 'addClass' : 'removeClass'](o.disabledClass); + + // reset cache if switching from cached to not cached + if (o.cache === false) this.$tabs.removeData('cache.tabs'); + + // set up animations + var hideFx, showFx; + if (o.fx) { + if (o.fx.constructor == Array) { + hideFx = o.fx[0]; + showFx = o.fx[1]; + } + else hideFx = showFx = o.fx; + } + + // Reset certain styles left over from animation + // and prevent IE's ClearType bug... + function resetStyle($el, fx) { + $el.css({ display: '' }); + if ($.browser.msie && fx.opacity) $el[0].style.removeAttribute('filter'); + } + + // Show a tab... + var showTab = showFx ? + function(clicked, $show) { + $show.animate(showFx, showFx.duration || 'normal', function() { + $show.removeClass(o.hideClass); + resetStyle($show, showFx); + self._trigger('show', null, self.ui(clicked, $show[0])); + }); + } : + function(clicked, $show) { + $show.removeClass(o.hideClass); + self._trigger('show', null, self.ui(clicked, $show[0])); + }; + + // Hide a tab, $show is optional... + var hideTab = hideFx ? + function(clicked, $hide, $show) { + $hide.animate(hideFx, hideFx.duration || 'normal', function() { + $hide.addClass(o.hideClass); + resetStyle($hide, hideFx); + if ($show) showTab(clicked, $show, $hide); + }); + } : + function(clicked, $hide, $show) { + $hide.addClass(o.hideClass); + if ($show) showTab(clicked, $show); + }; + + // Switch a tab... + function switchTab(clicked, $li, $hide, $show) { + var classes = [o.selectedClass]; + if (o.deselectable) classes.push(o.deselectableClass); + $li.addClass(classes.join(' ')).siblings().removeClass(classes.join(' ')); + hideTab(clicked, $hide, $show); + } + + // attach tab event handler, unbind to avoid duplicates from former tabifying... + this.$tabs.unbind('.tabs').bind(o.event + '.tabs', function() { + + //var trueClick = event.clientX; // add to history only if true click occured, not a triggered click + var $li = $(this).parents('li:eq(0)'), + $hide = self.$panels.filter(':visible'), + $show = $(self._sanitizeSelector(this.hash)); + + // If tab is already selected and not deselectable or tab disabled or + // or is already loading or click callback returns false stop here. + // Check if click handler returns false last so that it is not executed + // for a disabled or loading tab! + if (($li.hasClass(o.selectedClass) && !o.deselectable) + || $li.hasClass(o.disabledClass) + || $(this).hasClass(o.loadingClass) + || self._trigger('select', null, self.ui(this, $show[0])) === false + ) { + this.blur(); + return false; + } + + o.selected = self.$tabs.index(this); + + // if tab may be closed + if (o.deselectable) { + if ($li.hasClass(o.selectedClass)) { + self.options.selected = null; + $li.removeClass([o.selectedClass, o.deselectableClass].join(' ')); + self.$panels.stop(); + hideTab(this, $hide); + this.blur(); + return false; + } else if (!$hide.length) { + self.$panels.stop(); + var a = this; + self.load(self.$tabs.index(this), function() { + $li.addClass([o.selectedClass, o.deselectableClass].join(' ')); + showTab(a, $show); + }); + this.blur(); + return false; + } + } + + if (o.cookie) self._cookie(o.selected, o.cookie); + + // stop possibly running animations + self.$panels.stop(); + + // show new tab + if ($show.length) { + var a = this; + self.load(self.$tabs.index(this), $hide.length ? + function() { + switchTab(a, $li, $hide, $show); + } : + function() { + $li.addClass(o.selectedClass); + showTab(a, $show); + } + ); + } else + throw 'jQuery UI Tabs: Mismatching fragment identifier.'; + + // Prevent IE from keeping other link focussed when using the back button + // and remove dotted border from clicked link. This is controlled via CSS + // in modern browsers; blur() removes focus from address bar in Firefox + // which can become a usability and annoying problem with tabs('rotate'). + if ($.browser.msie) this.blur(); + + return false; + + }); + + // disable click if event is configured to something else + if (o.event != 'click') this.$tabs.bind('click.tabs', function(){return false;}); + + }, + + add: function(url, label, index) { + if (index == undefined) + index = this.$tabs.length; // append by default + + var o = this.options; + var $li = $(o.tabTemplate.replace(/#\{href\}/g, url).replace(/#\{label\}/g, label)); + $li.data('destroy.tabs', true); + + var id = url.indexOf('#') == 0 ? url.replace('#', '') : this._tabId( $('a:first-child', $li)[0] ); + + // try to find an existing element before creating a new one + var $panel = $('#' + id); + if (!$panel.length) { + $panel = $(o.panelTemplate).attr('id', id) + .addClass(o.hideClass) + .data('destroy.tabs', true); + } + $panel.addClass(o.panelClass); + if (index >= this.$lis.length) { + $li.appendTo(this.element); + $panel.appendTo(this.element[0].parentNode); + } else { + $li.insertBefore(this.$lis[index]); + $panel.insertBefore(this.$panels[index]); + } + + o.disabled = $.map(o.disabled, + function(n, i) { return n >= index ? ++n : n }); + + this._tabify(); + + if (this.$tabs.length == 1) { + $li.addClass(o.selectedClass); + $panel.removeClass(o.hideClass); + var href = $.data(this.$tabs[0], 'load.tabs'); + if (href) + this.load(index, href); + } + + // callback + this._trigger('add', null, this.ui(this.$tabs[index], this.$panels[index])); + }, + + remove: function(index) { + var o = this.options, $li = this.$lis.eq(index).remove(), + $panel = this.$panels.eq(index).remove(); + + // If selected tab was removed focus tab to the right or + // in case the last tab was removed the tab to the left. + if ($li.hasClass(o.selectedClass) && this.$tabs.length > 1) + this.select(index + (index + 1 < this.$tabs.length ? 1 : -1)); + + o.disabled = $.map($.grep(o.disabled, function(n, i) { return n != index; }), + function(n, i) { return n >= index ? --n : n }); + + this._tabify(); + + // callback + this._trigger('remove', null, this.ui($li.find('a')[0], $panel[0])); + }, + + enable: function(index) { + var o = this.options; + if ($.inArray(index, o.disabled) == -1) + return; + + var $li = this.$lis.eq(index).removeClass(o.disabledClass); + if ($.browser.safari) { // fix disappearing tab (that used opacity indicating disabling) after enabling in Safari 2... + $li.css('display', 'inline-block'); + setTimeout(function() { + $li.css('display', 'block'); + }, 0); + } + + o.disabled = $.grep(o.disabled, function(n, i) { return n != index; }); + + // callback + this._trigger('enable', null, this.ui(this.$tabs[index], this.$panels[index])); + }, + + disable: function(index) { + var self = this, o = this.options; + if (index != o.selected) { // cannot disable already selected tab + this.$lis.eq(index).addClass(o.disabledClass); + + o.disabled.push(index); + o.disabled.sort(); + + // callback + this._trigger('disable', null, this.ui(this.$tabs[index], this.$panels[index])); + } + }, + + select: function(index) { + // TODO make null as argument work + if (typeof index == 'string') + index = this.$tabs.index( this.$tabs.filter('[href$=' + index + ']')[0] ); + this.$tabs.eq(index).trigger(this.options.event + '.tabs'); + }, + + load: function(index, callback) { // callback is for internal usage only + + var self = this, o = this.options, $a = this.$tabs.eq(index), a = $a[0], + bypassCache = callback == undefined || callback === false, url = $a.data('load.tabs'); + + callback = callback || function() {}; + + // no remote or from cache - just finish with callback + if (!url || !bypassCache && $.data(a, 'cache.tabs')) { + callback(); + return; + } + + // load remote from here on + + var inner = function(parent) { + var $parent = $(parent), $inner = $parent.find('*:last'); + return $inner.length && $inner.is(':not(img)') && $inner || $parent; + }; + var cleanup = function() { + self.$tabs.filter('.' + o.loadingClass).removeClass(o.loadingClass) + .each(function() { + if (o.spinner) + inner(this).parent().html(inner(this).data('label.tabs')); + }); + self.xhr = null; + }; + + if (o.spinner) { + var label = inner(a).html(); + inner(a).wrapInner('') + .find('em').data('label.tabs', label).html(o.spinner); + } + + var ajaxOptions = $.extend({}, o.ajaxOptions, { + url: url, + success: function(r, s) { + $(self._sanitizeSelector(a.hash)).html(r); + cleanup(); + + if (o.cache) + $.data(a, 'cache.tabs', true); // if loaded once do not load them again + + // callbacks + self._trigger('load', null, self.ui(self.$tabs[index], self.$panels[index])); + try { + o.ajaxOptions.success(r, s); + } + catch (event) {} + + // This callback is required because the switch has to take + // place after loading has completed. Call last in order to + // fire load before show callback... + callback(); + } + }); + if (this.xhr) { + // terminate pending requests from other tabs and restore tab label + this.xhr.abort(); + cleanup(); + } + $a.addClass(o.loadingClass); + self.xhr = $.ajax(ajaxOptions); + }, + + url: function(index, url) { + this.$tabs.eq(index).removeData('cache.tabs').data('load.tabs', url); + }, + + ui: function(tab, panel) { + return { + options: this.options, + tab: tab, + panel: panel, + index: this.$tabs.index(tab) + }; + } + +}); + +$.extend($.ui.tabs, { + version: '1.6', + getter: 'length', + defaults: { + ajaxOptions: null, + cache: false, + cookie: null, // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true } + deselectable: false, + deselectableClass: 'ui-tabs-deselectable', + disabled: [], + disabledClass: 'ui-tabs-disabled', + event: 'click', + fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 } + hideClass: 'ui-tabs-hide', + idPrefix: 'ui-tabs-', + loadingClass: 'ui-tabs-loading', + navClass: 'ui-tabs-nav', + panelClass: 'ui-tabs-panel', + panelTemplate: '
          ', + selectedClass: 'ui-tabs-selected', + spinner: 'Loading…', + tabTemplate: '
        6. #{label}
        7. ' + } +}); + +/* + * Tabs Extensions + */ + +/* + * Rotate + */ +$.extend($.ui.tabs.prototype, { + rotation: null, + rotate: function(ms, continuing) { + + continuing = continuing || false; + + var self = this, t = this.options.selected; + + function start() { + self.rotation = setInterval(function() { + t = ++t < self.$tabs.length ? t : 0; + self.select(t); + }, ms); + } + + function stop(event) { + if (!event || event.clientX) { // only in case of a true click + clearInterval(self.rotation); + } + } + + // start interval + if (ms) { + start(); + if (!continuing) + this.$tabs.bind(this.options.event + '.tabs', stop); + else + this.$tabs.bind(this.options.event + '.tabs', function() { + stop(); + t = self.options.selected; + start(); + }); + } + // stop interval + else { + stop(); + this.$tabs.unbind(this.options.event + '.tabs', stop); + } + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/minified/effects.blind.min.js b/sites/all/libraries/jquery.ui/ui/minified/effects.blind.min.js new file mode 100644 index 0000000..a0b6bcc --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/effects.blind.min.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Blind 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Blind + * + * Depends: + * effects.core.js + */ (function(A){A.effects.blind=function(B){return this.queue(function(){var D=A(this),C=["position","top","left"];var H=A.effects.setMode(D,B.options.mode||"hide");var G=B.options.direction||"vertical";A.effects.save(D,C);D.show();var J=A.effects.createWrapper(D).css({overflow:"hidden"});var E=(G=="vertical")?"height":"width";var I=(G=="vertical")?J.height():J.width();if(H=="show"){J.css(E,0)}var F={};F[E]=H=="show"?I:0;J.animate(F,B.duration,B.options.easing,function(){if(H=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(D[0],arguments)}D.dequeue()})})}})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/effects.bounce.min.js b/sites/all/libraries/jquery.ui/ui/minified/effects.bounce.min.js new file mode 100644 index 0000000..e7707f1 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/effects.bounce.min.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Bounce 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Bounce + * + * Depends: + * effects.core.js + */ (function(A){A.effects.bounce=function(B){return this.queue(function(){var E=A(this),K=["position","top","left"];var J=A.effects.setMode(E,B.options.mode||"effect");var M=B.options.direction||"up";var C=B.options.distance||20;var D=B.options.times||5;var G=B.duration||250;if(/show|hide/.test(J)){K.push("opacity")}A.effects.save(E,K);E.show();A.effects.createWrapper(E);var F=(M=="up"||M=="down")?"top":"left";var O=(M=="up"||M=="left")?"pos":"neg";var C=B.options.distance||(F=="top"?E.outerHeight({margin:true})/3:E.outerWidth({margin:true})/3);if(J=="show"){E.css("opacity",0).css(F,O=="pos"?-C:C)}if(J=="hide"){C=C/(D*2)}if(J!="hide"){D--}if(J=="show"){var H={opacity:1};H[F]=(O=="pos"?"+=":"-=")+C;E.animate(H,G/2,B.options.easing);C=C/2;D--}for(var I=0;I
          ');var I=F.parent();if(F.css("position")=="static"){I.css({position:"relative"});F.css({position:"relative"})}else{var H=F.css("top");if(isNaN(parseInt(H))){H="auto"}var G=F.css("left");if(isNaN(parseInt(G))){G="auto"}I.css({position:F.css("position"),top:H,left:G,zIndex:F.css("z-index")}).show();F.css({position:"relative",top:0,left:0})}I.css(E);return I},removeWrapper:function(E){if(E.parent().attr("id")=="fxWrapper"){return E.parent().replaceWith(E)}return E},setTransition:function(F,G,E,H){H=H||{};C.each(G,function(J,I){unit=F.cssUnit(I);if(unit[0]>0){H[I]=unit[0]*E+unit[1]}});return H},animateClass:function(G,H,J,I){var E=(typeof J=="function"?J:(I?I:null));var F=(typeof J=="object"?J:null);return this.each(function(){var O={};var M=C(this);var N=M.attr("style")||"";if(typeof N=="object"){N=N["cssText"]}if(G.toggle){M.hasClass(G.toggle)?G.remove=G.toggle:G.add=G.toggle}var K=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.addClass(G.add)}if(G.remove){M.removeClass(G.remove)}var L=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.removeClass(G.add)}if(G.remove){M.addClass(G.remove)}for(var P in L){if(typeof L[P]!="function"&&L[P]&&P.indexOf("Moz")==-1&&P.indexOf("length")==-1&&L[P]!=K[P]&&(P.match(/color/i)||(!P.match(/color/i)&&!isNaN(parseInt(L[P],10))))&&(K.position!="static"||(K.position=="static"&&!P.match(/left|top|bottom|right/)))){O[P]=L[P]}}M.animate(O,H,F,function(){if(typeof C(this).attr("style")=="object"){C(this).attr("style")["cssText"]="";C(this).attr("style")["cssText"]=N}else{C(this).attr("style",N)}if(G.add){C(this).addClass(G.add)}if(G.remove){C(this).removeClass(G.remove)}if(E){E.apply(this,arguments)}})})}});C.fn.extend({_show:C.fn.show,_hide:C.fn.hide,__toggle:C.fn.toggle,_addClass:C.fn.addClass,_removeClass:C.fn.removeClass,_toggleClass:C.fn.toggleClass,effect:function(E,G,F,H){return C.effects[E]?C.effects[E].call(this,{method:E,options:G||{},duration:F,callback:H}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="show";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="hide";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="toggle";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},addClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{add:F},E,H,G]):this._addClass(F)},removeClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{remove:F},E,H,G]):this._removeClass(F)},toggleClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{toggle:F},E,H,G]):this._toggleClass(F)},morph:function(E,G,F,I,H){return C.effects.animateClass.apply(this,[{add:G,remove:E},F,I,H])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(E){var F=this.css(E),G=[];C.each(["em","px","%","pt"],function(H,I){if(F.indexOf(I)>0){G=[parseFloat(F),I]}});return G}});C.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(F,E){C.fx.step[E]=function(G){if(G.state==0){G.start=D(G.elem,E);G.end=B(G.end)}G.elem.style[E]="rgb("+[Math.max(Math.min(parseInt((G.pos*(G.end[0]-G.start[0]))+G.start[0]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[1]-G.start[1]))+G.start[1]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[2]-G.start[2]))+G.start[2]),255),0)].join(",")+")"}});function B(F){var E;if(F&&F.constructor==Array&&F.length==3){return F}if(E=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(F)){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}if(E=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(F)){return[parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55]}if(E=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}if(E=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}if(E=/rgba\(0, 0, 0, 0\)/.exec(F)){return A["transparent"]}return A[C.trim(F).toLowerCase()]}function D(G,E){var F;do{F=C.curCSS(G,E);if(F!=""&&F!="transparent"||C.nodeName(G,"body")){break}E="backgroundColor"}while(G=G.parentNode);return B(F)}var A={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};C.easing.jswing=C.easing.swing;C.extend(C.easing,{def:"easeOutQuad",swing:function(F,G,E,I,H){return C.easing[C.easing.def](F,G,E,I,H)},easeInQuad:function(F,G,E,I,H){return I*(G/=H)*G+E},easeOutQuad:function(F,G,E,I,H){return -I*(G/=H)*(G-2)+E},easeInOutQuad:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G+E}return -I/2*((--G)*(G-2)-1)+E},easeInCubic:function(F,G,E,I,H){return I*(G/=H)*G*G+E},easeOutCubic:function(F,G,E,I,H){return I*((G=G/H-1)*G*G+1)+E},easeInOutCubic:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G+E}return I/2*((G-=2)*G*G+2)+E},easeInQuart:function(F,G,E,I,H){return I*(G/=H)*G*G*G+E},easeOutQuart:function(F,G,E,I,H){return -I*((G=G/H-1)*G*G*G-1)+E},easeInOutQuart:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G+E}return -I/2*((G-=2)*G*G*G-2)+E},easeInQuint:function(F,G,E,I,H){return I*(G/=H)*G*G*G*G+E},easeOutQuint:function(F,G,E,I,H){return I*((G=G/H-1)*G*G*G*G+1)+E},easeInOutQuint:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G*G+E}return I/2*((G-=2)*G*G*G*G+2)+E},easeInSine:function(F,G,E,I,H){return -I*Math.cos(G/H*(Math.PI/2))+I+E},easeOutSine:function(F,G,E,I,H){return I*Math.sin(G/H*(Math.PI/2))+E},easeInOutSine:function(F,G,E,I,H){return -I/2*(Math.cos(Math.PI*G/H)-1)+E},easeInExpo:function(F,G,E,I,H){return(G==0)?E:I*Math.pow(2,10*(G/H-1))+E},easeOutExpo:function(F,G,E,I,H){return(G==H)?E+I:I*(-Math.pow(2,-10*G/H)+1)+E},easeInOutExpo:function(F,G,E,I,H){if(G==0){return E}if(G==H){return E+I}if((G/=H/2)<1){return I/2*Math.pow(2,10*(G-1))+E}return I/2*(-Math.pow(2,-10*--G)+2)+E},easeInCirc:function(F,G,E,I,H){return -I*(Math.sqrt(1-(G/=H)*G)-1)+E},easeOutCirc:function(F,G,E,I,H){return I*Math.sqrt(1-(G=G/H-1)*G)+E},easeInOutCirc:function(F,G,E,I,H){if((G/=H/2)<1){return -I/2*(Math.sqrt(1-G*G)-1)+E}return I/2*(Math.sqrt(1-(G-=2)*G)+1)+E},easeInElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K)==1){return E+L}if(!J){J=K*0.3}if(G").css({position:"absolute",visibility:"visible",left:-D*(G/E),top:-F*(C/I)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:G/E,height:C/I,left:J.left+D*(G/E)+(B.options.mode=="show"?(D-Math.floor(E/2))*(G/E):0),top:J.top+F*(C/I)+(B.options.mode=="show"?(F-Math.floor(I/2))*(C/I):0),opacity:B.options.mode=="show"?0:1}).animate({left:J.left+D*(G/E)+(B.options.mode=="show"?0:(D-Math.floor(E/2))*(G/E)),top:J.top+F*(C/I)+(B.options.mode=="show"?0:(F-Math.floor(I/2))*(C/I)),opacity:B.options.mode=="show"?1:0},B.duration||500)}}setTimeout(function(){B.options.mode=="show"?H.css({visibility:"visible"}):H.css({visibility:"visible"}).hide();if(B.callback){B.callback.apply(H[0])}H.dequeue();A(".effects-explode").remove()},B.duration||500)})}})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/effects.fold.min.js b/sites/all/libraries/jquery.ui/ui/minified/effects.fold.min.js new file mode 100644 index 0000000..c18b5a4 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/effects.fold.min.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Fold 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Fold + * + * Depends: + * effects.core.js + */ (function(A){A.effects.fold=function(B){return this.queue(function(){var E=A(this),J=["position","top","left"];var G=A.effects.setMode(E,B.options.mode||"hide");var N=B.options.size||15;var M=!(!B.options.horizFirst);A.effects.save(E,J);E.show();var D=A.effects.createWrapper(E).css({overflow:"hidden"});var H=((G=="show")!=M);var F=H?["width","height"]:["height","width"];var C=H?[D.width(),D.height()]:[D.height(),D.width()];var I=/([0-9]+)%/.exec(N);if(I){N=parseInt(I[1])/100*C[G=="hide"?0:1]}if(G=="show"){D.css(M?{height:0,width:N}:{height:N,width:0})}var L={},K={};L[F[0]]=G=="show"?C[0]:N;K[F[1]]=G=="show"?C[1]:0;D.animate(L,B.duration/2,B.options.easing).animate(K,B.duration/2,B.options.easing,function(){if(G=="hide"){E.hide()}A.effects.restore(E,J);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/effects.highlight.min.js b/sites/all/libraries/jquery.ui/ui/minified/effects.highlight.min.js new file mode 100644 index 0000000..adbd62d --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/effects.highlight.min.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Highlight 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Highlight + * + * Depends: + * effects.core.js + */ (function(A){A.effects.highlight=function(B){return this.queue(function(){var E=A(this),D=["backgroundImage","backgroundColor","opacity"];var H=A.effects.setMode(E,B.options.mode||"show");var C=B.options.color||"#ffff99";var G=E.css("backgroundColor");A.effects.save(E,D);E.show();E.css({backgroundImage:"none",backgroundColor:C});var F={backgroundColor:G};if(H=="hide"){F["opacity"]=0}E.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){E.hide()}A.effects.restore(E,D);if(H=="show"&&A.browser.msie){this.style.removeAttribute("filter")}if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/effects.pulsate.min.js b/sites/all/libraries/jquery.ui/ui/minified/effects.pulsate.min.js new file mode 100644 index 0000000..be6693e --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/effects.pulsate.min.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Pulsate 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Pulsate + * + * Depends: + * effects.core.js + */ (function(A){A.effects.pulsate=function(B){return this.queue(function(){var D=A(this);var F=A.effects.setMode(D,B.options.mode||"show");var E=B.options.times||5;if(F=="hide"){E--}if(D.is(":hidden")){D.css("opacity",0);D.show();D.animate({opacity:1},B.duration/2,B.options.easing);E=E-2}for(var C=0;C').appendTo(document.body);if(B.options.className){D.addClass(B.options.className)}D.addClass(B.options.className);D.css({top:C.top,left:C.left,height:E.outerHeight()-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:E.outerWidth()-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth")),position:"absolute"});C=F.offset();animation={top:C.top,left:C.left,height:F.outerHeight()-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:F.outerWidth()-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth"))};D.animate(animation,B.duration,B.options.easing,function(){D.remove();if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/jquery.ui.i18n.all.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/jquery.ui.i18n.all.min.js new file mode 100644 index 0000000..c6c32e1 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/jquery.ui.i18n.all.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["ar"]={clearText:"مسح",clearStatus:"امسح التاريخ الحالي",closeText:"إغلاق",closeStatus:"إغلاق بدون حفظ",prevText:"<السابق",prevStatus:"عرض الشهر السابق",prevBigText:"<<",prevBigStatus:"",nextText:"التالي>",nextStatus:"عرض الشهر القادم",nextBigText:">>",nextBigStatus:"",currentText:"اليوم",currentStatus:"عرض الشهر الحالي",monthNames:["كانون الثاني","شباط","آذار","نيسان","آذار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],monthStatus:"عرض شهر آخر",yearStatus:"عرض سنة آخرى",weekHeader:"أسبوع",weekStatus:"أسبوع السنة",dayNames:["السبت","الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة"],dayNamesShort:["سبت","أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة"],dayNamesMin:["سبت","أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة"],dayStatus:"اختر DD لليوم الأول من الأسبوع",dateStatus:"اختر D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"اختر يوم",isRTL:true};A.datepicker.setDefaults(A.datepicker.regional["ar"])});jQuery(function(A){A.datepicker.regional["bg"]={clearText:"изчисти",clearStatus:"изчисти актуалната дата",closeText:"затвори",closeStatus:"затвори без промени",prevText:"<назад",prevStatus:"покажи последния месец",prevBigText:"<<",prevBigStatus:"",nextText:"напред>",nextStatus:"покажи следващия месец",nextBigText:">>",nextBigStatus:"",currentText:"днес",currentStatus:"",monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Нов","Дек"],monthStatus:"покажи друг месец",yearStatus:"покажи друга година",weekHeader:"Wk",weekStatus:"седмица от месеца",dayNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"],dayNamesShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Съ"],dayStatus:"Сложи DD като първи ден от седмицата",dateStatus:"Избери D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Избери дата",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["bg"])});jQuery(function(A){A.datepicker.regional["ca"]={clearText:"Netejar",clearStatus:"",closeText:"Tancar",closeStatus:"",prevText:"<Ant",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Seg>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Avui",currentStatus:"",monthNames:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],monthNamesShort:["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"],dayNamesShort:["Dug","Dln","Dmt","Dmc","Djs","Dvn","Dsb"],dayNamesMin:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["ca"])});jQuery(function(A){A.datepicker.regional["cs"]={clearText:"Vymazat",clearStatus:"Vymaže zadané datum",closeText:"Zavřít",closeStatus:"Zavře kalendář beze změny",prevText:"<Dříve",prevStatus:"Přejít na předchozí měsí",prevBigText:"<<",prevBigStatus:"",nextText:"Později>",nextStatus:"Přejít na další měsíc",nextBigText:">>",nextBigStatus:"",currentText:"Nyní",currentStatus:"Přejde na aktuální měsíc",monthNames:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthNamesShort:["led","úno","bře","dub","kvě","čer","čvc","srp","zář","říj","lis","pro"],monthStatus:"Přejít na jiný měsíc",yearStatus:"Přejít na jiný rok",weekHeader:"Týd",weekStatus:"Týden v roce",dayNames:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","čt","pá","so"],dayNamesMin:["ne","po","út","st","čt","pá","so"],dayStatus:"Nastavit DD jako první den v týdnu",dateStatus:"'Vyber' DD, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Vyberte datum",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["cs"])});jQuery(function(A){A.datepicker.regional["da"]={clearText:"Nulstil",clearStatus:"Nulstil den aktuelle dato",closeText:"Luk",closeStatus:"Luk uden ændringer",prevText:"<Forrige",prevStatus:"Vis forrige måned",prevBigText:"<<",prevBigStatus:"",nextText:"Næste>",nextStatus:"Vis næste måned",nextBigText:">>",nextBigStatus:"",currentText:"Idag",currentStatus:"Vis aktuel måned",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthStatus:"Vis en anden måned",yearStatus:"Vis et andet år",weekHeader:"Uge",weekStatus:"Årets uge",dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],dayStatus:"Sæt DD som første ugedag",dateStatus:"Vælg D, M d",dateFormat:"dd-mm-yy",firstDay:0,initStatus:"Vælg en dato",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["da"])});jQuery(function(A){A.datepicker.regional["de"]={clearText:"löschen",clearStatus:"aktuelles Datum löschen",closeText:"schließen",closeStatus:"ohne Änderungen schließen",prevText:"<zurück",prevStatus:"letzten Monat zeigen",prevBigText:"<<",prevBigStatus:"",nextText:"Vor>",nextStatus:"nächsten Monat zeigen",nextBigText:">>",nextBigStatus:"",currentText:"heute",currentStatus:"",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthStatus:"anderen Monat anzeigen",yearStatus:"anderes Jahr anzeigen",weekHeader:"Wo",weekStatus:"Woche des Monats",dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],dayStatus:"Setze DD als ersten Wochentag",dateStatus:"Wähle D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Wähle ein Datum",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["de"])});jQuery(function(A){A.datepicker.regional["eo"]={clearText:"Vakigi",clearStatus:"",closeText:"Fermi",closeStatus:"Fermi sen modifi",prevText:"<Anta",prevStatus:"Vidi la antaŭan monaton",prevBigText:"<<",prevBigStatus:"",nextText:"Sekv>",nextStatus:"Vidi la sekvan monaton",nextBigText:">>",nextBigStatus:"",currentText:"Nuna",currentStatus:"Vidi la nunan monaton",monthNames:["Januaro","Februaro","Marto","Aprilo","Majo","Junio","Julio","Aŭgusto","Septembro","Oktobro","Novembro","Decembro"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aŭg","Sep","Okt","Nov","Dec"],monthStatus:"Vidi alian monaton",yearStatus:"Vidi alian jaron",weekHeader:"Sb",weekStatus:"",dayNames:["Dimanĉo","Lundo","Mardo","Merkredo","Ĵaŭdo","Vendredo","Sabato"],dayNamesShort:["Dim","Lun","Mar","Mer","Ĵaŭ","Ven","Sab"],dayNamesMin:["Di","Lu","Ma","Me","Ĵa","Ve","Sa"],dayStatus:"Uzi DD kiel unua tago de la semajno",dateStatus:"Elekti DD, MM d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"Elekti la daton",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["eo"])});jQuery(function(A){A.datepicker.regional["es"]={clearText:"Limpiar",clearStatus:"",closeText:"Cerrar",closeStatus:"",prevText:"<Ant",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Sig>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Hoy",currentStatus:"",monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],dayNamesMin:["Do","Lu","Ma","Mi","Ju","Vi","Sá"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["es"])});jQuery(function(A){A.datepicker.regional["fa"]={clearText:"حذف تاريخ",clearStatus:"پاک کردن تاريخ جاري",closeText:"بستن",closeStatus:"بستن بدون اعمال تغييرات",prevText:"<قبلي",prevStatus:"نمايش ماه قبل",prevBigText:"<<",prevBigStatus:"",nextText:"بعدي>",nextStatus:"نمايش ماه بعد",nextBigText:">>",nextBigStatus:"",currentText:"امروز",currentStatus:"نمايش ماه جاري",monthNames:["فروردين","ارديبهشت","خرداد","تير","مرداد","شهريور","مهر","آبان","آذر","دي","بهمن","اسفند"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],monthStatus:"نمايش ماه متفاوت",yearStatus:"نمايش سال متفاوت",weekHeader:"هف",weekStatus:"هفتهِ سال",dayNames:["يکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayNamesShort:["ي","د","س","چ","پ","ج","ش"],dayNamesMin:["ي","د","س","چ","پ","ج","ش"],dayStatus:"قبول DD بعنوان اولين روز هفته",dateStatus:"انتخاب D, M d",dateFormat:"yy/mm/dd",firstDay:6,initStatus:"انتخاب تاريخ",isRTL:true};A.datepicker.setDefaults(A.datepicker.regional["fa"])});jQuery(function(A){A.datepicker.regional["fi"]={clearText:"Tyhjennä",clearStatus:"",closeText:"Sulje",closeStatus:"",prevText:"«Edellinen",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Seuraava»",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Tänään",currentStatus:"",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],monthStatus:"",yearStatus:"",weekHeader:"Vk",weekStatus:"",dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","Su"],dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],dayNamesMin:["Su","Ma","Ti","Ke","To","Pe","La"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["fi"])});jQuery(function(A){A.datepicker.regional["fr"]={clearText:"Effacer",clearStatus:"Effacer la date sélectionnée",closeText:"Fermer",closeStatus:"Fermer sans modifier",prevText:"<Préc",prevStatus:"Voir le mois précédent",prevBigText:"<<",prevBigStatus:"",nextText:"Suiv>",nextStatus:"Voir le mois suivant",nextBigText:">>",nextBigStatus:"",currentText:"Courant",currentStatus:"Voir le mois courant",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],monthStatus:"Voir un autre mois",yearStatus:"Voir une autre année",weekHeader:"Sm",weekStatus:"",dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayNamesMin:["Di","Lu","Ma","Me","Je","Ve","Sa"],dayStatus:"Utiliser DD comme premier jour de la semaine",dateStatus:"'Choisir' le DD d MM",dateFormat:"dd/mm/yy",firstDay:1,initStatus:"Choisir la date",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["fr"])});jQuery(function(A){A.datepicker.regional["he"]={clearText:"נקה",clearStatus:"",closeText:"סגור",closeStatus:"",prevText:"<הקודם",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"הבא>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"היום",currentStatus:"",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],dayNamesShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayNamesMin:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayStatus:"DD",dateStatus:"DD, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:true};A.datepicker.setDefaults(A.datepicker.regional["he"])});jQuery(function(A){A.datepicker.regional["hr"]={clearText:"izbriši",clearStatus:"Izbriši trenutni datum",closeText:"Zatvori",closeStatus:"Zatvori kalendar",prevText:"<",prevStatus:"Prikaži prethodni mjesec",prevBigText:"<<",prevBigStatus:"",nextText:">",nextStatus:"Prikaži slijedeći mjesec",nextBigText:">>",nextBigStatus:"",currentText:"Danas",currentStatus:"Današnji datum",monthNames:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipani","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthNamesShort:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],monthStatus:"Prikaži mjesece",yearStatus:"Prikaži godine",weekHeader:"Tje",weekStatus:"Tjedan",dayNames:["Nedjalja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],dayStatus:"Odaber DD za prvi dan tjedna",dateStatus:"'Datum' D, M d",dateFormat:"dd.mm.yy.",firstDay:1,initStatus:"Odaberi datum",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["hr"])});jQuery(function(A){A.datepicker.regional["hu"]={clearText:"törlés",clearStatus:"",closeText:"bezárás",closeStatus:"",prevText:"« vissza",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"előre »",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"ma",currentStatus:"",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Hé",weekStatus:"",dayNames:["Vasámap","Hétfö","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["hu"])});jQuery(function(A){A.datepicker.regional["hy"]={clearText:"Մաքրել",clearStatus:"",closeText:"Փակել",closeStatus:"",prevText:"<Նախ.",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Հաջ.>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Այսօր",currentStatus:"",monthNames:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],monthNamesShort:["Հունվ","Փետր","Մարտ","Ապր","Մայիս","Հունիս","Հուլ","Օգս","Սեպ","Հոկ","Նոյ","Դեկ"],monthStatus:"",yearStatus:"",weekHeader:"ՇԲՏ",weekStatus:"",dayNames:["կիրակի","եկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"],dayNamesShort:["կիր","երկ","երք","չրք","հնգ","ուրբ","շբթ"],dayNamesMin:["կիր","երկ","երք","չրք","հնգ","ուրբ","շբթ"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["hy"])});jQuery(function(A){A.datepicker.regional["id"]={clearText:"kosongkan",clearStatus:"bersihkan tanggal yang sekarang",closeText:"Tutup",closeStatus:"Tutup tanpa mengubah",prevText:"<mundur",prevStatus:"Tampilkan bulan sebelumnya",prevBigText:"<<",prevBigStatus:"",nextText:"maju>",nextStatus:"Tampilkan bulan berikutnya",nextBigText:">>",nextBigStatus:"",currentText:"hari ini",currentStatus:"Tampilkan bulan sekarang",monthNames:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agus","Sep","Okt","Nop","Des"],monthStatus:"Tampilkan bulan yang berbeda",yearStatus:"Tampilkan tahun yang berbeda",weekHeader:"Mg",weekStatus:"Minggu dalam tahun",dayNames:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],dayNamesShort:["Min","Sen","Sel","Rab","kam","Jum","Sab"],dayNamesMin:["Mg","Sn","Sl","Rb","Km","jm","Sb"],dayStatus:"gunakan DD sebagai awal hari dalam minggu",dateStatus:"pilih le DD, MM d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"Pilih Tanggal",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["id"])});jQuery(function(A){A.datepicker.regional["is"]={clearText:"Hreinsa",clearStatus:"",closeText:"Loka",closeStatus:"",prevText:"< Fyrri",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Næsti >",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Í dag",currentStatus:"",monthNames:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],monthStatus:"",yearStatus:"",weekHeader:"Vika",weekStatus:"",dayNames:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"],dayNamesShort:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],dayNamesMin:["Su","Má","Þr","Mi","Fi","Fö","La"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["is"])});jQuery(function(A){A.datepicker.regional["it"]={clearText:"Svuota",clearStatus:"Annulla",closeText:"Chiudi",closeStatus:"Chiudere senza modificare",prevText:"<Prec",prevStatus:"Mese precedente",prevBigText:"<<",prevBigStatus:"Mostra l'anno precedente",nextText:"Succ>",nextStatus:"Mese successivo",nextBigText:">>",nextBigStatus:"Mostra l'anno successivo",currentText:"Oggi",currentStatus:"Mese corrente",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],monthStatus:"Seleziona un altro mese",yearStatus:"Seleziona un altro anno",weekHeader:"Sm",weekStatus:"Settimana dell'anno",dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gio","Ve","Sa"],dayStatus:"Usa DD come primo giorno della settimana",dateStatus:"'Seleziona' D, M d",dateFormat:"dd/mm/yy",firstDay:1,initStatus:"Scegliere una data",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["it"])});jQuery(function(A){A.datepicker.regional["ja"]={clearText:"クリア",clearStatus:"日付をクリアします",closeText:"閉じる",closeStatus:"変更せずに閉じます",prevText:"<前",prevStatus:"前月を表示します",prevBigText:"<<",prevBigStatus:"前年を表示します",nextText:"次>",nextStatus:"翌月を表示します",nextBigText:">>",nextBigStatus:"翌年を表示します",currentText:"今日",currentStatus:"今月を表示します",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthStatus:"表示する月を変更します",yearStatus:"表示する年を変更します",weekHeader:"週",weekStatus:"暦週で第何週目かを表します",dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],dayStatus:"週の始まりをDDにします",dateStatus:"Md日(D)",dateFormat:"yy/mm/dd",firstDay:0,initStatus:"日付を選択します",isRTL:false,showMonthAfterYear:true};A.datepicker.setDefaults(A.datepicker.regional["ja"])});jQuery(function(A){A.datepicker.regional["ko"]={clearText:"지우기",clearStatus:"",closeText:"닫기",closeStatus:"",prevText:"이전달",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"다음달",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"오늘",currentStatus:"",monthNames:["1월(JAN)","2월(FEB)","3월(MAR)","4월(APR)","5월(MAY)","6월(JUN)","7월(JUL)","8월(AUG)","9월(SEP)","10월(OCT)","11월(NOV)","12월(DEC)"],monthNamesShort:["1월(JAN)","2월(FEB)","3월(MAR)","4월(APR)","5월(MAY)","6월(JUN)","7월(JUL)","8월(AUG)","9월(SEP)","10월(OCT)","11월(NOV)","12월(DEC)"],monthStatus:"",yearStatus:"",weekHeader:"Wk",weekStatus:"",dayNames:["일","월","화","수","목","금","토"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["ko"])});jQuery(function(A){A.datepicker.regional["lt"]={clearText:"Išvalyti",clearStatus:"",closeText:"Uždaryti",closeStatus:"",prevText:"<Atgal",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Pirmyn>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Šiandien",currentStatus:"",monthNames:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthNamesShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],monthStatus:"",yearStatus:"",weekHeader:"",weekStatus:"",dayNames:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],dayNamesShort:["sek","pir","ant","tre","ket","pen","šeš"],dayNamesMin:["Se","Pr","An","Tr","Ke","Pe","Še"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["lt"])});jQuery(function(A){A.datepicker.regional["lv"]={clearText:"Notīrīt",clearStatus:"",closeText:"Aizvērt",closeStatus:"",prevText:"Iepr",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Nāka",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Šodien",currentStatus:"",monthNames:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Nav",weekStatus:"",dayNames:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],dayNamesShort:["svt","prm","otr","tre","ctr","pkt","sst"],dayNamesMin:["Sv","Pr","Ot","Tr","Ct","Pk","Ss"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd-mm-yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["lv"])});jQuery(function(A){A.datepicker.regional.nl={clearText:"Wissen",clearStatus:"Wis de huidige datum",closeText:"Sluiten",closeStatus:"Sluit zonder verandering",prevText:"←",prevStatus:"Bekijk de vorige maand",prevBigText:"«",nextBigStatus:"Bekijk het vorige jaar",nextText:"→",nextStatus:"Bekijk de volgende maand",nextBigText:"»",nextBigStatus:"Bekijk het volgende jaar",currentText:"Vandaag",currentStatus:"Bekijk de huidige maand",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],monthStatus:"Bekijk een andere maand",yearStatus:"Bekijk een ander jaar",weekHeader:"Wk",weekStatus:"Week van het jaar",dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],dayStatus:"Stel DD in als eerste dag van de week",dateStatus:"dd/mm/yy",dateFormat:"dd/mm/yy",firstDay:1,initStatus:"Kies een datum",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional.nl)});jQuery(function(A){A.datepicker.regional["no"]={clearText:"Tøm",clearStatus:"",closeText:"Lukk",closeStatus:"",prevText:"«Forrige",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Neste»",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"I dag",currentStatus:"",monthNames:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],monthStatus:"",yearStatus:"",weekHeader:"Uke",weekStatus:"",dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["no"])});jQuery(function(A){A.datepicker.regional["pl"]={clearText:"Wyczyść",clearStatus:"Wyczyść obecną datę",closeText:"Zamknij",closeStatus:"Zamknij bez zapisywania",prevText:"<Poprzedni",prevStatus:"Pokaż poprzedni miesiąc",prevBigText:"<<",prevBigStatus:"",nextText:"Następny>",nextStatus:"Pokaż następny miesiąc",nextBigText:">>",nextBigStatus:"",currentText:"Dziś",currentStatus:"Pokaż aktualny miesiąc",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],monthStatus:"Pokaż inny miesiąc",yearStatus:"Pokaż inny rok",weekHeader:"Tydz",weekStatus:"Tydzień roku",dayNames:["Niedziela","Poniedzialek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],dayStatus:"Ustaw DD jako pierwszy dzień tygodnia",dateStatus:"'Wybierz' D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"Wybierz datę",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["pl"])});jQuery(function(A){A.datepicker.regional["pt-BR"]={clearText:"Limpar",clearStatus:"",closeText:"Fechar",closeStatus:"",prevText:"<Anterior",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Próximo>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Hoje",currentStatus:"",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sabado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["pt-BR"])});jQuery(function(A){A.datepicker.regional["ro"]={clearText:"Curat",clearStatus:"Sterge data curenta",closeText:"Inchide",closeStatus:"Inchide fara schimbare",prevText:"<Anterior",prevStatus:"Arata luna trecuta",prevBigText:"<<",prevBigStatus:"",nextText:"Urmator>",nextStatus:"Arata luna urmatoare",nextBigText:">>",nextBigStatus:"",currentText:"Azi",currentStatus:"Arata luna curenta",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Junie","Julie","August","Septembrie","Octobrie","Noiembrie","Decembrie"],monthNamesShort:["Ian","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Noi","Dec"],monthStatus:"Arata o luna diferita",yearStatus:"Arat un an diferit",weekHeader:"Sapt",weekStatus:"Saptamana anului",dayNames:["Duminica","Luni","Marti","Miercuri","Joi","Vineri","Sambata"],dayNamesShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sam"],dayNamesMin:["Du","Lu","Ma","Mi","Jo","Vi","Sa"],dayStatus:"Seteaza DD ca prima saptamana zi",dateStatus:"Selecteaza D, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Selecteaza o data",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["ro"])});jQuery(function(A){A.datepicker.regional["ru"]={clearText:"Очистить",clearStatus:"",closeText:"Закрыть",closeStatus:"",prevText:"<Пред",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"След>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Сегодня",currentStatus:"",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],monthStatus:"",yearStatus:"",weekHeader:"Не",weekStatus:"",dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["ru"])});jQuery(function(A){A.datepicker.regional["sk"]={clearText:"Zmazať",clearStatus:"",closeText:"Zavrieť",closeStatus:"",prevText:"<Predchádzajúci",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Nasledujúci>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Dnes",currentStatus:"",monthNames:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Ty",weekStatus:"",dayNames:["Nedel'a","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"],dayNamesShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob"],dayNamesMin:["Ne","Po","Ut","St","Št","Pia","So"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["sk"])});jQuery(function(A){A.datepicker.regional["sl"]={clearText:"Izbriši",clearStatus:"Izbriši trenutni datum",closeText:"Zapri",closeStatus:"Zapri brez spreminjanja",prevText:"<Prejšnji",prevStatus:"Prikaži prejšnji mesec",prevBigText:"<<",prevBigStatus:"",nextText:"Naslednji>",nextStatus:"Prikaži naslednji mesec",nextBigText:">>",nextBigStatus:"",currentText:"Trenutni",currentStatus:"Prikaži trenutni mesec",monthNames:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],monthStatus:"Prikaži drug mesec",yearStatus:"Prikaži drugo leto",weekHeader:"Teden",weekStatus:"Teden v letu",dayNames:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"],dayNamesShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayNamesMin:["Ne","Po","To","Sr","Če","Pe","So"],dayStatus:"Nastavi DD za prvi dan v tednu",dateStatus:"Izberi DD, d MM yy",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Izbira datuma",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["sl"])});jQuery(function(A){A.datepicker.regional["sq"]={clearText:"fshije",clearStatus:"fshije datën aktuale",closeText:"mbylle",closeStatus:"mbylle pa ndryshime",prevText:"<mbrapa",prevStatus:"trego muajin e fundit",prevBigText:"<<",prevBigStatus:"",nextText:"Përpara>",nextStatus:"trego muajin tjetër",nextBigText:">>",nextBigStatus:"",currentText:"sot",currentStatus:"",monthNames:["Janar","Shkurt","Mars","Pril","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],monthNamesShort:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],monthStatus:"trego muajin tjetër",yearStatus:"trego tjetër vit",weekHeader:"Ja",weekStatus:"Java e muajit",dayNames:["E Diel","E Hënë","E Martë","E Mërkurë","E Enjte","E Premte","E Shtune"],dayNamesShort:["Di","Hë","Ma","Më","En","Pr","Sh"],dayNamesMin:["Di","Hë","Ma","Më","En","Pr","Sh"],dayStatus:"Vendose DD si ditë të parë të javës",dateStatus:"'Zgjedh' D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Zgjedhe një datë",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["sq"])});jQuery(function(A){A.datepicker.regional["sv"]={clearText:"Rensa",clearStatus:"",closeText:"Stäng",closeStatus:"",prevText:"«Förra",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Nästa»",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Idag",currentStatus:"",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Ve",weekStatus:"",dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["sv"])});jQuery(function(A){A.datepicker.regional["th"]={clearText:"ลบ",clearStatus:"",closeText:"ปิด",closeStatus:"",prevText:"« ย้อน",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"ถัดไป »",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"วันนี้",currentStatus:"",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฏาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthNamesShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],dayNamesShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayNamesMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["th"])});jQuery(function(A){A.datepicker.regional["tr"]={clearText:"temizle",clearStatus:"geçerli tarihi temizler",closeText:"kapat",closeStatus:"sadece göstergeyi kapat",prevText:"<geri",prevStatus:"önceki ayı göster",prevBigText:"<<",prevBigStatus:"",nextText:"ileri>",nextStatus:"sonraki ayı göster",nextBigText:">>",nextBigStatus:"",currentText:"bugün",currentStatus:"",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],monthStatus:"başka ay",yearStatus:"başka yıl",weekHeader:"Hf",weekStatus:"Ayın haftaları",dayNames:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayNamesMin:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayStatus:"Haftanın ilk gününü belirleyin",dateStatus:"D, M d seçiniz",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Bir tarih seçiniz",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["tr"])});jQuery(function(A){A.datepicker.regional["uk"]={clearText:"Очистити",clearStatus:"",closeText:"Закрити",closeStatus:"",prevText:"<",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:">",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Сьогодні",currentStatus:"",monthNames:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthNamesShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],monthStatus:"",yearStatus:"",weekHeader:"Не",weekStatus:"",dayNames:["неділя","понеділок","вівторок","середа","четвер","пятниця","суббота"],dayNamesShort:["нед","пнд","вів","срд","чтв","птн","сбт"],dayNamesMin:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["uk"])});jQuery(function(A){A.datepicker.regional["zh-CN"]={clearText:"清除",clearStatus:"清除已选日期",closeText:"关闭",closeStatus:"不改变当前选择",prevText:"<上月",prevStatus:"显示上月",prevBigText:"<<",prevBigStatus:"显示上一年",nextText:"下月>",nextStatus:"显示下月",nextBigText:">>",nextBigStatus:"显示下一年",currentText:"今天",currentStatus:"显示本月",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一","二","三","四","五","六","七","八","九","十","十一","十二"],monthStatus:"选择月份",yearStatus:"选择年份",weekHeader:"周",weekStatus:"年内周次",dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],dayStatus:"设置 DD 为一周起始",dateStatus:"选择 m月 d日, DD",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"请选择日期",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["zh-CN"])});jQuery(function(A){A.datepicker.regional["zh-TW"]={clearText:"清除",clearStatus:"清除已選日期",closeText:"關閉",closeStatus:"不改變目前的選擇",prevText:"<上月",prevStatus:"顯示上月",prevBigText:"<<",prevBigStatus:"顯示上一年",nextText:"下月>",nextStatus:"顯示下月",nextBigText:">>",nextBigStatus:"顯示下一年",currentText:"今天",currentStatus:"顯示本月",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一","二","三","四","五","六","七","八","九","十","十一","十二"],monthStatus:"選擇月份",yearStatus:"選擇年份",weekHeader:"周",weekStatus:"年內周次",dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],dayStatus:"設定 DD 為一周起始",dateStatus:"選擇 m月 d日, DD",dateFormat:"yy/mm/dd",firstDay:1,initStatus:"請選擇日期",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["zh-TW"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ar.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ar.min.js new file mode 100644 index 0000000..77fba21 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ar.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["ar"]={clearText:"مسح",clearStatus:"امسح التاريخ الحالي",closeText:"إغلاق",closeStatus:"إغلاق بدون حفظ",prevText:"<السابق",prevStatus:"عرض الشهر السابق",prevBigText:"<<",prevBigStatus:"",nextText:"التالي>",nextStatus:"عرض الشهر القادم",nextBigText:">>",nextBigStatus:"",currentText:"اليوم",currentStatus:"عرض الشهر الحالي",monthNames:["كانون الثاني","شباط","آذار","نيسان","آذار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],monthStatus:"عرض شهر آخر",yearStatus:"عرض سنة آخرى",weekHeader:"أسبوع",weekStatus:"أسبوع السنة",dayNames:["السبت","الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة"],dayNamesShort:["سبت","أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة"],dayNamesMin:["سبت","أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة"],dayStatus:"اختر DD لليوم الأول من الأسبوع",dateStatus:"اختر D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"اختر يوم",isRTL:true};A.datepicker.setDefaults(A.datepicker.regional["ar"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-bg.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-bg.min.js new file mode 100644 index 0000000..5c0fbbb --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-bg.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["bg"]={clearText:"изчисти",clearStatus:"изчисти актуалната дата",closeText:"затвори",closeStatus:"затвори без промени",prevText:"<назад",prevStatus:"покажи последния месец",prevBigText:"<<",prevBigStatus:"",nextText:"напред>",nextStatus:"покажи следващия месец",nextBigText:">>",nextBigStatus:"",currentText:"днес",currentStatus:"",monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Нов","Дек"],monthStatus:"покажи друг месец",yearStatus:"покажи друга година",weekHeader:"Wk",weekStatus:"седмица от месеца",dayNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"],dayNamesShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Съ"],dayStatus:"Сложи DD като първи ден от седмицата",dateStatus:"Избери D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Избери дата",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["bg"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ca.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ca.min.js new file mode 100644 index 0000000..54cef0b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ca.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["ca"]={clearText:"Netejar",clearStatus:"",closeText:"Tancar",closeStatus:"",prevText:"<Ant",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Seg>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Avui",currentStatus:"",monthNames:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],monthNamesShort:["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"],dayNamesShort:["Dug","Dln","Dmt","Dmc","Djs","Dvn","Dsb"],dayNamesMin:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["ca"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-cs.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-cs.min.js new file mode 100644 index 0000000..747d30b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-cs.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["cs"]={clearText:"Vymazat",clearStatus:"Vymaže zadané datum",closeText:"Zavřít",closeStatus:"Zavře kalendář beze změny",prevText:"<Dříve",prevStatus:"Přejít na předchozí měsí",prevBigText:"<<",prevBigStatus:"",nextText:"Později>",nextStatus:"Přejít na další měsíc",nextBigText:">>",nextBigStatus:"",currentText:"Nyní",currentStatus:"Přejde na aktuální měsíc",monthNames:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthNamesShort:["led","úno","bře","dub","kvě","čer","čvc","srp","zář","říj","lis","pro"],monthStatus:"Přejít na jiný měsíc",yearStatus:"Přejít na jiný rok",weekHeader:"Týd",weekStatus:"Týden v roce",dayNames:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","čt","pá","so"],dayNamesMin:["ne","po","út","st","čt","pá","so"],dayStatus:"Nastavit DD jako první den v týdnu",dateStatus:"'Vyber' DD, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Vyberte datum",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["cs"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-da.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-da.min.js new file mode 100644 index 0000000..15fb854 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-da.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["da"]={clearText:"Nulstil",clearStatus:"Nulstil den aktuelle dato",closeText:"Luk",closeStatus:"Luk uden ændringer",prevText:"<Forrige",prevStatus:"Vis forrige måned",prevBigText:"<<",prevBigStatus:"",nextText:"Næste>",nextStatus:"Vis næste måned",nextBigText:">>",nextBigStatus:"",currentText:"Idag",currentStatus:"Vis aktuel måned",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthStatus:"Vis en anden måned",yearStatus:"Vis et andet år",weekHeader:"Uge",weekStatus:"Årets uge",dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],dayStatus:"Sæt DD som første ugedag",dateStatus:"Vælg D, M d",dateFormat:"dd-mm-yy",firstDay:0,initStatus:"Vælg en dato",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["da"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-de.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-de.min.js new file mode 100644 index 0000000..60a8c78 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-de.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["de"]={clearText:"löschen",clearStatus:"aktuelles Datum löschen",closeText:"schließen",closeStatus:"ohne Änderungen schließen",prevText:"<zurück",prevStatus:"letzten Monat zeigen",prevBigText:"<<",prevBigStatus:"",nextText:"Vor>",nextStatus:"nächsten Monat zeigen",nextBigText:">>",nextBigStatus:"",currentText:"heute",currentStatus:"",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthStatus:"anderen Monat anzeigen",yearStatus:"anderes Jahr anzeigen",weekHeader:"Wo",weekStatus:"Woche des Monats",dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],dayStatus:"Setze DD als ersten Wochentag",dateStatus:"Wähle D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Wähle ein Datum",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["de"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-eo.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-eo.min.js new file mode 100644 index 0000000..07758b3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-eo.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["eo"]={clearText:"Vakigi",clearStatus:"",closeText:"Fermi",closeStatus:"Fermi sen modifi",prevText:"<Anta",prevStatus:"Vidi la antaŭan monaton",prevBigText:"<<",prevBigStatus:"",nextText:"Sekv>",nextStatus:"Vidi la sekvan monaton",nextBigText:">>",nextBigStatus:"",currentText:"Nuna",currentStatus:"Vidi la nunan monaton",monthNames:["Januaro","Februaro","Marto","Aprilo","Majo","Junio","Julio","Aŭgusto","Septembro","Oktobro","Novembro","Decembro"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aŭg","Sep","Okt","Nov","Dec"],monthStatus:"Vidi alian monaton",yearStatus:"Vidi alian jaron",weekHeader:"Sb",weekStatus:"",dayNames:["Dimanĉo","Lundo","Mardo","Merkredo","Ĵaŭdo","Vendredo","Sabato"],dayNamesShort:["Dim","Lun","Mar","Mer","Ĵaŭ","Ven","Sab"],dayNamesMin:["Di","Lu","Ma","Me","Ĵa","Ve","Sa"],dayStatus:"Uzi DD kiel unua tago de la semajno",dateStatus:"Elekti DD, MM d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"Elekti la daton",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["eo"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-es.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-es.min.js new file mode 100644 index 0000000..1923a4f --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-es.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["es"]={clearText:"Limpiar",clearStatus:"",closeText:"Cerrar",closeStatus:"",prevText:"<Ant",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Sig>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Hoy",currentStatus:"",monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],dayNamesMin:["Do","Lu","Ma","Mi","Ju","Vi","Sá"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["es"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fa.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fa.min.js new file mode 100644 index 0000000..421b50e --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fa.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["fa"]={clearText:"حذف تاريخ",clearStatus:"پاک کردن تاريخ جاري",closeText:"بستن",closeStatus:"بستن بدون اعمال تغييرات",prevText:"<قبلي",prevStatus:"نمايش ماه قبل",prevBigText:"<<",prevBigStatus:"",nextText:"بعدي>",nextStatus:"نمايش ماه بعد",nextBigText:">>",nextBigStatus:"",currentText:"امروز",currentStatus:"نمايش ماه جاري",monthNames:["فروردين","ارديبهشت","خرداد","تير","مرداد","شهريور","مهر","آبان","آذر","دي","بهمن","اسفند"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],monthStatus:"نمايش ماه متفاوت",yearStatus:"نمايش سال متفاوت",weekHeader:"هف",weekStatus:"هفتهِ سال",dayNames:["يکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayNamesShort:["ي","د","س","چ","پ","ج","ش"],dayNamesMin:["ي","د","س","چ","پ","ج","ش"],dayStatus:"قبول DD بعنوان اولين روز هفته",dateStatus:"انتخاب D, M d",dateFormat:"yy/mm/dd",firstDay:6,initStatus:"انتخاب تاريخ",isRTL:true};A.datepicker.setDefaults(A.datepicker.regional["fa"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fi.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fi.min.js new file mode 100644 index 0000000..0fc7d6a --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fi.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["fi"]={clearText:"Tyhjennä",clearStatus:"",closeText:"Sulje",closeStatus:"",prevText:"«Edellinen",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Seuraava»",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Tänään",currentStatus:"",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],monthStatus:"",yearStatus:"",weekHeader:"Vk",weekStatus:"",dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","Su"],dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],dayNamesMin:["Su","Ma","Ti","Ke","To","Pe","La"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["fi"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fr.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fr.min.js new file mode 100644 index 0000000..78b8dca --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-fr.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["fr"]={clearText:"Effacer",clearStatus:"Effacer la date sélectionnée",closeText:"Fermer",closeStatus:"Fermer sans modifier",prevText:"<Préc",prevStatus:"Voir le mois précédent",prevBigText:"<<",prevBigStatus:"",nextText:"Suiv>",nextStatus:"Voir le mois suivant",nextBigText:">>",nextBigStatus:"",currentText:"Courant",currentStatus:"Voir le mois courant",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],monthStatus:"Voir un autre mois",yearStatus:"Voir une autre année",weekHeader:"Sm",weekStatus:"",dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayNamesMin:["Di","Lu","Ma","Me","Je","Ve","Sa"],dayStatus:"Utiliser DD comme premier jour de la semaine",dateStatus:"'Choisir' le DD d MM",dateFormat:"dd/mm/yy",firstDay:1,initStatus:"Choisir la date",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["fr"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-he.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-he.min.js new file mode 100644 index 0000000..a700e00 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-he.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["he"]={clearText:"נקה",clearStatus:"",closeText:"סגור",closeStatus:"",prevText:"<הקודם",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"הבא>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"היום",currentStatus:"",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],dayNamesShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayNamesMin:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayStatus:"DD",dateStatus:"DD, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:true};A.datepicker.setDefaults(A.datepicker.regional["he"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hr.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hr.min.js new file mode 100644 index 0000000..a96df01 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hr.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["hr"]={clearText:"izbriši",clearStatus:"Izbriši trenutni datum",closeText:"Zatvori",closeStatus:"Zatvori kalendar",prevText:"<",prevStatus:"Prikaži prethodni mjesec",prevBigText:"<<",prevBigStatus:"",nextText:">",nextStatus:"Prikaži slijedeći mjesec",nextBigText:">>",nextBigStatus:"",currentText:"Danas",currentStatus:"Današnji datum",monthNames:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipani","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthNamesShort:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],monthStatus:"Prikaži mjesece",yearStatus:"Prikaži godine",weekHeader:"Tje",weekStatus:"Tjedan",dayNames:["Nedjalja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],dayStatus:"Odaber DD za prvi dan tjedna",dateStatus:"'Datum' D, M d",dateFormat:"dd.mm.yy.",firstDay:1,initStatus:"Odaberi datum",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["hr"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hu.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hu.min.js new file mode 100644 index 0000000..73b0ba5 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hu.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["hu"]={clearText:"törlés",clearStatus:"",closeText:"bezárás",closeStatus:"",prevText:"« vissza",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"előre »",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"ma",currentStatus:"",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Hé",weekStatus:"",dayNames:["Vasámap","Hétfö","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["hu"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hy.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hy.min.js new file mode 100644 index 0000000..8a79ae3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-hy.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["hy"]={clearText:"Մաքրել",clearStatus:"",closeText:"Փակել",closeStatus:"",prevText:"<Նախ.",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Հաջ.>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Այսօր",currentStatus:"",monthNames:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],monthNamesShort:["Հունվ","Փետր","Մարտ","Ապր","Մայիս","Հունիս","Հուլ","Օգս","Սեպ","Հոկ","Նոյ","Դեկ"],monthStatus:"",yearStatus:"",weekHeader:"ՇԲՏ",weekStatus:"",dayNames:["կիրակի","եկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"],dayNamesShort:["կիր","երկ","երք","չրք","հնգ","ուրբ","շբթ"],dayNamesMin:["կիր","երկ","երք","չրք","հնգ","ուրբ","շբթ"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["hy"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-id.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-id.min.js new file mode 100644 index 0000000..38e533b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-id.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["id"]={clearText:"kosongkan",clearStatus:"bersihkan tanggal yang sekarang",closeText:"Tutup",closeStatus:"Tutup tanpa mengubah",prevText:"<mundur",prevStatus:"Tampilkan bulan sebelumnya",prevBigText:"<<",prevBigStatus:"",nextText:"maju>",nextStatus:"Tampilkan bulan berikutnya",nextBigText:">>",nextBigStatus:"",currentText:"hari ini",currentStatus:"Tampilkan bulan sekarang",monthNames:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agus","Sep","Okt","Nop","Des"],monthStatus:"Tampilkan bulan yang berbeda",yearStatus:"Tampilkan tahun yang berbeda",weekHeader:"Mg",weekStatus:"Minggu dalam tahun",dayNames:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],dayNamesShort:["Min","Sen","Sel","Rab","kam","Jum","Sab"],dayNamesMin:["Mg","Sn","Sl","Rb","Km","jm","Sb"],dayStatus:"gunakan DD sebagai awal hari dalam minggu",dateStatus:"pilih le DD, MM d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"Pilih Tanggal",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["id"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-is.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-is.min.js new file mode 100644 index 0000000..ab3665e --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-is.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["is"]={clearText:"Hreinsa",clearStatus:"",closeText:"Loka",closeStatus:"",prevText:"< Fyrri",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Næsti >",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Í dag",currentStatus:"",monthNames:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],monthStatus:"",yearStatus:"",weekHeader:"Vika",weekStatus:"",dayNames:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"],dayNamesShort:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],dayNamesMin:["Su","Má","Þr","Mi","Fi","Fö","La"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["is"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-it.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-it.min.js new file mode 100644 index 0000000..d599309 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-it.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["it"]={clearText:"Svuota",clearStatus:"Annulla",closeText:"Chiudi",closeStatus:"Chiudere senza modificare",prevText:"<Prec",prevStatus:"Mese precedente",prevBigText:"<<",prevBigStatus:"Mostra l'anno precedente",nextText:"Succ>",nextStatus:"Mese successivo",nextBigText:">>",nextBigStatus:"Mostra l'anno successivo",currentText:"Oggi",currentStatus:"Mese corrente",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],monthStatus:"Seleziona un altro mese",yearStatus:"Seleziona un altro anno",weekHeader:"Sm",weekStatus:"Settimana dell'anno",dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gio","Ve","Sa"],dayStatus:"Usa DD come primo giorno della settimana",dateStatus:"'Seleziona' D, M d",dateFormat:"dd/mm/yy",firstDay:1,initStatus:"Scegliere una data",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["it"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ja.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ja.min.js new file mode 100644 index 0000000..03de5ae --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ja.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["ja"]={clearText:"クリア",clearStatus:"日付をクリアします",closeText:"閉じる",closeStatus:"変更せずに閉じます",prevText:"<前",prevStatus:"前月を表示します",prevBigText:"<<",prevBigStatus:"前年を表示します",nextText:"次>",nextStatus:"翌月を表示します",nextBigText:">>",nextBigStatus:"翌年を表示します",currentText:"今日",currentStatus:"今月を表示します",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthStatus:"表示する月を変更します",yearStatus:"表示する年を変更します",weekHeader:"週",weekStatus:"暦週で第何週目かを表します",dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],dayStatus:"週の始まりをDDにします",dateStatus:"Md日(D)",dateFormat:"yy/mm/dd",firstDay:0,initStatus:"日付を選択します",isRTL:false,showMonthAfterYear:true};A.datepicker.setDefaults(A.datepicker.regional["ja"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ko.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ko.min.js new file mode 100644 index 0000000..5321bd1 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ko.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["ko"]={clearText:"지우기",clearStatus:"",closeText:"닫기",closeStatus:"",prevText:"이전달",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"다음달",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"오늘",currentStatus:"",monthNames:["1월(JAN)","2월(FEB)","3월(MAR)","4월(APR)","5월(MAY)","6월(JUN)","7월(JUL)","8월(AUG)","9월(SEP)","10월(OCT)","11월(NOV)","12월(DEC)"],monthNamesShort:["1월(JAN)","2월(FEB)","3월(MAR)","4월(APR)","5월(MAY)","6월(JUN)","7월(JUL)","8월(AUG)","9월(SEP)","10월(OCT)","11월(NOV)","12월(DEC)"],monthStatus:"",yearStatus:"",weekHeader:"Wk",weekStatus:"",dayNames:["일","월","화","수","목","금","토"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["ko"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-lt.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-lt.min.js new file mode 100644 index 0000000..f3c9972 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-lt.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["lt"]={clearText:"Išvalyti",clearStatus:"",closeText:"Uždaryti",closeStatus:"",prevText:"<Atgal",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Pirmyn>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Šiandien",currentStatus:"",monthNames:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthNamesShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],monthStatus:"",yearStatus:"",weekHeader:"",weekStatus:"",dayNames:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],dayNamesShort:["sek","pir","ant","tre","ket","pen","šeš"],dayNamesMin:["Se","Pr","An","Tr","Ke","Pe","Še"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["lt"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-lv.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-lv.min.js new file mode 100644 index 0000000..e000da4 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-lv.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["lv"]={clearText:"Notīrīt",clearStatus:"",closeText:"Aizvērt",closeStatus:"",prevText:"Iepr",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Nāka",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Šodien",currentStatus:"",monthNames:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Nav",weekStatus:"",dayNames:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],dayNamesShort:["svt","prm","otr","tre","ctr","pkt","sst"],dayNamesMin:["Sv","Pr","Ot","Tr","Ct","Pk","Ss"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd-mm-yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["lv"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-nl.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-nl.min.js new file mode 100644 index 0000000..56e2399 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-nl.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional.nl={clearText:"Wissen",clearStatus:"Wis de huidige datum",closeText:"Sluiten",closeStatus:"Sluit zonder verandering",prevText:"←",prevStatus:"Bekijk de vorige maand",prevBigText:"«",nextBigStatus:"Bekijk het vorige jaar",nextText:"→",nextStatus:"Bekijk de volgende maand",nextBigText:"»",nextBigStatus:"Bekijk het volgende jaar",currentText:"Vandaag",currentStatus:"Bekijk de huidige maand",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],monthStatus:"Bekijk een andere maand",yearStatus:"Bekijk een ander jaar",weekHeader:"Wk",weekStatus:"Week van het jaar",dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],dayStatus:"Stel DD in als eerste dag van de week",dateStatus:"dd/mm/yy",dateFormat:"dd/mm/yy",firstDay:1,initStatus:"Kies een datum",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional.nl)}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-no.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-no.min.js new file mode 100644 index 0000000..f412095 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-no.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["no"]={clearText:"Tøm",clearStatus:"",closeText:"Lukk",closeStatus:"",prevText:"«Forrige",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Neste»",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"I dag",currentStatus:"",monthNames:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],monthStatus:"",yearStatus:"",weekHeader:"Uke",weekStatus:"",dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["no"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-pl.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-pl.min.js new file mode 100644 index 0000000..688d481 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-pl.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["pl"]={clearText:"Wyczyść",clearStatus:"Wyczyść obecną datę",closeText:"Zamknij",closeStatus:"Zamknij bez zapisywania",prevText:"<Poprzedni",prevStatus:"Pokaż poprzedni miesiąc",prevBigText:"<<",prevBigStatus:"",nextText:"Następny>",nextStatus:"Pokaż następny miesiąc",nextBigText:">>",nextBigStatus:"",currentText:"Dziś",currentStatus:"Pokaż aktualny miesiąc",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],monthStatus:"Pokaż inny miesiąc",yearStatus:"Pokaż inny rok",weekHeader:"Tydz",weekStatus:"Tydzień roku",dayNames:["Niedziela","Poniedzialek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],dayStatus:"Ustaw DD jako pierwszy dzień tygodnia",dateStatus:"'Wybierz' D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"Wybierz datę",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["pl"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-pt-BR.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-pt-BR.min.js new file mode 100644 index 0000000..0ed0aa2 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-pt-BR.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["pt-BR"]={clearText:"Limpar",clearStatus:"",closeText:"Fechar",closeStatus:"",prevText:"<Anterior",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Próximo>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Hoje",currentStatus:"",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sabado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["pt-BR"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ro.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ro.min.js new file mode 100644 index 0000000..8d1f59f --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ro.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["ro"]={clearText:"Curat",clearStatus:"Sterge data curenta",closeText:"Inchide",closeStatus:"Inchide fara schimbare",prevText:"<Anterior",prevStatus:"Arata luna trecuta",prevBigText:"<<",prevBigStatus:"",nextText:"Urmator>",nextStatus:"Arata luna urmatoare",nextBigText:">>",nextBigStatus:"",currentText:"Azi",currentStatus:"Arata luna curenta",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Junie","Julie","August","Septembrie","Octobrie","Noiembrie","Decembrie"],monthNamesShort:["Ian","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Noi","Dec"],monthStatus:"Arata o luna diferita",yearStatus:"Arat un an diferit",weekHeader:"Sapt",weekStatus:"Saptamana anului",dayNames:["Duminica","Luni","Marti","Miercuri","Joi","Vineri","Sambata"],dayNamesShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sam"],dayNamesMin:["Du","Lu","Ma","Mi","Jo","Vi","Sa"],dayStatus:"Seteaza DD ca prima saptamana zi",dateStatus:"Selecteaza D, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Selecteaza o data",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["ro"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ru.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ru.min.js new file mode 100644 index 0000000..0726908 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-ru.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["ru"]={clearText:"Очистить",clearStatus:"",closeText:"Закрыть",closeStatus:"",prevText:"<Пред",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"След>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Сегодня",currentStatus:"",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],monthStatus:"",yearStatus:"",weekHeader:"Не",weekStatus:"",dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["ru"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sk.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sk.min.js new file mode 100644 index 0000000..99d35b2 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sk.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["sk"]={clearText:"Zmazať",clearStatus:"",closeText:"Zavrieť",closeStatus:"",prevText:"<Predchádzajúci",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Nasledujúci>",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Dnes",currentStatus:"",monthNames:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Ty",weekStatus:"",dayNames:["Nedel'a","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"],dayNamesShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob"],dayNamesMin:["Ne","Po","Ut","St","Št","Pia","So"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["sk"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sl.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sl.min.js new file mode 100644 index 0000000..7a89f26 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sl.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["sl"]={clearText:"Izbriši",clearStatus:"Izbriši trenutni datum",closeText:"Zapri",closeStatus:"Zapri brez spreminjanja",prevText:"<Prejšnji",prevStatus:"Prikaži prejšnji mesec",prevBigText:"<<",prevBigStatus:"",nextText:"Naslednji>",nextStatus:"Prikaži naslednji mesec",nextBigText:">>",nextBigStatus:"",currentText:"Trenutni",currentStatus:"Prikaži trenutni mesec",monthNames:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],monthStatus:"Prikaži drug mesec",yearStatus:"Prikaži drugo leto",weekHeader:"Teden",weekStatus:"Teden v letu",dayNames:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"],dayNamesShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayNamesMin:["Ne","Po","To","Sr","Če","Pe","So"],dayStatus:"Nastavi DD za prvi dan v tednu",dateStatus:"Izberi DD, d MM yy",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Izbira datuma",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["sl"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sq.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sq.min.js new file mode 100644 index 0000000..bea4a86 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sq.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["sq"]={clearText:"fshije",clearStatus:"fshije datën aktuale",closeText:"mbylle",closeStatus:"mbylle pa ndryshime",prevText:"<mbrapa",prevStatus:"trego muajin e fundit",prevBigText:"<<",prevBigStatus:"",nextText:"Përpara>",nextStatus:"trego muajin tjetër",nextBigText:">>",nextBigStatus:"",currentText:"sot",currentStatus:"",monthNames:["Janar","Shkurt","Mars","Pril","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],monthNamesShort:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],monthStatus:"trego muajin tjetër",yearStatus:"trego tjetër vit",weekHeader:"Ja",weekStatus:"Java e muajit",dayNames:["E Diel","E Hënë","E Martë","E Mërkurë","E Enjte","E Premte","E Shtune"],dayNamesShort:["Di","Hë","Ma","Më","En","Pr","Sh"],dayNamesMin:["Di","Hë","Ma","Më","En","Pr","Sh"],dayStatus:"Vendose DD si ditë të parë të javës",dateStatus:"'Zgjedh' D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Zgjedhe një datë",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["sq"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sv.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sv.min.js new file mode 100644 index 0000000..15a9ac3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-sv.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["sv"]={clearText:"Rensa",clearStatus:"",closeText:"Stäng",closeStatus:"",prevText:"«Förra",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"Nästa»",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Idag",currentStatus:"",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthStatus:"",yearStatus:"",weekHeader:"Ve",weekStatus:"",dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["sv"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-th.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-th.min.js new file mode 100644 index 0000000..9562589 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-th.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["th"]={clearText:"ลบ",clearStatus:"",closeText:"ปิด",closeStatus:"",prevText:"« ย้อน",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:"ถัดไป »",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"วันนี้",currentStatus:"",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฏาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthNamesShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],monthStatus:"",yearStatus:"",weekHeader:"Sm",weekStatus:"",dayNames:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],dayNamesShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayNamesMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd/mm/yy",firstDay:0,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["th"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-tr.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-tr.min.js new file mode 100644 index 0000000..b0b943c --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-tr.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["tr"]={clearText:"temizle",clearStatus:"geçerli tarihi temizler",closeText:"kapat",closeStatus:"sadece göstergeyi kapat",prevText:"<geri",prevStatus:"önceki ayı göster",prevBigText:"<<",prevBigStatus:"",nextText:"ileri>",nextStatus:"sonraki ayı göster",nextBigText:">>",nextBigStatus:"",currentText:"bugün",currentStatus:"",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],monthStatus:"başka ay",yearStatus:"başka yıl",weekHeader:"Hf",weekStatus:"Ayın haftaları",dayNames:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayNamesMin:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayStatus:"Haftanın ilk gününü belirleyin",dateStatus:"D, M d seçiniz",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"Bir tarih seçiniz",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["tr"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-uk.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-uk.min.js new file mode 100644 index 0000000..807a2a3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-uk.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["uk"]={clearText:"Очистити",clearStatus:"",closeText:"Закрити",closeStatus:"",prevText:"<",prevStatus:"",prevBigText:"<<",prevBigStatus:"",nextText:">",nextStatus:"",nextBigText:">>",nextBigStatus:"",currentText:"Сьогодні",currentStatus:"",monthNames:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthNamesShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],monthStatus:"",yearStatus:"",weekHeader:"Не",weekStatus:"",dayNames:["неділя","понеділок","вівторок","середа","четвер","пятниця","суббота"],dayNamesShort:["нед","пнд","вів","срд","чтв","птн","сбт"],dayNamesMin:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayStatus:"DD",dateStatus:"D, M d",dateFormat:"dd.mm.yy",firstDay:1,initStatus:"",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["uk"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-zh-CN.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-zh-CN.min.js new file mode 100644 index 0000000..f966ea9 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-zh-CN.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["zh-CN"]={clearText:"清除",clearStatus:"清除已选日期",closeText:"关闭",closeStatus:"不改变当前选择",prevText:"<上月",prevStatus:"显示上月",prevBigText:"<<",prevBigStatus:"显示上一年",nextText:"下月>",nextStatus:"显示下月",nextBigText:">>",nextBigStatus:"显示下一年",currentText:"今天",currentStatus:"显示本月",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一","二","三","四","五","六","七","八","九","十","十一","十二"],monthStatus:"选择月份",yearStatus:"选择年份",weekHeader:"周",weekStatus:"年内周次",dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],dayStatus:"设置 DD 为一周起始",dateStatus:"选择 m月 d日, DD",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"请选择日期",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["zh-CN"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-zh-TW.min.js b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-zh-TW.min.js new file mode 100644 index 0000000..4622402 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/i18n/ui.datepicker-zh-TW.min.js @@ -0,0 +1 @@ +jQuery(function(A){A.datepicker.regional["zh-TW"]={clearText:"清除",clearStatus:"清除已選日期",closeText:"關閉",closeStatus:"不改變目前的選擇",prevText:"<上月",prevStatus:"顯示上月",prevBigText:"<<",prevBigStatus:"顯示上一年",nextText:"下月>",nextStatus:"顯示下月",nextBigText:">>",nextBigStatus:"顯示下一年",currentText:"今天",currentStatus:"顯示本月",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一","二","三","四","五","六","七","八","九","十","十一","十二"],monthStatus:"選擇月份",yearStatus:"選擇年份",weekHeader:"周",weekStatus:"年內周次",dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],dayStatus:"設定 DD 為一周起始",dateStatus:"選擇 m月 d日, DD",dateFormat:"yy/mm/dd",firstDay:1,initStatus:"請選擇日期",isRTL:false};A.datepicker.setDefaults(A.datepicker.regional["zh-TW"])}) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/jquery.ui.all.min.js b/sites/all/libraries/jquery.ui/ui/minified/jquery.ui.all.min.js new file mode 100644 index 0000000..b3ddd67 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/jquery.ui.all.min.js @@ -0,0 +1,9 @@ +/* + * jQuery UI 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ (function(C){var I=C.fn.remove,D=C.browser.mozilla&&(parseFloat(C.browser.version)<1.9);C.ui={version:"1.6",plugin:{add:function(K,L,N){var M=C.ui[K].prototype;for(var J in N){M.plugins[J]=M.plugins[J]||[];M.plugins[J].push([L,N[J]])}},call:function(J,L,K){var N=J.plugins[L];if(!N){return }for(var M=0;M').addClass(J).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");C.ui.cssCache[J]=!!((!(/auto|default/).test(K.css("cursor"))||(/^[1-9]/).test(K.css("height"))||(/^[1-9]/).test(K.css("width"))||!(/none/).test(K.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(K.css("backgroundColor"))));try{C("body").get(0).removeChild(K.get(0))}catch(L){}return C.ui.cssCache[J]},hasScroll:function(M,K){if(C(M).css("overflow")=="hidden"){return false}var J=(K&&K=="left")?"scrollLeft":"scrollTop",L=false;if(M[J]>0){return true}M[J]=1;L=(M[J]>0);M[J]=0;return L},isOverAxis:function(K,J,L){return(K>J)&&(K<(J+L))},isOver:function(O,K,N,M,J,L){return C.ui.isOverAxis(O,N,J)&&C.ui.isOverAxis(K,M,L)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,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,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(D){var F=C.attr,E=C.fn.removeAttr,H="http://www.w3.org/2005/07/aaa",A=/^aria-/,B=/^wairole:/;C.attr=function(K,J,L){var M=L!==undefined;return(J=="role"?(M?F.call(this,K,J,"wairole:"+L):(F.apply(this,arguments)||"").replace(B,"")):(A.test(J)?(M?K.setAttributeNS(H,J.replace(A,"aaa:"),L):F.call(this,K,J.replace(A,"aaa:"))):F.apply(this,arguments)))};C.fn.removeAttr=function(J){return(A.test(J)?this.each(function(){this.removeAttributeNS(H,J.replace(A,""))}):E.call(this,J))}}C.fn.extend({remove:function(){C("*",this).add(this).each(function(){C(this).triggerHandler("remove")});return I.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var J;if((C.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){J=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(C.curCSS(this,"position",1))&&(/(auto|scroll)/).test(C.curCSS(this,"overflow",1)+C.curCSS(this,"overflow-y",1)+C.curCSS(this,"overflow-x",1))}).eq(0)}else{J=this.parents().filter(function(){return(/(auto|scroll)/).test(C.curCSS(this,"overflow",1)+C.curCSS(this,"overflow-y",1)+C.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!J.length?C(document):J}});C.extend(C.expr[":"],{data:function(K,L,J){return C.data(K,J[3])},tabbable:function(L,M,K){var N=L.nodeName.toLowerCase();function J(O){return !(C(O).is(":hidden")||C(O).parents(":hidden").length)}return(L.tabIndex>=0&&(("a"==N&&L.href)||(/input|select|textarea|button/.test(N)&&"hidden"!=L.type&&!L.disabled))&&J(L))}});function G(M,N,O,L){function K(Q){var P=C[M][N][Q]||[];return(typeof P=="string"?P.split(/,?\s+/):P)}var J=K("getter");if(L.length==1&&typeof L[0]=="string"){J=J.concat(K("getterSetter"))}return(C.inArray(O,J)!=-1)}C.widget=function(K,J){var L=K.split(".")[0];K=K.split(".")[1];C.fn[K]=function(P){var N=(typeof P=="string"),O=Array.prototype.slice.call(arguments,1);if(N&&P.substring(0,1)=="_"){return this}if(N&&G(L,K,P,O)){var M=C.data(this[0],K);return(M?M[P].apply(M,O):undefined)}return this.each(function(){var Q=C.data(this,K);(!Q&&!N&&C.data(this,K,new C[L][K](this,P)));(Q&&N&&C.isFunction(Q[P])&&Q[P].apply(Q,O))})};C[L]=C[L]||{};C[L][K]=function(O,N){var M=this;this.widgetName=K;this.widgetEventPrefix=C[L][K].eventPrefix||K;this.widgetBaseClass=L+"-"+K;this.options=C.extend({},C.widget.defaults,C[L][K].defaults,C.metadata&&C.metadata.get(O)[K],N);this.element=C(O).bind("setData."+K,function(Q,P,R){return M._setData(P,R)}).bind("getData."+K,function(Q,P){return M._getData(P)}).bind("remove",function(){return M.destroy()});this._init()};C[L][K].prototype=C.extend({},C.widget.prototype,J);C[L][K].getterSetter="option"};C.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(L,M){var K=L,J=this;if(typeof L=="string"){if(M===undefined){return this._getData(L)}K={};K[L]=M}C.each(K,function(N,O){J._setData(N,O)})},_getData:function(J){return this.options[J]},_setData:function(J,K){this.options[J]=K;if(J=="disabled"){this.element[K?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(K,L,M){var J=(K==this.widgetEventPrefix?K:this.widgetEventPrefix+K);L=L||C.event.fix({type:J,target:this.element[0]});return this.element.triggerHandler(J,[L,M],this.options[K])}};C.widget.defaults={disabled:false};C.ui.mouse={_mouseInit:function(){var J=this;this.element.bind("mousedown."+this.widgetName,function(K){return J._mouseDown(K)}).bind("click."+this.widgetName,function(K){if(J._preventClickEvent){J._preventClickEvent=false;return false}});if(C.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(C.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(L){(this._mouseStarted&&this._mouseUp(L));this._mouseDownEvent=L;var K=this,M=(L.which==1),J=(typeof this.options.cancel=="string"?C(L.target).parents().add(L.target).filter(this.options.cancel).length:false);if(!M||J||!this._mouseCapture(L)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){K.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(L)&&this._mouseDelayMet(L)){this._mouseStarted=(this._mouseStart(L)!==false);if(!this._mouseStarted){L.preventDefault();return true}}this._mouseMoveDelegate=function(N){return K._mouseMove(N)};this._mouseUpDelegate=function(N){return K._mouseUp(N)};C(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);if(!C.browser.safari){L.preventDefault()}return true},_mouseMove:function(J){if(C.browser.msie&&!J.button){return this._mouseUp(J)}if(this._mouseStarted){this._mouseDrag(J);return J.preventDefault()}if(this._mouseDistanceMet(J)&&this._mouseDelayMet(J)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,J)!==false);(this._mouseStarted?this._mouseDrag(J):this._mouseUp(J))}return !this._mouseStarted},_mouseUp:function(J){C(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=true;this._mouseStop(J)}return false},_mouseDistanceMet:function(J){return(Math.max(Math.abs(this._mouseDownEvent.pageX-J.pageX),Math.abs(this._mouseDownEvent.pageY-J.pageY))>=this.options.distance)},_mouseDelayMet:function(J){return this.mouseDelayMet},_mouseStart:function(J){},_mouseDrag:function(J){},_mouseStop:function(J){},_mouseCapture:function(J){return true}};C.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(A){A.widget("ui.draggable",A.extend({},A.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.cssNamespace&&this.element.addClass(this.options.cssNamespace+"-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return }this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(B){var C=this.options;if(this.helper||C.disabled||A(B.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(B);if(!this.handle){return false}return true},_mouseStart:function(B){var C=this.options;this.helper=this._createHelper(B);this._cacheHelperProportions();if(A.ui.ddmanager){A.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};A.extend(this.offset,{click:{left:B.pageX-this.offset.left,top:B.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});if(C.cursorAt){this._adjustOffsetFromHelper(C.cursorAt)}this.originalPosition=this._generatePosition(B);if(C.containment){this._setContainment()}this._propagate("start",B);this._cacheHelperProportions();if(A.ui.ddmanager&&!C.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,B)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(B,true);return true},_mouseDrag:function(B,C){this.position=this._generatePosition(B);this.positionAbs=this._convertPositionTo("absolute");if(!C){this.position=this._propagate("drag",B)||this.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(A.ui.ddmanager){A.ui.ddmanager.drag(this,B)}return false},_mouseStop:function(C){var D=false;if(A.ui.ddmanager&&!this.options.dropBehaviour){var D=A.ui.ddmanager.drop(this,C)}if((this.options.revert=="invalid"&&!D)||(this.options.revert=="valid"&&D)||this.options.revert===true||(A.isFunction(this.options.revert)&&this.options.revert.call(this.element,D))){var B=this;A(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){B._propagate("stop",C);B._clear()})}else{this._propagate("stop",C);this._clear()}return false},_getHandle:function(B){var C=!this.options.handle||!A(this.options.handle,this.element).length?true:false;A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==B.target){C=true}});return C},_createHelper:function(C){var D=this.options;var B=A.isFunction(D.helper)?A(D.helper.apply(this.element[0],[C])):(D.helper=="clone"?this.element.clone():this.element);if(!B.parents("body").length){B.appendTo((D.appendTo=="parent"?this.element[0].parentNode:D.appendTo))}if(B[0]!=this.element[0]&&!(/(fixed|absolute)/).test(B.css("position"))){B.css("position","absolute")}return B},_adjustOffsetFromHelper:function(B){if(B.left!=undefined){this.offset.click.left=B.left+this.margins.left}if(B.right!=undefined){this.offset.click.left=this.helperProportions.width-B.right+this.margins.left}if(B.top!=undefined){this.offset.click.top=B.top+this.margins.top}if(B.bottom!=undefined){this.offset.click.top=this.helperProportions.height-B.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var B=this.offsetParent.offset();if((this.offsetParent[0]==document.body&&A.browser.mozilla)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&A.browser.msie)){B={top:0,left:0}}return{top:B.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:B.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var B=this.element.position();return{top:B.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:B.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{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)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var E=this.options;if(E.containment=="parent"){E.containment=this.helper[0].parentNode}if(E.containment=="document"||E.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(E.containment=="document"?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(A(E.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(E.containment)){var C=A(E.containment)[0];var D=A(E.containment).offset();var B=(A(C).css("overflow")!="hidden");this.containment=[D.left+(parseInt(A(C).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.margins.left,D.top+(parseInt(A(C).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.margins.top,D.left+(B?Math.max(C.scrollWidth,C.offsetWidth):C.offsetWidth)-(parseInt(A(C).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left,D.top+(B?Math.max(C.scrollHeight,C.offsetHeight):C.offsetHeight)-(parseInt(A(C).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(D,F){if(!F){F=this.position}var C=D=="absolute"?1:-1;var B=this[(this.cssPosition=="absolute"?"offset":"scroll")+"Parent"],E=(/(html|body)/i).test(B[0].tagName);return{top:(F.top+this.offset.relative.top*C+this.offset.parent.top*C+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(E?0:B.scrollTop()))*C+this.margins.top*C),left:(F.left+this.offset.relative.left*C+this.offset.parent.left*C+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():(E?0:B.scrollLeft()))*C+this.margins.left*C)}},_generatePosition:function(D){var G=this.options,C=this[(this.cssPosition=="absolute"?"offset":"scroll")+"Parent"],H=(/(html|body)/i).test(C[0].tagName);var B={top:(D.pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(H?0:C.scrollTop()))),left:(D.pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():H?0:C.scrollLeft()))};if(!this.originalPosition){return B}if(this.containment){if(B.leftthis.containment[2]){B.left=this.containment[2]}if(B.top>this.containment[3]){B.top=this.containment[3]}}if(G.grid){var F=this.originalPosition.top+Math.round((B.top-this.originalPosition.top)/G.grid[1])*G.grid[1];B.top=this.containment?(!(Fthis.containment[3])?F:(!(Fthis.containment[2])?E:(!(E').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body")})},stop:function(B,C){A("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});A.ui.plugin.add("draggable","opacity",{start:function(C,D){var B=A(D.helper);if(B.css("opacity")){D.options._opacity=B.css("opacity")}B.css("opacity",D.options.opacity)},stop:function(B,C){if(C.options._opacity){A(C.helper).css("opacity",C.options._opacity)}}});A.ui.plugin.add("draggable","scroll",{start:function(C,D){var E=D.options;var B=A(this).data("draggable");if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML"){B.overflowOffset=B.scrollParent.offset()}},drag:function(D,E){var F=E.options,B=false;var C=A(this).data("draggable");if(C.scrollParent[0]!=document&&C.scrollParent[0].tagName!="HTML"){if((C.overflowOffset.top+C.scrollParent[0].offsetHeight)-D.pageY=0;N--){var L=E.snapElements[N].left,J=L+E.snapElements[N].width,I=E.snapElements[N].top,S=I+E.snapElements[N].height;if(!((L-Q=N&&L<=J)||(K>=N&&K<=J)||(LJ))&&((D>=F&&D<=B)||(C>=F&&C<=B)||(DB));break;default:return false;break}};A.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(E,G){var B=A.ui.ddmanager.droppables[E.options.scope];var F=G?G.type:null;var H=(E.currentItem||E.element).find(":data(droppable)").andSelf();droppablesLoop:for(var D=0;D').css({position:C.css("position"),width:C.outerWidth(),height:C.outerHeight(),top:C.css("top"),left:C.css("left")}));var K=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:K.css("marginLeft"),marginTop:K.css("marginTop"),marginRight:K.css("marginRight"),marginBottom:K.css("marginBottom")});K.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(B.browser.safari&&O.preventDefault){K.css("resize","none")}O.proportionallyResize=K.css({position:"static",zoom:1,display:"block"});this.element.css({margin:K.css("margin")});this._proportionallyResize()}if(!O.handles){O.handles=!B(".ui-resizable-handle",this.element).length?"e,s,se":{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"}}if(O.handles.constructor==String){O.zIndex=O.zIndex||1000;if(O.handles=="all"){O.handles="n,e,s,w,se,sw,ne,nw"}var P=O.handles.split(",");O.handles={};var H={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var S=0;S'].join("")).css(L);O.handles[T]=".ui-resizable-"+T;this.element.append(F.css(D?U:{}).css(O.knobHandles?E:{}).addClass(O.knobHandles?"ui-resizable-knob-handle":"").addClass(O.knobHandles))}if(O.knobHandles){this.element.addClass("ui-resizable-knob").css(!B.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(Z){Z=Z||this.element;for(var W in O.handles){if(O.handles[W].constructor==String){O.handles[W]=B(O.handles[W],this.element).show()}if(O.transparent){O.handles[W].css({opacity:0})}if(this.element.is(".ui-wrapper")&&O._nodeName.match(/textarea|input|select|button/i)){var X=B(O.handles[W],this.element),Y=0;Y=/sw|ne|nw|se|n|s/.test(W)?X.outerHeight():X.outerWidth();var V=["padding",/ne|nw|n/.test(W)?"Top":/se|sw|s/.test(W)?"Bottom":/^e$/.test(W)?"Right":"Left"].join("");if(!O.transparent){Z.css(V,Y)}this._proportionallyResize()}if(!B(O.handles[W]).length){continue}}};this._renderAxis(this.element);O._handles=B(".ui-resizable-handle",N.element);if(O.disableSelection){O._handles.disableSelection()}O._handles.mouseover(function(){if(!O.resizing){if(this.className){var V=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}N.axis=O.axis=V&&V[1]?V[1]:"se"}});if(O.autoHide){O._handles.hide();B(N.element).addClass("ui-resizable-autohide").hover(function(){B(this).removeClass("ui-resizable-autohide");O._handles.show()},function(){if(!O.resizing){B(this).addClass("ui-resizable-autohide");O._handles.hide()}})}this._mouseInit()},destroy:function(){var E=this.element,D=E.children(".ui-resizable").get(0);this._mouseDestroy();var C=function(F){B(F).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};C(E);if(E.is(".ui-wrapper")&&D){E.parent().append(B(D).css({position:E.css("position"),width:E.outerWidth(),height:E.outerHeight(),top:E.css("top"),left:E.css("left")})).end().remove();C(D)}},_mouseCapture:function(D){if(this.options.disabled){return false}var E=false;for(var C in this.options.handles){if(B(this.options.handles[C])[0]==D.target){E=true}}if(!E){return false}return true},_mouseStart:function(D){var E=this.options,C=this.element.position(),F=this.element,I=B.browser.msie&&B.browser.version<7;E.resizing=true;E.documentScroll={top:B(document).scrollTop(),left:B(document).scrollLeft()};if(F.is(".ui-draggable")||(/absolute/).test(F.css("position"))){var K=B.browser.msie&&!E.containment&&(/absolute/).test(F.css("position"))&&!(/relative/).test(F.parent().css("position"));var L=K?this.documentScroll.top:0,H=K?this.documentScroll.left:0;F.css({position:"absolute",top:(C.top+L),left:(C.left+H)})}if(B.browser.opera&&(/relative/).test(F.css("position"))){F.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var M=A(this.helper.css("left")),G=A(this.helper.css("top"));if(E.containment){M+=B(E.containment).scrollLeft()||0;G+=B(E.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:M,top:G};this.size=E.helper||I?{width:F.outerWidth(),height:F.outerHeight()}:{width:F.width(),height:F.height()};this.originalSize=E.helper||I?{width:F.outerWidth(),height:F.outerHeight()}:{width:F.width(),height:F.height()};this.originalPosition={left:M,top:G};this.sizeDiff={width:F.outerWidth()-F.width(),height:F.outerHeight()-F.height()};this.originalMousePosition={left:D.pageX,top:D.pageY};E.aspectRatio=(typeof E.aspectRatio=="number")?E.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);if(E.preserveCursor){var J=B(".ui-resizable-"+this.axis).css("cursor");B("body").css("cursor",J=="auto"?this.axis+"-resize":J)}this._propagate("start",D);return true},_mouseDrag:function(C){var F=this.helper,E=this.options,K={},N=this,H=this.originalMousePosition,L=this.axis;var O=(C.pageX-H.left)||0,M=(C.pageY-H.top)||0;var G=this._change[L];if(!G){return false}var J=G.apply(this,[C,O,M]),I=B.browser.msie&&B.browser.version<7,D=this.sizeDiff;if(E._aspectRatio||C.shiftKey){J=this._updateRatio(J,C)}J=this._respectSize(J,C);this._propagate("resize",C);F.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!E.helper&&E.proportionallyResize){this._proportionallyResize()}this._updateCache(J);this.element.triggerHandler("resize",[C,this.ui()],this.options["resize"]);return false},_mouseStop:function(F){this.options.resizing=false;var G=this.options,K=this;if(G.helper){var E=G.proportionallyResize,C=E&&(/textarea/i).test(E.get(0).nodeName),D=C&&B.ui.hasScroll(E.get(0),"left")?0:K.sizeDiff.height,I=C?0:K.sizeDiff.width;var L={width:(K.size.width-I),height:(K.size.height-D)},H=(parseInt(K.element.css("left"),10)+(K.position.left-K.originalPosition.left))||null,J=(parseInt(K.element.css("top"),10)+(K.position.top-K.originalPosition.top))||null;if(!G.animate){this.element.css(B.extend(L,{top:J,left:H}))}if(G.helper&&!G.animate){this._proportionallyResize()}}if(G.preserveCursor){B("body").css("cursor","auto")}this._propagate("stop",F);if(G.helper){this.helper.remove()}return false},_updateCache:function(C){var D=this.options;this.offset=this.helper.offset();if(C.left){this.position.left=C.left}if(C.top){this.position.top=C.top}if(C.height){this.size.height=C.height}if(C.width){this.size.width=C.width}},_updateRatio:function(F,E){var G=this.options,H=this.position,D=this.size,C=this.axis;if(F.height){F.width=(D.height*G.aspectRatio)}else{if(F.width){F.height=(D.width/G.aspectRatio)}}if(C=="sw"){F.left=H.left+(D.width-F.width);F.top=null}if(C=="nw"){F.top=H.top+(D.height-F.height);F.left=H.left+(D.width-F.width)}return F},_respectSize:function(J,E){var H=this.helper,G=this.options,O=G._aspectRatio||E.shiftKey,N=this.axis,Q=J.width&&G.maxWidth&&G.maxWidthJ.width,P=J.height&&G.minHeight&&G.minHeight>J.height;if(F){J.width=G.minWidth}if(P){J.height=G.minHeight}if(Q){J.width=G.maxWidth}if(K){J.height=G.maxHeight}var D=this.originalPosition.left+this.originalSize.width,M=this.position.top+this.size.height;var I=/sw|nw|w/.test(N),C=/nw|ne|n/.test(N);if(F&&I){J.left=D-G.minWidth}if(Q&&I){J.left=D-G.maxWidth}if(P&&C){J.top=M-G.minHeight}if(K&&C){J.top=M-G.maxHeight}var L=!J.width&&!J.height;if(L&&!J.left&&J.top){J.top=null}else{if(L&&!J.top&&J.left){J.left=null}}return J},_proportionallyResize:function(){var G=this.options;if(!G.proportionallyResize){return }var E=G.proportionallyResize,D=this.helper||this.element;if(!G.borderDif){var C=[E.css("borderTopWidth"),E.css("borderRightWidth"),E.css("borderBottomWidth"),E.css("borderLeftWidth")],F=[E.css("paddingTop"),E.css("paddingRight"),E.css("paddingBottom"),E.css("paddingLeft")];G.borderDif=B.map(C,function(H,J){var I=parseInt(H,10)||0,K=parseInt(F[J],10)||0;return I+K})}E.css({height:(D.height()-G.borderDif[0]-G.borderDif[2])+"px",width:(D.width()-G.borderDif[1]-G.borderDif[3])+"px"})},_renderProxy:function(){var D=this.element,G=this.options;this.elementOffset=D.offset();if(G.helper){this.helper=this.helper||B('
          ');var C=B.browser.msie&&B.browser.version<7,E=(C?1:0),F=(C?2:-1);this.helper.addClass(G.helper).css({width:D.outerWidth()+F,height:D.outerHeight()+F,position:"absolute",left:this.elementOffset.left-E+"px",top:this.elementOffset.top-E+"px",zIndex:++G.zIndex});this.helper.appendTo("body");if(G.disableSelection){this.helper.disableSelection()}}else{this.helper=D}},_change:{e:function(E,D,C){return{width:this.originalSize.width+D}},w:function(F,D,C){var H=this.options,E=this.originalSize,G=this.originalPosition;return{left:G.left+D,width:E.width-D}},n:function(F,D,C){var H=this.options,E=this.originalSize,G=this.originalPosition;return{top:G.top+C,height:E.height-C}},s:function(E,D,C){return{height:this.originalSize.height+C}},se:function(E,D,C){return B.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[E,D,C]))},sw:function(E,D,C){return B.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[E,D,C]))},ne:function(E,D,C){return B.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[E,D,C]))},nw:function(E,D,C){return B.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[E,D,C]))}},_propagate:function(D,C){B.ui.plugin.call(this,D,[C,this.ui()]);if(D!="resize"){this.element.triggerHandler(["resize",D].join(""),[C,this.ui()],this.options[D])}},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,options:this.options,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));B.extend(B.ui.resizable,{version:"1.6",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input",containment:false,disableSelection:true,distance:1,delay:0,ghost:false,grid:false,knobHandles:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,preserveCursor:true,preventDefault:true,proportionallyResize:false,transparent:false}});B.ui.plugin.add("resizable","alsoResize",{start:function(D,E){var G=E.options,C=B(this).data("resizable"),F=function(H){B(H).each(function(){B(this).data("resizable-alsoresize",{width:parseInt(B(this).width(),10),height:parseInt(B(this).height(),10),left:parseInt(B(this).css("left"),10),top:parseInt(B(this).css("top"),10)})})};if(typeof (G.alsoResize)=="object"&&!G.alsoResize.parentNode){if(G.alsoResize.length){G.alsoResize=G.alsoResize[0];F(G.alsoResize)}else{B.each(G.alsoResize,function(H,I){F(H)})}}else{F(G.alsoResize)}},resize:function(E,G){var H=G.options,D=B(this).data("resizable"),F=D.originalSize,J=D.originalPosition;var I={height:(D.size.height-F.height)||0,width:(D.size.width-F.width)||0,top:(D.position.top-J.top)||0,left:(D.position.left-J.left)||0},C=function(K,L){B(K).each(function(){var O=B(this).data("resizable-alsoresize"),N={},M=L&&L.length?L:["width","height","top","left"];B.each(M||["width","height","top","left"],function(P,R){var Q=(O[R]||0)+(I[R]||0);if(Q&&Q>=0){N[R]=Q||null}});B(this).css(N)})};if(typeof (H.alsoResize)=="object"&&!H.alsoResize.parentNode){B.each(H.alsoResize,function(K,L){C(K,L)})}else{C(H.alsoResize)}},stop:function(C,D){B(this).removeData("resizable-alsoresize-start")}});B.ui.plugin.add("resizable","animate",{stop:function(G,L){var H=L.options,M=B(this).data("resizable");var F=H.proportionallyResize,C=F&&(/textarea/i).test(F.get(0).nodeName),D=C&&B.ui.hasScroll(F.get(0),"left")?0:M.sizeDiff.height,J=C?0:M.sizeDiff.width;var E={width:(M.size.width-J),height:(M.size.height-D)},I=(parseInt(M.element.css("left"),10)+(M.position.left-M.originalPosition.left))||null,K=(parseInt(M.element.css("top"),10)+(M.position.top-M.originalPosition.top))||null;M.element.animate(B.extend(E,K&&I?{top:K,left:I}:{}),{duration:H.animateDuration,easing:H.animateEasing,step:function(){var N={width:parseInt(M.element.css("width"),10),height:parseInt(M.element.css("height"),10),top:parseInt(M.element.css("top"),10),left:parseInt(M.element.css("left"),10)};if(F){F.css({width:N.width,height:N.height})}M._updateCache(N);M._propagate("animate",G)}})}});B.ui.plugin.add("resizable","containment",{start:function(D,N){var H=N.options,P=B(this).data("resizable"),J=P.element;var E=H.containment,I=(E instanceof B)?E.get(0):(/parent/.test(E))?J.parent().get(0):E;if(!I){return }P.containerElement=B(I);if(/document/.test(E)||E==document){P.containerOffset={left:0,top:0};P.containerPosition={left:0,top:0};P.parentData={element:B(document),left:0,top:0,width:B(document).width(),height:B(document).height()||document.body.parentNode.scrollHeight}}else{var L=B(I),G=[];B(["Top","Right","Left","Bottom"]).each(function(R,Q){G[R]=A(L.css("padding"+Q))});P.containerOffset=L.offset();P.containerPosition=L.position();P.containerSize={height:(L.innerHeight()-G[3]),width:(L.innerWidth()-G[1])};var M=P.containerOffset,C=P.containerSize.height,K=P.containerSize.width,F=(B.ui.hasScroll(I,"left")?I.scrollWidth:K),O=(B.ui.hasScroll(I)?I.scrollHeight:C);P.parentData={element:I,left:M.left,top:M.top,width:F,height:O}}},resize:function(E,N){var G=N.options,Q=B(this).data("resizable"),D=Q.containerSize,M=Q.containerOffset,K=Q.size,L=Q.position,O=G._aspectRatio||E.shiftKey,C={top:0,left:0},F=Q.containerElement;if(F[0]!=document&&(/static/).test(F.css("position"))){C=M}if(L.left<(G.helper?M.left:0)){Q.size.width=Q.size.width+(G.helper?(Q.position.left-M.left):(Q.position.left-C.left));if(O){Q.size.height=Q.size.width/G.aspectRatio}Q.position.left=G.helper?M.left:0}if(L.top<(G.helper?M.top:0)){Q.size.height=Q.size.height+(G.helper?(Q.position.top-M.top):Q.position.top);if(O){Q.size.width=Q.size.height*G.aspectRatio}Q.position.top=G.helper?M.top:0}Q.offset.left=Q.parentData.left+Q.position.left;Q.offset.top=Q.parentData.top+Q.position.top;var J=Math.abs((G.helper?Q.offset.left-C.left:(Q.offset.left-C.left))+Q.sizeDiff.width),P=Math.abs((G.helper?Q.offset.top-C.top:(Q.offset.top-M.top))+Q.sizeDiff.height);var I=Q.containerElement.get(0)==Q.element.parent().get(0),H=/relative|absolute/.test(Q.containerElement.css("position"));if(I&&H){J-=Q.parentData.left}if(J+Q.size.width>=Q.parentData.width){Q.size.width=Q.parentData.width-J;if(O){Q.size.height=Q.size.width/G.aspectRatio}}if(P+Q.size.height>=Q.parentData.height){Q.size.height=Q.parentData.height-P;if(O){Q.size.width=Q.size.height*G.aspectRatio}}},stop:function(D,K){var E=K.options,M=B(this).data("resizable"),I=M.position,J=M.containerOffset,C=M.containerPosition,F=M.containerElement;var G=B(M.helper),N=G.offset(),L=G.outerWidth()-M.sizeDiff.width,H=G.outerHeight()-M.sizeDiff.height;if(E.helper&&!E.animate&&(/relative/).test(F.css("position"))){B(this).css({left:N.left-C.left-J.left,width:L,height:H})}if(E.helper&&!E.animate&&(/static/).test(F.css("position"))){B(this).css({left:N.left-C.left-J.left,width:L,height:H})}}});B.ui.plugin.add("resizable","ghost",{start:function(E,F){var G=F.options,C=B(this).data("resizable"),H=G.proportionallyResize,D=C.size;if(!H){C.ghost=C.element.clone()}else{C.ghost=H.clone()}C.ghost.css({opacity:0.25,display:"block",position:"relative",height:D.height,width:D.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof G.ghost=="string"?G.ghost:"");C.ghost.appendTo(C.helper)},resize:function(D,E){var F=E.options,C=B(this).data("resizable"),G=F.proportionallyResize;if(C.ghost){C.ghost.css({position:"relative",height:C.size.height,width:C.size.width})}},stop:function(D,E){var F=E.options,C=B(this).data("resizable"),G=F.proportionallyResize;if(C.ghost&&C.helper){C.helper.get(0).removeChild(C.ghost.get(0))}}});B.ui.plugin.add("resizable","grid",{resize:function(C,K){var F=K.options,M=B(this).data("resizable"),I=M.size,G=M.originalSize,H=M.originalPosition,L=M.axis,J=F._aspectRatio||C.shiftKey;F.grid=typeof F.grid=="number"?[F.grid,F.grid]:F.grid;var E=Math.round((I.width-G.width)/(F.grid[0]||1))*(F.grid[0]||1),D=Math.round((I.height-G.height)/(F.grid[1]||1))*(F.grid[1]||1);if(/^(se|s|e)$/.test(L)){M.size.width=G.width+E;M.size.height=G.height+D}else{if(/^(ne)$/.test(L)){M.size.width=G.width+E;M.size.height=G.height+D;M.position.top=H.top-D}else{if(/^(sw)$/.test(L)){M.size.width=G.width+E;M.size.height=G.height+D;M.position.left=H.left-E}else{M.size.width=G.width+E;M.size.height=G.height+D;M.position.top=H.top-D;M.position.left=H.left-E}}}}});var A=function(C){return parseInt(C,10)||0}})(jQuery);(function(A){A.widget("ui.selectable",A.extend({},A.ui.mouse,{_init:function(){var B=this;this.element.addClass("ui-selectable");this.dragged=false;var C;this.refresh=function(){C=A(B.options.filter,B.element[0]);C.each(function(){var D=A(this);var E=D.offset();A.data(this,"selectable-item",{element:this,$element:D,left:E.left,top:E.top,right:E.left+D.width(),bottom:E.top+D.height(),startselected:false,selected:D.hasClass("ui-selected"),selecting:D.hasClass("ui-selecting"),unselecting:D.hasClass("ui-unselecting")})})};this.refresh();this.selectees=C.addClass("ui-selectee");this._mouseInit();this.helper=A(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(E){var C=this;this.opos=[E.pageX,E.pageY];if(this.options.disabled){return }var D=this.options;this.selectees=A(D.filter,this.element[0]);this.element.triggerHandler("selectablestart",[E,{"selectable":this.element[0],"options":D}],D.start);A("body").append(this.helper);this.helper.css({"z-index":100,"position":"absolute","left":E.clientX,"top":E.clientY,"width":0,"height":0});if(D.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var F=A.data(this,"selectable-item");F.startselected=true;if(!E.metaKey){F.$element.removeClass("ui-selected");F.selected=false;F.$element.addClass("ui-unselecting");F.unselecting=true;C.element.triggerHandler("selectableunselecting",[E,{selectable:C.element[0],unselecting:F.element,options:D}],D.unselecting)}});var B=false;A(E.target).parents().andSelf().each(function(){if(A.data(this,"selectable-item")){B=true}});return this.options.keyboard?!B:true},_mouseDrag:function(I){var C=this;this.dragged=true;if(this.options.disabled){return }var E=this.options;var D=this.opos[0],H=this.opos[1],B=I.pageX,G=I.pageY;if(D>B){var F=B;B=D;D=F}if(H>G){var F=G;G=H;H=F}this.helper.css({left:D,top:H,width:B-D,height:G-H});this.selectees.each(function(){var J=A.data(this,"selectable-item");if(!J||J.element==C.element[0]){return }var K=false;if(E.tolerance=="touch"){K=(!(J.left>B||J.rightG||J.bottomD&&J.rightH&&J.bottom=0;B--){this.items[B].item.removeData("sortable-item")}},_mouseCapture:function(E,F){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(E);var D=null,C=this,B=A(E.target).parents().each(function(){if(A.data(this,"sortable-item")==C){D=A(this);return false}});if(A.data(E.target,"sortable-item")==C){D=A(E.target)}if(!D){return false}if(this.options.handle&&!F){var G=false;A(this.options.handle,D).find("*").andSelf().each(function(){if(this==E.target){G=true}});if(!G){return false}}this.currentItem=D;this._removeCurrentsFromItems();return true},_mouseStart:function(D,E,B){var F=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(D);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};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");A.extend(this.offset,{click:{left:D.pageX-this.offset.left,top:D.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});if(F.cursorAt){this._adjustOffsetFromHelper(F.cursorAt)}this.originalPosition=this._generatePosition(D);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(F.containment){this._setContainment()}this._propagate("start",D);if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!B){for(var C=this.containers.length-1;C>=0;C--){this.containers[C]._propagate("activate",D,this)}}if(A.ui.ddmanager){A.ui.ddmanager.current=this}if(A.ui.ddmanager&&!F.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,D)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(D);return true},_mouseDrag:function(E){this.position=this._generatePosition(E);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}A.ui.plugin.call(this,"sort",[E,this._ui()]);this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var C=this.items.length-1;C>=0;C--){var D=this.items[C],B=D.item[0],F=this._intersectsWithPointer(D);if(!F){continue}if(B!=this.currentItem[0]&&this.placeholder[F==1?"next":"prev"]()[0]!=B&&!A.ui.contains(this.placeholder[0],B)&&(this.options.type=="semi-dynamic"?!A.ui.contains(this.element[0],B):true)){this.direction=F==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(D)){this.options.sortIndicator.call(this,E,D)}else{break}this._propagate("change",E);break}}this._contactContainers(E);if(A.ui.ddmanager){A.ui.ddmanager.drag(this,E)}this._trigger("sort",E,this._ui());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(C,D){if(!C){return }if(A.ui.ddmanager&&!this.options.dropBehaviour){A.ui.ddmanager.drop(this,C)}if(this.options.revert){var B=this;var E=B.placeholder.offset();B.reverting=true;A(this.helper).animate({left:E.left-this.offset.parent.left-B.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:E.top-this.offset.parent.top-B.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){B._clear(C)})}else{this._clear(C,D)}return false},cancel:function(){if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var B=this.containers.length-1;B>=0;B--){this.containers[B]._propagate("deactivate",null,this);if(this.containers[B].containerCache.over){this.containers[B]._propagate("out",null,this);this.containers[B].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}A.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){A(this.domPosition.prev).after(this.currentItem)}else{A(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(D){var B=this._getItemsAsjQuery(D&&D.connected);var C=[];D=D||{};A(B).each(function(){var E=(A(D.item||this).attr(D.attribute||"id")||"").match(D.expression||(/(.+)[-=_](.+)/));if(E){C.push((D.key||E[1]+"[]")+"="+(D.key&&D.expression?E[1]:E[2]))}});return C.join("&")},toArray:function(D){var B=this._getItemsAsjQuery(D&&D.connected);var C=[];D=D||{};B.each(function(){C.push(A(D.item||this).attr(D.attribute||"id")||"")});return C},_intersectsWith:function(K){var D=this.positionAbs.left,C=D+this.helperProportions.width,J=this.positionAbs.top,I=J+this.helperProportions.height;var E=K.left,B=E+K.width,L=K.top,H=L+K.height;var M=this.offset.click.top,G=this.offset.click.left;var F=(J+M)>L&&(J+M)E&&(D+G)K[this.floating?"width":"height"])){return F}else{return(E0?"down":"up")},_getDragHorizontalDirection:function(){var B=this.positionAbs.left-this.lastPositionAbs.left;return B!=0&&(B>0?"right":"left")},refresh:function(B){this._refreshItems(B);this.refreshPositions()},_getItemsAsjQuery:function(G){var C=this;var B=[];var E=[];if(this.options.connectWith&&G){for(var F=this.options.connectWith.length-1;F>=0;F--){var I=A(this.options.connectWith[F]);for(var D=I.length-1;D>=0;D--){var H=A.data(I[D],"sortable");if(H&&H!=this&&!H.options.disabled){E.push([A.isFunction(H.options.items)?H.options.items.call(H.element):A(H.options.items,H.element).not(".ui-sortable-helper"),H])}}}}E.push([A.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):A(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var F=E.length-1;F>=0;F--){E[F][0].each(function(){B.push(this)})}return A(B)},_removeCurrentsFromItems:function(){var D=this.currentItem.find(":data(sortable-item)");for(var C=0;C=0;E--){var J=A(this.options.connectWith[E]);for(var D=J.length-1;D>=0;D--){var G=A.data(J[D],"sortable");if(G&&G!=this&&!G.options.disabled){F.push([A.isFunction(G.options.items)?G.options.items.call(G.element[0],B,{item:this.currentItem}):A(G.options.items,G.element),G]);this.containers.push(G)}}}}for(var E=F.length-1;E>=0;E--){var I=F[E][1];var C=F[E][0];for(var D=0,K=C.length;D=0;D--){var E=this.items[D];if(E.instance!=this.currentContainer&&this.currentContainer&&E.item[0]!=this.currentItem[0]){continue}var C=this.options.toleranceElement?A(this.options.toleranceElement,E.item):E.item;if(!B){if(this.options.accurateIntersection){E.width=C.outerWidth();E.height=C.outerHeight()}else{E.width=C[0].offsetWidth;E.height=C[0].offsetHeight}}var F=C.offset();E.left=F.left;E.top=F.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var D=this.containers.length-1;D>=0;D--){var F=this.containers[D].element.offset();this.containers[D].containerCache.left=F.left;this.containers[D].containerCache.top=F.top;this.containers[D].containerCache.width=this.containers[D].element.outerWidth();this.containers[D].containerCache.height=this.containers[D].element.outerHeight()}}},_createPlaceholder:function(D){var B=D||this,E=B.options;if(!E.placeholder||E.placeholder.constructor==String){var C=E.placeholder;E.placeholder={element:function(){var F=A(document.createElement(B.currentItem[0].nodeName)).addClass(C||B.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!C){F.style.visibility="hidden";document.body.appendChild(F);F.innerHTML=B.currentItem[0].innerHTML.replace(/name\=\"[^\"\']+\"/g,"").replace(/jQuery[0-9]+\=\"[^\"\']+\"/g,"");document.body.removeChild(F)}return F},update:function(F,G){if(C&&!E.forcePlaceholderSize){return }if(!G.height()){G.height(B.currentItem.innerHeight()-parseInt(B.currentItem.css("paddingTop")||0,10)-parseInt(B.currentItem.css("paddingBottom")||0,10))}if(!G.width()){G.width(B.currentItem.innerWidth()-parseInt(B.currentItem.css("paddingLeft")||0,10)-parseInt(B.currentItem.css("paddingRight")||0,10))}}}}B.placeholder=A(E.placeholder.element.call(B.element,B.currentItem));B.currentItem.after(B.placeholder);E.placeholder.update(B,B.placeholder)},_contactContainers:function(D){for(var C=this.containers.length-1;C>=0;C--){if(this._intersectsWith(this.containers[C].containerCache)){if(!this.containers[C].containerCache.over){if(this.currentContainer!=this.containers[C]){var H=10000;var G=null;var E=this.positionAbs[this.containers[C].floating?"left":"top"];for(var B=this.items.length-1;B>=0;B--){if(!A.ui.contains(this.containers[C].element[0],this.items[B].item[0])){continue}var F=this.items[B][this.containers[C].floating?"left":"top"];if(Math.abs(F-E)this.containment[2]){B.left=this.containment[2]-this.helperProportions.width}if(B.top+this.helperProportions.height>this.containment[3]){B.top=this.containment[3]-this.helperProportions.height}}if(G.grid){var F=this.originalPosition.top+Math.round((B.top-this.originalPosition.top)/G.grid[1])*G.grid[1];B.top=this.containment?(!(Fthis.containment[3])?F:(!(Fthis.containment[2])?E:(!(E=0;B--){if(A.ui.contains(this.containers[B].element[0],this.currentItem[0])){this.containers[B]._propagate("update",C,this,D);this.containers[B]._propagate("receive",C,this,D)}}}for(var B=this.containers.length-1;B>=0;B--){this.containers[B]._propagate("deactivate",C,this,D);if(this.containers[B].containerCache.over){this.containers[B]._propagate("out",C,this);this.containers[B].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval){this._propagate("beforeStop",C,null,D);this._propagate("stop",C,null,D);return false}this._propagate("beforeStop",C,null,D);this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.options.helper!="original"){this.helper.remove()}this.helper=null;this._propagate("stop",C,null,D);return true},_propagate:function(F,B,C,D){A.ui.plugin.call(this,F,[B,this._ui(C)]);var E=!D?this.element.triggerHandler(F=="sort"?F:"sort"+F,[B,this._ui(C)],this.options[F]):true;if(E===false){this.cancel()}},plugins:{},_ui:function(C){var B=C||this;return{helper:B.helper,placeholder:B.placeholder||A([]),position:B.position,absolutePosition:B.positionAbs,item:B.currentItem,sender:C?C.element:null}}}));A.extend(A.ui.sortable,{getter:"serialize toArray",version:"1.6",defaults:{accurateIntersection:true,appendTo:"parent",cancel:":input",delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,helper:"original",items:"> *",scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,sortIndicator:A.ui.sortable.prototype._rearrange,tolerance:"default",zIndex:1000}});A.ui.plugin.add("sortable","cursor",{start:function(D,E){var C=A("body"),B=A(this).data("sortable");if(C.css("cursor")){B.options._cursor=C.css("cursor")}C.css("cursor",B.options.cursor)},beforeStop:function(C,D){var B=A(this).data("sortable");if(B.options._cursor){A("body").css("cursor",B.options._cursor)}}});A.ui.plugin.add("sortable","opacity",{start:function(D,E){var C=E.helper,B=A(this).data("sortable");if(C.css("opacity")){B.options._opacity=C.css("opacity")}C.css("opacity",B.options.opacity)},beforeStop:function(C,D){var B=A(this).data("sortable");if(B.options._opacity){A(D.helper).css("opacity",B.options._opacity)}}});A.ui.plugin.add("sortable","scroll",{start:function(C,D){var B=A(this).data("sortable"),E=B.options;if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML"){B.overflowOffset=B.scrollParent.offset()}},sort:function(D,E){var C=A(this).data("sortable"),F=C.options,B=false;if(C.scrollParent[0]!=document&&C.scrollParent[0].tagName!="HTML"){if((C.overflowOffset.top+C.scrollParent[0].offsetHeight)-D.pageY');var I=F.parent();if(F.css("position")=="static"){I.css({position:"relative"});F.css({position:"relative"})}else{var H=F.css("top");if(isNaN(parseInt(H))){H="auto"}var G=F.css("left");if(isNaN(parseInt(G))){G="auto"}I.css({position:F.css("position"),top:H,left:G,zIndex:F.css("z-index")}).show();F.css({position:"relative",top:0,left:0})}I.css(E);return I},removeWrapper:function(E){if(E.parent().attr("id")=="fxWrapper"){return E.parent().replaceWith(E)}return E},setTransition:function(F,G,E,H){H=H||{};C.each(G,function(J,I){unit=F.cssUnit(I);if(unit[0]>0){H[I]=unit[0]*E+unit[1]}});return H},animateClass:function(G,H,J,I){var E=(typeof J=="function"?J:(I?I:null));var F=(typeof J=="object"?J:null);return this.each(function(){var O={};var M=C(this);var N=M.attr("style")||"";if(typeof N=="object"){N=N["cssText"]}if(G.toggle){M.hasClass(G.toggle)?G.remove=G.toggle:G.add=G.toggle}var K=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.addClass(G.add)}if(G.remove){M.removeClass(G.remove)}var L=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.removeClass(G.add)}if(G.remove){M.addClass(G.remove)}for(var P in L){if(typeof L[P]!="function"&&L[P]&&P.indexOf("Moz")==-1&&P.indexOf("length")==-1&&L[P]!=K[P]&&(P.match(/color/i)||(!P.match(/color/i)&&!isNaN(parseInt(L[P],10))))&&(K.position!="static"||(K.position=="static"&&!P.match(/left|top|bottom|right/)))){O[P]=L[P]}}M.animate(O,H,F,function(){if(typeof C(this).attr("style")=="object"){C(this).attr("style")["cssText"]="";C(this).attr("style")["cssText"]=N}else{C(this).attr("style",N)}if(G.add){C(this).addClass(G.add)}if(G.remove){C(this).removeClass(G.remove)}if(E){E.apply(this,arguments)}})})}});C.fn.extend({_show:C.fn.show,_hide:C.fn.hide,__toggle:C.fn.toggle,_addClass:C.fn.addClass,_removeClass:C.fn.removeClass,_toggleClass:C.fn.toggleClass,effect:function(E,G,F,H){return C.effects[E]?C.effects[E].call(this,{method:E,options:G||{},duration:F,callback:H}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="show";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="hide";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="toggle";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},addClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{add:F},E,H,G]):this._addClass(F)},removeClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{remove:F},E,H,G]):this._removeClass(F)},toggleClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{toggle:F},E,H,G]):this._toggleClass(F)},morph:function(E,G,F,I,H){return C.effects.animateClass.apply(this,[{add:G,remove:E},F,I,H])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(E){var F=this.css(E),G=[];C.each(["em","px","%","pt"],function(H,I){if(F.indexOf(I)>0){G=[parseFloat(F),I]}});return G}});C.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(F,E){C.fx.step[E]=function(G){if(G.state==0){G.start=D(G.elem,E);G.end=B(G.end)}G.elem.style[E]="rgb("+[Math.max(Math.min(parseInt((G.pos*(G.end[0]-G.start[0]))+G.start[0]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[1]-G.start[1]))+G.start[1]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[2]-G.start[2]))+G.start[2]),255),0)].join(",")+")"}});function B(F){var E;if(F&&F.constructor==Array&&F.length==3){return F}if(E=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(F)){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}if(E=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(F)){return[parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55]}if(E=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}if(E=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}if(E=/rgba\(0, 0, 0, 0\)/.exec(F)){return A["transparent"]}return A[C.trim(F).toLowerCase()]}function D(G,E){var F;do{F=C.curCSS(G,E);if(F!=""&&F!="transparent"||C.nodeName(G,"body")){break}E="backgroundColor"}while(G=G.parentNode);return B(F)}var A={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};C.easing.jswing=C.easing.swing;C.extend(C.easing,{def:"easeOutQuad",swing:function(F,G,E,I,H){return C.easing[C.easing.def](F,G,E,I,H)},easeInQuad:function(F,G,E,I,H){return I*(G/=H)*G+E},easeOutQuad:function(F,G,E,I,H){return -I*(G/=H)*(G-2)+E},easeInOutQuad:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G+E}return -I/2*((--G)*(G-2)-1)+E},easeInCubic:function(F,G,E,I,H){return I*(G/=H)*G*G+E},easeOutCubic:function(F,G,E,I,H){return I*((G=G/H-1)*G*G+1)+E},easeInOutCubic:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G+E}return I/2*((G-=2)*G*G+2)+E},easeInQuart:function(F,G,E,I,H){return I*(G/=H)*G*G*G+E},easeOutQuart:function(F,G,E,I,H){return -I*((G=G/H-1)*G*G*G-1)+E},easeInOutQuart:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G+E}return -I/2*((G-=2)*G*G*G-2)+E},easeInQuint:function(F,G,E,I,H){return I*(G/=H)*G*G*G*G+E},easeOutQuint:function(F,G,E,I,H){return I*((G=G/H-1)*G*G*G*G+1)+E},easeInOutQuint:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G*G+E}return I/2*((G-=2)*G*G*G*G+2)+E},easeInSine:function(F,G,E,I,H){return -I*Math.cos(G/H*(Math.PI/2))+I+E},easeOutSine:function(F,G,E,I,H){return I*Math.sin(G/H*(Math.PI/2))+E},easeInOutSine:function(F,G,E,I,H){return -I/2*(Math.cos(Math.PI*G/H)-1)+E},easeInExpo:function(F,G,E,I,H){return(G==0)?E:I*Math.pow(2,10*(G/H-1))+E},easeOutExpo:function(F,G,E,I,H){return(G==H)?E+I:I*(-Math.pow(2,-10*G/H)+1)+E},easeInOutExpo:function(F,G,E,I,H){if(G==0){return E}if(G==H){return E+I}if((G/=H/2)<1){return I/2*Math.pow(2,10*(G-1))+E}return I/2*(-Math.pow(2,-10*--G)+2)+E},easeInCirc:function(F,G,E,I,H){return -I*(Math.sqrt(1-(G/=H)*G)-1)+E},easeOutCirc:function(F,G,E,I,H){return I*Math.sqrt(1-(G=G/H-1)*G)+E},easeInOutCirc:function(F,G,E,I,H){if((G/=H/2)<1){return -I/2*(Math.sqrt(1-G*G)-1)+E}return I/2*(Math.sqrt(1-(G-=2)*G)+1)+E},easeInElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K)==1){return E+L}if(!J){J=K*0.3}if(G").css({position:"absolute",visibility:"visible",left:-D*(G/E),top:-F*(C/I)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:G/E,height:C/I,left:J.left+D*(G/E)+(B.options.mode=="show"?(D-Math.floor(E/2))*(G/E):0),top:J.top+F*(C/I)+(B.options.mode=="show"?(F-Math.floor(I/2))*(C/I):0),opacity:B.options.mode=="show"?0:1}).animate({left:J.left+D*(G/E)+(B.options.mode=="show"?0:(D-Math.floor(E/2))*(G/E)),top:J.top+F*(C/I)+(B.options.mode=="show"?0:(F-Math.floor(I/2))*(C/I)),opacity:B.options.mode=="show"?1:0},B.duration||500)}}setTimeout(function(){B.options.mode=="show"?H.css({visibility:"visible"}):H.css({visibility:"visible"}).hide();if(B.callback){B.callback.apply(H[0])}H.dequeue();A(".effects-explode").remove()},B.duration||500)})}})(jQuery);(function(A){A.effects.fold=function(B){return this.queue(function(){var E=A(this),J=["position","top","left"];var G=A.effects.setMode(E,B.options.mode||"hide");var N=B.options.size||15;var M=!(!B.options.horizFirst);A.effects.save(E,J);E.show();var D=A.effects.createWrapper(E).css({overflow:"hidden"});var H=((G=="show")!=M);var F=H?["width","height"]:["height","width"];var C=H?[D.width(),D.height()]:[D.height(),D.width()];var I=/([0-9]+)%/.exec(N);if(I){N=parseInt(I[1])/100*C[G=="hide"?0:1]}if(G=="show"){D.css(M?{height:0,width:N}:{height:N,width:0})}var L={},K={};L[F[0]]=G=="show"?C[0]:N;K[F[1]]=G=="show"?C[1]:0;D.animate(L,B.duration/2,B.options.easing).animate(K,B.duration/2,B.options.easing,function(){if(G=="hide"){E.hide()}A.effects.restore(E,J);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery);(function(A){A.effects.highlight=function(B){return this.queue(function(){var E=A(this),D=["backgroundImage","backgroundColor","opacity"];var H=A.effects.setMode(E,B.options.mode||"show");var C=B.options.color||"#ffff99";var G=E.css("backgroundColor");A.effects.save(E,D);E.show();E.css({backgroundImage:"none",backgroundColor:C});var F={backgroundColor:G};if(H=="hide"){F["opacity"]=0}E.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){E.hide()}A.effects.restore(E,D);if(H=="show"&&A.browser.msie){this.style.removeAttribute("filter")}if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery);(function(A){A.effects.pulsate=function(B){return this.queue(function(){var D=A(this);var F=A.effects.setMode(D,B.options.mode||"show");var E=B.options.times||5;if(F=="hide"){E--}if(D.is(":hidden")){D.css("opacity",0);D.show();D.animate({opacity:1},B.duration/2,B.options.easing);E=E-2}for(var C=0;C').appendTo(document.body);if(B.options.className){D.addClass(B.options.className)}D.addClass(B.options.className);D.css({top:C.top,left:C.left,height:E.outerHeight()-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:E.outerWidth()-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth")),position:"absolute"});C=F.offset();animation={top:C.top,left:C.left,height:F.outerHeight()-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:F.outerWidth()-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth"))};D.animate(animation,B.duration,B.options.easing,function(){D.remove();if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery);(function(E){E.widget("ui.accordion",{_init:function(){var H=this.options;if(H.navigation){var K=this.element.find("a").filter(H.navigationFilter);if(K.length){if(K.filter(H.header).length){H.active=K}else{H.active=K.parent().parent().prev();K.addClass("current")}}}H.headers=this.element.find(H.header);H.active=C(H.headers,H.active);if(E.browser.msie){this.element.find("a").css("zoom","1")}if(!this.element.hasClass("ui-accordion")){this.element.addClass("ui-accordion");E('').insertBefore(H.headers);E('').appendTo(H.headers);H.headers.addClass("ui-accordion-header")}var J;if(H.fillSpace){J=this.element.parent().height();H.headers.each(function(){J-=E(this).outerHeight()});var I=0;H.headers.next().each(function(){I=Math.max(I,E(this).innerHeight()-E(this).height())}).height(J-I)}else{if(H.autoHeight){J=0;H.headers.next().each(function(){J=Math.max(J,E(this).outerHeight())}).height(J)}}this.element.attr("role","tablist");var G=this;H.headers.attr("role","tab").bind("keydown",function(L){return G._keydown(L)}).next().attr("role","tabpanel");H.headers.not(H.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!H.active.length){H.headers.eq(0).attr("tabIndex","0")}else{H.active.attr("aria-expanded","true").attr("tabIndex","0").parent().andSelf().addClass(H.selectedClass)}if(!E.browser.safari){H.headers.find("a").attr("tabIndex","-1")}if(H.event){this.element.bind((H.event)+".accordion",F)}},destroy:function(){this.options.headers.parent().andSelf().removeClass(this.options.selectedClass);this.options.headers.prev(".ui-accordion-left").remove();this.options.headers.children(".ui-accordion-right").remove();this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}E.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")},_keydown:function(J){if(this.options.disabled||J.altKey||J.ctrlKey){return }var K=E.ui.keyCode;var I=this.options.headers.length;var G=this.options.headers.index(J.target);var H=false;switch(J.keyCode){case K.RIGHT:case K.DOWN:H=this.options.headers[(G+1)%I];break;case K.LEFT:case K.UP:H=this.options.headers[(G-1+I)%I];break;case K.SPACE:case K.ENTER:return F.call(this.element[0],{target:J.target})}if(H){E(J.target).attr("tabIndex","-1");E(H).attr("tabIndex","0");H.focus();return false}return true},activate:function(G){F.call(this.element[0],{target:C(this.options.headers,G)[0]})}});function B(H,G){return function(){return H.apply(G,arguments)}}function D(I){if(!E.data(this,"accordion")){return }var G=E.data(this,"accordion");var H=G.options;H.running=I?0:--H.running;if(H.running){return }if(H.clearStyle){H.toShow.add(H.toHide).css({height:"",overflow:""})}G._trigger("change",null,H.data)}function A(G,N,K,L,O){var Q=E.data(this,"accordion").options;Q.toShow=G;Q.toHide=N;Q.data=K;var H=B(D,this);E.data(this,"accordion")._trigger("changestart",null,Q.data);Q.running=N.size()===0?G.size():N.size();if(Q.animated){var J={};if(!Q.alwaysOpen&&L){J={toShow:E([]),toHide:N,complete:H,down:O,autoHeight:Q.autoHeight}}else{J={toShow:G,toHide:N,complete:H,down:O,autoHeight:Q.autoHeight}}if(!Q.proxied){Q.proxied=Q.animated}if(!Q.proxiedDuration){Q.proxiedDuration=Q.duration}Q.animated=E.isFunction(Q.proxied)?Q.proxied(J):Q.proxied;Q.duration=E.isFunction(Q.proxiedDuration)?Q.proxiedDuration(J):Q.proxiedDuration;var P=E.ui.accordion.animations,I=Q.duration,M=Q.animated;if(!P[M]){P[M]=function(R){this.slide(R,{easing:M,duration:I||700})}}P[M](J)}else{if(!Q.alwaysOpen&&L){G.toggle()}else{N.hide();G.show()}H(true)}N.prev().attr("aria-expanded","false").attr("tabIndex","-1");G.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()}function F(L){var J=E.data(this,"accordion").options;if(J.disabled){return false}if(!L.target&&!J.alwaysOpen){J.active.parent().andSelf().toggleClass(J.selectedClass);var I=J.active.next(),M={options:J,newHeader:E([]),oldHeader:J.active,newContent:E([]),oldContent:I},G=(J.active=E([]));A.call(this,G,I,M);return false}var K=E(L.target);K=E(K.parents(J.header)[0]||K);var H=K[0]==J.active[0];if(J.running||(J.alwaysOpen&&H)){return false}if(!K.is(J.header)){return }J.active.parent().andSelf().toggleClass(J.selectedClass);if(!H){K.parent().andSelf().addClass(J.selectedClass)}var G=K.next(),I=J.active.next(),M={options:J,newHeader:H&&!J.alwaysOpen?E([]):K,oldHeader:J.active,newContent:H&&!J.alwaysOpen?E([]):G,oldContent:I},N=J.headers.index(J.active[0])>J.headers.index(K[0]);J.active=H?E([]):K;A.call(this,G,I,M,H,N);return false}function C(H,G){return G?typeof G=="number"?H.filter(":eq("+G+")"):H.not(H.not(G)):G===false?E([]):H.filter(":eq(0)")}E.extend(E.ui.accordion,{version:"1.6",defaults:{autoHeight:true,alwaysOpen:true,animated:"slide",event:"click",header:"a",navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()},running:0,selectedClass:"selected"},animations:{slide:function(G,J){G=E.extend({easing:"swing",duration:300},G,J);if(!G.toHide.size()){G.toShow.animate({height:"show"},G);return }var I=G.toHide.height(),L=G.toShow.height(),N=L/I,K=G.toShow.outerHeight()-G.toShow.height(),H=G.toShow.css("marginBottom"),M=G.toShow.css("overflow");tmargin=G.toShow.css("marginTop");G.toShow.css({height:0,overflow:"hidden",marginTop:0,marginBottom:-K}).show();G.toHide.filter(":hidden").each(G.complete).end().filter(":visible").animate({height:"hide"},{step:function(O){var P=(I-O)*N;if(E.browser.msie||E.browser.opera){P=Math.ceil(P)}G.toShow.height(P)},duration:G.duration,easing:G.easing,complete:function(){if(!G.autoHeight){G.toShow.css("height","auto")}G.toShow.css({marginTop:tmargin,marginBottom:H,overflow:M});G.complete()}})},bounceslide:function(G){this.slide(G,{easing:G.down?"easeOutBounce":"swing",duration:G.down?1000:200})},easeslide:function(G){this.slide(G,{easing:"easeinout",duration:700})}}})})(jQuery);(function($){$.extend($.ui,{datepicker:{version:"1.6"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._promptClass="ui-datepicker-prompt";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this._weekOverClass="ui-datepicker-week-over";this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",closeText:"Close",closeStatus:"Close without change",prevText:"<Prev",prevStatus:"Show the previous month",prevBigText:"<<",prevBigStatus:"Show the previous year",nextText:"Next>",nextStatus:"Show the next month",nextBigText:">>",nextBigStatus:"Show the next year",currentText:"Today",currentStatus:"Show the current month",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",weekStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Select a date",isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,showBigPrevNext:false,gotoCurrent:false,changeMonth:true,changeYear:true,showMonthAfterYear:false,yearRange:"-10:+10",changeFirstDay:true,highlightWeek:false,showOtherMonths:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,rangeSelect:false,rangeSeparator:" - ",altField:"",altFormat:"",constrainInput:true};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('
          '))}},_connectDatepicker:function(target,inst){var input=$(target);if(input.hasClass(this.markerClassName)){return }var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){input[isRTL?"before":"after"](''+appendText+"")}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");var trigger=$(this._get(inst,"buttonImageOnly")?$("").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](trigger);trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return }divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){$target.siblings("."+this._appendClass).remove().end().siblings("."+this._triggerClass).remove().end().removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;$target.siblings("button."+this._triggerClass).each(function(){this.disabled=false}).end().siblings("img."+this._triggerClass).css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){$target.children("."+this._disableClass).remove()}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;$target.siblings("button."+this._triggerClass).each(function(){this.disabled=true}).end().siblings("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);var offset=inline.offset();var relOffset={left:0,top:0};inline.parents().each(function(){if($(this).css("position")=="relative"){relOffset=$(this).offset();return false}});$target.prepend('
          ')}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return }var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1]*$(".ui-datepicker",inst.dpDiv[0])[0].offsetWidth);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height});var numMonths=this._getNumberOfMonths(inst);inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var pos=inst.input?this._findPos(inst.input[0]):null;var browserWidth=window.innerWidth||(document.documentElement?document.documentElement.clientWidth:document.body.clientWidth);var browserHeight=window.innerHeight||(document.documentElement?document.documentElement.clientHeight:document.body.clientHeight);var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;if(this._get(inst,"isRTL")||(offset.left+inst.dpDiv.width()-scrollX)>browserWidth){offset.left=Math.max((isFixed?0:scrollX),pos[0]+(inst.input?inst.input.width():0)-(isFixed?scrollX:0)-inst.dpDiv.width()-(isFixed&&$.browser.opera?document.documentElement.scrollLeft:0))}else{offset.left-=(isFixed?scrollX:0)}if((offset.top+inst.dpDiv.height()-scrollY)>browserHeight){offset.top=Math.max((isFixed?0:scrollY),pos[1]-(isFixed?scrollY:0)-(this._inDialog?0:inst.dpDiv.height())-(isFixed&&$.browser.opera?document.documentElement.scrollTop:0))}else{offset.top-=(isFixed?scrollY:0)}return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return }var rangeSelect=this._get(inst,"rangeSelect");if(rangeSelect&&inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;inst.settings.prompt=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker");$("."+this._promptClass,inst.dpDiv).remove()},_checkExternalClick:function(event){if(!$.datepicker._curInst){return }var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);this._adjustInstDate(inst,offset,period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_changeFirstDay:function(id,day){var target=$(id);var inst=this._getInst(target[0]);inst.settings.firstDay=day;this._updateDatepicker(inst)},_selectDay:function(id,month,year,td){if($(td).hasClass(this._unselectableClass)){return }var target=$(id);var inst=this._getInst(target[0]);var rangeSelect=this._get(inst,"rangeSelect");if(rangeSelect){inst.stayOpen=!inst.stayOpen;if(inst.stayOpen){$(".ui-datepicker td",inst.dpDiv).removeClass(this._currentClass);$(td).addClass(this._currentClass)}}inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}else{if(rangeSelect){inst.endDay=inst.currentDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear}}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}else{if(rangeSelect){inst.selectedDay=inst.currentDay=inst.rangeStart.getDate();inst.selectedMonth=inst.currentMonth=inst.rangeStart.getMonth();inst.selectedYear=inst.currentYear=inst.rangeStart.getFullYear();inst.rangeStart=null;if(inst.inline){this._updateDatepicker(inst)}}}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"mandatory")){return }inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(this._get(inst,"rangeSelect")&&dateStr){dateStr=(inst.rangeStart?this._formatDate(inst,inst.rangeStart):dateStr)+this._get(inst,"rangeSeparator")+dateStr}if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof (inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=(isArray(date)?(!date[0]&&!date[1]?"":this.formatDate(altFormat,date[0],this._getFormatConfig(inst))+this._get(inst,"rangeSeparator")+this.formatDate(altFormat,date[1]||date[0],this._getFormatConfig(inst))):this.formatDate(altFormat,date,this._getFormatConfig(inst)));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDatenew Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)0&&iValue="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j0&&iValue-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat0){var settings=this._getFormatConfig(inst);if(dates.length>1){date=this.parseDate(dateFormat,dates[1],settings)||defaultDate;inst.endDay=date.getDate();inst.endMonth=date.getMonth();inst.endYear=date.getFullYear()}try{date=this.parseDate(dateFormat,dates[0],settings)||defaultDate}catch(event){this.log(event);date=defaultDate}}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates[0]?date.getDate():0);inst.currentMonth=(dates[0]?date.getMonth():0);inst.currentYear=(dates[0]?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&datemaxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(this._get(inst,"rangeSelect")){if(endDate){endDate=this._determineDate(endDate,null);inst.endDay=endDate.getDate();inst.endMonth=endDate.getMonth();inst.endYear=endDate.getFullYear()}else{inst.endDay=inst.currentDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear}}if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst)+(!this._get(inst,"rangeSelect")?"":this._get(inst,"rangeSeparator")+this._formatDate(inst,inst.endDay,inst.endMonth,inst.endYear)))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));if(this._get(inst,"rangeSelect")){return[inst.rangeStart||startDate,(!inst.endYear?inst.rangeStart||startDate:this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)))]}else{return startDate}},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var showStatus=this._get(inst,"showStatus");var initStatus=this._get(inst,"initStatus")||" ";var isRTL=this._get(inst,"isRTL");var clear=(this._get(inst,"mandatory")?"":'");var controls='
          '+(isRTL?"":clear)+'"+(isRTL?clear:"")+"
          ";var prompt=this._get(inst,"prompt");var closeAtTop=this._get(inst,"closeAtTop");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var showBigPrevNext=this._get(inst,"showBigPrevNext");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDrawmaxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prevBigText=(showBigPrevNext?this._get(inst,"prevBigText"):"");prevBigText=(!navigationAsDateFormat?prevBigText:this.formatDate(prevBigText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepBigMonths,1)),this._getFormatConfig(inst)));var prev='
          '+(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?(showBigPrevNext?""+prevBigText+"":"")+""+prevText+"":(hideIfNoPrevNext?"":(showBigPrevNext?"":"")+""))+"
          ";var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var nextBigText=(showBigPrevNext?this._get(inst,"nextBigText"):"");nextBigText=(!navigationAsDateFormat?nextBigText:this.formatDate(nextBigText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepBigMonths,1)),this._getFormatConfig(inst)));var next='
          '+(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?""+nextText+""+(showBigPrevNext?""+nextBigText+"":""):(hideIfNoPrevNext?"":""+(showBigPrevNext?"":"")))+"
          ";var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var html=(closeAtTop&&!inst.inline?controls:"")+'"+(prompt?'
          '+prompt+"
          ":"");var firstDay=parseInt(this._get(inst,"firstDay"));firstDay=(isNaN(firstDay)?0:firstDay);var changeFirstDay=this._get(inst,"changeFirstDay");var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var beforeShowDay=this._get(inst,"beforeShowDay");var highlightWeek=this._get(inst,"highlightWeek");var showOtherMonths=this._get(inst,"showOtherMonths");var showWeeks=this._get(inst,"showWeeks");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var weekStatus=this._get(inst,"weekStatus");var status=(showStatus?this._get(inst,"dayStatus")||initStatus:"");var dateStatus=this._get(inst,"statusForDate")||this.dateStatus;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);for(var row=0;row'+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,showStatus,initStatus,monthNames)+''+(showWeeks?""+this._get(inst,"weekHeader")+"":"");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;var dayStatus=(status.indexOf("DD")>-1?status.replace(/DD/,dayNames[day]):status.replace(/D/,dayNamesShort[day]));html+="=5?' class="ui-datepicker-week-end-cell"':"")+">"+(!changeFirstDay?"'+dayNamesMin[day]+(changeFirstDay?"":"")+""}html+="";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow'+(showWeeks?'":"");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDatemaxDate);html+='";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}html+=""}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}html+="
          "+calculateWeek(printDate)+"=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?(highlightWeek?" onmouseover=\"jQuery(this).parent().addClass('"+this._weekOverClass+"');\" onmouseout=\"jQuery(this).parent().removeClass('"+this._weekOverClass+"');\"":""):" onmouseover=\"jQuery(this).addClass('"+this._dayOverClass+"')"+(highlightWeek?".parent().addClass('"+this._weekOverClass+"')":"")+";"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+inst.id+"').html('"+(dateStatus.apply((inst.input?inst.input[0]:null),[printDate,inst])||initStatus)+"');")+'" onmouseout="jQuery(this).removeClass(\''+this._dayOverClass+"')"+(highlightWeek?".parent().removeClass('"+this._weekOverClass+"')":"")+";"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+inst.id+"').html('"+initStatus+"');")+'" onclick="jQuery.datepicker._selectDay(\'#'+inst.id+"',"+drawMonth+","+drawYear+', this);"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():" "):(unselectable?printDate.getDate():""+printDate.getDate()+""))+"
          "}}html+=(showStatus?'
          '+initStatus+"
          ":"")+(!closeAtTop&&!inst.inline?controls:"")+'
          '+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,showStatus,initStatus,monthNames){minDate=(inst.rangeStart&&minDate&&selectedDate";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='"}}monthHtml+=""}if(!showMonthAfterYear){html+=monthHtml+(secondary||changeMonth||changeYear?" ":"")}if(secondary||!changeYear){html+=drawYear}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=endYear=new Date().getFullYear();year+=parseInt(years[0],10);endYear+=parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?" ":"")+monthHtml}html+="";return html},_addStatus:function(showStatus,id,text,initStatus){return(showStatus?" onmouseover=\"jQuery('#ui-datepicker-status-"+id+"').html('"+(text||initStatus)+"');\" onmouseout=\"jQuery('#ui-datepicker-status-"+id+"').html('"+initStatus+"');\"":"")},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&datemaxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document.body).append($.datepicker.dpDiv).mousedown($.datepicker._checkExternalClick);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.6"})(jQuery);(function(B){var A={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};B.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;var M=this,N=this.options,F=this.element.removeAttr("title").addClass("ui-dialog-content").wrap("
          ").wrap("
          "),I=(this.uiDialogContainer=F.parent()).addClass("ui-dialog-container").css({position:"relative",width:"100%",height:"100%"}),E=(this.uiDialogTitlebar=B("
          ")).addClass("ui-dialog-titlebar").mousedown(function(){M.moveToTop()}).prependTo(I),J=B('').addClass("ui-dialog-titlebar-close").attr("role","button").appendTo(E),G=(this.uiDialogTitlebarCloseText=B("")).text(N.closeText).appendTo(J),L=N.title||" ",D=B.ui.dialog.getTitleId(this.element),C=B("").addClass("ui-dialog-title").attr("id",D).html(L).prependTo(E),K=(this.uiDialog=I.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(N.dialogClass).css({position:"absolute",width:N.width,height:N.height,overflow:"hidden",zIndex:N.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(O){(N.closeOnEscape&&O.keyCode&&O.keyCode==B.ui.keyCode.ESCAPE&&M.close())}).attr({role:"dialog","aria-labelledby":D}).mouseup(function(){M.moveToTop()}),H=(this.uiDialogButtonPane=B("
          ")).addClass("ui-dialog-buttonpane").css({position:"absolute",bottom:0}).appendTo(K),J=B(".ui-dialog-titlebar-close",E).hover(function(){B(this).addClass("ui-dialog-titlebar-close-hover")},function(){B(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(O){O.stopPropagation()}).click(function(){M.close();return false});E.find("*").add(E).disableSelection();(N.draggable&&B.fn.draggable&&this._makeDraggable());(N.resizable&&B.fn.resizable&&this._makeResizable());this._createButtons(N.buttons);this._isOpen=false;(N.bgiframe&&B.fn.bgiframe&&K.bgiframe());(N.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(){if(false===this._trigger("beforeclose",null,{options:this.options})){return }(this.overlay&&this.overlay.destroy());this.uiDialog.hide(this.options.hide).unbind("keypress.ui-dialog");this._trigger("close",null,{options:this.options});B.ui.dialog.overlay.resize();this._isOpen=false},isOpen:function(){return this._isOpen},moveToTop:function(F){if((this.options.modal&&!F)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",null,{options:this.options})}var E=this.options.zIndex,D=this.options;B(".ui-dialog:visible").each(function(){E=Math.max(E,parseInt(B(this).css("z-index"),10)||D.zIndex)});(this.overlay&&this.overlay.$el.css("z-index",++E));var C={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++E);this.element.attr(C);this._trigger("focus",null,{options:this.options})},open:function(){if(this._isOpen){return }this.overlay=this.options.modal?new B.ui.dialog.overlay(this):null;(this.uiDialog.next().length&&this.uiDialog.appendTo("body"));this._position(this.options.position);this.uiDialog.show(this.options.show);(this.options.autoResize&&this._size());this.moveToTop(true);(this.options.modal&&this.uiDialog.bind("keypress.ui-dialog",function(E){if(E.keyCode!=B.ui.keyCode.TAB){return }var D=B(":tabbable",this),F=D.filter(":first")[0],C=D.filter(":last")[0];if(E.target==C&&!E.shiftKey){setTimeout(function(){F.focus()},1)}else{if(E.target==F&&E.shiftKey){setTimeout(function(){C.focus()},1)}}}));this.uiDialog.find(":tabbable:first").focus();this._trigger("open",null,{options:this.options});this._isOpen=true},_createButtons:function(F){var E=this,C=false,D=this.uiDialogButtonPane;D.empty().hide();B.each(F,function(){return !(C=true)});if(C){D.show();B.each(F,function(G,H){B('').text(G).click(function(){H.apply(E.element[0],arguments)}).appendTo(D)})}},_makeDraggable:function(){var C=this,D=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content",helper:D.dragHelper,handle:".ui-dialog-titlebar",start:function(){C.moveToTop();(D.dragStart&&D.dragStart.apply(C.element[0],arguments))},drag:function(){(D.drag&&D.drag.apply(C.element[0],arguments))},stop:function(){(D.dragStop&&D.dragStop.apply(C.element[0],arguments));B.ui.dialog.overlay.resize()}})},_makeResizable:function(F){F=(F===undefined?this.options.resizable:F);var C=this,E=this.options,D=typeof F=="string"?F:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",helper:E.resizeHelper,maxWidth:E.maxWidth,maxHeight:E.maxHeight,minWidth:E.minWidth,minHeight:E.minHeight,start:function(){(E.resizeStart&&E.resizeStart.apply(C.element[0],arguments))},resize:function(){(E.autoResize&&C._size.apply(C));(E.resize&&E.resize.apply(C.element[0],arguments))},handles:D,stop:function(){(E.autoResize&&C._size.apply(C));(E.resizeStop&&E.resizeStop.apply(C.element[0],arguments));B.ui.dialog.overlay.resize()}})},_position:function(H){var D=B(window),E=B(document),F=E.scrollTop(),C=E.scrollLeft(),G=F;if(B.inArray(H,["center","top","right","bottom","left"])>=0){H=[H=="right"||H=="left"?H:"center",H=="top"||H=="bottom"?H:"middle"]}if(H.constructor!=Array){H=["center","middle"]}if(H[0].constructor==Number){C+=H[0]}else{switch(H[0]){case"left":C+=0;break;case"right":C+=D.width()-this.uiDialog.outerWidth();break;default:case"center":C+=(D.width()-this.uiDialog.outerWidth())/2}}if(H[1].constructor==Number){F+=H[1]}else{switch(H[1]){case"top":F+=0;break;case"bottom":F+=(B.browser.opera?window.innerHeight:D.height())-this.uiDialog.outerHeight();break;default:case"middle":F+=((B.browser.opera?window.innerHeight:D.height())-this.uiDialog.outerHeight())/2}}F=Math.max(F,G);this.uiDialog.css({top:F,left:C})},_setData:function(D,E){(A[D]&&this.uiDialog.data(A[D],E));switch(D){case"buttons":this._createButtons(E);break;case"closeText":this.uiDialogTitlebarCloseText.text(E);break;case"draggable":(E?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(E);break;case"position":this._position(E);break;case"resizable":var C=this.uiDialog,F=this.uiDialog.is(":data(resizable)");(F&&!E&&C.resizable("destroy"));(F&&typeof E=="string"&&C.resizable("option","handles",E));(F||this._makeResizable(E));break;case"title":B(".ui-dialog-title",this.uiDialogTitlebar).html(E||" ");break;case"width":this.uiDialog.width(E);break}B.widget.prototype._setData.apply(this,arguments)},_size:function(){var D=this.uiDialogContainer,G=this.uiDialogTitlebar,E=this.element,F=(parseInt(E.css("margin-top"),10)||0)+(parseInt(E.css("margin-bottom"),10)||0),C=(parseInt(E.css("margin-left"),10)||0)+(parseInt(E.css("margin-right"),10)||0);E.height(D.height()-G.outerHeight()-F);E.width(D.width()-C)}});B.extend(B.ui.dialog,{version:"1.6",defaults:{autoOpen:true,autoResize:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},position:"center",resizable:true,stack:true,width:300,zIndex:1000},getter:"isOpen",uuid:0,getTitleId:function(C){return"ui-dialog-title-"+(C.attr("id")||++this.uuid)},overlay:function(C){this.$el=B.ui.dialog.overlay.create(C)}});B.extend(B.ui.dialog.overlay,{instances:[],events:B.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(C){return C+".dialog-overlay"}).join(" "),create:function(D){if(this.instances.length===0){setTimeout(function(){B("a, :input").bind(B.ui.dialog.overlay.events,function(){var F=false;var H=B(this).parents(".ui-dialog");if(H.length){var E=B(".ui-dialog-overlay");if(E.length){var G=parseInt(E.css("z-index"),10);E.each(function(){G=Math.max(G,parseInt(B(this).css("z-index"),10))});F=parseInt(H.css("z-index"),10)>G}else{F=true}}return F})},1);B(document).bind("keydown.dialog-overlay",function(E){(D.options.closeOnEscape&&E.keyCode&&E.keyCode==B.ui.keyCode.ESCAPE&&D.close())});B(window).bind("resize.dialog-overlay",B.ui.dialog.overlay.resize)}var C=B("
          ").appendTo(document.body).addClass("ui-dialog-overlay").css(B.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},D.options.overlay));(D.options.bgiframe&&B.fn.bgiframe&&C.bgiframe());this.instances.push(C);return C},destroy:function(C){this.instances.splice(B.inArray(this.instances,C),1);if(this.instances.length===0){B("a, :input").add([document,window]).unbind(".dialog-overlay")}C.remove()},height:function(){if(B.browser.msie&&B.browser.version<7){var D=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var C=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(D").addClass("ui-slider-handle").appendTo(B.element);if(this.id){D.attr("id",this.id)}return D[0]})}var C=function(D){this.element=A(D);this.element.data("mouse",this);this.options=B.options;this.element.bind("mousedown",function(){if(B.currentHandle){this.blur(B.currentHandle)}B._focus(this,true)});this._mouseInit()};A.extend(C.prototype,A.ui.mouse,{_mouseCapture:function(){return true},_mouseStart:function(D){return B._start.call(B,D,this.element[0])},_mouseDrag:function(D){return B._drag.call(B,D,this.element[0])},_mouseStop:function(D){return B._stop.call(B,D,this.element[0])},trigger:function(D){this._mouseDown(D)}});A(this.handle).each(function(){new C(this)}).wrap('
          ').parent().bind("click",function(){return false}).bind("focus",function(D){B._focus(this.firstChild)}).bind("blur",function(D){B._blur(this.firstChild)}).bind("keydown",function(D){if(!B.options.noKeyboard){return B._keydown(D.keyCode,this.firstChild)}});this.element.bind("mousedown.slider",function(D){if(A(D.target).is(".ui-slider-handle")){return }B._click.apply(B,[D]);B.currentHandle.data("mouse").trigger(D);B.firstValue=B.firstValue+1});A.each(this.options.handles||[],function(D,E){B.moveTo(E.start,D,true)});if(!isNaN(this.options.startValue)){this.moveTo(this.options.startValue,0,true)}this.previousHandle=A(this.handle[0]);if(this.handle.length==2&&this.options.range){this._createRange()}},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");if(this.handle&&this.handle.length){this.handle.unwrap("a");this.handle.each(function(){var B=A(this).data("mouse");B&&B._mouseDestroy()})}this.generated&&this.generated.remove()},_start:function(B,C){var D=this.options;if(D.disabled){return false}this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(!this.currentHandle){this._focus(this.previousHandle,true)}this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:B.pageY-this.handleOffset.top,left:B.pageX-this.handleOffset.left};this.firstValue=this.value();this._propagate("start",B);this._drag(B,C);return true},_drag:function(C,E){var F=this.options;var B={top:C.pageY-this.offset.top-this.clickOffset.top,left:C.pageX-this.offset.left-this.clickOffset.left};if(!this.currentHandle){this._focus(this.previousHandle,true)}B.left=this._translateLimits(B.left,"x");B.top=this._translateLimits(B.top,"y");if(F.stepping.x){var D=this._convertValue(B.left,"x");D=this._round(D/F.stepping.x)*F.stepping.x;B.left=this._translateValue(D,"x")}if(F.stepping.y){var D=this._convertValue(B.top,"y");D=this._round(D/F.stepping.y)*F.stepping.y;B.top=this._translateValue(D,"y")}B.left=this._translateRange(B.left,"x");B.top=this._translateRange(B.top,"y");if(F.axis!="vertical"){this.currentHandle.css({left:B.left})}if(F.axis!="horizontal"){this.currentHandle.css({top:B.top})}this.currentHandle.data("mouse").sliderValue={x:this._round(this._convertValue(B.left,"x"))||0,y:this._round(this._convertValue(B.top,"y"))||0};if(this.rangeElement){this._updateRange()}this._propagate("slide",C);return false},_stop:function(B){this._propagate("stop",B);if(this.firstValue!=this.value()){this._propagate("change",B)}this._focus(this.currentHandle,true);return false},_round:function(B){return this.options.round?parseInt(B,10):parseFloat(B)},_setData:function(B,C){A.widget.prototype._setData.apply(this,arguments);if(/min|max|steps/.test(B)){this._initBoundaries()}if(B=="range"){C?this.handle.length==2&&this._createRange():this._removeRange()}},_initBoundaries:function(){var B=this.element[0],C=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};A.extend(C,{axis:C.axis||(B.offsetWidth").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.element);this._updateRange()},_removeRange:function(){this.rangeElement.remove();this.rangeElement=null},_updateRange:function(){var C=this.options.axis=="vertical"?"top":"left";var B=this.options.axis=="vertical"?"height":"width";this.rangeElement.css(C,(this._round(A(this.handle[0]).css(C))||0)+this._handleSize(0,this.options.axis=="vertical"?"y":"x")/2);this.rangeElement.css(B,(this._round(A(this.handle[1]).css(C))||0)-(this._round(A(this.handle[0]).css(C))||0))},_getRange:function(){return this.rangeElement?this._convertValue(this._round(this.rangeElement.css(this.options.axis=="vertical"?"height":"width")),this.options.axis=="vertical"?"y":"x"):null},_handleIndex:function(){return this.handle.index(this.currentHandle[0])},value:function(D,B){if(this.handle.length==1){this.currentHandle=this.handle}if(!B){B=this.options.axis=="vertical"?"y":"x"}var C=A(D!=undefined&&D!==null?this.handle[D]||D:this.currentHandle);if(C.data("mouse").sliderValue){return this._round(C.data("mouse").sliderValue[B])}else{return this._round(((this._round(C.css(B=="x"?"left":"top"))/(this.actualSize[B=="x"?"width":"height"]-this._handleSize(D,B)))*this.options.realMax[B])+this.options.min[B])}},_convertValue:function(C,B){return this.options.min[B]+(C/(this.actualSize[B=="x"?"width":"height"]-this._handleSize(null,B)))*this.options.realMax[B]},_translateValue:function(C,B){return((C-this.options.min[B])/this.options.realMax[B])*(this.actualSize[B=="x"?"width":"height"]-this._handleSize(null,B))},_translateRange:function(D,B){if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&D>=this._translateValue(this.value(1),B)){D=this._translateValue(this.value(1,B)-this._oneStep(B),B)}if(this.currentHandle[0]==this.handle[1]&&D<=this._translateValue(this.value(0),B)){D=this._translateValue(this.value(0,B)+this._oneStep(B),B)}}if(this.options.handles){var C=this.options.handles[this._handleIndex()];if(Dthis._translateValue(C.max,B)){D=this._translateValue(C.max,B)}}}return D},_translateLimits:function(C,B){if(C>=this.actualSize[B=="x"?"width":"height"]-this._handleSize(null,B)){C=this.actualSize[B=="x"?"width":"height"]-this._handleSize(null,B)}if(C<=0){C=0}return C},_handleSize:function(C,B){return A(C!=undefined&&C!==null?this.handle[C]:this.currentHandle)[0]["offset"+(B=="x"?"Width":"Height")]},_oneStep:function(B){return this.options.stepping[B]||1},_pageStep:function(B){return 10},moveTo:function(F,E,G){var H=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(E==undefined&&!this.currentHandle&&this.handle.length!=1){return false}if(E==undefined&&!this.currentHandle){E=0}if(E!=undefined){this.currentHandle=this.previousHandle=A(this.handle[E]||E)}if(F.x!==undefined&&F.y!==undefined){var B=F.x,I=F.y}else{var B=F,I=F}if(B!==undefined&&B.constructor!=Number){var D=/^\-\=/.test(B),C=/^\+\=/.test(B);if(D||C){B=this.value(null,"x")+this._round(B.replace(D?"=":"+=",""))}else{B=isNaN(this._round(B))?undefined:this._round(B)}}if(I!==undefined&&I.constructor!=Number){var D=/^\-\=/.test(I),C=/^\+\=/.test(I);if(D||C){I=this.value(null,"y")+this._round(I.replace(D?"=":"+=",""))}else{I=isNaN(this._round(I))?undefined:this._round(I)}}if(H.axis!="vertical"&&B!==undefined){if(H.stepping.x){B=this._round(B/H.stepping.x)*H.stepping.x}B=this._translateValue(B,"x");B=this._translateLimits(B,"x");B=this._translateRange(B,"x");H.animate?this.currentHandle.stop().animate({left:B},(Math.abs(parseInt(this.currentHandle.css("left"),10)-B))*(!isNaN(parseInt(H.animate,10))?H.animate:5)):this.currentHandle.css({left:B})}if(H.axis!="horizontal"&&I!==undefined){if(H.stepping.y){I=this._round(I/H.stepping.y)*H.stepping.y}I=this._translateValue(I,"y");I=this._translateLimits(I,"y");I=this._translateRange(I,"y");H.animate?this.currentHandle.stop().animate({top:I},(Math.abs(parseInt(this.currentHandle.css("top"),10)-I))*(!isNaN(parseInt(H.animate,10))?H.animate:5)):this.currentHandle.css({top:I})}if(this.rangeElement){this._updateRange()}this.currentHandle.data("mouse").sliderValue={x:this._round(this._convertValue(B,"x"))||0,y:this._round(this._convertValue(I,"y"))||0};if(!G){this._propagate("start",null);this._propagate("slide",null);this._propagate("stop",null);this._propagate("change",null)}},_propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);this.element.triggerHandler(C=="slide"?C:"slide"+C,[B,this.ui()],this.options[C])},plugins:{},ui:function(B){return{options:this.options,handle:this.currentHandle,value:this.options.axis!="both"||!this.options.axis?this._round(this.value(null,this.options.axis=="vertical"?"y":"x")):{x:this._round(this.value(null,"x")),y:this._round(this.value(null,"y"))},range:this._getRange()}}});A.extend(A.ui.slider,{getter:"value",version:"1.6",defaults:{animate:false,distance:1,handle:".ui-slider-handle",round:true}})})(jQuery);(function(A){A.widget("ui.tabs",{_init:function(){this._tabify(true)},destroy:function(){var B=this.options;this.element.unbind(".tabs").removeClass(B.navClass).removeData("tabs");this.$tabs.each(function(){var C=A.data(this,"href.tabs");if(C){this.href=C}var D=A(this).unbind(".tabs");A.each(["href","load","cache"],function(E,F){D.removeData(F+".tabs")})});this.$lis.add(this.$panels).each(function(){if(A.data(this,"destroy.tabs")){A(this).remove()}else{A(this).removeClass([B.selectedClass,B.deselectableClass,B.disabledClass,B.panelClass,B.hideClass].join(" "))}});if(B.cookie){this._cookie(null,B.cookie)}},_setData:function(B,C){if((/^selected/).test(B)){this.select(C)}else{this.options[B]=C;this._tabify()}},length:function(){return this.$tabs.length},_tabId:function(B){return B.title&&B.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+A.data(B)},_sanitizeSelector:function(B){return B.replace(/:/g,"\\:")},_cookie:function(){var B=this.cookie||(this.cookie="ui-tabs-"+A.data(this.element[0]));return A.cookie.apply(null,[B].concat(A.makeArray(arguments)))},_tabify:function(N){this.$lis=A("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return A("a",this)[0]});this.$panels=A([]);var O=this,C=this.options;this.$tabs.each(function(Q,P){if(P.hash&&P.hash.replace("#","")){O.$panels=O.$panels.add(O._sanitizeSelector(P.hash))}else{if(A(P).attr("href")!="#"){A.data(P,"href.tabs",P.href);A.data(P,"load.tabs",P.href);var S=O._tabId(P);P.href="#"+S;var R=A("#"+S);if(!R.length){R=A(C.panelTemplate).attr("id",S).addClass(C.panelClass).insertAfter(O.$panels[Q-1]||O.element);R.data("destroy.tabs",true)}O.$panels=O.$panels.add(R)}else{C.disabled.push(Q+1)}}});if(N){this.element.addClass(C.navClass);this.$panels.addClass(C.panelClass);if(C.selected===undefined){if(location.hash){this.$tabs.each(function(Q,P){if(P.hash==location.hash){C.selected=Q;return false}})}else{if(C.cookie){var I=parseInt(O._cookie(),10);if(I&&O.$tabs[I]){C.selected=I}}else{if(O.$lis.filter("."+C.selectedClass).length){C.selected=O.$lis.index(O.$lis.filter("."+C.selectedClass)[0])}}}}C.selected=C.selected===null||C.selected!==undefined?C.selected:0;C.disabled=A.unique(C.disabled.concat(A.map(this.$lis.filter("."+C.disabledClass),function(Q,P){return O.$lis.index(Q)}))).sort();if(A.inArray(C.selected,C.disabled)!=-1){C.disabled.splice(A.inArray(C.selected,C.disabled),1)}this.$panels.addClass(C.hideClass);this.$lis.removeClass(C.selectedClass);if(C.selected!==null){this.$panels.eq(C.selected).removeClass(C.hideClass);var E=[C.selectedClass];if(C.deselectable){E.push(C.deselectableClass)}this.$lis.eq(C.selected).addClass(E.join(" "));var J=function(){O._trigger("show",null,O.ui(O.$tabs[C.selected],O.$panels[C.selected]))};if(A.data(this.$tabs[C.selected],"load.tabs")){this.load(C.selected,J)}else{J()}}A(window).bind("unload",function(){O.$tabs.unbind(".tabs");O.$lis=O.$tabs=O.$panels=null})}else{C.selected=this.$lis.index(this.$lis.filter("."+C.selectedClass)[0])}if(C.cookie){this._cookie(C.selected,C.cookie)}for(var G=0,M;M=this.$lis[G];G++){A(M)[A.inArray(G,C.disabled)!=-1&&!A(M).hasClass(C.selectedClass)?"addClass":"removeClass"](C.disabledClass)}if(C.cache===false){this.$tabs.removeData("cache.tabs")}var B,H;if(C.fx){if(C.fx.constructor==Array){B=C.fx[0];H=C.fx[1]}else{B=H=C.fx}}function D(P,Q){P.css({display:""});if(A.browser.msie&&Q.opacity){P[0].style.removeAttribute("filter")}}var K=H?function(P,Q){Q.animate(H,H.duration||"normal",function(){Q.removeClass(C.hideClass);D(Q,H);O._trigger("show",null,O.ui(P,Q[0]))})}:function(P,Q){Q.removeClass(C.hideClass);O._trigger("show",null,O.ui(P,Q[0]))};var L=B?function(Q,P,R){P.animate(B,B.duration||"normal",function(){P.addClass(C.hideClass);D(P,B);if(R){K(Q,R,P)}})}:function(Q,P,R){P.addClass(C.hideClass);if(R){K(Q,R)}};function F(R,T,P,S){var Q=[C.selectedClass];if(C.deselectable){Q.push(C.deselectableClass)}T.addClass(Q.join(" ")).siblings().removeClass(Q.join(" "));L(R,P,S)}this.$tabs.unbind(".tabs").bind(C.event+".tabs",function(){var S=A(this).parents("li:eq(0)"),P=O.$panels.filter(":visible"),R=A(O._sanitizeSelector(this.hash));if((S.hasClass(C.selectedClass)&&!C.deselectable)||S.hasClass(C.disabledClass)||A(this).hasClass(C.loadingClass)||O._trigger("select",null,O.ui(this,R[0]))===false){this.blur();return false}C.selected=O.$tabs.index(this);if(C.deselectable){if(S.hasClass(C.selectedClass)){O.options.selected=null;S.removeClass([C.selectedClass,C.deselectableClass].join(" "));O.$panels.stop();L(this,P);this.blur();return false}else{if(!P.length){O.$panels.stop();var Q=this;O.load(O.$tabs.index(this),function(){S.addClass([C.selectedClass,C.deselectableClass].join(" "));K(Q,R)});this.blur();return false}}}if(C.cookie){O._cookie(C.selected,C.cookie)}O.$panels.stop();if(R.length){var Q=this;O.load(O.$tabs.index(this),P.length?function(){F(Q,S,P,R)}:function(){S.addClass(C.selectedClass);K(Q,R)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(A.browser.msie){this.blur()}return false});if(C.event!="click"){this.$tabs.bind("click.tabs",function(){return false})}},add:function(E,D,C){if(C==undefined){C=this.$tabs.length}var G=this.options;var I=A(G.tabTemplate.replace(/#\{href\}/g,E).replace(/#\{label\}/g,D));I.data("destroy.tabs",true);var H=E.indexOf("#")==0?E.replace("#",""):this._tabId(A("a:first-child",I)[0]);var F=A("#"+H);if(!F.length){F=A(G.panelTemplate).attr("id",H).addClass(G.hideClass).data("destroy.tabs",true)}F.addClass(G.panelClass);if(C>=this.$lis.length){I.appendTo(this.element);F.appendTo(this.element[0].parentNode)}else{I.insertBefore(this.$lis[C]);F.insertBefore(this.$panels[C])}G.disabled=A.map(G.disabled,function(K,J){return K>=C?++K:K});this._tabify();if(this.$tabs.length==1){I.addClass(G.selectedClass);F.removeClass(G.hideClass);var B=A.data(this.$tabs[0],"load.tabs");if(B){this.load(C,B)}}this._trigger("add",null,this.ui(this.$tabs[C],this.$panels[C]))},remove:function(B){var D=this.options,E=this.$lis.eq(B).remove(),C=this.$panels.eq(B).remove();if(E.hasClass(D.selectedClass)&&this.$tabs.length>1){this.select(B+(B+1=B?--G:G});this._tabify();this._trigger("remove",null,this.ui(E.find("a")[0],C[0]))},enable:function(B){var C=this.options;if(A.inArray(B,C.disabled)==-1){return }var D=this.$lis.eq(B).removeClass(C.disabledClass);if(A.browser.safari){D.css("display","inline-block");setTimeout(function(){D.css("display","block")},0)}C.disabled=A.grep(C.disabled,function(F,E){return F!=B});this._trigger("enable",null,this.ui(this.$tabs[B],this.$panels[B]))},disable:function(C){var B=this,D=this.options;if(C!=D.selected){this.$lis.eq(C).addClass(D.disabledClass);D.disabled.push(C);D.disabled.sort();this._trigger("disable",null,this.ui(this.$tabs[C],this.$panels[C]))}},select:function(B){if(typeof B=="string"){B=this.$tabs.index(this.$tabs.filter("[href$="+B+"]")[0])}this.$tabs.eq(B).trigger(this.options.event+".tabs")},load:function(G,K){var L=this,D=this.options,E=this.$tabs.eq(G),J=E[0],H=K==undefined||K===false,B=E.data("load.tabs");K=K||function(){};if(!B||!H&&A.data(J,"cache.tabs")){K();return }var M=function(N){var O=A(N),P=O.find("*:last");return P.length&&P.is(":not(img)")&&P||O};var C=function(){L.$tabs.filter("."+D.loadingClass).removeClass(D.loadingClass).each(function(){if(D.spinner){M(this).parent().html(M(this).data("label.tabs"))}});L.xhr=null};if(D.spinner){var I=M(J).html();M(J).wrapInner("").find("em").data("label.tabs",I).html(D.spinner)}var F=A.extend({},D.ajaxOptions,{url:B,success:function(P,N){A(L._sanitizeSelector(J.hash)).html(P);C();if(D.cache){A.data(J,"cache.tabs",true)}L._trigger("load",null,L.ui(L.$tabs[G],L.$panels[G]));try{D.ajaxOptions.success(P,N)}catch(O){}K()}});if(this.xhr){this.xhr.abort();C()}E.addClass(D.loadingClass);L.xhr=A.ajax(F)},url:function(C,B){this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs",B)},ui:function(C,B){return{options:this.options,tab:C,panel:B,index:this.$tabs.index(C)}}});A.extend(A.ui.tabs,{version:"1.6",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,deselectable:false,deselectableClass:"ui-tabs-deselectable",disabled:[],disabledClass:"ui-tabs-disabled",event:"click",fx:null,hideClass:"ui-tabs-hide",idPrefix:"ui-tabs-",loadingClass:"ui-tabs-loading",navClass:"ui-tabs-nav",panelClass:"ui-tabs-panel",panelTemplate:"
          ",selectedClass:"ui-tabs-selected",spinner:"Loading…",tabTemplate:'
        8. #{label}
        9. '}});A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(C,F){F=F||false;var B=this,E=this.options.selected;function G(){B.rotation=setInterval(function(){E=++E').insertBefore(H.headers);E('').appendTo(H.headers);H.headers.addClass("ui-accordion-header")}var J;if(H.fillSpace){J=this.element.parent().height();H.headers.each(function(){J-=E(this).outerHeight()});var I=0;H.headers.next().each(function(){I=Math.max(I,E(this).innerHeight()-E(this).height())}).height(J-I)}else{if(H.autoHeight){J=0;H.headers.next().each(function(){J=Math.max(J,E(this).outerHeight())}).height(J)}}this.element.attr("role","tablist");var G=this;H.headers.attr("role","tab").bind("keydown",function(L){return G._keydown(L)}).next().attr("role","tabpanel");H.headers.not(H.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!H.active.length){H.headers.eq(0).attr("tabIndex","0")}else{H.active.attr("aria-expanded","true").attr("tabIndex","0").parent().andSelf().addClass(H.selectedClass)}if(!E.browser.safari){H.headers.find("a").attr("tabIndex","-1")}if(H.event){this.element.bind((H.event)+".accordion",F)}},destroy:function(){this.options.headers.parent().andSelf().removeClass(this.options.selectedClass);this.options.headers.prev(".ui-accordion-left").remove();this.options.headers.children(".ui-accordion-right").remove();this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}E.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")},_keydown:function(J){if(this.options.disabled||J.altKey||J.ctrlKey){return }var K=E.ui.keyCode;var I=this.options.headers.length;var G=this.options.headers.index(J.target);var H=false;switch(J.keyCode){case K.RIGHT:case K.DOWN:H=this.options.headers[(G+1)%I];break;case K.LEFT:case K.UP:H=this.options.headers[(G-1+I)%I];break;case K.SPACE:case K.ENTER:return F.call(this.element[0],{target:J.target})}if(H){E(J.target).attr("tabIndex","-1");E(H).attr("tabIndex","0");H.focus();return false}return true},activate:function(G){F.call(this.element[0],{target:C(this.options.headers,G)[0]})}});function B(H,G){return function(){return H.apply(G,arguments)}}function D(I){if(!E.data(this,"accordion")){return }var G=E.data(this,"accordion");var H=G.options;H.running=I?0:--H.running;if(H.running){return }if(H.clearStyle){H.toShow.add(H.toHide).css({height:"",overflow:""})}G._trigger("change",null,H.data)}function A(G,N,K,L,O){var Q=E.data(this,"accordion").options;Q.toShow=G;Q.toHide=N;Q.data=K;var H=B(D,this);E.data(this,"accordion")._trigger("changestart",null,Q.data);Q.running=N.size()===0?G.size():N.size();if(Q.animated){var J={};if(!Q.alwaysOpen&&L){J={toShow:E([]),toHide:N,complete:H,down:O,autoHeight:Q.autoHeight}}else{J={toShow:G,toHide:N,complete:H,down:O,autoHeight:Q.autoHeight}}if(!Q.proxied){Q.proxied=Q.animated}if(!Q.proxiedDuration){Q.proxiedDuration=Q.duration}Q.animated=E.isFunction(Q.proxied)?Q.proxied(J):Q.proxied;Q.duration=E.isFunction(Q.proxiedDuration)?Q.proxiedDuration(J):Q.proxiedDuration;var P=E.ui.accordion.animations,I=Q.duration,M=Q.animated;if(!P[M]){P[M]=function(R){this.slide(R,{easing:M,duration:I||700})}}P[M](J)}else{if(!Q.alwaysOpen&&L){G.toggle()}else{N.hide();G.show()}H(true)}N.prev().attr("aria-expanded","false").attr("tabIndex","-1");G.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()}function F(L){var J=E.data(this,"accordion").options;if(J.disabled){return false}if(!L.target&&!J.alwaysOpen){J.active.parent().andSelf().toggleClass(J.selectedClass);var I=J.active.next(),M={options:J,newHeader:E([]),oldHeader:J.active,newContent:E([]),oldContent:I},G=(J.active=E([]));A.call(this,G,I,M);return false}var K=E(L.target);K=E(K.parents(J.header)[0]||K);var H=K[0]==J.active[0];if(J.running||(J.alwaysOpen&&H)){return false}if(!K.is(J.header)){return }J.active.parent().andSelf().toggleClass(J.selectedClass);if(!H){K.parent().andSelf().addClass(J.selectedClass)}var G=K.next(),I=J.active.next(),M={options:J,newHeader:H&&!J.alwaysOpen?E([]):K,oldHeader:J.active,newContent:H&&!J.alwaysOpen?E([]):G,oldContent:I},N=J.headers.index(J.active[0])>J.headers.index(K[0]);J.active=H?E([]):K;A.call(this,G,I,M,H,N);return false}function C(H,G){return G?typeof G=="number"?H.filter(":eq("+G+")"):H.not(H.not(G)):G===false?E([]):H.filter(":eq(0)")}E.extend(E.ui.accordion,{version:"1.6",defaults:{autoHeight:true,alwaysOpen:true,animated:"slide",event:"click",header:"a",navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()},running:0,selectedClass:"selected"},animations:{slide:function(G,J){G=E.extend({easing:"swing",duration:300},G,J);if(!G.toHide.size()){G.toShow.animate({height:"show"},G);return }var I=G.toHide.height(),L=G.toShow.height(),N=L/I,K=G.toShow.outerHeight()-G.toShow.height(),H=G.toShow.css("marginBottom"),M=G.toShow.css("overflow");tmargin=G.toShow.css("marginTop");G.toShow.css({height:0,overflow:"hidden",marginTop:0,marginBottom:-K}).show();G.toHide.filter(":hidden").each(G.complete).end().filter(":visible").animate({height:"hide"},{step:function(O){var P=(I-O)*N;if(E.browser.msie||E.browser.opera){P=Math.ceil(P)}G.toShow.height(P)},duration:G.duration,easing:G.easing,complete:function(){if(!G.autoHeight){G.toShow.css("height","auto")}G.toShow.css({marginTop:tmargin,marginBottom:H,overflow:M});G.complete()}})},bounceslide:function(G){this.slide(G,{easing:G.down?"easeOutBounce":"swing",duration:G.down?1000:200})},easeslide:function(G){this.slide(G,{easing:"easeinout",duration:700})}}})})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/ui.core.min.js b/sites/all/libraries/jquery.ui/ui/minified/ui.core.min.js new file mode 100644 index 0000000..7c367d5 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/ui.core.min.js @@ -0,0 +1,9 @@ +/* + * jQuery UI 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ (function(C){var I=C.fn.remove,D=C.browser.mozilla&&(parseFloat(C.browser.version)<1.9);C.ui={version:"1.6",plugin:{add:function(K,L,N){var M=C.ui[K].prototype;for(var J in N){M.plugins[J]=M.plugins[J]||[];M.plugins[J].push([L,N[J]])}},call:function(J,L,K){var N=J.plugins[L];if(!N){return }for(var M=0;M').addClass(J).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");C.ui.cssCache[J]=!!((!(/auto|default/).test(K.css("cursor"))||(/^[1-9]/).test(K.css("height"))||(/^[1-9]/).test(K.css("width"))||!(/none/).test(K.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(K.css("backgroundColor"))));try{C("body").get(0).removeChild(K.get(0))}catch(L){}return C.ui.cssCache[J]},hasScroll:function(M,K){if(C(M).css("overflow")=="hidden"){return false}var J=(K&&K=="left")?"scrollLeft":"scrollTop",L=false;if(M[J]>0){return true}M[J]=1;L=(M[J]>0);M[J]=0;return L},isOverAxis:function(K,J,L){return(K>J)&&(K<(J+L))},isOver:function(O,K,N,M,J,L){return C.ui.isOverAxis(O,N,J)&&C.ui.isOverAxis(K,M,L)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,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,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(D){var F=C.attr,E=C.fn.removeAttr,H="http://www.w3.org/2005/07/aaa",A=/^aria-/,B=/^wairole:/;C.attr=function(K,J,L){var M=L!==undefined;return(J=="role"?(M?F.call(this,K,J,"wairole:"+L):(F.apply(this,arguments)||"").replace(B,"")):(A.test(J)?(M?K.setAttributeNS(H,J.replace(A,"aaa:"),L):F.call(this,K,J.replace(A,"aaa:"))):F.apply(this,arguments)))};C.fn.removeAttr=function(J){return(A.test(J)?this.each(function(){this.removeAttributeNS(H,J.replace(A,""))}):E.call(this,J))}}C.fn.extend({remove:function(){C("*",this).add(this).each(function(){C(this).triggerHandler("remove")});return I.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var J;if((C.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){J=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(C.curCSS(this,"position",1))&&(/(auto|scroll)/).test(C.curCSS(this,"overflow",1)+C.curCSS(this,"overflow-y",1)+C.curCSS(this,"overflow-x",1))}).eq(0)}else{J=this.parents().filter(function(){return(/(auto|scroll)/).test(C.curCSS(this,"overflow",1)+C.curCSS(this,"overflow-y",1)+C.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!J.length?C(document):J}});C.extend(C.expr[":"],{data:function(K,L,J){return C.data(K,J[3])},tabbable:function(L,M,K){var N=L.nodeName.toLowerCase();function J(O){return !(C(O).is(":hidden")||C(O).parents(":hidden").length)}return(L.tabIndex>=0&&(("a"==N&&L.href)||(/input|select|textarea|button/.test(N)&&"hidden"!=L.type&&!L.disabled))&&J(L))}});function G(M,N,O,L){function K(Q){var P=C[M][N][Q]||[];return(typeof P=="string"?P.split(/,?\s+/):P)}var J=K("getter");if(L.length==1&&typeof L[0]=="string"){J=J.concat(K("getterSetter"))}return(C.inArray(O,J)!=-1)}C.widget=function(K,J){var L=K.split(".")[0];K=K.split(".")[1];C.fn[K]=function(P){var N=(typeof P=="string"),O=Array.prototype.slice.call(arguments,1);if(N&&P.substring(0,1)=="_"){return this}if(N&&G(L,K,P,O)){var M=C.data(this[0],K);return(M?M[P].apply(M,O):undefined)}return this.each(function(){var Q=C.data(this,K);(!Q&&!N&&C.data(this,K,new C[L][K](this,P)));(Q&&N&&C.isFunction(Q[P])&&Q[P].apply(Q,O))})};C[L]=C[L]||{};C[L][K]=function(O,N){var M=this;this.widgetName=K;this.widgetEventPrefix=C[L][K].eventPrefix||K;this.widgetBaseClass=L+"-"+K;this.options=C.extend({},C.widget.defaults,C[L][K].defaults,C.metadata&&C.metadata.get(O)[K],N);this.element=C(O).bind("setData."+K,function(Q,P,R){return M._setData(P,R)}).bind("getData."+K,function(Q,P){return M._getData(P)}).bind("remove",function(){return M.destroy()});this._init()};C[L][K].prototype=C.extend({},C.widget.prototype,J);C[L][K].getterSetter="option"};C.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(L,M){var K=L,J=this;if(typeof L=="string"){if(M===undefined){return this._getData(L)}K={};K[L]=M}C.each(K,function(N,O){J._setData(N,O)})},_getData:function(J){return this.options[J]},_setData:function(J,K){this.options[J]=K;if(J=="disabled"){this.element[K?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(K,L,M){var J=(K==this.widgetEventPrefix?K:this.widgetEventPrefix+K);L=L||C.event.fix({type:J,target:this.element[0]});return this.element.triggerHandler(J,[L,M],this.options[K])}};C.widget.defaults={disabled:false};C.ui.mouse={_mouseInit:function(){var J=this;this.element.bind("mousedown."+this.widgetName,function(K){return J._mouseDown(K)}).bind("click."+this.widgetName,function(K){if(J._preventClickEvent){J._preventClickEvent=false;return false}});if(C.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(C.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(L){(this._mouseStarted&&this._mouseUp(L));this._mouseDownEvent=L;var K=this,M=(L.which==1),J=(typeof this.options.cancel=="string"?C(L.target).parents().add(L.target).filter(this.options.cancel).length:false);if(!M||J||!this._mouseCapture(L)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){K.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(L)&&this._mouseDelayMet(L)){this._mouseStarted=(this._mouseStart(L)!==false);if(!this._mouseStarted){L.preventDefault();return true}}this._mouseMoveDelegate=function(N){return K._mouseMove(N)};this._mouseUpDelegate=function(N){return K._mouseUp(N)};C(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);if(!C.browser.safari){L.preventDefault()}return true},_mouseMove:function(J){if(C.browser.msie&&!J.button){return this._mouseUp(J)}if(this._mouseStarted){this._mouseDrag(J);return J.preventDefault()}if(this._mouseDistanceMet(J)&&this._mouseDelayMet(J)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,J)!==false);(this._mouseStarted?this._mouseDrag(J):this._mouseUp(J))}return !this._mouseStarted},_mouseUp:function(J){C(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=true;this._mouseStop(J)}return false},_mouseDistanceMet:function(J){return(Math.max(Math.abs(this._mouseDownEvent.pageX-J.pageX),Math.abs(this._mouseDownEvent.pageY-J.pageY))>=this.options.distance)},_mouseDelayMet:function(J){return this.mouseDelayMet},_mouseStart:function(J){},_mouseDrag:function(J){},_mouseStop:function(J){},_mouseCapture:function(J){return true}};C.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/ui.datepicker.min.js b/sites/all/libraries/jquery.ui/ui/minified/ui.datepicker.min.js new file mode 100644 index 0000000..c9fd23f --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/ui.datepicker.min.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Datepicker 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Datepicker + * + * Depends: + * ui.core.js + */ (function($){$.extend($.ui,{datepicker:{version:"1.6"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._promptClass="ui-datepicker-prompt";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this._weekOverClass="ui-datepicker-week-over";this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",closeText:"Close",closeStatus:"Close without change",prevText:"<Prev",prevStatus:"Show the previous month",prevBigText:"<<",prevBigStatus:"Show the previous year",nextText:"Next>",nextStatus:"Show the next month",nextBigText:">>",nextBigStatus:"Show the next year",currentText:"Today",currentStatus:"Show the current month",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",weekStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Select a date",isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,showBigPrevNext:false,gotoCurrent:false,changeMonth:true,changeYear:true,showMonthAfterYear:false,yearRange:"-10:+10",changeFirstDay:true,highlightWeek:false,showOtherMonths:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,rangeSelect:false,rangeSeparator:" - ",altField:"",altFormat:"",constrainInput:true};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('
          '))}},_connectDatepicker:function(target,inst){var input=$(target);if(input.hasClass(this.markerClassName)){return }var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){input[isRTL?"before":"after"](''+appendText+"")}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");var trigger=$(this._get(inst,"buttonImageOnly")?$("").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](trigger);trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return }divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){$target.siblings("."+this._appendClass).remove().end().siblings("."+this._triggerClass).remove().end().removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;$target.siblings("button."+this._triggerClass).each(function(){this.disabled=false}).end().siblings("img."+this._triggerClass).css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){$target.children("."+this._disableClass).remove()}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return }var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;$target.siblings("button."+this._triggerClass).each(function(){this.disabled=true}).end().siblings("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);var offset=inline.offset();var relOffset={left:0,top:0};inline.parents().each(function(){if($(this).css("position")=="relative"){relOffset=$(this).offset();return false}});$target.prepend('
          ')}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return }var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1]*$(".ui-datepicker",inst.dpDiv[0])[0].offsetWidth);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height});var numMonths=this._getNumberOfMonths(inst);inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var pos=inst.input?this._findPos(inst.input[0]):null;var browserWidth=window.innerWidth||(document.documentElement?document.documentElement.clientWidth:document.body.clientWidth);var browserHeight=window.innerHeight||(document.documentElement?document.documentElement.clientHeight:document.body.clientHeight);var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;if(this._get(inst,"isRTL")||(offset.left+inst.dpDiv.width()-scrollX)>browserWidth){offset.left=Math.max((isFixed?0:scrollX),pos[0]+(inst.input?inst.input.width():0)-(isFixed?scrollX:0)-inst.dpDiv.width()-(isFixed&&$.browser.opera?document.documentElement.scrollLeft:0))}else{offset.left-=(isFixed?scrollX:0)}if((offset.top+inst.dpDiv.height()-scrollY)>browserHeight){offset.top=Math.max((isFixed?0:scrollY),pos[1]-(isFixed?scrollY:0)-(this._inDialog?0:inst.dpDiv.height())-(isFixed&&$.browser.opera?document.documentElement.scrollTop:0))}else{offset.top-=(isFixed?scrollY:0)}return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return }var rangeSelect=this._get(inst,"rangeSelect");if(rangeSelect&&inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;inst.settings.prompt=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker");$("."+this._promptClass,inst.dpDiv).remove()},_checkExternalClick:function(event){if(!$.datepicker._curInst){return }var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);this._adjustInstDate(inst,offset,period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_changeFirstDay:function(id,day){var target=$(id);var inst=this._getInst(target[0]);inst.settings.firstDay=day;this._updateDatepicker(inst)},_selectDay:function(id,month,year,td){if($(td).hasClass(this._unselectableClass)){return }var target=$(id);var inst=this._getInst(target[0]);var rangeSelect=this._get(inst,"rangeSelect");if(rangeSelect){inst.stayOpen=!inst.stayOpen;if(inst.stayOpen){$(".ui-datepicker td",inst.dpDiv).removeClass(this._currentClass);$(td).addClass(this._currentClass)}}inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}else{if(rangeSelect){inst.endDay=inst.currentDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear}}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}else{if(rangeSelect){inst.selectedDay=inst.currentDay=inst.rangeStart.getDate();inst.selectedMonth=inst.currentMonth=inst.rangeStart.getMonth();inst.selectedYear=inst.currentYear=inst.rangeStart.getFullYear();inst.rangeStart=null;if(inst.inline){this._updateDatepicker(inst)}}}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"mandatory")){return }inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(this._get(inst,"rangeSelect")&&dateStr){dateStr=(inst.rangeStart?this._formatDate(inst,inst.rangeStart):dateStr)+this._get(inst,"rangeSeparator")+dateStr}if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof (inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=(isArray(date)?(!date[0]&&!date[1]?"":this.formatDate(altFormat,date[0],this._getFormatConfig(inst))+this._get(inst,"rangeSeparator")+this.formatDate(altFormat,date[1]||date[0],this._getFormatConfig(inst))):this.formatDate(altFormat,date,this._getFormatConfig(inst)));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDatenew Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)0&&iValue="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j0&&iValue-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat0){var settings=this._getFormatConfig(inst);if(dates.length>1){date=this.parseDate(dateFormat,dates[1],settings)||defaultDate;inst.endDay=date.getDate();inst.endMonth=date.getMonth();inst.endYear=date.getFullYear()}try{date=this.parseDate(dateFormat,dates[0],settings)||defaultDate}catch(event){this.log(event);date=defaultDate}}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates[0]?date.getDate():0);inst.currentMonth=(dates[0]?date.getMonth():0);inst.currentYear=(dates[0]?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&datemaxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(this._get(inst,"rangeSelect")){if(endDate){endDate=this._determineDate(endDate,null);inst.endDay=endDate.getDate();inst.endMonth=endDate.getMonth();inst.endYear=endDate.getFullYear()}else{inst.endDay=inst.currentDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear}}if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst)+(!this._get(inst,"rangeSelect")?"":this._get(inst,"rangeSeparator")+this._formatDate(inst,inst.endDay,inst.endMonth,inst.endYear)))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));if(this._get(inst,"rangeSelect")){return[inst.rangeStart||startDate,(!inst.endYear?inst.rangeStart||startDate:this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)))]}else{return startDate}},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var showStatus=this._get(inst,"showStatus");var initStatus=this._get(inst,"initStatus")||" ";var isRTL=this._get(inst,"isRTL");var clear=(this._get(inst,"mandatory")?"":'");var controls='
          '+(isRTL?"":clear)+'"+(isRTL?clear:"")+"
          ";var prompt=this._get(inst,"prompt");var closeAtTop=this._get(inst,"closeAtTop");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var showBigPrevNext=this._get(inst,"showBigPrevNext");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDrawmaxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prevBigText=(showBigPrevNext?this._get(inst,"prevBigText"):"");prevBigText=(!navigationAsDateFormat?prevBigText:this.formatDate(prevBigText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepBigMonths,1)),this._getFormatConfig(inst)));var prev='
          '+(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?(showBigPrevNext?""+prevBigText+"":"")+""+prevText+"":(hideIfNoPrevNext?"":(showBigPrevNext?"":"")+""))+"
          ";var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var nextBigText=(showBigPrevNext?this._get(inst,"nextBigText"):"");nextBigText=(!navigationAsDateFormat?nextBigText:this.formatDate(nextBigText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepBigMonths,1)),this._getFormatConfig(inst)));var next='
          '+(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?""+nextText+""+(showBigPrevNext?""+nextBigText+"":""):(hideIfNoPrevNext?"":""+(showBigPrevNext?"":"")))+"
          ";var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var html=(closeAtTop&&!inst.inline?controls:"")+'"+(prompt?'
          '+prompt+"
          ":"");var firstDay=parseInt(this._get(inst,"firstDay"));firstDay=(isNaN(firstDay)?0:firstDay);var changeFirstDay=this._get(inst,"changeFirstDay");var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var beforeShowDay=this._get(inst,"beforeShowDay");var highlightWeek=this._get(inst,"highlightWeek");var showOtherMonths=this._get(inst,"showOtherMonths");var showWeeks=this._get(inst,"showWeeks");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var weekStatus=this._get(inst,"weekStatus");var status=(showStatus?this._get(inst,"dayStatus")||initStatus:"");var dateStatus=this._get(inst,"statusForDate")||this.dateStatus;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);for(var row=0;row'+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,showStatus,initStatus,monthNames)+''+(showWeeks?""+this._get(inst,"weekHeader")+"":"");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;var dayStatus=(status.indexOf("DD")>-1?status.replace(/DD/,dayNames[day]):status.replace(/D/,dayNamesShort[day]));html+="=5?' class="ui-datepicker-week-end-cell"':"")+">"+(!changeFirstDay?"'+dayNamesMin[day]+(changeFirstDay?"":"")+""}html+="";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow'+(showWeeks?'":"");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDatemaxDate);html+='";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}html+=""}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}html+="
          "+calculateWeek(printDate)+"=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?(highlightWeek?" onmouseover=\"jQuery(this).parent().addClass('"+this._weekOverClass+"');\" onmouseout=\"jQuery(this).parent().removeClass('"+this._weekOverClass+"');\"":""):" onmouseover=\"jQuery(this).addClass('"+this._dayOverClass+"')"+(highlightWeek?".parent().addClass('"+this._weekOverClass+"')":"")+";"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+inst.id+"').html('"+(dateStatus.apply((inst.input?inst.input[0]:null),[printDate,inst])||initStatus)+"');")+'" onmouseout="jQuery(this).removeClass(\''+this._dayOverClass+"')"+(highlightWeek?".parent().removeClass('"+this._weekOverClass+"')":"")+";"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+inst.id+"').html('"+initStatus+"');")+'" onclick="jQuery.datepicker._selectDay(\'#'+inst.id+"',"+drawMonth+","+drawYear+', this);"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():" "):(unselectable?printDate.getDate():""+printDate.getDate()+""))+"
          "}}html+=(showStatus?'
          '+initStatus+"
          ":"")+(!closeAtTop&&!inst.inline?controls:"")+'
          '+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,showStatus,initStatus,monthNames){minDate=(inst.rangeStart&&minDate&&selectedDate";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='"}}monthHtml+=""}if(!showMonthAfterYear){html+=monthHtml+(secondary||changeMonth||changeYear?" ":"")}if(secondary||!changeYear){html+=drawYear}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=endYear=new Date().getFullYear();year+=parseInt(years[0],10);endYear+=parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?" ":"")+monthHtml}html+="";return html},_addStatus:function(showStatus,id,text,initStatus){return(showStatus?" onmouseover=\"jQuery('#ui-datepicker-status-"+id+"').html('"+(text||initStatus)+"');\" onmouseout=\"jQuery('#ui-datepicker-status-"+id+"').html('"+initStatus+"');\"":"")},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&datemaxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document.body).append($.datepicker.dpDiv).mousedown($.datepicker._checkExternalClick);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.6"})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/ui.dialog.min.js b/sites/all/libraries/jquery.ui/ui/minified/ui.dialog.min.js new file mode 100644 index 0000000..c03719a --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/ui.dialog.min.js @@ -0,0 +1,14 @@ +/* + * jQuery UI Dialog 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Dialog + * + * Depends: + * ui.core.js + * ui.draggable.js + * ui.resizable.js + */ (function(B){var A={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};B.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;var M=this,N=this.options,F=this.element.removeAttr("title").addClass("ui-dialog-content").wrap("
          ").wrap("
          "),I=(this.uiDialogContainer=F.parent()).addClass("ui-dialog-container").css({position:"relative",width:"100%",height:"100%"}),E=(this.uiDialogTitlebar=B("
          ")).addClass("ui-dialog-titlebar").mousedown(function(){M.moveToTop()}).prependTo(I),J=B('').addClass("ui-dialog-titlebar-close").attr("role","button").appendTo(E),G=(this.uiDialogTitlebarCloseText=B("")).text(N.closeText).appendTo(J),L=N.title||" ",D=B.ui.dialog.getTitleId(this.element),C=B("").addClass("ui-dialog-title").attr("id",D).html(L).prependTo(E),K=(this.uiDialog=I.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(N.dialogClass).css({position:"absolute",width:N.width,height:N.height,overflow:"hidden",zIndex:N.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(O){(N.closeOnEscape&&O.keyCode&&O.keyCode==B.ui.keyCode.ESCAPE&&M.close())}).attr({role:"dialog","aria-labelledby":D}).mouseup(function(){M.moveToTop()}),H=(this.uiDialogButtonPane=B("
          ")).addClass("ui-dialog-buttonpane").css({position:"absolute",bottom:0}).appendTo(K),J=B(".ui-dialog-titlebar-close",E).hover(function(){B(this).addClass("ui-dialog-titlebar-close-hover")},function(){B(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(O){O.stopPropagation()}).click(function(){M.close();return false});E.find("*").add(E).disableSelection();(N.draggable&&B.fn.draggable&&this._makeDraggable());(N.resizable&&B.fn.resizable&&this._makeResizable());this._createButtons(N.buttons);this._isOpen=false;(N.bgiframe&&B.fn.bgiframe&&K.bgiframe());(N.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(){if(false===this._trigger("beforeclose",null,{options:this.options})){return }(this.overlay&&this.overlay.destroy());this.uiDialog.hide(this.options.hide).unbind("keypress.ui-dialog");this._trigger("close",null,{options:this.options});B.ui.dialog.overlay.resize();this._isOpen=false},isOpen:function(){return this._isOpen},moveToTop:function(F){if((this.options.modal&&!F)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",null,{options:this.options})}var E=this.options.zIndex,D=this.options;B(".ui-dialog:visible").each(function(){E=Math.max(E,parseInt(B(this).css("z-index"),10)||D.zIndex)});(this.overlay&&this.overlay.$el.css("z-index",++E));var C={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++E);this.element.attr(C);this._trigger("focus",null,{options:this.options})},open:function(){if(this._isOpen){return }this.overlay=this.options.modal?new B.ui.dialog.overlay(this):null;(this.uiDialog.next().length&&this.uiDialog.appendTo("body"));this._position(this.options.position);this.uiDialog.show(this.options.show);(this.options.autoResize&&this._size());this.moveToTop(true);(this.options.modal&&this.uiDialog.bind("keypress.ui-dialog",function(E){if(E.keyCode!=B.ui.keyCode.TAB){return }var D=B(":tabbable",this),F=D.filter(":first")[0],C=D.filter(":last")[0];if(E.target==C&&!E.shiftKey){setTimeout(function(){F.focus()},1)}else{if(E.target==F&&E.shiftKey){setTimeout(function(){C.focus()},1)}}}));this.uiDialog.find(":tabbable:first").focus();this._trigger("open",null,{options:this.options});this._isOpen=true},_createButtons:function(F){var E=this,C=false,D=this.uiDialogButtonPane;D.empty().hide();B.each(F,function(){return !(C=true)});if(C){D.show();B.each(F,function(G,H){B('').text(G).click(function(){H.apply(E.element[0],arguments)}).appendTo(D)})}},_makeDraggable:function(){var C=this,D=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content",helper:D.dragHelper,handle:".ui-dialog-titlebar",start:function(){C.moveToTop();(D.dragStart&&D.dragStart.apply(C.element[0],arguments))},drag:function(){(D.drag&&D.drag.apply(C.element[0],arguments))},stop:function(){(D.dragStop&&D.dragStop.apply(C.element[0],arguments));B.ui.dialog.overlay.resize()}})},_makeResizable:function(F){F=(F===undefined?this.options.resizable:F);var C=this,E=this.options,D=typeof F=="string"?F:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",helper:E.resizeHelper,maxWidth:E.maxWidth,maxHeight:E.maxHeight,minWidth:E.minWidth,minHeight:E.minHeight,start:function(){(E.resizeStart&&E.resizeStart.apply(C.element[0],arguments))},resize:function(){(E.autoResize&&C._size.apply(C));(E.resize&&E.resize.apply(C.element[0],arguments))},handles:D,stop:function(){(E.autoResize&&C._size.apply(C));(E.resizeStop&&E.resizeStop.apply(C.element[0],arguments));B.ui.dialog.overlay.resize()}})},_position:function(H){var D=B(window),E=B(document),F=E.scrollTop(),C=E.scrollLeft(),G=F;if(B.inArray(H,["center","top","right","bottom","left"])>=0){H=[H=="right"||H=="left"?H:"center",H=="top"||H=="bottom"?H:"middle"]}if(H.constructor!=Array){H=["center","middle"]}if(H[0].constructor==Number){C+=H[0]}else{switch(H[0]){case"left":C+=0;break;case"right":C+=D.width()-this.uiDialog.outerWidth();break;default:case"center":C+=(D.width()-this.uiDialog.outerWidth())/2}}if(H[1].constructor==Number){F+=H[1]}else{switch(H[1]){case"top":F+=0;break;case"bottom":F+=(B.browser.opera?window.innerHeight:D.height())-this.uiDialog.outerHeight();break;default:case"middle":F+=((B.browser.opera?window.innerHeight:D.height())-this.uiDialog.outerHeight())/2}}F=Math.max(F,G);this.uiDialog.css({top:F,left:C})},_setData:function(D,E){(A[D]&&this.uiDialog.data(A[D],E));switch(D){case"buttons":this._createButtons(E);break;case"closeText":this.uiDialogTitlebarCloseText.text(E);break;case"draggable":(E?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(E);break;case"position":this._position(E);break;case"resizable":var C=this.uiDialog,F=this.uiDialog.is(":data(resizable)");(F&&!E&&C.resizable("destroy"));(F&&typeof E=="string"&&C.resizable("option","handles",E));(F||this._makeResizable(E));break;case"title":B(".ui-dialog-title",this.uiDialogTitlebar).html(E||" ");break;case"width":this.uiDialog.width(E);break}B.widget.prototype._setData.apply(this,arguments)},_size:function(){var D=this.uiDialogContainer,G=this.uiDialogTitlebar,E=this.element,F=(parseInt(E.css("margin-top"),10)||0)+(parseInt(E.css("margin-bottom"),10)||0),C=(parseInt(E.css("margin-left"),10)||0)+(parseInt(E.css("margin-right"),10)||0);E.height(D.height()-G.outerHeight()-F);E.width(D.width()-C)}});B.extend(B.ui.dialog,{version:"1.6",defaults:{autoOpen:true,autoResize:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},position:"center",resizable:true,stack:true,width:300,zIndex:1000},getter:"isOpen",uuid:0,getTitleId:function(C){return"ui-dialog-title-"+(C.attr("id")||++this.uuid)},overlay:function(C){this.$el=B.ui.dialog.overlay.create(C)}});B.extend(B.ui.dialog.overlay,{instances:[],events:B.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(C){return C+".dialog-overlay"}).join(" "),create:function(D){if(this.instances.length===0){setTimeout(function(){B("a, :input").bind(B.ui.dialog.overlay.events,function(){var F=false;var H=B(this).parents(".ui-dialog");if(H.length){var E=B(".ui-dialog-overlay");if(E.length){var G=parseInt(E.css("z-index"),10);E.each(function(){G=Math.max(G,parseInt(B(this).css("z-index"),10))});F=parseInt(H.css("z-index"),10)>G}else{F=true}}return F})},1);B(document).bind("keydown.dialog-overlay",function(E){(D.options.closeOnEscape&&E.keyCode&&E.keyCode==B.ui.keyCode.ESCAPE&&D.close())});B(window).bind("resize.dialog-overlay",B.ui.dialog.overlay.resize)}var C=B("
          ").appendTo(document.body).addClass("ui-dialog-overlay").css(B.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},D.options.overlay));(D.options.bgiframe&&B.fn.bgiframe&&C.bgiframe());this.instances.push(C);return C},destroy:function(C){this.instances.splice(B.inArray(this.instances,C),1);if(this.instances.length===0){B("a, :input").add([document,window]).unbind(".dialog-overlay")}C.remove()},height:function(){if(B.browser.msie&&B.browser.version<7){var D=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var C=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(Dthis.containment[2]){B.left=this.containment[2]}if(B.top>this.containment[3]){B.top=this.containment[3]}}if(G.grid){var F=this.originalPosition.top+Math.round((B.top-this.originalPosition.top)/G.grid[1])*G.grid[1];B.top=this.containment?(!(Fthis.containment[3])?F:(!(Fthis.containment[2])?E:(!(E').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body")})},stop:function(B,C){A("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});A.ui.plugin.add("draggable","opacity",{start:function(C,D){var B=A(D.helper);if(B.css("opacity")){D.options._opacity=B.css("opacity")}B.css("opacity",D.options.opacity)},stop:function(B,C){if(C.options._opacity){A(C.helper).css("opacity",C.options._opacity)}}});A.ui.plugin.add("draggable","scroll",{start:function(C,D){var E=D.options;var B=A(this).data("draggable");if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML"){B.overflowOffset=B.scrollParent.offset()}},drag:function(D,E){var F=E.options,B=false;var C=A(this).data("draggable");if(C.scrollParent[0]!=document&&C.scrollParent[0].tagName!="HTML"){if((C.overflowOffset.top+C.scrollParent[0].offsetHeight)-D.pageY=0;N--){var L=E.snapElements[N].left,J=L+E.snapElements[N].width,I=E.snapElements[N].top,S=I+E.snapElements[N].height;if(!((L-Q=N&&L<=J)||(K>=N&&K<=J)||(LJ))&&((D>=F&&D<=B)||(C>=F&&C<=B)||(DB));break;default:return false;break}};A.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(E,G){var B=A.ui.ddmanager.droppables[E.options.scope];var F=G?G.type:null;var H=(E.currentItem||E.element).find(":data(droppable)").andSelf();droppablesLoop:for(var D=0;D').css({position:C.css("position"),width:C.outerWidth(),height:C.outerHeight(),top:C.css("top"),left:C.css("left")}));var K=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:K.css("marginLeft"),marginTop:K.css("marginTop"),marginRight:K.css("marginRight"),marginBottom:K.css("marginBottom")});K.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(B.browser.safari&&O.preventDefault){K.css("resize","none")}O.proportionallyResize=K.css({position:"static",zoom:1,display:"block"});this.element.css({margin:K.css("margin")});this._proportionallyResize()}if(!O.handles){O.handles=!B(".ui-resizable-handle",this.element).length?"e,s,se":{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"}}if(O.handles.constructor==String){O.zIndex=O.zIndex||1000;if(O.handles=="all"){O.handles="n,e,s,w,se,sw,ne,nw"}var P=O.handles.split(",");O.handles={};var H={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var S=0;S'].join("")).css(L);O.handles[T]=".ui-resizable-"+T;this.element.append(F.css(D?U:{}).css(O.knobHandles?E:{}).addClass(O.knobHandles?"ui-resizable-knob-handle":"").addClass(O.knobHandles))}if(O.knobHandles){this.element.addClass("ui-resizable-knob").css(!B.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(Z){Z=Z||this.element;for(var W in O.handles){if(O.handles[W].constructor==String){O.handles[W]=B(O.handles[W],this.element).show()}if(O.transparent){O.handles[W].css({opacity:0})}if(this.element.is(".ui-wrapper")&&O._nodeName.match(/textarea|input|select|button/i)){var X=B(O.handles[W],this.element),Y=0;Y=/sw|ne|nw|se|n|s/.test(W)?X.outerHeight():X.outerWidth();var V=["padding",/ne|nw|n/.test(W)?"Top":/se|sw|s/.test(W)?"Bottom":/^e$/.test(W)?"Right":"Left"].join("");if(!O.transparent){Z.css(V,Y)}this._proportionallyResize()}if(!B(O.handles[W]).length){continue}}};this._renderAxis(this.element);O._handles=B(".ui-resizable-handle",N.element);if(O.disableSelection){O._handles.disableSelection()}O._handles.mouseover(function(){if(!O.resizing){if(this.className){var V=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}N.axis=O.axis=V&&V[1]?V[1]:"se"}});if(O.autoHide){O._handles.hide();B(N.element).addClass("ui-resizable-autohide").hover(function(){B(this).removeClass("ui-resizable-autohide");O._handles.show()},function(){if(!O.resizing){B(this).addClass("ui-resizable-autohide");O._handles.hide()}})}this._mouseInit()},destroy:function(){var E=this.element,D=E.children(".ui-resizable").get(0);this._mouseDestroy();var C=function(F){B(F).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};C(E);if(E.is(".ui-wrapper")&&D){E.parent().append(B(D).css({position:E.css("position"),width:E.outerWidth(),height:E.outerHeight(),top:E.css("top"),left:E.css("left")})).end().remove();C(D)}},_mouseCapture:function(D){if(this.options.disabled){return false}var E=false;for(var C in this.options.handles){if(B(this.options.handles[C])[0]==D.target){E=true}}if(!E){return false}return true},_mouseStart:function(D){var E=this.options,C=this.element.position(),F=this.element,I=B.browser.msie&&B.browser.version<7;E.resizing=true;E.documentScroll={top:B(document).scrollTop(),left:B(document).scrollLeft()};if(F.is(".ui-draggable")||(/absolute/).test(F.css("position"))){var K=B.browser.msie&&!E.containment&&(/absolute/).test(F.css("position"))&&!(/relative/).test(F.parent().css("position"));var L=K?this.documentScroll.top:0,H=K?this.documentScroll.left:0;F.css({position:"absolute",top:(C.top+L),left:(C.left+H)})}if(B.browser.opera&&(/relative/).test(F.css("position"))){F.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var M=A(this.helper.css("left")),G=A(this.helper.css("top"));if(E.containment){M+=B(E.containment).scrollLeft()||0;G+=B(E.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:M,top:G};this.size=E.helper||I?{width:F.outerWidth(),height:F.outerHeight()}:{width:F.width(),height:F.height()};this.originalSize=E.helper||I?{width:F.outerWidth(),height:F.outerHeight()}:{width:F.width(),height:F.height()};this.originalPosition={left:M,top:G};this.sizeDiff={width:F.outerWidth()-F.width(),height:F.outerHeight()-F.height()};this.originalMousePosition={left:D.pageX,top:D.pageY};E.aspectRatio=(typeof E.aspectRatio=="number")?E.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);if(E.preserveCursor){var J=B(".ui-resizable-"+this.axis).css("cursor");B("body").css("cursor",J=="auto"?this.axis+"-resize":J)}this._propagate("start",D);return true},_mouseDrag:function(C){var F=this.helper,E=this.options,K={},N=this,H=this.originalMousePosition,L=this.axis;var O=(C.pageX-H.left)||0,M=(C.pageY-H.top)||0;var G=this._change[L];if(!G){return false}var J=G.apply(this,[C,O,M]),I=B.browser.msie&&B.browser.version<7,D=this.sizeDiff;if(E._aspectRatio||C.shiftKey){J=this._updateRatio(J,C)}J=this._respectSize(J,C);this._propagate("resize",C);F.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!E.helper&&E.proportionallyResize){this._proportionallyResize()}this._updateCache(J);this.element.triggerHandler("resize",[C,this.ui()],this.options["resize"]);return false},_mouseStop:function(F){this.options.resizing=false;var G=this.options,K=this;if(G.helper){var E=G.proportionallyResize,C=E&&(/textarea/i).test(E.get(0).nodeName),D=C&&B.ui.hasScroll(E.get(0),"left")?0:K.sizeDiff.height,I=C?0:K.sizeDiff.width;var L={width:(K.size.width-I),height:(K.size.height-D)},H=(parseInt(K.element.css("left"),10)+(K.position.left-K.originalPosition.left))||null,J=(parseInt(K.element.css("top"),10)+(K.position.top-K.originalPosition.top))||null;if(!G.animate){this.element.css(B.extend(L,{top:J,left:H}))}if(G.helper&&!G.animate){this._proportionallyResize()}}if(G.preserveCursor){B("body").css("cursor","auto")}this._propagate("stop",F);if(G.helper){this.helper.remove()}return false},_updateCache:function(C){var D=this.options;this.offset=this.helper.offset();if(C.left){this.position.left=C.left}if(C.top){this.position.top=C.top}if(C.height){this.size.height=C.height}if(C.width){this.size.width=C.width}},_updateRatio:function(F,E){var G=this.options,H=this.position,D=this.size,C=this.axis;if(F.height){F.width=(D.height*G.aspectRatio)}else{if(F.width){F.height=(D.width/G.aspectRatio)}}if(C=="sw"){F.left=H.left+(D.width-F.width);F.top=null}if(C=="nw"){F.top=H.top+(D.height-F.height);F.left=H.left+(D.width-F.width)}return F},_respectSize:function(J,E){var H=this.helper,G=this.options,O=G._aspectRatio||E.shiftKey,N=this.axis,Q=J.width&&G.maxWidth&&G.maxWidthJ.width,P=J.height&&G.minHeight&&G.minHeight>J.height;if(F){J.width=G.minWidth}if(P){J.height=G.minHeight}if(Q){J.width=G.maxWidth}if(K){J.height=G.maxHeight}var D=this.originalPosition.left+this.originalSize.width,M=this.position.top+this.size.height;var I=/sw|nw|w/.test(N),C=/nw|ne|n/.test(N);if(F&&I){J.left=D-G.minWidth}if(Q&&I){J.left=D-G.maxWidth}if(P&&C){J.top=M-G.minHeight}if(K&&C){J.top=M-G.maxHeight}var L=!J.width&&!J.height;if(L&&!J.left&&J.top){J.top=null}else{if(L&&!J.top&&J.left){J.left=null}}return J},_proportionallyResize:function(){var G=this.options;if(!G.proportionallyResize){return }var E=G.proportionallyResize,D=this.helper||this.element;if(!G.borderDif){var C=[E.css("borderTopWidth"),E.css("borderRightWidth"),E.css("borderBottomWidth"),E.css("borderLeftWidth")],F=[E.css("paddingTop"),E.css("paddingRight"),E.css("paddingBottom"),E.css("paddingLeft")];G.borderDif=B.map(C,function(H,J){var I=parseInt(H,10)||0,K=parseInt(F[J],10)||0;return I+K})}E.css({height:(D.height()-G.borderDif[0]-G.borderDif[2])+"px",width:(D.width()-G.borderDif[1]-G.borderDif[3])+"px"})},_renderProxy:function(){var D=this.element,G=this.options;this.elementOffset=D.offset();if(G.helper){this.helper=this.helper||B('
          ');var C=B.browser.msie&&B.browser.version<7,E=(C?1:0),F=(C?2:-1);this.helper.addClass(G.helper).css({width:D.outerWidth()+F,height:D.outerHeight()+F,position:"absolute",left:this.elementOffset.left-E+"px",top:this.elementOffset.top-E+"px",zIndex:++G.zIndex});this.helper.appendTo("body");if(G.disableSelection){this.helper.disableSelection()}}else{this.helper=D}},_change:{e:function(E,D,C){return{width:this.originalSize.width+D}},w:function(F,D,C){var H=this.options,E=this.originalSize,G=this.originalPosition;return{left:G.left+D,width:E.width-D}},n:function(F,D,C){var H=this.options,E=this.originalSize,G=this.originalPosition;return{top:G.top+C,height:E.height-C}},s:function(E,D,C){return{height:this.originalSize.height+C}},se:function(E,D,C){return B.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[E,D,C]))},sw:function(E,D,C){return B.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[E,D,C]))},ne:function(E,D,C){return B.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[E,D,C]))},nw:function(E,D,C){return B.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[E,D,C]))}},_propagate:function(D,C){B.ui.plugin.call(this,D,[C,this.ui()]);if(D!="resize"){this.element.triggerHandler(["resize",D].join(""),[C,this.ui()],this.options[D])}},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,options:this.options,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));B.extend(B.ui.resizable,{version:"1.6",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input",containment:false,disableSelection:true,distance:1,delay:0,ghost:false,grid:false,knobHandles:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,preserveCursor:true,preventDefault:true,proportionallyResize:false,transparent:false}});B.ui.plugin.add("resizable","alsoResize",{start:function(D,E){var G=E.options,C=B(this).data("resizable"),F=function(H){B(H).each(function(){B(this).data("resizable-alsoresize",{width:parseInt(B(this).width(),10),height:parseInt(B(this).height(),10),left:parseInt(B(this).css("left"),10),top:parseInt(B(this).css("top"),10)})})};if(typeof (G.alsoResize)=="object"&&!G.alsoResize.parentNode){if(G.alsoResize.length){G.alsoResize=G.alsoResize[0];F(G.alsoResize)}else{B.each(G.alsoResize,function(H,I){F(H)})}}else{F(G.alsoResize)}},resize:function(E,G){var H=G.options,D=B(this).data("resizable"),F=D.originalSize,J=D.originalPosition;var I={height:(D.size.height-F.height)||0,width:(D.size.width-F.width)||0,top:(D.position.top-J.top)||0,left:(D.position.left-J.left)||0},C=function(K,L){B(K).each(function(){var O=B(this).data("resizable-alsoresize"),N={},M=L&&L.length?L:["width","height","top","left"];B.each(M||["width","height","top","left"],function(P,R){var Q=(O[R]||0)+(I[R]||0);if(Q&&Q>=0){N[R]=Q||null}});B(this).css(N)})};if(typeof (H.alsoResize)=="object"&&!H.alsoResize.parentNode){B.each(H.alsoResize,function(K,L){C(K,L)})}else{C(H.alsoResize)}},stop:function(C,D){B(this).removeData("resizable-alsoresize-start")}});B.ui.plugin.add("resizable","animate",{stop:function(G,L){var H=L.options,M=B(this).data("resizable");var F=H.proportionallyResize,C=F&&(/textarea/i).test(F.get(0).nodeName),D=C&&B.ui.hasScroll(F.get(0),"left")?0:M.sizeDiff.height,J=C?0:M.sizeDiff.width;var E={width:(M.size.width-J),height:(M.size.height-D)},I=(parseInt(M.element.css("left"),10)+(M.position.left-M.originalPosition.left))||null,K=(parseInt(M.element.css("top"),10)+(M.position.top-M.originalPosition.top))||null;M.element.animate(B.extend(E,K&&I?{top:K,left:I}:{}),{duration:H.animateDuration,easing:H.animateEasing,step:function(){var N={width:parseInt(M.element.css("width"),10),height:parseInt(M.element.css("height"),10),top:parseInt(M.element.css("top"),10),left:parseInt(M.element.css("left"),10)};if(F){F.css({width:N.width,height:N.height})}M._updateCache(N);M._propagate("animate",G)}})}});B.ui.plugin.add("resizable","containment",{start:function(D,N){var H=N.options,P=B(this).data("resizable"),J=P.element;var E=H.containment,I=(E instanceof B)?E.get(0):(/parent/.test(E))?J.parent().get(0):E;if(!I){return }P.containerElement=B(I);if(/document/.test(E)||E==document){P.containerOffset={left:0,top:0};P.containerPosition={left:0,top:0};P.parentData={element:B(document),left:0,top:0,width:B(document).width(),height:B(document).height()||document.body.parentNode.scrollHeight}}else{var L=B(I),G=[];B(["Top","Right","Left","Bottom"]).each(function(R,Q){G[R]=A(L.css("padding"+Q))});P.containerOffset=L.offset();P.containerPosition=L.position();P.containerSize={height:(L.innerHeight()-G[3]),width:(L.innerWidth()-G[1])};var M=P.containerOffset,C=P.containerSize.height,K=P.containerSize.width,F=(B.ui.hasScroll(I,"left")?I.scrollWidth:K),O=(B.ui.hasScroll(I)?I.scrollHeight:C);P.parentData={element:I,left:M.left,top:M.top,width:F,height:O}}},resize:function(E,N){var G=N.options,Q=B(this).data("resizable"),D=Q.containerSize,M=Q.containerOffset,K=Q.size,L=Q.position,O=G._aspectRatio||E.shiftKey,C={top:0,left:0},F=Q.containerElement;if(F[0]!=document&&(/static/).test(F.css("position"))){C=M}if(L.left<(G.helper?M.left:0)){Q.size.width=Q.size.width+(G.helper?(Q.position.left-M.left):(Q.position.left-C.left));if(O){Q.size.height=Q.size.width/G.aspectRatio}Q.position.left=G.helper?M.left:0}if(L.top<(G.helper?M.top:0)){Q.size.height=Q.size.height+(G.helper?(Q.position.top-M.top):Q.position.top);if(O){Q.size.width=Q.size.height*G.aspectRatio}Q.position.top=G.helper?M.top:0}Q.offset.left=Q.parentData.left+Q.position.left;Q.offset.top=Q.parentData.top+Q.position.top;var J=Math.abs((G.helper?Q.offset.left-C.left:(Q.offset.left-C.left))+Q.sizeDiff.width),P=Math.abs((G.helper?Q.offset.top-C.top:(Q.offset.top-M.top))+Q.sizeDiff.height);var I=Q.containerElement.get(0)==Q.element.parent().get(0),H=/relative|absolute/.test(Q.containerElement.css("position"));if(I&&H){J-=Q.parentData.left}if(J+Q.size.width>=Q.parentData.width){Q.size.width=Q.parentData.width-J;if(O){Q.size.height=Q.size.width/G.aspectRatio}}if(P+Q.size.height>=Q.parentData.height){Q.size.height=Q.parentData.height-P;if(O){Q.size.width=Q.size.height*G.aspectRatio}}},stop:function(D,K){var E=K.options,M=B(this).data("resizable"),I=M.position,J=M.containerOffset,C=M.containerPosition,F=M.containerElement;var G=B(M.helper),N=G.offset(),L=G.outerWidth()-M.sizeDiff.width,H=G.outerHeight()-M.sizeDiff.height;if(E.helper&&!E.animate&&(/relative/).test(F.css("position"))){B(this).css({left:N.left-C.left-J.left,width:L,height:H})}if(E.helper&&!E.animate&&(/static/).test(F.css("position"))){B(this).css({left:N.left-C.left-J.left,width:L,height:H})}}});B.ui.plugin.add("resizable","ghost",{start:function(E,F){var G=F.options,C=B(this).data("resizable"),H=G.proportionallyResize,D=C.size;if(!H){C.ghost=C.element.clone()}else{C.ghost=H.clone()}C.ghost.css({opacity:0.25,display:"block",position:"relative",height:D.height,width:D.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof G.ghost=="string"?G.ghost:"");C.ghost.appendTo(C.helper)},resize:function(D,E){var F=E.options,C=B(this).data("resizable"),G=F.proportionallyResize;if(C.ghost){C.ghost.css({position:"relative",height:C.size.height,width:C.size.width})}},stop:function(D,E){var F=E.options,C=B(this).data("resizable"),G=F.proportionallyResize;if(C.ghost&&C.helper){C.helper.get(0).removeChild(C.ghost.get(0))}}});B.ui.plugin.add("resizable","grid",{resize:function(C,K){var F=K.options,M=B(this).data("resizable"),I=M.size,G=M.originalSize,H=M.originalPosition,L=M.axis,J=F._aspectRatio||C.shiftKey;F.grid=typeof F.grid=="number"?[F.grid,F.grid]:F.grid;var E=Math.round((I.width-G.width)/(F.grid[0]||1))*(F.grid[0]||1),D=Math.round((I.height-G.height)/(F.grid[1]||1))*(F.grid[1]||1);if(/^(se|s|e)$/.test(L)){M.size.width=G.width+E;M.size.height=G.height+D}else{if(/^(ne)$/.test(L)){M.size.width=G.width+E;M.size.height=G.height+D;M.position.top=H.top-D}else{if(/^(sw)$/.test(L)){M.size.width=G.width+E;M.size.height=G.height+D;M.position.left=H.left-E}else{M.size.width=G.width+E;M.size.height=G.height+D;M.position.top=H.top-D;M.position.left=H.left-E}}}}});var A=function(C){return parseInt(C,10)||0}})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/ui.selectable.min.js b/sites/all/libraries/jquery.ui/ui/minified/ui.selectable.min.js new file mode 100644 index 0000000..a8748f3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/ui.selectable.min.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Selectable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Selectables + * + * Depends: + * ui.core.js + */ (function(A){A.widget("ui.selectable",A.extend({},A.ui.mouse,{_init:function(){var B=this;this.element.addClass("ui-selectable");this.dragged=false;var C;this.refresh=function(){C=A(B.options.filter,B.element[0]);C.each(function(){var D=A(this);var E=D.offset();A.data(this,"selectable-item",{element:this,$element:D,left:E.left,top:E.top,right:E.left+D.width(),bottom:E.top+D.height(),startselected:false,selected:D.hasClass("ui-selected"),selecting:D.hasClass("ui-selecting"),unselecting:D.hasClass("ui-unselecting")})})};this.refresh();this.selectees=C.addClass("ui-selectee");this._mouseInit();this.helper=A(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(E){var C=this;this.opos=[E.pageX,E.pageY];if(this.options.disabled){return }var D=this.options;this.selectees=A(D.filter,this.element[0]);this.element.triggerHandler("selectablestart",[E,{"selectable":this.element[0],"options":D}],D.start);A("body").append(this.helper);this.helper.css({"z-index":100,"position":"absolute","left":E.clientX,"top":E.clientY,"width":0,"height":0});if(D.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var F=A.data(this,"selectable-item");F.startselected=true;if(!E.metaKey){F.$element.removeClass("ui-selected");F.selected=false;F.$element.addClass("ui-unselecting");F.unselecting=true;C.element.triggerHandler("selectableunselecting",[E,{selectable:C.element[0],unselecting:F.element,options:D}],D.unselecting)}});var B=false;A(E.target).parents().andSelf().each(function(){if(A.data(this,"selectable-item")){B=true}});return this.options.keyboard?!B:true},_mouseDrag:function(I){var C=this;this.dragged=true;if(this.options.disabled){return }var E=this.options;var D=this.opos[0],H=this.opos[1],B=I.pageX,G=I.pageY;if(D>B){var F=B;B=D;D=F}if(H>G){var F=G;G=H;H=F}this.helper.css({left:D,top:H,width:B-D,height:G-H});this.selectees.each(function(){var J=A.data(this,"selectable-item");if(!J||J.element==C.element[0]){return }var K=false;if(E.tolerance=="touch"){K=(!(J.left>B||J.rightG||J.bottomD&&J.rightH&&J.bottom").addClass("ui-slider-handle").appendTo(B.element);if(this.id){D.attr("id",this.id)}return D[0]})}var C=function(D){this.element=A(D);this.element.data("mouse",this);this.options=B.options;this.element.bind("mousedown",function(){if(B.currentHandle){this.blur(B.currentHandle)}B._focus(this,true)});this._mouseInit()};A.extend(C.prototype,A.ui.mouse,{_mouseCapture:function(){return true},_mouseStart:function(D){return B._start.call(B,D,this.element[0])},_mouseDrag:function(D){return B._drag.call(B,D,this.element[0])},_mouseStop:function(D){return B._stop.call(B,D,this.element[0])},trigger:function(D){this._mouseDown(D)}});A(this.handle).each(function(){new C(this)}).wrap('
          ').parent().bind("click",function(){return false}).bind("focus",function(D){B._focus(this.firstChild)}).bind("blur",function(D){B._blur(this.firstChild)}).bind("keydown",function(D){if(!B.options.noKeyboard){return B._keydown(D.keyCode,this.firstChild)}});this.element.bind("mousedown.slider",function(D){if(A(D.target).is(".ui-slider-handle")){return }B._click.apply(B,[D]);B.currentHandle.data("mouse").trigger(D);B.firstValue=B.firstValue+1});A.each(this.options.handles||[],function(D,E){B.moveTo(E.start,D,true)});if(!isNaN(this.options.startValue)){this.moveTo(this.options.startValue,0,true)}this.previousHandle=A(this.handle[0]);if(this.handle.length==2&&this.options.range){this._createRange()}},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");if(this.handle&&this.handle.length){this.handle.unwrap("a");this.handle.each(function(){var B=A(this).data("mouse");B&&B._mouseDestroy()})}this.generated&&this.generated.remove()},_start:function(B,C){var D=this.options;if(D.disabled){return false}this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(!this.currentHandle){this._focus(this.previousHandle,true)}this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:B.pageY-this.handleOffset.top,left:B.pageX-this.handleOffset.left};this.firstValue=this.value();this._propagate("start",B);this._drag(B,C);return true},_drag:function(C,E){var F=this.options;var B={top:C.pageY-this.offset.top-this.clickOffset.top,left:C.pageX-this.offset.left-this.clickOffset.left};if(!this.currentHandle){this._focus(this.previousHandle,true)}B.left=this._translateLimits(B.left,"x");B.top=this._translateLimits(B.top,"y");if(F.stepping.x){var D=this._convertValue(B.left,"x");D=this._round(D/F.stepping.x)*F.stepping.x;B.left=this._translateValue(D,"x")}if(F.stepping.y){var D=this._convertValue(B.top,"y");D=this._round(D/F.stepping.y)*F.stepping.y;B.top=this._translateValue(D,"y")}B.left=this._translateRange(B.left,"x");B.top=this._translateRange(B.top,"y");if(F.axis!="vertical"){this.currentHandle.css({left:B.left})}if(F.axis!="horizontal"){this.currentHandle.css({top:B.top})}this.currentHandle.data("mouse").sliderValue={x:this._round(this._convertValue(B.left,"x"))||0,y:this._round(this._convertValue(B.top,"y"))||0};if(this.rangeElement){this._updateRange()}this._propagate("slide",C);return false},_stop:function(B){this._propagate("stop",B);if(this.firstValue!=this.value()){this._propagate("change",B)}this._focus(this.currentHandle,true);return false},_round:function(B){return this.options.round?parseInt(B,10):parseFloat(B)},_setData:function(B,C){A.widget.prototype._setData.apply(this,arguments);if(/min|max|steps/.test(B)){this._initBoundaries()}if(B=="range"){C?this.handle.length==2&&this._createRange():this._removeRange()}},_initBoundaries:function(){var B=this.element[0],C=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};A.extend(C,{axis:C.axis||(B.offsetWidth").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.element);this._updateRange()},_removeRange:function(){this.rangeElement.remove();this.rangeElement=null},_updateRange:function(){var C=this.options.axis=="vertical"?"top":"left";var B=this.options.axis=="vertical"?"height":"width";this.rangeElement.css(C,(this._round(A(this.handle[0]).css(C))||0)+this._handleSize(0,this.options.axis=="vertical"?"y":"x")/2);this.rangeElement.css(B,(this._round(A(this.handle[1]).css(C))||0)-(this._round(A(this.handle[0]).css(C))||0))},_getRange:function(){return this.rangeElement?this._convertValue(this._round(this.rangeElement.css(this.options.axis=="vertical"?"height":"width")),this.options.axis=="vertical"?"y":"x"):null},_handleIndex:function(){return this.handle.index(this.currentHandle[0])},value:function(D,B){if(this.handle.length==1){this.currentHandle=this.handle}if(!B){B=this.options.axis=="vertical"?"y":"x"}var C=A(D!=undefined&&D!==null?this.handle[D]||D:this.currentHandle);if(C.data("mouse").sliderValue){return this._round(C.data("mouse").sliderValue[B])}else{return this._round(((this._round(C.css(B=="x"?"left":"top"))/(this.actualSize[B=="x"?"width":"height"]-this._handleSize(D,B)))*this.options.realMax[B])+this.options.min[B])}},_convertValue:function(C,B){return this.options.min[B]+(C/(this.actualSize[B=="x"?"width":"height"]-this._handleSize(null,B)))*this.options.realMax[B]},_translateValue:function(C,B){return((C-this.options.min[B])/this.options.realMax[B])*(this.actualSize[B=="x"?"width":"height"]-this._handleSize(null,B))},_translateRange:function(D,B){if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&D>=this._translateValue(this.value(1),B)){D=this._translateValue(this.value(1,B)-this._oneStep(B),B)}if(this.currentHandle[0]==this.handle[1]&&D<=this._translateValue(this.value(0),B)){D=this._translateValue(this.value(0,B)+this._oneStep(B),B)}}if(this.options.handles){var C=this.options.handles[this._handleIndex()];if(Dthis._translateValue(C.max,B)){D=this._translateValue(C.max,B)}}}return D},_translateLimits:function(C,B){if(C>=this.actualSize[B=="x"?"width":"height"]-this._handleSize(null,B)){C=this.actualSize[B=="x"?"width":"height"]-this._handleSize(null,B)}if(C<=0){C=0}return C},_handleSize:function(C,B){return A(C!=undefined&&C!==null?this.handle[C]:this.currentHandle)[0]["offset"+(B=="x"?"Width":"Height")]},_oneStep:function(B){return this.options.stepping[B]||1},_pageStep:function(B){return 10},moveTo:function(F,E,G){var H=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(E==undefined&&!this.currentHandle&&this.handle.length!=1){return false}if(E==undefined&&!this.currentHandle){E=0}if(E!=undefined){this.currentHandle=this.previousHandle=A(this.handle[E]||E)}if(F.x!==undefined&&F.y!==undefined){var B=F.x,I=F.y}else{var B=F,I=F}if(B!==undefined&&B.constructor!=Number){var D=/^\-\=/.test(B),C=/^\+\=/.test(B);if(D||C){B=this.value(null,"x")+this._round(B.replace(D?"=":"+=",""))}else{B=isNaN(this._round(B))?undefined:this._round(B)}}if(I!==undefined&&I.constructor!=Number){var D=/^\-\=/.test(I),C=/^\+\=/.test(I);if(D||C){I=this.value(null,"y")+this._round(I.replace(D?"=":"+=",""))}else{I=isNaN(this._round(I))?undefined:this._round(I)}}if(H.axis!="vertical"&&B!==undefined){if(H.stepping.x){B=this._round(B/H.stepping.x)*H.stepping.x}B=this._translateValue(B,"x");B=this._translateLimits(B,"x");B=this._translateRange(B,"x");H.animate?this.currentHandle.stop().animate({left:B},(Math.abs(parseInt(this.currentHandle.css("left"),10)-B))*(!isNaN(parseInt(H.animate,10))?H.animate:5)):this.currentHandle.css({left:B})}if(H.axis!="horizontal"&&I!==undefined){if(H.stepping.y){I=this._round(I/H.stepping.y)*H.stepping.y}I=this._translateValue(I,"y");I=this._translateLimits(I,"y");I=this._translateRange(I,"y");H.animate?this.currentHandle.stop().animate({top:I},(Math.abs(parseInt(this.currentHandle.css("top"),10)-I))*(!isNaN(parseInt(H.animate,10))?H.animate:5)):this.currentHandle.css({top:I})}if(this.rangeElement){this._updateRange()}this.currentHandle.data("mouse").sliderValue={x:this._round(this._convertValue(B,"x"))||0,y:this._round(this._convertValue(I,"y"))||0};if(!G){this._propagate("start",null);this._propagate("slide",null);this._propagate("stop",null);this._propagate("change",null)}},_propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);this.element.triggerHandler(C=="slide"?C:"slide"+C,[B,this.ui()],this.options[C])},plugins:{},ui:function(B){return{options:this.options,handle:this.currentHandle,value:this.options.axis!="both"||!this.options.axis?this._round(this.value(null,this.options.axis=="vertical"?"y":"x")):{x:this._round(this.value(null,"x")),y:this._round(this.value(null,"y"))},range:this._getRange()}}});A.extend(A.ui.slider,{getter:"value",version:"1.6",defaults:{animate:false,distance:1,handle:".ui-slider-handle",round:true}})})(jQuery) \ No newline at end of file diff --git a/sites/all/libraries/jquery.ui/ui/minified/ui.sortable.min.js b/sites/all/libraries/jquery.ui/ui/minified/ui.sortable.min.js new file mode 100644 index 0000000..e17e6fc --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/minified/ui.sortable.min.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Sortable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Sortables + * + * Depends: + * ui.core.js + */ (function(A){A.widget("ui.sortable",A.extend({},A.ui.mouse,{_init:function(){var B=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var B=this.items.length-1;B>=0;B--){this.items[B].item.removeData("sortable-item")}},_mouseCapture:function(E,F){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(E);var D=null,C=this,B=A(E.target).parents().each(function(){if(A.data(this,"sortable-item")==C){D=A(this);return false}});if(A.data(E.target,"sortable-item")==C){D=A(E.target)}if(!D){return false}if(this.options.handle&&!F){var G=false;A(this.options.handle,D).find("*").andSelf().each(function(){if(this==E.target){G=true}});if(!G){return false}}this.currentItem=D;this._removeCurrentsFromItems();return true},_mouseStart:function(D,E,B){var F=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(D);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};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");A.extend(this.offset,{click:{left:D.pageX-this.offset.left,top:D.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});if(F.cursorAt){this._adjustOffsetFromHelper(F.cursorAt)}this.originalPosition=this._generatePosition(D);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(F.containment){this._setContainment()}this._propagate("start",D);if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!B){for(var C=this.containers.length-1;C>=0;C--){this.containers[C]._propagate("activate",D,this)}}if(A.ui.ddmanager){A.ui.ddmanager.current=this}if(A.ui.ddmanager&&!F.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,D)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(D);return true},_mouseDrag:function(E){this.position=this._generatePosition(E);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}A.ui.plugin.call(this,"sort",[E,this._ui()]);this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var C=this.items.length-1;C>=0;C--){var D=this.items[C],B=D.item[0],F=this._intersectsWithPointer(D);if(!F){continue}if(B!=this.currentItem[0]&&this.placeholder[F==1?"next":"prev"]()[0]!=B&&!A.ui.contains(this.placeholder[0],B)&&(this.options.type=="semi-dynamic"?!A.ui.contains(this.element[0],B):true)){this.direction=F==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(D)){this.options.sortIndicator.call(this,E,D)}else{break}this._propagate("change",E);break}}this._contactContainers(E);if(A.ui.ddmanager){A.ui.ddmanager.drag(this,E)}this._trigger("sort",E,this._ui());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(C,D){if(!C){return }if(A.ui.ddmanager&&!this.options.dropBehaviour){A.ui.ddmanager.drop(this,C)}if(this.options.revert){var B=this;var E=B.placeholder.offset();B.reverting=true;A(this.helper).animate({left:E.left-this.offset.parent.left-B.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:E.top-this.offset.parent.top-B.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){B._clear(C)})}else{this._clear(C,D)}return false},cancel:function(){if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var B=this.containers.length-1;B>=0;B--){this.containers[B]._propagate("deactivate",null,this);if(this.containers[B].containerCache.over){this.containers[B]._propagate("out",null,this);this.containers[B].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}A.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){A(this.domPosition.prev).after(this.currentItem)}else{A(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(D){var B=this._getItemsAsjQuery(D&&D.connected);var C=[];D=D||{};A(B).each(function(){var E=(A(D.item||this).attr(D.attribute||"id")||"").match(D.expression||(/(.+)[-=_](.+)/));if(E){C.push((D.key||E[1]+"[]")+"="+(D.key&&D.expression?E[1]:E[2]))}});return C.join("&")},toArray:function(D){var B=this._getItemsAsjQuery(D&&D.connected);var C=[];D=D||{};B.each(function(){C.push(A(D.item||this).attr(D.attribute||"id")||"")});return C},_intersectsWith:function(K){var D=this.positionAbs.left,C=D+this.helperProportions.width,J=this.positionAbs.top,I=J+this.helperProportions.height;var E=K.left,B=E+K.width,L=K.top,H=L+K.height;var M=this.offset.click.top,G=this.offset.click.left;var F=(J+M)>L&&(J+M)E&&(D+G)K[this.floating?"width":"height"])){return F}else{return(E0?"down":"up")},_getDragHorizontalDirection:function(){var B=this.positionAbs.left-this.lastPositionAbs.left;return B!=0&&(B>0?"right":"left")},refresh:function(B){this._refreshItems(B);this.refreshPositions()},_getItemsAsjQuery:function(G){var C=this;var B=[];var E=[];if(this.options.connectWith&&G){for(var F=this.options.connectWith.length-1;F>=0;F--){var I=A(this.options.connectWith[F]);for(var D=I.length-1;D>=0;D--){var H=A.data(I[D],"sortable");if(H&&H!=this&&!H.options.disabled){E.push([A.isFunction(H.options.items)?H.options.items.call(H.element):A(H.options.items,H.element).not(".ui-sortable-helper"),H])}}}}E.push([A.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):A(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var F=E.length-1;F>=0;F--){E[F][0].each(function(){B.push(this)})}return A(B)},_removeCurrentsFromItems:function(){var D=this.currentItem.find(":data(sortable-item)");for(var C=0;C=0;E--){var J=A(this.options.connectWith[E]);for(var D=J.length-1;D>=0;D--){var G=A.data(J[D],"sortable");if(G&&G!=this&&!G.options.disabled){F.push([A.isFunction(G.options.items)?G.options.items.call(G.element[0],B,{item:this.currentItem}):A(G.options.items,G.element),G]);this.containers.push(G)}}}}for(var E=F.length-1;E>=0;E--){var I=F[E][1];var C=F[E][0];for(var D=0,K=C.length;D=0;D--){var E=this.items[D];if(E.instance!=this.currentContainer&&this.currentContainer&&E.item[0]!=this.currentItem[0]){continue}var C=this.options.toleranceElement?A(this.options.toleranceElement,E.item):E.item;if(!B){if(this.options.accurateIntersection){E.width=C.outerWidth();E.height=C.outerHeight()}else{E.width=C[0].offsetWidth;E.height=C[0].offsetHeight}}var F=C.offset();E.left=F.left;E.top=F.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var D=this.containers.length-1;D>=0;D--){var F=this.containers[D].element.offset();this.containers[D].containerCache.left=F.left;this.containers[D].containerCache.top=F.top;this.containers[D].containerCache.width=this.containers[D].element.outerWidth();this.containers[D].containerCache.height=this.containers[D].element.outerHeight()}}},_createPlaceholder:function(D){var B=D||this,E=B.options;if(!E.placeholder||E.placeholder.constructor==String){var C=E.placeholder;E.placeholder={element:function(){var F=A(document.createElement(B.currentItem[0].nodeName)).addClass(C||B.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!C){F.style.visibility="hidden";document.body.appendChild(F);F.innerHTML=B.currentItem[0].innerHTML.replace(/name\=\"[^\"\']+\"/g,"").replace(/jQuery[0-9]+\=\"[^\"\']+\"/g,"");document.body.removeChild(F)}return F},update:function(F,G){if(C&&!E.forcePlaceholderSize){return }if(!G.height()){G.height(B.currentItem.innerHeight()-parseInt(B.currentItem.css("paddingTop")||0,10)-parseInt(B.currentItem.css("paddingBottom")||0,10))}if(!G.width()){G.width(B.currentItem.innerWidth()-parseInt(B.currentItem.css("paddingLeft")||0,10)-parseInt(B.currentItem.css("paddingRight")||0,10))}}}}B.placeholder=A(E.placeholder.element.call(B.element,B.currentItem));B.currentItem.after(B.placeholder);E.placeholder.update(B,B.placeholder)},_contactContainers:function(D){for(var C=this.containers.length-1;C>=0;C--){if(this._intersectsWith(this.containers[C].containerCache)){if(!this.containers[C].containerCache.over){if(this.currentContainer!=this.containers[C]){var H=10000;var G=null;var E=this.positionAbs[this.containers[C].floating?"left":"top"];for(var B=this.items.length-1;B>=0;B--){if(!A.ui.contains(this.containers[C].element[0],this.items[B].item[0])){continue}var F=this.items[B][this.containers[C].floating?"left":"top"];if(Math.abs(F-E)this.containment[2]){B.left=this.containment[2]-this.helperProportions.width}if(B.top+this.helperProportions.height>this.containment[3]){B.top=this.containment[3]-this.helperProportions.height}}if(G.grid){var F=this.originalPosition.top+Math.round((B.top-this.originalPosition.top)/G.grid[1])*G.grid[1];B.top=this.containment?(!(Fthis.containment[3])?F:(!(Fthis.containment[2])?E:(!(E=0;B--){if(A.ui.contains(this.containers[B].element[0],this.currentItem[0])){this.containers[B]._propagate("update",C,this,D);this.containers[B]._propagate("receive",C,this,D)}}}for(var B=this.containers.length-1;B>=0;B--){this.containers[B]._propagate("deactivate",C,this,D);if(this.containers[B].containerCache.over){this.containers[B]._propagate("out",C,this);this.containers[B].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval){this._propagate("beforeStop",C,null,D);this._propagate("stop",C,null,D);return false}this._propagate("beforeStop",C,null,D);this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.options.helper!="original"){this.helper.remove()}this.helper=null;this._propagate("stop",C,null,D);return true},_propagate:function(F,B,C,D){A.ui.plugin.call(this,F,[B,this._ui(C)]);var E=!D?this.element.triggerHandler(F=="sort"?F:"sort"+F,[B,this._ui(C)],this.options[F]):true;if(E===false){this.cancel()}},plugins:{},_ui:function(C){var B=C||this;return{helper:B.helper,placeholder:B.placeholder||A([]),position:B.position,absolutePosition:B.positionAbs,item:B.currentItem,sender:C?C.element:null}}}));A.extend(A.ui.sortable,{getter:"serialize toArray",version:"1.6",defaults:{accurateIntersection:true,appendTo:"parent",cancel:":input",delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,helper:"original",items:"> *",scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,sortIndicator:A.ui.sortable.prototype._rearrange,tolerance:"default",zIndex:1000}});A.ui.plugin.add("sortable","cursor",{start:function(D,E){var C=A("body"),B=A(this).data("sortable");if(C.css("cursor")){B.options._cursor=C.css("cursor")}C.css("cursor",B.options.cursor)},beforeStop:function(C,D){var B=A(this).data("sortable");if(B.options._cursor){A("body").css("cursor",B.options._cursor)}}});A.ui.plugin.add("sortable","opacity",{start:function(D,E){var C=E.helper,B=A(this).data("sortable");if(C.css("opacity")){B.options._opacity=C.css("opacity")}C.css("opacity",B.options.opacity)},beforeStop:function(C,D){var B=A(this).data("sortable");if(B.options._opacity){A(D.helper).css("opacity",B.options._opacity)}}});A.ui.plugin.add("sortable","scroll",{start:function(C,D){var B=A(this).data("sortable"),E=B.options;if(B.scrollParent[0]!=document&&B.scrollParent[0].tagName!="HTML"){B.overflowOffset=B.scrollParent.offset()}},sort:function(D,E){var C=A(this).data("sortable"),F=C.options,B=false;if(C.scrollParent[0]!=document&&C.scrollParent[0].tagName!="HTML"){if((C.overflowOffset.top+C.scrollParent[0].offsetHeight)-D.pageY=this.$lis.length){I.appendTo(this.element);F.appendTo(this.element[0].parentNode)}else{I.insertBefore(this.$lis[C]);F.insertBefore(this.$panels[C])}G.disabled=A.map(G.disabled,function(K,J){return K>=C?++K:K});this._tabify();if(this.$tabs.length==1){I.addClass(G.selectedClass);F.removeClass(G.hideClass);var B=A.data(this.$tabs[0],"load.tabs");if(B){this.load(C,B)}}this._trigger("add",null,this.ui(this.$tabs[C],this.$panels[C]))},remove:function(B){var D=this.options,E=this.$lis.eq(B).remove(),C=this.$panels.eq(B).remove();if(E.hasClass(D.selectedClass)&&this.$tabs.length>1){this.select(B+(B+1=B?--G:G});this._tabify();this._trigger("remove",null,this.ui(E.find("a")[0],C[0]))},enable:function(B){var C=this.options;if(A.inArray(B,C.disabled)==-1){return }var D=this.$lis.eq(B).removeClass(C.disabledClass);if(A.browser.safari){D.css("display","inline-block");setTimeout(function(){D.css("display","block")},0)}C.disabled=A.grep(C.disabled,function(F,E){return F!=B});this._trigger("enable",null,this.ui(this.$tabs[B],this.$panels[B]))},disable:function(C){var B=this,D=this.options;if(C!=D.selected){this.$lis.eq(C).addClass(D.disabledClass);D.disabled.push(C);D.disabled.sort();this._trigger("disable",null,this.ui(this.$tabs[C],this.$panels[C]))}},select:function(B){if(typeof B=="string"){B=this.$tabs.index(this.$tabs.filter("[href$="+B+"]")[0])}this.$tabs.eq(B).trigger(this.options.event+".tabs")},load:function(G,K){var L=this,D=this.options,E=this.$tabs.eq(G),J=E[0],H=K==undefined||K===false,B=E.data("load.tabs");K=K||function(){};if(!B||!H&&A.data(J,"cache.tabs")){K();return }var M=function(N){var O=A(N),P=O.find("*:last");return P.length&&P.is(":not(img)")&&P||O};var C=function(){L.$tabs.filter("."+D.loadingClass).removeClass(D.loadingClass).each(function(){if(D.spinner){M(this).parent().html(M(this).data("label.tabs"))}});L.xhr=null};if(D.spinner){var I=M(J).html();M(J).wrapInner("").find("em").data("label.tabs",I).html(D.spinner)}var F=A.extend({},D.ajaxOptions,{url:B,success:function(P,N){A(L._sanitizeSelector(J.hash)).html(P);C();if(D.cache){A.data(J,"cache.tabs",true)}L._trigger("load",null,L.ui(L.$tabs[G],L.$panels[G]));try{D.ajaxOptions.success(P,N)}catch(O){}K()}});if(this.xhr){this.xhr.abort();C()}E.addClass(D.loadingClass);L.xhr=A.ajax(F)},url:function(C,B){this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs",B)},ui:function(C,B){return{options:this.options,tab:C,panel:B,index:this.$tabs.index(C)}}});A.extend(A.ui.tabs,{version:"1.6",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,deselectable:false,deselectableClass:"ui-tabs-deselectable",disabled:[],disabledClass:"ui-tabs-disabled",event:"click",fx:null,hideClass:"ui-tabs-hide",idPrefix:"ui-tabs-",loadingClass:"ui-tabs-loading",navClass:"ui-tabs-nav",panelClass:"ui-tabs-panel",panelTemplate:"
          ",selectedClass:"ui-tabs-selected",spinner:"Loading…",tabTemplate:'
        10. #{label}
        11. '}});A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(C,F){F=F||false;var B=this,E=this.options.selected;function G(){B.rotation=setInterval(function(){E=++E35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(3(A){A.2.q=3(B){n a.s(3(){1 D=A(a),C=["y","w","z"];1 H=A.2.f(D,B.7.i||"4");1 G=B.7.h||"6";A.2.u(D,C);D.8();1 J=A.2.k(D).9({j:"e"});1 E=(G=="6")?"d":"b";1 I=(G=="6")?J.d():J.b();5(H=="8"){J.9(E,0)}1 F={};F[E]=H=="8"?I:0;J.l(F,B.v,B.7.m,3(){5(H=="4"){D.4()}A.2.x(D,C);A.2.t(D);5(B.c){B.c.o(D[0],p)}D.r()})})}})(g)',46,46,'|var|effects|function|hide|if|vertical|options|show|css|this|width|callback|height|hidden|setMode|jQuery|direction|mode|overflow|createWrapper|animate|easing|return|apply|arguments|blind|dequeue|queue|removeWrapper|save|duration|top|restore|position|left||||||||||'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/effects.bounce.packed.js b/sites/all/libraries/jquery.ui/ui/packed/effects.bounce.packed.js new file mode 100644 index 0000000..f7de537 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/effects.bounce.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Bounce 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Bounce + * + * Depends: + * effects.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(d(A){A.9.X=d(B){W f.q(d(){4 E=A(f),K=["V","j","i"];4 J=A.9.T(E,B.6.U||"Z");4 M=B.6.10||"k";4 C=B.6.s||16;4 D=B.6.S||5;4 G=B.14||11;8(/h|b/.12(J)){K.x("g")}A.9.w(E,K);E.h();A.9.z(E);4 F=(M=="k"||M=="Q")?"j":"i";4 O=(M=="k"||M=="i")?"7":"y";4 C=B.6.s||(F=="j"?E.R({n:m})/3:E.P({n:m})/3);8(J=="h"){E.l("g",0).l(F,O=="7"?-C:C)}8(J=="b"){C=C/(D*2)}8(J!="b"){D--}8(J=="h"){4 H={g:1};H[F]=(O=="7"?"+=":"-=")+C;E.a(H,G/2,B.6.c);C=C/2;D--}v(4 I=0;I35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(6(A){A.3.r=6(B){s l.i(6(){1 F=A(l),J=["7","j","k","9","a"];1 I=A.3.x(F,B.d.N||"8");1 K=B.d.w||"4";A.3.P(F,J);F.5();1 C=A.3.t(F).b({Q:"n"});1 E=F[0].p=="z"?C:F;1 G={c:(K=="4")?"9":"a",7:(K=="4")?"j":"k"};1 D=(K=="4")?E.9():E.a();e(I=="5"){E.b(G.c,0);E.b(G.7,D/2)}1 H={};H[G.c]=I=="5"?D:0;H[G.7]=I=="5"?0:D/2;E.O(H,{i:L,g:B.g,f:B.d.f,v:6(){e(I=="8"){F.8()}A.3.y(F,J);A.3.u(F);e(B.h){B.h.m(F[0],o)}F.q()}})})}})(M)',53,53,'|var||effects|vertical|show|function|position|hide|height|width|css|size|options|if|easing|duration|callback|queue|top|left|this|apply|hidden|arguments|tagName|dequeue|clip|return|createWrapper|removeWrapper|complete|direction|setMode|restore|IMG||||||||||||false|jQuery|mode|animate|save|overflow'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/effects.core.packed.js b/sites/all/libraries/jquery.ui/ui/packed/effects.core.packed.js new file mode 100644 index 0000000..bc1a485 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/effects.core.packed.js @@ -0,0 +1,9 @@ +/* + * jQuery UI Effects 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/ + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(b(C){C.o=C.o||{};C.17(C.o,{2R:"@2Q",2P:b(F,G){1T(d E=0;E\');d I=F.1q();8(F.j("t")=="1z"){I.j({t:"1A"});F.j({t:"1A"})}l{d H=F.j("1d");8(1N(h(H))){H="2k"}d G=F.j("18");8(1N(h(G))){G="2k"}I.j({t:F.j("t"),1d:H,18:G,35:F.j("z-36")}).1b();F.j({t:"1A",1d:0,18:0})}I.j(E);6 I},3a:b(E){8(E.1q().T("1Q")=="1P"){6 E.1q().39(E)}6 E},38:b(F,G,E,H){H=H||{};C.1r(G,b(J,I){1g=F.26(I);8(1g[0]>0){H[I]=1g[0]*E+1g[1]}});6 H},19:b(G,H,J,I){d E=(1a J=="b"?J:(I?I:V));d F=(1a J=="1J"?J:V);6 e.1r(b(){d O={};d M=C(e);d N=M.T("w")||"";8(1a N=="1J"){N=N["1I"]}8(G.q){M.37(G.q)?G.p=G.q:G.r=G.q}d K=C.17({},(1h.1f?1h.1f.2t(e,V):e.2v));8(G.r){M.12(G.r)}8(G.p){M.13(G.p)}d L=C.17({},(1h.1f?1h.1f.2t(e,V):e.2v));8(G.r){M.13(G.r)}8(G.p){M.12(G.p)}1T(d P 3k L){8(1a L[P]!="b"&&L[P]&&P.1v("3l")==-1&&P.1v("1s")==-1&&L[P]!=K[P]&&(P.1y(/1G/i)||(!P.1y(/1G/i)&&!1N(h(L[P],10))))&&(K.t!="1z"||(K.t=="1z"&&!P.1y(/18|1d|2e|2x/)))){O[P]=L[P]}}M.2D(O,H,F,b(){8(1a C(e).T("w")=="1J"){C(e).T("w")["1I"]="";C(e).T("w")["1I"]=N}l{C(e).T("w",N)}8(G.r){C(e).12(G.r)}8(G.p){C(e).13(G.p)}8(E){E.k(e,g)}})})}});C.S.17({2f:C.S.1b,22:C.S.1k,2c:C.S.q,2a:C.S.12,2d:C.S.13,20:C.S.1X,1o:b(E,G,F,H){6 C.o[E]?C.o[E].2U(e,{2T:E,2O:G||{},1n:F,1p:H}):V},1b:b(){8(!g[0]||(g[0].14==1H||/(1F|1E|1D)/.1x(g[0]))){6 e.2f.k(e,g)}l{d E=g[1]||{};E["1U"]="1b";6 e.1o.k(e,[g[0],E,g[2]||E.1n,g[3]||E.1p])}},1k:b(){8(!g[0]||(g[0].14==1H||/(1F|1E|1D)/.1x(g[0]))){6 e.22.k(e,g)}l{d E=g[1]||{};E["1U"]="1k";6 e.1o.k(e,[g[0],E,g[2]||E.1n,g[3]||E.1p])}},q:b(){8(!g[0]||(g[0].14==1H||/(1F|1E|1D)/.1x(g[0]))||(g[0].14==3e)){6 e.2c.k(e,g)}l{d E=g[1]||{};E["1U"]="q";6 e.1o.k(e,[g[0],E,g[2]||E.1n,g[3]||E.1p])}},12:b(F,E,H,G){6 E?C.o.19.k(e,[{r:F},E,H,G]):e.2a(F)},13:b(F,E,H,G){6 E?C.o.19.k(e,[{p:F},E,H,G]):e.2d(F)},1X:b(F,E,H,G){6 E?C.o.19.k(e,[{q:F},E,H,G]):e.20(F)},29:b(E,G,F,I,H){6 C.o.19.k(e,[{r:G,p:E},F,I,H])},32:b(){6 e.29.k(e,g)},26:b(E){d F=e.j(E),G=[];C.1r(["3i","3h","%","3d"],b(H,I){8(F.1v(I)>0){G=[1l(F),I]}});6 G}});C.1r(["23","3g","2Z","3n","2V","1G","2L"],b(F,E){C.2I.2K[E]=b(G){8(G.2H==0){G.R=D(G.21,E);G.1e=B(G.1e)}G.21.w[E]="1W("+[c.1w(c.1M(h((G.1B*(G.1e[0]-G.R[0]))+G.R[0]),f),0),c.1w(c.1M(h((G.1B*(G.1e[1]-G.R[1]))+G.R[1]),f),0),c.1w(c.1M(h((G.1B*(G.1e[2]-G.R[2]))+G.R[2]),f),0)].2W(",")+")"}});b B(F){d E;8(F&&F.14==2S&&F.1s==3){6 F}8(E=/1W\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.15(F)){6[h(E[1]),h(E[2]),h(E[3])]}8(E=/1W\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.15(F)){6[1l(E[1])*2.1C,1l(E[2])*2.1C,1l(E[3])*2.1C]}8(E=/#([a-W-X-9]{2})([a-W-X-9]{2})([a-W-X-9]{2})/.15(F)){6[h(E[1],16),h(E[2],16),h(E[3],16)]}8(E=/#([a-W-X-9])([a-W-X-9])([a-W-X-9])/.15(F)){6[h(E[1]+E[1],16),h(E[2]+E[2],16),h(E[3]+E[3],16)]}8(E=/4D\\(0, 0, 0, 0\\)/.15(F)){6 A["1m"]}6 A[C.4C(F).4B()]}b D(G,E){d F;4z{F=C.4A(G,E);8(F!=""&&F!="1m"||C.4E(G,"4F")){U}E="23"}4J(G=G.3o);6 B(F)}d A={4H:[0,f,f],4G:[1Y,f,f],4y:[27,27,4x],4L:[0,0,0],4o:[0,0,f],4n:[2C,42,42],4l:[0,f,f],4m:[0,0,Y],4q:[0,Y,Y],4r:[1L,1L,1L],4w:[0,28,0],4v:[4u,4s,2b],4t:[Y,0,Y],4K:[52,2b,47],54:[f,1Z,0],4Y:[51,50,4Z],53:[Y,0,0],4W:[4P,4O,4N],4M:[4Q,0,1j],4R:[f,0,f],4V:[f,4X,0],4U:[0,n,0],4T:[v,0,4S],4p:[1Y,24,1Z],4j:[3H,3G,24],3F:[2y,f,f],3D:[2z,3E,2z],3I:[1j,1j,1j],3J:[f,3O,3N],3M:[f,f,2y],3K:[0,f,0],4k:[f,0,f],3L:[n,0,0],3C:[0,0,n],3B:[n,n,0],3t:[f,2C,0],3s:[f,1i,3r],3p:[n,0,n],3q:[n,0,n],3u:[f,0,0],3v:[1i,1i,1i],3A:[f,f,f],3z:[f,f,0],1m:[f,f,f]};C.u.3y=C.u.2w;C.17(C.u,{2A:"2B",2w:b(F,G,E,I,H){6 C.u[C.u.2A](F,G,E,I,H)},3w:b(F,G,E,I,H){6 I*(G/=H)*G+E},2B:b(F,G,E,I,H){6-I*(G/=H)*(G-2)+E},3x:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G+E}6-I/2*((--G)*(G-2)-1)+E},3P:b(F,G,E,I,H){6 I*(G/=H)*G*G+E},3Q:b(F,G,E,I,H){6 I*((G=G/H-1)*G*G+1)+E},4b:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G+E}6 I/2*((G-=2)*G*G+2)+E},4a:b(F,G,E,I,H){6 I*(G/=H)*G*G*G+E},49:b(F,G,E,I,H){6-I*((G=G/H-1)*G*G*G-1)+E},46:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G*G+E}6-I/2*((G-=2)*G*G*G-2)+E},48:b(F,G,E,I,H){6 I*(G/=H)*G*G*G*G+E},4c:b(F,G,E,I,H){6 I*((G=G/H-1)*G*G*G*G+1)+E},4d:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G*G*G+E}6 I/2*((G-=2)*G*G*G*G+2)+E},4i:b(F,G,E,I,H){6-I*c.2j(G/H*(c.m/2))+I+E},4h:b(F,G,E,I,H){6 I*c.1c(G/H*(c.m/2))+E},4g:b(F,G,E,I,H){6-I/2*(c.2j(c.m*G/H)-1)+E},4e:b(F,G,E,I,H){6(G==0)?E:I*c.Q(2,10*(G/H-1))+E},4f:b(F,G,E,I,H){6(G==H)?E+I:I*(-c.Q(2,-10*G/H)+1)+E},45:b(F,G,E,I,H){8(G==0){6 E}8(G==H){6 E+I}8((G/=H/2)<1){6 I/2*c.Q(2,10*(G-1))+E}6 I/2*(-c.Q(2,-10*--G)+2)+E},44:b(F,G,E,I,H){6-I*(c.1t(1-(G/=H)*G)-1)+E},3V:b(F,G,E,I,H){6 I*c.1t(1-(G=G/H-1)*G)+E},3U:b(F,G,E,I,H){8((G/=H/2)<1){6-I/2*(c.1t(1-G*G)-1)+E}6 I/2*(c.1t(1-(G-=2)*G)+1)+E},3T:b(F,H,E,L,K){d I=1.11;d J=0;d G=L;8(H==0){6 E}8((H/=K)==1){6 E+L}8(!J){J=K*0.3}8(G35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5(A){A.4.z=5(B){x e.l(5(){3 E=A(e),D=["w","b","8","d"];3 I=A.4.M(E,B.6.Q||"a");3 H=B.6.N||"8";A.4.L(E,D);E.7();A.4.n(E);3 F=(H=="h"||H=="o")?"b":"8";3 C=(H=="h"||H=="8")?"9":"t";3 J=B.6.q||(F=="b"?E.r({k:i})/2:E.s({k:i})/2);c(I=="7"){E.m("d",0).m(F,C=="9"?-J:J)}3 G={d:I=="7"?1:0};G[F]=(I=="7"?(C=="9"?"+=":"-="):(C=="9"?"-=":"+="))+J;E.O(G,{l:u,f:B.f,g:B.6.g,P:5(){c(I=="a"){E.a()}A.4.R(E,D);A.4.v(E);c(B.j){B.j.y(e,K)}E.S()}})})}})(p)',55,55,'|||var|effects|function|options|show|left|pos|hide|top|if|opacity|this|duration|easing|up|true|callback|margin|queue|css|createWrapper|down|jQuery|distance|outerHeight|outerWidth|neg|false|removeWrapper|position|return|apply|drop|||||||||||arguments|save|setMode|direction|animate|complete|mode|restore|dequeue'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/effects.explode.packed.js b/sites/all/libraries/jquery.ui/ui/packed/effects.explode.packed.js new file mode 100644 index 0000000..3d91767 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/effects.explode.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Explode 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Explode + * + * Depends: + * effects.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(d(A){A.h.i=d(B){W j.V(d(){8 I=B.4.f?7.r(7.v(B.4.f)):3;8 E=B.4.f?7.r(7.v(B.4.f)):3;B.4.5=B.4.5=="Z"?(A(j).R(":e")?"u":"6"):B.4.5;8 H=A(j).6().9("c","w");8 J=H.14();J.a-=n(H.9("13"))||0;J.b-=n(H.9("16"))||0;8 G=H.z(t);8 C=H.y(t);s(8 F=0;F").9({o:"k",c:"e",b:-D*(G/E),a:-F*(C/I)}).P().L("h-i").9({o:"k",K:"w",15:G/E,12:C/I,b:J.b+D*(G/E)+(B.4.5=="6"?(D-7.g(E/2))*(G/E):0),a:J.a+F*(C/I)+(B.4.5=="6"?(F-7.g(I/2))*(C/I):0),l:B.4.5=="6"?0:1}).11({b:J.b+D*(G/E)+(B.4.5=="6"?0:(D-7.g(E/2))*(G/E)),a:J.a+F*(C/I)+(B.4.5=="6"?0:(F-7.g(I/2))*(C/I)),l:B.4.5=="6"?1:0},B.x||p)}}Y(d(){B.4.5=="6"?H.9({c:"e"}):H.9({c:"e"}).u();T(B.q){B.q.S(H[0])}H.U();A(".h-i").X()},B.x||p)})}})(10)',62,69,'||||options|mode|show|Math|var|css|top|left|visibility|function|visible|pieces|floor|effects|explode|this|absolute|opacity|div|parseInt|position|500|callback|round|for|true|hide|sqrt|hidden|duration|outerHeight|outerWidth|||||||||||overflow|addClass|wrap|appendTo|body|parent|clone|is|apply|if|dequeue|queue|return|remove|setTimeout|toggle|jQuery|animate|height|marginTop|offset|width|marginLeft'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/effects.fold.packed.js b/sites/all/libraries/jquery.ui/ui/packed/effects.fold.packed.js new file mode 100644 index 0000000..c5cbb54 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/effects.fold.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Fold 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Fold + * + * Depends: + * effects.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(a(A){A.5.z=a(B){w i.v(a(){3 E=A(i),J=["P","S","t"];3 G=A.5.R(E,B.7.Q||"c");3 N=B.7.U||r;3 M=!(!B.7.m);A.5.n(E,J);E.8();3 D=A.5.p(E).h({s:"o"});3 H=((G=="8")!=M);3 F=H?["4","6"]:["6","4"];3 C=H?[D.4(),D.6()]:[D.6(),D.4()];3 I=/([0-9]+)%/.q(N);b(I){N=k(I[1])/l*C[G=="c"?0:1]}b(G=="8"){D.h(M?{6:0,4:N}:{6:N,4:0})}3 L={},K={};L[F[0]]=G=="8"?C[0]:N;K[F[1]]=G=="8"?C[1]:0;D.f(L,B.e/2,B.7.g).f(K,B.e/2,B.7.g,a(){b(G=="c"){E.c()}A.5.T(E,J);A.5.O(E);b(B.d){B.d.u(E[0],x)}E.y()})})}})(j)',57,57,'|||var|width|effects|height|options|show||function|if|hide|callback|duration|animate|easing|css|this|jQuery|parseInt|100|horizFirst|save|hidden|createWrapper|exec|15|overflow|left|apply|queue|return|arguments|dequeue|fold|||||||||||||||removeWrapper|position|mode|setMode|top|restore|size'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/effects.highlight.packed.js b/sites/all/libraries/jquery.ui/ui/packed/effects.highlight.packed.js new file mode 100644 index 0000000..79c731e --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/effects.highlight.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Highlight 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Highlight + * + * Depends: + * effects.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5(A){A.4.k=5(B){j 6.c(5(){1 E=A(6),D=["e","3","d"];1 H=A.4.i(E,B.7.h||"8");1 C=B.7.q||"#l";1 G=E.g("3");A.4.n(E,D);E.8();E.g({e:"p",3:C});1 F={3:G};2(H=="9"){F["d"]=0}E.o(F,{c:m,a:B.a,b:B.7.b,r:5(){2(H=="9"){E.9()}A.4.J(E,D);2(H=="8"&&A.I.u){6.t.s("v")}2(B.f){B.f.w(6,y)}E.x()}})})}})(z)',46,46,'|var|if|backgroundColor|effects|function|this|options|show|hide|duration|easing|queue|opacity|backgroundImage|callback|css|mode|setMode|return|highlight|ffff99|false|save|animate|none|color|complete|removeAttribute|style|msie|filter|apply|dequeue|arguments|jQuery|||||||||browser|restore'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/effects.pulsate.packed.js b/sites/all/libraries/jquery.ui/ui/packed/effects.pulsate.packed.js new file mode 100644 index 0000000..061c3b1 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/effects.pulsate.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Pulsate 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Pulsate + * + * Depends: + * effects.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(a(A){A.j.u=a(B){w e.n(a(){f 3=A(e);f h=A.j.s(3,B.4.y||"k");f b=B.4.v||5;c(h=="g"){b--}c(3.r(":q")){3.o("6",0);3.k();3.8({6:1},B.9/2,B.4.7);b=b-2}t(f C=0;C35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(b(A){A.8.18=b(B){u e.p(b(){4 F=A(e);4 C=A.X(r,{},B.9);4 H=A.8.v(F,B.9.h||"f");4 G=U(B.9.q)||17;C.11=r;4 E={6:F.6(),5:F.5()};4 D=G/l;F.2=(H=="f")?E:{6:E.6*D,5:E.5*D};C.2=F.2;C.q=(H=="f")?G:l;C.h=H;F.k("w",C,B.i,B.o);F.V()})};A.8.w=b(B){u e.p(b(){4 G=A(e);4 D=A.X(r,{},B.9);4 J=A.8.v(G,B.9.h||"k");4 H=U(B.9.q)||(U(B.9.q)==0?0:(J=="f"?0:l));4 I=B.9.19||"j";4 C=B.9.R;a(J!="k"){D.R=C||["16","14"];D.t=r}4 F={6:G.6(),5:G.5()};G.2=B.9.2||(J=="z"?{6:0,5:0}:F);4 E={y:I!="15"?(H/l):1,x:I!="1h"?(H/l):1};G.3={6:F.6*E.y,5:F.5*E.x};a(B.9.11){a(J=="z"){G.2.g=0;G.3.g=1}a(J=="f"){G.2.g=1;G.3.g=0}}D.2=G.2;D.3=G.3;D.h=J;G.k("Y",D,B.i,B.o);G.V()})};A.8.Y=b(B){u e.p(b(){4 C=A(e),N=["12","m","n","5","6","s","g"];4 M=["12","m","n","s","g"];4 J=["5","6","s"];4 P=["1d"];4 K=["1c","1b","1f","1g"];4 F=["1a","1j","1i","1k"];4 G=A.8.v(C,B.9.h||"k");4 I=B.9.t||10;4 E=B.9.w||"j";4 O=B.9.R;4 D={6:C.6(),5:C.5()};C.2=B.9.2||D;C.3=B.9.3||D;a(O){4 H=A.8.1e(O,D);C.2.m=(D.6-C.2.6)*H.y;C.2.n=(D.5-C.2.5)*H.x;C.3.m=(D.6-C.3.6)*H.y;C.3.n=(D.5-C.3.5)*H.x}4 L={2:{y:C.2.6/D.6,x:C.2.5/D.5},3:{y:C.3.6/D.6,x:C.3.5/D.5}};a(E=="1u"||E=="j"){a(L.2.y!=L.3.y){N=N.d(K);C.2=A.8.c(C,K,L.2.y,C.2);C.3=A.8.c(C,K,L.3.y,C.3)}a(L.2.x!=L.3.x){N=N.d(F);C.2=A.8.c(C,F,L.2.x,C.2);C.3=A.8.c(C,F,L.3.x,C.3)}}a(E=="W"||E=="j"){a(L.2.y!=L.3.y){N=N.d(P);C.2=A.8.c(C,P,L.2.y,C.2);C.3=A.8.c(C,P,L.3.y,C.3)}}A.8.Z(C,I?N:M);C.z();A.8.1w(C);C.S("s","1y").S(C.2);a(E=="W"||E=="j"){K=K.d(["1s","1l"]).d(P);F=F.d(["1t","1m"]);J=N.d(K).d(F);C.1o("*[5]").1p(b(){7=A(e);a(I){A.8.Z(7,J)}4 Q={6:7.6(),5:7.5()};7.2={6:Q.6*L.2.y,5:Q.5*L.2.x};7.3={6:Q.6*L.3.y,5:Q.5*L.3.x};a(L.2.y!=L.3.y){7.2=A.8.c(7,K,L.2.y,7.2);7.3=A.8.c(7,K,L.3.y,7.3)}a(L.2.x!=L.3.x){7.2=A.8.c(7,F,L.2.x,7.2);7.3=A.8.c(7,F,L.3.x,7.3)}7.S(7.2);7.13(7.3,B.i,B.9.T,b(){a(I){A.8.t(7,J)}})})}C.13(C.3,{p:10,i:B.i,T:B.9.T,1q:b(){a(G=="f"){C.f()}A.8.t(C,I?N:M);A.8.1r(C);a(B.o){B.o.1v(e,1x)}C.V()}})})}})(1n)',62,97,'||from|to|var|width|height|child|effects|options|if|function|setTransition|concat|this|hide|opacity|mode|duration|both|effect|100|top|left|callback|queue|percent|true|overflow|restore|return|setMode|scale|||show||||||||||||||||||origin|css|easing|parseInt|dequeue|content|extend|size|save|false|fade|position|animate|center|horizontal|middle|150|puff|direction|borderLeftWidth|borderBottomWidth|borderTopWidth|fontSize|getBaseline|paddingTop|paddingBottom|vertical|paddingLeft|borderRightWidth|paddingRight|marginBottom|marginRight|jQuery|find|each|complete|removeWrapper|marginTop|marginLeft|box|apply|createWrapper|arguments|hidden'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/effects.shake.packed.js b/sites/all/libraries/jquery.ui/ui/packed/effects.shake.packed.js new file mode 100644 index 0000000..5549f40 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/effects.shake.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Shake 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Shake + * + * Depends: + * effects.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(6(A){A.5.r=6(B){q b.f(6(){4 E=A(b),K=["p","h","a"];4 J=A.5.s(E,B.0.t||"w");4 M=B.0.v||"a";4 C=B.0.u||o;4 D=B.0.x||3;4 G=B.e||B.0.e||k;A.5.n(E,K);E.m();A.5.l(E);4 F=(M=="d"||M=="i")?"h":"a";4 O=(M=="d"||M=="a")?"9":"j";4 H={},N={},L={};H[F]=(O=="9"?"-=":"+=")+C;N[F]=(O=="9"?"+=":"-=")+C*2;L[F]=(O=="9"?"-=":"+=")+C*2;E.7(H,G,B.0.8);y(4 I=1;I35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(A){A.1.y=2(B){w 7.b(2(){0 E=A(7),D=["t","8","5"];0 I=A.1.P(E,B.3.N||"4");0 H=B.3.M||"5";A.1.n(E,D);E.4();A.1.k(E).d({j:"O"});0 F=(H=="h"||H=="o")?"8":"5";0 C=(H=="h"||H=="5")?"6":"p";0 J=B.3.q||(F=="8"?E.m({e:c}):E.l({e:c}));9(I=="4"){E.d(F,C=="6"?-J:J)}0 G={};G[F]=(I=="4"?(C=="6"?"+=":"-="):(C=="6"?"-=":"+="))+J;E.s(G,{b:K,a:B.a,f:B.3.f,z:2(){9(I=="g"){E.g()}A.1.v(E,D);A.1.x(E);9(B.i){B.i.u(7,Q)}E.r()}})})}})(L)',53,53,'var|effects|function|options|show|left|pos|this|top|if|duration|queue|true|css|margin|easing|hide|up|callback|overflow|createWrapper|outerWidth|outerHeight|save|down|neg|distance|dequeue|animate|position|apply|restore|return|removeWrapper|slide|complete|||||||||||false|jQuery|direction|mode|hidden|setMode|arguments'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/effects.transfer.packed.js b/sites/all/libraries/jquery.ui/ui/packed/effects.transfer.packed.js new file mode 100644 index 0000000..f5e4c17 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/effects.transfer.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Effects Transfer 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Effects/Transfer + * + * Depends: + * effects.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5(A){A.8.f=5(B){x d.w(5(){4 E=A(d);4 G=A.8.z(E,B.3.H||"v");4 F=A(B.3.I);4 C=E.g();4 D=A(\'\').s(J.L);p(B.3.9){D.i(B.3.9)}D.i(B.3.9);D.1({7:C.7,6:C.6,k:E.l()-2(D.1("e"))-2(D.1("a")),b:E.c()-2(D.1("h"))-2(D.1("m")),R:"O"});C=F.g();n={7:C.7,6:C.6,k:F.l()-2(D.1("e"))-2(D.1("a")),b:F.c()-2(D.1("h"))-2(D.1("m"))};D.Q(n,B.K,B.3.P,5(){D.N();p(B.o){B.o.r(E[0],u)}E.y()})})}})(M)',54,54,'|css|parseInt|options|var|function|left|top|effects|className|borderBottomWidth|width|outerWidth|this|borderTopWidth|transfer|offset|borderLeftWidth|addClass|div|height|outerHeight|borderRightWidth|animation|callback|if|ui|apply|appendTo|class|arguments|effect|queue|return|dequeue|setMode||||||||mode|to|document|duration|body|jQuery|remove|absolute|easing|animate|position'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/jquery.ui.i18n.all.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/jquery.ui.i18n.all.packed.js new file mode 100644 index 0000000..4c5f39b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/jquery.ui.i18n.all.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1b(1d(A){A.y.C["ar"]={1i:"q1R",1e:"hq1R hq1Uh24 hqhhq1S",1c:"h6Mhq",1f:"h6Mhq hhqq hqh",1g:"&#B;hq1Rhq",1k:"1Nh hqhqh hq1Rhq",1j:"&#B;&#B;",1w:"",1a:"hq1Uq1S&#z;",1h:"1Nh hqhqh hqqhhq",1l:"&#z;&#z;",Y:"",19:"hq1Xq",13:"1Nh hqhqh hqhhq1S",Z:["70qqq hqhhq1S","hhhh","hhhh","qbeq","hhhh","hblhq","2Wq4E","hh","h1Xqq","1Uh1X hqhqq","1Uh1X hqhhq1S","70qqq hqhqq"],14:["1","2","3","4","5","6","7","8","9","10","11","12"],18:"1Nh hqh hhh",17:"1Nh 3ph hhhq",16:"h1Rq4p",15:"h1Rq4p hq3ph",1m:["hq1R2k","hqhhh","hqhhq1X","hqhqhhhh","hqhhh1Nh","hqhq49","hqhq1N"],1s:["1R2k","hhh","hhq1X","hqhhhh","hhh1Nh","hq49","hq1N"],1n:["1R2k","hhh","hhq1X","hqhhhh","hhh1Nh","hq49","hq1N"],1q:"hh1U R qq1Xq hqhqq qq hqh1Rq4p",1p:"hh1U D, M d",1u:"dd/mm/W",1t:0,1o:"hh1U 1Xq",1r:3O};A.y.1v(A.y.C["ar"])});1b(1d(A){A.y.C["bg"]={1i:"ffxfxxf",1e:"ffxfxxf f422Afffxf ffxf",1c:"ffx2xxf",1f:"ffx2xxf fX fxffXf",1g:"&#B;fffff",1k:"ff3fff ffxfXffx f1A1A",1j:"&#B;&#B;",1w:"",1a:"fffxX&#z;",1h:"ff3fff xfX2xxfx f1A1A",1l:"&#z;&#z;",Y:"",19:"ff1A",13:"",Z:["ff2Axf","f8Q2Axf","2cxx","ffxff","2c2X","fff","fff","f8Zx","fXxX21f","3Mff21f","ffX21f","feO21f"],14:["ff5F","f8Y","2cx","ffx","2c2X","fff","fff","f8N","fX","3M","ff2v","f8a"],18:"ff3fff fxeH f1A1A",17:"ff3fff fxcg 5Pffff",16:"4q",15:"xXffxf fx f1A1Af",1m:["fXXx","2ZfXXff2q","fxfxff2q","fxxff","f1Achx7Q","627Q","f65fxf"],1s:["fX","2Zf","fxf","fxx","f1A","62","f65"],1n:["f3W","2Z","fx","fx","f3W","cU","fbx"],1q:"fffff R 3fxf fbs2x fX fx xXffxfxf",1p:"fff1Af D, M d",1u:"dd.mm.W",1t:1,1o:"fff1Af ffxf",1r:1x};A.y.1v(A.y.C["bg"])});1b(1d(A){A.y.C["ca"]={1i:"bW",1e:"",1c:"dY",1f:"",1g:"&#B;5u",1k:"",1j:"&#B;&#B;",1w:"",1a:"4H&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"em",13:"",Z:["df","dc","1C&51;","4a","dj","d2","cq","cj","cM","55","4O","cL"],14:["6I","1G","1C","4x","22","1T","1V","3r","4X","3u","1J","3y"],18:"",17:"",16:"2p",15:"",1m:["cD","eQ","eJ","e3","ei","ah","a9"],1s:["a8","9f","9w","9v","9n","9p","9t"],1n:["9r","c7","bz","bo","bw","bv","bu"],1q:"R",1p:"D, M d",1u:"mm/dd/W",1t:0,1o:"",1r:1x};A.y.1v(A.y.C["ca"])});1b(1d(A){A.y.C["cs"]={1i:"bt",1e:"bYe c3 29",1c:"8m1Et",1f:"8me bV1P bO bNbM",1g:"&#B;bL1EaM",1k:"2G3Jt 2P aLaT 3I34",1j:"&#B;&#B;",1w:"",1a:"aSji&#z;",1h:"2G3Jt 2P aK1E 3I34c",1l:"&#z;&#z;",Y:"",19:"aD",13:"2GaV 2P bbba 3I34c",Z:["bj","bi","8qb7","dt","8zb4","1Lb5","1LaW","aG","8J1P1E","1P1Eaz","bJ","bm"],14:["bp","bq","8qe","by","8z","1Ler","1LbI","bE","8J1P","1P1Ej","73","bA"],18:"2G3Jt 2P 8M 3I34c",17:"2G3Jt 2P 8M 6b",16:"4zd",15:"4z48 v 9E",1m:["9Fle","9G4l","9C","9B9x","1L9y","4664","9j"],1s:["8H","8G","8B","4T","1Lt","46","8A"],1n:["8H","8G","8B","4T","1Lt","46","8A"],1q:"92 R 5E 94 48 v 2L95",1p:"\'96\' R, M d",1u:"dd.mm.W",1t:1,1o:"91 29",1r:1x};A.y.1v(A.y.C["cs"])});1b(1d(A){A.y.C["da"]={1i:"8C",1e:"8C 48 9i 81",1c:"8D",1f:"8D 97 1E99",1g:"&#B;5h",1k:"2Q av 3G3E",1j:"&#B;&#B;",1w:"",1a:"3R8F&#z;",1h:"2Q 3d8F 3G3E",1l:"&#z;&#z;",Y:"",19:"8o",13:"2Q 9I 3G3E",Z:["3o","3L","74","2s","20","2R","2F","3a","2b","2w","2n","2J"],14:["1H","1G","1C","1M","20","1T","1V","2h","1Q","1W","1J","2d"],18:"2Q en ac 3G3E",17:"2Q et aq 1Er",16:"as",15:"1Eat a1",1m:["253j","59","5e","4R","4F","4U","274K"],1s:["25n","57","5g","4N","3i","4P","27r"],1n:["25","1O","3c","53","2y","3g","27"],1q:"25t R ek eleB eD",1p:"80lg D, M d",1u:"dd-mm-W",1t:0,1o:"80lg en 81",1r:1x};A.y.1v(A.y.C["da"])});1b(1d(A){A.y.C["de"]={1i:"4l7X",1e:"eE 4v 4l7X",1c:"7S",1f:"f9 1Ef4 7S",1g:"&#B;fock",1k:"fn 4B 7T",1j:"&#B;&#B;",1w:"",1a:"fl&#z;",1h:"3df2 4B 7T",1l:"&#z;&#z;",Y:"",19:"eK",13:"",Z:["3o","3L","1KeR","2s","22","2R","2F","3a","2b","2w","2n","cH"],14:["1H","1G","1Kr","1M","22","1T","1V","2h","1Q","1W","1J","5J"],18:"cJ 4B 7V",17:"cB cT 7V",16:"cV",15:"cR cN cO",1m:["cP","cz","cy","co","dz","ds","dB"],1s:["2t","8i","2z","28","3m","3g","2f"],1n:["2t","8i","2z","28","3m","3g","2f"],1q:"dK R 5i dG d4",1p:"8d8c D, M d",1u:"dd.mm.W",1t:1,1o:"8d8c d6 4v",1r:1x};A.y.1v(A.y.C["de"])});1b(1d(A){A.y.C["eo"]={1i:"d7",1e:"",1c:"86",1f:"86 cZ d0",1g:"<d1",1k:"2S la d8an 3D",1j:"&#B;&#B;",1w:"",1a:"d9>",1h:"2S la dk 3D",1l:"&#z;&#z;",Y:"",19:"dm",13:"2S la dn 3D",Z:["dl","cY","d5","cn","cd","5j","5n","8XcC","eI","eN","5K","f5"],14:["1H","1G","1C","1M","20","1T","1V","8Xg","1Q","1W","1J","2d"],18:"2S 8U 3D",17:"2S 8U 9H",16:"6X",15:"",1m:["9Ao","bH","bn","bT","1L77do","dS","6W"],1s:["7P","3b","1C","4L","1L77","4G","3e"],1n:["2z","2u","1O","4I","1La","3l","2f"],1q:"b1 R aX aY b8 de la aN",1p:"56 R, 3F d",1u:"dd/mm/W",1t:0,1o:"56 la br",1r:1x};A.y.1v(A.y.C["eo"])});1b(1d(A){A.y.C["es"]={1i:"bF",1e:"",1c:"bG",1f:"",1g:"&#B;5u",1k:"",1j:"&#B;&#B;",1w:"",1a:"bD&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"9q",13:"",Z:["9m","9o","6E","4a","9D","5j","5n","4b","93","55","9e","ad"],14:["9M","1G","1C","4x","8L","1T","1V","3r","1Q","3u","1J","6Q"],18:"",17:"",16:"2p",15:"",1m:["5N","9V","dV","28&5A;e2","e4","ci","S&2E;cr"],1s:["3s","3b","1C","28&5A;","dr","dC","S&2E;b"],1n:["3m","2u","1O","28","d3","90","S&2E;"],1q:"R",1p:"D, M d",1u:"dd/mm/W",1t:0,1o:"",1r:1x};A.y.1v(A.y.C["es"])});1b(1d(A){A.y.C["fa"]={1i:"hhq 1Uh24",1e:"qh2Y 2Yhhq 1Uh24 hhh1S",1c:"h5L",1f:"h5L hhqq h4dhq dhh2k",1g:"&#B;qhq1S",1k:"qqh24 qhq qhq",1j:"&#B;&#B;",1w:"",1a:"h1N1S&#z;",1h:"qqh24 qhq h1N",1l:"&#z;&#z;",Y:"",19:"hqhq4E",13:"qqh24 qhq hhh1S",Z:["qhqhh1X","hhh24qh2k","hhhhh","dg","qhhhh","hqh1Xh","qqh","hhhq","hhh","h1S","hqqq","h3pqh"],14:["1","2","3","4","5","6","7","8","9","10","11","12"],18:"qqh24 qhq q2Whq2k",17:"qqh24 1Rq q2Whq2k",16:"qq",15:"qq2Wq 1Rq",1m:["dbhqhq","hqhqhq","3phqhq","2Yqhhhqhq","qqhhqhq","hq4d","hqhq"],1s:["1S","h","5O","2Y","q","h","h"],1n:["1S","h","5O","2Y","q","h","h"],1q:"qhqq R h4dqhq hqq1X hq4E qq2W",1p:"hq1Uhh D, M d",1u:"W/mm/dd",1t:6,1o:"hq1Uhh 1Uh24",1r:3O};A.y.1v(A.y.C["fa"])});1b(1d(A){A.y.C["fi"]={1i:"dp&2e;",1e:"",1c:"dq",1f:"",1g:"&2V;dF",1k:"",1j:"&#B;&#B;",1w:"",1a:"dE&31;",1h:"",1l:"&#z;&#z;",Y:"",19:"T&2e;n&2e;&2e;n",13:"",Z:["dD","dH","dI","dM","dL","5w&2e;67","5Y&2e;67","dJ","du","dv","dw","dA"],14:["dy","dx","cX","cW","cp","5w&2e;","5Y&2e;","ct","cx","6G","cw","cv"],18:"",17:"",16:"cu",15:"",1s:["30","1O","3c","4w","2y","2j","30"],1m:["cm","cl","cc","cb","c9","ce","cf"],1n:["30","1O","3c","4w","2y","2j","6N"],1q:"R",1p:"D, M d",1u:"dd.mm.W",1t:1,1o:"",1r:1x};A.y.1v(A.y.C["fi"])});1b(1d(A){A.y.C["fr"]={1i:"5b",1e:"5b la 7h 34cQe",1c:"5v",1f:"5v cS cK",1g:"&#B;cAc",1k:"32 le 3Q cEcFcI",1j:"&#B;&#B;",1w:"",1a:"cG&#z;",1h:"32 le 3Q dN",1l:"&#z;&#z;",Y:"",19:"dO",13:"32 le 3Q eV",Z:["eU","4ceT","2O","eS","22","eW","eX","5rt","f1","f0","4O","5meZ"],14:["1H","4cv","1C","eY","22","1T","1V","5r","1Q","3u","1J","5mc"],18:"32 3S 5t 3Q",17:"32 eG 5t eLe",16:"2p",15:"",1m:["eP","eM","f3","fk","fj","fh","fm"],1s:["7P","3b","1C","4L","fs","4G","8W"],1n:["2z","2u","1O","4I","fq","3l","2f"],1q:"fp R fg ff f7 de la f6",1p:"\'7i\' le R d 3F",1u:"dd/mm/W",1t:1,1o:"7i la 7h",1r:1x};A.y.1v(A.y.C["fr"])});1b(1d(A){A.y.C["he"]={1i:"נקה",1e:"",1c:"סגור",1f:"",1g:"&#B;הקודם",1k:"",1j:"&#B;&#B;",1w:"",1a:"הבא&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"היום",13:"",Z:["ינואר","פברואר","1Zרץ","אפרי4o","1Zאי","יוני","יו4oי","אוגוסט","ספט1Zבר","אוקטובר","נוב1Zבר","דצ1Zבר"],14:["1","2","3","4","5","6","7","8","9","10","11","12"],18:"",17:"",16:"2p",15:"",1m:["ראשוf8","שני","ש4oישי","רביעי","ח1Zישי","שישי","שב2C"],1s:["א\'","ב\'","ג\'","ד\'","ה\'","ו\'","שב2C"],1n:["א\'","ב\'","ג\'","ד\'","ה\'","ו\'","שב2C"],1q:"R",1p:"R, M d",1u:"dd/mm/W",1t:0,1o:"",1r:3O};A.y.1v(A.y.C["he"])});1b(1d(A){A.y.C["hr"]={1i:"fei",1e:"fdi 4y 29",1c:"7g",1f:"7g fc",1g:"&#B;",1k:"3Bi fb 7l",1j:"&#B;&#B;",1w:"",1a:"&#z;",1h:"3Bi eFi 7l",1l:"&#z;&#z;",Y:"",19:"e1",13:"e54D 29",Z:["e6ea","e9a","6de8","e7","e0","dZ","dR","dQ","dP","5T","dT","dU"],14:["dX","dW","6du","eb","ec","5U","ex","ew","ev","5V","eu","ey"],18:"3Bi ez",17:"3Bi eC",16:"eA",15:"eq",1m:["ep","eg","ef","ee","ed","eh","c8"],1s:["4j","4k","8h","ej","ft","7Y","bB"],1n:["4m","4s","8g","82","9Y","2j","30"],1q:"9X R 4A 8O 7Z 9W",1p:"\'4v\' D, M d",1u:"dd.mm.W.",1t:1,1o:"9Z 29",1r:1x};A.y.1v(A.y.C["hr"])});1b(1d(A){A.y.C["hu"]={1i:"2La0s",1e:"",1c:"a4a3s",1f:"",1g:"&2V;&3n;a2",1k:"",1j:"&#B;&#B;",1w:"",1a:"9U9T&3n;&31;",1h:"",1l:"&#z;&#z;",Y:"",19:"ma",13:"",Z:["89r","88r","1K9L","1E9K","1K9J","9N","9O","9S","9R","87","2n","2J"],14:["1H","1G","1Kr","1E9Q","1Kj","4h","45","2h","9P","1W","1J","2d"],18:"",17:"",16:"2B",15:"",1m:["a5a6","2Bam","al","ak","7b2Lajk","4gao","ap"],1s:["7c","2Bt","au","7a","7b","4gn","7q"],1n:["V","H","K","7a","ai","P","7q"],1q:"R",1p:"D, M d",1u:"W-mm-dd",1t:1,1o:"",1r:1x};A.y.1v(A.y.C["hu"])});1b(1d(A){A.y.C["hy"]={1i:"ppUUpp",1e:"",1c:"ppppp",1f:"",1g:"&#B;ppp.",1k:"",1j:"&#B;&#B;",1w:"",1a:"ppp.&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"373qUU",13:"",Z:["ppUpppU","pppUppU","ppUp","377rpp","pp3qp","ppUppp","ppUppp","ppppppp","ppaappppU","ppppppppU","pp3qpppU","37pppppppU"],14:["ppUpp","pppU","ppUp","377r","pp3qp","ppUppp","ppUp","ppp","ppa7","ppp","ppab","37pp"],18:"",17:"",16:"pag",15:"",1m:["ppUppp","pppUppppp","pUpUppppp","afUpUppppp","ppppppppp","pUUppp","ppppp"],1s:["ppU","pUp","pUU","7GU","ppp","pUUp","ppp"],1n:["ppU","pUp","pUU","7GU","ppp","pUUp","ppp"],1q:"R",1p:"D, M d",1u:"dd.mm.W",1t:1,1o:"",1r:1x};A.y.1v(A.y.C["hy"])});1b(1d(A){A.y.C["id"]={1i:"9z",1e:"9b 9a 4V 6x",1c:"7J",1f:"7J 98 9c",1g:"&#B;9d",1k:"2M 3k 9h",1j:"&#B;&#B;",1w:"",1a:"9g&#z;",1h:"2M 3k 9k",1l:"&#z;&#z;",Y:"",19:"6P 9l",13:"2M 3k 6x",Z:["8n","8l","9u","2s","6A","2R","2F","9s","2b","2w","ae","4i"],14:["1H","1G","1C","1M","6A","1T","1V","bC","1Q","1W","aw","3y"],18:"2M 3k 4V 6D",17:"2M 6U 4V 6D",16:"6Z",15:"6T 6H 6U",1m:["6T","bK","c0","bZ","bX","c1","c2"],1s:["c6","c5","c4","bP","bQ","bU","3e"],1n:["6Z","bS","bR","bk","aO","jm","6X"],1q:"aP R aQ aU 6P 6H aJ",1p:"aC le R, 3F d",1u:"dd/mm/W",1t:0,1o:"aB aA",1r:1x};A.y.1v(A.y.C["id"])});1b(1d(A){A.y.C["is"]={1i:"ax",1e:"",1c:"6G",1f:"",1g:"&#B; aE",1k:"",1j:"&#B;&#B;",1w:"",1a:"N&aI;aH &#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"&aF; 4u",13:"",Z:["1H&2a;ar","bc&2a;ar","2O","1M&38;l","1O&38","J&2a;n&38;","J&2a;l&38;","&6O;g&2a;4T","2b","1W&3v;b9","N&3v;bd","4i"],14:["1H","1G","1C","1M","1O&38;","J&2a;n","J&2a;l","&6O;g&2a;","1Q","1W","N&3v;v","3y"],18:"",17:"",16:"bh",15:"",1m:["bf","M&2E;b0","&4Z;6L&4W;aZ","28&4W;b2","b6","F&4Y;b3","aR"],1s:["gw","M&2E;n","&4Z;6L","28&4W;","l1","F&4Y;s","l2"],1n:["30","M&2E;","&4Z;r","28","l0","F&4Y;","6N"],1q:"R",1p:"D, M d",1u:"dd/mm/W",1t:0,1o:"",1r:1x};A.y.1v(A.y.C["is"])});1b(1d(A){A.y.C["it"]={1i:"kZ",1e:"kX",1c:"kY",1f:"l3 l4 l9",1g:"&#B;l8",1k:"4Q 6K",1j:"&#B;&#B;",1w:"6J l\'3h 6K",1a:"l7&#z;",1h:"4Q 6F",1l:"&#z;&#z;",Y:"6J l\'3h 6F",19:"l5",13:"4Q l6",Z:["kW","kV","6E","kM","kN","kL","kK","4b","kI","kJ","4O","kO"],14:["6I","1G","1C","1M","kP","kU","kT","3r","4X","kS","1J","6Q"],18:"4J 3S 6Y kQ",17:"4J 3S 6Y 3h",16:"2p",15:"kR lb\'3h",1m:["lc","lAH","lBH","lzH","lyH","lwH","6W"],1s:["3s","3b","1C","4L","6R","4G","3e"],1n:["3m","2u","1O","4I","6R","3l","2f"],1q:"lx R lC lD lI lH lG",1p:"\'4J\' D, M d",1u:"dd/mm/W",1t:1,1o:"lE lF 52",1r:1x};A.y.1v(A.y.C["it"])});1b(1d(A){A.y.C["ja"]={1i:"O6S",1e:"LQOO6SOOO",1c:"1zOO",1f:"GLOOlu1zOOO",1g:"&#B;G",1k:"G1yO1Y1B2lOO",1j:"&#B;&#B;",1w:"G26O1Y1B2lOO",1a:"L&#z;",1h:"1BlsO1Y1B2lOO",1l:"&#z;&#z;",Y:"1BljO1Y1B2lOO",19:"Qlk",13:"Q2UO1Y1B2lOO",Z:["6C","6l","6m","6n","6o","6k","6j","6f","6e","6g","6h","6i"],14:["6C","6l","6m","6n","6o","6k","6j","6f","6e","6g","6h","6i"],18:"1Y1B2lO1yOGLOOO",17:"1Y1B2lO26OGLOOO",16:"1z",15:"li1zO1BQ1z1BOO1YOOO",1m:["LL2m","1yL2m","1BL2m","LL2m","1yL2m","1zL2m","lh2m"],1s:["L","1y","1B","L","1y","1z","6z"],1n:["L","1y","1B","L","1y","1z","6z"],1q:"1zOGOOldlfOOO",1p:"ll(D)",1u:"W/mm/dd",1t:0,1o:"LQO1zlmOO",1r:1x,lr:3O};A.y.1v(A.y.C["ja"])});1b(1d(A){A.y.C["ko"]={1i:"1Ilq39",1e:"",1c:"4e39",1f:"",1g:"1I1I4e",1k:"",1j:"&#B;&#B;",1w:"",1a:"4e1Ilp",1h:"",1l:"&#z;&#z;",Y:"",19:"1Iln",13:"",Z:["6w(6s)","6r(6t)","6u(6v)","71(72)","7z(7A)","7B(7C)","7y(7x)","7t(7s)","7u(7v)","7w(7D)","7E(7L)","7M(7N)"],14:["6w(6s)","6r(6t)","6u(6v)","71(72)","7z(7A)","7B(7C)","7y(7x)","7t(7s)","7u(7v)","7w(7D)","7E(7L)","7M(7N)"],18:"",17:"",16:"4q",15:"",1m:["1I","1I","2D","1I","47","39","2D"],1s:["1I","1I","2D","1I","47","39","2D"],1n:["1I","1I","2D","1I","47","39","2D"],1q:"R",1p:"D, M d",1u:"W-mm-dd",1t:0,1o:"",1r:1x};A.y.1v(A.y.C["ko"])});1b(1d(A){A.y.C["lt"]={1i:"lokH",1e:"",1c:"kGk1",1f:"",1g:"&#B;k2",1k:"",1j:"&#B;&#B;",1w:"",1a:"k0&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"1PjZ",13:"",Z:["jX","jY","k3","k4","k91L","k8k7","k5","k6jW","jVjL","jM","jK","jJ"],14:["jH","7c","jI","jN","jO","61","jT","jU","jS","jR","jP","5W"],18:"",17:"",16:"",15:"",1m:["jQ","kb","kc","kxky","kw","kv","1P79kt"],1s:["ku","kz","fu","7e","kA","kF","1P79"],1n:["kE","2N","lK","7f","4w","2j","1Pe"],1q:"R",1p:"D, M d",1u:"W-mm-dd",1t:1,1o:"",1r:1x};A.y.1v(A.y.C["lt"])});1b(1d(A){A.y.C["lv"]={1i:"kBkCt",1e:"",1c:"kskr",1f:"",1g:"kh",1k:"",1j:"&#B;&#B;",1w:"",1a:"kika",1h:"",1l:"&#z;&#z;",Y:"",19:"1Pkg",13:"",Z:["kf78","kd78","74","ke73","kj","3wkk","3wkq","kp","kn","kl","km","lJ"],14:["1H","1G","1C","1M","22","3wn","3wl","2h","1Q","1W","1J","2d"],18:"",17:"",16:"lS",15:"",1m:["mQmP","mO","mM","mNmR","mS","mW","mV"],1s:["mL","mD","mC","7e","mB","mz","mA"],1n:["mE","2N","mJ","7f","4S","mY","mH"],1q:"R",1p:"D, M d",1u:"dd-mm-W",1t:1,1o:"",1r:1x};A.y.1v(A.y.C["lv"])});1b(1d(A){A.y.C.5s={1i:"n8",1e:"n0 de 7k 29",1c:"n3",1f:"n6 n7 n2",1g:"7n",1k:"2o de 7m 3A",1j:"7o",Y:"2o 4r 7m 3x",1a:"7n",1h:"2o de 7p 3A",1l:"7o",Y:"2o 4r 7p 3x",19:"mZ",13:"2o de 7k 3A",Z:["n1","n4","n5","mI","7j","mx","m0","lZ","m1","lO","lM","lL"],14:["lP","lQ","5l","lU","7j","lR","m7","m8","mq","mp","mo","mn"],18:"2o 4C mr 3A",17:"2o 4C mw 3x",16:"4q",15:"mv 5o 4r 3x",1m:["mu","mt","ml","mk","md","mc","mb"],1s:["m9","5l","me","mf","mj","mi","mh"],1n:["mg","ma","di","ms","do","lT","4A"],1q:"lN R in 5i lV 4u 5o de lW",1p:"dd/mm/W",1u:"dd/mm/W",1t:1,1o:"m3 4C 29",1r:1x};A.y.1v(A.y.C.5s)});1b(1d(A){A.y.C["5f"]={1i:"4zm",1e:"",1c:"m4",1f:"",1g:"&2V;5h",1k:"",1j:"&#B;&#B;",1w:"",1a:"m5&31;",1h:"",1l:"&#z;&#z;",Y:"",19:"I 4u",13:"",Z:["3o","3L","2O","2s","22","2R","2F","3a","2b","2w","2n","4i"],14:["1H","1G","1C","1M","22","1T","1V","2h","1Q","1W","1J","3y"],18:"",17:"",16:"m6",15:"",1s:["25n","57","5g","4N","3i","4P","27r"],1m:["253j","59","5e","4R","4F","4U","274K"],1n:["25","1O","3c","53","2y","3g","27"],1q:"R",1p:"D, M d",1u:"W-mm-dd",1t:0,1o:"",1r:1x};A.y.1v(A.y.C["5f"])});1b(1d(A){A.y.C["5y"]={1i:"5d1L",1e:"5d1L m2 5B",1c:"5c",1f:"5c my lX",1g:"&#B;lY",1k:"35 mX 3zc",1j:"&#B;&#B;",1w:"",1a:"mG5p&#z;",1h:"35 mF5p 3zc",1l:"&#z;&#z;",Y:"",19:"mK",13:"35 mT 3zc",Z:["mU","kD","jF","gQ","20","gR","gP","gO","gM","gN","5T","gS"],14:["gT","2u","1C","gY","20","gX","5U","gW","gU","gV","5V","5W"],18:"35 69 3zc",17:"35 69 6b",16:"gL",15:"gK gA",1m:["gB","gz","gy","jG","gx","gC64","4n"],1s:["gD","66","5S","5R","gI","3T","2t"],1n:["N","66","5S","5R","gJ","3T","2t"],1q:"gH R 5E gG gE gF",1p:"\'5C\' D, M d",1u:"W-mm-dd",1t:1,1o:"5C 5B",1r:1x};A.y.1v(A.y.C["5y"])});1b(1d(A){A.y.C["60-6c"]={1i:"gZ",1e:"",1c:"h0",1f:"",1g:"&#B;58",1k:"",1j:"&#B;&#B;",1w:"",1a:"2N&3v;hm&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"hn",13:"",Z:["hl","hk","1C&51;o","4a","hi","hj","ho","4b","hp","hw","5K","hv"],14:["1H","ht","1C","4x","22","1T","1V","3r","4X","hq","1J","5J"],18:"",17:"",16:"2p",15:"",1m:["5N","hs-36","4M&51;a-36","hh-36","hg-36","h5-36","h6"],1s:["3s","4H","4M","68","6a","63","3e"],1n:["3s","4H","4M","68","6a","63","3e"],1q:"R",1p:"D, M d",1u:"dd/mm/W",1t:0,1o:"",1r:1x};A.y.1v(A.y.C["60-6c"])});1b(1d(A){A.y.C["8S"]={1i:"h4",1e:"h3 52 5q",1c:"5a",1f:"5a h1 h2",1g:"&#B;58",1k:"3t 3C h7",1j:"&#B;&#B;",1w:"",1a:"h8&#z;",1h:"3t 3C hd",1l:"&#z;&#z;",Y:"",19:"hf",13:"3t 3C 5q",Z:["hc","hb","h9","ha","22","gv","gu","3a","fP","fQ","fO","fN"],14:["fL","1G","1C","1M","22","1T","1V","2h","1Q","3u","fM","2d"],18:"3t o 3C fR",17:"fS 3S an fX",16:"fW",15:"fV fT",1m:["fU","fK","fJ","fz","8P","fA","fy"],1s:["fx","3b","1C","fv","8P","fw","8W"],1n:["fB","2u","1O","28","fC","90","2f"],1q:"fH R ca fI fG fF",1p:"8R D, M d",1u:"mm/dd/W",1t:0,1o:"8R o 52",1r:1x};A.y.1v(A.y.C["8S"])});1b(1d(A){A.y.C["8b"]={1i:"5Mfxxfx1D",1e:"",1c:"ff42xx1D",1f:"",1g:"&#B;4fX",1k:"",1j:"&#B;&#B;",1w:"",1a:"ffX&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"ffDffx",13:"",Z:["ff2xx1D","f8Qff1D","2cxx","ffxX1D","2c2X","f3N1D","f3N1D","f8Zx","fXxxfx1D","3Mxfx1D","ffxfx1D","ffEfx1D"],14:["ff2v","f8Y","2cx","ffx","2c2X","f3N","f3N","f8N","fX","3M","ffx","f8a"],18:"",17:"",16:"f3W",15:"",1m:["2xx421AXfY","fffXX5Qf2q","21fxff2q","xxXf","x1A5DfZ","fxxffxf","x2Affxf"],1s:["212q","fff","21x","xxf","xx2v","fxf","xfx"],1n:["fx","2Z","fx","fx","fx","4f","ff"],1q:"R",1p:"D, M d",1u:"dd.mm.W",1t:1,1o:"",1r:1x};A.y.1v(A.y.C["8b"])});1b(1d(A){A.y.C["8f"]={1i:"gk",1e:"",1c:"gl",1f:"",1g:"&#B;gjgi",1k:"",1j:"&#B;&#B;",1w:"",1a:"gg&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"gh",13:"",Z:["89r","88r","7W","gml","1Kj","4h","45","3a","2b","87","2n","2J"],14:["1H","1G","1C","1M","1Kj","4h","45","2h","1Q","1W","1J","2d"],18:"",17:"",16:"gn",15:"",1m:["gs\'a","gr","gq","go","1Pgp","gf","4n"],1s:["4j","4k","8h","ge","1Pg4","8e","83"],1n:["4m","4s","8g","g5","1Pt","8e","2t"],1q:"R",1p:"D, M d",1u:"dd.mm.W",1t:0,1o:"",1r:1x};A.y.1v(A.y.C["8f"])});1b(1d(A){A.y.C["8j"]={1i:"85P;i",1e:"85P;i 4y 29",1c:"84",1f:"84 g3 g2",1g:"<g0P;4D",1k:"2IK;i g1P;4D 3K",1j:"&#B;&#B;",1w:"",1a:"g6>",1h:"2IK;i g7 3K",1l:"&#z;&#z;",Y:"",19:"gc",13:"2IK;i 4y 3K",Z:["3o","3L","7W","2s","20","gd","gb","ga","2b","2w","2n","2J"],14:["1H","1G","1C","1M","20","1T","1V","g8","1Q","1W","1J","2d"],18:"2IK;i g9 3K",17:"2IK;i hx hz",16:"7R",15:"7R v iY",1m:["iZ","iX","iW","iU","t;iV","j0","4n"],1s:["4j","4k","3i","j1","t;et","7Y","83"],1n:["4m","4s","2y","82","t;e","2j","2t"],1q:"j6 R 4A 8O 7Z v j5",1p:"j4 R, d 3F W",1u:"dd.mm.W",1t:1,1o:"j2 j3",1r:1x};A.y.1v(A.y.C["8j"])});1b(1d(A){A.y.C["8p"]={1i:"8k",1e:"8k 8yn iT",1c:"8E",1f:"8E iS iI",1g:"&#B;iJ",1k:"3H 43 e iH",1j:"&#B;&#B;",1w:"",1a:"4giG&#z;",1h:"3H 43 44r",1l:"&#z;&#z;",Y:"",19:"iE",13:"",Z:["iF","iK","2O","iL","20","iQ","iR","iP","iO","iM","3RiN","j7"],14:["1H","j8","1C","jw","20","jx","jv","ju","js","jt","3Rn","jy"],18:"3H 43 44r",17:"3H 44r jz",16:"jE",15:"jD e jC",1m:["E jA","E 2B3d","E jB","E 1Kjr","E jq","E je","E jf"],1s:["2z","2B","1O","1K","8K","2N","8I"],1n:["2z","2B","1O","1K","8K","2N","8I"],1q:"jd R jc j9 2L jb 2L jgs",1p:"\'jh\' D, M d",1u:"dd.mm.W",1t:1,1o:"jo jp 8y",1r:1x};A.y.1v(A.y.C["8p"])});1b(1d(A){A.y.C["8v"]={1i:"jn",1e:"",1c:"jljj",1f:"",1g:"&2V;4cjk",1k:"",1j:"&#B;&#B;",1w:"",1a:"3RiD&31;",1h:"",1l:"&#z;&#z;",Y:"",19:"8o",13:"",Z:["8n","8l","2O","2s","20","2R","2F","iC","2b","2w","2n","2J"],14:["1H","1G","1C","1M","20","1T","1V","2h","1Q","1W","1J","2d"],18:"",17:"",16:"3l",15:"",1s:["25n","1Kn","hU","4N","3i","4P","27r"],1m:["253j","1K3j","hV","4R","4F","4U","274K"],1n:["25","1K","3c","53","2y","3g","27"],1q:"R",1p:"D, M d",1u:"W-mm-dd",1t:1,1o:"",1r:1x};A.y.1v(A.y.C["8v"])});1b(1d(A){A.y.C["8w"]={1i:"ww6y",1e:"",1c:"www",1f:"",1g:"&2V;&3n;w33ww",1k:"",1j:"&#B;&#B;",1w:"",1a:"www33w&3n;&31;",1h:"",1l:"&#z;&#z;",Y:"",19:"wwwwwhT",13:"",Z:["wwww1Fw","wwwww1F2rww2T","wwhSw1Fw","33www1Fw","w2rwww1Fw","wwwwww1Fw","wwwww1Fw","w50www1Fw","wwwww1Fw","wwww1Fw","w2rwwwww1Fw","wwwww1Fw"],14:["w.w.","w.w1Z.","ww8u.w.","33w.w.","w1Z.w.","ww.w.","w.w.","w2C.w.","w.w.","w.w.","w1Z.w.","w.w."],18:"",17:"",16:"2p",15:"",1m:["ww1Fwww2T","wwwww2T","wwwww1F","w2rw","w2rwww50hQw8u","wwww2T","33w501F2T"],1s:["ww8t.","w.","w.","w1Z.","w2r.","w.","w2C."],1n:["ww8t.","w.","w.","w1Z.","w2r.","w.","w2C."],1q:"R",1p:"D, M d",1u:"dd/mm/W",1t:0,1o:"",1r:1x};A.y.1v(A.y.C["8w"])});1b(1d(A){A.y.C["5I"]={1i:"hR",1e:"hWhX i2 i1",1c:"8x",1f:"i0 3XhY 8x",1g:"&#B;hZ",1k:"1EhP 8s 3X8r",1j:"&#B;&#B;",1w:"",1a:"hO&#z",1h:"hE 8s 3X8r",1l:"&#z;&#z;",Y:"",19:"hFn",13:"",Z:["hD","hC","hA","hB","hGs","hH","hM","hN","hLl","hK","hIm","hJk"],14:["i3","i4","1C","ir","8L","iu","iq","ip","im","io","iv","iw"],18:"7U ay",17:"7U iBl",16:"iA",15:"izn ix",1m:["iy","il","ik","1Ei9","ia","i8","i7"],1s:["8V","3T","2f","1Ea","2j","8T","4S"],1n:["8V","3T","2f","1Ea","2j","8T","4S"],1q:"i5n i6 3X3d3d ib",1p:"D, M d 5x5X",1u:"dd.mm.W",1t:1,1o:"61 ic 5x5X",1r:1x};A.y.1v(A.y.C["5I"])});1b(1d(A){A.y.C["5Z"]={1i:"5Mfxxfxf",1e:"",1c:"ff42fxf",1f:"",1g:"&#B;",1k:"",1j:"&#B;&#B;",1w:"",1a:"&#z;",1h:"",1l:"&#z;&#z;",Y:"",19:"f5Q5Pffx",13:"",Z:["fxxX1D","f5Gf2X","f1AXX1D","5zxX1D","fxf5H1D","f1A5H1D","fffX1D","f1AfX1D","f1A1AX1D","ff21X1D","ffxxffff","fx2AX1D"],14:["fxx","f5G","f1A","5z","fxf","f1A","fff","f1A","f1A","ff2v","ffx","fx5F"],18:"",17:"",16:"f3W",15:"",1m:["fXxfx","fffXxff2q","2121fxf2q","x1AXf","x1A5D","fxxffxx","x2Affxf"],1s:["fX","fff","212v","xxf","xx2v","fxf","xfx"],1n:["ff","2Z","fx","fx","fx","4f","ff"],1q:"R",1p:"D, M d",1u:"dd.mm.W",1t:1,1o:"",1r:1x};A.y.1v(A.y.C["5Z"])});1b(1d(A){A.y.C["40-54"]={1i:"L1z",1e:"L1zG5kL3U",1c:"Gii",1f:"QLijGG1zL",1g:"&#B;Q2U",1k:"L1B232U",1j:"&#B;&#B;",1w:"L1B237626",1a:"Q1y&#z;",1h:"L1B231y",1l:"&#z;&#z;",Y:"L1B23Q26",19:"Q75",13:"L1B7I1y",Z:["Q1y","3Z","Q1y","G1y","2i1y","G1y","Q7H","G1y","411y","G1y","GQ1y","G3Z"],14:["Q","2g","Q","G","2i","G","Q7F","G","41","G","GQ","G2g"],18:"1zL1yQ",17:"1zL26Q",16:"G",15:"26GGL",1m:["L7K","L3V","L7O","L3V","L3Y","L6B","L3Y"],1s:["GL","GQ","G2g","GQ","GG","G2i","GG"],1n:["L","Q","2g","Q","G","2i","G"],1q:"1Y1B R Q23G6qG",1p:"1zL 6p 6V, R",1u:"W-mm-dd",1t:1,1o:"1Y1zLL3U",1r:1x};A.y.1v(A.y.C["40-54"])});1b(1d(A){A.y.C["40-7d"]={1i:"L1z",1e:"L1zG5kL3U",1c:"1zih",1f:"QLigieGif1zL",1g:"&#B;Q2U",1k:"1z1B232U",1j:"&#B;&#B;",1w:"1z1B237626",1a:"Q1y&#z;",1h:"1z1B231y",1l:"&#z;&#z;",Y:"1z1B23Q26",19:"Q75",13:"1z1B7I1y",Z:["Q1y","3Z","Q1y","G1y","2i1y","G1y","Q7H","G1y","411y","G1y","GQ1y","G3Z"],14:["Q","2g","Q","G","2i","G","Q7F","G","41","G","GQ","G2g"],18:"1zL1yQ",17:"1zL26Q",16:"G",15:"26GGL",1m:["L7K","L3V","L7O","L3V","L3Y","L6B","L3Y"],1s:["GL","GQ","G2g","GQ","GG","G2i","GG"],1n:["L","Q","2g","Q","G","2i","G"],1q:"1YG6y R 1B23G6qG",1p:"1zL 6p 6V, R",1u:"W/mm/dd",1t:1,1o:"1Y1zLL3U",1r:1x};A.y.1v(A.y.C["40-7d"])})',62,1435,'||||||||||||||||||||||||||||||||||datepicker|x3e||x3c|regional|||||||||||||||DD|||||yy|е|nextBigStatus|monthNames||||currentStatus|monthNamesShort|weekStatus|weekHeader|yearStatus|monthStatus|currentText|nextText|jQuery|closeText|function|clearStatus|closeStatus|prevText|nextStatus|clearText|prevBigText|prevStatus|nextBigText|dayNames|dayNamesMin|initStatus|dateStatus|dayStatus|isRTL|dayNamesShort|firstDay|dateFormat|setDefaults|prevBigStatus|false|||е||Mar|ь|||Feb|Jan||Nov|M||Apr|ع|Ma||Sep|س|ي|Jun|ت|Jul|Okt|ي|||Maj|в|Mai||ي|S||L|Mi|datum|uacute|September|М|Dec|auml|Sa|二|Aug||Pe|ت|||November|Bekijk|Sm|к||April|So|Lu|в|Oktober|в|To|Di|у|H|||aacute|Juli|P|236|Prika|December|x17E|t|Tampilkan|Pr|Mars|na|Vis|Juni|Vidi|์||laquo|ت|й||П|Su|raquo|Voir||s|Poka|feira||iacute||August|Lun|Ti|n|Sab|к|Fr|anno|Tor|ndag|bulan|Ve|Do|nbsp|Januar|س|յ|Ago|Dom|Arata|Oct|oacute|J|jaar|Des|miesi|maand|Prika|luna|monaton|ned|MM|m|trego|m|ej|mesec|Februar|Ок|ю|true|x161|mois|N|un|Pt|期|期|е|g|期|二|zh||к|muajin|tjet|Júl|p||den|يس|Abril|Agosto|F|ع||П|P|Jún|Desember|Ned|Pon|l|Ne|Sobota||ع|Wk|het|Po|x10C|dag|Datum|Ke|Abr|trenutni|T|za|Monat|een|nji|ز|Torsdag|Ven|Seg|Me|Seleziona|rdag|Mer|Ter|Ons|Novembre|Fre|Mese|Onsdag|Ct|st|Fredag|yang|eth|Set|ouml|THORN||ccedil|data|On|CN|Octubre|Elekti|Man|Anterior|Mandag|Inchide|Effacer|Zamknij|Wyczy|Tirsdag|no|Tir|Forrige|als|Junio||maa|D|Julio|van|pny|curenta|Ao|nl|autre|Ant|Fermer|Kes|se|pl|Кв|eacute|dat|Wybierz|ве|jako|у|ю|ве|tr|Dez|Novembro|ست|О|Domingo|س|г|ь|Śr|Wt|Listopad|Lip|Lis|Gru|iniz|Hein|uk|pt|Bir|Пе|Sex|tek|ъ|Pn|kuu|Qua|inny|Qui|rok|BR|O|9|8|10|11|12|7|6|2|3|4|5|m||2|JAN|FEB|3|MAR|1|sekarang||土|Mei|期|1|berbeda|Marzo|successivo|Loka|dalam|Gen|Mostra|precedente|ri|غ|La|Aacute|hari|Dic|Gio|リ|Minggu|tahun|d|Sabato|Sb|altro|Mg|ك|4|APR|lis|Marts|||a|ris|e|Sze|Cs|Vas|TW|tre|Tr|Zatvori|date|Choisir|mei|huidige|mjesec|vorige|||volgende|Szo|պ|AUG|8|9|SEP|10|JUL|7|5|MAY|6|JUN|OCT|11||չ|||Tutup|期|NOV|12|DEC|期二|Dim|ък|Teden|schließen|zeigen|başka|anzeigen|Marec|schen|Pet|dan|V|dato|Sr|Sob|Zapri|Izbri|Fermi|Október|Febru|Janu|ек|ru|hle|W|Pia|sk|Ut|Uto|Mo|sl|fshije|Februari|Zav|Januari|Idag|sq|b|ster|ay|||sv|th|kapat|dat|kv|so|út|Nulstil|Luk|mbylle|ste|po|ne|Sh|z|En|May|jin|вг|prvi|Joi|ев|Selecteaza|ro|Cu|alian|Pz|Sam|A|ев|вгу|Vi|Vyberte|Nastavit|Septiembre|prvn|dnu|Vyber|uden|tanpa|ndringer|tanggal|bersihkan|mengubah|mundur|Noviembre|Dln|maju|sebelumnya|aktuelle|sobota|berikutnya|ini|Enero|Djs|Febrero|Dvn|Hoy|Dg|Agustus|Dsb|Maret|Dmc|Dmt|eda|tvrtek|kosongkan|Diman|st|úter|Mayo|roce|ned|pond|jaron|aktuel|jus|prilis|rcius|Ene|Június|Július|Szep|pr|Szeptember|Augusztus|re|el|Lunes|tjedna|Odaber|Če|Odaberi|rl|uge|vissza|r|bez|Vas|map|պ|Dug|Dissabte|պ|յ|anden|Diciembre|Nopember|չ|Բ|Divendres|Cs|rt|Szerda|Kedd|tf||ntek|Szombat|andet||Uge|rets|Ked|forrige|Nop|Hreinsa||jen|Tanggal|Pilih|pilih|Nyn|Fyrri|Iacute|srpen|sti|aelig|minggu|dal|p|ve|semajno|Km|gunakan|sebagai|Laugardagur|Pozd|edchoz|awal|ejde|ervenec|kiel|unua|judagur|nudagur|Uzi|vikudagur|studagur|ten|erven|Fimmtudagur|ezen|tago|ber|ln|aktu|Febr|vember|يس|Sunnudagur||Vika|únor|leden|Rb|زي|prosinec|Mardo|Dc|led|úno|daton|ъ|Vymazat|Ds|Dv|Dj|ъ|dub|Dt|pro|Sub|Agus|Sig|srp|Limpiar|Cerrar|Lundo|vc|listopad|Senin|D|ny|zm|beze|Rab|kam|Sl|Sn|Merkredo|Jum|kalend|Netejar|Kamis|Vyma|Rabu|Selasa|Jumat|Sabtu|zadan|Sel|Sen|Min|Dl|Subota|Torstai||Keskiviikko|Tiistai|Majo|Perjantai|Lauantai|уг|въ|Viernes|Agost||Maanantai|Sunnuntai|Aprilo|Mittwoch|Touko|Juliol|bado||Elo|Vk|Joulu|Marras|Syys|Dienstag|Montag|Pr|anderes|gusto|Diumenge|pr|c|Suiv|Dezember|dent|anderen|modifier|Desembre|Setembre|des|Monats|Sonntag|lectionn|Woche|sans|Jahr|Пе|Wo|Huhti|Maalis|Februaro|sen|modifi|Anta|Juny|Ju|Wochentag|Marto|ein|Vakigi|anta|Sekv||ي|Febrer|||Gener|تي|تغيي||Maig|sekvan|Januaro|Nuna|nunan||Tyhjenn|Sulje|Juv|Freitag|duben|Syyskuu|Lokakuu|Marraskuu|Helmi|Tammi|Donnerstag|Joulukuu|Samstag|Vie|Tammikuu|Seuraava|Edellinen|ersten|Helmikuu|Maaliskuu|Elokuu|Setze|Toukokuu|Huhtikuu|suivant|Courant|Rujan|Kolovoz|Srpanj|Vendredo|Studeni|Prosinac|Martes|Velj|Sij|Tancar|Lipani|Svibanj|Danas|rcoles|Dimecres|Jueves|Dana|Sije|Travanj|ujak|Velja|anj|Tra|Svi|Četvrtak|Srijeda|Utorak|Ponedjeljak|Petak|Dijous|Sri|som|f|Avui|||Nedjalja|Tjedan||||Stu|Ruj|Kol|Srp|Pro|mjesece|Tje|rste|godine|ugedag|aktuelles|slijede|une|уг|Septembro|Dimarts|heute|ann|Lundi|Oktobro|еке|Dimanche|Dilluns|rz|Avril|vrier|Janvier|courant|Juin|Juillet|Avr|cembre|Octobre|Septembre|chsten|Mardi|nderungen|Decembro|semaine|jour||ohne||prethodni|kalendar|Izbri|izbri|premier|comme|Vendredi||Jeudi|Mercredi|Vor|Samedi|letzten|zur|Utiliser|Je||Jeu|Čet|ant|Mie|Vin|Dum|Sambata|Miercuri|Vineri|Du|Jo|ег|ек|zi|saptamana|Seteaza|prima|Marti|Luni|Ian|Noi|Decembrie|Noiembrie|Septembrie|Octobrie|diferita|Arat|anului|Duminica|Saptamana|Sapt|diferit|ье|г|Prej|prej|spreminjanja|brez|tv|St|Naslednji|naslednji|Avg|drug|Avgust|Julij|Trenutni|Junij|Str|Piatok|Nasledujúci|Dnes|dzajúci|Predch|Zmaza|Zavrie|Apr|Ty|Streda|tvrtok|Utorok|Pondelok|Nedel||Julie|Junie|Sun|Czwartek|Wtorek|Poniedzialek|roku|Niedziela|Pi|Nie|dzie|tygodnia|pierwszy|Ustaw|Czw|Cz|Tydzie|Tydz|Wrzesie|Październik|Sierpie|Lipiec|Kwiecie|Czerwiec|Grudzie|Sty|Wrz|Pa|Sie|Cze|Kw|Limpar|Fechar|fara|schimbare|Sterge|Curat|Sexta|Sabado|trecuta|Urmator|Martie|Aprilie|Februarie|Ianuarie|urmatoare||Azi|Quinta|Quarta|Maio|Junho|Fevereiro|Janeiro|ximo|Hoje|Julho|Setembro|Out||Segunda|Fev||Dezembro|Outubro|drugo||leto|Mart|Nisan|Şubat|Ocak|sonraki|bug|May|Haziran|Kas|Aral|Ekim|Eyl|Temmuz|Ağustos|ileri|nceki||temizle|||Tis|Tisdag|ge|erli|stergeyi|geri|sadece|temizler|tarihi|Oca|Şub|Haftan|ilk|Cumartesi|Cuma|arşamba|Perşembe|belirleyin|tarih||||||||Sal|Pazartesi|Eyl||Eki|Ağu|Tem|Nis|||Haz|Kas|Ara|haftalar|Pazar|Ay|Hf|y|Augusti|sta|sot|Janar|rpara|fundit|ndryshime|mbrapa|Shkurt|Pril|Tetor|ntor|Shtator|Gusht|Qershor|Korrik|pa|aktuale|Sreda|etrtek|Torek|Ponedeljek|letu|Nedelja|Petek|Sre|Izbira|datuma|Izberi|tednu|Nastavi|Dhjetor|Shk|dit||par|si|Vendose|Premte|Shtune|jav|Zgjedh||ng|rra|St||Rensa|Zgjedhe|nj|Enjte|rkur|Sht|Tet|Gus|Kor|Pri|Qer|Dhj|vit|Diel|Mart|muajit|Java|Ja|Marzec|Środa|Sau|Kov|Gruodis|Lapkritis|jis|Spalis|Bal|Geg|Lap|sekmadienis|Spa|Rugs|Lie|Rugp|Rugs|tis|Sausis|Vasaris|iandien|Pirmyn|daryti|Atgal|Kovas|Balandis|Liepa|Rugpj|elis|Bir|Gegu||pirmadienis|antradienis|Febru|Apr|Janv|odien|Iepr|N|Maijs|nijs|Oktobris|Novembris|Septembris||Augusts|lijs|rt|Aizv|tadienis|sek|penktadienis|ketvirtadienis|tre|iadienis|pir|ket|Not|r|Luty|Se|pen|U|valyti|Settembre|Ottobre|Luglio|Giugno|Aprile|Maggio|Dicembre|Mag|mese|Settimana|Ott|Lug|Giu|Febbraio|Gennaio|Annulla|Chiudi|Svuota|Fi|Fim|Lau|Chiudere|senza|Oggi|corrente|Succ|Prec|modificare||dell|Domenica|||DD||土||||Md|択||I|||showMonthAfterYear|||||Venerd|Usa|Gioved|Mercoled|Luned|Marted|come|primo|Scegliere|una|settimana|della|giorno|Decembris|An|december|november|Stel|oktober|jan|feb|jun|Nav|vr|apr|eerste|week|zapisywania|Poprzedni|augustus|juli|september|obecn|Kies|Lukk|Neste|Uke|jul|aug|zon||zaterdag|vrijdag|donderdag|din|woe|zo|zat|vri|don|woensdag|dinsdag||dec|nov|okt|sep|andere|wo|maandag|zondag|Week|ander|juni|bez|pkt|sst|ctr|otr|prm|Sv|nast|Nast|Ss|april|Ot|Dzi|svt|otrdiena|tre|pirmdiena|tdiena|sv|diena|ceturtdiena|aktualny|Stycze|sestdiena|piektdiena|poprzedni|Pk|Vandaag|Wis|januari|verandering|Sluiten|februari|maart|Sluit|zonder|Wissen'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ar.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ar.packed.js new file mode 100644 index 0000000..3222bc6 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ar.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('V(T(A){A.k.s["o"]={13:"be",1a:"abe abga1b abaabh",K:"arab",v:"arab aabb aba",u:"&#m;abeab",w:"ca ababa abeab",t:"&#m;&#m;",N:"",I:"abgbh&#l;",H:"ca ababa abbaab",J:"&#l;&#l;",E:"",C:"abfb",B:"ca ababa abaabh",y:["pbbb abaabh","aaaa","aaaa","bzb","aaaa","aFab","GbL","aa","afbb","gaf ababb","gaf abaabh","pbbb ababb"],x:["1","2","3","4","5","6","7","8","9","10","11","12"],1e:"ca aba aaa",17:"ca qa aaab",16:"aebn",15:"aebn abqa",14:["abei","abaaa","abaabf","ababaaaa","abaaaca","ababj","ababc"],18:["ei","aaa","aabf","abaaaa","aaaca","abj","abc"],O:["ei","aaa","aabf","abaaaa","aaaca","abj","abc"],19:"aag 1d bbfb ababb bb abaebn",1c:"aag D, M d",Z:"S/R/Q",P:0,U:"aag fb",Y:X};A.k.W(A.k.s["o"])})',62,77,'||||||||||||ع||س|ي|ت|ي|ت|يس|datepicker|x3e|x3c|ع|ar|ك|س|غ|regional|prevBigText|prevText|closeStatus|prevStatus|monthNamesShort|monthNames|يس||currentStatus|currentText||nextBigStatus|زي|ت|nextStatus|nextText|nextBigText|closeText|ز||prevBigStatus|dayNamesMin|firstDay|yy|mm|dd|function|initStatus|jQuery|setDefaults|true|isRTL|dateFormat||||clearText|dayNames|weekStatus|weekHeader|yearStatus|dayNamesShort|dayStatus|clearStatus|ي|dateStatus|DD|monthStatus'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-bg.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-bg.packed.js new file mode 100644 index 0000000..a451df5 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-bg.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('C(P(A){A.e.l["i"]={H:"0020220",Q:"0020220 0Nb00020 0020",p:"002720",K:"002720 03 020030",w:"&#a;00000",x:"00500 00203002 044",y:"&#a;&#a;",o:"",r:"00023&#c;",B:"00500 2037202 044",L:"&#c;&#c;",G:"",E:"004",F:"",J:["00b20","0Ob20","622","00200","6k","000","000","0s2","032380","j0080","00380","0q80"],t:["00u","0z","62","002","6k","000","000","0v","03","j","00I","0W"],1b:"00500 021c 044",1a:"00500 0219 160000",17:"R",18:"230020 02 0440",1e:["0332","903300f","020200f","02200","041f2h","gh","0m020"],1i:["03","90","020","022","04","g","0m"],1g:["0n","9","02","02","0n","1h","01d"],14:"00000 15 520 0V7 03 02 23002020",U:"00040 D, M d",S:"T.X.Y",13:1,12:"00040 0020",11:Z};A.e.10(A.e.l["i"])})',62,81,'|||е|е|к|М|в|в|П|x3c|у|x3e||datepicker|к|Пе|ък|bg|Ок|й|regional|ъ|е|prevBigStatus|closeText|еке|nextText|вгу|monthNamesShort|у|вг|prevText|prevStatus|prevBigText|ев||nextStatus|jQuery||currentText|currentStatus|nextBigStatus|clearText|в|monthNames|closeStatus|nextBigText||к|ев|function|clearStatus|Wk|dateFormat|dd|dateStatus|ъ|ек|mm|yy|false|setDefaults|isRTL|initStatus|firstDay|dayStatus|DD|г|weekHeader|weekStatus|уг|yearStatus|monthStatus|уг|ъ|dayNames|въ|dayNamesMin|Пе|dayNamesShort'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ca.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ca.packed.js new file mode 100644 index 0000000..280fce6 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ca.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('B(C(A){A.2.6["5"]={E:"F",z:"",y:"u",v:"",w:"x",G:"",H:"",P:"",Q:"R",O:"",N:"",I:"",J:"t",L:"",S:["p","c","4&e;","f","b","h","7","8","9","a","g","s"],i:["q","r","4","o","n","j","k","l","m","K","11","1i"],T:"",1n:"",1p:"1m",1o:"",1l:["1k","1g","1h","1q","1x","1y","1z"],1w:["1v","1r","1s","1t","1u","1j","1e"],10:["1f","12","Z","Y","U","V","W"],X:"13",14:"D, M d",1b:"1c/1d/1a",19:0,15:"",16:17};A.2.18(A.2.6["5"])})',62,98,'|x3c|datepicker|x3e|Mar|ca|regional|Juliol|Agost|Setembre|Octubre|Maig|Febrer||ccedil|Abril|Novembre|Juny|monthNamesShort|Jun|Jul|Ago|Set|Mai|Abr|Gener|Gen|Feb|Desembre|Avui|Tancar|closeStatus|prevText|Ant|closeText|clearStatus||jQuery|function||clearText|Netejar|prevStatus|prevBigText|nextBigStatus|currentText|Oct|currentStatus||nextBigText|nextStatus|prevBigStatus|nextText|Seg|monthNames|monthStatus|Dj|Dv|Ds|dayStatus|Dc|Dt|dayNamesMin|Nov|Dl|DD|dateStatus|initStatus|isRTL|false|setDefaults|firstDay|yy|dateFormat|mm|dd|Dsb|Dg|Dilluns|Dimarts|Des|Dvn|Diumenge|dayNames|Sm|yearStatus|weekStatus|weekHeader|Dimecres|Dln|Dmt|Dmc|Djs|Dug|dayNamesShort|Dijous|Divendres|Dissabte'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-cs.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-cs.packed.js new file mode 100644 index 0000000..ea96edf --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-cs.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('13(12(A){A.9.r["n"]={14:"15",17:"16e 11 o",10:"s2t",V:"se U3 W XZ",Y:"&#b;18219",1j:"48t 5 1i1k 76",1l:"&#b;&#b;",1m:"",1h:"1gT&#f;",1a:"48t 5 1c2 76c",1d:"&#f;&#f;",1f:"",1e:"1n",P:"4z 5 BF 76c",E:["C","D","qG","S","pH","0Q","0R","O","u32","32N","I","J"],K:["L","1b","qe","1S","p","01T","01U","1V","u3","32j","1R","1o"],1Q:"48t 5 k 76c",1M:"48t 5 k 1N",1X:"wd",1P:"wh v 1W",1Y:["2422","231Z","20","211O","01K","a1v","1w"],1L:["g","x","m","i","0t","a","l"],1x:["g","x","m","i","0t","a","l"],1y:"1u y 1t 1p h v 1q1r",1s:"\'1z\' y, M d",1A:"1H.1I.1J",1G:1,1F:"1B o",1C:1D};A.9.1E(A.9.r["n"])})',62,129,'||||P|na|s|m|ej|datepicker|p|x3c||||x3e|ne|den|st||jin|so|út|cs|datum|kv|b|regional|Zav||z||T|po|DD|ejde||aktu|leden|únor|monthNames|ln|ezen|ten|listopad|prosinec|monthNamesShort|led||jen|srpen|currentStatus|erven|ervenec|duben|ji|kalend|closeStatus|beze|zm|prevText|ny|closeText|zadan|function|jQuery|clearText|Vymazat|Vyma|clearStatus|D|ve|nextStatus|úno|dal|nextBigText|currentText|nextBigStatus|Pozd|nextText|p|prevStatus|edchoz|prevBigText|prevBigStatus|Nyn|pro|prvn|t|dnu|dateStatus|jako|Nastavit|tek|sobota|dayNamesMin|dayStatus|Vyber|dateFormat|Vyberte|isRTL|false|setDefaults|initStatus|firstDay|dd|mm|yy|tvrtek|dayNamesShort|yearStatus|rok|eda|weekStatus|monthStatus|lis|dub|er|vc|srp|roce|weekHeader|dayNames|l|úter|st|le|pond|ned'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-da.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-da.packed.js new file mode 100644 index 0000000..b59b5e7 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-da.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('X(W(A){A.9.b["g"]={Y:"a",Z:"a 10 V k",U:"c",Q:"c R 5S",T:"11",12:"1 1a 34",1b:"",1d:"",19:"18f",14:"1 13f 34",16:"",O:"",1e:"I",u:"1 v 34",s:["x","y","q","l","e","m","p","o","w","N","z","J"],K:["L","H","G","B","e","C","E","F","17","1n","1f","1L"],1M:"1 j 1N 34",1J:"1 1E 1F 5r",1G:"1P",1H:"51O 1X",1Y:["21W","1U","1V","1Q","1R","1S","61T"],1C:["2n","1m","1D","1o","1p","1l","6r"],1k:["2","1g","1h","1i","1j","1q","6"],1y:"2t 1A 1B 1x1w 1s",1t:"hi D, M d",1u:"1v-1K-1z",1r:0,1I:"hi j k",15:1c};A.9.P(A.9.b["g"])})',62,123,'|Vis|S|m|ned||L|x3e|x3c|datepicker|Nulstil|regional|Luk||Maj|ste|da|V|lg|en|dato|April|Juni||August|Juli|Marts||monthNames||currentStatus|aktuel|September|Januar|Februar|November||Apr|Jun||Jul|Aug|Mar|Feb|Idag|December|monthNamesShort|Jan||Oktober|nextBigStatus|setDefaults|closeStatus|uden|ndringer|prevText|closeText|aktuelle|function|jQuery|clearText|clearStatus|den|Forrige|prevStatus|n|nextStatus|isRTL|nextBigText|Sep|N|nextText|forrige|prevBigText|false|prevBigStatus|currentText|Nov|Ma|Ti|On|To|dayNamesMin|Fre|Man|Okt|Ons|Tor|Fr|firstDay|ugedag|dateStatus|dateFormat|dd|rste|f|dayStatus|yy|DD|som|dayNamesShort|Tir|et|andet|weekHeader|weekStatus|initStatus|yearStatus|mm|Dec|monthStatus|anden|rets|Uge|Onsdag|Torsdag|Fredag|rdag|Mandag|Tirsdag|ndag|uge|dayNames'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-de.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-de.packed.js new file mode 100644 index 0000000..07e46db --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-de.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('F(K(A){A.4.m["c"]={z:"jn",p:"14 o jn",P:"f",T:"W G11 f",Z:"�YR",Q:"19 2 g",V:"��",X:"",U:"16",17:"1815 2 g",10:"",12:"",13:"O",N:"",w:["x","y","hv","u","9","q","s","t","B","J","L","I"],H:["C","E","hr","S","9","1B","1z","1F","1Q","1E","1G","1a"],1H:"1D 2 e",1C:"1y 1I e",1J:"1P",1R:"1S 1O 1N",1K:["1L","1M","1A","1w","1h","1x","1i"],1j:["b","a","i","6","5","7","8"],1k:["b","a","i","6","5","7","8"],1g:"1f 1b 1c 1d 1e",1l:"kl D, M d",1m:"1t.1u.1v",1s:1,1r:"kl 1n o",1o:1p};A.4.1q(A.4.m["c"])})',62,117,'x3c||Monat|x3e|datepicker|Do|Mi|Fr|Sa|Mai|Mo|So|de||anzeigen|schließen|zeigen|M|Di|l|W|hle|regional|schen|Datum|clearStatus|Juni||Juli|August|April|rz|monthNames|Januar|Februar|clearText||September|Jan||Feb|jQuery||monthNamesShort|Dezember|Oktober|function|November||currentStatus|heute|closeText|prevStatus|ck|Apr|closeStatus|nextText|prevBigText|ohne|prevBigStatus|zur|prevText|nextBigText|nderungen|nextBigStatus|currentText|aktuelles|chsten|Vor|nextStatus|n|letzten|Dez|DD|als|ersten|Wochentag|Setze|dayStatus|Donnerstag|Samstag|dayNamesShort|dayNamesMin|dateStatus|dateFormat|ein|isRTL|false|setDefaults|initStatus|firstDay|dd|mm|yy|Mittwoch|Freitag|anderes|Jul|Dienstag|Jun|yearStatus|anderen|Okt|Aug|Nov|monthStatus|Jahr|weekHeader|dayNames|Sonntag|Montag|Monats|des|Wo|Sep|weekStatus|Woche'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-eo.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-eo.packed.js new file mode 100644 index 0000000..05b708f --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-eo.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('Q(P(A){A.4.i["f"]={R:"S",T:"",O:"6",N:"6 J I",K:"&L;M",U:"2 1 V14 3",13:"",15:"",16:"17&12;",11:"2 1 X 3",W:"&#b;&#b;",H:"",Z:"10",18:"2 1 F 3",n:["t","p","m","k","l","s","G","ju","C","D","E","B"],z:["v","w","9","x","y","r","q","jg","Y","1h","1G","1H"],1I:"2 8 3",19:"2 8 1J",1F:"1E",1A:"",1B:["1Co","1L","1K","1N","5c1T","1U","1V"],1R:["1S","1M","9","1O","5c","1P","1Q"],1D:["1y","1z","1i","1j","5a","1k","1g"],1f:"1b e 1a 1c 1d 1e 1 1l",1m:"h e, 1u d",1v:"1w/1x/1t",1s:0,1o:"h 1 1n",1p:1q};A.4.1r(A.4.i["f"])})',62,120,'|la|Vidi|monaton|datepicker||Fermi|x3c|alian|Mar||x3e|a||DD|eo||Elekti|regional|A|Aprilo|Majo|Marto|monthNames||Februaro|Jul|Jun|Junio|Januaro|gusto|Jan|Feb|Apr|Maj|monthNamesShort||Decembro|Septembro|Oktobro|Novembro|nunan|Julio|nextBigStatus|modifi|sen|prevText|lt|Anta|closeStatus|closeText|function|jQuery|clearText|Vakigi|clearStatus|prevStatus|anta|nextBigText|sekvan|Sep|currentText|Nuna|nextStatus|gt|prevBigText|an|prevBigStatus|nextText|Sekv|currentStatus|yearStatus|kiel|Uzi|unua|tago|de|dayStatus|Sa|Okt|Ma|Me|Ve|semajno|dateStatus|daton|initStatus|isRTL|false|setDefaults|firstDay|yy|MM|dateFormat|dd|mm|Di|Lu|weekStatus|dayNames|Diman|dayNamesMin|Sb|weekHeader|Nov|Dec|monthStatus|jaron|Mardo|Lundo|Lun|Merkredo|Mer|Ven|Sab|dayNamesShort|Dim|do|Vendredo|Sabato'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-es.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-es.packed.js new file mode 100644 index 0000000..660ff02 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-es.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('F(G(A){A.4.9["6"]={H:"I",E:"",C:"x",y:"",z:"B",J:"",K:"",T:"",U:"V",R:"",Q:"",L:"",w:"O",P:"",W:["r","e","h","g","f","a","c","i","v","j","s","t"],u:["q","p","7","l","k","m","n","o","N","14","1k","1j"],1i:"",X:"",1z:"1n",1o:"",1p:["1m","1l","1q","2&8;1r","1x","1y","S&3;1w"],1v:["1s","1t","7","2&8;","1u","1g","S&3;b"],13:["1h","15","12","2","11","Y","S&3;"],Z:"10",16:"D, M d",17:"1d/1e/1f",1c:0,1b:"",18:19};A.4.1a(A.4.9["6"])})',62,98,'|x3e|Mi|aacute|datepicker|x3c|es|Mar|eacute|regional|Junio||Julio||Febrero|Mayo|Abril|Marzo|Agosto|Octubre|May|Abr|Jun|Jul|Ago|Feb|Ene|Enero|Noviembre|Diciembre|monthNamesShort|Septiembre|currentText|Cerrar|closeStatus|prevText||Ant|closeText||clearStatus|jQuery|function|clearText|Limpiar|prevStatus|prevBigText|nextBigStatus||Sep|Hoy|currentStatus|nextBigText|nextStatus||prevBigStatus|nextText|Sig|monthNames|yearStatus|Vi|dayStatus|DD|Ju|Ma|dayNamesMin|Oct|Lu|dateStatus|dateFormat|isRTL|false|setDefaults|initStatus|firstDay|dd|mm|yy|Vie|Do|monthStatus|Dic|Nov|Lunes|Domingo|Sm|weekStatus|dayNames|Martes|rcoles|Dom|Lun|Juv|dayNamesShort|bado|Jueves|Viernes|weekHeader'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fa.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fa.packed.js new file mode 100644 index 0000000..287ef5a --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fa.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('I(H(A){A.m.t["s"]={G:"00a f0b",E:"a0e e00a f0b 000c",F:"0q",J:"0q 00aa 0k0a K0g",Q:"&#j;a0ac",P:"aa0b a0a a0a",O:"&#j;&#j;",L:"",C:"0nc&#l;",R:"aa0b a0a 0n",z:"&#l;&#l;",B:"",y:"0a0ao",x:"aa0b a0a 000c",v:["a0a00i","000ba0g","00000","w","a0000","0a0i0","aa0","000a","000","0c","0aaa","0ua0"],N:["1","2","3","4","5","6","7","8","9","10","11","12"],1c:"aa0b a0a ah0ag",1d:"aa0b ra ah0ag",S:"aa",1e:"aaha ra",1b:["190a0a","0a0a0a","u0a0a","ea000a0a","aa00a0a","0ak","0a0a"],X:["c","0","p","e","a","0","0"],1a:["c","0","p","e","a","0","0"],Y:"a0aa W 0ka0a 0aai 0ao aah",V:"0af00 D, M d",T:"U/Z/13",18:6,17:"0af00 f0b",16:14};A.m.15(A.m.t["s"])})',62,77,'|||||||||||ي|ي|||ت|ت|ت|ي|x3c|ع|x3e|datepicker|ع|ز|س|ست|س|fa|regional|س|monthNames|تي|currentStatus|currentText|nextBigText||nextBigStatus|nextText||clearStatus|closeText|clearText|function|jQuery|closeStatus|تغيي|prevBigStatus||monthNamesShort|prevBigText|prevStatus|prevText|nextStatus|weekHeader|dateFormat|yy|dateStatus|DD|dayNamesShort|dayStatus|mm||||dd|true|setDefaults|isRTL|initStatus|firstDay|ي|dayNamesMin|dayNames|monthStatus|yearStatus|weekStatus'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fi.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fi.packed.js new file mode 100644 index 0000000..000b5f1 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fi.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('s(v(A){A.3.g["b"]={w:"h&0;",O:"",V:"N",L:"",F:"&E;J",W:"",I:"&#c;&#c;",K:"",H:"G&C;",S:"",R:"&#e;&#e;",P:"",Q:"T&0;n&0;&0;n",B:"",z:["m","o","l","q","k","9&0;8","a&0;8","i","j","p","r","x"],y:["t","u","U","14","1o","9&0;","a&0;","X","1j","1i","1s","1m"],1n:"",1l:"",1k:"1h",1p:"",1v:["2","f","4","5","6","7","2"],1u:["1t","1q","1r","1f","13","1g","15"],12:["2","f","4","5","6","7","11"],Y:"Z",10:"D, M d",16:"17.1d.1e",1c:1,1b:"",18:19};A.3.1a(A.3.g["b"])})',62,94,'auml||Su|datepicker|Ti|Ke|To|Pe|kuu|Kes|Hein|fi|x3c||x3e|Ma|regional|Tyhjenn|Elokuu|Syyskuu|Toukokuu|Maaliskuu|Tammikuu||Helmikuu|Lokakuu|Huhtikuu|Marraskuu|jQuery|Tammi|Helmi|function|clearText|Joulukuu|monthNamesShort|monthNames||currentStatus|raquo||laquo|prevText|Seuraava|nextText|prevBigText|Edellinen|prevBigStatus|closeStatus||Sulje|clearStatus|nextBigStatus|currentText|nextBigText|nextStatus||Maalis|closeText|prevStatus|Elo|dayStatus|DD|dateStatus|La|dayNamesMin|Torstai|Huhti|Lauantai|dateFormat|dd|isRTL|false|setDefaults|initStatus|firstDay|mm|yy|Keskiviikko|Perjantai|Vk|Loka|Syys|weekHeader|yearStatus|Joulu|monthStatus|Touko|weekStatus|Maanantai|Tiistai|Marras|Sunnuntai|dayNames|dayNamesShort'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fr.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fr.packed.js new file mode 100644 index 0000000..e42fdc6 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-fr.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('T(S(A){A.6.k["j"]={U:"n",V:"n 4 h WRe",Q:"9",M:"9 L N",O:"Pc",X:"0 2 3 Y1716",18:"",19:"",1a:"15",14:"0 2 3 10",K:"",11:"",12:"13",1b:"0 2 3 B",o:["w","au","s","r","f","p","q","lt","x","J","H","iy"],I:["F","av","b","z","f","C","D","l","E","G","Z","ic"],1K:"0 1L 8 3",1c:"0 1M 8 1Ne",1J:"1I",1E:"",1D:["1F","1P","1H","1O","1X","1Y","1W"],1V:["1Q","1R","b","1U","1T","1S","1G"],1B:["1C","1k","1l","1m","1n","1j","1i"],1e:"1d g 1f 1g 1h 1o 4 1p",1x:"\'m\' 2 g d 1y",1z:"1A/1w/1v",1r:1,1q:"m 4 h",1s:1t};A.6.1u(A.6.k["j"])})',62,123,'Voir||le|mois|la|x3c|datepicker|x3e|autre|Fermer|F|Mar||||Mai|DD|date|D|fr|regional|Ao|Choisir|Effacer|monthNames|Juin|Juillet|Avril|Mars||vrier||Janvier|Septembre|cembre|Avr||courant|Jun|Jul|Sep|Jan|Oct|Novembre|monthNamesShort|Octobre|nextBigText|sans|closeStatus|modifier|prevText|Pr|closeText|lectionn|function|jQuery|clearText|clearStatus|s|prevStatus|pr|Nov|suivant|nextBigStatus|currentText|Courant|nextStatus|Suiv|dent|c|prevBigText|prevBigStatus|nextText|currentStatus|yearStatus|Utiliser|dayStatus|comme|premier|jour|Sa|Ve|Lu|Ma|Me|Je|de|semaine|initStatus|firstDay|isRTL|false|setDefaults|yy|mm|dateStatus|MM|dateFormat|dd|dayNamesMin|Di|dayNames|weekStatus|Dimanche|Sam|Mardi|Sm|weekHeader|monthStatus|un|une|ann|Mercredi|Lundi|Dim|Lun|Ven|Jeu|Mer|dayNamesShort|Samedi|Jeudi|Vendredi'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-he.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-he.packed.js new file mode 100644 index 0000000..edc0af2 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-he.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('w(v(A){A.g.h["i"]={u:"נקה",s:"",t:"סגור",x:"",y:"&#c;הקודם",D:"",C:"&#c;&#c;",B:"",r:"הבא&#f;",E:"",k:"&#f;&#f;",l:"",q:"היום",m:"",p:["ינואר","פברואר","aרץ","אפריb","aאי","יוני","יוbי","אוגוסט","ספטaבר","אוקטובר","נובaבר","דצaבר"],o:["1","2","3","4","5","6","7","8","9","10","n","F"],z:"",K:"",X:"Y",Z:"",W:["ראשוU","שני","שbישי","רביעי","חaישי","שישי","שבe"],V:["א\'","ב\'","ג\'","ד\'","ה\'","ו\'","שבe"],L:["א\'","ב\'","ג\'","ד\'","ה\'","ו\'","שבe"],J:"j",I:"j, M d",G:"H/N/O",T:0,S:"",R:P};A.g.Q(A.g.h["i"])})',62,63,'||||||||||||x3c|||x3e|datepicker|regional|he|DD|nextBigText|nextBigStatus|currentStatus|11|monthNamesShort|monthNames|currentText|nextText|clearStatus|closeText|clearText|function|jQuery|closeStatus|prevText|monthStatus||prevBigStatus|prevBigText|prevStatus|nextStatus|12|dateFormat|dd|dateStatus|dayStatus|yearStatus|dayNamesMin||mm|yy|true|setDefaults|isRTL|initStatus|firstDay||dayNamesShort|dayNames|weekHeader|Sm|weekStatus|'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hr.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hr.packed.js new file mode 100644 index 0000000..d0a69e6 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hr.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('P(O(A){A.5.9["6"]={Q:"Ri",S:"Ni L 2",H:"8",G:"8 I",J:"",K:"0i T 7",U:"",12:"",13:"",14:"0i 15i 7",11:"",10:"",W:"V",F:"YZ 2",16:["Bj","ha","bk","l","g","m","o","f","c","e","n","E"],y:["z","p","bu","C","x","w","r","q","s","t","v","X"],1g:"0i 1G",17:"0i 1H",1I:"1J",1F:"1E",1A:["1z","1L","1C","1D","1K","1R","1T"],1U:["1V","1S","1N","1M","1O","1P","1Q"],1B:["1x","1y","1f","1h","1i","1j","1e"],1d:"19 18 1a 1b 1c 1k",1l:"\'1t\' D, M d",1u:"1v.1w.1s.",1r:1,1n:"1m 2",1o:1p};A.5.1q(A.5.9["6"])})',62,120,'Prika||datum|x3e|x3c|datepicker|hr|mjesec|Zatvori|regional||O|Rujan||Listopad|Kolovoz|Svibanj|Velja||anj|ujak|Travanj|Lipani|Studeni|Srpanj|Velj|Kol|Srp|Ruj|Lis||Stu|Lip|Svi|monthNamesShort|Sij||Sije|Tra||Prosinac|currentStatus|closeStatus|closeText|kalendar|prevText|prevStatus|trenutni||Izbri|function|jQuery|clearText|izbri|clearStatus|prethodni|prevBigText|Danas|currentText|Pro|Dana|nji|nextBigStatus|nextBigText|prevBigStatus|nextText|nextStatus|slijede|monthNames|yearStatus|DD|Odaber|za|prvi|dan|dayStatus|Su|Ut|monthStatus|Sr|Če|Pe|tjedna|dateStatus|Odaberi|initStatus|isRTL|false|setDefaults|firstDay|yy|Datum|dateFormat|dd|mm|Ne|Po|Nedjalja|dayNames|dayNamesMin|Utorak|Srijeda|Tjedan|weekStatus|mjesece|godine|weekHeader|Tje|Četvrtak|Ponedjeljak|Sri|Uto|Čet|Pet|Sub|Petak|Pon|Subota|dayNamesShort|Ned'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hu.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hu.packed.js new file mode 100644 index 0000000..13ffb3f --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hu.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('z(y(A){A.3.f["a"]={l:"813s",10:"",14:"ZYs",O:"",T:"&19;&4;U",W:"",X:"&#b;&#b;",S:"",N:"QR&4;&16;",17:"",18:"&#e;&#e;",11:"",12:"L",F:"",p:["qr","ur","0o","9g","0h","m","i","v","J","w","G","I"],E:["C","x","0r","9B","0j","15","1A","1B","1C","1a","1D","1z"],1y:"",1u:"",1v:"2",1F:"",1w:["1x1E","21G","1I","1H","c81Jk","61s","1g"],1h:["1i","2t","1t","7","c","6n","5"],1f:["V","H","K","7","1e","P","5"],1b:"1c",1d:"D, M d",1j:"1k-1q-1r",1p:1,1o:"",1l:1m};A.3.1n(A.3.f["a"])})',62,108,'M||H|datepicker|nbsp|Szo|P|Sze|t||hu|x3c|Cs||x3e|regional|prilis|jus|Július|||clearText|Június||rcius|monthNames|Janu||||Febru|Augusztus|Október|Feb|function|jQuery||pr|Jan||monthNamesShort|currentStatus|November||December|Szeptember||ma||nextText|closeStatus||el|re|prevBigStatus|prevText|vissza||prevStatus|prevBigText|r|bez|clearStatus|nextBigStatus|currentText|rl|closeText|Jún|raquo|nextStatus|nextBigText|laquo|Okt|dayStatus|DD|dateStatus|Cs|dayNamesMin|Szombat|dayNamesShort|Vas|dateFormat|yy|isRTL|false|setDefaults|initStatus|firstDay|mm|dd|ntek|Ked|yearStatus|weekHeader|dayNames|Vas|monthStatus|Dec|Júl|Aug|Szep|Nov|map|weekStatus|tf|Szerda|Kedd|rt'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hy.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hy.packed.js new file mode 100644 index 0000000..1b448cd --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-hy.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('p(o(A){A.5.9["b"]={n:"002200",l:"",m:"00000",q:"",r:"000.",w:"",v:"",u:"",s:"000.",k:"",t:"",x:"",g:"3422",j:"",i:["0020002","0002002","0020","3a00","0040","002000","002000","0000000","00h00002","000000002","0040002","300000002"],c:["00200","0002","0020","3a","0040","002000","0020","000","00e","000","00f","300"],E:"",Q:"",P:"0y",O:"",N:["002000","000200000","020200000","R20200000","000000000","022000","00000"],S:["002","020","022","82","000","0220","000"],V:["002","020","022","82","000","0220","000"],U:"T",L:"D, M d",B:"z.F.G",J:1,H:"",K:I};A.5.C(A.5.9["b"])})',58,58,'||||յ|datepicker|x3c|x3e|չ|regional|պ|hy|monthNamesShort||պ|յ|currentText|պ|monthNames|currentStatus|nextStatus|clearStatus|closeText|clearText|function|jQuery|closeStatus|prevText|nextText|nextBigText|prevBigStatus|prevBigText|prevStatus|nextBigStatus|Բ|dd||dateFormat|setDefaults||monthStatus|mm|yy|initStatus|false|firstDay|isRTL|dateStatus||dayNames|weekStatus|weekHeader|yearStatus|չ|dayNamesShort|DD|dayStatus|dayNamesMin'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-id.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-id.packed.js new file mode 100644 index 0000000..58115b2 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-id.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('R(S(A){A.3.c["j"]={T:"U",Q:"P L 6 f",K:"e",M:"e N O",V:"W",13:"1 2 14",15:"",12:"",11:"X",Y:"1 2 Z",10:"",I:"",r:"8 s",t:"1 2 f",q:["p","l","k","m","g","n","o","v","w","E","F","G"],H:["D","C","x","y","g","B","18","1v","1D","1E","1F","1G"],1C:"1 2 6 i",1x:"1 a 6 i",1I:"b",1H:"7 9 a",1Q:["7","1R","1P","1K","1J","1L","1M"],1N:["1A","1w","1f","1g","1h","1i","1e"],1d:["b","1a","1b","1c","1j","1k","1r"],1s:"1t h 1u 1q 8 9 1l",1m:"1n 1o h, 17 d",1p:"19/1S/1O",1z:0,1y:"1B z",u:J};A.3.16(A.3.c["j"])})',62,117,'|Tampilkan|bulan|datepicker|x3e|x3c|yang|Minggu|hari|dalam|tahun|Mg|regional||Tutup|sekarang|Mei|DD|berbeda|id|Maret|Februari|April|Juni|Juli|Januari|monthNames|currentText|ini|currentStatus|isRTL|Agustus|September|Mar|Apr|Tanggal||Jun|Feb|Jan|Oktober|Nopember|Desember|monthNamesShort|nextBigStatus|false|closeText|tanggal|closeStatus|tanpa|mengubah|bersihkan|clearStatus|jQuery|function|clearText|kosongkan|prevText|mundur|maju|nextStatus|berikutnya|nextBigText|nextText|prevBigStatus|prevStatus|sebelumnya|prevBigText|setDefaults|MM|Jul|dd|Sn|Sl|Rb|dayNamesMin|Sab|Sel|Rab|kam|Jum|Km|jm|minggu|dateStatus|pilih|le|dateFormat|awal|Sb|dayStatus|gunakan|sebagai|Agus|Sen|yearStatus|initStatus|firstDay|Min|Pilih|monthStatus|Sep|Okt|Nop|Des|weekStatus|weekHeader|Kamis|Rabu|Jumat|Sabtu|dayNamesShort|yy|Selasa|dayNames|Senin|mm'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-is.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-is.packed.js new file mode 100644 index 0000000..2f758cd --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-is.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('E(B(A){A.b.k["m"]={11:"15",14:"",W:"Q",16:"",S:" T",U:"",R:"",K:"",L:"N&O;P ",V:"",13:"",12:"",X:"&Y; Z",10:"",I:["j&1;f","t&1;f","q","e&2;l","i&2","J&1;n&2;","J&1;l&2;","&o;g&1;p","w","c&7;H","N&7;x","G"],C:["j","y","z","e","i&2;","J&1;n","J&1;l","&o;g&1;","u","c","N&7;v","17"],1w:"",1x:"",1y:"1v",1u:"",1A:["1s","M&a;1t","&9;h&6;1z","4&6;1E","1B","F&5;1C","1D"],1r:["1p","M&a;n","&9;h","4&6;","1d","F&5;s","1q"],1e:["1f","M&a;","&9;r","4","1c","F&5;","1b"],18:"19",1a:"D, M d",1g:"1h/1n/1o",1m:0,1l:"",1i:1j};A.b.1k(A.b.k["m"])})',62,103,'|uacute|iacute|x3e|Mi|ouml|eth|oacute|x3c|THORN|aacute|datepicker|Okt||Apr|ar||ri|Ma|Jan|regional||is||Aacute|st|Mars|||Febr|Sep||September|vember|Feb|Mar||function|monthNamesShort||jQuery||Desember|ber|monthNames||prevBigStatus|nextText|||aelig|sti|Loka|prevBigText|prevText|Fyrri|prevStatus|nextStatus|closeText|currentText|Iacute|dag|currentStatus|clearText|nextBigStatus|nextBigText|clearStatus|Hreinsa|closeStatus|Des|dayStatus|DD|dateStatus|La|Fi|Fim|dayNamesMin|Su|dateFormat|dd|isRTL|false|setDefaults|initStatus|firstDay|mm|yy|Sun|Lau|dayNamesShort|Sunnudagur|nudagur|weekStatus|Vika|monthStatus|yearStatus|weekHeader|judagur|dayNames|Fimmtudagur|studagur|Laugardagur|vikudagur'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-it.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-it.packed.js new file mode 100644 index 0000000..8185a05 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-it.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('U(V(A){A.7.h["e"]={W:"X",T:"S",O:"N",P:"Q R Y",Z:"17",18:"4 b",19:"",1a:"c l\'2 b",16:"15",11:"4 a",10:"",13:"c l\'2 a",K:"q",p:"4 s",t:["o","n","j","i","k","m","u","v","G","F","H","I"],J:["E","C","9","x","w","y","z","B","1c","1k","1K","1J"],1L:"3 g f 1M",1N:"3 g f 2",1D:"1C",1E:"1F 1P\'2",1R:["1X","1Y�","1W�","1U�","1Q�","1V�","1S"],1T:["1G","1A","9","1l","8","1m","1n"],1j:["1i","1e","1d","1f","8","1h","1o"],1p:"1w 1x 1y 1z 1v 1u 1q",1r:"\'3\' D, M d",1t:"1b/1s/1g",1B:1,1O:"1H 1I r",L:14};A.7.12(A.7.h["e"])})',62,123,'236||anno|Seleziona|Mese|x3e|x3c|datepicker|Gio|Mar|successivo|precedente|Mostra||it|altro|un|regional|Aprile|Marzo|Maggio||Giugno|Febbraio|Gennaio|currentStatus|Oggi|data|corrente|monthNames|Luglio|Agosto|Mag|Apr|Giu|Lug||Ago|Feb||Gen|Ottobre|Settembre|Novembre|Dicembre|monthNamesShort|currentText|isRTL||Chiudi|closeText|closeStatus|Chiudere|senza|Annulla|clearStatus|jQuery|function|clearText|Svuota|modificare|prevText|nextBigText|nextStatus|setDefaults|nextBigStatus|false|Succ|nextText|Prec|prevStatus|prevBigText|prevBigStatus|dd|Set|Ma|Lu|Me|yy|Ve|Do|dayNamesMin|Ott|Mer|Ven|Sab|Sa|dayStatus|settimana|dateStatus|mm|dateFormat|della|giorno|Usa|DD|come|primo|Lun|firstDay|Sm|weekHeader|weekStatus|Settimana|Dom|Scegliere|una|Dic|Nov|monthStatus|mese|yearStatus|initStatus|dell|Gioved|dayNames|Sabato|dayNamesShort|Mercoled|Venerd|Marted|Domenica|Luned'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ja.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ja.packed.js new file mode 100644 index 0000000..f68b982 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ja.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('O(N(A){A.b.u["g"]={M:"1n",K:"2a11n111",L:"411",P:"8211Q4111",U:"&#c;8",T:"85163711",S:"&#c;&#c;",J:"8t163711",V:"2&#d;",I:"3y163711",z:"&#d;&#d;",w:"3v163711",B:"aC",H:"aG163711",F:["m","l","k","j","o","i","q","p","s","h","e","f"],E:["m","l","k","j","o","i","q","p","s","h","e","f"],1g:"63715182111",19:"6371t182111",10:"4",Z:"X413a43116111",12:["229","529","329","229","529","429","139"],16:["2","5","3","2","5","4","r"],15:["2","5","3","2","5","4","r"],R:"418111417111",Y:"11(D)",1h:"1i/1j/1f",1e:0,1a:"2a141b11",1c:1d,18:W};A.b.x(A.b.u["g"])})',62,82,'|||||||||||datepicker|x3c|x3e|11|12|ja|10|6|4|3|2|1|リ|5|8|7|土|9||regional||nextBigStatus|setDefaults||nextBigText||currentText|||monthNamesShort|monthNames||currentStatus|nextStatus|prevBigStatus|clearStatus|closeText|clearText|function|jQuery|closeStatus||dayStatus|prevBigText|prevStatus|prevText|nextText|true||dateStatus|weekStatus|weekHeader|Md|dayNames|土||dayNamesMin|dayNamesShort|DD|showMonthAfterYear|yearStatus|initStatus|択|isRTL|false|firstDay|dd|monthStatus|dateFormat|yy|mm'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ko.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ko.packed.js new file mode 100644 index 0000000..3ab4faa --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ko.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('Y(S(A){A.5.z["i"]={R:"1Q3",P:"",T:"63",U:"",X:"116",W:"",V:"&#o;&#o;",N:"",F:"61E",C:"",B:"&#p;&#p;",H:"",L:"1K",J:"",I:["n(m)","k(l)","q(r)","w(v)","u(s)","j(x)","g(8)","7(9)","y(a)","h(f)","e(b)","c(t)"],Z:["n(m)","k(l)","q(r)","w(v)","u(s)","j(x)","g(8)","7(9)","y(a)","h(f)","e(b)","c(t)"],O:"",1a:"",18:"12",10:"",1h:["1","1","2","1","4","3","2"],15:["1","1","2","1","4","3","2"],16:["1","1","2","1","4","3","2"],17:"14",13:"D, M d",19:"1f-1g-1e",1d:0,1b:"",1c:11};A.5.G(A.5.z["i"])})',62,80,'|||||datepicker||8|JUL|AUG|SEP|NOV|12||11|OCT|7|10|ko|6|2|FEB|JAN|1|x3c|x3e|3|MAR|MAY|DEC|5|APR|4|JUN|9|regional||nextBigText|nextStatus|||nextText|setDefaults|nextBigStatus|monthNames|currentStatus||currentText||prevBigStatus|monthStatus|clearStatus||clearText|function|closeText|closeStatus|prevBigText|prevStatus|prevText|jQuery|monthNamesShort|weekStatus|false|Wk|dateStatus|DD|dayNamesShort|dayNamesMin|dayStatus|weekHeader|dateFormat|yearStatus|initStatus|isRTL|firstDay|dd|yy|mm|dayNames'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-lt.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-lt.packed.js new file mode 100644 index 0000000..50b7e41 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-lt.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('H(I(A){A.3.7["5"]={J:"KG",F:"",z:"yB",C:"",E:"L",N:"",U:"",V:"",W:"X",T:"",S:"",O:"",P:"0x",R:"",Y:["r","f","g","c","hi","b8","a","9w","sj","t","u","v"],q:["p","l","k","m","n","o","Q","17","1n","Z","1m","1s"],1G:"",1t:"",1u:"",1v:"",1r:["1q","1p","1w","1x1E","1F","1D","061C"],1y:["1z","1A","1B","1o","1k","16","06"],1l:["18","15","14","10","11","12","0e"],13:"19",1a:"D, M d",1h:"1i-1j-1g",1f:1,1b:"",1c:1d};A.3.1e(A.3.7["5"])})',62,105,'||x3e|datepicker|x3c|lt|e|regional|elis|Rugpj|Liepa|Bir|Balandis|||Vasaris|Kovas|Gegu||jis|Kov|Vas|Bal|Geg|Bir|Sau|monthNamesShort|Sausis|Rugs|Spalis|Lapkritis|Gruodis|tis|iandien|U|closeText||daryti|closeStatus||prevText|clearStatus|valyti|jQuery|function|clearText|I|Atgal||prevStatus|nextBigStatus|currentText|Lie|currentStatus|nextBigText|nextStatus|prevBigText|prevBigStatus|nextText|Pirmyn|monthNames|Spa|Tr|Ke|Pe|dayStatus|An|Pr|pen|Rugp|Se|DD|dateStatus|initStatus|isRTL|false|setDefaults|firstDay|dd|dateFormat|yy|mm|ket|dayNamesMin|Lap|Rugs|tre|pirmadienis|sekmadienis|dayNames|Gru|yearStatus|weekHeader|weekStatus|antradienis|tre|dayNamesShort|sek|pir|ant|tadienis|penktadienis|iadienis|ketvirtadienis|monthStatus'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-lv.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-lv.packed.js new file mode 100644 index 0000000..51a62af --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-lv.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('I(J(A){A.2.4["5"]={K:"LHt",G:"",B:"zC",E:"",F:"N",O:"",V:"",W:"",X:"YU",T:"",P:"",Q:"",y:"SZ",u:"",e:["f7","c7","g","h9","8","0b","0a","x","s","i","v","w"],r:["q","k","j","m","o","0n","0l","p","R","10","18","1v"],1y:"",1w:"",1x:"1u",1t:"",1p:["1r1s","1z","1F","1H1I","1J","1G","1B"],1A:["1C","1D","1E","1q","1n","17","1o"],19:["1a","16","15","11","12","13","14"],1b:"1c",1j:"D, M d",1k:"1l-1m-1i",1h:1,1d:"",1e:1f};A.2.1g(A.2.4["5"])})',62,108,'J||datepicker|x3e|regional|lv|x3c|ris|Maijs|lis|lijs|nijs|Febru||monthNames|Janv|Marts|Apr|Oktobris|Mar|Feb||Apr||Mai|Aug|Jan|monthNamesShort|Septembris||currentStatus|Novembris|Decembris|Augusts|currentText|Aizv||closeText|rt||closeStatus|prevText|clearStatus|r|jQuery|function|clearText|Not||Iepr|prevStatus|nextBigText|nextBigStatus|Sep||nextStatus|ka|prevBigText|prevBigStatus|nextText|N|odien|Okt|Tr|Ct|Pk|Ss|Ot|Pr|pkt|Nov|dayNamesMin|Sv|dayStatus|DD|initStatus|isRTL|false|setDefaults|firstDay|yy|dateStatus|dateFormat|dd|mm|ctr|sst|dayNames|tre|sv|tdiena|weekStatus|Nav|Dec|yearStatus|weekHeader|monthStatus|pirmdiena|dayNamesShort|sestdiena|svt|prm|otr|otrdiena|piektdiena|tre|diena|ceturtdiena'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-nl.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-nl.packed.js new file mode 100644 index 0000000..2c72d16 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-nl.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('C(G(A){A.6.i.d={w:"u",Y:"10 2 f m",T:"M",Q:"X P R",S:"8",O:"0 2 a 4",N:"b",g:"0 7 a 3",J:"8",K:"0 2 h 4",L:"b",g:"0 7 h 3",11:"12",13:"0 2 f 4",Z:["V","W","I","14","e","F","r","s","t","q","v","n"],p:["o","H","c","E","e","D","x","y","z","B","U","1s"],1A:"0 5 1B 4",1C:"0 5 1D 3",15:"1z",1y:"1u 9 7 3",1v:["1w","1x","1F","1L","1N","1O","1P"],1Q:["1M","c","1H","1G","1I","1J","1K"],1E:["1t","1c","1d","1e","1f","1b","1a"],16:"17 18 19 1g 1h 1o 9 2 1p",1q:"l/k/j",1r:"l/k/j",1n:1,1m:"1i 5 m",1j:1k};A.6.1l(A.6.i.d)})',62,115,'Bekijk||de|jaar|maand|een|datepicker|het||van|vorige||maa|nl|mei|huidige|nextBigStatus|volgende|regional|yy|mm|dd|datum|december|jan|monthNamesShort|oktober|juli|augustus|september|Wissen|november|clearText|jul|aug|sep||okt|jQuery|jun|apr|juni|function|feb|maart|nextText|nextStatus|nextBigText|Sluiten|prevBigText|prevStatus|zonder|closeStatus|verandering|prevText|closeText|nov|januari|februari|Sluit|clearStatus|monthNames|Wis|currentText|Vandaag|currentStatus|april|weekHeader|dayStatus|Stel|DD|in|za|vr|ma|di|wo|do|als|eerste|Kies|isRTL|false|setDefaults|initStatus|firstDay|dag|week|dateStatus|dateFormat|dec|zo|Week|dayNames|zondag|maandag|weekStatus|Wk|monthStatus|andere|yearStatus|ander|dayNamesMin|dinsdag|woe|din|don|vri|zat|woensdag|zon|donderdag|vrijdag|zaterdag|dayNamesShort'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-no.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-no.packed.js new file mode 100644 index 0000000..fd391f3 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-no.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('H(J(A){A.1.6["8"]={K:"Lm",G:"",F:"z",B:"",C:"&E;N",O:"",V:"",W:"",X:"U&T;",P:"",Q:"",y:"",S:"I Y",t:"",e:["f","c","h","i","4","a","b","9","g","x","j","u"],v:["w","s","q","k","4","l","o","p","R","18","Z","1q"],1r:"",1s:"",1p:"1o",1l:"",1m:["3n","1n","1u","1y","1B","1z","2r"],1w:["31x","1C","1A","1t","1k","16","217"],15:["3","14","10","11","12","13","2"],19:"1a",1g:"D, M d",1f:"1e-1b-1c",1d:0,1j:"",1i:1h};A.1.1v(A.1.6["8"])})',62,101,'|datepicker|L|S|Mai|x3c|regional|x3e|no|August|Juni|Juli|Februar||monthNames|Januar|September|Mars|April|November|Apr|Jun|||Jul|Aug|Mar||Feb|currentStatus|Desember|monthNamesShort|Jan|Oktober|nextBigStatus|Lukk||closeStatus|prevText||laquo|closeText|clearStatus|jQuery||function|clearText|T||Forrige|prevStatus|nextStatus|nextBigText|Sep|currentText|raquo|Neste|prevBigText|prevBigStatus|nextText|dag|Nov|Ti|On|To|Fr|Ma|dayNamesMin|Fredag|rdag|Okt|dayStatus|DD|mm|dd|firstDay|yy|dateFormat|dateStatus|false|isRTL|initStatus|Torsdag|weekStatus|dayNamesShort|Man|Uke|weekHeader|Des|monthStatus|yearStatus|Onsdag|Tir|setDefaults|dayNames|ndag|Ons|Fre|Tirsdag|Tor|Mandag'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-pl.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-pl.packed.js new file mode 100644 index 0000000..a911dcb --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-pl.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('p(C(A){A.4.f["e"]={z:"ji",F:"ji 16 m",Y:"l",X:"l 11 T",U:"V",W:"0 S 2c",R:"",L:"",O:"Pg",Q:"0 15g 2c",14:"",13:"",Z:"10",K:"0 12 2c",18:["I","t","u","v","b","s","r","o","q","x","G","H"],E:["y","J","B","w","b","n","17","1h","1y","1x","1D","1O"],19:"0 a 2c",1E:"0 a 1F",1C:"1B",1A:"1G 1H",1Q:["1N","1P","1M","1L","1I","1J1K","1z"],1v:["1g","h","9","6","1w","7","8"],1i:["N","h","9","6","1j","7","8"],1f:"1e 1a 1b 1c 1d 1k",1l:"\'k\' D, M d",1s:"1t-1u-1r",1q:1,1m:"k m",1n:1o};A.4.1p(A.4.f["e"])})',62,115,'Poka||miesi|x3c|datepicker|x3e|Śr|Pt|So|Wt|inny|Maj|||pl|regional|pny|Pn||Wyczy|Wybierz|Zamknij|dat|Cze|Sierpie|jQuery|Wrzesie|Lipiec|Czerwiec|Luty|Marzec|Kwiecie|Kw|Październik|Sty|clearText||Mar|function||monthNamesShort|clearStatus|Listopad|Grudzie|Stycze|Lu|currentStatus|prevBigStatus|||nextText|Nast|nextStatus|prevBigText|poprzedni|zapisywania|prevText|Poprzedni|prevStatus|closeStatus|closeText|currentText|Dzi|bez|aktualny|nextBigStatus|nextBigText|nast|obecn|Lip|monthNames|monthStatus|DD|jako|pierwszy|dzie|Ustaw|dayStatus|Nie|Sie|dayNamesMin|Cz|tygodnia|dateStatus|initStatus|isRTL|false|setDefaults|firstDay|dd|dateFormat|yy|mm|dayNamesShort|Czw|Pa|Wrz|Sobota|weekStatus|Tydz|weekHeader|Lis|yearStatus|rok|Tydzie|roku|Czwartek|Pi|tek|Środa|Wtorek|Niedziela|Gru|Poniedzialek|dayNames'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-pt-BR.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-pt-BR.packed.js new file mode 100644 index 0000000..241046a --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-pt-BR.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('S(R(A){A.5.i["h-c"]={X:"W",V:"",P:"O",H:"",G:"L",Y:"",K:"",N:"",J:"I&F;U",T:"",Q:"",E:"",y:"n",p:"",m:["r","l","f&e;o","k","j","q","C","s","z","B","x","w"],t:["u","v","f","16","1q","1l","1k","1w","1o","Z","1p","1n"],1m:"",1j:"",1r:"1x",1v:"",1u:["1s","1t-1","3&e;a-1","1h-1","15-1","1i-1","17"],14:["b","g","3","9","7","8","6"],13:["b","g","3","9","7","8","6"],10:"11",12:"D, M d",18:"19/1f/1g",1e:0,1d:"",1a:1b};A.5.1c(A.5.i["h-c"])})',62,96,'|feira|x3c|Ter|x3e|datepicker|Sab|Qui|Sex|Qua||Dom|BR||ccedil|Mar|Seg|pt|regional|Maio|Abril|Fevereiro|monthNames|Hoje||currentStatus|Junho|Janeiro|Agosto|monthNamesShort|Jan|Fev|Dezembro|Novembro|currentText|Setembro||Outubro|Julho||nextBigStatus|oacute|prevText|closeStatus|Pr|nextText|prevBigText|Anterior||prevBigStatus|Fechar|closeText|nextBigText|function|jQuery|nextStatus|ximo|clearStatus|Limpar|clearText|prevStatus|Out|dayStatus|DD|dateStatus|dayNamesMin|dayNamesShort|Quinta|Abr|Sabado|dateFormat|dd|isRTL|false|setDefaults|initStatus|firstDay|mm|yy|Quarta|Sexta|yearStatus|Jul|Jun|monthStatus|Dez|Set|Nov|Mai|weekHeader|Domingo|Segunda|dayNames|weekStatus|Ago|Sm'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ro.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ro.packed.js new file mode 100644 index 0000000..adb59d2 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ro.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('P(O(A){A.5.b["a"]={Q:"R",S:"N f e",L:"8",H:"8 G I",J:"K",T:"2 1 U",12:"",13:"",14:"15",11:"2 1 10",W:"",V:"",X:"F",Y:"2 1 e",Z:["16","B","k","j","6","m","n","g","h","i","l","E"],y:["x","z","7","p","6","C","w","v","r","q","s","t"],u:"2 o 1 1g",1y:"1E 17 1R 1D",1F:"1G",1C:"1B 1x",1A:["1H","1I","1T","1Q","c","1S","1P"],1O:["1K","1J","7","1L","c","1M","1N"],1z:["1v","1f","1w","1h","1i","1e","1d"],19:"18 1a 1b 1c 1j 1k",1r:"9 D, M d",1s:"1t/1u/1q",1p:0,1l:"9 o f",1m:1n};A.5.1o(A.5.b["a"])})',62,118,'|luna|Arata|x3e|x3c|datepicker|Mai|Mar|Inchide|Selecteaza|ro|regional|Joi||curenta|data|August|Septembrie|Octobrie|Aprilie|Martie|Noiembrie|Junie|Julie||Apr|Oct|Sep|Noi|Dec|monthStatus|Aug|Jul|Ian|monthNamesShort|Feb||Februarie|Jun||Decembrie|Azi|fara|closeStatus|schimbare|prevText|Anterior|closeText||Sterge|function|jQuery|clearText|Curat|clearStatus|prevStatus|trecuta|nextBigStatus|nextBigText|currentText|currentStatus|monthNames|urmatoare|nextStatus|prevBigText|prevBigStatus|nextText|Urmator|Ianuarie|un|Seteaza|dayStatus|DD|ca|prima|Sa|Vi|Lu|diferita|Mi|Jo|saptamana|zi|initStatus|isRTL|false|setDefaults|firstDay|yy|dateStatus|dateFormat|mm|dd|Du|Ma|anului|yearStatus|dayNamesMin|dayNames|Saptamana|weekStatus|diferit|Arat|weekHeader|Sapt|Duminica|Luni|Lun|Dum|Mie|Vin|Sam|dayNamesShort|Sambata|Miercuri|an|Vineri|Marti'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ru.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ru.packed.js new file mode 100644 index 0000000..149e054 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-ru.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('B(C(A){A.7.c["j"]={z:"y022023",v:"",w:"00g223",x:"",E:" l4",F:"",K:" ",L:"",J:"004",I:"",G:"",H:"",u:"0N002",r:"",m:["00k23","0t003","522","00243","5i","063","063","0s2","0422023","f2023","002023","0n023"],q:["00h","0o","52","002","5i","06","06","0p","04","f","002","0S"],17:"",18:"",16:"015",13:"",O:["k2ge414","000441a0b","a0200b","2240","2e1e1d","0220020","21c0020"],1b:["ab","000","a2","220","22h","020","202"],19:["02","11","02","02","02","l","00"],T:"12",R:"D, M d",P:"Q.U.V",10:1,Z:"",Y:W};A.7.X(A.7.c["j"])})',62,77,'|||ь|е|М|ю|datepicker|x3e|x3c|в|к|regional||е|Ок|к|в|й|ru|в|П|monthNames|ек|ев|вг|monthNamesShort|currentStatus|вгу|ев|currentText|clearStatus|closeText|closeStatus|О|clearText||jQuery|function||prevText|prevStatus|nextBigText|nextBigStatus|nextStatus|nextText|prevBigText|prevBigStatus||ег|dayNames|dateFormat|dd|dateStatus|ек|dayStatus|mm|yy|false|setDefaults|isRTL|initStatus|firstDay|П|DD|weekStatus|ье|е|weekHeader|monthStatus|yearStatus|dayNamesMin|ь|dayNamesShort|у|г|ве'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sk.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sk.packed.js new file mode 100644 index 0000000..22d57d9 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sk.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('I(J(A){A.3.b["9"]={K:"L",H:"",G:"B",C:"",E:"FN",O:"",V:"",W:"",X:"U",T:"",P:"",z:"",R:"S",Y:"",x:["fr","ir","h","gl","5j","8","7","c","e","k","y","v"],w:["m","u","s","n","5j","8","7","o","p","q","Q","17"],Z:"",1B:"",1n:"1m",1p:"",1r:["1s\'a","1q","1o","1t","11u","1z","1A"],1y:["1x","1v","1w","1k","116","6","1l"],18:["15","14","10","11","1t","6","12"],13:"19",1a:"D, M d",1h:"1i.1j.1g",1f:0,1b:"",1c:1d};A.3.1e(A.3.b["9"])})',62,100,'||x3e|datepicker|x3c|M|Pia|Júl|Jún|sk||regional|August||September|Janu|Apr|Marec|Febru||Október||Jan|Apr|Aug|Sep|Okt||Mar||Feb|December|monthNamesShort|monthNames|November|nextBigStatus||Zavrie|closeStatus||prevText|Predch|closeText|clearStatus|jQuery|function|clearText|Zmaza||dzajúci|prevStatus|nextBigText|Nov|currentText|Dnes|nextStatus|Nasledujúci|prevBigText|prevBigStatus|nextText|currentStatus|monthStatus|Ut|St|So|dayStatus|Po|Ne|tv|Dec|dayNamesMin|DD|dateStatus|initStatus|isRTL|false|setDefaults|firstDay|yy|dateFormat|dd|mm|Str|Sob|Ty|weekHeader|Utorok|weekStatus|Pondelok|dayNames|Nedel|Streda|tvrtok|Pon|Uto|Ned|dayNamesShort|Piatok|Sobota|yearStatus'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sl.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sl.packed.js new file mode 100644 index 0000000..65bb307 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sl.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('S(R(A){A.5.l["k"]={T:"gi",U:"gi h V",Q:"f",P:"f L K",M:"&N;O9",W:"2�i X9 4",16:"&#b;&#b;",15:"",17:"18&19;",14:"2�i 13 4",Z:"",J:"",10:"11",12:"2�i h 4",1a:["G","q","r","s","8","p","u","m","n","o","t","I"],E:["F","w","H","D","8","C","x","y","z","B","Y","1j"],1K:"2�i 1J 4",1b:"2�i 1L 1M",1N:"c",1I:"c v 1H",1D:["1C","1E","1F","1P","1O","1Z","1X"],1Y:["1W","1U","1V","1Q","1R","1S","1T"],1G:["1A","1B","1k","1l","e","1m","1i"],1h:"1d a 1c 1e 1f v 1g",1n:"1o a, d 1w j",1x:"1y.1z.j",1v:1,1u:"1q 1p",1r:1s};A.5.1t(A.5.l["k"])})',62,124,'x17E||Prika|x161|mesec|datepicker|x10C|x3e|Maj|nji|DD|x3c|Teden|||Zapri|Izbri|trenutni||yy|sl|regional|Avgust|September|Oktober|Junij|Februar|Marec|April|November|Julij||Feb|Jul|Avg|Sep||Okt|Jun|Apr|monthNamesShort|Jan|Januar|Mar|December|nextBigStatus|spreminjanja|brez|prevText|lt|Prej|closeStatus|closeText|function|jQuery|clearText|clearStatus|datum|prevStatus|prej|Nov|nextBigText|currentText|Trenutni|currentStatus|naslednji|nextStatus|prevBigStatus|prevBigText|nextText|Naslednji|gt|monthNames|yearStatus|za|Nastavi|prvi|dan|tednu|dayStatus|So|Dec|To|Sr|Pe|dateStatus|Izberi|datuma|Izbira|isRTL|false|setDefaults|initStatus|firstDay|MM|dateFormat|dd|mm|Ne|Po|Nedelja|dayNames|Ponedeljek|Torek|dayNamesMin|letu|weekStatus|drug|monthStatus|drugo|leto|weekHeader|etrtek|Sreda|Sre|et|Pet|Sob|Pon|Tor|Ned|Sobota|dayNamesShort|Petek'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sq.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sq.packed.js new file mode 100644 index 0000000..4446004 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sq.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('13(X(A){A.8.a["b"]={Y:"m",Z:"m kn 10",W:"i",V:"i R Q",S:"T",U:"0 3 e 11",12:"",19:"",1a:"1b1c",18:"0 3 7r",17:"",14:"",15:"16",1d:"",J:["v","w","x","u","o","t","z","O","B","L","lN","I"],C:["F","G","H","K","o","p","q","y","P","1m","ln","1H"],1e:"0 3 7r",1I:"0 7r 1F",1C:"1D",1K:"1E e 1J",1R:["E 1Q","E 21P","E 1O","E 61L","E 1M","E 1N","E 1A"],1l:["g","2","h","6","f","c","9"],1B:["g","2","h","6","f","c","9"],1k:"1j 1f 1g 1h j 1i j 1ps",1q:"\'1x\' D, M d",1y:"1z.1w.1v",1r:1,1s:"1t 1u k",1o:1n};A.8.1G(A.8.a["b"])})',62,116,'trego||H|muajin|x3e|x3c|M|tjet|datepicker|Sh|regional|sq|Pr|||En|Di|Ma|mbylle|t|dat|N|fshije||Maj|Qer|Kor|||Qershor|Pril|Janar|Shkurt|Mars|Gus|Korrik||Shtator|monthNamesShort|||Jan|Shk|Mar|Dhjetor|monthNames|Pri|Tetor||ntor|Gusht|Sht|ndryshime|pa|prevText|mbrapa|prevStatus|closeStatus|closeText|function|clearText|clearStatus|aktuale|fundit|prevBigText|jQuery|nextBigStatus|currentText|sot|nextBigText|nextStatus|prevBigStatus|nextText|P|rpara|currentStatus|monthStatus|DD|si|dit|par|Vendose|dayStatus|dayNamesShort|Tet|false|isRTL|jav|dateStatus|firstDay|initStatus|Zgjedhe|nj|yy|mm|Zgjedh|dateFormat|dd|Shtune|dayNamesMin|weekHeader|Ja|Java|vit|setDefaults|Dhj|yearStatus|muajit|weekStatus|rkur|Enjte|Premte|Mart|n|Diel|dayNames'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sv.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sv.packed.js new file mode 100644 index 0000000..bc14141 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-sv.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('Q(H(A){A.4.8["7"]={I:"J",K:"",G:"Fz",B:"",C:"&E;LN",U:"",V:"",W:"",T:"SO&P;",y:"",R:"&#a;&#a;",X:"",x:"b",h:"",i:["f","e","c","g","5","j","t","u","v","w","s","q"],l:["k","m","o","p","5","15","1B","1m","1k","Y","1x","1p"],1q:"",1r:"",1o:"1n",1s:"",1t:["3n","0n","1z","1A","1y","1u","2r"],1v:["39","09","1w","1l","1i","1j","216"],17:["3","0","14","13","Z","10","2"],11:"12",18:"D, M d",19:"1f-1g-1h",1e:1,1d:"",1a:1b};A.4.1c(A.4.8["7"])})',62,100,'M||L|S|datepicker|Maj|x3c|sv|regional|ndag|x3e|Idag|Mars||Februari|Januari|April|currentStatus|monthNames|Juni|Jan|monthNamesShort|Feb||Mar|Apr|December||November|Juli|Augusti|September|Oktober|currentText|nextStatus|ng||closeStatus|prevText||laquo|St|closeText|function|clearText|Rensa|clearStatus|F||rra|sta|raquo|jQuery|nextBigText|N|nextText|prevStatus|prevBigText|prevBigStatus|nextBigStatus|Okt|To|Fr|dayStatus|DD|On|Ti|Jun|rdag|dayNamesMin|dateStatus|dateFormat|isRTL|false|setDefaults|initStatus|firstDay|yy|mm|dd|Torsdag|Fredag|Sep|Onsdag|Aug|Ve|weekHeader|Dec|monthStatus|yearStatus|weekStatus|dayNamesShort|Fre|dayNames|Tisdag|Nov|Tor|Tis|Ons|Jul'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-th.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-th.packed.js new file mode 100644 index 0000000..9ba53ae --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-th.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('u(v(A){A.8.a["h"]={t:"11s",q:"",r:"111",w:"",x:"&E;&b;1611",F:"",C:"&#f;&#f;",B:"",y:"11161&b;&z;",p:"",k:"&#e;&#e;",j:"",i:"11111o",n:"",m:["111121","1111123115","11l121","611121","1311121","11111121","1111121","1711121","1111121","111121","131111121","1111121"],G:["1.1.","1.14.","11g.1.","61.1.","14.1.","11.1.","1.1.","19.1.","1.1.","1.1.","14.1.","1.1."],L:"",X:"",W:"V",U:"",Y:["1121115","111115","111112","131","131117H1g","11115","61725"],Z:["11c.","1.","1.","14.","13.","1.","19."],12:["11c.","1.","1.","14.","13.","1.","19."],11:"10",T:"D, M d",J:"I/N/O",R:0,P:"",S:Q};A.8.K(A.8.a["h"])})',62,65,'|||||์|||datepicker||regional|nbsp|||x3e|x3c||th|currentText|nextBigStatus|nextBigText||monthNames|currentStatus||nextStatus|clearStatus|closeText||clearText|jQuery|function|closeStatus|prevText|nextText|raquo||prevBigStatus|prevBigText||laquo|prevStatus|monthNamesShort||dd|dateFormat|setDefaults|monthStatus||mm|yy|initStatus|false|firstDay|isRTL|dateStatus|weekStatus|Sm|weekHeader|yearStatus|dayNames|dayNamesShort|DD|dayStatus|dayNamesMin'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-tr.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-tr.packed.js new file mode 100644 index 0000000..e40c570 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-tr.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('Y(Z(A){A.4.p["f"]={10:"11",X:"WS R T",U:"b",V:"12 013 b",1a:"1b",1c:"21d h 0g",19:"",18:"",14:"Q",16:"17 h 0g",1e:"",v:"",t:"un",w:"",r:["P","J","I","x","Ks","L","O","N","Hl","G","zm","yk"],B:["C","F","E","15","1o","1T","1N","1M","1E","1J","1f","1K"],1L:"7 1I",1H:"7 1Gl",1U:"1R",1P:"1Qn 1V",1O:["1S","1F","1C","21m","1n","1D","1p"],1l:["q","o","e","2a","6","c","8"],1k:["q","o","e","2a","6","c","8"],1g:"1hn 1i 099 1j",1q:"D, M d ji",1r:"1y.1z.1A",1B:1,1x:"1w 1s ji",1t:1u};A.4.1v(A.4.p["f"])})',62,120,'g|||x3c|datepicker|x3e|Pe|başka|Ct|n||kapat|Cu||Sa|tr|ster|ay|iniz|se|||||Pt|regional|Pz|monthNames||currentText|bug|nextBigStatus|currentStatus|Nisan|Aral|Kas||monthNamesShort|Oca||Mar|Şub|Ekim|Eyl|Mart|Şubat|May|Haziran||Ağustos|Temmuz|Ocak|ileri|tarihi|erli|temizler|closeText|closeStatus|ge|clearStatus|jQuery|function|clearText|temizle|sadece|stergeyi|nextText|Nis|nextStatus|sonraki|prevBigStatus|prevBigText|prevText|geri|prevStatus|nceki|nextBigText|Kas|dayStatus|Haftan|ilk|belirleyin|dayNamesMin|dayNamesShort|arşamba|Perşembe|May|Cumartesi|dateStatus|dateFormat|tarih|isRTL|false|setDefaults|Bir|initStatus|dd|mm|yy|firstDay|Sal|Cuma|Eyl|Pazartesi|y|yearStatus|ay|Eki|Ara|monthStatus|Ağu|Tem|dayNames|weekStatus|Ay|Hf|Pazar|Haz|weekHeader|haftalar'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-uk.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-uk.packed.js new file mode 100644 index 0000000..c734c1e --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-uk.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('j(k(A){A.a.f["c"]={p:"B022020",F:"",s:"00H020",w:"",x:"",v:"",u:"",t:"",y:" ",z:"",G:" ",E:"",C:"0rl002",q:"",m:["02235","0g0o","04335","h235","020e5","04e5","00035","04035","04435","00635","00220000","02b35"],n:["022","0g","04","h","020","04","000","04","04","007","002","02N"],10:"",11:"",Z:"0Y",I:"",W:["03202","0003200i","66020i","2430","24X","0220022","2b0020"],13:["03","000","67","220","227","020","202"],16:["00","15","02","02","02","14","00"],12:"U",V:"D, M d",L:"K.J.O",P:1,T:"",S:R};A.a.Q(A.a.f["c"])})',62,69,'|||е|е|ь|в|в|x3c|x3e|datepicker|у|uk||ве|regional|ю|Кв|к|jQuery|function|г|monthNames|monthNamesShort|й|clearText|currentStatus|ь|closeText|prevBigStatus|prevBigText|prevStatus|closeStatus|prevText|nextText|nextStatus||О|currentText||nextBigStatus|clearStatus|nextBigText|к|weekStatus|mm|dd|dateFormat||у|yy|firstDay|setDefaults|false|isRTL|initStatus|DD|dateStatus|dayNames|ве|е|weekHeader|monthStatus|yearStatus|dayStatus|dayNamesShort|П|П|dayNamesMin'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-zh-CN.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-zh-CN.packed.js new file mode 100644 index 0000000..cdc937d --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-zh-CN.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('D(E(A){A.c.h["f-o"]={C:"25",B:"250y2j",z:"0F",G:"32L0052",M:"&#b;3k",K:"267k",J:"&#b;&#b;",x:"267Ha",I:"34&#d;",N:"2674",q:"&#d;&#d;",t:"2673a",u:"3s",r:"26p4",v:["34","e","34","04","94","04","3w","04","g4","04","034","0e"],10:["3","8","3","0","9","0","316","0","g","0","03","08"],15:"5243",14:"52a3",12:"0",13:"a002",18:["2O","2i","21b","2i","2n","21d","2n"],1c:["02","03","08","03","00","09","00"],19:["2","3","8","3","0","9","0"],1a:"m6 l 370170",11:"52 T S, l",R:"P-Q-U",V:1,Z:"m522j",Y:X};A.c.W(A.c.h["f-o"])})',62,76,'||||||||二|||x3c|datepicker|x3e|二|zh||regional|期|期||DD||期|CN||nextBigText|currentStatus||nextBigStatus|currentText|monthNames||prevBigStatus||closeText||clearStatus|clearText|jQuery|function||closeStatus||nextText|prevBigText|prevStatus||prevText|nextStatus|期|yy|mm|dateFormat|d|m|dd|firstDay|setDefaults|false|isRTL|initStatus|monthNamesShort|dateStatus|weekHeader|weekStatus|yearStatus|monthStatus|||dayNames|dayNamesMin|dayStatus|期二|dayNamesShort|期'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-zh-TW.packed.js b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-zh-TW.packed.js new file mode 100644 index 0000000..06fff35 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/i18n/ui.datepicker-zh-TW.packed.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('F(G(A){A.c.n["h-k"]={E:"24",D:"240z2m",B:"4C",H:"32IN0O42",M:"&#d;3g",L:"467g",y:"&#d;&#d;",K:"467P8",v:"35&#b;",p:"4675",x:"&#b;&#b;",q:"46738",w:"3u",t:"46r5",s:["35","e","35","05","95","05","3J","05","o5","05","035","0e"],13:["3","a","3","0","9","0","319","0","o","0","03","0a"],18:"4253",17:"4283",15:"0",16:"8002",Q:["21b","2i","21e","2i","2l","21g","2l"],1f:["02","03","0a","03","00","09","00"],1c:["2","3","a","3","0","9","0"],1d:"f01a j 670140",V:"42 U T, j",R:"S/W/X",12:1,11:"f422m",10:Y};A.c.Z(A.c.n["h-k"])})',62,79,'||||||||||二|x3e|datepicker|x3c|二|||zh|期|DD|TW|期|期|regional||nextStatus|nextBigStatus||monthNames|currentStatus||nextText|currentText|nextBigText|prevBigText|||closeText||clearStatus|clearText|jQuery|function|closeStatus|||prevBigStatus|prevStatus|prevText||||dayNames|dateFormat|yy|d|m|dateStatus|mm|dd|false|setDefaults|isRTL|initStatus|firstDay|monthNamesShort||weekHeader|weekStatus|yearStatus|monthStatus|||期|dayNamesMin|dayStatus|期二|dayNamesShort|期'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/jquery.ui.all.packed.js b/sites/all/libraries/jquery.ui/ui/packed/jquery.ui.all.packed.js new file mode 100644 index 0000000..05d682c --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/jquery.ui.all.packed.js @@ -0,0 +1,9 @@ +/* + * jQuery UI 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(h(C){c I=C.fn.2c,D=C.1X.ei&&(9I(C.1X.3B)<1.9);C.q={3B:"@5q",2O:{2k:h(K,L,N){c M=C.q[K].54;1O(c J in N){M.73[J]=M.73[J]||[];M.73[J].4c([L,N[J]])}},1Y:h(J,L,K){c N=J.73[L];if(!N){p}1O(c M=0;M\').1t(J).v({1f:"2i",u:"-gY",t:"-gY",5k:"8p"}).2W("1W");C.q.aC[J]=!!((!(/4v|4o/).1J(K.v("2w"))||(/^[1-9]/).1J(K.v("19"))||(/^[1-9]/).1J(K.v("1a"))||!(/6a/).1J(K.v("dY"))||!(/72|fR\\(0, 0, 0, 0\\)/).1J(K.v("8b"))));aF{C("1W").4W(0).91(K.4W(0))}aD(L){}p C.q.aC[J]},a2:h(M,K){if(C(M).v("3b")=="3g"){p 1c}c J=(K&&K=="t")?"2g":"2b",L=1c;if(M[J]>0){p 1i}M[J]=1;L=(M[J]>0);M[J]=0;p L},7V:h(K,J,L){p(K>J)&&(K<(J+L))},74:h(O,K,N,M,J,L){p C.q.7V(O,N,J)&&C.q.7V(K,M,L)},4D:{iU:8,jf:20,iY:iV,iW:17,j5:46,fu:40,jc:35,fF:13,cA:27,je:36,jb:45,fw:37,ja:eG,j8:iT,iS:iE,iC:iy,iH:iI,iQ:iR,iO:34,iN:33,iJ:iL,fI:39,iM:16,fp:32,gi:9,fs:38}};if(D){c F=C.21,E=C.fn.dK,H="j4://k2.jM.jN/jL/jK/d8",A=/^9a-/,B=/^gO:/;C.21=h(K,J,L){c M=L!==2v;p(J=="9b"?(M?F.1Y(b,K,J,"gO:"+L):(F.1B(b,1H)||"").49(B,"")):(A.1J(J)?(M?K.jG(H,J.49(A,"d8:"),L):F.1Y(b,K,J.49(A,"d8:"))):F.1B(b,1H)))};C.fn.dK=h(J){p(A.1J(J)?b.1E(h(){b.jH(H,J.49(A,""))}):E.1Y(b,J))}}C.fn.1R({2c:h(){C("*",b).2k(b).1E(h(){C(b).3J("2c")});p I.1B(b,1H)},jg:h(){p b.21("6H","jJ").v("gN","").3t("gM.q")},8n:h(){p b.21("6H","gR").v("gN","6a").2V("gM.q",h(){p 1c})},1M:h(){c J;if((C.1X.3M&&(/(5V|1K)/).1J(b.v("1f")))||(/2i/).1J(b.v("1f"))){J=b.4z().3r(h(){p(/(1K|2i|5h)/).1J(C.7J(b,"1f",1))&&(/(4v|6G)/).1J(C.7J(b,"3b",1)+C.7J(b,"3b-y",1)+C.7J(b,"3b-x",1))}).eq(0)}1k{J=b.4z().3r(h(){p(/(4v|6G)/).1J(C.7J(b,"3b",1)+C.7J(b,"3b-y",1)+C.7J(b,"3b-x",1))}).eq(0)}p(/5h/).1J(b.v("1f"))||!J.1q?C(1m):J}});C.1R(C.jY[":"],{1p:h(K,L,J){p C.1p(K,J[3])},et:h(L,M,K){c N=L.2Z.5T();h J(O){p!(C(O).is(":3g")||C(O).4z(":3g").1q)}p(L.6A>=0&&(("a"==N&&L.4a)||(/1u|4G|a5|4X/.1J(N)&&"3g"!=L.5X&&!L.1Q))&&J(L))}});h G(M,N,O,L){h K(Q){c P=C[M][N][Q]||[];p(2P P=="4V"?P.8A(/,?\\s+/):P)}c J=K("aP");if(L.1q==1&&2P L[0]=="4V"){J=J.5o(K("gQ"))}p(C.8w(O,J)!=-1)}C.4q=h(K,J){c L=K.8A(".")[0];K=K.8A(".")[1];C.fn[K]=h(P){c N=(2P P=="4V"),O=98.54.gc.1Y(1H,1);if(N&&P.jZ(0,1)=="8Y"){p b}if(N&&G(L,K,P,O)){c M=C.1p(b[0],K);p(M?M[P].1B(M,O):2v)}p b.1E(h(){c Q=C.1p(b,K);(!Q&&!N&&C.1p(b,K,1V C[L][K](b,P)));(Q&&N&&C.5C(Q[P])&&Q[P].1B(Q,O))})};C[L]=C[L]||{};C[L][K]=h(O,N){c M=b;b.6L=K;b.cU=C[L][K].k1||K;b.gT=L+"-"+K;b.l=C.1R({},C.4q.5e,C[L][K].5e,C.gP&&C.gP.4W(O)[K],N);b.18=C(O).2V("di."+K,h(Q,P,R){p M.5v(P,R)}).2V("dj."+K,h(Q,P){p M.cX(P)}).2V("2c",h(){p M.3H()});b.6g()};C[L][K].54=C.1R({},C.4q.54,J);C[L][K].gQ="8j"};C.4q.54={6g:h(){},3H:h(){b.18.4w(b.6L)},8j:h(L,M){c K=L,J=b;if(2P L=="4V"){if(M===2v){p b.cX(L)}K={};K[L]=M}C.1E(K,h(N,O){J.5v(N,O)})},cX:h(J){p b.l[J]},5v:h(J,K){b.l[J]=K;if(J=="1Q"){b.18[K?"1t":"1S"](b.gT+"-1Q")}},eR:h(){b.5v("1Q",1c)},eH:h(){b.5v("1Q",1i)},43:h(K,L,M){c J=(K==b.cU?K:b.cU+K);L=L||C.1x.jU({5X:J,1j:b.18[0]});p b.18.3J(J,[L,M],b.l[K])}};C.4q.5e={1Q:1c};C.q.57={9k:h(){c J=b;b.18.2V("8k."+b.6L,h(K){p J.d5(K)}).2V("2p."+b.6L,h(K){if(J.cM){J.cM=1c;p 1c}});if(C.1X.3M){b.h6=b.18.21("6H");b.18.21("6H","gR")}b.jF=1c},8L:h(){b.18.3t("."+b.6L);(C.1X.3M&&b.18.21("6H",b.h6))},d5:h(L){(b.6N&&b.9s(L));b.c6=L;c K=b,M=(L.jp==1),J=(2P b.l.65=="4V"?C(L.1j).4z().2k(L.1j).3r(b.l.65).1q:1c);if(!M||J||!b.8B(L)){p 1i}b.bb=!b.l.7T;if(!b.bb){b.jq=8C(h(){K.bb=1i},b.l.7T)}if(b.cL(L)&&b.cZ(L)){b.6N=(b.7d(L)!==1c);if(!b.6N){L.95();p 1i}}b.cE=h(N){p K.hj(N)};b.cI=h(N){p K.9s(N)};C(1m).2V("hi."+b.6L,b.cE).2V("bs."+b.6L,b.cI);if(!C.1X.8H){L.95()}p 1i},hj:h(J){if(C.1X.3M&&!J.4X){p b.9s(J)}if(b.6N){b.66(J);p J.95()}if(b.cL(J)&&b.cZ(J)){b.6N=(b.7d(b.c6,J)!==1c);(b.6N?b.66(J):b.9s(J))}p!b.6N},9s:h(J){C(1m).3t("hi."+b.6L,b.cE).3t("bs."+b.6L,b.cI);if(b.6N){b.6N=1c;b.cM=1i;b.6M(J)}p 1c},cL:h(J){p(1o.2h(1o.3S(b.c6.3y-J.3y),1o.3S(b.c6.3z-J.3z))>=b.l.5f)},cZ:h(J){p b.bb},7d:h(J){},66:h(J){},6M:h(J){},8B:h(J){p 1i}};C.q.57.5e={65:1e,5f:1,7T:0}})(1Z);(h(A){A.4q("q.2j",A.1R({},A.q.57,{6g:h(){if(b.l.1h=="8d"&&!(/^(?:r|a|f)/).1J(b.18.v("1f"))){b.18[0].2J.1f="1K"}(b.l.8V&&b.18.1t(b.l.8V+"-2j"));(b.l.1Q&&b.18.1t("q-2j-1Q"));b.9k()},3H:h(){if(!b.18.1p("2j")){p}b.18.4w("2j").3t(".2j").1S("q-2j q-2j-7f q-2j-1Q");b.8L()},8B:h(B){c C=b.l;if(b.1h||C.1Q||A(B.1j).is(".q-1s-1N")){p 1c}b.1N=b.h9(B);if(!b.1N){p 1c}p 1i},7d:h(B){c C=b.l;b.1h=b.bN(B);b.8M();if(A.q.2A){A.q.2A.5b=b}b.cb();b.3P=b.1h.v("1f");b.1M=b.1h.1M();b.1b=b.18.1b();b.1b={u:b.1b.u-b.2I.u,t:b.1b.t-b.2I.t};A.1R(b.1b,{2p:{t:B.3y-b.1b.t,u:B.3z-b.1b.u},1v:b.8h(),1K:b.9h()});if(C.a8){b.c1(C.a8)}b.3j=b.9z(B);if(C.1C){b.c8()}b.2e("2B",B);b.8M();if(A.q.2A&&!C.8I){A.q.2A.9o(b,B)}b.1h.1t("q-2j-7f");b.66(B,1i);p 1i},66:h(B,C){b.1f=b.9z(B);b.3n=b.5a("2i");if(!C){b.1f=b.2e("4B",B)||b.1f}if(!b.l.2F||b.l.2F!="y"){b.1h[0].2J.t=b.1f.t+"2K"}if(!b.l.2F||b.l.2F!="x"){b.1h[0].2J.u=b.1f.u+"2K"}if(A.q.2A){A.q.2A.4B(b,B)}p 1c},6M:h(C){c D=1c;if(A.q.2A&&!b.l.8I){c D=A.q.2A.78(b,C)}if((b.l.6c=="jl"&&!D)||(b.l.6c=="js"&&D)||b.l.6c===1i||(A.5C(b.l.6c)&&b.l.6c.1Y(b.18,D))){c B=b;A(b.1h).1P(b.3j,1l(b.l.h8,10),h(){B.2e("3c",C);B.9v()})}1k{b.2e("3c",C);b.9v()}p 1c},h9:h(B){c C=!b.l.1N||!A(b.l.1N,b.18).1q?1i:1c;A(b.l.1N,b.18).4r("*").6X().1E(h(){if(b==B.1j){C=1i}});p C},bN:h(C){c D=b.l;c B=A.5C(D.1h)?A(D.1h.1B(b.18[0],[C])):(D.1h=="7p"?b.18.7p():b.18);if(!B.4z("1W").1q){B.2W((D.2W=="1v"?b.18[0].3X:D.2W))}if(B[0]!=b.18[0]&&!(/(5h|2i)/).1J(B.v("1f"))){B.v("1f","2i")}p B},c1:h(B){if(B.t!=2v){b.1b.2p.t=B.t+b.2I.t}if(B.2Y!=2v){b.1b.2p.t=b.2D.1a-B.2Y+b.2I.t}if(B.u!=2v){b.1b.2p.u=B.u+b.2I.u}if(B.3F!=2v){b.1b.2p.u=b.2D.19-B.3F+b.2I.u}},8h:h(){b.3h=b.1h.3h();c B=b.3h.1b();if((b.3h[0]==1m.1W&&A.1X.ei)||(b.3h[0].5c&&b.3h[0].5c.5T()=="2q"&&A.1X.3M)){B={u:0,t:0}}p{u:B.u+(1l(b.3h.v("6j"),10)||0),t:B.t+(1l(b.3h.v("6s"),10)||0)}},9h:h(){if(b.3P=="1K"){c B=b.18.1f();p{u:B.u-(1l(b.1h.v("u"),10)||0)+b.1M.2b(),t:B.t-(1l(b.1h.v("t"),10)||0)+b.1M.2g()}}1k{p{u:0,t:0}}},cb:h(){b.2I={t:(1l(b.18.v("81"),10)||0),u:(1l(b.18.v("6l"),10)||0)}},8M:h(){b.2D={1a:b.1h.3f(),19:b.1h.2T()}},c8:h(){c E=b.l;if(E.1C=="1v"){E.1C=b.1h[0].3X}if(E.1C=="1m"||E.1C=="31"){b.1C=[0-b.1b.1K.t-b.1b.1v.t,0-b.1b.1K.u-b.1b.1v.u,A(E.1C=="1m"?1m:31).1a()-b.1b.1K.t-b.1b.1v.t-b.2D.1a-b.2I.t-(1l(b.18.v("8G"),10)||0),(A(E.1C=="1m"?1m:31).19()||1m.1W.3X.7v)-b.1b.1K.u-b.1b.1v.u-b.2D.19-b.2I.u-(1l(b.18.v("6O"),10)||0)]}if(!(/^(1m|31|1v)$/).1J(E.1C)){c C=A(E.1C)[0];c D=A(E.1C).1b();c B=(A(C).v("3b")!="3g");b.1C=[D.t+(1l(A(C).v("6s"),10)||0)-b.1b.1K.t-b.1b.1v.t-b.2I.t,D.u+(1l(A(C).v("6j"),10)||0)-b.1b.1K.u-b.1b.1v.u-b.2I.u,D.t+(B?1o.2h(C.b3,C.4P):C.4P)-(1l(A(C).v("6s"),10)||0)-b.1b.1K.t-b.1b.1v.t-b.2D.1a-b.2I.t,D.u+(B?1o.2h(C.7v,C.4O):C.4O)-(1l(A(C).v("6j"),10)||0)-b.1b.1K.u-b.1b.1v.u-b.2D.19-b.2I.u]}},5a:h(D,F){if(!F){F=b.1f}c C=D=="2i"?1:-1;c B=b[(b.3P=="2i"?"1b":"6G")+"bz"],E=(/(2q|1W)/i).1J(B[0].5c);p{u:(F.u+b.1b.1K.u*C+b.1b.1v.u*C+(b.3P=="5h"?-b.1M.2b():(E?0:B.2b()))*C+b.2I.u*C),t:(F.t+b.1b.1K.t*C+b.1b.1v.t*C+(b.3P=="5h"?-b.1M.2g():(E?0:B.2g()))*C+b.2I.t*C)}},9z:h(D){c G=b.l,C=b[(b.3P=="2i"?"1b":"6G")+"bz"],H=(/(2q|1W)/i).1J(C[0].5c);c B={u:(D.3z-b.1b.2p.u-b.1b.1K.u-b.1b.1v.u+(b.3P=="5h"?-b.1M.2b():(H?0:C.2b()))),t:(D.3y-b.1b.2p.t-b.1b.1K.t-b.1b.1v.t+(b.3P=="5h"?-b.1M.2g():H?0:C.2g()))};if(!b.3j){p B}if(b.1C){if(B.tb.1C[2]){B.t=b.1C[2]}if(B.u>b.1C[3]){B.u=b.1C[3]}}if(G.2Q){c F=b.3j.u+1o.6E((B.u-b.3j.u)/G.2Q[1])*G.2Q[1];B.u=b.1C?(!(Fb.1C[3])?F:(!(Fb.1C[2])?E:(!(E\').v({1a:b.4P+"2K",19:b.4O+"2K",1f:"2i",2d:"0.ju",2M:aA}).v(A(b).1b()).2W("1W")})},3c:h(B,C){A("1z.q-2j-9g").1E(h(){b.3X.91(b)})}});A.q.2O.2k("2j","2d",{2B:h(C,D){c B=A(D.1h);if(B.v("2d")){D.l.96=B.v("2d")}B.v("2d",D.l.2d)},3c:h(B,C){if(C.l.96){A(C.1h).v("2d",C.l.96)}}});A.q.2O.2k("2j","6G",{2B:h(C,D){c E=D.l;c B=A(b).1p("2j");if(B.1M[0]!=1m&&B.1M[0].5c!="bh"){B.6B=B.1M.1b()}},4B:h(D,E){c F=E.l,B=1c;c C=A(b).1p("2j");if(C.1M[0]!=1m&&C.1M[0].5c!="bh"){if((C.6B.u+C.1M[0].4O)-D.3z=0;N--){c L=E.5g[N].t,J=L+E.5g[N].1a,I=E.5g[N].u,S=I+E.5g[N].19;if(!((L-Q=N&&L<=J)||(K>=N&&K<=J)||(LJ))&&((D>=F&&D<=B)||(C>=F&&C<=B)||(DB));1I;4o:p 1c;1I}};A.q.2A={5b:1e,7h:{"4o":[]},9o:h(E,G){c B=A.q.2A.7h[E.l.6o];c F=G?G.5X:1e;c H=(E.1A||E.18).4r(":1p(5l)").6X();gv:1O(c D=0;D\').v({1f:C.v("1f"),1a:C.3f(),19:C.2T(),u:C.v("u"),t:C.v("t")}));c K=b.18;b.18=b.18.1v();b.18.1p("1s",b);b.18.v({81:K.v("81"),6l:K.v("6l"),8G:K.v("8G"),6O:K.v("6O")});K.v({81:0,6l:0,8G:0,6O:0});if(B.1X.8H&&O.95){K.v("2u","6a")}O.6i=K.v({1f:"5V",eZ:1,5k:"8p"});b.18.v({4n:K.v("4n")});b.9O()}if(!O.3x){O.3x=!B(".q-1s-1N",b.18).1q?"e,s,4k":{n:".q-1s-n",e:".q-1s-e",s:".q-1s-s",w:".q-1s-w",4k:".q-1s-4k",4h:".q-1s-4h",ne:".q-1s-ne",nw:".q-1s-nw"}}if(O.3x.4t==9Q){O.2M=O.2M||aA;if(O.3x=="jv"){O.3x="n,e,s,w,4k,4h,ne,nw"}c P=O.3x.8A(",");O.3x={};c H={1N:"1f: 2i; 5k: 6a; 3b:3g;",n:"u: 7e; 1a:3i%;",e:"2Y: 7e; 19:3i%;",s:"3F: 7e; 1a:3i%;",w:"t: 7e; 19:3i%;",4k:"3F: 7e; 2Y: 3o;",4h:"3F: 7e; t: 3o;",ne:"u: 7e; 2Y: 3o;",nw:"u: 7e; t: 3o;"};1O(c S=0;S\'].5F("")).v(L);O.3x[T]=".q-1s-"+T;b.18.6J(F.v(D?U:{}).v(O.77?E:{}).1t(O.77?"q-1s-af-1N":"").1t(O.77))}if(O.77){b.18.1t("q-1s-af").v(!B.q.v("q-1s-af")?{}:{})}}b.iv=h(Z){Z=Z||b.18;1O(c W in O.3x){if(O.3x[W].4t==9Q){O.3x[W]=B(O.3x[W],b.18).1G()}if(O.72){O.3x[W].v({2d:0})}if(b.18.is(".q-cs")&&O.ev.3v(/a5|1u|4G|4X/i)){c X=B(O.3x[W],b.18),Y=0;Y=/4h|ne|nw|4k|n|s/.1J(W)?X.2T():X.3f();c V=["bn",/ne|nw|n/.1J(W)?"i0":/4k|4h|s/.1J(W)?"i4":/^e$/.1J(W)?"i2":"i1"].5F("");if(!O.72){Z.v(V,Y)}b.9O()}if(!B(O.3x[W]).1q){79}}};b.iv(b.18);O.94=B(".q-1s-1N",N.18);if(O.8n){O.94.8n()}O.94.jx(h(){if(!O.bB){if(b.9H){c V=b.9H.3v(/q-1s-(4k|4h|ne|nw|n|e|s|w)/i)}N.2F=O.2F=V&&V[1]?V[1]:"4k"}});if(O.hv){O.94.1L();B(N.18).1t("q-1s-dF").bm(h(){B(b).1S("q-1s-dF");O.94.1G()},h(){if(!O.bB){B(b).1t("q-1s-dF");O.94.1L()}})}b.9k()},3H:h(){c E=b.18,D=E.bq(".q-1s").4W(0);b.8L();c C=h(F){B(F).1S("q-1s q-1s-1Q").4w("1s").3t(".1s").4r(".q-1s-1N").2c()};C(E);if(E.is(".q-cs")&&D){E.1v().6J(B(D).v({1f:E.v("1f"),1a:E.3f(),19:E.2T(),u:E.v("u"),t:E.v("t")})).5j().2c();C(D)}},8B:h(D){if(b.l.1Q){p 1c}c E=1c;1O(c C in b.l.3x){if(B(b.l.3x[C])[0]==D.1j){E=1i}}if(!E){p 1c}p 1i},7d:h(D){c E=b.l,C=b.18.1f(),F=b.18,I=B.1X.3M&&B.1X.3B<7;E.bB=1i;E.cu={u:B(1m).2b(),t:B(1m).2g()};if(F.is(".q-2j")||(/2i/).1J(F.v("1f"))){c K=B.1X.3M&&!E.1C&&(/2i/).1J(F.v("1f"))&&!(/1K/).1J(F.1v().v("1f"));c L=K?b.cu.u:0,H=K?b.cu.t:0;F.v({1f:"2i",u:(C.u+L),t:(C.t+H)})}if(B.1X.6z&&(/1K/).1J(F.v("1f"))){F.v({1f:"1K",u:"4v",t:"4v"})}b.hA();c M=A(b.1h.v("t")),G=A(b.1h.v("u"));if(E.1C){M+=B(E.1C).2g()||0;G+=B(E.1C).2b()||0}b.1b=b.1h.1b();b.1f={t:M,u:G};b.1D=E.1h||I?{1a:F.3f(),19:F.2T()}:{1a:F.1a(),19:F.19()};b.5E=E.1h||I?{1a:F.3f(),19:F.2T()}:{1a:F.1a(),19:F.19()};b.3j={t:M,u:G};b.6w={1a:F.3f()-F.1a(),19:F.2T()-F.19()};b.hC={t:D.3y,u:D.3z};E.6d=(2P E.6d=="8O")?E.6d:((b.5E.1a/b.5E.19)||1);if(E.dm){c J=B(".q-1s-"+b.2F).v("2w");B("1W").v("2w",J=="4v"?b.2F+"-2u":J)}b.2e("2B",D);p 1i},66:h(C){c F=b.1h,E=b.l,K={},N=b,H=b.hC,L=b.2F;c O=(C.3y-H.t)||0,M=(C.3z-H.u)||0;c G=b.6C[L];if(!G){p 1c}c J=G.1B(b,[C,O,M]),I=B.1X.3M&&B.1X.3B<7,D=b.6w;if(E.9X||C.9t){J=b.hJ(J,C)}J=b.hB(J,C);b.2e("2u",C);F.v({u:b.1f.u+"2K",t:b.1f.t+"2K",1a:b.1D.1a+"2K",19:b.1D.19+"2K"});if(!E.1h&&E.6i){b.9O()}b.cJ(J);b.18.3J("2u",[C,b.q()],b.l["2u"]);p 1c},6M:h(F){b.l.bB=1c;c G=b.l,K=b;if(G.1h){c E=G.6i,C=E&&(/a5/i).1J(E.4W(0).2Z),D=C&&B.q.a2(E.4W(0),"t")?0:K.6w.19,I=C?0:K.6w.1a;c L={1a:(K.1D.1a-I),19:(K.1D.19-D)},H=(1l(K.18.v("t"),10)+(K.1f.t-K.3j.t))||1e,J=(1l(K.18.v("u"),10)+(K.1f.u-K.3j.u))||1e;if(!G.1P){b.18.v(B.1R(L,{u:J,t:H}))}if(G.1h&&!G.1P){b.9O()}}if(G.dm){B("1W").v("2w","4v")}b.2e("3c",F);if(G.1h){b.1h.2c()}p 1c},cJ:h(C){c D=b.l;b.1b=b.1h.1b();if(C.t){b.1f.t=C.t}if(C.u){b.1f.u=C.u}if(C.19){b.1D.19=C.19}if(C.1a){b.1D.1a=C.1a}},hJ:h(F,E){c G=b.l,H=b.1f,D=b.1D,C=b.2F;if(F.19){F.1a=(D.19*G.6d)}1k{if(F.1a){F.19=(D.1a/G.6d)}}if(C=="4h"){F.t=H.t+(D.1a-F.1a);F.u=1e}if(C=="nw"){F.u=H.u+(D.19-F.19);F.t=H.t+(D.1a-F.1a)}p F},hB:h(J,E){c H=b.1h,G=b.l,O=G.9X||E.9t,N=b.2F,Q=J.1a&&G.6Y&&G.6YJ.1a,P=J.19&&G.6q&&G.6q>J.19;if(F){J.1a=G.6r}if(P){J.19=G.6q}if(Q){J.1a=G.6Y}if(K){J.19=G.6Q}c D=b.3j.t+b.5E.1a,M=b.1f.u+b.1D.19;c I=/4h|nw|w/.1J(N),C=/nw|ne|n/.1J(N);if(F&&I){J.t=D-G.6r}if(Q&&I){J.t=D-G.6Y}if(P&&C){J.u=M-G.6q}if(K&&C){J.u=M-G.6Q}c L=!J.1a&&!J.19;if(L&&!J.t&&J.u){J.u=1e}1k{if(L&&!J.u&&J.t){J.t=1e}}p J},9O:h(){c G=b.l;if(!G.6i){p}c E=G.6i,D=b.1h||b.18;if(!G.8P){c C=[E.v("6j"),E.v("c2"),E.v("bw"),E.v("6s")],F=[E.v("e8"),E.v("ea"),E.v("e7"),E.v("e9")];G.8P=B.6T(C,h(H,J){c I=1l(H,10)||0,K=1l(F[J],10)||0;p I+K})}E.v({19:(D.19()-G.8P[0]-G.8P[2])+"2K",1a:(D.1a()-G.8P[1]-G.8P[3])+"2K"})},hA:h(){c D=b.18,G=b.l;b.d9=D.1b();if(G.1h){b.1h=b.1h||B(\'<1z 2J="3b:3g;">\');c C=B.1X.3M&&B.1X.3B<7,E=(C?1:0),F=(C?2:-1);b.1h.1t(G.1h).v({1a:D.3f()+F,19:D.2T()+F,1f:"2i",t:b.d9.t-E+"2K",u:b.d9.u-E+"2K",2M:++G.2M});b.1h.2W("1W");if(G.8n){b.1h.8n()}}1k{b.1h=D}},6C:{e:h(E,D,C){p{1a:b.5E.1a+D}},w:h(F,D,C){c H=b.l,E=b.5E,G=b.3j;p{t:G.t+D,1a:E.1a-D}},n:h(F,D,C){c H=b.l,E=b.5E,G=b.3j;p{u:G.u+C,19:E.19-C}},s:h(E,D,C){p{19:b.5E.19+C}},4k:h(E,D,C){p B.1R(b.6C.s.1B(b,1H),b.6C.e.1B(b,[E,D,C]))},4h:h(E,D,C){p B.1R(b.6C.s.1B(b,1H),b.6C.w.1B(b,[E,D,C]))},ne:h(E,D,C){p B.1R(b.6C.n.1B(b,1H),b.6C.e.1B(b,[E,D,C]))},nw:h(E,D,C){p B.1R(b.6C.n.1B(b,1H),b.6C.w.1B(b,[E,D,C]))}},2e:h(D,C){B.q.2O.1Y(b,D,[C,b.q()]);if(D!="2u"){b.18.3J(["2u",D].5F(""),[C,b.q()],b.l[D])}},73:{},q:h(){p{d3:b.d3,18:b.18,1h:b.1h,1f:b.1f,1D:b.1D,l:b.l,5E:b.5E,3j:b.3j}}}));B.1R(B.q.1s,{3B:"@5q",5e:{4Y:1c,1P:1c,hY:"c0",hX:"ad",6d:1c,hv:1c,65:":1u",1C:1c,8n:1i,5f:1,7T:0,53:1c,2Q:1c,77:1c,6Q:1e,6Y:1e,6q:10,6r:10,dm:1i,95:1i,6i:1c,72:1c}});B.q.2O.2k("1s","4Y",{2B:h(D,E){c G=E.l,C=B(b).1p("1s"),F=h(H){B(H).1E(h(){B(b).1p("1s-d0",{1a:1l(B(b).1a(),10),19:1l(B(b).19(),10),t:1l(B(b).v("t"),10),u:1l(B(b).v("u"),10)})})};if(2P(G.4Y)=="70"&&!G.4Y.3X){if(G.4Y.1q){G.4Y=G.4Y[0];F(G.4Y)}1k{B.1E(G.4Y,h(H,I){F(H)})}}1k{F(G.4Y)}},2u:h(E,G){c H=G.l,D=B(b).1p("1s"),F=D.5E,J=D.3j;c I={19:(D.1D.19-F.19)||0,1a:(D.1D.1a-F.1a)||0,u:(D.1f.u-J.u)||0,t:(D.1f.t-J.t)||0},C=h(K,L){B(K).1E(h(){c O=B(b).1p("1s-d0"),N={},M=L&&L.1q?L:["1a","19","u","t"];B.1E(M||["1a","19","u","t"],h(P,R){c Q=(O[R]||0)+(I[R]||0);if(Q&&Q>=0){N[R]=Q||1e}});B(b).v(N)})};if(2P(H.4Y)=="70"&&!H.4Y.3X){B.1E(H.4Y,h(K,L){C(K,L)})}1k{C(H.4Y)}},3c:h(C,D){B(b).4w("1s-d0-2B")}});B.q.2O.2k("1s","1P",{3c:h(G,L){c H=L.l,M=B(b).1p("1s");c F=H.6i,C=F&&(/a5/i).1J(F.4W(0).2Z),D=C&&B.q.a2(F.4W(0),"t")?0:M.6w.19,J=C?0:M.6w.1a;c E={1a:(M.1D.1a-J),19:(M.1D.19-D)},I=(1l(M.18.v("t"),10)+(M.1f.t-M.3j.t))||1e,K=(1l(M.18.v("u"),10)+(M.1f.u-M.3j.u))||1e;M.18.1P(B.1R(E,K&&I?{u:K,t:I}:{}),{1F:H.hY,22:H.hX,cF:h(){c N={1a:1l(M.18.v("1a"),10),19:1l(M.18.v("19"),10),u:1l(M.18.v("u"),10),t:1l(M.18.v("t"),10)};if(F){F.v({1a:N.1a,19:N.19})}M.cJ(N);M.2e("1P",G)}})}});B.q.2O.2k("1s","1C",{2B:h(D,N){c H=N.l,P=B(b).1p("1s"),J=P.18;c E=H.1C,I=(E jm B)?E.4W(0):(/1v/.1J(E))?J.1v().4W(0):E;if(!I){p}P.9Z=B(I);if(/1m/.1J(E)||E==1m){P.a0={t:0,u:0};P.cD={t:0,u:0};P.6I={18:B(1m),t:0,u:0,1a:B(1m).1a(),19:B(1m).19()||1m.1W.3X.7v}}1k{c L=B(I),G=[];B(["i0","i2","i1","i4"]).1E(h(R,Q){G[R]=A(L.v("bn"+Q))});P.a0=L.1b();P.cD=L.1f();P.c4={19:(L.7u()-G[3]),1a:(L.aL()-G[1])};c M=P.a0,C=P.c4.19,K=P.c4.1a,F=(B.q.a2(I,"t")?I.b3:K),O=(B.q.a2(I)?I.7v:C);P.6I={18:I,t:M.t,u:M.u,1a:F,19:O}}},2u:h(E,N){c G=N.l,Q=B(b).1p("1s"),D=Q.c4,M=Q.a0,K=Q.1D,L=Q.1f,O=G.9X||E.9t,C={u:0,t:0},F=Q.9Z;if(F[0]!=1m&&(/5V/).1J(F.v("1f"))){C=M}if(L.t<(G.1h?M.t:0)){Q.1D.1a=Q.1D.1a+(G.1h?(Q.1f.t-M.t):(Q.1f.t-C.t));if(O){Q.1D.19=Q.1D.1a/G.6d}Q.1f.t=G.1h?M.t:0}if(L.u<(G.1h?M.u:0)){Q.1D.19=Q.1D.19+(G.1h?(Q.1f.u-M.u):Q.1f.u);if(O){Q.1D.1a=Q.1D.19*G.6d}Q.1f.u=G.1h?M.u:0}Q.1b.t=Q.6I.t+Q.1f.t;Q.1b.u=Q.6I.u+Q.1f.u;c J=1o.3S((G.1h?Q.1b.t-C.t:(Q.1b.t-C.t))+Q.6w.1a),P=1o.3S((G.1h?Q.1b.u-C.u:(Q.1b.u-M.u))+Q.6w.19);c I=Q.9Z.4W(0)==Q.18.1v().4W(0),H=/1K|2i/.1J(Q.9Z.v("1f"));if(I&&H){J-=Q.6I.t}if(J+Q.1D.1a>=Q.6I.1a){Q.1D.1a=Q.6I.1a-J;if(O){Q.1D.19=Q.1D.1a/G.6d}}if(P+Q.1D.19>=Q.6I.19){Q.1D.19=Q.6I.19-P;if(O){Q.1D.1a=Q.1D.19*G.6d}}},3c:h(D,K){c E=K.l,M=B(b).1p("1s"),I=M.1f,J=M.a0,C=M.cD,F=M.9Z;c G=B(M.1h),N=G.1b(),L=G.3f()-M.6w.1a,H=G.2T()-M.6w.19;if(E.1h&&!E.1P&&(/1K/).1J(F.v("1f"))){B(b).v({t:N.t-C.t-J.t,1a:L,19:H})}if(E.1h&&!E.1P&&(/5V/).1J(F.v("1f"))){B(b).v({t:N.t-C.t-J.t,1a:L,19:H})}}});B.q.2O.2k("1s","53",{2B:h(E,F){c G=F.l,C=B(b).1p("1s"),H=G.6i,D=C.1D;if(!H){C.53=C.18.7p()}1k{C.53=H.7p()}C.53.v({2d:0.25,5k:"8p",1f:"1K",19:D.19,1a:D.1a,4n:0,t:0,u:0}).1t("q-1s-53").1t(2P G.53=="4V"?G.53:"");C.53.2W(C.1h)},2u:h(D,E){c F=E.l,C=B(b).1p("1s"),G=F.6i;if(C.53){C.53.v({1f:"1K",19:C.1D.19,1a:C.1D.1a})}},3c:h(D,E){c F=E.l,C=B(b).1p("1s"),G=F.6i;if(C.53&&C.1h){C.1h.4W(0).91(C.53.4W(0))}}});B.q.2O.2k("1s","2Q",{2u:h(C,K){c F=K.l,M=B(b).1p("1s"),I=M.1D,G=M.5E,H=M.3j,L=M.2F,J=F.9X||C.9t;F.2Q=2P F.2Q=="8O"?[F.2Q,F.2Q]:F.2Q;c E=1o.6E((I.1a-G.1a)/(F.2Q[0]||1))*(F.2Q[0]||1),D=1o.6E((I.19-G.19)/(F.2Q[1]||1))*(F.2Q[1]||1);if(/^(4k|s|e)$/.1J(L)){M.1D.1a=G.1a+E;M.1D.19=G.19+D}1k{if(/^(ne)$/.1J(L)){M.1D.1a=G.1a+E;M.1D.19=G.19+D;M.1f.u=H.u-D}1k{if(/^(4h)$/.1J(L)){M.1D.1a=G.1a+E;M.1D.19=G.19+D;M.1f.t=H.t-E}1k{M.1D.1a=G.1a+E;M.1D.19=G.19+D;M.1f.u=H.u-D;M.1f.t=H.t-E}}}}});c A=h(C){p 1l(C,10)||0}})(1Z);(h(A){A.4q("q.3D",A.1R({},A.q.57,{6g:h(){c B=b;b.18.1t("q-3D");b.cV=1c;c C;b.ac=h(){C=A(B.l.3r,B.18[0]);C.1E(h(){c D=A(b);c E=D.1b();A.1p(b,"3D-2E",{18:b,$18:D,t:E.t,u:E.u,2Y:E.t+D.1a(),3F:E.u+D.19(),84:1c,1U:D.3Y("q-1U"),4K:D.3Y("q-4K"),3Q:D.3Y("q-3Q")})})};b.ac();b.ch=C.1t("q-jo");b.9k();b.1h=A(1m.fi("1z")).v({bk:"cj jE fE"}).1t("q-3D-1h")},3H:h(){b.18.1S("q-3D q-3D-1Q").4w("3D").3t(".3D");b.8L()},7d:h(E){c C=b;b.cG=[E.3y,E.3z];if(b.l.1Q){p}c D=b.l;b.ch=A(D.3r,b.18[0]);b.18.3J("jV",[E,{"3D":b.18[0],"l":D}],D.2B);A("1W").6J(b.1h);b.1h.v({"z-3L":3i,"1f":"2i","t":E.gX,"u":E.jT,"1a":0,"19":0});if(D.hP){b.ac()}b.ch.3r(".q-1U").1E(h(){c F=A.1p(b,"3D-2E");F.84=1i;if(!E.4H){F.$18.1S("q-1U");F.1U=1c;F.$18.1t("q-3Q");F.3Q=1i;C.18.3J("cO",[E,{3D:C.18[0],3Q:F.18,l:D}],D.3Q)}});c B=1c;A(E.1j).4z().6X().1E(h(){if(A.1p(b,"3D-2E")){B=1i}});p b.l.jS?!B:1i},66:h(I){c C=b;b.cV=1i;if(b.l.1Q){p}c E=b.l;c D=b.cG[0],H=b.cG[1],B=I.3y,G=I.3z;if(D>B){c F=B;B=D;D=F}if(H>G){c F=G;G=H;H=F}b.1h.v({t:D,u:H,1a:B-D,19:G-H});b.ch.1E(h(){c J=A.1p(b,"3D-2E");if(!J||J.18==C.18[0]){p}c K=1c;if(E.69=="cY"){K=(!(J.t>B||J.2YG||J.3FD&&J.2YH&&J.3F=0;B--){b.2N[B].2E.4w("2o-2E")}},8B:h(E,F){if(b.bt){p 1c}if(b.l.1Q||b.l.5X=="5V"){p 1c}b.ca(E);c D=1e,C=b,B=A(E.1j).4z().1E(h(){if(A.1p(b,"2o-2E")==C){D=A(b);p 1c}});if(A.1p(E.1j,"2o-2E")==C){D=A(E.1j)}if(!D){p 1c}if(b.l.1N&&!F){c G=1c;A(b.l.1N,D).4r("*").6X().1E(h(){if(b==E.1j){G=1i}});if(!G){p 1c}}b.1A=D;b.eY();p 1i},7d:h(D,E,B){c F=b.l;b.8T=b;b.9w();b.1h=b.bN(D);b.8M();b.cb();b.1M=b.1h.1M();b.1b=b.1A.1b();b.1b={u:b.1b.u-b.2I.u,t:b.1b.t-b.2I.t};b.1h.v("1f","2i");b.3P=b.1h.v("1f");A.1R(b.1b,{2p:{t:D.3y-b.1b.t,u:D.3z-b.1b.u},1v:b.8h(),1K:b.9h()});if(F.a8){b.c1(F.a8)}b.3j=b.9z(D);b.90={4Q:b.1A.4Q()[0],1v:b.1A.1v()[0]};if(b.1h[0]!=b.1A[0]){b.1A.1L()}b.ff();if(F.1C){b.c8()}b.2e("2B",D);if(!b.iz){b.8M()}if(!B){1O(c C=b.2l.1q-1;C>=0;C--){b.2l[C].2e("9E",D,b)}}if(A.q.2A){A.q.2A.5b=b}if(A.q.2A&&!F.8I){A.q.2A.9o(b,D)}b.7f=1i;b.1h.1t("q-2o-1h");b.66(D);p 1i},66:h(E){b.1f=b.9z(E);b.3n=b.5a("2i");if(!b.ai){b.ai=b.3n}A.q.2O.1Y(b,"7i",[E,b.9n()]);b.3n=b.5a("2i");if(!b.l.2F||b.l.2F!="y"){b.1h[0].2J.t=b.1f.t+"2K"}if(!b.l.2F||b.l.2F!="x"){b.1h[0].2J.u=b.1f.u+"2K"}1O(c C=b.2N.1q-1;C>=0;C--){c D=b.2N[C],B=D.2E[0],F=b.g3(D);if(!F){79}if(B!=b.1A[0]&&b.3a[F==1?"4i":"4Q"]()[0]!=B&&!A.q.6x(b.3a[0],B)&&(b.l.5X=="iB-iF"?!A.q.6x(b.18[0],B):1i)){b.6W=F==1?"56":"5G";if(b.l.69=="c3"||b.fb(D)){b.l.cf.1Y(b,E,D)}1k{1I}b.2e("7B",E);1I}}b.fj(E);if(A.q.2A){A.q.2A.4B(b,E)}b.43("7i",E,b.9n());b.ai=b.3n;p 1c},6M:h(C,D){if(!C){p}if(A.q.2A&&!b.l.8I){A.q.2A.78(b,C)}if(b.l.6c){c B=b;c E=B.3a.1b();B.bt=1i;A(b.1h).1P({t:E.t-b.1b.1v.t-B.2I.t+(b.3h[0]==1m.1W?0:b.3h[0].2g),u:E.u-b.1b.1v.u-B.2I.u+(b.3h[0]==1m.1W?0:b.3h[0].2b)},1l(b.l.6c,10)||bE,h(){B.9v(C)})}1k{b.9v(C,D)}p 1c},65:h(){if(b.7f){b.9s();if(b.l.1h=="8d"){b.1A.v(b.8F).1S("q-2o-1h")}1k{b.1A.1G()}1O(c B=b.2l.1q-1;B>=0;B--){b.2l[B].2e("8S",1e,b);if(b.2l[B].4J.58){b.2l[B].2e("8R",1e,b);b.2l[B].4J.58=0}}}if(b.3a[0].3X){b.3a[0].3X.91(b.3a[0])}if(b.l.1h!="8d"&&b.1h&&b.1h[0].3X){b.1h.2c()}A.1R(b,{1h:1e,7f:1c,bt:1c,eU:1e});if(b.90.4Q){A(b.90.4Q).b0(b.1A)}1k{A(b.90.1v).hs(b.1A)}p 1i},fQ:h(D){c B=b.d6(D&&D.hT);c C=[];D=D||{};A(B).1E(h(){c E=(A(D.2E||b).21(D.hS||"id")||"").3v(D.hQ||(/(.+)[-=8Y](.+)/));if(E){C.4c((D.6k||E[1]+"[]")+"="+(D.6k&&D.hQ?E[1]:E[2]))}});p C.5F("&")},fP:h(D){c B=b.d6(D&&D.hT);c C=[];D=D||{};B.1E(h(){C.4c(A(D.2E||b).21(D.hS||"id")||"")});p C},fd:h(K){c D=b.3n.t,C=D+b.2D.1a,J=b.3n.u,I=J+b.2D.19;c E=K.t,B=E+K.1a,L=K.u,H=L+K.19;c M=b.1b.2p.u,G=b.1b.2p.t;c F=(J+M)>L&&(J+M)E&&(D+G)K[b.7P?"1a":"19"])){p F}1k{p(E0?"56":"5G")},cP:h(){c B=b.3n.t-b.ai.t;p B!=0&&(B>0?"2Y":"t")},ac:h(B){b.ca(B);b.9w()},d6:h(G){c C=b;c B=[];c E=[];if(b.l.8Z&&G){1O(c F=b.l.8Z.1q-1;F>=0;F--){c I=A(b.l.8Z[F]);1O(c D=I.1q-1;D>=0;D--){c H=A.1p(I[D],"2o");if(H&&H!=b&&!H.l.1Q){E.4c([A.5C(H.l.2N)?H.l.2N.1Y(H.18):A(H.l.2N,H.18).7r(".q-2o-1h"),H])}}}}E.4c([A.5C(b.l.2N)?b.l.2N.1Y(b.18,1e,{l:b.l,2E:b.1A}):A(b.l.2N,b.18).7r(".q-2o-1h"),b]);1O(c F=E.1q-1;F>=0;F--){E[F][0].1E(h(){B.4c(b)})}p A(B)},eY:h(){c D=b.1A.4r(":1p(2o-2E)");1O(c C=0;C=0;E--){c J=A(b.l.8Z[E]);1O(c D=J.1q-1;D>=0;D--){c G=A.1p(J[D],"2o");if(G&&G!=b&&!G.l.1Q){F.4c([A.5C(G.l.2N)?G.l.2N.1Y(G.18[0],B,{2E:b.1A}):A(G.l.2N,G.18),G]);b.2l.4c(G)}}}}1O(c E=F.1q-1;E>=0;E--){c I=F[E][1];c C=F[E][0];1O(c D=0,K=C.1q;D=0;D--){c E=b.2N[D];if(E.24!=b.8T&&b.8T&&E.2E[0]!=b.1A[0]){79}c C=b.l.fv?A(b.l.fv,E.2E):E.2E;if(!B){if(b.l.fe){E.1a=C.3f();E.19=C.2T()}1k{E.1a=C[0].4P;E.19=C[0].4O}}c F=C.1b();E.t=F.t;E.u=F.u}if(b.l.dy&&b.l.dy.fJ){b.l.dy.fJ.1Y(b)}1k{1O(c D=b.2l.1q-1;D>=0;D--){c F=b.2l[D].18.1b();b.2l[D].4J.t=F.t;b.2l[D].4J.u=F.u;b.2l[D].4J.1a=b.2l[D].18.3f();b.2l[D].4J.19=b.2l[D].18.2T()}}},ff:h(D){c B=D||b,E=B.l;if(!E.3a||E.3a.4t==9Q){c C=E.3a;E.3a={18:h(){c F=A(1m.fi(B.1A[0].2Z)).1t(C||B.1A[0].9H+" q-2o-3a").1S("q-2o-1h")[0];if(!C){F.2J.aT="3g";1m.1W.ep(F);F.fk=B.1A[0].fk.49(/3R\\=\\"[^\\"\\\']+\\"/g,"").49(/1Z[0-9]+\\=\\"[^\\"\\\']+\\"/g,"");1m.1W.91(F)}p F},aX:h(F,G){if(C&&!E.f8){p}if(!G.19()){G.19(B.1A.7u()-1l(B.1A.v("e8")||0,10)-1l(B.1A.v("e7")||0,10))}if(!G.1a()){G.1a(B.1A.aL()-1l(B.1A.v("e9")||0,10)-1l(B.1A.v("ea")||0,10))}}}}B.3a=A(E.3a.18.1Y(B.18,B.1A));B.1A.b0(B.3a);E.3a.aX(B,B.3a)},fj:h(D){1O(c C=b.2l.1q-1;C>=0;C--){if(b.fd(b.2l[C].4J)){if(!b.2l[C].4J.58){if(b.8T!=b.2l[C]){c H=jn;c G=1e;c E=b.3n[b.2l[C].7P?"t":"u"];1O(c B=b.2N.1q-1;B>=0;B--){if(!A.q.6x(b.2l[C].18[0],b.2N[B].2E[0])){79}c F=b.2N[B][b.2l[C].7P?"t":"u"];if(1o.3S(F-E)b.1C[2]){B.t=b.1C[2]-b.2D.1a}if(B.u+b.2D.19>b.1C[3]){B.u=b.1C[3]-b.2D.19}}if(G.2Q){c F=b.3j.u+1o.6E((B.u-b.3j.u)/G.2Q[1])*G.2Q[1];B.u=b.1C?(!(Fb.1C[3])?F:(!(Fb.1C[2])?E:(!(E=0;B--){if(A.q.6x(b.2l[B].18[0],b.1A[0])){b.2l[B].2e("aX",C,b,D);b.2l[B].2e("fa",C,b,D)}}}1O(c B=b.2l.1q-1;B>=0;B--){b.2l[B].2e("8S",C,b,D);if(b.2l[B].4J.58){b.2l[B].2e("8R",C,b);b.2l[B].4J.58=0}}b.7f=1c;if(b.8z){b.2e("aB",C,1e,D);b.2e("3c",C,1e,D);p 1c}b.2e("aB",C,1e,D);b.3a[0].3X.91(b.3a[0]);if(b.l.1h!="8d"){b.1h.2c()}b.1h=1e;b.2e("3c",C,1e,D);p 1i},2e:h(F,B,C,D){A.q.2O.1Y(b,F,[B,b.9n(C)]);c E=!D?b.18.3J(F=="7i"?F:"7i"+F,[B,b.9n(C)],b.l[F]):1i;if(E===1c){b.65()}},73:{},9n:h(C){c B=C||b;p{1h:B.1h,3a:B.3a||A([]),1f:B.1f,aW:B.3n,2E:B.1A,fK:C?C.18:1e}}}));A.1R(A.q.2o,{aP:"fQ fP",3B:"@5q",5e:{fe:1i,2W:"1v",65:":1u",7T:0,5f:1,f5:1i,f8:1c,cT:1c,1h:"8d",2N:"> *",6o:"4o",6G:1i,4e:20,4b:20,cf:A.q.2o.54.f1,69:"4o",2M:aA}});A.q.2O.2k("2o","2w",{2B:h(D,E){c C=A("1W"),B=A(b).1p("2o");if(C.v("2w")){B.l.9r=C.v("2w")}C.v("2w",B.l.2w)},aB:h(C,D){c B=A(b).1p("2o");if(B.l.9r){A("1W").v("2w",B.l.9r)}}});A.q.2O.2k("2o","2d",{2B:h(D,E){c C=E.1h,B=A(b).1p("2o");if(C.v("2d")){B.l.96=C.v("2d")}C.v("2d",B.l.2d)},aB:h(C,D){c B=A(b).1p("2o");if(B.l.96){A(D.1h).v("2d",B.l.96)}}});A.q.2O.2k("2o","6G",{2B:h(C,D){c B=A(b).1p("2o"),E=B.l;if(B.1M[0]!=1m&&B.1M[0].5c!="bh"){B.6B=B.1M.1b()}},7i:h(D,E){c C=A(b).1p("2o"),F=C.l,B=1c;if(C.1M[0]!=1m&&C.1M[0].5c!="bh"){if((C.6B.u+C.1M[0].4O)-D.3z\');c I=F.1v();if(F.v("1f")=="5V"){I.v({1f:"1K"});F.v({1f:"1K"})}1k{c H=F.v("u");if(5H(1l(H))){H="4v"}c G=F.v("t");if(5H(1l(G))){G="4v"}I.v({1f:F.v("1f"),u:H,t:G,2M:F.v("z-3L")}).1G();F.v({1f:"1K",u:0,t:0})}I.v(E);p I},6y:h(E){if(E.1v().21("id")=="dE"){p E.1v().iA(E)}p E},5Q:h(F,G,E,H){H=H||{};C.1E(G,h(J,I){b6=F.fl(I);if(b6[0]>0){H[I]=b6[0]*E+b6[1]}});p H},b2:h(G,H,J,I){c E=(2P J=="h"?J:(I?I:1e));c F=(2P J=="70"?J:1e);p b.1E(h(){c O={};c M=C(b);c N=M.21("2J")||"";if(2P N=="70"){N=N["er"]}if(G.6b){M.3Y(G.6b)?G.2c=G.6b:G.2k=G.6b}c K=C.1R({},(1m.bf?1m.bf.fO(b,1e):b.fq));if(G.2k){M.1t(G.2k)}if(G.2c){M.1S(G.2c)}c L=C.1R({},(1m.bf?1m.bf.fO(b,1e):b.fq));if(G.2k){M.1S(G.2k)}if(G.2c){M.1t(G.2c)}1O(c P in L){if(2P L[P]!="h"&&L[P]&&P.93("iG")==-1&&P.93("1q")==-1&&L[P]!=K[P]&&(P.3v(/9S/i)||(!P.3v(/9S/i)&&!5H(1l(L[P],10))))&&(K.1f!="5V"||(K.1f=="5V"&&!P.3v(/t|u|3F|2Y/)))){O[P]=L[P]}}M.1P(O,H,F,h(){if(2P C(b).21("2J")=="70"){C(b).21("2J")["er"]="";C(b).21("2J")["er"]=N}1k{C(b).21("2J",N)}if(G.2k){C(b).1t(G.2k)}if(G.2c){C(b).1S(G.2c)}if(E){E.1B(b,1H)}})})}});C.fn.1R({fX:C.fn.1G,f9:C.fn.1L,fC:C.fn.6b,g0:C.fn.1t,fZ:C.fn.1S,fc:C.fn.b7,5x:h(E,G,F,H){p C.1r[E]?C.1r[E].1Y(b,{iD:E,l:G||{},1F:F,2z:H}):1e},1G:h(){if(!1H[0]||(1H[0].4t==7Y||/(c0|9p|cx)/.1J(1H[0]))){p b.fX.1B(b,1H)}1k{c E=1H[1]||{};E["2X"]="1G";p b.5x.1B(b,[1H[0],E,1H[2]||E.1F,1H[3]||E.2z])}},1L:h(){if(!1H[0]||(1H[0].4t==7Y||/(c0|9p|cx)/.1J(1H[0]))){p b.f9.1B(b,1H)}1k{c E=1H[1]||{};E["2X"]="1L";p b.5x.1B(b,[1H[0],E,1H[2]||E.1F,1H[3]||E.2z])}},6b:h(){if(!1H[0]||(1H[0].4t==7Y||/(c0|9p|cx)/.1J(1H[0]))||(1H[0].4t==j7)){p b.fC.1B(b,1H)}1k{c E=1H[1]||{};E["2X"]="6b";p b.5x.1B(b,[1H[0],E,1H[2]||E.1F,1H[3]||E.2z])}},1t:h(F,E,H,G){p E?C.1r.b2.1B(b,[{2k:F},E,H,G]):b.g0(F)},1S:h(F,E,H,G){p E?C.1r.b2.1B(b,[{2c:F},E,H,G]):b.fZ(F)},b7:h(F,E,H,G){p E?C.1r.b2.1B(b,[{6b:F},E,H,G]):b.fc(F)},f0:h(E,G,F,I,H){p C.1r.b2.1B(b,[{2k:G,2c:E},F,I,H])},iX:h(){p b.f0.1B(b,1H)},fl:h(E){c F=b.v(E),G=[];C.1E(["em","2K","%","j3"],h(H,I){if(F.93(I)>0){G=[9I(F),I]}});p G}});C.1E(["8b","jd","j6","j0","j2","9S","iZ"],h(F,E){C.fx.cF[E]=h(G){if(G.ji==0){G.2B=D(G.fG,E);G.5j=B(G.5j)}G.fG.2J[E]="da("+[1o.2h(1o.2y(1l((G.2H*(G.5j[0]-G.2B[0]))+G.2B[0]),2C),0),1o.2h(1o.2y(1l((G.2H*(G.5j[1]-G.2B[1]))+G.2B[1]),2C),0),1o.2h(1o.2y(1l((G.2H*(G.5j[2]-G.2B[2]))+G.2B[2]),2C),0)].5F(",")+")"}});h B(F){c E;if(F&&F.4t==98&&F.1q==3){p F}if(E=/da\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.7K(F)){p[1l(E[1]),1l(E[2]),1l(E[3])]}if(E=/da\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.7K(F)){p[9I(E[1])*2.55,9I(E[2])*2.55,9I(E[3])*2.55]}if(E=/#([a-fA-9c-9]{2})([a-fA-9c-9]{2})([a-fA-9c-9]{2})/.7K(F)){p[1l(E[1],16),1l(E[2],16),1l(E[3],16)]}if(E=/#([a-fA-9c-9])([a-fA-9c-9])([a-fA-9c-9])/.7K(F)){p[1l(E[1]+E[1],16),1l(E[2]+E[2],16),1l(E[3]+E[3],16)]}if(E=/fR\\(0, 0, 0, 0\\)/.7K(F)){p A["72"]}p A[C.eW(F).5T()]}h D(G,E){c F;do{F=C.7J(G,E);if(F!=""&&F!="72"||C.2Z(G,"1W")){1I}E="8b"}71(G=G.3X);p B(F)}c A={mR:[0,2C,2C],mQ:[fL,2C,2C],mS:[f3,f3,mT],fE:[0,0,0],mV:[0,0,2C],mU:[f6,42,42],mP:[0,2C,2C],mO:[0,0,9x],mJ:[0,9x,9x],mI:[cy,cy,cy],mK:[0,3i,0],mL:[mN,mM,eG],mW:[9x,0,9x],mX:[85,eG,47],n7:[2C,ds,0],n6:[n8,50,n9],nb:[9x,0,0],na:[n5,bS,n4],mZ:[mY,0,bi],n0:[2C,0,2C],n1:[2C,n3,0],n2:[0,6R,0],mH:[75,0,mG],mk:[fL,fh,ds],mj:[ml,mn,fh],nd:[fN,2C,2C],mo:[fD,mi,fD],mh:[bi,bi,bi],mc:[2C,mb,md],me:[2C,2C,fN],mg:[0,2C,0],mf:[2C,0,2C],mq:[6R,0,0],mr:[0,0,6R],mB:[6R,6R,0],mA:[2C,f6,0],mC:[2C,ck,mD],mF:[6R,0,6R],mE:[6R,0,6R],mz:[2C,0,0],my:[ck,ck,ck],mt:[2C,2C,2C],ms:[2C,2C,0],72:[2C,2C,2C]};C.22.mu=C.22.ad;C.1R(C.22,{fy:"fB",ad:h(F,G,E,I,H){p C.22[C.22.fy](F,G,E,I,H)},mv:h(F,G,E,I,H){p I*(G/=H)*G+E},fB:h(F,G,E,I,H){p-I*(G/=H)*(G-2)+E},mx:h(F,G,E,I,H){if((G/=H/2)<1){p I/2*G*G+E}p-I/2*((--G)*(G-2)-1)+E},mw:h(F,G,E,I,H){p I*(G/=H)*G*G+E},nc:h(F,G,E,I,H){p I*((G=G/H-1)*G*G+1)+E},nM:h(F,G,E,I,H){if((G/=H/2)<1){p I/2*G*G*G+E}p I/2*((G-=2)*G*G+2)+E},nZ:h(F,G,E,I,H){p I*(G/=H)*G*G*G+E},nQ:h(F,G,E,I,H){p-I*((G=G/H-1)*G*G*G-1)+E},nT:h(F,G,E,I,H){if((G/=H/2)<1){p I/2*G*G*G*G+E}p-I/2*((G-=2)*G*G*G-2)+E},nU:h(F,G,E,I,H){p I*(G/=H)*G*G*G*G+E},nY:h(F,G,E,I,H){p I*((G=G/H-1)*G*G*G*G+1)+E},nW:h(F,G,E,I,H){if((G/=H/2)<1){p I/2*G*G*G*G*G+E}p I/2*((G-=2)*G*G*G*G+2)+E},nV:h(F,G,E,I,H){p-I*1o.fg(G/H*(1o.6D/2))+I+E},nP:h(F,G,E,I,H){p I*1o.aZ(G/H*(1o.6D/2))+E},o0:h(F,G,E,I,H){p-I/2*(1o.fg(1o.6D*G/H)-1)+E},nS:h(F,G,E,I,H){p(G==0)?E:I*1o.7o(2,10*(G/H-1))+E},o4:h(F,G,E,I,H){p(G==H)?E+I:I*(-1o.7o(2,-10*G/H)+1)+E},o5:h(F,G,E,I,H){if(G==0){p E}if(G==H){p E+I}if((G/=H/2)<1){p I/2*1o.7o(2,10*(G-1))+E}p I/2*(-1o.7o(2,-10*--G)+2)+E},o6:h(F,G,E,I,H){p-I*(1o.8U(1-(G/=H)*G)-1)+E},o3:h(F,G,E,I,H){p I*1o.8U(1-(G=G/H-1)*G)+E},o2:h(F,G,E,I,H){if((G/=H/2)<1){p-I/2*(1o.8U(1-G*G)-1)+E}p I/2*(1o.8U(1-(G-=2)*G)+1)+E},o1:h(F,H,E,L,K){c I=1.9m;c J=0;c G=L;if(H==0){p E}if((H/=K)==1){p E+L}if(!J){J=K*0.3}if(G<1o.3S(L)){G=L;c I=J/4}1k{c I=J/(2*1o.6D)*1o.eI(L/G)}p-(G*1o.7o(2,10*(H-=1))*1o.aZ((H*K-I)*(2*1o.6D)/J))+E},nX:h(F,H,E,L,K){c I=1.9m;c J=0;c G=L;if(H==0){p E}if((H/=K)==1){p E+L}if(!J){J=K*0.3}if(G<1o.3S(L)){G=L;c I=J/4}1k{c I=J/(2*1o.6D)*1o.eI(L/G)}p G*1o.7o(2,-10*H)*1o.aZ((H*K-I)*(2*1o.6D)/J)+L+E},nN:h(F,H,E,L,K){c I=1.9m;c J=0;c G=L;if(H==0){p E}if((H/=K/2)==2){p E+L}if(!J){J=K*(0.3*1.5)}if(G<1o.3S(L)){G=L;c I=J/4}1k{c I=J/(2*1o.6D)*1o.eI(L/G)}if(H<1){p-0.5*(G*1o.7o(2,10*(H-=1))*1o.aZ((H*K-I)*(2*1o.6D)/J))+E}p G*1o.7o(2,-10*(H-=1))*1o.aZ((H*K-I)*(2*1o.6D)/J)*0.5+L+E},nr:h(F,G,E,J,I,H){if(H==2v){H=1.9m}p J*(G/=I)*G*((H+1)*G-H)+E},nu:h(F,G,E,J,I,H){if(H==2v){H=1.9m}p J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},nt:h(F,G,E,J,I,H){if(H==2v){H=1.9m}if((G/=I/2)<1){p J/2*(G*G*(((H*=(1.fH))+1)*G-H))+E}p J/2*((G-=2)*G*(((H*=(1.fH))+1)*G+H)+2)+E},fo:h(F,G,E,I,H){p I-C.22.bO(F,H-G,0,I,H)+E},bO:h(F,G,E,I,H){if((G/=H)<(1/2.75)){p I*(7.ba*G*G)+E}1k{if(G<(2/2.75)){p I*(7.ba*(G-=(1.5/2.75))*G+0.75)+E}1k{if(G<(2.5/2.75)){p I*(7.ba*(G-=(2.25/2.75))*G+0.nO)+E}1k{p I*(7.ba*(G-=(2.nm/2.75))*G+0.nh)+E}}}},ng:h(F,G,E,I,H){if(G").v({1f:"2i",aT:"5J",t:-D*(G/E),u:-F*(C/I)}).1v().1t("1r-ez").v({1f:"2i",3b:"3g",1a:G/E,19:C/I,t:J.t+D*(G/E)+(B.l.2X=="1G"?(D-1o.9Y(E/2))*(G/E):0),u:J.u+F*(C/I)+(B.l.2X=="1G"?(F-1o.9Y(I/2))*(C/I):0),2d:B.l.2X=="1G"?0:1}).1P({t:J.t+D*(G/E)+(B.l.2X=="1G"?0:(D-1o.9Y(E/2))*(G/E)),u:J.u+F*(C/I)+(B.l.2X=="1G"?0:(F-1o.9Y(I/2))*(C/I)),2d:B.l.2X=="1G"?1:0},B.1F||bE)}}8C(h(){B.l.2X=="1G"?H.v({aT:"5J"}):H.v({aT:"5J"}).1L();if(B.2z){B.2z.1B(H[0])}H.4j();A(".1r-ez").2c()},B.1F||bE)})}})(1Z);(h(A){A.1r.nv=h(B){p b.3C(h(){c E=A(b),J=["1f","u","t"];c G=A.1r.4T(E,B.l.2X||"1L");c N=B.l.1D||15;c M=!(!B.l.nx);A.1r.5N(E,J);E.1G();c D=A.1r.6S(E).v({3b:"3g"});c H=((G=="1G")!=M);c F=H?["1a","19"]:["19","1a"];c C=H?[D.1a(),D.19()]:[D.19(),D.1a()];c I=/([0-9]+)%/.7K(N);if(I){N=1l(I[1])/3i*C[G=="1L"?0:1]}if(G=="1G"){D.v(M?{19:0,1a:N}:{19:N,1a:0})}c L={},K={};L[F[0]]=G=="1G"?C[0]:N;K[F[1]]=G=="1G"?C[1]:0;D.1P(L,B.1F/2,B.l.22).1P(K,B.1F/2,B.l.22,h(){if(G=="1L"){E.1L()}A.1r.51(E,J);A.1r.6y(E);if(B.2z){B.2z.1B(E[0],1H)}E.4j()})})}})(1Z);(h(A){A.1r.nI=h(B){p b.3C(h(){c E=A(b),D=["dY","8b","2d"];c H=A.1r.4T(E,B.l.2X||"1G");c C=B.l.9S||"#nJ";c G=E.v("8b");A.1r.5N(E,D);E.1G();E.v({dY:"6a",8b:C});c F={8b:G};if(H=="1L"){F["2d"]=0}E.1P(F,{3C:1c,1F:B.1F,22:B.l.22,6u:h(){if(H=="1L"){E.1L()}A.1r.51(E,D);if(H=="1G"&&A.1X.3M){b.2J.gL("3r")}if(B.2z){B.2z.1B(b,1H)}E.4j()}})})}})(1Z);(h(A){A.1r.nF=h(B){p b.3C(h(){c D=A(b);c F=A.1r.4T(D,B.l.2X||"1G");c E=B.l.dt||5;if(F=="1L"){E--}if(D.is(":3g")){D.v("2d",0);D.1G();D.1P({2d:1},B.1F/2,B.l.22);E=E-2}1O(c C=0;C\').2W(1m.1W);if(B.l.9H){D.1t(B.l.9H)}D.1t(B.l.9H);D.v({u:C.u,t:C.t,19:E.2T()-1l(D.v("6j"))-1l(D.v("bw")),1a:E.3f()-1l(D.v("6s"))-1l(D.v("c2")),1f:"2i"});C=F.1b();f7={u:C.u,t:C.t,19:F.2T()-1l(D.v("6j"))-1l(D.v("bw")),1a:F.3f()-1l(D.v("6s"))-1l(D.v("c2"))};D.1P(f7,B.1F,B.l.22,h(){D.2c();if(B.2z){B.2z.1B(E[0],1H)}E.4j()})})}})(1Z);(h(E){E.4q("q.3T",{6g:h(){c H=b.l;if(H.nB){c K=b.18.4r("a").3r(H.fS);if(K.1q){if(K.3r(H.7Z).1q){H.41=K}1k{H.41=K.1v().1v().4Q();K.1t("5b")}}}H.3p=b.18.4r(H.7Z);H.41=C(H.3p,H.41);if(E.1X.3M){b.18.4r("a").v("eZ","1")}if(!b.18.3Y("q-3T")){b.18.1t("q-3T");E(\'<48 2R="q-3T-t">\').bM(H.3p);E(\'<48 2R="q-3T-2Y">\').2W(H.3p);H.3p.1t("q-3T-7Z")}c J;if(H.fM){J=b.18.1v().19();H.3p.1E(h(){J-=E(b).2T()});c I=0;H.3p.4i().1E(h(){I=1o.2h(I,E(b).7u()-E(b).19())}).19(J-I)}1k{if(H.7x){J=0;H.3p.4i().1E(h(){J=1o.2h(J,E(b).2T())}).19(J)}}b.18.21("9b","ny");c G=b;H.3p.21("9b","h4").2V("7w",h(L){p G.bc(L)}).4i().21("9b","nz");H.3p.7r(H.41||"").21("9a-bd","1c").21("6A","-1").4i().1L();if(!H.41.1q){H.3p.eq(0).21("6A","0")}1k{H.41.21("9a-bd","1i").21("6A","0").1v().6X().1t(H.3E)}if(!E.1X.8H){H.3p.4r("a").21("6A","-1")}if(H.1x){b.18.2V((H.1x)+".3T",F)}},3H:h(){b.l.3p.1v().6X().1S(b.l.3E);b.l.3p.4Q(".q-3T-t").2c();b.l.3p.bq(".q-3T-2Y").2c();b.l.3p.4i().v("5k","");if(b.l.fM||b.l.7x){b.l.3p.4i().v("19","")}E.4w(b.18[0],"3T");b.18.1S("q-3T").3t(".3T")},bc:h(J){if(b.l.1Q||J.dq||J.3U){p}c K=E.q.4D;c I=b.l.3p.1q;c G=b.l.3p.3L(J.1j);c H=1c;5z(J.4D){1y K.fI:1y K.fu:H=b.l.3p[(G+1)%I];1I;1y K.fw:1y K.fs:H=b.l.3p[(G-1+I)%I];1I;1y K.fp:1y K.fF:p F.1Y(b.18[0],{1j:J.1j})}if(H){E(J.1j).21("6A","-1");E(H).21("6A","0");H.4d();p 1c}p 1i},9E:h(G){F.1Y(b.18[0],{1j:C(b.l.3p,G)[0]})}});h B(H,G){p h(){p H.1B(G,1H)}}h D(I){if(!E.1p(b,"3T")){p}c G=E.1p(b,"3T");c H=G.l;H.9G=I?0:--H.9G;if(H.9G){p}if(H.nA){H.4I.2k(H.8f).v({19:"",3b:""})}G.43("7B",1e,H.1p)}h A(G,N,K,L,O){c Q=E.1p(b,"3T").l;Q.4I=G;Q.8f=N;Q.1p=K;c H=B(D,b);E.1p(b,"3T").43("nG",1e,Q.1p);Q.9G=N.1D()===0?G.1D():N.1D();if(Q.a3){c J={};if(!Q.8x&&L){J={4I:E([]),8f:N,6u:H,56:O,7x:Q.7x}}1k{J={4I:G,8f:N,6u:H,56:O,7x:Q.7x}}if(!Q.aa){Q.aa=Q.a3}if(!Q.a7){Q.a7=Q.1F}Q.a3=E.5C(Q.aa)?Q.aa(J):Q.aa;Q.1F=E.5C(Q.a7)?Q.a7(J):Q.a7;c P=E.q.3T.g1,I=Q.1F,M=Q.a3;if(!P[M]){P[M]=h(R){b.6h(R,{22:M,1F:I||f4})}}P[M](J)}1k{if(!Q.8x&&L){G.6b()}1k{N.1L();G.1G()}H(1i)}N.4Q().21("9a-bd","1c").21("6A","-1");G.4Q().21("9a-bd","1i").21("6A","0").4d()}h F(L){c J=E.1p(b,"3T").l;if(J.1Q){p 1c}if(!L.1j&&!J.8x){J.41.1v().6X().b7(J.3E);c I=J.41.4i(),M={l:J,fW:E([]),fV:J.41,fU:E([]),fY:I},G=(J.41=E([]));A.1Y(b,G,I,M);p 1c}c K=E(L.1j);K=E(K.4z(J.7Z)[0]||K);c H=K[0]==J.41[0];if(J.9G||(J.8x&&H)){p 1c}if(!K.is(J.7Z)){p}J.41.1v().6X().b7(J.3E);if(!H){K.1v().6X().1t(J.3E)}c G=K.4i(),I=J.41.4i(),M={l:J,fW:H&&!J.8x?E([]):K,fV:J.41,fU:H&&!J.8x?E([]):G,fY:I},N=J.3p.3L(J.41[0])>J.3p.3L(K[0]);J.41=H?E([]):K;A.1Y(b,G,I,M,H,N);p 1c}h C(H,G){p G?2P G=="8O"?H.3r(":eq("+G+")"):H.7r(H.7r(G)):G===1c?E([]):H.3r(":eq(0)")}E.1R(E.q.3T,{3B:"@5q",5e:{7x:1i,8x:1i,a3:"6h",1x:"2p",7Z:"a",fS:h(){p b.4a.5T()==cW.4a.5T()},9G:0,3E:"1U"},g1:{6h:h(G,J){G=E.1R({22:"ad",1F:hd},G,J);if(!G.8f.1D()){G.4I.1P({19:"1G"},G);p}c I=G.8f.19(),L=G.4I.19(),N=L/I,K=G.4I.2T()-G.4I.19(),H=G.4I.v("6O"),M=G.4I.v("3b");fm=G.4I.v("6l");G.4I.v({19:0,3b:"3g",6l:0,6O:-K}).1G();G.8f.3r(":3g").1E(G.6u).5j().3r(":5J").1P({19:"1L"},{cF:h(O){c P=(I-O)*N;if(E.1X.3M||E.1X.6z){P=1o.gG(P)}G.4I.19(P)},1F:G.1F,22:G.22,6u:h(){if(!G.7x){G.4I.v("19","4v")}G.4I.v({6l:fm,6O:H,3b:M});G.6u()}})},nL:h(G){b.6h(G,{22:G.56?"bO":"ad",1F:G.56?aA:gK})},nK:h(G){b.6h(G,{22:"nH",1F:f4})}}})})(1Z);(h($){$.1R($.q,{1d:{3B:"@5q"}});c 7z="1d";h aJ(){b.hW=1c;b.8v=1e;b.bF=1c;b.76=[];b.8t=1c;b.7D=1c;b.eB="q-1d-1z";b.d2="q-1d-3K";b.d4="q-1d-6J";b.6K="q-1d-7m";b.eo="q-1d-23";b.dV="q-1d-8W";b.d1="q-1d-1Q";b.e0="q-1d-6H";b.aM="q-1d-5b-2t";b.al="q-1d-e1-c7-58";b.b1="q-1d-aR-58";b.cK=[];b.cK[""]={hV:"nn",ir:"ns 88 5b 1g",aO:"fz",hq:"fz no 7B",7H:"&#cS;np",gx:"87 88 hR 2n",7N:"&#cS;&#cS;",gw:"87 88 hR 26",7l:"nq&#cR;",gu:"87 88 4i 2n",7G:"&#cR;&#cR;",gt:"87 88 4i 26",7X:"nR",gp:"87 88 5b 2n",4p:["mp","m9","kK","kJ","hM","kL","kM","kO","kN","kI","kH","kC"],64:["kB","kD","kE","kG","hM","kF","kP","kQ","l0","kZ","l1","l2"],gE:"87 a hU 2n",go:"87 a hU 26",gr:"l4",9P:"l3 kY 88 26",4E:["kX","kS","kR","kT","kU","kW","kV"],4U:["kA","kz","ke","kd","kf","kg","ki"],bQ:["kh","kc","kb","k6","k5","k4","ma"],bU:"k7 9R as b5 aR 2t",7S:"hZ 9R, M d",7I:"mm/dd/8l",4m:0,3m:"hZ a 1g",5n:1c};b.4Z={8u:"4d",5B:"1G",cr:{},5m:1e,9W:"",7j:"...",9D:"",hK:1c,av:1i,dA:1c,ae:1c,7y:1c,7c:1c,ef:1c,8Q:1i,92:1i,aI:1c,gC:"-10:+10",9L:1i,9u:1c,7s:1c,9M:1c,bL:b.bH,5r:"+10",3s:1c,gq:b.7S,2S:1e,3d:1e,1F:"9p",9N:1e,ab:1e,7A:1e,g9:1e,a9:1e,ga:1,cl:0,5Z:1,5R:12,5t:1c,ag:" - ",a6:"",9y:"",hI:1i};$.1R(b.4Z,b.cK[""]);b.2L=$(\'<1z id="\'+b.eB+\'" 2J="5k: 6a;">\')}$.1R(aJ.54,{67:"k8",ek:h(){if(b.hW){ka.ek.1B("",1H)}},k9:h(29){9i(b.4Z,29||{});p b},gd:h(1j,29){c 9f=1e;1O(c b9 in b.4Z){c b8=1j.kj("1g:"+b9);if(b8){9f=9f||{};aF{9f[b9]=kk(b8)}aD(ht){9f[b9]=b8}}}c 2Z=1j.2Z.5T();c 3K=(2Z=="1z"||2Z=="48");if(!1j.id){1j.id="dp"+(++b.aw)}c k=b.dk($(1j),3K);k.29=$.1R({},29||{},9f||{});if(2Z=="1u"){b.hL(1j,k)}1k{if(3K){b.hy(1j,k)}}},dk:h(1j,3K){c id=1j[0].id.49(/([:\\[\\]\\.])/g,"\\\\\\\\$1");p{id:id,1u:1j,4C:0,4l:0,4y:0,2r:0,2x:0,3K:3K,2L:(!3K?b.2L:$(\'<1z 2R="\'+b.d2+\'">\'))}},hL:h(1j,k){c 1u=$(1j);if(1u.3Y(b.67)){p}c 9W=b.1n(k,"9W");c 5n=b.1n(k,"5n");if(9W){1u[5n?"cC":"b0"](\'<48 2R="\'+b.d4+\'">\'+9W+"")}c 8u=b.1n(k,"8u");if(8u=="4d"||8u=="6e"){1u.4d(b.9A)}if(8u=="4X"||8u=="6e"){c 7j=b.1n(k,"7j");c 9D=b.1n(k,"9D");c 7m=$(b.1n(k,"hK")?$("<9l/>").1t(b.6K).21({dT:9D,hx:7j,4s:7j}):$(\'<4X 5X="4X">\').1t(b.6K).2q(9D==""?7j:$("<9l/>").21({dT:9D,hx:7j,4s:7j})));1u[5n?"cC":"b0"](7m);7m.2p(h(){if($.1d.8t&&$.1d.9C==1j){$.1d.6t()}1k{$.1d.9A(1j)}p 1c})}1u.1t(b.67).7w(b.bo).aE(b.cp).2V("di.1d",h(1x,6k,1T){k.29[6k]=1T}).2V("dj.1d",h(1x,6k){p b.1n(k,6k)});$.1p(1j,7z,k)},hy:h(1j,k){c de=$(1j);if(de.3Y(b.67)){p}de.1t(b.67).6J(k.2L).2V("di.1d",h(1x,6k,1T){k.29[6k]=1T}).2V("dj.1d",h(1x,6k){p b.1n(k,6k)});$.1p(1j,7z,k);b.dC(k,b.bP(k));b.68(k);b.bu(k)},ku:h(1u,hw,7A,29,2H){c k=b.hz;if(!k){c id="dp"+(++b.aw);b.6p=$(\'<1u 5X="8N" id="\'+id+\'" 1D="1" 2J="1f: 2i; u: -it;"/>\');b.6p.7w(b.bo);$("1W").6J(b.6p);k=b.hz=b.dk(b.6p,1c);k.29={};$.1p(b.6p[0],7z,k)}9i(k.29,29||{});b.6p.82(hw);b.5i=(2H?(2H.1q?2H:[2H.3y,2H.3z]):1e);if(!b.5i){c cd=31.aL||1m.4f.c5||1m.1W.c5;c cg=31.7u||1m.4f.cc||1m.1W.cc;c 8y=1m.4f.2g||1m.1W.2g;c 8D=1m.4f.2b||1m.1W.2b;b.5i=[(cd/2)-3i+8y,(cg/2)-bS+8D]}b.6p.v("t",b.5i[0]+"2K").v("u",b.5i[1]+"2K");k.29.7A=7A;b.7D=1i;b.2L.1t(b.eo);b.9A(b.6p[0]);if($.9T){$.9T(b.2L)}$.1p(b.6p[0],7z,k);p b},kt:h(1j){c $1j=$(1j);if(!$1j.3Y(b.67)){p}c 2Z=1j.2Z.5T();$.4w(1j,7z);if(2Z=="1u"){$1j.7U("."+b.d4).2c().5j().7U("."+b.6K).2c().5j().1S(b.67).3t("4d",b.9A).3t("7w",b.bo).3t("aE",b.cp)}1k{if(2Z=="1z"||2Z=="48"){$1j.1S(b.67).ey()}}},kv:h(1j){c $1j=$(1j);if(!$1j.3Y(b.67)){p}c 2Z=1j.2Z.5T();if(2Z=="1u"){1j.1Q=1c;$1j.7U("4X."+b.6K).1E(h(){b.1Q=1c}).5j().7U("9l."+b.6K).v({2d:"1.0",2w:""})}1k{if(2Z=="1z"||2Z=="48"){$1j.bq("."+b.d1).2c()}}b.76=$.6T(b.76,h(1T){p(1T==1j?1e:1T)})},kw:h(1j){c $1j=$(1j);if(!$1j.3Y(b.67)){p}c 2Z=1j.2Z.5T();if(2Z=="1u"){1j.1Q=1i;$1j.7U("4X."+b.6K).1E(h(){b.1Q=1i}).5j().7U("9l."+b.6K).v({2d:"0.5",2w:"4o"})}1k{if(2Z=="1z"||2Z=="48"){c 3K=$1j.bq("."+b.d2);c 1b=3K.1b();c bj={t:0,u:0};3K.4z().1E(h(){if($(b).v("1f")=="1K"){bj=$(b).1b();p 1c}});$1j.hs(\'<1z 2R="\'+b.d1+\'" 2J="\'+($.1X.3M?"ak-9S: 72; ":"")+"1a: "+3K.1a()+"2K; 19: "+3K.19()+"2K; t: "+(1b.t-bj.t)+"2K; u: "+(1b.u-bj.u)+\'2K;">\')}}b.76=$.6T(b.76,h(1T){p(1T==1j?1e:1T)});b.76[b.76.1q]=1j},hF:h(1j){if(!1j){p 1c}1O(c i=0;i-1)}},9A:h(1u){1u=1u.1j||1u;if(1u.2Z.5T()!="1u"){1u=$("1u",1u.3X)[0]}if($.1d.hF(1u)||$.1d.9C==1u){p}c k=$.1d.4A(1u);c ab=$.1d.1n(k,"ab");9i(k.29,(ab?ab.1B(1u,[1u,k]):{}));$.1d.6t(1e,"");$.1d.9C=1u;$.1d.dO(k);if($.1d.7D){1u.1T=""}if(!$.1d.5i){$.1d.5i=$.1d.ct(1u);$.1d.5i[1]+=1u.4O}c 4L=1c;$(1u).4z().1E(h(){4L|=$(b).v("1f")=="5h";p!4L});if(4L&&$.1X.6z){$.1d.5i[0]-=1m.4f.2g;$.1d.5i[1]-=1m.4f.2b}c 1b={t:$.1d.5i[0],u:$.1d.5i[1]};$.1d.5i=1e;k.3V=1e;k.2L.v({1f:"2i",5k:"8p",u:"-kl"});$.1d.68(k);k.2L.1a($.1d.au(k)[1]*$(".q-1d",k.2L[0])[0].4P);1b=$.1d.hE(k,1b,4L);k.2L.v({1f:($.1d.7D&&$.9T?"5V":(4L?"5h":"2i")),5k:"6a",t:1b.t+"2K",u:1b.u+"2K"});if(!k.3K){c 5B=$.1d.1n(k,"5B")||"1G";c 1F=$.1d.1n(k,"1F");c 8i=h(){$.1d.8t=1i;if($.1X.3M&&1l($.1X.3B,10)<7){$("ay.q-1d-dW").v({1a:k.2L.1a()+4,19:k.2L.19()+4})}};if($.1r&&$.1r[5B]){k.2L.1G(5B,$.1d.1n(k,"cr"),1F,8i)}1k{k.2L[5B](1F,8i)}if(1F==""){8i()}if(k.1u[0].5X!="3g"){k.1u[0].4d()}$.1d.8v=k}},68:h(k){c cv={1a:k.2L.1a()+4,19:k.2L.19()+4};k.2L.ey().6J(b.ie(k)).4r("ay.q-1d-dW").v({1a:cv.1a,19:cv.19});c 4u=b.au(k);k.2L[(4u[0]!=1||4u[1]!=1?"2k":"2c")+"hD"]("q-1d-kn");k.2L[(b.1n(k,"5n")?"2k":"2c")+"hD"]("q-1d-ko");if(k.1u&&k.1u[0].5X!="3g"&&k==$.1d.8v){$(k.1u[0]).4d()}},hE:h(k,1b,4L){c 2H=k.1u?b.ct(k.1u[0]):1e;c cd=31.aL||(1m.4f?1m.4f.c5:1m.1W.c5);c cg=31.7u||(1m.4f?1m.4f.cc:1m.1W.cc);c 8y=1m.4f.2g||1m.1W.2g;c 8D=1m.4f.2b||1m.1W.2b;if(b.1n(k,"5n")||(1b.t+k.2L.1a()-8y)>cd){1b.t=1o.2h((4L?0:8y),2H[0]+(k.1u?k.1u.1a():0)-(4L?8y:0)-k.2L.1a()-(4L&&$.1X.6z?1m.4f.2g:0))}1k{1b.t-=(4L?8y:0)}if((1b.u+k.2L.19()-8D)>cg){1b.u=1o.2h((4L?0:8D),2H[1]-(4L?8D:0)-(b.7D?0:k.2L.19())-(4L&&$.1X.6z?1m.4f.2b:0))}1k{1b.u-=(4L?8D:0)}p 1b},ct:h(8m){71(8m&&(8m.5X=="3g"||8m.kq!=1)){8m=8m.i3}c 1f=$(8m).1b();p[1f.t,1f.u]},6t:h(1u,1F){c k=b.8v;if(!k||(1u&&k!=$.1p(1u,7z))){p}c 5t=b.1n(k,"5t");if(5t&&k.6Z){b.bJ("#"+k.id,b.8a(k,k.4g,k.4N,k.4x))}k.6Z=1c;if(b.8t){1F=(1F!=1e?1F:b.1n(k,"1F"));c 5B=b.1n(k,"5B");c 8i=h(){$.1d.eT(k)};if(1F!=""&&$.1r&&$.1r[5B]){k.2L.1L(5B,$.1d.1n(k,"cr"),1F,8i)}1k{k.2L[(1F==""?"1L":(5B=="k3"?"kp":(5B=="l5"?"l6":"1L")))](1F,8i)}if(1F==""){b.eT(k)}c a9=b.1n(k,"a9");if(a9){a9.1B((k.1u?k.1u[0]:1e),[(k.1u?k.1u.82():""),k])}b.8t=1c;b.9C=1e;k.29.8W=1e;if(b.7D){b.6p.v({1f:"2i",t:"0",u:"-it"});if($.9T){$.lO();$("1W").6J(b.2L)}}b.7D=1c}b.8v=1e},eT:h(k){k.2L.1S(b.eo).3t(".q-1d");$("."+b.dV,k.2L).2c()},g6:h(1x){if(!$.1d.8v){p}c $1j=$(1x.1j);if(($1j.4z("#"+$.1d.eB).1q==0)&&!$1j.3Y($.1d.67)&&!$1j.3Y($.1d.6K)&&$.1d.8t&&!($.1d.7D&&$.9T)){$.1d.6t(1e,"")}},4F:h(id,1b,5P){c 1j=$(id);c k=b.4A(1j[0]);b.cm(k,1b,5P);b.68(k)},dX:h(id){c 1j=$(id);c k=b.4A(1j[0]);if(b.1n(k,"ef")&&k.4g){k.4C=k.4g;k.2r=k.4l=k.4N;k.2x=k.4y=k.4x}1k{c 1g=1V 2a();k.4C=1g.30();k.2r=k.4l=1g.3l();k.2x=k.4y=1g.2G()}b.an(k);b.4F(1j)},eg:h(id,4G,5P){c 1j=$(id);c k=b.4A(1j[0]);k.c9=1c;k["1U"+(5P=="M"?"iq":"ip")]=k["lN"+(5P=="M"?"iq":"ip")]=1l(4G.l[4G.lP].1T,10);b.an(k);b.4F(1j)},eh:h(id){c 1j=$(id);c k=b.4A(1j[0]);if(k.1u&&k.c9&&!$.1X.3M){k.1u[0].4d()}k.c9=!k.c9},gs:h(id,2t){c 1j=$(id);c k=b.4A(1j[0]);k.29.4m=2t;b.68(k)},dZ:h(id,2n,26,4M){if($(4M).3Y(b.e0)){p}c 1j=$(id);c k=b.4A(1j[0]);c 5t=b.1n(k,"5t");if(5t){k.6Z=!k.6Z;if(k.6Z){$(".q-1d 4M",k.2L).1S(b.aM);$(4M).1t(b.aM)}}k.4C=k.4g=$("a",4M).2q();k.4l=k.4N=2n;k.4y=k.4x=26;if(k.6Z){k.5w=k.60=k.3I=1e}1k{if(5t){k.5w=k.4g;k.60=k.4N;k.3I=k.4x}}b.bJ(id,b.8a(k,k.4g,k.4N,k.4x));if(k.6Z){k.3V=b.3w(1V 2a(k.4x,k.4N,k.4g));b.68(k)}1k{if(5t){k.4C=k.4g=k.3V.30();k.4l=k.4N=k.3V.3l();k.4y=k.4x=k.3V.2G();k.3V=1e;if(k.3K){b.68(k)}}}},dR:h(id){c 1j=$(id);c k=b.4A(1j[0]);if(b.1n(k,"dA")){p}k.6Z=1c;k.5w=k.60=k.3I=k.3V=1e;b.bJ(1j,"")},bJ:h(id,5y){c 1j=$(id);c k=b.4A(1j[0]);5y=(5y!=1e?5y:b.8a(k));if(b.1n(k,"5t")&&5y){5y=(k.3V?b.8a(k,k.3V):5y)+b.1n(k,"ag")+5y}if(k.1u){k.1u.82(5y)}b.bu(k);c 7A=b.1n(k,"7A");if(7A){7A.1B((k.1u?k.1u[0]:1e),[5y,k])}1k{if(k.1u){k.1u.7m("7B")}}if(k.3K){b.68(k)}1k{if(!k.6Z){b.6t(1e,b.1n(k,"1F"));b.9C=k.1u[0];if(2P(k.1u[0])!="70"){k.1u[0].4d()}b.9C=1e}}},bu:h(k){c a6=b.1n(k,"a6");if(a6){c 9y=b.1n(k,"9y")||b.1n(k,"7I");c 1g=b.dB(k);5y=(g5(1g)?(!1g[0]&&!1g[1]?"":b.5O(9y,1g[0],b.5I(k))+b.1n(k,"ag")+b.5O(9y,1g[1]||1g[0],b.5I(k))):b.5O(9y,1g,b.5I(k)));$(a6).1E(h(){$(b).82(5y)})}},lQ:h(1g){c 2t=1g.9e();p[(2t>0&&2t<6),""]},bH:h(1g){c 62=1V 2a(1g.2G(),1g.3l(),1g.30());c 9J=1V 2a(62.2G(),1-1,4);c 4m=9J.9e()||7;9J.ax(9J.30()+1-4m);if(4m<4&&62<9J){62.ax(62.30()-3);p $.1d.bH(62)}1k{if(62>1V 2a(62.2G(),12-1,28)){4m=1V 2a(62.2G()+1,1-1,4).9e()||7;if(4m>4&&(62.9e()||7)<4m-3){p 1}}}p 1o.9Y(((62-9J)/lS)/7)+1},7S:h(1g,k){p $.1d.5O($.1d.1n(k,"7S"),1g,$.1d.5I(k))},dN:h(3A,1T,29){if(3A==1e||1T==1e){8q"dx 1H"}1T=(2P 1T=="70"?1T.dM():1T+"");if(1T==""){p 1e}c 5r=(29?29.5r:1e)||b.4Z.5r;c 4U=(29?29.4U:1e)||b.4Z.4U;c 4E=(29?29.4E:1e)||b.4Z.4E;c 64=(29?29.64:1e)||b.4Z.64;c 4p=(29?29.4p:1e)||b.4Z.4p;c 26=-1;c 2n=-1;c 2t=-1;c 7R=-1;c 5p=1c;c 5d=h(3v){c 4S=(3e+1<3A.1q&&3A.3O(3e+1)==3v);if(4S){3e++}p 4S};c 99=h(3v){5d(3v);c ew=(3v=="@"?14:(3v=="y"?4:(3v=="o"?3:2)));c 1D=ew;c 6P=0;71(1D>0&&5D<1T.1q&&1T.3O(5D)>="0"&&1T.3O(5D)<="9"){6P=6P*10+1l(1T.3O(5D++),10);1D--}if(1D==ew){8q"iw 8O at 1f "+5D}p 6P};c eO=h(3v,bx,bA){c 9U=(5d(3v)?bA:bx);c 1D=0;1O(c j=0;j<9U.1q;j++){1D=1o.2h(1D,9U[j].1q)}c 3R="";c im=5D;71(1D>0&&5D<1T.1q){3R+=1T.3O(5D++);1O(c i=0;i<9U.1q;i++){if(3R==9U[i]){p i+1}}1D--}8q"lR 3R at 1f "+im};c bl=h(){if(1T.3O(5D)!=3A.3O(3e)){8q"lM 5p at 1f "+5D}5D++};c 5D=0;1O(c 3e=0;3e<3A.1q;3e++){if(5p){if(3A.3O(3e)=="\'"&&!5d("\'")){5p=1c}1k{bl()}}1k{5z(3A.3O(3e)){1y"d":2t=99("d");1I;1y"D":eO("D",4U,4E);1I;1y"o":7R=99("o");1I;1y"m":2n=99("m");1I;1y"M":2n=eO("M",64,4p);1I;1y"y":26=99("y");1I;1y"@":c 1g=1V 2a(99("@"));26=1g.2G();2n=1g.3l()+1;2t=1g.30();1I;1y"\'":if(5d("\'")){bl()}1k{5p=1i}1I;4o:bl()}}}if(26==-1){26=1V 2a().2G()}1k{if(26<3i){26+=1V 2a().2G()-1V 2a().2G()%3i+(26<=5r?0:-3i)}}if(7R>-1){2n=1;2t=7R;do{c eN=b.8e(26,2n-1);if(2t<=eN){1I}2n++;2t-=eN}71(1i)}c 1g=b.3w(1V 2a(26,2n-1,2t));if(1g.2G()!=26||1g.3l()+1!=2n||1g.30()!=2t){8q"dx 1g"}p 1g},lL:"8l-mm-dd",lG:"D, dd M 8l",lF:"8l-mm-dd",lH:"D, d M y",lI:"9R, dd-M-y",lK:"D, d M y",lJ:"D, d M 8l",lT:"D, d M 8l",lU:"D, d M y",m4:"@",m3:"8l-mm-dd",5O:h(3A,1g,29){if(!1g){p""}c 4U=(29?29.4U:1e)||b.4Z.4U;c 4E=(29?29.4E:1e)||b.4Z.4E;c 64=(29?29.64:1e)||b.4Z.64;c 4p=(29?29.4p:1e)||b.4Z.4p;c 5d=h(3v){c 4S=(3e+1<3A.1q&&3A.3O(3e+1)==3v);if(4S){3e++}p 4S};c bg=h(3v,1T,i8){c 6P=""+1T;if(5d(3v)){71(6P.1q=0;m--){7R+=b.8e(1g.2G(),m)}5M+=bg("o",7R,3);1I;1y"m":5M+=bg("m",1g.3l()+1,2);1I;1y"M":5M+=dQ("M",1g.3l(),64,4p);1I;1y"y":5M+=(5d("y")?1g.2G():(1g.i5()%3i<10?"0":"")+1g.i5()%3i);1I;1y"@":5M+=1g.52();1I;1y"\'":if(5d("\'")){5M+="\'"}1k{5p=1i}1I;4o:5M+=3A.3O(3e)}}}}p 5M},i6:h(3A){c 6U="";c 5p=1c;1O(c 3e=0;3e<3A.1q;3e++){if(5p){if(3A.3O(3e)=="\'"&&!5d("\'")){5p=1c}1k{6U+=3A.3O(3e)}}1k{5z(3A.3O(3e)){1y"d":1y"m":1y"y":1y"@":6U+="m5";1I;1y"D":1y"M":p 1e;1y"\'":if(5d("\'")){6U+="\'"}1k{5p=1i}1I;4o:6U+=3A.3O(3e)}}}p 6U},1n:h(k,3R){p k.29[3R]!==2v?k.29[3R]:b.4Z[3R]},dO:h(k){c 7I=b.1n(k,"7I");c 7g=k.1u?k.1u.82().8A(b.1n(k,"ag")):1e;k.5w=k.60=k.3I=1e;c 1g=5m=b.bP(k);if(7g.1q>0){c 29=b.5I(k);if(7g.1q>1){1g=b.dN(7I,7g[1],29)||5m;k.5w=1g.30();k.60=1g.3l();k.3I=1g.2G()}aF{1g=b.dN(7I,7g[0],29)||5m}aD(1x){b.ek(1x);1g=5m}}k.4C=1g.30();k.2r=k.4l=1g.3l();k.2x=k.4y=1g.2G();k.4g=(7g[0]?1g.30():0);k.4N=(7g[0]?1g.3l():0);k.4x=(7g[0]?1g.2G():0);b.cm(k)},bP:h(k){c 1g=b.aU(b.1n(k,"5m"),1V 2a());c 2S=b.6V(k,"2y",1i);c 3d=b.6V(k,"2h");1g=(2S&&1g<2S?2S:1g);1g=(3d&&1g>3d?3d:1g);p 1g},aU:h(1g,5m){c ik=h(1b){c 1g=1V 2a();1g.ax(1g.30()+1b);p 1g};c io=h(1b,dv){c 1g=1V 2a();c 26=1g.2G();c 2n=1g.3l();c 2t=1g.30();c du=/([+-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g;c 4S=du.7K(1b);71(4S){5z(4S[2]||"d"){1y"d":1y"D":2t+=1l(4S[1],10);1I;1y"w":1y"W":2t+=1l(4S[1],10)*7;1I;1y"m":1y"M":2n+=1l(4S[1],10);2t=1o.2y(2t,dv(26,2n));1I;1y"y":1y"Y":26+=1l(4S[1],10);2t=1o.2y(2t,dv(26,2n));1I}4S=du.7K(1b)}p 1V 2a(26,2n,2t)};1g=(1g==1e?5m:(2P 1g=="4V"?io(1g,b.8e):(2P 1g=="8O"?(5H(1g)?5m:ik(1g)):1g)));1g=(1g&&1g.dM()=="dx 2a"?5m:1g);if(1g){1g.ig(0);1g.m6(0);1g.m8(0);1g.m7(0)}p b.3w(1g)},3w:h(1g){if(!1g){p 1e}1g.ig(1g.ih()>12?1g.ih()+2:0);p 1g},dC:h(k,1g,5W){c 7t=!(1g);c ii=k.4l;c ij=k.4y;1g=b.aU(1g,1V 2a());k.4C=k.4g=1g.30();k.2r=k.4l=k.4N=1g.3l();k.2x=k.4y=k.4x=1g.2G();if(b.1n(k,"5t")){if(5W){5W=b.aU(5W,1e);k.5w=5W.30();k.60=5W.3l();k.3I=5W.2G()}1k{k.5w=k.4g;k.60=k.4N;k.3I=k.4x}}if(ii!=k.4l||ij!=k.4y){b.an(k)}b.cm(k);if(k.1u){k.1u.82(7t?"":b.8a(k)+(!b.1n(k,"5t")?"":b.1n(k,"ag")+b.8a(k,k.5w,k.60,k.3I)))}},dB:h(k){c bC=(!k.4x||(k.1u&&k.1u.82()=="")?1e:b.3w(1V 2a(k.4x,k.4N,k.4g)));if(b.1n(k,"5t")){p[k.3V||bC,(!k.3I?k.3V||bC:b.3w(1V 2a(k.3I,k.60,k.5w)))]}1k{p bC}},ie:h(k){c 7M=1V 2a();7M=b.3w(1V 2a(7M.2G(),7M.3l(),7M.30()));c 3s=b.1n(k,"3s");c 3m=b.1n(k,"3m")||"&#ce;";c 5n=b.1n(k,"5n");c 7t=(b.1n(k,"dA")?"":\'<1z 2R="q-1d-7t">"+b.1n(k,"hV")+"");c dU=\'<1z 2R="q-1d-m2">\'+(5n?"":7t)+\'<1z 2R="q-1d-5S">"+b.1n(k,"aO")+""+(5n?7t:"")+"";c 8W=b.1n(k,"8W");c av=b.1n(k,"av");c ae=b.1n(k,"ae");c 7y=b.1n(k,"7y");c 7c=b.1n(k,"7c");c 4u=b.au(k);c cl=b.1n(k,"cl");c 5Z=b.1n(k,"5Z");c 5R=b.1n(k,"5R");c gz=(4u[0]!=1||4u[1]!=1);c bI=b.3w((!k.4g?1V 2a(m1,9,9):1V 2a(k.4x,k.4N,k.4g)));c 2S=b.6V(k,"2y",1i);c 3d=b.6V(k,"2h");c 2r=k.2r-cl;c 2x=k.2x;if(2r<0){2r+=12;2x--}if(3d){c ah=b.3w(1V 2a(3d.2G(),3d.3l()-4u[1]+1,3d.30()));ah=(2S&&ah<2S?2S:ah);71(b.3w(1V 2a(2x,2r,1))>ah){2r--;if(2r<0){2r=11;2x--}}}c 7H=b.1n(k,"7H");7H=(!7y?7H:b.5O(7H,b.3w(1V 2a(2x,2r-5Z,1)),b.5I(k)));c 7N=(7c?b.1n(k,"7N"):"");7N=(!7y?7N:b.5O(7N,b.3w(1V 2a(2x,2r-5R,1)),b.5I(k)));c 4Q=\'<1z 2R="q-1d-4Q">\'+(b.dD(k,-1,2x,2r)?(7c?""+7N+"":"")+""+7H+"":(ae?"":(7c?"<5A>"+7N+"":"")+"<5A>"+7H+""))+"";c 7l=b.1n(k,"7l");7l=(!7y?7l:b.5O(7l,b.3w(1V 2a(2x,2r+5Z,1)),b.5I(k)));c 7G=(7c?b.1n(k,"7G"):"");7G=(!7y?7G:b.5O(7G,b.3w(1V 2a(2x,2r+5R,1)),b.5I(k)));c 4i=\'<1z 2R="q-1d-4i">\'+(b.dD(k,+1,2x,2r)?""+7l+""+(7c?""+7G+"":""):(ae?"":"<5A>"+7l+""+(7c?"<5A>"+7G+"":"")))+"";c 7X=b.1n(k,"7X");c e5=(b.1n(k,"ef")&&k.4g?bI:7M);7X=(!7y?7X:b.5O(7X,e5,b.5I(k)));c 2q=(av&&!k.3K?dU:"")+\'<1z 2R="q-1d-lW">\'+(5n?4i:4Q)+(b.dw(k,e5)?\'<1z 2R="q-1d-5b">"+7X+"":"")+(5n?4Q:4i)+""+(8W?\'<1z 2R="\'+b.dV+\'"><48>\'+8W+"":"");c 4m=1l(b.1n(k,"4m"));4m=(5H(4m)?0:4m);c 9L=b.1n(k,"9L");c 4E=b.1n(k,"4E");c 4U=b.1n(k,"4U");c bQ=b.1n(k,"bQ");c 4p=b.1n(k,"4p");c 9N=b.1n(k,"9N");c 9u=b.1n(k,"9u");c 7s=b.1n(k,"7s");c 9M=b.1n(k,"9M");c bL=b.1n(k,"bL")||b.bH;c 9P=b.1n(k,"9P");c 6m=(3s?b.1n(k,"bU")||3m:"");c 7S=b.1n(k,"gq")||b.7S;c 5W=k.5w?b.3w(1V 2a(k.3I,k.60,k.5w)):bI;c 5m=b.bP(k);1O(c 7Q=0;7Q<4u[0];7Q++){1O(c 9d=0;9d<4u[1];9d++){c 80=b.3w(1V 2a(2x,2r,k.4C));2q+=\'<1z 2R="q-1d-lV-2n\'+(9d==0?" q-1d-1V-7Q":"")+\'">\'+b.gF(k,2r,2x,2S,3d,80,7Q>0||9d>0,3s,3m,4p)+\'\'+(9M?"<4M"+b.5u(3s,k.id,9P,3m)+">"+b.1n(k,"gr")+"":"");1O(c 7a=0;7a<7;7a++){c 2t=(7a+4m)%7;c bU=(6m.93("9R")>-1?6m.49(/9R/,4E[2t]):6m.49(/D/,4U[2t]));2q+="<4M"+((7a+4m+6)%7>=5?\' 2R="q-1d-aR-5j-c7"\':"")+">"+(!9L?"<48":"\'+bQ[2t]+(9L?"":"")+""}2q+="";c e4=b.8e(2x,2r);if(2x==k.4y&&2r==k.4l){k.4C=1o.2y(k.4C,e4)}c e3=(b.g7(2x,2r)-4m+7)%7;c g2=(gz?6:1o.gG((e3+e4)/7));c 3Z=b.3w(1V 2a(2x,2r,1-e3));1O(c e2=0;e2\'+(9M?\'<4M 2R="q-1d-aR-9d"\'+b.5u(3s,k.id,9P,3m)+">"+bL(3Z)+"":"");1O(c 7a=0;7a<7;7a++){c aN=(9N?9N.1B((k.1u?k.1u[0]:1e),[3Z]):[1i,""]);c 7n=(3Z.3l()!=2r);c 6H=7n||!aN[0]||(2S&&3Z<2S)||(3d&&3Z>3d);2q+=\'<4M 2R="q-1d-e1-c7\'+((7a+4m+6)%7>=5?" q-1d-aR-5j-c7":"")+(7n?" q-1d-m0-2n":"")+((3Z.52()==80.52()&&2r==k.4l&&k.bF)||(5m.52()==3Z.52()&&5m.52()==80.52())?" "+$.1d.al:"")+(6H?" "+b.e0:"")+(7n&&!7s?"":" "+aN[1]+(3Z.52()>=bI.52()&&3Z.52()<=5W.52()?" "+b.aM:"")+(3Z.52()==7M.52()?" q-1d-7M":""))+\'"\'+((!7n||7s)&&aN[2]?\' 4s="\'+aN[2]+\'"\':"")+(6H?(9u?" ee=\\"1Z(b).1v().1t(\'"+b.b1+"\');\\" ed=\\"1Z(b).1v().1S(\'"+b.b1+"\');\\"":""):" ee=\\"1Z(b).1t(\'"+b.al+"\')"+(9u?".1v().1t(\'"+b.b1+"\')":"")+";"+(!3s||(7n&&!7s)?"":"1Z(\'#q-1d-6m-"+k.id+"\').2q(\'"+(7S.1B((k.1u?k.1u[0]:1e),[3Z,k])||3m)+"\');")+\'" ed="1Z(b).1S(\\\'\'+b.al+"\')"+(9u?".1v().1S(\'"+b.b1+"\')":"")+";"+(!3s||(7n&&!7s)?"":"1Z(\'#q-1d-6m-"+k.id+"\').2q(\'"+3m+"\');")+\'" 5U="1Z.1d.dZ(\\\'#\'+k.id+"\',"+2r+","+2x+\', b);"\')+">"+(7n?(7s?3Z.30():"&#ce;"):(6H?3Z.30():""+3Z.30()+""))+"";3Z.ax(3Z.30()+1);3Z=b.3w(3Z)}2q+=""}2r++;if(2r>11){2r=0;2x++}2q+=""}}2q+=(3s?\'<1z 2J="7t: 6e;"><1z id="q-1d-6m-\'+k.id+\'" 2R="q-1d-6m">\'+3m+"":"")+(!av&&!k.3K?dU:"")+\'<1z 2J="7t: 6e;">\'+($.1X.3M&&1l($.1X.3B,10)<7&&!k.3K?\'\':"");k.bF=1c;p 2q},gF:h(k,2r,2x,2S,3d,80,aK,3s,3m,4p){2S=(k.3V&&2S&&80<2S?80:2S);c 8Q=b.1n(k,"8Q");c 92=b.1n(k,"92");c aI=b.1n(k,"aI");c 2q=\'<1z 2R="q-1d-7Z">\';c 83="";if(aK||!8Q){83+=4p[2r]}1k{c gA=(2S&&2S.2G()==2x);c gB=(3d&&3d.2G()==2x);83+=\'<4G 2R="q-1d-1V-2n" gD="1Z.1d.eg(\\\'#\'+k.id+"\', b, \'M\');\\" 5U=\\"1Z.1d.eh(\'#"+k.id+"\');\\""+b.5u(3s,k.id,b.1n(k,"gE"),3m)+">";1O(c 2n=0;2n<12;2n++){if((!gA||2n>=2S.3l())&&(!gB||2n<=3d.3l())){83+=\'<8j 1T="\'+2n+\'"\'+(2n==2r?\' 1U="1U"\':"")+">"+4p[2n]+""}}83+=""}if(!aI){2q+=83+(aK||8Q||92?"&#ce;":"")}if(aK||!92){2q+=2x}1k{c 7O=b.1n(k,"gC").8A(":");c 26=0;c 3I=0;if(7O.1q!=2){26=2x-10;3I=2x+10}1k{if(7O[0].3O(0)=="+"||7O[0].3O(0)=="-"){26=3I=1V 2a().2G();26+=1l(7O[0],10);3I+=1l(7O[1],10)}1k{26=1l(7O[0],10);3I=1l(7O[1],10)}}26=(2S?1o.2h(26,2S.2G()):26);3I=(3d?1o.2y(3I,3d.2G()):3I);2q+=\'<4G 2R="q-1d-1V-26" gD="1Z.1d.eg(\\\'#\'+k.id+"\', b, \'Y\');\\" 5U=\\"1Z.1d.eh(\'#"+k.id+"\');\\""+b.5u(3s,k.id,b.1n(k,"go"),3m)+">";1O(;26<=3I;26++){2q+=\'<8j 1T="\'+26+\'"\'+(26==2x?\' 1U="1U"\':"")+">"+26+""}2q+=""}if(aI){2q+=(aK||8Q||92?"&#ce;":"")+83}2q+="";p 2q},5u:h(3s,id,8N,3m){p(3s?" ee=\\"1Z(\'#q-1d-6m-"+id+"\').2q(\'"+(8N||3m)+"\');\\" ed=\\"1Z(\'#q-1d-6m-"+id+"\').2q(\'"+3m+"\');\\"":"")},cm:h(k,1b,5P){c 26=k.2x+(5P=="Y"?1b:0);c 2n=k.2r+(5P=="M"?1b:0);c 2t=1o.2y(k.4C,b.8e(26,2n))+(5P=="D"?1b:0);c 1g=b.3w(1V 2a(26,2n,2t));c 2S=b.6V(k,"2y",1i);c 3d=b.6V(k,"2h");1g=(2S&&1g<2S?2S:1g);1g=(3d&&1g>3d?3d:1g);k.4C=1g.30();k.2r=k.4l=1g.3l();k.2x=k.4y=1g.2G();if(5P=="M"||5P=="Y"){b.an(k)}},an:h(k){c dz=b.1n(k,"g9");if(dz){dz.1B((k.1u?k.1u[0]:1e),[k.4y,k.4l+1,k])}},au:h(k){c 4u=b.1n(k,"ga");p(4u==1e?[1,1]:(2P 4u=="8O"?[1,4u]:4u))},6V:h(k,gb,g8){c 1g=b.aU(b.1n(k,gb+"2a"),1e);p(!g8||!k.3V?1g:(!1g||k.3V>1g?k.3V:1g))},8e:h(26,2n){p 32-1V 2a(26,2n,32).30()},g7:h(26,2n){p 1V 2a(26,2n,1).9e()},dD:h(k,1b,hr,g4){c 4u=b.au(k);c 1g=b.3w(1V 2a(hr,g4+(1b<0?1b:4u[1]),1));if(1b<0){1g.ax(b.8e(1g.2G(),1g.3l()))}p b.dw(k,1g)},dw:h(k,1g){c 9F=(!k.3V?1e:b.3w(1V 2a(k.4y,k.4l,k.4C)));9F=(9F&&k.3V<9F?k.3V:9F);c 2S=9F||b.6V(k,"2y");c 3d=b.6V(k,"2h");p((!2S||1g>=2S)&&(!3d||1g<=3d))},5I:h(k){c 5r=b.1n(k,"5r");5r=(2P 5r!="4V"?5r:1V 2a().2G()%3i+1l(5r,10));p{5r:5r,4U:b.1n(k,"4U"),4E:b.1n(k,"4E"),64:b.1n(k,"64"),4p:b.1n(k,"4p")}},8a:h(k,2t,2n,26){if(!2t){k.4g=k.4C;k.4N=k.4l;k.4x=k.4y}c 1g=(2t?(2P 2t=="70"?2t:b.3w(1V 2a(26,2n,2t))):b.3w(1V 2a(k.4x,k.4N,k.4g)));p b.5O(b.1n(k,"7I"),1g,b.5I(k))}});h 9i(1j,9q){$.1R(1j,9q);1O(c 3R in 9q){if(9q[3R]==1e||9q[3R]==2v){1j[3R]=9q[3R]}}p 1j}h g5(a){p(a&&(($.1X.8H&&2P a=="70"&&a.1q)||(a.4t&&a.4t.dM().3v(/\\98\\(\\)/))))}$.fn.1d=h(l){if(!$.1d.dI){$(1m.1W).6J($.1d.2L).8k($.1d.g6);$.1d.dI=1i}c dG=98.54.gc.1Y(1H,1);if(2P l=="4V"&&(l=="lE"||l=="30")){p $.1d["8Y"+l+"aJ"].1B($.1d,[b[0]].5o(dG))}p b.1E(h(){2P l=="4V"?$.1d["8Y"+l+"aJ"].1B($.1d,[b].5o(dG)):$.1d.gd(b,l)})};$.1d=1V aJ();$.1d.dI=1c;$.1d.aw=1V 2a().52();$.1d.3B="@5q"})(1Z);(h(B){c A={eC:"2B.2j",4B:"4B.2j",eD:"3c.2j",6Q:"6Q.1s",6q:"6q.1s",6Y:"6Y.1s",6r:"6r.1s",eV:"2B.1s",2u:"4B.1s",eL:"3c.1s"};B.4q("q.23",{6g:h(){b.bp=b.18.21("4s");b.l.4s=b.l.4s||b.bp;c M=b,N=b.l,F=b.18.dK("4s").1t("q-23-9B").8X("<1z>").8X("<1z>"),I=(b.gh=F.1v()).1t("q-23-lD").v({1f:"1K",1a:"3i%",19:"3i%"}),E=(b.eF=B("<1z>")).1t("q-23-9K").8k(h(){M.aG()}).gk(I),J=B(\'\').1t("q-23-9K-5S").21("9b","4X").2W(E),G=(b.gf=B("<48/>")).8N(N.aO).2W(J),L=N.4s||"≫",D=B.q.23.hf(b.18),C=B("<48/>").1t("q-23-4s").21("id",D).2q(L).gk(E),K=(b.3u=I.1v()).2W(1m.1W).1L().1t("q-23").1t(N.lh).v({1f:"2i",1a:N.1a,19:N.19,3b:"3g",2M:N.2M}).21("6A",-1).v("ha",0).7w(h(O){(N.cw&&O.4D&&O.4D==B.q.4D.cA&&M.5S())}).21({9b:"23","9a-lg":D}).bs(h(){M.aG()}),H=(b.ge=B("<1z>")).1t("q-23-lj").v({1f:"2i",3F:0}).2W(K),J=B(".q-23-9K-5S",E).bm(h(){B(b).1t("q-23-9K-5S-bm")},h(){B(b).1S("q-23-9K-5S-bm")}).8k(h(O){O.gj()}).2p(h(){M.5S();p 1c});E.4r("*").2k(E).8n();(N.2j&&B.fn.2j&&b.eE());(N.1s&&B.fn.1s&&b.eA());b.eQ(N.eJ);b.aS=1c;(N.8o&&B.fn.8o&&K.8o());(N.gJ&&b.es())},3H:h(){(b.2U&&b.2U.3H());b.3u.1L();b.18.3t(".23").4w("23").1S("q-23-9B").1L().2W("1W");b.3u.2c();(b.bp&&b.18.21("4s",b.bp))},5S:h(){if(1c===b.43("lk",1e,{l:b.l})){p}(b.2U&&b.2U.3H());b.3u.1L(b.l.1L).3t("aE.q-23");b.43("5S",1e,{l:b.l});B.q.23.2U.2u();b.aS=1c},he:h(){p b.aS},aG:h(F){if((b.l.ap&&!F)||(!b.l.7b&&!b.l.ap)){p b.43("4d",1e,{l:b.l})}c E=b.l.2M,D=b.l;B(".q-23:5J").1E(h(){E=1o.2h(E,1l(B(b).v("z-3L"),10)||D.2M)});(b.2U&&b.2U.$el.v("z-3L",++E));c C={2b:b.18.21("2b"),2g:b.18.21("2g")};b.3u.v("z-3L",++E);b.18.21(C);b.43("4d",1e,{l:b.l})},es:h(){if(b.aS){p}b.2U=b.l.ap?1V B.q.23.2U(b):1e;(b.3u.4i().1q&&b.3u.2W("1W"));b.dr(b.l.1f);b.3u.1G(b.l.1G);(b.l.bR&&b.ci());b.aG(1i);(b.l.ap&&b.3u.2V("aE.q-23",h(E){if(E.4D!=B.q.4D.gi){p}c D=B(":et",b),F=D.3r(":b5")[0],C=D.3r(":gV")[0];if(E.1j==C&&!E.9t){8C(h(){F.4d()},1)}1k{if(E.1j==F&&E.9t){8C(h(){C.4d()},1)}}}));b.3u.4r(":et:b5").4d();b.43("es",1e,{l:b.l});b.aS=1i},eQ:h(F){c E=b,C=1c,D=b.ge;D.ey().1L();B.1E(F,h(){p!(C=1i)});if(C){D.1G();B.1E(F,h(G,H){B(\'<4X 5X="4X">\').8N(G).2p(h(){H.1B(E.18[0],1H)}).2W(D)})}},eE:h(){c C=b,D=b.l;b.3u.2j({65:".q-23-9B",1h:D.lm,1N:".q-23-9K",2B:h(){C.aG();(D.eC&&D.eC.1B(C.18[0],1H))},4B:h(){(D.4B&&D.4B.1B(C.18[0],1H))},3c:h(){(D.eD&&D.eD.1B(C.18[0],1H));B.q.23.2U.2u()}})},eA:h(F){F=(F===2v?b.l.1s:F);c C=b,E=b.l,D=2P F=="4V"?F:"n,e,s,w,4k,4h,ne,nw";b.3u.1s({65:".q-23-9B",1h:E.ll,6Y:E.6Y,6Q:E.6Q,6r:E.6r,6q:E.6q,2B:h(){(E.eV&&E.eV.1B(C.18[0],1H))},2u:h(){(E.bR&&C.ci.1B(C));(E.2u&&E.2u.1B(C.18[0],1H))},3x:D,3c:h(){(E.bR&&C.ci.1B(C));(E.eL&&E.eL.1B(C.18[0],1H));B.q.23.2U.2u()}})},dr:h(H){c D=B(31),E=B(1m),F=E.2b(),C=E.2g(),G=F;if(B.8w(H,["8E","u","2Y","3F","t"])>=0){H=[H=="2Y"||H=="t"?H:"8E",H=="u"||H=="3F"?H:"aV"]}if(H.4t!=98){H=["8E","aV"]}if(H[0].4t==7Y){C+=H[0]}1k{5z(H[0]){1y"t":C+=0;1I;1y"2Y":C+=D.1a()-b.3u.3f();1I;4o:1y"8E":C+=(D.1a()-b.3u.3f())/2}}if(H[1].4t==7Y){F+=H[1]}1k{5z(H[1]){1y"u":F+=0;1I;1y"3F":F+=(B.1X.6z?31.7u:D.19())-b.3u.2T();1I;4o:1y"aV":F+=((B.1X.6z?31.7u:D.19())-b.3u.2T())/2}}F=1o.2h(F,G);b.3u.v({u:F,t:C})},5v:h(D,E){(A[D]&&b.3u.1p(A[D],E));5z(D){1y"eJ":b.eQ(E);1I;1y"aO":b.gf.8N(E);1I;1y"2j":(E?b.eE():b.3u.2j("3H"));1I;1y"19":b.3u.19(E);1I;1y"1f":b.dr(E);1I;1y"1s":c C=b.3u,F=b.3u.is(":1p(1s)");(F&&!E&&C.1s("3H"));(F&&2P E=="4V"&&C.1s("8j","3x",E));(F||b.eA(E));1I;1y"4s":B(".q-23-4s",b.eF).2q(E||"≫");1I;1y"1a":b.3u.1a(E);1I}B.4q.54.5v.1B(b,1H)},ci:h(){c D=b.gh,G=b.eF,E=b.18,F=(1l(E.v("4n-u"),10)||0)+(1l(E.v("4n-3F"),10)||0),C=(1l(E.v("4n-t"),10)||0)+(1l(E.v("4n-2Y"),10)||0);E.19(D.19()-G.2T()-F);E.1a(D.1a()-C)}});B.1R(B.q.23,{3B:"@5q",5e:{gJ:1i,bR:1i,8o:1c,eJ:{},cw:1i,aO:"5S",2j:1i,19:gK,6q:3i,6r:bS,ap:1c,2U:{},1f:"8E",1s:1i,7b:1i,1a:hd,2M:aA},aP:"he",aw:0,hf:h(C){p"q-23-4s-"+(C.21("id")||++b.aw)},2U:h(C){b.$el=B.q.23.2U.hc(C)}});B.1R(B.q.23.2U,{8r:[],hb:B.6T("4d,8k,bs,7w,aE,2p".8A(","),h(C){p C+".23-2U"}).5F(" "),hc:h(D){if(b.8r.1q===0){8C(h(){B("a, :1u").2V(B.q.23.2U.hb,h(){c F=1c;c H=B(b).4z(".q-23");if(H.1q){c E=B(".q-23-2U");if(E.1q){c G=1l(E.v("z-3L"),10);E.1E(h(){G=1o.2h(G,1l(B(b).v("z-3L"),10))});F=1l(H.v("z-3L"),10)>G}1k{F=1i}}p F})},1);B(1m).2V("7w.23-2U",h(E){(D.l.cw&&E.4D&&E.4D==B.q.4D.cA&&D.5S())});B(31).2V("2u.23-2U",B.q.23.2U.2u)}c C=B("<1z>").2W(1m.1W).1t("q-23-2U").v(B.1R({lf:0,4n:0,bn:0,1f:"2i",u:0,t:0,1a:b.1a(),19:b.19()},D.l.2U));(D.l.8o&&B.fn.8o&&C.8o());b.8r.4c(C);p C},3H:h(C){b.8r.cn(B.8w(b.8r,C),1);if(b.8r.1q===0){B("a, :1u").2k([1m,31]).3t(".23-2U")}C.2c()},19:h(){if(B.1X.3M&&B.1X.3B<7){c D=1o.2h(1m.4f.7v,1m.1W.7v);c C=1o.2h(1m.4f.4O,1m.1W.4O);if(D").1t("q-59-1N").2W(B.18);if(b.id){D.21("id",b.id)}p D[0]})}c C=h(D){b.18=A(D);b.18.1p("57",b);b.l=B.l;b.18.2V("8k",h(){if(B.2s){b.8K(B.2s)}B.7W(b,1i)});b.9k()};A.1R(C.54,A.q.57,{8B:h(){p 1i},7d:h(D){p B.hh.1Y(B,D,b.18[0])},66:h(D){p B.df.1Y(B,D,b.18[0])},6M:h(D){p B.hn.1Y(B,D,b.18[0])},7m:h(D){b.d5(D)}});A(b.1N).1E(h(){1V C(b)}).8X(\'\').1v().2V("2p",h(){p 1c}).2V("4d",h(D){B.7W(b.db)}).2V("8K",h(D){B.ho(b.db)}).2V("7w",h(D){if(!B.l.le){p B.bc(D.4D,b.db)}});b.18.2V("8k.59",h(D){if(A(D.1j).is(".q-59-1N")){p}B.hp.1B(B,[D]);B.2s.1p("57").7m(D);B.be=B.be+1});A.1E(b.l.3x||[],h(D,E){B.aQ(E.2B,D,1i)});if(!5H(b.l.hg)){b.aQ(b.l.hg,0,1i)}b.7L=A(b.1N[0]);if(b.1N.1q==2&&b.l.bX){b.cH()}},3H:h(){b.18.1S("q-59 q-59-1Q").4w("59").3t(".59");if(b.1N&&b.1N.1q){b.1N.dc("a");b.1N.1E(h(){c B=A(b).1p("57");B&&B.8L()})}b.dl&&b.dl.2c()},hh:h(B,C){c D=b.l;if(D.1Q){p 1c}b.7k={1a:b.18.3f(),19:b.18.2T()};if(!b.2s){b.7W(b.7L,1i)}b.1b=b.18.1b();b.dn=b.2s.1b();b.az={u:B.3z-b.dn.u,t:B.3y-b.dn.t};b.be=b.1T();b.2e("2B",B);b.df(B,C);p 1i},df:h(C,E){c F=b.l;c B={u:C.3z-b.1b.u-b.az.u,t:C.3y-b.1b.t-b.az.t};if(!b.2s){b.7W(b.7L,1i)}B.t=b.ao(B.t,"x");B.u=b.ao(B.u,"y");if(F.3N.x){c D=b.6n(B.t,"x");D=b.3k(D/F.3N.x)*F.3N.x;B.t=b.5s(D,"x")}if(F.3N.y){c D=b.6n(B.u,"y");D=b.3k(D/F.3N.y)*F.3N.y;B.u=b.5s(D,"y")}B.t=b.aq(B.t,"x");B.u=b.aq(B.u,"y");if(F.2F!="44"){b.2s.v({t:B.t})}if(F.2F!="bK"){b.2s.v({u:B.u})}b.2s.1p("57").bZ={x:b.3k(b.6n(B.t,"x"))||0,y:b.3k(b.6n(B.u,"y"))||0};if(b.6f){b.bW()}b.2e("6h",C);p 1c},hn:h(B){b.2e("3c",B);if(b.be!=b.1T()){b.2e("7B",B)}b.7W(b.2s,1i);p 1c},3k:h(B){p b.l.6E?1l(B,10):9I(B)},5v:h(B,C){A.4q.54.5v.1B(b,1H);if(/2y|2h|8s/.1J(B)){b.dh()}if(B=="bX"){C?b.1N.1q==2&&b.cH():b.hm()}},dh:h(){c B=b.18[0],C=b.l;b.7k={1a:b.18.3f(),19:b.18.2T()};A.1R(C,{2F:C.2F||(B.4P").1t("q-59-bX").v({1f:"2i"}).2W(b.18);b.bW()},hm:h(){b.6f.2c();b.6f=1e},bW:h(){c C=b.l.2F=="44"?"u":"t";c B=b.l.2F=="44"?"19":"1a";b.6f.v(C,(b.3k(A(b.1N[0]).v(C))||0)+b.89(0,b.l.2F=="44"?"y":"x")/2);b.6f.v(B,(b.3k(A(b.1N[1]).v(C))||0)-(b.3k(A(b.1N[0]).v(C))||0))},h5:h(){p b.6f?b.6n(b.3k(b.6f.v(b.l.2F=="44"?"19":"1a")),b.l.2F=="44"?"y":"x"):1e},hl:h(){p b.1N.3L(b.2s[0])},1T:h(D,B){if(b.1N.1q==1){b.2s=b.1N}if(!B){B=b.l.2F=="44"?"y":"x"}c C=A(D!=2v&&D!==1e?b.1N[D]||D:b.2s);if(C.1p("57").bZ){p b.3k(C.1p("57").bZ[B])}1k{p b.3k(((b.3k(C.v(B=="x"?"t":"u"))/(b.7k[B=="x"?"1a":"19"]-b.89(D,B)))*b.l.7q[B])+b.l.2y[B])}},6n:h(C,B){p b.l.2y[B]+(C/(b.7k[B=="x"?"1a":"19"]-b.89(1e,B)))*b.l.7q[B]},5s:h(C,B){p((C-b.l.2y[B])/b.l.7q[B])*(b.7k[B=="x"?"1a":"19"]-b.89(1e,B))},aq:h(D,B){if(b.6f){if(b.2s[0]==b.1N[0]&&D>=b.5s(b.1T(1),B)){D=b.5s(b.1T(1,B)-b.co(B),B)}if(b.2s[0]==b.1N[1]&&D<=b.5s(b.1T(0),B)){D=b.5s(b.1T(0,B)+b.co(B),B)}}if(b.l.3x){c C=b.l.3x[b.hl()];if(Db.5s(C.2h,B)){D=b.5s(C.2h,B)}}}p D},ao:h(C,B){if(C>=b.7k[B=="x"?"1a":"19"]-b.89(1e,B)){C=b.7k[B=="x"?"1a":"19"]-b.89(1e,B)}if(C<=0){C=0}p C},89:h(C,B){p A(C!=2v&&C!==1e?b.1N[C]:b.2s)[0]["1b"+(B=="x"?"l9":"l8")]},co:h(B){p b.l.3N[B]||1},hk:h(B){p 10},aQ:h(F,E,G){c H=b.l;b.7k={1a:b.18.3f(),19:b.18.2T()};if(E==2v&&!b.2s&&b.1N.1q!=1){p 1c}if(E==2v&&!b.2s){E=0}if(E!=2v){b.2s=b.7L=A(b.1N[E]||E)}if(F.x!==2v&&F.y!==2v){c B=F.x,I=F.y}1k{c B=F,I=F}if(B!==2v&&B.4t!=7Y){c D=/^\\-\\=/.1J(B),C=/^\\+\\=/.1J(B);if(D||C){B=b.1T(1e,"x")+b.3k(B.49(D?"=":"+=",""))}1k{B=5H(b.3k(B))?2v:b.3k(B)}}if(I!==2v&&I.4t!=7Y){c D=/^\\-\\=/.1J(I),C=/^\\+\\=/.1J(I);if(D||C){I=b.1T(1e,"y")+b.3k(I.49(D?"=":"+=",""))}1k{I=5H(b.3k(I))?2v:b.3k(I)}}if(H.2F!="44"&&B!==2v){if(H.3N.x){B=b.3k(B/H.3N.x)*H.3N.x}B=b.5s(B,"x");B=b.ao(B,"x");B=b.aq(B,"x");H.1P?b.2s.3c().1P({t:B},(1o.3S(1l(b.2s.v("t"),10)-B))*(!5H(1l(H.1P,10))?H.1P:5)):b.2s.v({t:B})}if(H.2F!="bK"&&I!==2v){if(H.3N.y){I=b.3k(I/H.3N.y)*H.3N.y}I=b.5s(I,"y");I=b.ao(I,"y");I=b.aq(I,"y");H.1P?b.2s.3c().1P({u:I},(1o.3S(1l(b.2s.v("u"),10)-I))*(!5H(1l(H.1P,10))?H.1P:5)):b.2s.v({u:I})}if(b.6f){b.bW()}b.2s.1p("57").bZ={x:b.3k(b.6n(B,"x"))||0,y:b.3k(b.6n(I,"y"))||0};if(!G){b.2e("2B",1e);b.2e("6h",1e);b.2e("3c",1e);b.2e("7B",1e)}},2e:h(C,B){A.q.2O.1Y(b,C,[B,b.q()]);b.18.3J(C=="6h"?C:"6h"+C,[B,b.q()],b.l[C])},73:{},q:h(B){p{l:b.l,1N:b.2s,1T:b.l.2F!="6e"||!b.l.2F?b.3k(b.1T(1e,b.l.2F=="44"?"y":"x")):{x:b.3k(b.1T(1e,"x")),y:b.3k(b.1T(1e,"y"))},bX:b.h5()}}});A.1R(A.q.59,{aP:"1T",3B:"@5q",5e:{1P:1c,5f:1,1N:".q-59-1N",6E:1i}})})(1Z);(h(A){A.4q("q.1w",{6g:h(){b.ar(1i)},3H:h(){c B=b.l;b.18.3t(".1w").1S(B.en).4w("1w");b.$1w.1E(h(){c C=A.1p(b,"4a.1w");if(C){b.4a=C}c D=A(b).3t(".1w");A.1E(["4a","5K","7C"],h(E,F){D.4w(F+".1w")})});b.$3W.2k(b.$3G).1E(h(){if(A.1p(b,"3H.1w")){A(b).2c()}1k{A(b).1S([B.3E,B.8J,B.8c,B.aj,B.6F].5F(" "))}});if(B.61){b.am(1e,B.61)}},5v:h(B,C){if((/^1U/).1J(B)){b.4G(C)}1k{b.l[B]=C;b.ar()}},1q:h(){p b.$1w.1q},cq:h(B){p B.4s&&B.4s.49(/\\s/g,"8Y").49(/[^A-l7-la-9\\-8Y:\\.]/g,"")||b.l.h1+A.1p(B)},br:h(B){p B.49(/:/g,"\\\\:")},am:h(){c B=b.61||(b.61="q-1w-"+A.1p(b.18[0]));p A.61.1B(1e,[B].5o(A.gS(1H)))},ar:h(N){b.$3W=A("li:lb(a[4a])",b.18);b.$1w=b.$3W.6T(h(){p A("a",b)[0]});b.$3G=A([]);c O=b,C=b.l;b.$1w.1E(h(Q,P){if(P.7F&&P.7F.49("#","")){O.$3G=O.$3G.2k(O.br(P.7F))}1k{if(A(P).21("4a")!="#"){A.1p(P,"4a.1w",P.4a);A.1p(P,"5K.1w",P.4a);c S=O.cq(P);P.4a="#"+S;c R=A("#"+S);if(!R.1q){R=A(C.dg).21("id",S).1t(C.aj).ld(O.$3G[Q-1]||O.18);R.1p("3H.1w",1i)}O.$3G=O.$3G.2k(R)}1k{C.1Q.4c(Q+1)}}});if(N){b.18.1t(C.en);b.$3G.1t(C.aj);if(C.1U===2v){if(cW.7F){b.$1w.1E(h(Q,P){if(P.7F==cW.7F){C.1U=Q;p 1c}})}1k{if(C.61){c I=1l(O.am(),10);if(I&&O.$1w[I]){C.1U=I}}1k{if(O.$3W.3r("."+C.3E).1q){C.1U=O.$3W.3L(O.$3W.3r("."+C.3E)[0])}}}}C.1U=C.1U===1e||C.1U!==2v?C.1U:0;C.1Q=A.lc(C.1Q.5o(A.6T(b.$3W.3r("."+C.8c),h(Q,P){p O.$3W.3L(Q)}))).7i();if(A.8w(C.1U,C.1Q)!=-1){C.1Q.cn(A.8w(C.1U,C.1Q),1)}b.$3G.1t(C.6F);b.$3W.1S(C.3E);if(C.1U!==1e){b.$3G.eq(C.1U).1S(C.6F);c E=[C.3E];if(C.97){E.4c(C.8J)}b.$3W.eq(C.1U).1t(E.5F(" "));c J=h(){O.43("1G",1e,O.q(O.$1w[C.1U],O.$3G[C.1U]))};if(A.1p(b.$1w[C.1U],"5K.1w")){b.5K(C.1U,J)}1k{J()}}A(31).2V("ln",h(){O.$1w.3t(".1w");O.$3W=O.$1w=O.$3G=1e})}1k{C.1U=b.$3W.3L(b.$3W.3r("."+C.3E)[0])}if(C.61){b.am(C.1U,C.61)}1O(c G=0,M;M=b.$3W[G];G++){A(M)[A.8w(G,C.1Q)!=-1&&!A(M).3Y(C.3E)?"1t":"1S"](C.8c)}if(C.7C===1c){b.$1w.4w("7C.1w")}c B,H;if(C.fx){if(C.fx.4t==98){B=C.fx[0];H=C.fx[1]}1k{B=H=C.fx}}h D(P,Q){P.v({5k:""});if(A.1X.3M&&Q.2d){P[0].2J.gL("3r")}}c K=H?h(P,Q){Q.1P(H,H.1F||"9p",h(){Q.1S(C.6F);D(Q,H);O.43("1G",1e,O.q(P,Q[0]))})}:h(P,Q){Q.1S(C.6F);O.43("1G",1e,O.q(P,Q[0]))};c L=B?h(Q,P,R){P.1P(B,B.1F||"9p",h(){P.1t(C.6F);D(P,B);if(R){K(Q,R,P)}})}:h(Q,P,R){P.1t(C.6F);if(R){K(Q,R)}};h F(R,T,P,S){c Q=[C.3E];if(C.97){Q.4c(C.8J)}T.1t(Q.5F(" ")).7U().1S(Q.5F(" "));L(R,P,S)}b.$1w.3t(".1w").2V(C.1x+".1w",h(){c S=A(b).4z("li:eq(0)"),P=O.$3G.3r(":5J"),R=A(O.br(b.7F));if((S.3Y(C.3E)&&!C.97)||S.3Y(C.8c)||A(b).3Y(C.9V)||O.43("4G",1e,O.q(b,R[0]))===1c){b.8K();p 1c}C.1U=O.$1w.3L(b);if(C.97){if(S.3Y(C.3E)){O.l.1U=1e;S.1S([C.3E,C.8J].5F(" "));O.$3G.3c();L(b,P);b.8K();p 1c}1k{if(!P.1q){O.$3G.3c();c Q=b;O.5K(O.$1w.3L(b),h(){S.1t([C.3E,C.8J].5F(" "));K(Q,R)});b.8K();p 1c}}}if(C.61){O.am(C.1U,C.61)}O.$3G.3c();if(R.1q){c Q=b;O.5K(O.$1w.3L(b),P.1q?h(){F(Q,S,P,R)}:h(){S.1t(C.3E);K(Q,R)})}1k{8q"1Z lo ly: lx lz lA."}if(A.1X.3M){b.8K()}p 1c});if(C.1x!="2p"){b.$1w.2V("2p.1w",h(){p 1c})}},2k:h(E,D,C){if(C==2v){C=b.$1w.1q}c G=b.l;c I=A(G.gW.49(/#\\{4a\\}/g,E).49(/#\\{5A\\}/g,D));I.1p("3H.1w",1i);c H=E.93("#")==0?E.49("#",""):b.cq(A("a:b5-3q",I)[0]);c F=A("#"+H);if(!F.1q){F=A(G.dg).21("id",H).1t(G.6F).1p("3H.1w",1i)}F.1t(G.aj);if(C>=b.$3W.1q){I.2W(b.18);F.2W(b.18[0].3X)}1k{I.bM(b.$3W[C]);F.bM(b.$3G[C])}G.1Q=A.6T(G.1Q,h(K,J){p K>=C?++K:K});b.ar();if(b.$1w.1q==1){I.1t(G.3E);F.1S(G.6F);c B=A.1p(b.$1w[0],"5K.1w");if(B){b.5K(C,B)}}b.43("2k",1e,b.q(b.$1w[C],b.$3G[C]))},2c:h(B){c D=b.l,E=b.$3W.eq(B).2c(),C=b.$3G.eq(B).2c();if(E.3Y(D.3E)&&b.$1w.1q>1){b.4G(B+(B+1=B?--G:G});b.ar();b.43("2c",1e,b.q(E.4r("a")[0],C[0]))},eR:h(B){c C=b.l;if(A.8w(B,C.1Q)==-1){p}c D=b.$3W.eq(B).1S(C.8c);if(A.1X.8H){D.v("5k","3K-8p");8C(h(){D.v("5k","8p")},0)}C.1Q=A.gU(C.1Q,h(F,E){p F!=B});b.43("eR",1e,b.q(b.$1w[B],b.$3G[B]))},eH:h(C){c B=b,D=b.l;if(C!=D.1U){b.$3W.eq(C).1t(D.8c);D.1Q.4c(C);D.1Q.7i();b.43("eH",1e,b.q(b.$1w[C],b.$3G[C]))}},4G:h(B){if(2P B=="4V"){B=b.$1w.3L(b.$1w.3r("[4a$="+B+"]")[0])}b.$1w.eq(B).7m(b.l.1x+".1w")},5K:h(G,K){c L=b,D=b.l,E=b.$1w.eq(G),J=E[0],H=K==2v||K===1c,B=E.1p("5K.1w");K=K||h(){};if(!B||!H&&A.1p(J,"7C.1w")){K();p}c M=h(N){c O=A(N),P=O.4r("*:gV");p P.1q&&P.is(":7r(9l)")&&P||O};c C=h(){L.$1w.3r("."+D.9V).1S(D.9V).1E(h(){if(D.bT){M(b).1v().2q(M(b).1p("5A.1w"))}});L.b4=1e};if(D.bT){c I=M(J).2q();M(J).lC("").4r("em").1p("5A.1w",I).2q(D.bT)}c F=A.1R({},D.e6,{h3:B,h2:h(P,N){A(L.br(J.7F)).2q(P);C();if(D.7C){A.1p(J,"7C.1w",1i)}L.43("5K",1e,L.q(L.$1w[G],L.$3G[G]));aF{D.e6.h2(P,N)}aD(O){}K()}});if(b.b4){b.b4.lB();C()}E.1t(D.9V);L.b4=A.lw(F)},h3:h(C,B){b.$1w.eq(C).4w("7C.1w").1p("5K.1w",B)},q:h(C,B){p{l:b.l,h4:C,h0:B,3L:b.$1w.3L(C)}}});A.1R(A.q.1w,{3B:"@5q",aP:"1q",5e:{e6:1e,7C:1c,61:1e,97:1c,8J:"q-1w-97",1Q:[],8c:"q-1w-1Q",1x:"2p",fx:1e,6F:"q-1w-1L",h1:"q-1w-",9V:"q-1w-lv",en:"q-1w-lq",aj:"q-1w-h0",dg:"<1z>",3E:"q-1w-1U",bT:"lp&#lr;",gW:\'
        12. <48>#{5A}
        13. \'}});A.1R(A.q.1w.54,{cN:1e,ls:h(C,F){F=F||1c;c B=b,E=b.l.1U;h G(){B.cN=lu(h(){E=++E35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5(E){E.2v("g.8",{2o:5(){6 H=2.7;3(H.2B){6 K=2.f.18("a").s(H.1P);3(K.15){3(K.s(H.v).15){H.b=K}x{H.b=K.l().l().10();K.W("2K")}}}H.4=2.f.18(H.v);H.b=C(H.4,H.b);3(E.17.1I){2.f.18("a").h("2N","1")}3(!2.f.2P("g-8")){2.f.W("g-8");E(\'<16 1m="g-8-1C">\').2O(H.4);E(\'<16 1m="g-8-1B">\').2C(H.4);H.4.W("g-8-v")}6 J;3(H.1F){J=2.f.l().e();H.4.14(5(){J-=E(2).1k()});6 I=0;H.4.k().14(5(){I=1f.1r(I,E(2).2G()-E(2).e())}).e(J-I)}x{3(H.o){J=0;H.4.k().14(5(){J=1f.1r(J,E(2).1k())}).e(J)}}2.f.c("1b","2I");6 G=2;H.4.c("1b","1Y").1G("1S",5(L){9 G.1t(L)}).k().c("1b","2d");H.4.1h(H.b||"").c("11-13","i").c("n","-1").k().1l();3(!H.b.15){H.4.1g(0).c("n","0")}x{H.b.c("11-13","t").c("n","0").l().Y().W(H.u)}3(!E.17.27){H.4.18("a").c("n","-1")}3(H.1d){2.f.1G((H.1d)+".8",F)}},20:5(){2.7.4.l().Y().1z(2.7.u);2.7.4.10(".g-8-1C").1E();2.7.4.1U(".g-8-1B").1E();2.7.4.k().h("2e","");3(2.7.1F||2.7.o){2.7.4.k().h("e","")}E.2a(2.f[0],"8");2.f.1z("g-8").2b(".8")},1t:5(J){3(2.7.1A||J.29||J.28){9}6 K=E.g.1v;6 I=2.7.4.15;6 G=2.7.4.1j(J.p);6 H=i;2j(J.1v){y K.2f:y K.26:H=2.7.4[(G+1)%I];1w;y K.2k:y K.25:H=2.7.4[(G-1+I)%I];1w;y K.1W:y K.1T:9 F.Z(2.f[0],{p:J.p})}3(H){E(J.p).c("n","-1");E(H).c("n","0");H.1u();9 i}9 t},1V:5(G){F.Z(2.f[0],{p:C(2.7.4,G)[0]})}});5 B(H,G){9 5(){9 H.23(G,22)}}5 D(I){3(!E.m(2,"8")){9}6 G=E.m(2,"8");6 H=G.7;H.w=I?0:--H.w;3(H.w){9}3(H.21){H.d.1Z(H.q).h({e:"",19:""})}G.1y("2i",1x,H.m)}5 A(G,N,K,L,O){6 Q=E.m(2,"8").7;Q.d=G;Q.q=N;Q.m=K;6 H=B(D,2);E.m(2,"8").1y("2H",1x,Q.m);Q.w=N.12()===0?G.12():N.12();3(Q.X){6 J={};3(!Q.r&&L){J={d:E([]),q:N,U:H,1a:O,o:Q.o}}x{J={d:G,q:N,U:H,1a:O,o:Q.o}}3(!Q.S){Q.S=Q.X}3(!Q.V){Q.V=Q.j}Q.X=E.1D(Q.S)?Q.S(J):Q.S;Q.j=E.1D(Q.V)?Q.V(J):Q.V;6 P=E.g.8.1Q,I=Q.j,M=Q.X;3(!P[M]){P[M]=5(R){2.T(R,{z:M,j:I||1n})}}P[M](J)}x{3(!Q.r&&L){G.2J()}x{N.1l();G.1i()}H(t)}N.10().c("11-13","i").c("n","-1");G.10().c("11-13","t").c("n","0").1u()}5 F(L){6 J=E.m(2,"8").7;3(J.1A){9 i}3(!L.p&&!J.r){J.b.l().Y().1s(J.u);6 I=J.b.k(),M={7:J,1q:E([]),1H:J.b,1p:E([]),1o:I},G=(J.b=E([]));A.Z(2,G,I,M);9 i}6 K=E(L.p);K=E(K.2q(J.v)[0]||K);6 H=K[0]==J.b[0];3(J.w||(J.r&&H)){9 i}3(!K.2r(J.v)){9}J.b.l().Y().1s(J.u);3(!H){K.l().Y().W(J.u)}6 G=K.k(),I=J.b.k(),M={7:J,1q:H&&!J.r?E([]):K,1H:J.b,1p:H&&!J.r?E([]):G,1o:I},N=J.4.1j(J.b[0])>J.4.1j(K[0]);J.b=H?E([]):K;A.Z(2,G,I,M,H,N);9 i}5 C(H,G){9 G?2w G=="2x"?H.s(":1g("+G+")"):H.1h(H.1h(G)):G===i?E([]):H.s(":1g(0)")}E.1L(E.g.8,{2y:"@2s",2n:{o:t,r:t,X:"T",1d:"2m",v:"a",1P:5(){9 2.1K.1J()==2p.1K.1J()},w:0,u:"2A"},1Q:{T:5(G,J){G=E.1L({z:"1N",j:2L},G,J);3(!G.q.12()){G.d.1O({e:"1i"},G);9}6 I=G.q.e(),L=G.d.e(),N=L/I,K=G.d.1k()-G.d.e(),H=G.d.h("1c"),M=G.d.h("19");1R=G.d.h("1e");G.d.h({e:0,19:"1M",1e:0,1c:-K}).1i();G.q.s(":1M").14(G.U).2E().s(":2F").1O({e:"1l"},{2l:5(O){6 P=(I-O)*N;3(E.17.1I||E.17.2c){P=1f.2g(P)}G.d.e(P)},j:G.j,z:G.z,U:5(){3(!G.o){G.d.h("e","2h")}G.d.h({1e:1R,1c:H,19:M});G.U()}})},24:5(G){2.T(G,{z:G.1a?"1X":"1N",j:G.1a?2D:2M})},2t:5(G){2.T(G,{z:"2z",j:1n})}}})})(2u)',62,176,'||this|if|headers|function|var|options|accordion|return||active|attr|toShow|height|element|ui|css|false|duration|next|parent|data|tabIndex|autoHeight|target|toHide|alwaysOpen|filter|true|selectedClass|header|running|else|case|easing|||||||||||||||||||proxied|slide|complete|proxiedDuration|addClass|animated|andSelf|call|prev|aria|size|expanded|each|length|span|browser|find|overflow|down|role|marginBottom|event|marginTop|Math|eq|not|show|index|outerHeight|hide|class|700|oldContent|newContent|newHeader|max|toggleClass|_keydown|focus|keyCode|break|null|_trigger|removeClass|disabled|right|left|isFunction|remove|fillSpace|bind|oldHeader|msie|toLowerCase|href|extend|hidden|swing|animate|navigationFilter|animations|tmargin|keydown|ENTER|children|activate|SPACE|easeOutBounce|tab|add|destroy|clearStyle|arguments|apply|bounceslide|UP|DOWN|safari|ctrlKey|altKey|removeData|unbind|opera|tabpanel|display|RIGHT|ceil|auto|change|switch|LEFT|step|click|defaults|_init|location|parents|is|VERSION|easeslide|jQuery|widget|typeof|number|version|easeinout|selected|navigation|appendTo|1000|end|visible|innerHeight|changestart|tablist|toggle|current|300|200|zoom|insertBefore|hasClass'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/ui.core.packed.js b/sites/all/libraries/jquery.ui/ui/packed/ui.core.packed.js new file mode 100644 index 0000000..c36bbd0 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/ui.core.packed.js @@ -0,0 +1,9 @@ +/* + * jQuery UI 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4(C){7 I=C.w.1d,D=C.h.2t&&(2l(C.h.1D)<1.9);C.e={1D:"@2o",2j:{1f:4(K,L,N){7 M=C.e[K].t;1O(7 J 3t N){M.Z[J]=M.Z[J]||[];M.Z[J].3d([L,N[J]])}},X:4(J,L,K){7 N=J.Z[L];6(!N){5}1O(7 M=0;M\').2g(J).d({S:"1i",3a:"-26",1R:"-26",31:"2V"}).2U("1Y");C.e.U[J]=!!((!(/1h|2O/).c(K.d("2N"))||(/^[1-9]/).c(K.d("2L"))||(/^[1-9]/).c(K.d("2P"))||!(/1X/).c(K.d("2Q"))||!(/2T|2S\\(0, 0, 0, 0\\)/).c(K.d("2R"))));3c{C("1Y").1g(0).3q(K.1g(0))}3p(L){}5 C.e.U[J]},3o:4(M,K){6(C(M).d("n")=="19"){5 b}7 J=(K&&K=="1R")?"2K":"3r",L=b;6(M[J]>0){5 k}M[J]=1;L=(M[J]>0);M[J]=0;5 L},1k:4(K,J,L){5(K>J)&&(K<(J+L))},3s:4(O,K,N,M,J,L){5 C.e.1k(O,N,J)&&C.e.1k(K,M,L)},3v:{3u:8,3n:20,3m:3g,3f:17,3e:46,3h:40,3i:35,3l:13,3k:27,3j:36,3w:45,2H:37,2q:2n,2m:2k,2J:2D,2C:2r,2F:2G,2I:2B,2A:34,2u:33,2s:2w,2y:39,2x:16,2z:32,2v:9,2E:38}};6(D){7 F=C.o,E=C.w.2i,H="2p://2M.3L.4e/4g/4k/1j",A=/^4m-/,B=/^23:/;C.o=4(K,J,L){7 M=L!==1m;5(J=="4p"?(M?F.X(2,K,J,"23:"+L):(F.p(2,12)||"").18(B,"")):(A.c(J)?(M?K.4n(H,J.18(A,"1j:"),L):F.X(2,K,J.18(A,"1j:"))):F.p(2,12)))};C.w.2i=4(J){5(A.c(J)?2.11(4(){2.4q(H,J.18(A,""))}):E.X(2,J))}}C.w.1b({1d:4(){C("*",2).1f(2).11(4(){C(2).29("1d")});5 I.p(2,12)},4l:4(){5 2.o("v","4d").d("1W","").1c("1Q.e")},4h:4(){5 2.o("v","1J").d("1W","1X").l("1Q.e",4(){5 b})},4o:4(){7 J;6((C.h.10&&(/(4i|1G)/).c(2.d("S")))||(/1i/).c(2.d("S"))){J=2.15().1A(4(){5(/(1G|1i|21)/).c(C.m(2,"S",1))&&(/(1h|2f)/).c(C.m(2,"n",1)+C.m(2,"n-y",1)+C.m(2,"n-x",1))}).28(0)}4j{J=2.15().1A(4(){5(/(1h|2f)/).c(C.m(2,"n",1)+C.m(2,"n-y",1)+C.m(2,"n-x",1))}).28(0)}5(/21/).c(2.d("S"))||!J.T?C(1u):J}});C.1b(C.4f[":"],{r:4(K,L,J){5 C.r(K,J[3])},3x:4(L,M,K){7 N=L.4b.3K();4 J(O){5!(C(O).3J(":19")||C(O).15(":19").T)}5(L.3I>=0&&(("a"==N&&L.4c)||(/3M|3O|3N|22/.c(N)&&"19"!=L.2h&&!L.q))&&J(L))}});4 G(M,N,O,L){4 K(Q){7 P=C[M][N][Q]||[];5(V P=="z"?P.1l(/,?\\s+/):P)}7 J=K("3H");6(L.T==1&&V L[0]=="z"){J=J.3G(K("1K"))}5(C.3A(O,J)!=-1)}C.Y=4(K,J){7 L=K.1l(".")[0];K=K.1l(".")[1];C.w[K]=4(P){7 N=(V P=="z"),O=3z.t.3y.X(12,1);6(N&&P.3B(0,1)=="3C"){5 2}6(N&&G(L,K,P,O)){7 M=C.r(2[0],K);5(M?M[P].p(M,O):1m)}5 2.11(4(){7 Q=C.r(2,K);(!Q&&!N&&C.r(2,K,3F C[L][K](2,P)));(Q&&N&&C.3E(Q[P])&&Q[P].p(Q,O))})};C[L]=C[L]||{};C[L][K]=4(O,N){7 M=2;2.j=K;2.1o=C[L][K].3D||K;2.2a=L+"-"+K;2.g=C.1b({},C.Y.14,C[L][K].14,C.1N&&C.1N.1g(O)[K],N);2.f=C(O).l("3P."+K,4(Q,P,R){5 M.u(P,R)}).l("3Q."+K,4(Q,P){5 M.1p(P)}).l("1d",4(){5 M.1L()});2.1M()};C[L][K].t=C.1b({},C.Y.t,J);C[L][K].1K="1V"};C.Y.t={1M:4(){},1L:4(){2.f.44(2.j)},1V:4(L,M){7 K=L,J=2;6(V L=="z"){6(M===1m){5 2.1p(L)}K={};K[L]=M}C.11(K,4(N,O){J.u(N,O)})},1p:4(J){5 2.g[J]},u:4(J,K){2.g[J]=K;6(J=="q"){2.f[K?"2g":"43"](2.2a+"-q")}},42:4(){2.u("q",b)},47:4(){2.u("q",k)},48:4(K,L,M){7 J=(K==2.1o?K:2.1o+K);L=L||C.4a.49({2h:J,1n:2.f[0]});5 2.f.29(J,[L,M],2.g[K])}};C.Y.14={q:b};C.e.2b={41:4(){7 J=2;2.f.l("3Z."+2.j,4(K){5 J.1U(K)}).l("3T."+2.j,4(K){6(J.1q){J.1q=b;5 b}});6(C.h.10){2.1I=2.f.o("v");2.f.o("v","1J")}2.3S=b},3R:4(){2.f.1c("."+2.j);(C.h.10&&2.f.o("v",2.1I))},1U:4(L){(2.i&&2.W(L));2.1e=L;7 K=2,M=(L.3U==1),J=(V 2.g.1x=="z"?C(L.1n).15().1f(L.1n).1A(2.g.1x).T:b);6(!M||J||!2.1F(L)){5 k}2.1a=!2.g.1s;6(!2.1a){2.3V=3Y(4(){K.1a=k},2.g.1s)}6(2.1r(L)&&2.1w(L)){2.i=(2.1z(L)!==b);6(!2.i){L.1B();5 k}}2.1t=4(N){5 K.2c(N)};2.1C=4(N){5 K.W(N)};C(1u).l("24."+2.j,2.1t).l("2d."+2.j,2.1C);6(!C.h.1Z){L.1B()}5 k},2c:4(J){6(C.h.10&&!J.22){5 2.W(J)}6(2.i){2.1y(J);5 J.1B()}6(2.1r(J)&&2.1w(J)){2.i=(2.1z(2.1e,J)!==b);(2.i?2.1y(J):2.W(J))}5!2.i},W:4(J){C(1u).1c("24."+2.j,2.1t).1c("2d."+2.j,2.1C);6(2.i){2.i=b;2.1q=k;2.1H(J)}5 b},1r:4(J){5(1v.3X(1v.1T(2.1e.1P-J.1P),1v.1T(2.1e.1S-J.1S))>=2.g.2e)},1w:4(J){5 2.1a},1z:4(J){},1y:4(J){},1H:4(J){},1F:4(J){5 k}};C.e.2b.14={1x:3W,2e:1,1s:0}})(4r)',62,276,'||this||function|return|if|var||||false|test|css|ui|element|options|browser|_mouseStarted|widgetName|true|bind|curCSS|overflow|attr|apply|disabled|data||prototype|_setData|unselectable|fn|||string|||||||||||||||||||position|length|cssCache|typeof|_mouseUp|call|widget|plugins|msie|each|arguments||defaults|parents|||replace|hidden|mouseDelayMet|extend|unbind|remove|_mouseDownEvent|add|get|auto|absolute|aaa|isOverAxis|split|undefined|target|widgetEventPrefix|_getData|_preventClickEvent|_mouseDistanceMet|delay|_mouseMoveDelegate|document|Math|_mouseDelayMet|cancel|_mouseDrag|_mouseStart|filter|preventDefault|_mouseUpDelegate|version|contains|_mouseCapture|relative|_mouseStop|_mouseUnselectable|on|getterSetter|destroy|_init|metadata|for|pageX|selectstart|left|pageY|abs|_mouseDown|option|MozUserSelect|none|body|safari||fixed|button|wairole|mousemove|compareDocumentPosition|5000px||eq|triggerHandler|widgetBaseClass|mouse|_mouseMove|mouseup|distance|scroll|addClass|type|removeAttr|plugin|110|parseFloat|NUMPAD_DECIMAL|107|VERSION|http|NUMPAD_ADD|108|PERIOD|mozilla|PAGE_UP|TAB|190|SHIFT|RIGHT|SPACE|PAGE_DOWN|109|NUMPAD_ENTER|111|UP|NUMPAD_MULTIPLY|106|LEFT|NUMPAD_SUBTRACT|NUMPAD_DIVIDE|scrollLeft|height|www|cursor|default|width|backgroundImage|backgroundColor|rgba|transparent|appendTo|block|parentNode|while|522|div|class|display|||||||||top|gen|try|push|DELETE|CONTROL|188|DOWN|END|HOME|ESCAPE|ENTER|COMMA|CAPS_LOCK|hasScroll|catch|removeChild|scrollTop|isOver|in|BACKSPACE|keyCode|INSERT|tabbable|slice|Array|inArray|substring|_|eventPrefix|isFunction|new|concat|getter|tabIndex|is|toLowerCase|w3|input|textarea|select|setData|getData|_mouseDestroy|started|click|which|_mouseDelayTimer|null|max|setTimeout|mousedown||_mouseInit|enable|removeClass|removeData|||disable|_trigger|fix|event|nodeName|href|off|org|expr|2005|disableSelection|static|else|07|enableSelection|aria|setAttributeNS|scrollParent|role|removeAttributeNS|jQuery'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/ui.datepicker.packed.js b/sites/all/libraries/jquery.ui/ui/packed/ui.datepicker.packed.js new file mode 100644 index 0000000..0276aa5 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/ui.datepicker.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Datepicker 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Datepicker + * + * Depends: + * ui.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(n($){$.4y($.v,{e:{4S:"@7V"}});c 2W="e";n 3Y(){b.7Y=E;b.3i=r;b.4M=E;b.2s=[];b.3l=E;b.2R=E;b.5C="v-e-I";b.5m="v-e-1e";b.5s="v-e-3v";b.2C="v-e-4d";b.5B="v-e-9m";b.5W="v-e-3C";b.5l="v-e-4f";b.5S="v-e-4q";b.4m="v-e-4B-G";b.4w="v-e-5R-5h-7G";b.4s="v-e-4h-7G";b.5v=[];b.5v[""]={7F:"9t",7H:"9u 3g 4B f",7M:"7J",7N:"7J 9w 7v",2N:"u;9h",7E:"3e 3g 6F F",2O:"u;u;",7L:"3e 3g 6F z",2U:"9Et;",7D:"3e 3g 3D F",2X:"t;t;",7x:"3e 3g 3D z",3n:"a8",7P:"3e 3g 4B F",1n:["a5","a4","a2","a9","79","aa","ae","ad","9Z","9J","9F","9H"],2g:["9I","9O","9P","9V","79","9W","9X","aj","8g","8j","8h","8z"],6O:"3e a 6J F",6w:"3e a 6J z",7Z:"8y",4v:"ac 89 3g z",1C:["8p","8l","8i","8o","8d","86","8c"],1E:["8W","8M","8N","8I","8J","8O","8P"],51:["8U","8V","8S","8Q","8H","8G","8w"],50:"8x 42 8v 8u 4h G",3d:"82 42, M d",2Y:"53/3B/3j",1q:0,X:"82 a f",1R:E};b.1F={3k:"2K",20:"5z",5L:{},1J:r,3W:"",2S:"...",3R:"",7t:E,4p:1d,5X:E,45:E,2J:E,2u:E,60:E,3M:1d,3N:1d,4t:E,6s:"-10:+10",3Z:1d,3w:E,2L:E,4u:E,5g:b.57,1P:"+10",16:E,7O:b.3d,R:r,T:r,1j:"8s",4x:r,4b:r,2I:r,7r:r,4o:r,7o:1,4E:0,23:1,2e:12,1K:E,49:" - ",4r:"",3G:"",70:1d};$.4y(b.1F,b.5v[""]);b.Q=$(\'\')}$.4y(3Y.7j,{29:"8E",6p:n(){h(b.7Y){8F.6p.2B("",68)}},8D:n(A){3P(b.1F,A||{});q b},7Q:n(l,A){c 3V=r;1p(c 4R 6R b.1F){c 4Q=l.8C("f:"+4R);h(4Q){3V=3V||{};6d{3V[4R]=8B(4Q)}6m(75){3V[4R]=4Q}}}c 1b=l.1b.4c();c 1e=(1b=="I"||1b=="2o");h(!l.u){l.u="7f"+(++b.6a)}c 8=b.5x($(l),1e);8.A=$.4y({},A||{},3V||{});h(1b=="p"){b.6I(l,8)}O{h(1e){b.6y(l,8)}}},5x:n(l,1e){c u=l[0].u.5V(/([:\\[\\]\\.])/g,"\\\\\\\\$1");q{u:u,p:l,1x:0,1o:0,1s:0,J:0,N:0,1e:1e,Q:(!1e?b.Q:$(\'\'))}},6I:n(l,8){c p=$(l);h(p.2M(b.29)){q}c 3W=b.k(8,"3W");c 1R=b.k(8,"1R");h(3W){p[1R?"6v":"6r"](\'<2o 15="\'+b.5s+\'">\'+3W+"")}c 3k=b.k(8,"3k");h(3k=="2K"||3k=="58"){p.2K(b.3H)}h(3k=="3y"||3k=="58"){c 2S=b.k(8,"2S");c 3R=b.k(8,"3R");c 4d=$(b.k(8,"7t")?$("<4X/>").2z(b.2C).6S({63:3R,6E:2S,4z:2S}):$(\'<3y 4k="3y">\').2z(b.2C).V(3R==""?2S:$("<4X/>").6S({63:3R,6E:2S,4z:2S})));p[1R?"6v":"6r"](4d);4d.8R(n(){h($.e.3l&&$.e.3E==l){$.e.2j()}O{$.e.3H(l)}q E})}p.2z(b.29).5r(b.4V).6Z(b.5o).4T("6N.e",n(t,2E,H){8.A[2E]=H}).4T("7g.e",n(t,2E){q b.k(8,2E)});$.31(l,2W,8)},6y:n(l,8){c 5w=$(l);h(5w.2M(b.29)){q}5w.2z(b.29).3v(8.Q).4T("6N.e",n(t,2E,H){8.A[2E]=H}).4T("7g.e",n(t,2E){q b.k(8,2E)});$.31(l,2W,8);b.6k(8,b.54(8));b.22(8);b.4A(8)},8r:n(p,7q,2I,A,2w){c 8=b.7k;h(!8){c u="7f"+(++b.6a);b.2k=$(\'

          \');b.2k.5r(b.4V);$("2h").3v(b.2k);8=b.7k=b.5x(b.2k,E);8.A={};$.31(b.2k[0],2W,8)}3P(8.A,A||{});b.2k.3c(7q);b.1L=(2w?(2w.1i?2w:[2w.8K,2w.8L]):r);h(!b.1L){c 4K=4F.6C||18.1D.4I||18.2h.4I;c 4N=4F.6D||18.1D.4J||18.2h.4J;c 3o=18.1D.3F||18.2h.3F;c 3b=18.1D.3J||18.2h.3J;b.1L=[(4K/2)-3r+3o,(4N/2)-8k+3b]}b.2k.2c("1N",b.1L[0]+"2G").2c("1w",b.1L[1]+"2G");8.A.2I=2I;b.2R=1d;b.Q.2z(b.5B);b.3H(b.2k[0]);h($.46){$.46(b.Q)}$.31(b.2k[0],2W,8);q b},88:n(l){c $l=$(l);h(!$l.2M(b.29)){q}c 1b=l.1b.4c();$.8a(l,2W);h(1b=="p"){$l.3U("."+b.5s).3x().3z().3U("."+b.2C).3x().3z().3h(b.29).52("2K",b.3H).52("5r",b.4V).52("6Z",b.5o)}O{h(1b=="I"||1b=="2o"){$l.3h(b.29).6U()}}},85:n(l){c $l=$(l);h(!$l.2M(b.29)){q}c 1b=l.1b.4c();h(1b=="p"){l.4f=E;$l.3U("3y."+b.2C).3T(n(){b.4f=E}).3z().3U("4X."+b.2C).2c({72:"1.0",73:""})}O{h(1b=="I"||1b=="2o"){$l.78("."+b.5l).3x()}}b.2s=$.76(b.2s,n(H){q(H==l?r:H)})},8n:n(l){c $l=$(l);h(!$l.2M(b.29)){q}c 1b=l.1b.4c();h(1b=="p"){l.4f=1d;$l.3U("3y."+b.2C).3T(n(){b.4f=1d}).3z().3U("4X."+b.2C).2c({72:"0.5",73:"48"})}O{h(1b=="I"||1b=="2o"){c 1e=$l.78("."+b.5m);c K=1e.K();c 4W={1N:0,1w:0};1e.5A().3T(n(){h($(b).2c("1Z")=="84"){4W=$(b).K();q E}});$l.8f(\'\')}}b.2s=$.76(b.2s,n(H){q(H==l?r:H)});b.2s[b.2s.1i]=l},7p:n(l){h(!l){q E}1p(c i=0;i-1)}},3H:n(p){p=p.l||p;h(p.1b.4c()!="p"){p=$("p",p.8X)[0]}h($.e.7p(p)||$.e.3E==p){q}c 8=$.e.1t(p);c 4b=$.e.k(8,"4b");3P(8.A,(4b?4b.2B(p,[p,8]):{}));$.e.2j(r,"");$.e.3E=p;$.e.5H(8);h($.e.2R){p.H=""}h(!$.e.1L){$.e.1L=$.e.5J(p);$.e.1L[1]+=p.ab}c 1z=E;$(p).5A().3T(n(){1z|=$(b).2c("1Z")=="7d";q!1z});h(1z&&$.2l.5k){$.e.1L[0]-=18.1D.3F;$.e.1L[1]-=18.1D.3J}c K={1N:$.e.1L[0],1w:$.e.1L[1]};$.e.1L=r;8.1k=r;8.Q.2c({1Z:"59",5y:"af",1w:"-ai"});$.e.22(8);8.Q.1S($.e.47(8)[1]*$(".v-e",8.Q[0])[0].ah);K=$.e.6A(8,K,1z);8.Q.2c({1Z:($.e.2R&&$.46?"ag":(1z?"7d":"59")),5y:"7h",1N:K.1N+"2G",1w:K.1w+"2G"});h(!8.1e){c 20=$.e.k(8,"20")||"5z";c 1j=$.e.k(8,"1j");c 3p=n(){$.e.3l=1d;h($.2l.4Z&&1G($.2l.4S,10)<7){$("4L.v-e-64").2c({1S:8.Q.1S()+4,2i:8.Q.2i()+4})}};h($.5d&&$.5d[20]){8.Q.5z(20,$.e.k(8,"5L"),1j,3p)}O{8.Q[20](1j,3p)}h(1j==""){3p()}h(8.p[0].4k!="5K"){8.p[0].2K()}$.e.3i=8}},22:n(8){c 5I={1S:8.Q.1S()+4,2i:8.Q.2i()+4};8.Q.6U().3v(b.7u(8)).a3("4L.v-e-64").2c({1S:5I.1S,2i:5I.2i});c 1u=b.47(8);8.Q[(1u[0]!=1||1u[1]!=1?"6x":"3x")+"6z"]("v-e-a1");8.Q[(b.k(8,"1R")?"6x":"3x")+"6z"]("v-e-a0");h(8.p&&8.p[0].4k!="5K"&&8==$.e.3i){$(8.p[0]).2K()}},6A:n(8,K,1z){c 2w=8.p?b.5J(8.p[0]):r;c 4K=4F.6C||(18.1D?18.1D.4I:18.2h.4I);c 4N=4F.6D||(18.1D?18.1D.4J:18.2h.4J);c 3o=18.1D.3F||18.2h.3F;c 3b=18.1D.3J||18.2h.3J;h(b.k(8,"1R")||(K.1N+8.Q.1S()-3o)>4K){K.1N=2f.2H((1z?0:3o),2w[0]+(8.p?8.p.1S():0)-(1z?3o:0)-8.Q.1S()-(1z&&$.2l.5k?18.1D.3F:0))}O{K.1N-=(1z?3o:0)}h((K.1w+8.Q.2i()-3b)>4N){K.1w=2f.2H((1z?0:3b),2w[1]-(1z?3b:0)-(b.2R?0:8.Q.2i())-(1z&&$.2l.5k?18.1D.3J:0))}O{K.1w-=(1z?3b:0)}q K},5J:n(3a){30(3a&&(3a.4k=="5K"||3a.9D!=1)){3a=3a.9c}c 1Z=$(3a).K();q[1Z.1N,1Z.1w]},2j:n(p,1j){c 8=b.3i;h(!8||(p&&8!=$.31(p,2W))){q}c 1K=b.k(8,"1K");h(1K&&8.2q){b.4Y("#"+8.u,b.3u(8,8.1l,8.1A,8.1v))}8.2q=E;h(b.3l){1j=(1j!=r?1j:b.k(8,"1j"));c 20=b.k(8,"20");c 3p=n(){$.e.5F(8)};h(1j!=""&&$.5d&&$.5d[20]){8.Q.5G(20,$.e.k(8,"5L"),1j,3p)}O{8.Q[(1j==""?"5G":(20=="9b"?"9a":(20=="99"?"9d":"5G")))](1j,3p)}h(1j==""){b.5F(8)}c 4o=b.k(8,"4o");h(4o){4o.2B((8.p?8.p[0]:r),[(8.p?8.p.3c():""),8])}b.3l=E;b.3E=r;8.A.3C=r;h(b.2R){b.2k.2c({1Z:"59",1N:"0",1w:"-7T"});h($.46){$.97();$("2h").3v(b.Q)}}b.2R=E}b.3i=r},5F:n(8){8.Q.3h(b.5B).52(".v-e");$("."+b.5W,8.Q).3x()},7l:n(t){h(!$.e.3i){q}c $l=$(t.l);h(($l.5A("#"+$.e.5C).1i==0)&&!$l.2M($.e.29)&&!$l.2M($.e.2C)&&$.e.3l&&!($.e.2R&&$.46)){$.e.2j(r,"")}},1B:n(u,K,25){c l=$(u);c 8=b.1t(l[0]);b.4P(8,K,25);b.22(8)},61:n(u){c l=$(u);c 8=b.1t(l[0]);h(b.k(8,"60")&&8.1l){8.1x=8.1l;8.J=8.1o=8.1A;8.N=8.1s=8.1v}O{c f=x B();8.1x=f.S();8.J=8.1o=f.Z();8.N=8.1s=f.P()}b.4a(8);b.1B(l)},6f:n(u,3s,25){c l=$(u);c 8=b.1t(l[0]);8.56=E;8["4e"+(25=="M"?"7C":"7z")]=8["93"+(25=="M"?"7C":"7z")]=1G(3s.2v[3s.96].H,10);b.4a(8);b.1B(l)},6e:n(u){c l=$(u);c 8=b.1t(l[0]);h(8.p&&8.56&&!$.2l.4Z){8.p[0].2K()}8.56=!8.56},7X:n(u,G){c l=$(u);c 8=b.1t(l[0]);8.A.1q=G;b.22(8)},5U:n(u,F,z,1y){h($(1y).2M(b.5S)){q}c l=$(u);c 8=b.1t(l[0]);c 1K=b.k(8,"1K");h(1K){8.2q=!8.2q;h(8.2q){$(".v-e 1y",8.Q).3h(b.4m);$(1y).2z(b.4m)}}8.1x=8.1l=$("a",1y).V();8.1o=8.1A=F;8.1s=8.1v=z;h(8.2q){8.1X=8.2a=8.1c=r}O{h(1K){8.1X=8.1l;8.2a=8.1A;8.1c=8.1v}}b.4Y(u,b.3u(8,8.1l,8.1A,8.1v));h(8.2q){8.1k=b.17(x B(8.1v,8.1A,8.1l));b.22(8)}O{h(1K){8.1x=8.1l=8.1k.S();8.1o=8.1A=8.1k.Z();8.1s=8.1v=8.1k.P();8.1k=r;h(8.1e){b.22(8)}}}},5Z:n(u){c l=$(u);c 8=b.1t(l[0]);h(b.k(8,"5X")){q}8.2q=E;8.1X=8.2a=8.1c=8.1k=r;b.4Y(l,"")},4Y:n(u,1V){c l=$(u);c 8=b.1t(l[0]);1V=(1V!=r?1V:b.3u(8));h(b.k(8,"1K")&&1V){1V=(8.1k?b.3u(8,8.1k):1V)+b.k(8,"49")+1V}h(8.p){8.p.3c(1V)}b.4A(8);c 2I=b.k(8,"2I");h(2I){2I.2B((8.p?8.p[0]:r),[1V,8])}O{h(8.p){8.p.4d("7v")}}h(8.1e){b.22(8)}O{h(!8.2q){b.2j(r,b.k(8,"1j"));b.3E=8.p[0];h(21(8.p[0])!="4U"){8.p[0].2K()}b.3E=r}}},4A:n(8){c 4r=b.k(8,"4r");h(4r){c 3G=b.k(8,"3G")||b.k(8,"2Y");c f=b.5Y(8);1V=(77(f)?(!f[0]&&!f[1]?"":b.2d(3G,f[0],b.1W(8))+b.k(8,"49")+b.2d(3G,f[1]||f[0],b.1W(8))):b.2d(3G,f,b.1W(8)));$(4r).3T(n(){$(b).3c(1V)})}},9z:n(f){c G=f.3I();q[(G>0&&G<6),""]},57:n(f){c 24=x B(f.P(),f.Z(),f.S());c 3O=x B(24.P(),1-1,4);c 1q=3O.3I()||7;3O.3X(3O.S()+1-1q);h(1q<4&&24<3O){24.3X(24.S()-3);q $.e.57(24)}O{h(24>x B(24.P(),12-1,28)){1q=x B(24.P()+1,1-1,4).3I()||7;h(1q>4&&(24.3I()||7)<1q-3){q 1}}}q 2f.9C(((24-3O)/9A)/7)+1},3d:n(f,8){q $.e.2d($.e.k(8,"3d"),f,$.e.1W(8))},5N:n(19,H,A){h(19==r||H==r){3K"6q 68"}H=(21 H=="4U"?H.65():H+"");h(H==""){q r}c 1P=(A?A.1P:r)||b.1F.1P;c 1E=(A?A.1E:r)||b.1F.1E;c 1C=(A?A.1C:r)||b.1F.1C;c 2g=(A?A.2g:r)||b.1F.2g;c 1n=(A?A.1n:r)||b.1F.1n;c z=-1;c F=-1;c G=-1;c 2Z=-1;c 1M=E;c 1O=n(1r){c 1H=(U+1<19.1i&&19.1f(U+1)==1r);h(1H){U++}q 1H};c 3L=n(1r){1O(1r);c 5D=(1r=="@"?14:(1r=="y"?4:(1r=="o"?3:2)));c 2m=5D;c 2r=0;30(2m>0&&1U="0"&&H.1f(1U)<="9"){2r=2r*10+1G(H.1f(1U++),10);2m--}h(2m==5D){3K"7I 6l 5E 1Z "+1U}q 2r};c 5M=n(1r,5b,5f){c 43=(1O(1r)?5f:5b);c 2m=0;1p(c j=0;j<43.1i;j++){2m=2f.2H(2m,43[j].1i)}c 1g="";c 7w=1U;30(2m>0&&1U-1){F=1;G=2Z;9r{c 5j=b.3q(z,F-1);h(G<=5j){L}F++;G-=5j}30(1d)}c f=b.17(x B(z,F-1,G));h(f.P()!=z||f.Z()+1!=F||f.S()!=G){3K"6q f"}q f},9G:"3j-53-3B",9s:"D, 3B M 3j",9p:"3j-53-3B",9l:"D, d M y",9n:"42, 3B-M-y",9x:"D, d M y",9i:"D, d M 3j",94:"D, d M 3j",95:"D, d M y",90:"@",98:"3j-53-3B",2d:n(19,f,A){h(!f){q""}c 1E=(A?A.1E:r)||b.1F.1E;c 1C=(A?A.1C:r)||b.1F.1C;c 2g=(A?A.2g:r)||b.1F.2g;c 1n=(A?A.1n:r)||b.1F.1n;c 1O=n(1r){c 1H=(U+1<19.1i&&19.1f(U+1)==1r);h(1H){U++}q 1H};c 4O=n(1r,H,6K){c 2r=""+H;h(1O(1r)){30(2r.1i<6K){2r="0"+2r}}q 2r};c 5i=n(1r,H,5b,5f){q(1O(1r)?5f[H]:5b[H])};c 1Y="";c 1M=E;h(f){1p(c U=0;U<19.1i;U++){h(1M){h(19.1f(U)=="\'"&&!1O("\'")){1M=E}O{1Y+=19.1f(U)}}O{4g(19.1f(U)){C"d":1Y+=4O("d",f.S(),2);L;C"D":1Y+=5i("D",f.3I(),1E,1C);L;C"o":c 2Z=f.S();1p(c m=f.Z()-1;m>=0;m--){2Z+=b.3q(f.P(),m)}1Y+=4O("o",2Z,3);L;C"m":1Y+=4O("m",f.Z()+1,2);L;C"M":1Y+=5i("M",f.Z(),2g,1n);L;C"y":1Y+=(1O("y")?f.P():(f.7i()%3r<10?"0":"")+f.7i()%3r);L;C"@":1Y+=f.1I();L;C"\'":h(1O("\'")){1Y+="\'"}O{1M=1d}L;48:1Y+=19.1f(U)}}}}q 1Y},7m:n(19){c 2t="";c 1M=E;1p(c U=0;U<19.1i;U++){h(1M){h(19.1f(U)=="\'"&&!1O("\'")){1M=E}O{2t+=19.1f(U)}}O{4g(19.1f(U)){C"d":C"m":C"y":C"@":2t+="9K";L;C"D":C"M":q r;C"\'":h(1O("\'")){2t+="\'"}O{1M=1d}L;48:2t+=19.1f(U)}}}q 2t},k:n(8,1g){q 8.A[1g]!==66?8.A[1g]:b.1F[1g]},5H:n(8){c 2Y=b.k(8,"2Y");c 2D=8.p?8.p.3c().6t(b.k(8,"49")):r;8.1X=8.2a=8.1c=r;c f=1J=b.54(8);h(2D.1i>0){c A=b.1W(8);h(2D.1i>1){f=b.5N(2Y,2D[1],A)||1J;8.1X=f.S();8.2a=f.Z();8.1c=f.P()}6d{f=b.5N(2Y,2D[0],A)||1J}6m(t){b.6p(t);f=1J}}8.1x=f.S();8.J=8.1o=f.Z();8.N=8.1s=f.P();8.1l=(2D[0]?f.S():0);8.1A=(2D[0]?f.Z():0);8.1v=(2D[0]?f.P():0);b.4P(8)},54:n(8){c f=b.44(b.k(8,"1J"),x B());c R=b.2A(8,"2x",1d);c T=b.2A(8,"2H");f=(R&&fT?T:f);q f},44:n(f,1J){c 6H=n(K){c f=x B();f.3X(f.S()+K);q f};c 6M=n(K,6n){c f=x B();c z=f.P();c F=f.Z();c G=f.S();c 6o=/([+-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g;c 1H=6o.6Q(K);30(1H){4g(1H[2]||"d"){C"d":C"D":G+=1G(1H[1],10);L;C"w":C"W":G+=1G(1H[1],10)*7;L;C"m":C"M":F+=1G(1H[1],10);G=2f.2x(G,6n(z,F));L;C"y":C"Y":z+=1G(1H[1],10);G=2f.2x(G,6n(z,F));L}1H=6o.6Q(K)}q x B(z,F,G)};f=(f==r?1J:(21 f=="41"?6M(f,b.3q):(21 f=="6l"?(7A(f)?1J:6H(f)):f)));f=(f&&f.65()=="6q B"?1J:f);h(f){f.7W(0);f.9g(0);f.9f(0);f.9q(0)}q b.17(f)},17:n(f){h(!f){q r}f.7W(f.81()>12?f.81()+2:0);q f},6k:n(8,f,2b){c 2V=!(f);c 7B=8.1o;c 7y=8.1s;f=b.44(f,x B());8.1x=8.1l=f.S();8.J=8.1o=8.1A=f.Z();8.N=8.1s=8.1v=f.P();h(b.k(8,"1K")){h(2b){2b=b.44(2b,r);8.1X=2b.S();8.2a=2b.Z();8.1c=2b.P()}O{8.1X=8.1l;8.2a=8.1A;8.1c=8.1v}}h(7B!=8.1o||7y!=8.1s){b.4a(8)}b.4P(8);h(8.p){8.p.3c(2V?"":b.3u(8)+(!b.k(8,"1K")?"":b.k(8,"49")+b.3u(8,8.1X,8.2a,8.1c)))}},5Y:n(8){c 4D=(!8.1v||(8.p&&8.p.3c()=="")?r:b.17(x B(8.1v,8.1A,8.1l)));h(b.k(8,"1K")){q[8.1k||4D,(!8.1c?8.1k||4D:b.17(x B(8.1c,8.2a,8.1X)))]}O{q 4D}},7u:n(8){c 2T=x B();2T=b.17(x B(2T.P(),2T.Z(),2T.S()));c 16=b.k(8,"16");c X=b.k(8,"X")||"H;";c 1R=b.k(8,"1R");c 2V=(b.k(8,"5X")?"":\'"+b.k(8,"7F")+"");c 5T=\'\'+(1R?"":2V)+\'"+b.k(8,"7M")+""+(1R?2V:"")+"";c 3C=b.k(8,"3C");c 4p=b.k(8,"4p");c 45=b.k(8,"45");c 2J=b.k(8,"2J");c 2u=b.k(8,"2u");c 1u=b.47(8);c 4E=b.k(8,"4E");c 23=b.k(8,"23");c 2e=b.k(8,"2e");c 7R=(1u[0]!=1||1u[1]!=1);c 5e=b.17((!8.1l?x B(9v,9,9):x B(8.1v,8.1A,8.1l)));c R=b.2A(8,"2x",1d);c T=b.2A(8,"2H");c J=8.J-4E;c N=8.N;h(J<0){J+=12;N--}h(T){c 4n=b.17(x B(T.P(),T.Z()-1u[1]+1,T.S()));4n=(R&&4n4n){J--;h(J<0){J=11;N--}}}c 2N=b.k(8,"2N");2N=(!2J?2N:b.2d(2N,b.17(x B(N,J-23,1)),b.1W(8)));c 2O=(2u?b.k(8,"2O"):"");2O=(!2J?2O:b.2d(2O,b.17(x B(N,J-2e,1)),b.1W(8)));c 55=\'\'+(b.6c(8,-1,N,J)?(2u?""+2O+"":"")+""+2N+"":(45?"":(2u?"<2Q>"+2O+"":"")+"<2Q>"+2N+""))+"";c 2U=b.k(8,"2U");2U=(!2J?2U:b.2d(2U,b.17(x B(N,J+23,1)),b.1W(8)));c 2X=(2u?b.k(8,"2X"):"");2X=(!2J?2X:b.2d(2X,b.17(x B(N,J+2e,1)),b.1W(8)));c 3D=\'\'+(b.6c(8,+1,N,J)?""+2U+""+(2u?""+2X+"":""):(45?"":"<2Q>"+2U+""+(2u?"<2Q>"+2X+"":"")))+"";c 3n=b.k(8,"3n");c 62=(b.k(8,"60")&&8.1l?5e:2T);3n=(!2J?3n:b.2d(3n,62,b.1W(8)));c V=(4p&&!8.1e?5T:"")+\'\'+(1R?3D:55)+(b.67(8,62)?\'"+3n+"":"")+(1R?55:3D)+""+(3C?\'<2o>\'+3C+"":"");c 1q=1G(b.k(8,"1q"));1q=(7A(1q)?0:1q);c 3Z=b.k(8,"3Z");c 1C=b.k(8,"1C");c 1E=b.k(8,"1E");c 51=b.k(8,"51");c 1n=b.k(8,"1n");c 4x=b.k(8,"4x");c 3w=b.k(8,"3w");c 2L=b.k(8,"2L");c 4u=b.k(8,"4u");c 5g=b.k(8,"5g")||b.57;c 4v=b.k(8,"4v");c 2p=(16?b.k(8,"50")||X:"");c 3d=b.k(8,"7O")||b.3d;c 2b=8.1X?b.17(x B(8.1c,8.2a,8.1X)):5e;c 1J=b.54(8);1p(c 3t=0;3t<1u[0];3t++){1p(c 3A=0;3A<1u[1];3A++){c 3f=b.17(x B(N,J,8.1x));V+=\'\'+b.6P(8,J,N,R,T,3f,3t>0||3A>0,16,X,1n)+\'<6L 15="v-e" 8Y="0" 8Z="0"><7S><5c 15="v-e-4z-3t">\'+(4u?"<1y"+b.1Q(16,8.u,4v,X)+">"+b.k(8,"7Z")+"":"");1p(c 2y=0;2y<7;2y++){c G=(2y+1q)%7;c 50=(2p.80("42")>-1?2p.5V(/42/,1C[G]):2p.5V(/D/,1E[G]));V+="<1y"+((2y+1q+6)%7>=5?\' 15="v-e-4h-3z-5h"\':"")+">"+(!3Z?"<2o":"\'+51[G]+(3Z?"":"")+""}V+="<6G>";c 5Q=b.3q(N,J);h(N==8.1s&&J==8.1o){8.1x=2f.2x(8.1x,5Q)}c 5P=(b.71(N,J)-1q+7)%7;c 7U=(7R?6:2f.91((5P+5Q)/7));c 1h=b.17(x B(N,J,1-5P));1p(c 5O=0;5O<7U;5O++){V+=\'<5c 15="v-e-5R-3t">\'+(4u?\'<1y 15="v-e-4h-3A"\'+b.1Q(16,8.u,4v,X)+">"+5g(1h)+"":"");1p(c 2y=0;2y<7;2y++){c 4j=(4x?4x.2B((8.p?8.p[0]:r),[1h]):[1d,""]);c 2P=(1h.Z()!=J);c 4q=2P||!4j[0]||(R&&1hT);V+=\'<1y 15="v-e-5R-5h\'+((2y+1q+6)%7>=5?" v-e-4h-3z-5h":"")+(2P?" v-e-9e-F":"")+((1h.1I()==3f.1I()&&J==8.1o&&8.4M)||(1J.1I()==1h.1I()&&1J.1I()==3f.1I())?" "+$.e.4w:"")+(4q?" "+b.5S:"")+(2P&&!2L?"":" "+4j[1]+(1h.1I()>=5e.1I()&&1h.1I()<=2b.1I()?" "+b.4m:"")+(1h.1I()==2T.1I()?" v-e-2T":""))+\'"\'+((!2P||2L)&&4j[2]?\' 4z="\'+4j[2]+\'"\':"")+(4q?(3w?" 6g=\\"1a(b).5a().2z(\'"+b.4s+"\');\\" 6j=\\"1a(b).5a().3h(\'"+b.4s+"\');\\"":""):" 6g=\\"1a(b).2z(\'"+b.4w+"\')"+(3w?".5a().2z(\'"+b.4s+"\')":"")+";"+(!16||(2P&&!2L)?"":"1a(\'#v-e-2p-"+8.u+"\').V(\'"+(3d.2B((8.p?8.p[0]:r),[1h,8])||X)+"\');")+\'" 6j="1a(b).3h(\\\'\'+b.4w+"\')"+(3w?".5a().3h(\'"+b.4s+"\')":"")+";"+(!16||(2P&&!2L)?"":"1a(\'#v-e-2p-"+8.u+"\').V(\'"+X+"\');")+\'" 26="1a.e.5U(\\\'#\'+8.u+"\',"+J+","+N+\', b);"\')+">"+(2P?(2L?1h.S():"H;"):(4q?1h.S():""+1h.S()+""))+"";1h.3X(1h.S()+1);1h=b.17(1h)}V+=""}J++;h(J>11){J=0;N++}V+=""}}V+=(16?\'\'+X+"":"")+(!4p&&!8.1e?5T:"")+\'\'+($.2l.4Z&&1G($.2l.4S,10)<7&&!8.1e?\'<4L 63="a6:E;" 15="v-e-64">\':"");8.4M=E;q V},6P:n(8,J,N,R,T,3f,4i,16,X,1n){R=(8.1k&&R&&3f\';c 3m="";h(4i||!3M){3m+=1n[J]}O{c 6T=(R&&R.P()==N);c 6B=(T&&T.P()==N);3m+=\'<3s 15="v-e-x-F" 6u="1a.e.6f(\\\'#\'+8.u+"\', b, \'M\');\\" 26=\\"1a.e.6e(\'#"+8.u+"\');\\""+b.1Q(16,8.u,b.k(8,"6O"),X)+">";1p(c F=0;F<12;F++){h((!6T||F>=R.Z())&&(!6B||F<=T.Z())){3m+=\'<4G H="\'+F+\'"\'+(F==J?\' 4e="4e"\':"")+">"+1n[F]+""}}3m+=""}h(!4t){V+=3m+(4i||3M||3N?"H;":"")}h(4i||!3N){V+=N}O{c 2F=b.k(8,"6s").6t(":");c z=0;c 1c=0;h(2F.1i!=2){z=N-10;1c=N+10}O{h(2F[0].1f(0)=="+"||2F[0].1f(0)=="-"){z=1c=x B().P();z+=1G(2F[0],10);1c+=1G(2F[1],10)}O{z=1G(2F[0],10);1c=1G(2F[1],10)}}z=(R?2f.2H(z,R.P()):z);1c=(T?2f.2x(1c,T.P()):1c);V+=\'<3s 15="v-e-x-z" 6u="1a.e.6f(\\\'#\'+8.u+"\', b, \'Y\');\\" 26=\\"1a.e.6e(\'#"+8.u+"\');\\""+b.1Q(16,8.u,b.k(8,"6w"),X)+">";1p(;z<=1c;z++){V+=\'<4G H="\'+z+\'"\'+(z==N?\' 4e="4e"\':"")+">"+z+""}V+=""}h(4t){V+=(4i||3M||3N?"H;":"")+3m}V+="";q V},1Q:n(16,u,6h,X){q(16?" 6g=\\"1a(\'#v-e-2p-"+u+"\').V(\'"+(6h||X)+"\');\\" 6j=\\"1a(\'#v-e-2p-"+u+"\').V(\'"+X+"\');\\"":"")},4P:n(8,K,25){c z=8.N+(25=="Y"?K:0);c F=8.J+(25=="M"?K:0);c G=2f.2x(8.1x,b.3q(z,F))+(25=="D"?K:0);c f=b.17(x B(z,F,G));c R=b.2A(8,"2x",1d);c T=b.2A(8,"2H");f=(R&&fT?T:f);8.1x=f.S();8.J=8.1o=f.Z();8.N=8.1s=f.P();h(25=="M"||25=="Y"){b.4a(8)}},4a:n(8){c 6i=b.k(8,"7r");h(6i){6i.2B((8.p?8.p[0]:r),[8.1s,8.1o+1,8])}},47:n(8){c 1u=b.k(8,"7o");q(1u==r?[1,1]:(21 1u=="6l"?[1,1u]:1u))},2A:n(8,7n,7c){c f=b.44(b.k(8,7n+"B"),r);q(!7c||!8.1k?f:(!f||8.1k>f?8.1k:f))},3q:n(z,F){q 32-x B(z,F,32).S()},71:n(z,F){q x B(z,F,1).3I()},6c:n(8,K,6Y,7a){c 1u=b.47(8);c f=b.17(x B(6Y,7a+(K<0?K:1u[1]),1));h(K<0){f.3X(b.3q(f.P(),f.Z()))}q b.67(8,f)},67:n(8,f){c 3S=(!8.1k?r:b.17(x B(8.1s,8.1o,8.1x)));3S=(3S&&8.1k<3S?8.1k:3S);c R=3S||b.2A(8,"2x");c T=b.2A(8,"2H");q((!R||f>=R)&&(!T||f<=T))},1W:n(8){c 1P=b.k(8,"1P");1P=(21 1P!="41"?1P:x B().P()%3r+1G(1P,10));q{1P:1P,1E:b.k(8,"1E"),1C:b.k(8,"1C"),2g:b.k(8,"2g"),1n:b.k(8,"1n")}},3u:n(8,G,F,z){h(!G){8.1l=8.1x;8.1A=8.1o;8.1v=8.1s}c f=(G?(21 G=="4U"?G:b.17(x B(z,F,G))):b.17(x B(8.1v,8.1A,8.1l)));q b.2d(b.k(8,"2Y"),f,b.1W(8))}});n 3P(l,3Q){$.4y(l,3Q);1p(c 1g 6R 3Q){h(3Q[1g]==r||3Q[1g]==66){l[1g]=3Q[1g]}}q l}n 77(a){q(a&&(($.2l.8m&&21 a=="4U"&&a.1i)||(a.6X&&a.6X.65().1r(/\\7e\\(\\)/))))}$.83.e=n(2v){h(!$.e.6b){$(18.2h).3v($.e.Q).87($.e.7l);$.e.6b=1d}c 69=7e.7j.8T.8t(68,1);h(21 2v=="41"&&(2v=="8A"||2v=="S")){q $.e["7s"+2v+"3Y"].2B($.e,[b[0]].7K(69))}q b.3T(n(){21 2v=="41"?$.e["7s"+2v+"3Y"].2B($.e,[b].7K(69)):$.e.7Q(b,2v)})};$.e=x 3Y();$.e.6b=E;$.e.6a=x B().1I();$.e.4S="@7V"})(1a)',62,640,'||||||||inst|||this|var||datepicker|date||if|||_get|target||function||input|return|null||event|id|ui||new||year|settings|Date|case||false|month|day|value|div|drawMonth|offset|break||drawYear|else|getFullYear|dpDiv|minDate|getDate|maxDate|iFormat|html||initStatus||getMonth||||||class|showStatus|_daylightSavingAdjust|document|format|jQuery|nodeName|endYear|true|inline|charAt|name|printDate|length|duration|rangeStart|currentDay|ctrlKey|monthNames|selectedMonth|for|firstDay|match|selectedYear|_getInst|numMonths|currentYear|top|selectedDay|td|isFixed|currentMonth|_adjustDate|dayNames|documentElement|dayNamesShort|_defaults|parseInt|matches|getTime|defaultDate|rangeSelect|_pos|literal|left|lookAhead|shortYearCutoff|_addStatus|isRTL|width|metaKey|iValue|dateStr|_getFormatConfig|endDay|output|position|showAnim|typeof|_updateDatepicker|stepMonths|checkDate|period|onclick|||markerClassName|endMonth|endDate|css|formatDate|stepBigMonths|Math|monthNamesShort|body|height|_hideDatepicker|_dialogInput|browser|size|handled|span|status|stayOpen|num|_disabledInputs|chars|showBigPrevNext|options|pos|min|dow|addClass|_getMinMaxDate|apply|_triggerClass|dates|key|years|px|max|onSelect|navigationAsDateFormat|focus|showOtherMonths|hasClass|prevText|prevBigText|otherMonth|label|_inDialog|buttonText|today|nextText|clear|PROP_NAME|nextBigText|dateFormat|doy|while|data|||||||||obj|scrollY|val|dateStatus|Show|selectedDate|the|removeClass|_curInst|yy|showOn|_datepickerShowing|monthHtml|currentText|scrollX|postProcess|_getDaysInMonth|100|select|row|_formatDate|append|highlightWeek|remove|button|end|col|dd|prompt|next|_lastInput|scrollLeft|altFormat|_showDatepicker|getDay|scrollTop|throw|getNumber|changeMonth|changeYear|firstMon|extendRemove|props|buttonImage|newMinDate|each|siblings|inlineSettings|appendText|setDate|Datepicker|changeFirstDay||string|DD|names|_determineDate|hideIfNoPrevNext|blockUI|_getNumberOfMonths|default|rangeSeparator|_notifyChange|beforeShow|toLowerCase|trigger|selected|disabled|switch|week|secondary|daySettings|type|style|_currentClass|maxDraw|onClose|closeAtTop|unselectable|altField|_weekOverClass|showMonthAfterYear|showWeeks|weekStatus|_dayOverClass|beforeShowDay|extend|title|_updateAlternate|current|checkLiteral|startDate|showCurrentAtPos|window|option|xa0|clientWidth|clientHeight|browserWidth|iframe|_keyEvent|browserHeight|formatNumber|_adjustInstDate|attrValue|attrName|version|bind|object|_doKeyDown|relOffset|img|_selectDate|msie|dayStatus|dayNamesMin|unbind|mm|_getDefaultDate|prev|_selectingMonthYear|iso8601Week|both|absolute|parent|shortNames|tr|effects|currentDate|longNames|calculateWeek|cell|formatName|dim|opera|_disableClass|_inlineClass|sel|_doKeyPress|chr|keyCode|keydown|_appendClass|x3e|x3c|regional|divSpan|_newInst|display|show|parents|_dialogClass|_mainDivId|origSize|at|_tidyDialog|hide|_setDateFromField|dims|_findPos|hidden|showOptions|getName|parseDate|dRow|leadDays|daysInMonth|days|_unselectableClass|controls|_selectDay|replace|_promptClass|mandatory|_getDate|_clearDate|gotoCurrent|_gotoToday|gotoDate|src|cover|toString|undefined|_isInRange|arguments|otherArgs|uuid|initialized|_canAdjustMonth|try|_clickMonthYear|_selectMonthYear|onmouseover|text|onChange|onmouseout|_setDate|number|catch|getDaysInMonth|pattern|log|Invalid|after|yearRange|split|onchange|before|yearStatus|add|_inlineDatepicker|Class|_checkOffset|inMaxYear|innerWidth|innerHeight|alt|previous|tbody|offsetNumeric|_connectDatepicker|different|len|table|offsetString|setData|monthStatus|_generateMonthYearHeader|exec|in|attr|inMinYear|empty|altKey|originalEvent|constructor|curYear|keypress|constrainInput|_getFirstDayOfMonth|opacity|cursor|_optionDatepicker|err|map|isArray|children|May|curMonth|charCode|checkRange|fixed|Array|dp|getData|none|getYear|prototype|_dialogInst|_checkExternalClick|_possibleChars|minMax|numberOfMonths|_isDisabledDatepicker|dateText|onChangeMonthYear|_|buttonImageOnly|_generateHTML|change|iInit|nextBigStatus|origYear|Year|isNaN|origMonth|Month|nextStatus|prevStatus|clearText|over|clearStatus|Missing|Close|concat|prevBigStatus|closeText|closeStatus|statusForDate|currentStatus|_attachDatepicker|isMultiMonth|thead|100px|numRows|VERSION|setHours|_changeFirstDay|debug|weekHeader|indexOf|getHours|Select|fn|relative|_enableDatepicker|Friday|mousedown|_destroyDatepicker|of|removeData|transparent|Saturday|Thursday|background|prepend|Sep|Nov|Tuesday|Oct|150|Monday|safari|_disableDatepicker|Wednesday|Sunday|color|_dialogDatepicker|normal|call|first|as|Sa|Set|Wk|Dec|isDisabled|eval|getAttribute|setDefaults|hasDatepicker|console|Fr|Th|Wed|Thu|pageX|pageY|Mon|Tue|Fri|Sat|We|click|Tu|slice|Su|Mo|Sun|parentNode|cellpadding|cellspacing|TIMESTAMP|ceil|one|draw|RFC_2822|RSS|selectedIndex|unblockUI|W3C|fadeIn|slideUp|slideDown|nextSibling|fadeOut|other|setSeconds|setMinutes|Prev|RFC_1123|links|Unknown|RFC_822|dialog|RFC_850|Unexpected|ISO_8601|setMilliseconds|do|COOKIE|Clear|Erase|9999|without|RFC_1036|close|noWeekends|86400000|control|floor|nodeType|Next|November|ATOM|December|Jan|October|0123456789|String|stopPropagation|preventDefault|Feb|Mar|_refreshDatepicker|_changeDatepicker|instance|_setDateDatepicker|_getDateDatepicker|Apr|Jun|Jul|fromCharCode|September|rtl|multi|March|find|February|January|javascript|header|Today|April|June|offsetHeight|Week|August|July|block|static|offsetWidth|1000px|Aug'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/ui.dialog.packed.js b/sites/all/libraries/jquery.ui/ui/packed/ui.dialog.packed.js new file mode 100644 index 0000000..c806e0d --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/ui.dialog.packed.js @@ -0,0 +1,14 @@ +/* + * jQuery UI Dialog 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Dialog + * + * Depends: + * ui.core.js + * ui.draggable.js + * ui.resizable.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4(B){c A={1T:"1t.Q",1a:"1a.Q",1X:"1s.Q",1u:"1u.l",1g:"1g.l",1v:"1v.l",1m:"1m.l",26:"1t.l",P:"1a.l",20:"1s.l"};B.2S("6.5",{34:4(){3.1B=3.k.r("u");3.8.u=3.8.u||3.1B;c M=3,N=3.8,F=3.k.3l("u").q("6-5-1y").2T("

          ").2T("

          "),I=(3.2P=F.2Q()).q("6-5-3c").i({14:"38",f:"1J%",h:"1J%"}),E=(3.1P=B("

          ")).q("6-5-19").2b(4(){M.1n()}).2U(I),J=B(\'\').q("6-5-19-v").r("2N","1C").V(E),G=(3.2s=B("<2Y/>")).1G(N.1I).V(J),L=N.u||"&2r;",D=B.6.5.2E(3.k),C=B("<2Y/>").q("6-5-u").r("2B",D).2j(L).2U(E),K=(3.b=I.2Q()).V(j.13).1d().q("6-5").q(N.37).i({14:"1U",f:N.f,h:N.h,33:"35",1k:N.1k}).r("2Z",-1).i("30",0).2a(4(O){(N.21&&O.Y&&O.Y==B.6.Y.2J&&M.v())}).r({2N:"5","3m-3h":D}).2F(4(){M.1n()}),H=(3.2q=B("

          ")).q("6-5-3g").i({14:"1U",1q:0}).V(K),J=B(".6-5-19-v",E).29(4(){B(3).q("6-5-19-v-29")},4(){B(3).2O("6-5-19-v-29")}).2b(4(O){O.3j()}).2c(4(){M.v();g Z});E.2t("*").1S(E).36();(N.Q&&B.1D.Q&&3.1H());(N.l&&B.1D.l&&3.1R());3.1N(N.1M);3.1h=Z;(N.15&&B.1D.15&&K.15());(N.2y&&3.1L())},W:4(){(3.9&&3.9.W());3.b.1d();3.k.1K(".5").3k("5").2O("6-5-1y").1d().V("13");3.b.2G();(3.1B&&3.k.r("u",3.1B))},v:4(){d(Z===3.1j("3f",1c,{8:3.8})){g}(3.9&&3.9.W());3.b.1d(3.8.1d).1K("23.6-5");3.1j("v",1c,{8:3.8});B.6.5.9.P();3.1h=Z},2D:4(){g 3.1h},1n:4(F){d((3.8.1f&&!F)||(!3.8.2W&&!3.8.1f)){g 3.1j("1e",1c,{8:3.8})}c E=3.8.1k,D=3.8;B(".6-5:3e").1o(4(){E=R.S(E,U(B(3).i("z-1b"),10)||D.1k)});(3.9&&3.9.$1Q.i("z-1b",++E));c C={22:3.k.r("22"),24:3.k.r("24")};3.b.i("z-1b",++E);3.k.r(C);3.1j("1e",1c,{8:3.8})},1L:4(){d(3.1h){g}3.9=3.8.1f?39 B.6.5.9(3):1c;(3.b.3b().1p&&3.b.V("13"));3.1O(3.8.14);3.b.1Y(3.8.1Y);(3.8.1A&&3.1w());3.1n(t);(3.8.1f&&3.b.1F("23.6-5",4(E){d(E.Y!=B.6.Y.3d){g}c D=B(":2k",3),F=D.2g(":2e")[0],C=D.2g(":3a")[0];d(E.2n==C&&!E.2l){25(4(){F.1e()},1)}x{d(E.2n==F&&E.2l){25(4(){C.1e()},1)}}}));3.b.2t(":2k:2e").1e();3.1j("1L",1c,{8:3.8});3.1h=t},1N:4(F){c E=3,C=Z,D=3.2q;D.32().1d();B.1o(F,4(){g!(C=t)});d(C){D.1Y();B.1o(F,4(G,H){B(\'<1C 31="1C">\').1G(G).2c(4(){H.y(E.k[0],X)}).V(D)})}},1H:4(){c C=3,D=3.8;3.b.Q({2i:".6-5-1y",2o:D.3v,3J:".6-5-19",1t:4(){C.1n();(D.1T&&D.1T.y(C.k[0],X))},1a:4(){(D.1a&&D.1a.y(C.k[0],X))},1s:4(){(D.1X&&D.1X.y(C.k[0],X));B.6.5.9.P()}})},1R:4(F){F=(F===3I?3.8.l:F);c C=3,E=3.8,D=2v F=="2f"?F:"n,e,s,w,3F,3L,3K,3M";3.b.l({2i:".6-5-1y",2o:E.3N,1v:E.1v,1u:E.1u,1m:E.1m,1g:E.1g,1t:4(){(E.26&&E.26.y(C.k[0],X))},P:4(){(E.1A&&C.1w.y(C));(E.P&&E.P.y(C.k[0],X))},2m:D,1s:4(){(E.1A&&C.1w.y(C));(E.20&&E.20.y(C.k[0],X));B.6.5.9.P()}})},1O:4(H){c D=B(T),E=B(j),F=E.22(),C=E.24(),G=F;d(B.2V(H,["1i","17","1x","1q","18"])>=0){H=[H=="1x"||H=="18"?H:"1i",H=="17"||H=="1q"?H:"1V"]}d(H.2d!=3O){H=["1i","1V"]}d(H[0].2d==2h){C+=H[0]}x{1Z(H[0]){m"18":C+=0;o;m"1x":C+=D.f()-3.b.2u();o;2p:m"1i":C+=(D.f()-3.b.2u())/2}}d(H[1].2d==2h){F+=H[1]}x{1Z(H[1]){m"17":F+=0;o;m"1q":F+=(B.11.1z?T.27:D.h())-3.b.1W();o;2p:m"1V":F+=((B.11.1z?T.27:D.h())-3.b.1W())/2}}F=R.S(F,G);3.b.i({17:F,18:C})},2R:4(D,E){(A[D]&&3.b.2w(A[D],E));1Z(D){m"1M":3.1N(E);o;m"1I":3.2s.1G(E);o;m"Q":(E?3.1H():3.b.Q("W"));o;m"h":3.b.h(E);o;m"14":3.1O(E);o;m"l":c C=3.b,F=3.b.3G(":2w(l)");(F&&!E&&C.l("W"));(F&&2v E=="2f"&&C.l("3D","2m",E));(F||3.1R(E));o;m"u":B(".6-5-u",3.1P).2j(E||"&2r;");o;m"f":3.b.f(E);o}B.2S.2x.2R.y(3,X)},1w:4(){c D=3.2P,G=3.1P,E=3.k,F=(U(E.i("1l-17"),10)||0)+(U(E.i("1l-1q"),10)||0),C=(U(E.i("1l-18"),10)||0)+(U(E.i("1l-1x"),10)||0);E.h(D.h()-G.1W()-F);E.f(D.f()-C)}});B.1E(B.6.5,{28:"@3n",3E:{2y:t,1A:t,15:Z,1M:{},21:t,1I:"v",Q:t,h:3u,1g:1J,1m:3s,1f:Z,9:{},14:"1i",l:t,2W:t,f:3r,1k:3o},3p:"2D",2z:0,2E:4(C){g"6-5-u-"+(C.r("2B")||++3.2z)},9:4(C){3.$1Q=B.6.5.9.2M(C)}});B.1E(B.6.5.9,{16:[],2K:B.3q("1e,2b,2F,2a,23,2c".3w(","),4(C){g C+".5-9"}).3B(" "),2M:4(D){d(3.16.1p===0){25(4(){B("a, :2A").1F(B.6.5.9.2K,4(){c F=Z;c H=B(3).3C(".6-5");d(H.1p){c E=B(".6-5-9");d(E.1p){c G=U(E.i("z-1b"),10);E.1o(4(){G=R.S(G,U(B(3).i("z-1b"),10))});F=U(H.i("z-1b"),10)>G}x{F=t}}g F})},1);B(j).1F("2a.5-9",4(E){(D.8.21&&E.Y&&E.Y==B.6.Y.2J&&D.v())});B(T).1F("P.5-9",B.6.5.9.P)}c C=B("

          ").V(j.13).q("6-5-9").i(B.1E({3y:0,1l:0,3x:0,14:"1U",17:0,18:0,f:3.f(),h:3.h()},D.8.9));(D.8.15&&B.1D.15&&C.15());3.16.3z(C);g C},W:4(C){3.16.3A(B.2V(3.16,C),1);d(3.16.1p===0){B("a, :2A").1S([j,T]).1K(".5-9")}C.2G()},h:4(){d(B.11.2I&&B.11.28<7){c D=R.S(j.1r.2L,j.13.2L);c C=R.S(j.1r.2H,j.13.2H);d(D35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(c(A){A.35("g.j",A.1u({},A.g.37,{31:c(){7(4.8.e=="1Y"&&!(/^(?:r|a|f)/).1D(4.l.h("s"))){4.l[0].1x.s="o"}(4.8.2b&&4.l.2j(4.8.2b+"-j"));(4.8.1M&&4.l.2j("g-j-1M"));4.38()},2V:c(){7(!4.l.11("j")){t}4.l.2U("j").2W(".j").2B("g-j g-j-26 g-j-1M");4.30()},2s:c(B){b C=4.8;7(4.e||C.1M||A(B.23).36(".g-3p-1o")){t n}4.1o=4.2r(B);7(!4.1o){t n}t u},2w:c(B){b C=4.8;4.e=4.2q(B);4.2a();7(A.g.18){A.g.18.39=4}4.2M();4.16=4.e.h("s");4.m=4.e.m();4.9=4.l.9();4.9={5:4.9.5-4.v.5,6:4.9.6-4.v.6};A.1u(4.9,{Y:{6:B.1z-4.9.6,5:B.1A-4.9.5},q:4.2i(),o:4.2k()});7(C.24){4.2t(C.24)}4.1r=4.2c(B);7(C.k){4.2Q()}4.1e("1a",B);4.2a();7(A.g.18&&!C.2p){A.g.18.2O(4,B)}4.e.2j("g-j-26");4.2g(B,u);t u},2g:c(B,C){4.s=4.2c(B);4.1H=4.13("1d");7(!C){4.s=4.1e("1i",B)||4.s}7(!4.8.1F||4.8.1F!="y"){4.e[0].1x.6=4.s.6+"1P"}7(!4.8.1F||4.8.1F!="x"){4.e[0].1x.5=4.s.5+"1P"}7(A.g.18){A.g.18.1i(4,B)}t n},28:c(C){b D=n;7(A.g.18&&!4.8.2p){b D=A.g.18.3l(4,C)}7((4.8.1g=="3i"&&!D)||(4.8.1g=="3c"&&D)||4.8.1g===u||(A.2I(4.8.1g)&&4.8.1g.1I(4.l,D))){b B=4;A(4.e).3a(4.1r,T(4.8.2A,10),c(){B.1e("1q",C);B.27()})}1b{4.1e("1q",C);4.27()}t n},2r:c(B){b C=!4.8.1o||!A(4.8.1o,4.l).1Q?u:n;A(4.8.1o,4.l).3e("*").3g().1f(c(){7(4==B.23){C=u}});t C},2q:c(C){b D=4.8;b B=A.2I(D.e)?A(D.e.3k(4.l[0],[C])):(D.e=="22"?4.l.22():4.l);7(!B.3o("1k").1Q){B.1v((D.1v=="q"?4.l[0].1S:D.1v))}7(B[0]!=4.l[0]&&!(/(1J|1d)/).1D(B.h("s"))){B.h("s","1d")}t B},2t:c(B){7(B.6!=1K){4.9.Y.6=B.6+4.v.6}7(B.2u!=1K){4.9.Y.6=4.W.X-B.2u+4.v.6}7(B.5!=1K){4.9.Y.5=B.5+4.v.5}7(B.2L!=1K){4.9.Y.5=4.W.U-B.2L+4.v.5}},2i:c(){4.15=4.e.15();b B=4.15.9();7((4.15[0]==p.1k&&A.2J.2Y)||(4.15[0].1B&&4.15[0].1B.3d()=="1Z"&&A.2J.3m)){B={5:0,6:0}}t{5:B.5+(T(4.15.h("2f"),10)||0),6:B.6+(T(4.15.h("21"),10)||0)}},2k:c(){7(4.16=="o"){b B=4.l.s();t{5:B.5-(T(4.e.h("5"),10)||0)+4.m.z(),6:B.6-(T(4.e.h("6"),10)||0)+4.m.w()}}1b{t{5:0,6:0}}},2M:c(){4.v={6:(T(4.l.h("33"),10)||0),5:(T(4.l.h("3j"),10)||0)}},2a:c(){4.W={X:4.e.2P(),U:4.e.2T()}},2Q:c(){b E=4.8;7(E.k=="q"){E.k=4.e[0].1S}7(E.k=="p"||E.k=="1y"){4.k=[0-4.9.o.6-4.9.q.6,0-4.9.o.5-4.9.q.5,A(E.k=="p"?p:1y).X()-4.9.o.6-4.9.q.6-4.W.X-4.v.6-(T(4.l.h("3n"),10)||0),(A(E.k=="p"?p:1y).U()||p.1k.1S.2E)-4.9.o.5-4.9.q.5-4.W.U-4.v.5-(T(4.l.h("3h"),10)||0)]}7(!(/^(p|1y|q)$/).1D(E.k)){b C=A(E.k)[0];b D=A(E.k).9();b B=(A(C).h("3b")!="3f");4.k=[D.6+(T(A(C).h("21"),10)||0)-4.9.o.6-4.9.q.6-4.v.6,D.5+(T(A(C).h("2f"),10)||0)-4.9.o.5-4.9.q.5-4.v.5,D.6+(B?12.2v(C.2Z,C.1V):C.1V)-(T(A(C).h("21"),10)||0)-4.9.o.6-4.9.q.6-4.W.X-4.v.6,D.5+(B?12.2v(C.2E,C.1T):C.1T)-(T(A(C).h("2f"),10)||0)-4.9.o.5-4.9.q.5-4.W.U-4.v.5]}},13:c(D,F){7(!F){F=4.s}b C=D=="1d"?1:-1;b B=4[(4.16=="1d"?"9":"1R")+"2C"],E=(/(1Z|1k)/i).1D(B[0].1B);t{5:(F.5+4.9.o.5*C+4.9.q.5*C+(4.16=="1J"?-4.m.z():(E?0:B.z()))*C+4.v.5*C),6:(F.6+4.9.o.6*C+4.9.q.6*C+(4.16=="1J"?-4.m.w():(E?0:B.w()))*C+4.v.6*C)}},2c:c(D){b G=4.8,C=4[(4.16=="1d"?"9":"1R")+"2C"],H=(/(1Z|1k)/i).1D(C[0].1B);b B={5:(D.1A-4.9.Y.5-4.9.o.5-4.9.q.5+(4.16=="1J"?-4.m.z():(H?0:C.z()))),6:(D.1z-4.9.Y.6-4.9.o.6-4.9.q.6+(4.16=="1J"?-4.m.w():H?0:C.w()))};7(!4.1r){t B}7(4.k){7(B.6<4.k[0]){B.6=4.k[0]}7(B.5<4.k[1]){B.5=4.k[1]}7(B.6>4.k[2]){B.6=4.k[2]}7(B.5>4.k[3]){B.5=4.k[3]}}7(G.17){b F=4.1r.5+12.2z((B.5-4.1r.5)/G.17[1])*G.17[1];B.5=4.k?(!(F<4.k[1]||F>4.k[3])?F:(!(F<4.k[1])?F-G.17[1]:F+G.17[1])):F;b E=4.1r.6+12.2z((B.6-4.1r.6)/G.17[0])*G.17[0];B.6=4.k?(!(E<4.k[0]||E>4.k[2])?E:(!(E<4.k[0])?E-G.17[0]:E+G.17[0])):E}t B},27:c(){4.e.2B("g-j-26");7(4.e[0]!=4.l[0]&&!4.1t){4.e.29()}4.e=1X;4.1t=n},1e:c(C,B){A.g.1h.1I(4,C,[B,4.1G()]);7(C=="1i"){4.1H=4.13("1d")}t 4.l.2G(C=="1i"?C:"1i"+C,[B,4.1G()],4.8[C])},34:{},1G:c(B){t{e:4.e,s:4.s,2m:4.1H,8:4.8}}}));A.1u(A.g.j,{32:"@2X",3H:{1v:"q",1F:n,3P:":3M",1W:n,k:n,2b:"g",1p:"2y",24:1X,3T:0,3S:1,17:n,1o:n,e:"1Y",1w:n,1j:1,3Q:n,1g:n,2A:3N,3O:"2y",1R:u,19:20,1c:20,14:n,2n:"3U",2S:20,1s:n,Z:1X}});A.g.1h.1l("j","1W",{1a:c(B,D){b C=A(4).11("j");C.1O=[];A(D.8.1W).1f(c(){A(4+"").1f(c(){7(A.11(4,"2h")){b E=A.11(4,"2h");C.1O.2K({d:E,2D:E.8.1g});E.40();E.1e("41",B,C)}})})},1q:c(B,D){b C=A(4).11("j");A.1f(C.1O,c(){7(4.d.1n){4.d.1n=0;C.1t=u;4.d.1t=n;7(4.2D){4.d.8.1g=u}4.d.28(B);4.d.l.2G("3Z",[B,A.1u(4.d.3Y(),{3V:C.l})],4.d.8["3W"]);4.d.8.e=4.d.8.2e;7(C.8.e=="1Y"){4.d.1E.h({5:"2H",6:"2H"})}}1b{4.d.1t=n;4.d.1e("3X",B,C)}})},1i:c(C,F){b E=A(4).11("j"),B=4;b D=c(I){b N=4.9.Y.5,M=4.9.Y.6;b G=4.1H.5,K=4.1H.6;b J=I.U,L=I.X;b O=I.5,H=I.6;t A.g.1n(G+N,K+M,O,H,J,L)};A.1f(E.1O,c(G){7(D.1I(E,4.d.3R)){7(!4.d.1n){4.d.1n=1;4.d.1E=A(B).22().1v(4.d.l).11("2h-1L",u);4.d.8.2e=4.d.8.e;4.d.8.e=c(){t F.e[0]};C.23=4.d.1E[0];4.d.2s(C,u);4.d.2w(C,u,u);4.d.9.Y.5=E.9.Y.5;4.d.9.Y.6=E.9.Y.6;4.d.9.q.6-=E.9.q.6-4.d.9.q.6;4.d.9.q.5-=E.9.q.5-4.d.9.q.5;E.1e("3K",C)}7(4.d.1E){4.d.2g(C)}}1b{7(4.d.1n){4.d.1n=0;4.d.1t=u;4.d.8.1g=n;4.d.28(C,u);4.d.8.e=4.d.8.2e;4.d.1E.29();7(4.d.2R){4.d.2R.29()}E.1e("3x",C)}}})}});A.g.1h.1l("j","1p",{1a:c(C,D){b B=A("1k");7(B.h("1p")){D.8.25=B.h("1p")}B.h("1p",D.8.1p)},1q:c(B,C){7(C.8.25){A("1k").h("1p",C.8.25)}}});A.g.1h.1l("j","1w",{1a:c(B,C){A(C.8.1w===u?"3y":C.8.1w).1f(c(){A(\'<2d 3q="g-j-1w" 1x="3w: #3v;">\').h({X:4.1V+"1P",U:4.1T+"1P",s:"1d",1j:"0.3r",Z:3s}).h(A(4).9()).1v("1k")})},1q:c(B,C){A("2d.g-j-1w").1f(c(){4.1S.3t(4)})}});A.g.1h.1l("j","1j",{1a:c(C,D){b B=A(D.e);7(B.h("1j")){D.8.2l=B.h("1j")}B.h("1j",D.8.1j)},1q:c(B,C){7(C.8.2l){A(C.e).h("1j",C.8.2l)}}});A.g.1h.1l("j","1R",{1a:c(C,D){b E=D.8;b B=A(4).11("j");7(B.m[0]!=p&&B.m[0].1B!="2N"){B.1C=B.m.9()}},1i:c(D,E){b F=E.8,B=n;b C=A(4).11("j");7(C.m[0]!=p&&C.m[0].1B!="2N"){7((C.1C.5+C.m[0].1T)-D.1A=0;N--){b L=E.V[N].6,J=L+E.V[N].X,I=E.V[N].5,S=I+E.V[N].U;7(!((L-Q35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(8(A){A.1h("5.e",{1N:8(){9 C=3.4,B=C.d;3.f=0;3.j=1;3.4.d=3.4.d&&A.1q(3.4.d)?3.4.d:8(D){a D.1s(B)};3.n={p:3.6[0].1t,k:3.6[0].1u};A.5.c.l[3.4.m]=A.5.c.l[3.4.m]||[];A.5.c.l[3.4.m].1M(3);(3.4.15&&3.6.18(3.4.15+"-e"))},1F:8(){9 B=A.5.c.l[3.4.m];10(9 C=0;C=N&&L<=J)||(K>=N&&K<=J)||(LJ))&&((D>=F&&D<=B)||(C>=F&&C<=B)||(DB));z;13:a h;z}};A.5.c={q:v,l:{"13":[]},1l:8(E,G){9 B=A.5.c.l[E.4.m];9 F=G?G.23:v;9 H=(E.g||E.6).1j(":T(e)").1T();1g:10(9 D=0;D35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(h(B){B.3K("b.d",B.1b({},B.b.3E,{3z:h(){f N=4,O=4.m;f R=4.j.c("g");4.2g=4.j;4.j.1m("b-d").c({g:/26/.q(R)?"1k":R});B.1b(O,{1U:!!(O.1e),l:O.l||O.14||O.1n?O.l||"b-d-l":1g,1q:O.1q===1v?"b-d-1S-17":O.1q});f I="2n 2Q #3D";O.39={"b-d":{2a:"2H"},"b-d-17":{g:"1A",2X:"#2S",3A:"0.2n"},"b-d-n":{t:"n-o",8:"1a",5:"p",1w:"p",2o:I},"b-d-s":{t:"s-o",8:"1a",5:"p",1w:"p",2p:I},"b-d-e":{t:"e-o",6:"1a",9:"p",1s:"p",2q:I},"b-d-w":{t:"w-o",6:"1a",9:"p",1s:"p",2r:I},"b-d-y":{t:"y-o",6:"1a",8:"1a",2q:I,2p:I},"b-d-z":{t:"z-o",6:"1a",8:"1a",2p:I,2r:I},"b-d-12":{t:"12-o",6:"1a",8:"1a",2q:I,2o:I},"b-d-x":{t:"x-o",6:"1a",8:"1a",2r:I,2o:I}};O.2s={"b-d-17":{2X:"#2S",3X:"2n 2Q #40",8:"3j",6:"3j"},"b-d-n":{t:"n-o",9:"p",5:"45%"},"b-d-s":{t:"s-o",1s:"p",5:"45%"},"b-d-e":{t:"e-o",1w:"p",9:"45%"},"b-d-w":{t:"w-o",5:"p",9:"45%"},"b-d-y":{t:"y-o",1w:"p",1s:"p"},"b-d-z":{t:"z-o",5:"p",1s:"p"},"b-d-x":{t:"x-o",5:"p",9:"p"},"b-d-12":{t:"12-o",1w:"p",9:"p"}};O.2t=4.j[0].2J;a(O.2t.2A(/3S|22|2E|3a|3b|3T/i)){f C=4.j;a(/1k/.q(C.c("g"))&&B.1j.2M){C.c({g:"1k",9:"1G",5:"1G"})}C.3R(B(\'<1F 36="b-2i" 2v="2w: 2x;">\').c({g:C.c("g"),6:C.1z(),8:C.1t(),9:C.c("9"),5:C.c("5")}));f K=4.j;4.j=4.j.1E();4.j.16("d",4);4.j.c({2j:K.c("2j"),2k:K.c("2k"),2l:K.c("2l"),2m:K.c("2m")});K.c({2j:0,2k:0,2l:0,2m:0});a(B.1j.3Q&&O.3v){K.c("o","38")}O.1l=K.c({g:"26",3O:1,2a:"2H"});4.j.c({2G:K.c("2G")});4.1K()}a(!O.u){O.u=!B(".b-d-17",4.j).1P?"e,s,y":{n:".b-d-n",e:".b-d-e",s:".b-d-s",w:".b-d-w",y:".b-d-y",z:".b-d-z",12:".b-d-12",x:".b-d-x"}}a(O.u.34==35){O.1D=O.1D||3P;a(O.u=="3U"){O.u="n,e,s,w,y,z,12,x"}f P=O.u.3V(",");O.u={};f H={17:"g: 1A; 2a: 38; 2w:2x;",n:"9: 1x; 6:20%;",e:"1w: 1x; 8:20%;",s:"1s: 1x; 6:20%;",w:"5: 1x; 8:20%;",y:"1s: 1x; 1w: p;",z:"1s: 1x; 5: p;",12:"9: 1x; 1w: p;",x:"9: 1x; 5: p;"};2C(f S=0;S\'].2f("")).c(L);O.u[T]=".b-d-"+T;4.j.32(F.c(D?U:{}).c(O.1q?E:{}).1m(O.1q?"b-d-1S-17":"").1m(O.1q))}a(O.1q){4.j.1m("b-d-1S").c(!B.b.c("b-d-1S")?{}:{})}}4.3h=h(Z){Z=Z||4.j;2C(f W 2P O.u){a(O.u[W].34==35){O.u[W]=B(O.u[W],4.j).3g()}a(O.2e){O.u[W].c({2O:0})}a(4.j.2z(".b-2i")&&O.2t.2A(/22|2E|3a|3b/i)){f X=B(O.u[W],4.j),Y=0;Y=/z|12|x|y|n|s/.q(W)?X.1t():X.1z();f V=["3u",/12|x|n/.q(W)?"3s":/y|z|s/.q(W)?"3n":/^e$/.q(W)?"3p":"3m"].2f("");a(!O.2e){Z.c(V,Y)}4.1K()}a(!B(O.u[W]).1P){3y}}};4.3h(4.j);O.1J=B(".b-d-17",N.j);a(O.1X){O.1J.1X()}O.1J.43(h(){a(!O.29){a(4.3i){f V=4.3i.2A(/b-d-(y|z|12|x|n|e|s|w)/i)}N.1y=O.1y=V&&V[1]?V[1]:"y"}});a(O.3o){O.1J.3f();B(N.j).1m("b-d-2B").3J(h(){B(4).3d("b-d-2B");O.1J.3g()},h(){a(!O.29){B(4).1m("b-d-2B");O.1J.3f()}})}4.3H()},3Z:h(){f E=4.j,D=E.4h(".b-d").1c(0);4.4p();f C=h(F){B(F).3d("b-d b-d-3k").3w("d").4o(".d").4n(".b-d-17").2u()};C(E);a(E.2z(".b-2i")&&D){E.1E().32(B(D).c({g:E.c("g"),6:E.1z(),8:E.1t(),9:E.c("9"),5:E.c("5")})).4r().2u();C(D)}},4u:h(D){a(4.m.3k){r v}f E=v;2C(f C 2P 4.m.u){a(B(4.m.u[C])[0]==D.49){E=1v}}a(!E){r v}r 1v},4j:h(D){f E=4.m,C=4.j.g(),F=4.j,I=B.1j.21&&B.1j.2b<7;E.29=1v;E.2y={9:B(1o).2R(),5:B(1o).2N()};a(F.2z(".b-4a")||(/1A/).q(F.c("g"))){f K=B.1j.21&&!E.1B&&(/1A/).q(F.c("g"))&&!(/1k/).q(F.1E().c("g"));f L=K?4.2y.9:0,H=K?4.2y.5:0;F.c({g:"1A",9:(C.9+L),5:(C.5+H)})}a(B.1j.2M&&(/1k/).q(F.c("g"))){F.c({g:"1k",9:"1G",5:"1G"})}4.2W();f M=A(4.l.c("5")),G=A(4.l.c("9"));a(E.1B){M+=B(E.1B).2N()||0;G+=B(E.1B).2R()||0}4.15=4.l.15();4.g={5:M,9:G};4.k=E.l||I?{6:F.1z(),8:F.1t()}:{6:F.6(),8:F.8()};4.19=E.l||I?{6:F.1z(),8:F.1t()}:{6:F.6(),8:F.8()};4.18={5:M,9:G};4.1i={6:F.1z()-F.6(),8:F.1t()-F.8()};4.2T={5:D.2Z,9:D.30};E.1e=(1O E.1e=="33")?E.1e:((4.19.6/4.19.8)||1);a(E.2h){f J=B(".b-d-"+4.1y).c("t");B("23").c("t",J=="1G"?4.1y+"-o":J)}4.1L("1W",D);r 1v},46:h(C){f F=4.l,E=4.m,K={},N=4,H=4.2T,L=4.1y;f O=(C.2Z-H.5)||0,M=(C.30-H.9)||0;f G=4.1h[L];a(!G){r v}f J=G.1r(4,[C,O,M]),I=B.1j.21&&B.1j.2b<7,D=4.1i;a(E.1U||C.28){J=4.2U(J,C)}J=4.2V(J,C);4.1L("o",C);F.c({9:4.g.9+"1u",5:4.g.5+"1u",6:4.k.6+"1u",8:4.k.8+"1u"});a(!E.l&&E.1l){4.1K()}4.2K(J);4.j.3q("o",[C,4.b()],4.m["o"]);r v},4d:h(F){4.m.29=v;f G=4.m,K=4;a(G.l){f E=G.1l,C=E&&(/22/i).q(E.1c(0).2J),D=C&&B.b.2c(E.1c(0),"5")?0:K.1i.8,I=C?0:K.1i.6;f L={6:(K.k.6-I),8:(K.k.8-D)},H=(11(K.j.c("5"),10)+(K.g.5-K.18.5))||1g,J=(11(K.j.c("9"),10)+(K.g.9-K.18.9))||1g;a(!G.1n){4.j.c(B.1b(L,{9:J,5:H}))}a(G.l&&!G.1n){4.1K()}}a(G.2h){B("23").c("t","1G")}4.1L("1Z",F);a(G.l){4.l.2u()}r v},2K:h(C){f D=4.m;4.15=4.l.15();a(C.5){4.g.5=C.5}a(C.9){4.g.9=C.9}a(C.8){4.k.8=C.8}a(C.6){4.k.6=C.6}},2U:h(F,E){f G=4.m,H=4.g,D=4.k,C=4.1y;a(F.8){F.6=(D.8*G.1e)}1d{a(F.6){F.8=(D.6/G.1e)}}a(C=="z"){F.5=H.5+(D.6-F.6);F.9=1g}a(C=="x"){F.9=H.9+(D.8-F.8);F.5=H.5+(D.6-F.6)}r F},2V:h(J,E){f H=4.l,G=4.m,O=G.1U||E.28,N=4.1y,Q=J.6&&G.1N&&G.1NJ.6,P=J.8&&G.1R&&G.1R>J.8;a(F){J.6=G.1Q}a(P){J.8=G.1R}a(Q){J.6=G.1N}a(K){J.8=G.1M}f D=4.18.5+4.19.6,M=4.g.9+4.k.8;f I=/z|x|w/.q(N),C=/x|12|n/.q(N);a(F&&I){J.5=D-G.1Q}a(Q&&I){J.5=D-G.1N}a(P&&C){J.9=M-G.1R}a(K&&C){J.9=M-G.1M}f L=!J.6&&!J.8;a(L&&!J.5&&J.9){J.9=1g}1d{a(L&&!J.9&&J.5){J.5=1g}}r J},1K:h(){f G=4.m;a(!G.1l){r}f E=G.1l,D=4.l||4.j;a(!G.1H){f C=[E.c("4c"),E.c("4b"),E.c("44"),E.c("47")],F=[E.c("48"),E.c("4i"),E.c("4t"),E.c("4s")];G.1H=B.4l(C,h(H,J){f I=11(H,10)||0,K=11(F[J],10)||0;r I+K})}E.c({8:(D.8()-G.1H[0]-G.1H[2])+"1u",6:(D.6()-G.1H[1]-G.1H[3])+"1u"})},2W:h(){f D=4.j,G=4.m;4.2D=D.15();a(G.l){4.l=4.l||B(\'<1F 2v="2w:2x;">\');f C=B.1j.21&&B.1j.2b<7,E=(C?1:0),F=(C?2:-1);4.l.1m(G.l).c({6:D.1z()+F,8:D.1t()+F,g:"1A",5:4.2D.5-E+"1u",9:4.2D.9-E+"1u",1D:++G.1D});4.l.3e("23");a(G.1X){4.l.1X()}}1d{4.l=D}},1h:{e:h(E,D,C){r{6:4.19.6+D}},w:h(F,D,C){f H=4.m,E=4.19,G=4.18;r{5:G.5+D,6:E.6-D}},n:h(F,D,C){f H=4.m,E=4.19,G=4.18;r{9:G.9+C,8:E.8-C}},s:h(E,D,C){r{8:4.19.8+C}},y:h(E,D,C){r B.1b(4.1h.s.1r(4,24),4.1h.e.1r(4,[E,D,C]))},z:h(E,D,C){r B.1b(4.1h.s.1r(4,24),4.1h.w.1r(4,[E,D,C]))},12:h(E,D,C){r B.1b(4.1h.n.1r(4,24),4.1h.e.1r(4,[E,D,C]))},x:h(E,D,C){r B.1b(4.1h.n.1r(4,24),4.1h.w.1r(4,[E,D,C]))}},1L:h(D,C){B.b.1I.4v(4,D,[C,4.b()]);a(D!="o"){4.j.3q(["o",D].2f(""),[C,4.b()],4.m[D])}},4q:{},b:h(){r{2g:4.2g,j:4.j,l:4.l,g:4.g,k:4.k,m:4.m,19:4.19,18:4.18}}}));B.1b(B.b.d,{2b:"@3I",3L:{13:v,1n:v,3t:"3C",3l:"3x",1e:v,3o:v,3B:":2E",1B:v,1X:1v,3N:1,3W:0,14:v,1f:v,1q:v,1M:1g,1N:1g,1R:10,1Q:10,2h:1v,3v:1v,1l:v,2e:v}});B.b.1I.1V("d","13",{1W:h(D,E){f G=E.m,C=B(4).16("d"),F=h(H){B(H).1C(h(){B(4).16("d-2L",{6:11(B(4).6(),10),8:11(B(4).8(),10),5:11(B(4).c("5"),10),9:11(B(4).c("9"),10)})})};a(1O(G.13)=="31"&&!G.13.2F){a(G.13.1P){G.13=G.13[0];F(G.13)}1d{B.1C(G.13,h(H,I){F(H)})}}1d{F(G.13)}},o:h(E,G){f H=G.m,D=B(4).16("d"),F=D.19,J=D.18;f I={8:(D.k.8-F.8)||0,6:(D.k.6-F.6)||0,9:(D.g.9-J.9)||0,5:(D.g.5-J.5)||0},C=h(K,L){B(K).1C(h(){f O=B(4).16("d-2L"),N={},M=L&&L.1P?L:["6","8","9","5"];B.1C(M||["6","8","9","5"],h(P,R){f Q=(O[R]||0)+(I[R]||0);a(Q&&Q>=0){N[R]=Q||1g}});B(4).c(N)})};a(1O(H.13)=="31"&&!H.13.2F){B.1C(H.13,h(K,L){C(K,L)})}1d{C(H.13)}},1Z:h(C,D){B(4).3w("d-2L-1W")}});B.b.1I.1V("d","1n",{1Z:h(G,L){f H=L.m,M=B(4).16("d");f F=H.1l,C=F&&(/22/i).q(F.1c(0).2J),D=C&&B.b.2c(F.1c(0),"5")?0:M.1i.8,J=C?0:M.1i.6;f E={6:(M.k.6-J),8:(M.k.8-D)},I=(11(M.j.c("5"),10)+(M.g.5-M.18.5))||1g,K=(11(M.j.c("9"),10)+(M.g.9-M.18.9))||1g;M.j.1n(B.1b(E,K&&I?{9:K,5:I}:{}),{42:H.3t,3Y:H.3l,3G:h(){f N={6:11(M.j.c("6"),10),8:11(M.j.c("8"),10),9:11(M.j.c("9"),10),5:11(M.j.c("5"),10)};a(F){F.c({6:N.6,8:N.8})}M.2K(N);M.1L("1n",G)}})}});B.b.1I.1V("d","1B",{1W:h(D,N){f H=N.m,P=B(4).16("d"),J=P.j;f E=H.1B,I=(E 4k B)?E.1c(0):(/1E/.q(E))?J.1E().1c(0):E;a(!I){r}P.1Y=B(I);a(/1o/.q(E)||E==1o){P.1T={5:0,9:0};P.2I={5:0,9:0};P.1p={j:B(1o),5:0,9:0,6:B(1o).6(),8:B(1o).8()||1o.23.2F.3r}}1d{f L=B(I),G=[];B(["3s","3p","3m","3n"]).1C(h(R,Q){G[R]=A(L.c("3u"+Q))});P.1T=L.15();P.2I=L.g();P.27={8:(L.4e()-G[3]),6:(L.4f()-G[1])};f M=P.1T,C=P.27.8,K=P.27.6,F=(B.b.2c(I,"5")?I.4g:K),O=(B.b.2c(I)?I.3r:C);P.1p={j:I,5:M.5,9:M.9,6:F,8:O}}},o:h(E,N){f G=N.m,Q=B(4).16("d"),D=Q.27,M=Q.1T,K=Q.k,L=Q.g,O=G.1U||E.28,C={9:0,5:0},F=Q.1Y;a(F[0]!=1o&&(/26/).q(F.c("g"))){C=M}a(L.5<(G.l?M.5:0)){Q.k.6=Q.k.6+(G.l?(Q.g.5-M.5):(Q.g.5-C.5));a(O){Q.k.8=Q.k.6/G.1e}Q.g.5=G.l?M.5:0}a(L.9<(G.l?M.9:0)){Q.k.8=Q.k.8+(G.l?(Q.g.9-M.9):Q.g.9);a(O){Q.k.6=Q.k.8*G.1e}Q.g.9=G.l?M.9:0}Q.15.5=Q.1p.5+Q.g.5;Q.15.9=Q.1p.9+Q.g.9;f J=2d.3c((G.l?Q.15.5-C.5:(Q.15.5-C.5))+Q.1i.6),P=2d.3c((G.l?Q.15.9-C.9:(Q.15.9-M.9))+Q.1i.8);f I=Q.1Y.1c(0)==Q.j.1E().1c(0),H=/1k|1A/.q(Q.1Y.c("g"));a(I&&H){J-=Q.1p.5}a(J+Q.k.6>=Q.1p.6){Q.k.6=Q.1p.6-J;a(O){Q.k.8=Q.k.6/G.1e}}a(P+Q.k.8>=Q.1p.8){Q.k.8=Q.1p.8-P;a(O){Q.k.6=Q.k.8*G.1e}}},1Z:h(D,K){f E=K.m,M=B(4).16("d"),I=M.g,J=M.1T,C=M.2I,F=M.1Y;f G=B(M.l),N=G.15(),L=G.1z()-M.1i.6,H=G.1t()-M.1i.8;a(E.l&&!E.1n&&(/1k/).q(F.c("g"))){B(4).c({5:N.5-C.5-J.5,6:L,8:H})}a(E.l&&!E.1n&&(/26/).q(F.c("g"))){B(4).c({5:N.5-C.5-J.5,6:L,8:H})}}});B.b.1I.1V("d","14",{1W:h(E,F){f G=F.m,C=B(4).16("d"),H=G.1l,D=C.k;a(!H){C.14=C.j.2Y()}1d{C.14=H.2Y()}C.14.c({2O:0.25,2a:"2H",g:"1k",8:D.8,6:D.6,2G:0,5:0,9:0}).1m("b-d-14").1m(1O G.14=="4m"?G.14:"");C.14.3e(C.l)},o:h(D,E){f F=E.m,C=B(4).16("d"),G=F.1l;a(C.14){C.14.c({g:"1k",8:C.k.8,6:C.k.6})}},1Z:h(D,E){f F=E.m,C=B(4).16("d"),G=F.1l;a(C.14&&C.l){C.l.1c(0).3F(C.14.1c(0))}}});B.b.1I.1V("d","1f",{o:h(C,K){f F=K.m,M=B(4).16("d"),I=M.k,G=M.19,H=M.18,L=M.1y,J=F.1U||C.28;F.1f=1O F.1f=="33"?[F.1f,F.1f]:F.1f;f E=2d.37((I.6-G.6)/(F.1f[0]||1))*(F.1f[0]||1),D=2d.37((I.8-G.8)/(F.1f[1]||1))*(F.1f[1]||1);a(/^(y|s|e)$/.q(L)){M.k.6=G.6+E;M.k.8=G.8+D}1d{a(/^(12)$/.q(L)){M.k.6=G.6+E;M.k.8=G.8+D;M.g.9=H.9-D}1d{a(/^(z)$/.q(L)){M.k.6=G.6+E;M.k.8=G.8+D;M.g.5=H.5-E}1d{M.k.6=G.6+E;M.k.8=G.8+D;M.g.9=H.9-D;M.g.5=H.5-E}}}}});f A=h(C){r 11(C,10)||0}})(3M)',62,280,'||||this|left|width||height|top|if|ui|css|resizable||var|position|function||element|size|helper|options||resize|0px|test|return||cursor|handles|false||nw|se|sw||||||||||||||||||||||||||||parseInt|ne|alsoResize|ghost|offset|data|handle|originalPosition|originalSize|4px|extend|get|else|aspectRatio|grid|null|_change|sizeDiff|browser|relative|proportionallyResize|addClass|animate|document|parentData|knobHandles|apply|bottom|outerHeight|px|true|right|0pt|axis|outerWidth|absolute|containment|each|zIndex|parent|div|auto|borderDif|plugin|_handles|_proportionallyResize|_propagate|maxHeight|maxWidth|typeof|length|minWidth|minHeight|knob|containerOffset|_aspectRatio|add|start|disableSelection|containerElement|stop|100|msie|textarea|body|arguments||static|containerSize|shiftKey|resizing|display|version|hasScroll|Math|transparent|join|originalElement|preserveCursor|wrapper|marginLeft|marginTop|marginRight|marginBottom|1px|borderTop|borderBottom|borderRight|borderLeft|knobTheme|_nodeName|remove|style|overflow|hidden|documentScroll|is|match|autohide|for|elementOffset|input|parentNode|margin|block|containerPosition|nodeName|_updateCache|alsoresize|opera|scrollLeft|opacity|in|solid|scrollTop|F2F2F2|originalMousePosition|_updateRatio|_respectSize|_renderProxy|background|clone|pageX|pageY|object|append|number|constructor|String|class|round|none|defaultTheme|select|button|abs|removeClass|appendTo|hide|show|_renderAxis|className|8px|disabled|animateEasing|Left|Bottom|autoHide|Right|triggerHandler|scrollHeight|Top|animateDuration|padding|preventDefault|removeData|swing|continue|_init|fontSize|cancel|slow|DEDEDE|mouse|removeChild|step|_mouseInit|VERSION|hover|widget|defaults|jQuery|distance|zoom|1000|safari|wrap|canvas|img|all|split|delay|border|easing|destroy|808080|trim|duration|mouseover|borderBottomWidth||_mouseDrag|borderLeftWidth|paddingTop|target|draggable|borderRightWidth|borderTopWidth|_mouseStop|innerHeight|innerWidth|scrollWidth|children|paddingRight|_mouseStart|instanceof|map|string|find|unbind|_mouseDestroy|plugins|end|paddingLeft|paddingBottom|_mouseCapture|call'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/ui.selectable.packed.js b/sites/all/libraries/jquery.ui/ui/packed/ui.selectable.packed.js new file mode 100644 index 0000000..d53172f --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/ui.selectable.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Selectable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Selectables + * + * Depends: + * ui.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(d(A){A.1u("4.5",A.T({},A.4.1v,{1x:d(){8 B=2;2.3.g("4-5");2.t=b;8 C;2.P=d(){C=A(B.9.r,B.3[0]);C.m(d(){8 D=A(2);8 E=D.1t();A.o(2,"5-p",{3:2,$3:D,k:E.k,j:E.j,L:E.k+D.u(),O:E.j+D.y(),i:b,a:D.s("4-a"),c:D.s("4-c"),6:D.s("4-6")})})};2.P();2.q=C.g("4-1q");2.1r();2.n=A(1J.1K("1F")).v({1L:"1h 1j 1D"}).g("4-5-n")},1d:d(){2.3.f("4-5 4-5-x").1c("5").1b(".5");2.19()},1a:d(E){8 C=2;2.w=[E.X,E.Y];7(2.9.x){l}8 D=2.9;2.q=A(D.r,2.3[0]);2.3.h("1e",[E,{"5":2.3[0],"9":D}],D.1f);A("W").1k(2.n);2.n.v({"z-1i":1g,"18":"1l","k":E.14,"j":E.11,"u":0,"y":0});7(D.V){2.P()}2.q.r(".4-a").m(d(){8 F=A.o(2,"5-p");F.i=e;7(!E.Q){F.$3.f("4-a");F.a=b;F.$3.g("4-6");F.6=e;C.3.h("M",[E,{5:C.3[0],6:F.3,9:D}],D.6)}});8 B=b;A(E.10).Z().12().m(d(){7(A.o(2,"5-p")){B=e}});l 2.9.15?!B:e},17:d(I){8 C=2;2.t=e;7(2.9.x){l}8 E=2.9;8 D=2.w[0],H=2.w[1],B=I.X,G=I.Y;7(D>B){8 F=B;B=D;D=F}7(H>G){8 F=G;G=H;H=F}2.n.v({k:D,j:H,u:B-D,y:G-H});2.q.m(d(){8 J=A.o(2,"5-p");7(!J||J.3==C.3[0]){l}8 K=b;7(E.R=="U"){K=(!(J.k>B||J.LG||J.OD&&J.LH&&J.O35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(6(A){A.1Q.1t=A.1Q.1t||6(B){9 3.15(6(){A(3).2w(B).2x(0).2v(3).1l()})};A.1T("k.p",{2u:6(){d B=3;3.e.1b("k-p");3.1m();3.b=A(3.7.b,3.e);4(!3.b.Y){B.b=B.1y=A(B.7.19||[0]).2r(6(){d D=A("<1s/>").1b("k-p-b").2f(B.e);4(3.1w){D.2s("1w",3.1w)}9 D[0]})}d C=6(D){3.e=A(D);3.e.V("O",3);3.7=B.7;3.e.11("1O",6(){4(B.8){3.1P(B.8)}B.U(3,t)});3.2t()};A.1p(C.1Z,A.k.O,{2y:6(){9 t},2z:6(D){9 B.1N.1i(B,D,3.e[0])},2E:6(D){9 B.1B.1i(B,D,3.e[0])},2F:6(D){9 B.1S.1i(B,D,3.e[0])},1L:6(D){3.2D(D)}});A(3.b).15(6(){2C C(3)}).2q(\'
          \').1I().11("2g",6(){9 R}).11("1G",6(D){B.U(3.1u)}).11("1P",6(D){B.1E(3.1u)}).11("2n",6(D){4(!B.7.2o){9 B.1V(D.2i,3.1u)}});3.e.11("1O.p",6(D){4(A(D.22).2j(".k-p-b")){9}B.1D.1K(B,[D]);B.8.V("O").1L(D);B.16=B.16+1});A.15(3.7.19||[],6(D,E){B.13(E.1x,D,t)});4(!T(3.7.1M)){3.13(3.7.1M,0,t)}3.Q=A(3.b[0]);4(3.b.Y==2&&3.7.17){3.1v()}},2k:6(){3.e.1C("k-p k-p-18").2A("p").2X(".p");4(3.b&&3.b.Y){3.b.1t("a");3.b.15(6(){d B=A(3).V("O");B&&B.2H()})}3.1y&&3.1y.1l()},1N:6(B,C){d D=3.7;4(D.18){9 R}3.S={J:3.e.1q(),z:3.e.1n()};4(!3.8){3.U(3.Q,t)}3.K=3.e.K();3.1z=3.8.K();3.1A={f:B.1f-3.1z.f,g:B.1e-3.1z.g};3.16=3.q();3.M("1x",B);3.1B(B,C);9 t},1B:6(C,E){d F=3.7;d B={f:C.1f-3.K.f-3.1A.f,g:C.1e-3.K.g-3.1A.g};4(!3.8){3.U(3.Q,t)}B.g=3.14(B.g,"x");B.f=3.14(B.f,"y");4(F.h.x){d D=3.w(B.g,"x");D=3.c(D/F.h.x)*F.h.x;B.g=3.r(D,"x")}4(F.h.y){d D=3.w(B.f,"y");D=3.c(D/F.h.y)*F.h.y;B.f=3.r(D,"y")}B.g=3.12(B.g,"x");B.f=3.12(B.f,"y");4(F.m!="v"){3.8.o({g:B.g})}4(F.m!="1r"){3.8.o({f:B.f})}3.8.V("O").1g={x:3.c(3.w(B.g,"x"))||0,y:3.c(3.w(B.f,"y"))||0};4(3.u){3.1j()}3.M("1a",C);9 R},1S:6(B){3.M("1c",B);4(3.16!=3.q()){3.M("28",B)}3.U(3.8,t);9 R},c:6(B){9 3.7.1U?n(B,10):2I(B)},20:6(B,C){A.1T.1Z.20.1K(3,2O);4(/j|l|W/.L(B)){3.1m()}4(B=="17"){C?3.b.Y==2&&3.1v():3.2c()}},1m:6(){d B=3.e[0],C=3.7;3.S={J:3.e.1q(),z:3.e.1n()};A.1p(C,{m:C.m||(B.2e").1b("k-p-17").o({2T:"2W"}).2f(3.e);3.1j()},2c:6(){3.u.1l();3.u=i},1j:6(){d C=3.7.m=="v"?"f":"g";d B=3.7.m=="v"?"z":"J";3.u.o(C,(3.c(A(3.b[0]).o(C))||0)+3.X(0,3.7.m=="v"?"y":"x")/2);3.u.o(B,(3.c(A(3.b[1]).o(C))||0)-(3.c(A(3.b[0]).o(C))||0))},2d:6(){9 3.u?3.w(3.c(3.u.o(3.7.m=="v"?"z":"J")),3.7.m=="v"?"y":"x"):i},25:6(){9 3.b.2K(3.8[0])},q:6(D,B){4(3.b.Y==1){3.8=3.b}4(!B){B=3.7.m=="v"?"y":"x"}d C=A(D!=s&&D!==i?3.b[D]||D:3.8);4(C.V("O").1g){9 3.c(C.V("O").1g[B])}Z{9 3.c(((3.c(C.o(B=="x"?"g":"f"))/(3.S[B=="x"?"J":"z"]-3.X(D,B)))*3.7.P[B])+3.7.j[B])}},w:6(C,B){9 3.7.j[B]+(C/(3.S[B=="x"?"J":"z"]-3.X(i,B)))*3.7.P[B]},r:6(C,B){9((C-3.7.j[B])/3.7.P[B])*(3.S[B=="x"?"J":"z"]-3.X(i,B))},12:6(D,B){4(3.u){4(3.8[0]==3.b[0]&&D>=3.r(3.q(1),B)){D=3.r(3.q(1,B)-3.1h(B),B)}4(3.8[0]==3.b[1]&&D<=3.r(3.q(0),B)){D=3.r(3.q(0,B)+3.1h(B),B)}}4(3.7.19){d C=3.7.19[3.25()];4(D<3.r(C.j,B)){D=3.r(C.j,B)}Z{4(D>3.r(C.l,B)){D=3.r(C.l,B)}}}9 D},14:6(C,B){4(C>=3.S[B=="x"?"J":"z"]-3.X(i,B)){C=3.S[B=="x"?"J":"z"]-3.X(i,B)}4(C<=0){C=0}9 C},X:6(C,B){9 A(C!=s&&C!==i?3.b[C]:3.8)[0]["K"+(B=="x"?"2S":"2R")]},1h:6(B){9 3.7.h[B]||1},27:6(B){9 10},13:6(F,E,G){d H=3.7;3.S={J:3.e.1q(),z:3.e.1n()};4(E==s&&!3.8&&3.b.Y!=1){9 R}4(E==s&&!3.8){E=0}4(E!=s){3.8=3.Q=A(3.b[E]||E)}4(F.x!==s&&F.y!==s){d B=F.x,I=F.y}Z{d B=F,I=F}4(B!==s&&B.24!=26){d D=/^\\-\\=/.L(B),C=/^\\+\\=/.L(B);4(D||C){B=3.q(i,"x")+3.c(B.29(D?"=":"+=",""))}Z{B=T(3.c(B))?s:3.c(B)}}4(I!==s&&I.24!=26){d D=/^\\-\\=/.L(I),C=/^\\+\\=/.L(I);4(D||C){I=3.q(i,"y")+3.c(I.29(D?"=":"+=",""))}Z{I=T(3.c(I))?s:3.c(I)}}4(H.m!="v"&&B!==s){4(H.h.x){B=3.c(B/H.h.x)*H.h.x}B=3.r(B,"x");B=3.14(B,"x");B=3.12(B,"x");H.N?3.8.1c().N({g:B},(2a.2b(n(3.8.o("g"),10)-B))*(!T(n(H.N,10))?H.N:5)):3.8.o({g:B})}4(H.m!="1r"&&I!==s){4(H.h.y){I=3.c(I/H.h.y)*H.h.y}I=3.r(I,"y");I=3.14(I,"y");I=3.12(I,"y");H.N?3.8.1c().N({f:I},(2a.2b(n(3.8.o("f"),10)-I))*(!T(n(H.N,10))?H.N:5)):3.8.o({f:I})}4(3.u){3.1j()}3.8.V("O").1g={x:3.c(3.w(B,"x"))||0,y:3.c(3.w(I,"y"))||0};4(!G){3.M("1x",i);3.M("1a",i);3.M("1c",i);3.M("28",i)}},M:6(C,B){A.k.2p.1i(3,C,[B,3.k()]);3.e.2l(C=="1a"?C:"1a"+C,[B,3.k()],3.7[C])},2V:{},k:6(B){9{7:3.7,b:3.8,q:3.7.m!="2P"||!3.7.m?3.c(3.q(i,3.7.m=="v"?"y":"x")):{x:3.c(3.q(i,"x")),y:3.c(3.q(i,"y"))},17:3.2d()}}});A.1p(A.k.p,{2Q:"q",2J:"@2M",2L:{N:R,23:1,b:".k-p-b",1U:t}})})(2N)',62,184,'|||this|if||function|options|currentHandle|return||handle|_round|var|element|top|left|stepping|null|min|ui|max|axis|parseInt|css|slider|value|_translateValue|undefined|true|rangeElement|vertical|_convertValue|||height||||||||||width|offset|test|_propagate|animate|mouse|realMax|previousHandle|false|actualSize|isNaN|_focus|data|steps|_handleSize|length|else||bind|_translateRange|moveTo|_translateLimits|each|firstValue|range|disabled|handles|slide|addClass|stop|35|pageX|pageY|sliderValue|_oneStep|call|_updateRange|37|remove|_initBoundaries|outerHeight|40|extend|outerWidth|horizontal|div|unwrap|firstChild|_createRange|id|start|generated|handleOffset|clickOffset|_drag|removeClass|_click|_blur|39|focus|38|parent|active|apply|trigger|startValue|_start|mousedown|blur|fn|none|_stop|widget|round|_keydown|36|100|offsetHeight|prototype|_setData|34|target|distance|constructor|_handleIndex|Number|_pageStep|change|replace|Math|abs|_removeRange|_getRange|offsetWidth|appendTo|click|border|keyCode|is|destroy|triggerHandler|outline|keydown|noKeyboard|plugin|wrap|map|attr|_mouseInit|_init|after|parents|eq|_mouseCapture|_mouseStart|removeData|href|new|_mouseDown|_mouseDrag|_mouseStop|style|_mouseDestroy|parseFloat|version|index|defaults|VERSION|jQuery|arguments|both|getter|Height|Width|position|33|plugins|absolute|unbind'.split('|'),0,{})) diff --git a/sites/all/libraries/jquery.ui/ui/packed/ui.sortable.packed.js b/sites/all/libraries/jquery.ui/ui/packed/ui.sortable.packed.js new file mode 100644 index 0000000..c52904b --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/packed/ui.sortable.packed.js @@ -0,0 +1,12 @@ +/* + * jQuery UI Sortable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Sortables + * + * Depends: + * ui.core.js + */ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(d(A){A.3U("f.k",A.26({},A.f.3V,{3W:d(){6 B=4.a;4.11={};4.u.27("f-k");4.2J();4.1i=4.m.z?(/7|1n/).1U(4.m[0].v.j("3X")):w;4.b=4.u.b();4.3T()},3S:d(){4.u.1S("f-k f-k-1P").2T("k").3O(".k");4.3N();N(6 B=4.m.z-1;B>=0;B--){4.m[B].v.2T("k-v")}},3P:d(E,F){5(4.1X){l w}5(4.a.1P||4.a.2R=="3n"){l w}4.2v(E);6 D=P,C=4,B=A(E.1L).2G().1D(d(){5(A.12(4,"k-v")==C){D=A(4);l w}});5(A.12(E.1L,"k-v")==C){D=A(E.1L)}5(!D){l w}5(4.a.2S&&!F){6 G=w;A(4.a.2S,D).38("*").3Q().1D(d(){5(4==E.1L){G=Z}});5(!G){l w}}4.c=D;4.36();l Z},3R:d(D,E,B){6 F=4.a;4.1v=4;4.25();4.e=4.2D(D);4.2n();4.2C();4.p=4.e.p();4.b=4.c.b();4.b={8:4.b.8-4.Q.8,7:4.b.7-4.Q.7};4.e.j("14","1k");4.17=4.e.j("14");A.26(4.b,{13:{7:D.1p-4.b.7,8:D.1t-4.b.8},q:4.1O(),V:4.2o()});5(F.2U){4.2I(F.2U)}4.1s=4.2q(D);4.1m={1h:4.c.1h()[0],q:4.c.q()[0]};5(4.e[0]!=4.c[0]){4.c.3Y()}4.34();5(F.n){4.3m()}4.O("1J",D);5(!4.3Z){4.2n()}5(!B){N(6 C=4.h.z-1;C>=0;C--){4.h[C].O("46",D,4)}}5(A.f.18){A.f.18.47=4}5(A.f.18&&!F.2p){A.f.18.3i(4,D)}4.1Q=Z;4.e.27("f-k-e");4.2V(D);l Z},2V:d(E){4.14=4.2q(E);4.Y=4.2f("1k");5(!4.1B){4.1B=4.Y}A.f.1r.15(4,"1F",[E,4.1E()]);4.Y=4.2f("1k");5(!4.a.1R||4.a.1R!="y"){4.e[0].1f.7=4.14.7+"2W"}5(!4.a.1R||4.a.1R!="x"){4.e[0].1f.8=4.14.8+"2W"}N(6 C=4.m.z-1;C>=0;C--){6 D=4.m[C],B=D.v[0],F=4.2Y(D);5(!F){23}5(B!=4.c[0]&&4.t[F==1?"48":"1h"]()[0]!=B&&!A.f.1q(4.t[0],B)&&(4.a.2R=="49-45"?!A.f.1q(4.u[0],B):Z)){4.3j=F==1?"1u":"2z";5(4.a.24=="2r"||4.37(D)){4.a.22.15(4,E,D)}T{2Q}4.O("2e",E);2Q}}4.32(E);5(A.f.18){A.f.18.44(4,E)}4.40("1F",E,4.1E());4.1B=4.Y;l w},3M:d(C,D){5(!C){l}5(A.f.18&&!4.a.2p){A.f.18.41(4,C)}5(4.a.2L){6 B=4;6 E=B.t.b();B.1X=Z;A(4.e).42({7:E.7-4.b.q.7-B.Q.7+(4.W[0]==o.16?0:4.W[0].S),8:E.8-4.b.q.8-B.Q.8+(4.W[0]==o.16?0:4.W[0].U)},R(4.a.2L,10)||43,d(){B.2b(C)})}T{4.2b(C,D)}l w},2A:d(){5(4.1Q){4.4a();5(4.a.e=="1Y"){4.c.j(4.1j).1S("f-k-e")}T{4.c.3e()}N(6 B=4.h.z-1;B>=0;B--){4.h[B].O("3f",P,4);5(4.h[B].11.1a){4.h[B].O("2a",P,4);4.h[B].11.1a=0}}}5(4.t[0].1d){4.t[0].1d.2j(4.t[0])}5(4.a.e!="1Y"&&4.e&&4.e[0].1d){4.e.2w()}A.26(4,{e:P,1Q:w,1X:w,2c:P});5(4.1m.1h){A(4.1m.1h).31(4.c)}T{A(4.1m.q).3K(4.c)}l Z},3t:d(D){6 B=4.2s(D&&D.2N);6 C=[];D=D||{};A(B).1D(d(){6 E=(A(D.v||4).2P(D.2O||"2X")||"").3A(D.2M||(/(.+)[-=3D](.+)/));5(E){C.1e((D.2K||E[1]+"[]")+"="+(D.2K&&D.2M?E[1]:E[2]))}});l C.3C("&")},3s:d(D){6 B=4.2s(D&&D.2N);6 C=[];D=D||{};B.1D(d(){C.1e(A(D.v||4).2P(D.2O||"2X")||"")});l C},33:d(K){6 D=4.Y.7,C=D+4.X.s,J=4.Y.8,I=J+4.X.r;6 E=K.7,B=E+K.s,L=K.8,H=L+K.r;6 M=4.b.13.8,G=4.b.13.7;6 F=(J+M)>L&&(J+M)E&&(D+G)K[4.1i?"s":"r"])){l F}T{l(E0?"1u":"2z")},2x:d(){6 B=4.Y.7-4.1B.7;l B!=0&&(B>0?"1n":"7")},2J:d(B){4.2v(B);4.25()},2s:d(G){6 C=4;6 B=[];6 E=[];5(4.a.1w&&G){N(6 F=4.a.1w.z-1;F>=0;F--){6 I=A(4.a.1w[F]);N(6 D=I.z-1;D>=0;D--){6 H=A.12(I[D],"k");5(H&&H!=4&&!H.a.1P){E.1e([A.1A(H.a.m)?H.a.m.15(H.u):A(H.a.m,H.u).28(".f-k-e"),H])}}}}E.1e([A.1A(4.a.m)?4.a.m.15(4.u,P,{a:4.a,v:4.c}):A(4.a.m,4.u).28(".f-k-e"),4]);N(6 F=E.z-1;F>=0;F--){E[F][0].1D(d(){B.1e(4)})}l A(B)},36:d(){6 D=4.c.38(":12(k-v)");N(6 C=0;C<4.m.z;C++){N(6 B=0;B=0;E--){6 J=A(4.a.1w[E]);N(6 D=J.z-1;D>=0;D--){6 G=A.12(J[D],"k");5(G&&G!=4&&!G.a.1P){F.1e([A.1A(G.a.m)?G.a.m.15(G.u[0],B,{v:4.c}):A(G.a.m,G.u),G]);4.h.1e(G)}}}}N(6 E=F.z-1;E>=0;E--){6 I=F[E][1];6 C=F[E][0];N(6 D=0,K=C.z;D=0;D--){6 E=4.m[D];5(E.39!=4.1v&&4.1v&&E.v[0]!=4.c[0]){23}6 C=4.a.3a?A(4.a.3a,E.v):E.v;5(!B){5(4.a.3v){E.s=C.2y();E.r=C.2m()}T{E.s=C[0].1M;E.r=C[0].1V}}6 F=C.b();E.7=F.7;E.8=F.8}5(4.a.2d&&4.a.2d.35){4.a.2d.35.15(4)}T{N(6 D=4.h.z-1;D>=0;D--){6 F=4.h[D].u.b();4.h[D].11.7=F.7;4.h[D].11.8=F.8;4.h[D].11.s=4.h[D].u.2y();4.h[D].11.r=4.h[D].u.2m()}}},34:d(D){6 B=D||4,E=B.a;5(!E.t||E.t.4F==4E){6 C=E.t;E.t={u:d(){6 F=A(o.4H(B.c[0].4L)).27(C||B.c[0].4J+" f-k-t").1S("f-k-e")[0];5(!C){F.1f.4K="3u";o.16.29(F);F.30=B.c[0].30.2Z(/4C\\=\\"[^\\"\\\']+\\"/g,"").2Z(/3d[0-9]+\\=\\"[^\\"\\\']+\\"/g,"");o.16.2j(F)}l F},1C:d(F,G){5(C&&!E.3q){l}5(!G.r()){G.r(B.c.4i()-R(B.c.j("4j")||0,10)-R(B.c.j("4k")||0,10))}5(!G.s()){G.s(B.c.4h()-R(B.c.j("4x")||0,10)-R(B.c.j("4c")||0,10))}}}}B.t=A(E.t.u.15(B.u,B.c));B.c.31(B.t);E.t.1C(B,B.t)},32:d(D){N(6 C=4.h.z-1;C>=0;C--){5(4.33(4.h[C].11)){5(!4.h[C].11.1a){5(4.1v!=4.h[C]){6 H=4f;6 G=P;6 E=4.Y[4.h[C].1i?"7":"8"];N(6 B=4.m.z-1;B>=0;B--){5(!A.f.1q(4.h[C].u[0],4.m[B].v[0])){23}6 F=4.m[B][4.h[C].1i?"7":"8"];5(1y.3b(F-E)4.n[2]){B.7=4.n[2]-4.X.s}5(B.8+4.X.r>4.n[3]){B.8=4.n[3]-4.X.r}}5(G.19){6 F=4.1s.8+1y.3c((B.8-4.1s.8)/G.19[1])*G.19[1];B.8=4.n?(!(F<4.n[1]||F>4.n[3])?F:(!(F<4.n[1])?F-G.19[1]:F+G.19[1])):F;6 E=4.1s.7+1y.3c((B.7-4.1s.7)/G.19[0])*G.19[0];B.7=4.n?(!(E<4.n[0]||E>4.n[2])?E:(!(E<4.n[0])?E-G.19[0]:E+G.19[0])):E}l B},3o:d(G,F,C,E){C?C[0].29(4.t[0]):F.v[0].1d.4l(4.t[0],(4.3j=="1u"?F.v[0]:F.v[0].4e));4.1H=4.1H?++4.1H:1;6 D=4,B=4.1H;1l.4d(d(){5(B==D.1H){D.25(!E)}},0)},2b:d(C,D){4.1X=w;5(!4.2c){4.t.4w(4.c)}4.2c=P;5(4.e[0]==4.c[0]){N(6 B 4G 4.1j){5(4.1j[B]=="3r"||4.1j[B]=="3n"){4.1j[B]=""}}4.c.j(4.1j).1S("f-k-e")}T{4.c.3e()}5(4.1m.1h!=4.c.1h().28(".f-k-e")[0]||4.1m.q!=4.c.q()[0]){4.O("1C",C,P,D)}5(!A.f.1q(4.u[0],4.c[0])){4.O("2w",C,P,D);N(6 B=4.h.z-1;B>=0;B--){5(A.f.1q(4.h[B].u[0],4.c[0])){4.h[B].O("1C",C,4,D);4.h[B].O("4y",C,4,D)}}}N(6 B=4.h.z-1;B>=0;B--){4.h[B].O("3f",C,4,D);5(4.h[B].11.1a){4.h[B].O("2a",C,4);4.h[B].11.1a=0}}4.1Q=w;5(4.4A){4.O("1I",C,P,D);4.O("3g",C,P,D);l w}4.O("1I",C,P,D);4.t[0].1d.2j(4.t[0]);5(4.a.e!="1Y"){4.e.2w()}4.e=P;4.O("3g",C,P,D);l Z},O:d(F,B,C,D){A.f.1r.15(4,F,[B,4.1E(C)]);6 E=!D?4.u.4D(F=="1F"?F:"1F"+F,[B,4.1E(C)],4.a[F]):Z;5(E===w){4.2A()}},4B:{},1E:d(C){6 B=C||4;l{e:B.e,t:B.t||A([]),14:B.14,4z:B.Y,v:B.c,4I:C?C.u:P}}}));A.26(A.f.k,{4b:"3t 3s",3y:"@3z",3E:{3v:Z,2B:"q",2A:":3I",3F:0,3L:1,3h:Z,3q:w,2i:w,e:"1Y",m:"> *",3H:"3k",1W:Z,1c:20,1b:20,22:A.f.k.3J.3o,24:"3k",1g:3B}});A.f.1r.1T("k","1o",{1J:d(D,E){6 C=A("16"),B=A(4).12("k");5(C.j("1o")){B.a.2g=C.j("1o")}C.j("1o",B.a.1o)},1I:d(C,D){6 B=A(4).12("k");5(B.a.2g){A("16").j("1o",B.a.2g)}}});A.f.1r.1T("k","1z",{1J:d(D,E){6 C=E.e,B=A(4).12("k");5(C.j("1z")){B.a.2k=C.j("1z")}C.j("1z",B.a.1z)},1I:d(C,D){6 B=A(4).12("k");5(B.a.2k){A(D.e).j("1z",B.a.2k)}}});A.f.1r.1T("k","1W",{1J:d(C,D){6 B=A(4).12("k"),E=B.a;5(B.p[0]!=o&&B.p[0].1x!="3l"){B.1G=B.p.b()}},1F:d(D,E){6 C=A(4).12("k"),F=C.a,B=w;5(C.p[0]!=o&&C.p[0].1x!="3l"){5((C.1G.8+C.p[0].1V)-D.1t35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4(A){A.2C("8.3",{2u:4(){2.1f(1d)},1e:4(){6 B=2.h;2.X.16(".3").q(B.1B).1r("3");2.$3.13(4(){6 C=A.i(2,"n.3");5(C){2.n=C}6 D=A(2).16(".3");A.13(["n","o","y"],4(E,F){D.1r(F+".3")})});2.$e.1b(2.$b).13(4(){5(A.i(2,"1e.3")){A(2).1a()}m{A(2).q([B.l,B.12,B.V,B.19,B.t].14(" "))}});5(B.r){2.17(c,B.r)}},2n:4(B,C){5((/^7/).2m(B)){2.1c(C)}m{2.h[B]=C;2.1f()}},k:4(){d 2.$3.k},1A:4(B){d B.1R&&B.1R.W(/\\s/g,"1W").W(/[^A-2B-28-9\\-1W:\\.]/g,"")||2.h.1X+A.i(B)},1o:4(B){d B.W(/:/g,"\\\\:")},17:4(){6 B=2.r||(2.r="8-3-"+A.i(2.X[0]));d A.r.2e(c,[B].20(A.2b(27)))},1f:4(N){2.$e=A("1g:2o(a[n])",2.X);2.$3=2.$e.1p(4(){d A("a",2)[0]});2.$b=A([]);6 O=2,C=2.h;2.$3.13(4(Q,P){5(P.z&&P.z.W("#","")){O.$b=O.$b.1b(O.1o(P.z))}m{5(A(P).1z("n")!="#"){A.i(P,"n.3",P.n);A.i(P,"o.3",P.n);6 S=O.1A(P);P.n="#"+S;6 R=A("#"+S);5(!R.k){R=A(C.1x).1z("1Y",S).j(C.19).26(O.$b[Q-1]||O.X);R.i("1e.3",1d)}O.$b=O.$b.1b(R)}m{C.f.1i(Q+1)}}});5(N){2.X.j(C.1B);2.$b.j(C.19);5(C.7===1l){5(21.z){2.$3.13(4(Q,P){5(P.z==21.z){C.7=Q;d p}})}m{5(C.r){6 I=2g(O.17(),10);5(I&&O.$3[I]){C.7=I}}m{5(O.$e.x("."+C.l).k){C.7=O.$e.w(O.$e.x("."+C.l)[0])}}}}C.7=C.7===c||C.7!==1l?C.7:0;C.f=A.2d(C.f.20(A.1p(2.$e.x("."+C.V),4(Q,P){d O.$e.w(Q)}))).1M();5(A.1m(C.7,C.f)!=-1){C.f.29(A.1m(C.7,C.f),1)}2.$b.j(C.t);2.$e.q(C.l);5(C.7!==c){2.$b.u(C.7).q(C.t);6 E=[C.l];5(C.11){E.1i(C.12)}2.$e.u(C.7).j(E.14(" "));6 J=4(){O.v("1s",c,O.8(O.$3[C.7],O.$b[C.7]))};5(A.i(2.$3[C.7],"o.3")){2.o(C.7,J)}m{J()}}A(25).18("2a",4(){O.$3.16(".3");O.$e=O.$3=O.$b=c})}m{C.7=2.$e.w(2.$e.x("."+C.l)[0])}5(C.r){2.17(C.7,C.r)}2c(6 G=0,M;M=2.$e[G];G++){A(M)[A.1m(G,C.f)!=-1&&!A(M).Z(C.l)?"j":"q"](C.V)}5(C.y===p){2.$3.1r("y.3")}6 B,H;5(C.Y){5(C.Y.2w==2v){B=C.Y[0];H=C.Y[1]}m{B=H=C.Y}}4 D(P,Q){P.1F({1v:""});5(A.1w.1N&&Q.2i){P[0].2y.2j("x")}}6 K=H?4(P,Q){Q.24(H,H.23||"1Q",4(){Q.q(C.t);D(Q,H);O.v("1s",c,O.8(P,Q[0]))})}:4(P,Q){Q.q(C.t);O.v("1s",c,O.8(P,Q[0]))};6 L=B?4(Q,P,R){P.24(B,B.23||"1Q",4(){P.j(C.t);D(P,B);5(R){K(Q,R,P)}})}:4(Q,P,R){P.j(C.t);5(R){K(Q,R)}};4 F(R,T,P,S){6 Q=[C.l];5(C.11){Q.1i(C.12)}T.j(Q.14(" ")).2r().q(Q.14(" "));L(R,P,S)}2.$3.16(".3").18(C.U+".3",4(){6 S=A(2).2q("1g:u(0)"),P=O.$b.x(":2p"),R=A(O.1o(2.z));5((S.Z(C.l)&&!C.11)||S.Z(C.V)||A(2).Z(C.15)||O.v("1c",c,O.8(2,R[0]))===p){2.1h();d p}C.7=O.$3.w(2);5(C.11){5(S.Z(C.l)){O.h.7=c;S.q([C.l,C.12].14(" "));O.$b.1t();L(2,P);2.1h();d p}m{5(!P.k){O.$b.1t();6 Q=2;O.o(O.$3.w(2),4(){S.j([C.l,C.12].14(" "));K(Q,R)});2.1h();d p}}}5(C.r){O.17(C.7,C.r)}O.$b.1t();5(R.k){6 Q=2;O.o(O.$3.w(2),P.k?4(){F(Q,S,P,R)}:4(){S.j(C.l);K(Q,R)})}m{2k"1P 2l 2s: 2t 2z 2A."}5(A.1w.1N){2.1h()}d p});5(C.U!="1D"){2.$3.18("1D.3",4(){d p})}},1b:4(E,D,C){5(C==1l){C=2.$3.k}6 G=2.h;6 I=A(G.1T.W(/#\\{n\\}/g,E).W(/#\\{1q\\}/g,D));I.i("1e.3",1d);6 H=E.2x("#")==0?E.W("#",""):2.1A(A("a:2h-2f",I)[0]);6 F=A("#"+H);5(!F.k){F=A(G.1x).1z("1Y",H).j(G.t).i("1e.3",1d)}F.j(G.19);5(C>=2.$e.k){I.1K(2.X);F.1K(2.X[0].2H)}m{I.1J(2.$e[C]);F.1J(2.$b[C])}G.f=A.1p(G.f,4(K,J){d K>=C?++K:K});2.1f();5(2.$3.k==1){I.j(G.l);F.q(G.t);6 B=A.i(2.$3[0],"o.3");5(B){2.o(C,B)}}2.v("1b",c,2.8(2.$3[C],2.$b[C]))},1a:4(B){6 D=2.h,E=2.$e.u(B).1a(),C=2.$b.u(B).1a();5(E.Z(D.l)&&2.$3.k>1){2.1c(B+(B+1<2.$3.k?1:-1))}D.f=A.1p(A.1H(D.f,4(G,F){d G!=B}),4(G,F){d G>=B?--G:G});2.1f();2.v("1a",c,2.8(E.1E("a")[0],C[0]))},1L:4(B){6 C=2.h;5(A.1m(B,C.f)==-1){d}6 D=2.$e.u(B).q(C.V);5(A.1w.33){D.1F("1v","34-1I");35(4(){D.1F("1v","1I")},0)}C.f=A.1H(C.f,4(F,E){d F!=B});2.v("1L",c,2.8(2.$3[B],2.$b[B]))},1O:4(C){6 B=2,D=2.h;5(C!=D.7){2.$e.u(C).j(D.V);D.f.1i(C);D.f.1M();2.v("1O",c,2.8(2.$3[C],2.$b[C]))}},1c:4(B){5(32 B=="31"){B=2.$3.w(2.$3.x("[n$="+B+"]")[0])}2.$3.u(B).2Y(2.h.U+".3")},o:4(G,K){6 L=2,D=2.h,E=2.$3.u(G),J=E[0],H=K==1l||K===p,B=E.i("o.3");K=K||4(){};5(!B||!H&&A.i(J,"y.3")){K();d}6 M=4(N){6 O=A(N),P=O.1E("*:2Z");d P.k&&P.30(":36(37)")&&P||O};6 C=4(){L.$3.x("."+D.15).q(D.15).13(4(){5(D.1n){M(2).38().1j(M(2).i("1q.3"))}});L.1k=c};5(D.1n){6 I=M(J).1j();M(J).2D("<1u>").1E("1u").i("1q.3",I).1j(D.1n)}6 F=A.1y({},D.1G,{1S:B,22:4(P,N){A(L.1o(J.z)).1j(P);C();5(D.y){A.i(J,"y.3",1d)}L.v("o",c,L.8(L.$3[G],L.$b[G]));2X{D.1G.22(P,N)}2K(O){}K()}});5(2.1k){2.1k.2I();C()}E.j(D.15);L.1k=A.2E(F)},1S:4(C,B){2.$3.u(C).1r("y.3").i("o.3",B)},8:4(C,B){d{h:2.h,2F:C,1V:B,w:2.$3.w(C)}}});A.1y(A.8.3,{2G:"@2M",2N:"k",2T:{1G:c,y:p,r:c,11:p,12:"8-3-11",f:[],V:"8-3-f",U:"1D",Y:c,t:"8-3-2U",1X:"8-3-",15:"8-3-2V",1B:"8-3-2S",19:"8-3-1V",1x:"<1U>",l:"8-3-7",1n:"2RO;",1T:\'<1g><1Z>#{1q}\'}});A.1y(A.8.3.2Q,{1C:c,2P:4(C,F){F=F||p;6 B=2,E=2.h.7;4 G(){B.1C=2L(4(){E=++E').insertBefore(options.headers); + $('').appendTo(options.headers); + options.headers.addClass("ui-accordion-header"); + } + + var maxHeight; + if ( options.fillSpace ) { + maxHeight = this.element.parent().height(); + options.headers.each(function() { + maxHeight -= $(this).outerHeight(); + }); + var maxPadding = 0; + options.headers.next().each(function() { + maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height()); + }).height(maxHeight - maxPadding); + } else if ( options.autoHeight ) { + maxHeight = 0; + options.headers.next().each(function() { + maxHeight = Math.max(maxHeight, $(this).outerHeight()); + }).height(maxHeight); + } + + this.element.attr('role','tablist'); + + var self=this; + options.headers + .attr('role','tab') + .bind('keydown', function(event) { return self._keydown(event); }) + .next() + .attr('role','tabpanel'); + + options.headers + .not(options.active || "") + .attr('aria-expanded','false') + .attr("tabIndex", "-1") + .next() + .hide(); + + // make sure at least one header is in the tab order + if (!options.active.length) { + options.headers.eq(0).attr('tabIndex','0'); + } else { + options.active + .attr('aria-expanded','true') + .attr("tabIndex", "0") + .parent().andSelf().addClass(options.selectedClass); + } + + // only need links in taborder for Safari + if (!$.browser.safari) + options.headers.find('a').attr('tabIndex','-1'); + + if (options.event) { + this.element.bind((options.event) + ".accordion", clickHandler); + } + }, + + destroy: function() { + this.options.headers.parent().andSelf().removeClass(this.options.selectedClass); + this.options.headers.prev(".ui-accordion-left").remove(); + this.options.headers.children(".ui-accordion-right").remove(); + this.options.headers.next().css("display", ""); + if ( this.options.fillSpace || this.options.autoHeight ) { + this.options.headers.next().css("height", ""); + } + $.removeData(this.element[0], "accordion"); + + this.element.removeClass("ui-accordion").unbind(".accordion"); + }, + + _keydown: function(event) { + if (this.options.disabled || event.altKey || event.ctrlKey) + return; + + var keyCode = $.ui.keyCode; + + var length = this.options.headers.length; + var currentIndex = this.options.headers.index(event.target); + var toFocus = false; + + switch(event.keyCode) { + case keyCode.RIGHT: + case keyCode.DOWN: + toFocus = this.options.headers[(currentIndex + 1) % length]; + break; + case keyCode.LEFT: + case keyCode.UP: + toFocus = this.options.headers[(currentIndex - 1 + length) % length]; + break; + case keyCode.SPACE: + case keyCode.ENTER: + return clickHandler.call(this.element[0], { target: event.target }); + } + + if (toFocus) { + $(event.target).attr('tabIndex','-1'); + $(toFocus).attr('tabIndex','0'); + toFocus.focus(); + return false; + } + + return true; + }, + + activate: function(index) { + // call clickHandler with custom event + clickHandler.call(this.element[0], { + target: findActive( this.options.headers, index )[0] + }); + } + +}); + +function scopeCallback(callback, scope) { + return function() { + return callback.apply(scope, arguments); + }; +}; + +function completed(cancel) { + // if removed while animated data can be empty + if (!$.data(this, "accordion")) { + return; + } + + var instance = $.data(this, "accordion"); + var options = instance.options; + options.running = cancel ? 0 : --options.running; + if ( options.running ) { + return; + } + if ( options.clearStyle ) { + options.toShow.add(options.toHide).css({ + height: "", + overflow: "" + }); + } + instance._trigger('change', null, options.data); +} + +function toggle(toShow, toHide, data, clickedActive, down) { + var options = $.data(this, "accordion").options; + options.toShow = toShow; + options.toHide = toHide; + options.data = data; + var complete = scopeCallback(completed, this); + + $.data(this, "accordion")._trigger("changestart", null, options.data); + + // count elements to animate + options.running = toHide.size() === 0 ? toShow.size() : toHide.size(); + + if ( options.animated ) { + var animOptions = {}; + + if ( !options.alwaysOpen && clickedActive ) { + animOptions = { + toShow: $([]), + toHide: toHide, + complete: complete, + down: down, + autoHeight: options.autoHeight + }; + } else { + animOptions = { + toShow: toShow, + toHide: toHide, + complete: complete, + down: down, + autoHeight: options.autoHeight + }; + } + + if (!options.proxied) { + options.proxied = options.animated; + } + + if (!options.proxiedDuration) { + options.proxiedDuration = options.duration; + } + + options.animated = $.isFunction(options.proxied) ? + options.proxied(animOptions) : options.proxied; + + options.duration = $.isFunction(options.proxiedDuration) ? + options.proxiedDuration(animOptions) : options.proxiedDuration; + + var animations = $.ui.accordion.animations, + duration = options.duration, + easing = options.animated; + + if (!animations[easing]) { + animations[easing] = function(options) { + this.slide(options, { + easing: easing, + duration: duration || 700 + }); + }; + } + + animations[easing](animOptions); + + } else { + if ( !options.alwaysOpen && clickedActive ) { + toShow.toggle(); + } else { + toHide.hide(); + toShow.show(); + } + complete(true); + } + toHide.prev().attr('aria-expanded','false').attr("tabIndex", "-1"); + toShow.prev().attr('aria-expanded','true').attr("tabIndex", "0").focus();; +} + +function clickHandler(event) { + var options = $.data(this, "accordion").options; + if (options.disabled) { + return false; + } + + // called only when using activate(false) to close all parts programmatically + if ( !event.target && !options.alwaysOpen ) { + options.active.parent().andSelf().toggleClass(options.selectedClass); + var toHide = options.active.next(), + data = { + options: options, + newHeader: $([]), + oldHeader: options.active, + newContent: $([]), + oldContent: toHide + }, + toShow = (options.active = $([])); + toggle.call(this, toShow, toHide, data ); + return false; + } + // get the click target + var clicked = $(event.target); + + // due to the event delegation model, we have to check if one + // of the parent elements is our actual header, and find that + // otherwise stick with the initial target + clicked = $( clicked.parents(options.header)[0] || clicked ); + + var clickedActive = clicked[0] == options.active[0]; + + // if animations are still active, or the active header is the target, ignore click + if (options.running || (options.alwaysOpen && clickedActive)) { + return false; + } + if (!clicked.is(options.header)) { + return; + } + + // switch classes + options.active.parent().andSelf().toggleClass(options.selectedClass); + if ( !clickedActive ) { + clicked.parent().andSelf().addClass(options.selectedClass); + } + + // find elements to show and hide + var toShow = clicked.next(), + toHide = options.active.next(), + data = { + options: options, + newHeader: clickedActive && !options.alwaysOpen ? $([]) : clicked, + oldHeader: options.active, + newContent: clickedActive && !options.alwaysOpen ? $([]) : toShow, + oldContent: toHide + }, + down = options.headers.index( options.active[0] ) > options.headers.index( clicked[0] ); + + options.active = clickedActive ? $([]) : clicked; + toggle.call(this, toShow, toHide, data, clickedActive, down ); + + return false; +}; + +function findActive(headers, selector) { + return selector + ? typeof selector == "number" + ? headers.filter(":eq(" + selector + ")") + : headers.not(headers.not(selector)) + : selector === false + ? $([]) + : headers.filter(":eq(0)"); +} + +$.extend($.ui.accordion, { + version: "1.6", + defaults: { + autoHeight: true, + alwaysOpen: true, + animated: 'slide', + event: "click", + header: "a", + navigationFilter: function() { + return this.href.toLowerCase() == location.href.toLowerCase(); + }, + running: 0, + selectedClass: "selected" + }, + animations: { + slide: function(options, additions) { + options = $.extend({ + easing: "swing", + duration: 300 + }, options, additions); + if ( !options.toHide.size() ) { + options.toShow.animate({height: "show"}, options); + return; + } + var hideHeight = options.toHide.height(), + showHeight = options.toShow.height(), + difference = showHeight / hideHeight, + padding = options.toShow.outerHeight() - options.toShow.height(), + margin = options.toShow.css('marginBottom'), + overflow = options.toShow.css('overflow') + tmargin = options.toShow.css('marginTop'); + options.toShow.css({ height: 0, overflow: 'hidden', marginTop: 0, marginBottom: -padding }).show(); + options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate({height:"hide"},{ + step: function(now) { + var current = (hideHeight - now) * difference; + if ($.browser.msie || $.browser.opera) { + current = Math.ceil(current); + } + options.toShow.height( current ); + }, + duration: options.duration, + easing: options.easing, + complete: function() { + if ( !options.autoHeight ) { + options.toShow.css("height", "auto"); + } + options.toShow.css({marginTop: tmargin, marginBottom: margin, overflow: overflow}); + options.complete(); + } + }); + }, + bounceslide: function(options) { + this.slide(options, { + easing: options.down ? "easeOutBounce" : "swing", + duration: options.down ? 1000 : 200 + }); + }, + easeslide: function(options) { + this.slide(options, { + easing: "easeinout", + duration: 700 + }); + } + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.core.js b/sites/all/libraries/jquery.ui/ui/ui.core.js new file mode 100644 index 0000000..42a04ab --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.core.js @@ -0,0 +1,529 @@ +/* + * jQuery UI 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ +;(function($) { + +var _remove = $.fn.remove, + isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9); + +//Helper functions and ui object +$.ui = { + + version: "1.6", + + // $.ui.plugin is deprecated. Use the proxy pattern instead. + plugin: { + add: function(module, option, set) { + var proto = $.ui[module].prototype; + for(var i in set) { + proto.plugins[i] = proto.plugins[i] || []; + proto.plugins[i].push([option, set[i]]); + } + }, + call: function(instance, name, args) { + var set = instance.plugins[name]; + if(!set) { return; } + + for (var i = 0; i < set.length; i++) { + if (instance.options[set[i][0]]) { + set[i][1].apply(instance.element, args); + } + } + } + }, + + contains: function(a, b) { + var safari2 = $.browser.safari && $.browser.version < 522; + if (a.contains && !safari2) { + return a.contains(b); + } + if (a.compareDocumentPosition) + return !!(a.compareDocumentPosition(b) & 16); + while (b = b.parentNode) + if (b == a) return true; + return false; + }, + + cssCache: {}, + css: function(name) { + if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; } + var tmp = $('
          ').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body'); + + //if (!$.browser.safari) + //tmp.appendTo('body'); + + //Opera and Safari set width and height to 0px instead of auto + //Safari returns rgba(0,0,0,0) when bgcolor is not set + $.ui.cssCache[name] = !!( + (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) || + !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))) + ); + try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){} + return $.ui.cssCache[name]; + }, + + hasScroll: function(el, a) { + + //If overflow is hidden, the element might have extra content, but the user wants to hide it + if ($(el).css('overflow') == 'hidden') { return false; } + + var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop', + has = false; + + if (el[scroll] > 0) { return true; } + + // TODO: determine which cases actually cause this to happen + // if the element doesn't have the scroll set, see if it's possible to + // set the scroll + el[scroll] = 1; + has = (el[scroll] > 0); + el[scroll] = 0; + return has; + }, + + isOverAxis: function(x, reference, size) { + //Determines when x coordinate is over "b" element axis + return (x > reference) && (x < (reference + size)); + }, + + isOver: function(y, x, top, left, height, width) { + //Determines when x, y coordinates is over "b" element + return $.ui.isOverAxis(y, top, height) && $.ui.isOverAxis(x, left, width); + }, + + keyCode: { + BACKSPACE: 8, + CAPS_LOCK: 20, + COMMA: 188, + CONTROL: 17, + DELETE: 46, + DOWN: 40, + END: 35, + ENTER: 13, + ESCAPE: 27, + HOME: 36, + INSERT: 45, + 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, + SHIFT: 16, + SPACE: 32, + TAB: 9, + UP: 38 + } + +}; + +// WAI-ARIA normalization +if (isFF2) { + var attr = $.attr, + removeAttr = $.fn.removeAttr, + ariaNS = "http://www.w3.org/2005/07/aaa", + ariaState = /^aria-/, + ariaRole = /^wairole:/; + + $.attr = function(elem, name, value) { + var set = value !== undefined; + + return (name == 'role' + ? (set + ? attr.call(this, elem, name, "wairole:" + value) + : (attr.apply(this, arguments) || "").replace(ariaRole, "")) + : (ariaState.test(name) + ? (set + ? elem.setAttributeNS(ariaNS, + name.replace(ariaState, "aaa:"), value) + : attr.call(this, elem, name.replace(ariaState, "aaa:"))) + : attr.apply(this, arguments))); + }; + + $.fn.removeAttr = function(name) { + return (ariaState.test(name) + ? this.each(function() { + this.removeAttributeNS(ariaNS, name.replace(ariaState, "")); + }) : removeAttr.call(this, name)); + }; +} + +//jQuery plugins +$.fn.extend({ + + remove: function() { + // Safari has a native remove event which actually removes DOM elements, + // so we have to use triggerHandler instead of trigger (#3037). + $("*", this).add(this).each(function() { + $(this).triggerHandler("remove"); + }); + return _remove.apply(this, arguments ); + }, + + enableSelection: function() { + return this + .attr('unselectable', 'off') + .css('MozUserSelect', '') + .unbind('selectstart.ui'); + }, + + disableSelection: function() { + return this + .attr('unselectable', 'on') + .css('MozUserSelect', 'none') + .bind('selectstart.ui', function() { return false; }); + }, + + scrollParent: function() { + + var scrollParent; + if(($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { + scrollParent = this.parents().filter(function() { + return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); + }).eq(0); + } else { + scrollParent = this.parents().filter(function() { + return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); + }).eq(0); + } + + return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent; + + + } + +}); + + +//Additional selectors +$.extend($.expr[':'], { + + data: function(a, i, m) { + return $.data(a, m[3]); + }, + + // TODO: add support for object, area + tabbable: function(a, i, m) { + + var nodeName = a.nodeName.toLowerCase(); + function isVisible(element) { + return !($(element).is(':hidden') || $(element).parents(':hidden').length); + } + + return ( + // in tab order + a.tabIndex >= 0 && + + ( // filter node types that participate in the tab order + + // anchor tag + ('a' == nodeName && a.href) || + + // enabled form element + (/input|select|textarea|button/.test(nodeName) && + 'hidden' != a.type && !a.disabled) + ) && + + // visible on page + isVisible(a) + ); + + } + +}); + + +// $.widget is a factory to create jQuery plugins +// taking some boilerplate code out of the plugin code +function getter(namespace, plugin, method, args) { + function getMethods(type) { + var methods = $[namespace][plugin][type] || []; + return (typeof methods == 'string' ? methods.split(/,?\s+/) : methods); + } + + var methods = getMethods('getter'); + if (args.length == 1 && typeof args[0] == 'string') { + methods = methods.concat(getMethods('getterSetter')); + } + return ($.inArray(method, methods) != -1); +} + +$.widget = function(name, prototype) { + var namespace = name.split(".")[0]; + name = name.split(".")[1]; + + // create plugin method + $.fn[name] = function(options) { + var isMethodCall = (typeof options == 'string'), + args = Array.prototype.slice.call(arguments, 1); + + // prevent calls to internal methods + if (isMethodCall && options.substring(0, 1) == '_') { + return this; + } + + // handle getter methods + if (isMethodCall && getter(namespace, name, options, args)) { + var instance = $.data(this[0], name); + return (instance ? instance[options].apply(instance, args) + : undefined); + } + + // handle initialization and non-getter methods + return this.each(function() { + var instance = $.data(this, name); + + // constructor + (!instance && !isMethodCall && + $.data(this, name, new $[namespace][name](this, options))); + + // method call + (instance && isMethodCall && $.isFunction(instance[options]) && + instance[options].apply(instance, args)); + }); + }; + + // create widget constructor + $[namespace] = $[namespace] || {}; + $[namespace][name] = function(element, options) { + var self = this; + + this.widgetName = name; + this.widgetEventPrefix = $[namespace][name].eventPrefix || name; + this.widgetBaseClass = namespace + '-' + name; + + this.options = $.extend({}, + $.widget.defaults, + $[namespace][name].defaults, + $.metadata && $.metadata.get(element)[name], + options); + + this.element = $(element) + .bind('setData.' + name, function(event, key, value) { + return self._setData(key, value); + }) + .bind('getData.' + name, function(event, key) { + return self._getData(key); + }) + .bind('remove', function() { + return self.destroy(); + }); + + this._init(); + }; + + // add widget prototype + $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype); + + // TODO: merge getter and getterSetter properties from widget prototype + // and plugin prototype + $[namespace][name].getterSetter = 'option'; +}; + +$.widget.prototype = { + _init: function() {}, + destroy: function() { + this.element.removeData(this.widgetName); + }, + + option: function(key, value) { + var options = key, + self = this; + + if (typeof key == "string") { + if (value === undefined) { + return this._getData(key); + } + options = {}; + options[key] = value; + } + + $.each(options, function(key, value) { + self._setData(key, value); + }); + }, + _getData: function(key) { + return this.options[key]; + }, + _setData: function(key, value) { + this.options[key] = value; + + if (key == 'disabled') { + this.element[value ? 'addClass' : 'removeClass']( + this.widgetBaseClass + '-disabled'); + } + }, + + enable: function() { + this._setData('disabled', false); + }, + disable: function() { + this._setData('disabled', true); + }, + + _trigger: function(type, event, data) { + var eventName = (type == this.widgetEventPrefix + ? type : this.widgetEventPrefix + type); + event = event || $.event.fix({ type: eventName, target: this.element[0] }); + return this.element.triggerHandler(eventName, [event, data], this.options[type]); + } +}; + +$.widget.defaults = { + disabled: false +}; + + +/** Mouse Interaction Plugin **/ + +$.ui.mouse = { + _mouseInit: function() { + var self = this; + + this.element + .bind('mousedown.'+this.widgetName, function(event) { + return self._mouseDown(event); + }) + .bind('click.'+this.widgetName, function(event) { + if(self._preventClickEvent) { + self._preventClickEvent = false; + return false; + } + }); + + // Prevent text selection in IE + if ($.browser.msie) { + this._mouseUnselectable = this.element.attr('unselectable'); + this.element.attr('unselectable', 'on'); + } + + this.started = false; + }, + + // TODO: make sure destroying one instance of mouse doesn't mess with + // other instances of mouse + _mouseDestroy: function() { + this.element.unbind('.'+this.widgetName); + + // Restore text selection in IE + ($.browser.msie + && this.element.attr('unselectable', this._mouseUnselectable)); + }, + + _mouseDown: function(event) { + // we may have missed mouseup (out of window) + (this._mouseStarted && this._mouseUp(event)); + + this._mouseDownEvent = event; + + var self = this, + btnIsLeft = (event.which == 1), + elIsCancel = (typeof this.options.cancel == "string" ? $(event.target).parents().add(event.target).filter(this.options.cancel).length : false); + if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) { + return true; + } + + this.mouseDelayMet = !this.options.delay; + if (!this.mouseDelayMet) { + this._mouseDelayTimer = setTimeout(function() { + self.mouseDelayMet = true; + }, this.options.delay); + } + + if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { + this._mouseStarted = (this._mouseStart(event) !== false); + if (!this._mouseStarted) { + event.preventDefault(); + return true; + } + } + + // these delegates are required to keep context + this._mouseMoveDelegate = function(event) { + return self._mouseMove(event); + }; + this._mouseUpDelegate = function(event) { + return self._mouseUp(event); + }; + $(document) + .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) + .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); + + // preventDefault() is used to prevent the selection of text here - + // however, in Safari, this causes select boxes not to be selectable + // anymore, so this fix is needed + if(!$.browser.safari) event.preventDefault(); + return true; + }, + + _mouseMove: function(event) { + // IE mouseup check - mouseup happened when mouse was out of window + if ($.browser.msie && !event.button) { + return this._mouseUp(event); + } + + if (this._mouseStarted) { + this._mouseDrag(event); + return event.preventDefault(); + } + + if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { + this._mouseStarted = + (this._mouseStart(this._mouseDownEvent, event) !== false); + (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event)); + } + + return !this._mouseStarted; + }, + + _mouseUp: function(event) { + $(document) + .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) + .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); + + if (this._mouseStarted) { + this._mouseStarted = false; + this._preventClickEvent = true; + this._mouseStop(event); + } + + return false; + }, + + _mouseDistanceMet: function(event) { + return (Math.max( + Math.abs(this._mouseDownEvent.pageX - event.pageX), + Math.abs(this._mouseDownEvent.pageY - event.pageY) + ) >= this.options.distance + ); + }, + + _mouseDelayMet: function(event) { + return this.mouseDelayMet; + }, + + // These are placeholder methods, to be overriden by extending plugin + _mouseStart: function(event) {}, + _mouseDrag: function(event) {}, + _mouseStop: function(event) {}, + _mouseCapture: function(event) { return true; } +}; + +$.ui.mouse.defaults = { + cancel: null, + distance: 1, + delay: 0 +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.datepicker.js b/sites/all/libraries/jquery.ui/ui/ui.datepicker.js new file mode 100644 index 0000000..dc30369 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.datepicker.js @@ -0,0 +1,1754 @@ +/* + * jQuery UI Datepicker 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Datepicker + * + * Depends: + * ui.core.js + */ + +(function($) { // hide the namespace + +$.extend($.ui, { datepicker: { version: "1.6" } }); + +var PROP_NAME = 'datepicker'; + +/* Date picker manager. + Use the singleton instance of this class, $.datepicker, to interact with the date picker. + Settings for (groups of) date pickers are maintained in an instance object, + allowing multiple different settings on the same page. */ + +function Datepicker() { + this.debug = false; // Change this to true to start debugging + this._curInst = null; // The current instance in use + this._keyEvent = false; // If the last event was a key event + this._disabledInputs = []; // List of date picker inputs that have been disabled + this._datepickerShowing = false; // True if the popup picker is showing , false if not + this._inDialog = false; // True if showing within a "dialog", false if not + this._mainDivId = 'ui-datepicker-div'; // The ID of the main datepicker division + this._inlineClass = 'ui-datepicker-inline'; // The name of the inline marker class + this._appendClass = 'ui-datepicker-append'; // The name of the append marker class + this._triggerClass = 'ui-datepicker-trigger'; // The name of the trigger marker class + this._dialogClass = 'ui-datepicker-dialog'; // The name of the dialog marker class + this._promptClass = 'ui-datepicker-prompt'; // The name of the dialog prompt marker class + this._disableClass = 'ui-datepicker-disabled'; // The name of the disabled covering marker class + this._unselectableClass = 'ui-datepicker-unselectable'; // The name of the unselectable cell marker class + this._currentClass = 'ui-datepicker-current-day'; // The name of the current day marker class + this._dayOverClass = 'ui-datepicker-days-cell-over'; // The name of the day hover marker class + this._weekOverClass = 'ui-datepicker-week-over'; // The name of the week hover marker class + this.regional = []; // Available regional settings, indexed by language code + this.regional[''] = { // Default regional settings + clearText: 'Clear', // Display text for clear link + clearStatus: 'Erase the current date', // Status text for clear link + closeText: 'Close', // Display text for close link + closeStatus: 'Close without change', // Status text for close link + prevText: '<Prev', // Display text for previous month link + prevStatus: 'Show the previous month', // Status text for previous month link + prevBigText: '<<', // Display text for previous year link + prevBigStatus: 'Show the previous year', // Status text for previous year link + nextText: 'Next>', // Display text for next month link + nextStatus: 'Show the next month', // Status text for next month link + nextBigText: '>>', // Display text for next year link + nextBigStatus: 'Show the next year', // Status text for next year link + currentText: 'Today', // Display text for current month link + currentStatus: 'Show the current month', // Status text for current month link + monthNames: ['January','February','March','April','May','June', + 'July','August','September','October','November','December'], // Names of months for drop-down and formatting + monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting + monthStatus: 'Show a different month', // Status text for selecting a month + yearStatus: 'Show a different year', // Status text for selecting a year + weekHeader: 'Wk', // Header for the week of the year column + weekStatus: 'Week of the year', // Status text for the week of the year column + dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting + dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting + dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday + dayStatus: 'Set DD as first week day', // Status text for the day of the week selection + dateStatus: 'Select DD, M d', // Status text for the date selection + dateFormat: 'mm/dd/yy', // See format options on parseDate + firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ... + initStatus: 'Select a date', // Initial Status text on opening + isRTL: false // True if right-to-left language, false if left-to-right + }; + this._defaults = { // Global defaults for all the date picker instances + showOn: 'focus', // 'focus' for popup on focus, + // 'button' for trigger button, or 'both' for either + showAnim: 'show', // Name of jQuery animation for popup + showOptions: {}, // Options for enhanced animations + defaultDate: null, // Used when field is blank: actual date, + // +/-number for offset from today, null for today + appendText: '', // Display text following the input box, e.g. showing the format + buttonText: '...', // Text for trigger button + buttonImage: '', // URL for trigger button image + buttonImageOnly: false, // True if the image appears alone, false if it appears on a button + closeAtTop: true, // True to have the clear/close at the top, + // false to have them at the bottom + mandatory: false, // True to hide the Clear link, false to include it + hideIfNoPrevNext: false, // True to hide next/previous month links + // if not applicable, false to just disable them + navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links + showBigPrevNext: false, // True to show big prev/next links + gotoCurrent: false, // True if today link goes back to current selection instead + changeMonth: true, // True if month can be selected directly, false if only prev/next + changeYear: true, // True if year can be selected directly, false if only prev/next + showMonthAfterYear: false, // True if the year select precedes month, false for month then year + yearRange: '-10:+10', // Range of years to display in drop-down, + // either relative to current year (-nn:+nn) or absolute (nnnn:nnnn) + changeFirstDay: true, // True to click on day name to change, false to remain as set + highlightWeek: false, // True to highlight the selected week + showOtherMonths: false, // True to show dates in other months, false to leave blank + showWeeks: false, // True to show week of the year, false to omit + calculateWeek: this.iso8601Week, // How to calculate the week of the year, + // takes a Date and returns the number of the week for it + shortYearCutoff: '+10', // Short year values < this are in the current century, + // > this are in the previous century, + // string value starting with '+' for current year + value + showStatus: false, // True to show status bar at bottom, false to not show it + statusForDate: this.dateStatus, // Function to provide status text for a date - + // takes date and instance as parameters, returns display text + minDate: null, // The earliest selectable date, or null for no limit + maxDate: null, // The latest selectable date, or null for no limit + duration: 'normal', // Duration of display/closure + beforeShowDay: null, // Function that takes a date and returns an array with + // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '', + // [2] = cell title (optional), e.g. $.datepicker.noWeekends + beforeShow: null, // Function that takes an input field and + // returns a set of custom settings for the date picker + onSelect: null, // Define a callback function when a date is selected + onChangeMonthYear: null, // Define a callback function when the month or year is changed + onClose: null, // Define a callback function when the datepicker is closed + numberOfMonths: 1, // Number of months to show at a time + showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0) + stepMonths: 1, // Number of months to step back/forward + stepBigMonths: 12, // Number of months to step back/forward for the big links + rangeSelect: false, // Allows for selecting a date range on one date picker + rangeSeparator: ' - ', // Text between two dates in a range + altField: '', // Selector for an alternate field to store selected dates into + altFormat: '', // The date format to use for the alternate field + constrainInput: true // The input is constrained by the current date format + }; + $.extend(this._defaults, this.regional['']); + this.dpDiv = $(''); +} + +$.extend(Datepicker.prototype, { + /* Class name added to elements to indicate already configured with a date picker. */ + markerClassName: 'hasDatepicker', + + /* Debug logging (if enabled). */ + log: function () { + if (this.debug) + console.log.apply('', arguments); + }, + + /* Override the default settings for all instances of the date picker. + @param settings object - the new settings to use as defaults (anonymous object) + @return the manager object */ + setDefaults: function(settings) { + extendRemove(this._defaults, settings || {}); + return this; + }, + + /* Attach the date picker to a jQuery selection. + @param target element - the target input field or division or span + @param settings object - the new settings to use for this date picker instance (anonymous) */ + _attachDatepicker: function(target, settings) { + // check for settings on the control itself - in namespace 'date:' + var inlineSettings = null; + for (var attrName in this._defaults) { + var attrValue = target.getAttribute('date:' + attrName); + if (attrValue) { + inlineSettings = inlineSettings || {}; + try { + inlineSettings[attrName] = eval(attrValue); + } catch (err) { + inlineSettings[attrName] = attrValue; + } + } + } + var nodeName = target.nodeName.toLowerCase(); + var inline = (nodeName == 'div' || nodeName == 'span'); + if (!target.id) + target.id = 'dp' + (++this.uuid); + var inst = this._newInst($(target), inline); + inst.settings = $.extend({}, settings || {}, inlineSettings || {}); + if (nodeName == 'input') { + this._connectDatepicker(target, inst); + } else if (inline) { + this._inlineDatepicker(target, inst); + } + }, + + /* Create a new instance object. */ + _newInst: function(target, inline) { + var id = target[0].id.replace(/([:\[\]\.])/g, '\\\\$1'); // escape jQuery meta chars + return {id: id, input: target, // associated target + selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection + drawMonth: 0, drawYear: 0, // month being drawn + inline: inline, // is datepicker inline or not + dpDiv: (!inline ? this.dpDiv : // presentation div + $('
          '))}; + }, + + /* Attach the date picker to an input field. */ + _connectDatepicker: function(target, inst) { + var input = $(target); + if (input.hasClass(this.markerClassName)) + return; + var appendText = this._get(inst, 'appendText'); + var isRTL = this._get(inst, 'isRTL'); + if (appendText) + input[isRTL ? 'before' : 'after']('' + appendText + ''); + var showOn = this._get(inst, 'showOn'); + if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field + input.focus(this._showDatepicker); + if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked + var buttonText = this._get(inst, 'buttonText'); + var buttonImage = this._get(inst, 'buttonImage'); + var trigger = $(this._get(inst, 'buttonImageOnly') ? + $('').addClass(this._triggerClass). + attr({ src: buttonImage, alt: buttonText, title: buttonText }) : + $('').addClass(this._triggerClass). + html(buttonImage == '' ? buttonText : $('').attr( + { src:buttonImage, alt:buttonText, title:buttonText }))); + input[isRTL ? 'before' : 'after'](trigger); + trigger.click(function() { + if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target) + $.datepicker._hideDatepicker(); + else + $.datepicker._showDatepicker(target); + return false; + }); + } + input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress). + bind("setData.datepicker", function(event, key, value) { + inst.settings[key] = value; + }).bind("getData.datepicker", function(event, key) { + return this._get(inst, key); + }); + $.data(target, PROP_NAME, inst); + }, + + /* Attach an inline date picker to a div. */ + _inlineDatepicker: function(target, inst) { + var divSpan = $(target); + if (divSpan.hasClass(this.markerClassName)) + return; + divSpan.addClass(this.markerClassName).append(inst.dpDiv). + bind("setData.datepicker", function(event, key, value){ + inst.settings[key] = value; + }).bind("getData.datepicker", function(event, key){ + return this._get(inst, key); + }); + $.data(target, PROP_NAME, inst); + this._setDate(inst, this._getDefaultDate(inst)); + this._updateDatepicker(inst); + this._updateAlternate(inst); + }, + + /* Pop-up the date picker in a "dialog" box. + @param input element - ignored + @param dateText string - the initial date to display (in the current format) + @param onSelect function - the function(dateText) to call when a date is selected + @param settings object - update the dialog date picker instance's settings (anonymous object) + @param pos int[2] - coordinates for the dialog's position within the screen or + event - with x/y coordinates or + leave empty for default (screen centre) + @return the manager object */ + _dialogDatepicker: function(input, dateText, onSelect, settings, pos) { + var inst = this._dialogInst; // internal instance + if (!inst) { + var id = 'dp' + (++this.uuid); + this._dialogInput = $(''); + this._dialogInput.keydown(this._doKeyDown); + $('body').append(this._dialogInput); + inst = this._dialogInst = this._newInst(this._dialogInput, false); + inst.settings = {}; + $.data(this._dialogInput[0], PROP_NAME, inst); + } + extendRemove(inst.settings, settings || {}); + this._dialogInput.val(dateText); + + this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null); + if (!this._pos) { + var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; + var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + this._pos = // should use actual width/height below + [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY]; + } + + // move input on screen for focus, but hidden behind dialog + this._dialogInput.css('left', this._pos[0] + 'px').css('top', this._pos[1] + 'px'); + inst.settings.onSelect = onSelect; + this._inDialog = true; + this.dpDiv.addClass(this._dialogClass); + this._showDatepicker(this._dialogInput[0]); + if ($.blockUI) + $.blockUI(this.dpDiv); + $.data(this._dialogInput[0], PROP_NAME, inst); + return this; + }, + + /* Detach a datepicker from its control. + @param target element - the target input field or division or span */ + _destroyDatepicker: function(target) { + var $target = $(target); + if (!$target.hasClass(this.markerClassName)) { + return; + } + var nodeName = target.nodeName.toLowerCase(); + $.removeData(target, PROP_NAME); + if (nodeName == 'input') { + $target.siblings('.' + this._appendClass).remove().end(). + siblings('.' + this._triggerClass).remove().end(). + removeClass(this.markerClassName). + unbind('focus', this._showDatepicker). + unbind('keydown', this._doKeyDown). + unbind('keypress', this._doKeyPress); + } else if (nodeName == 'div' || nodeName == 'span') + $target.removeClass(this.markerClassName).empty(); + }, + + /* Enable the date picker to a jQuery selection. + @param target element - the target input field or division or span */ + _enableDatepicker: function(target) { + var $target = $(target); + if (!$target.hasClass(this.markerClassName)) { + return; + } + var nodeName = target.nodeName.toLowerCase(); + if (nodeName == 'input') { + target.disabled = false; + $target.siblings('button.' + this._triggerClass). + each(function() { this.disabled = false; }).end(). + siblings('img.' + this._triggerClass). + css({opacity: '1.0', cursor: ''}); + } + else if (nodeName == 'div' || nodeName == 'span') { + $target.children('.' + this._disableClass).remove(); + } + this._disabledInputs = $.map(this._disabledInputs, + function(value) { return (value == target ? null : value); }); // delete entry + }, + + /* Disable the date picker to a jQuery selection. + @param target element - the target input field or division or span */ + _disableDatepicker: function(target) { + var $target = $(target); + if (!$target.hasClass(this.markerClassName)) { + return; + } + var nodeName = target.nodeName.toLowerCase(); + if (nodeName == 'input') { + target.disabled = true; + $target.siblings('button.' + this._triggerClass). + each(function() { this.disabled = true; }).end(). + siblings('img.' + this._triggerClass). + css({opacity: '0.5', cursor: 'default'}); + } + else if (nodeName == 'div' || nodeName == 'span') { + var inline = $target.children('.' + this._inlineClass); + var offset = inline.offset(); + var relOffset = {left: 0, top: 0}; + inline.parents().each(function() { + if ($(this).css('position') == 'relative') { + relOffset = $(this).offset(); + return false; + } + }); + $target.prepend('
          '); + } + this._disabledInputs = $.map(this._disabledInputs, + function(value) { return (value == target ? null : value); }); // delete entry + this._disabledInputs[this._disabledInputs.length] = target; + }, + + /* Is the first field in a jQuery collection disabled as a datepicker? + @param target element - the target input field or division or span + @return boolean - true if disabled, false if enabled */ + _isDisabledDatepicker: function(target) { + if (!target) + return false; + for (var i = 0; i < this._disabledInputs.length; i++) { + if (this._disabledInputs[i] == target) + return true; + } + return false; + }, + + /* Retrieve the instance data for the target control. + @param target element - the target input field or division or span + @return object - the associated instance data + @throws error if a jQuery problem getting data */ + _getInst: function(target) { + try { + return $.data(target, PROP_NAME); + } + catch (err) { + throw 'Missing instance data for this datepicker'; + } + }, + + /* Update the settings for a date picker attached to an input field or division. + @param target element - the target input field or division or span + @param name object - the new settings to update or + string - the name of the setting to change or + @param value any - the new value for the setting (omit if above is an object) */ + _optionDatepicker: function(target, name, value) { + var settings = name || {}; + if (typeof name == 'string') { + settings = {}; + settings[name] = value; + } + var inst = this._getInst(target); + if (inst) { + if (this._curInst == inst) { + this._hideDatepicker(null); + } + extendRemove(inst.settings, settings); + var date = new Date(); + extendRemove(inst, {rangeStart: null, // start of range + endDay: null, endMonth: null, endYear: null, // end of range + selectedDay: date.getDate(), selectedMonth: date.getMonth(), + selectedYear: date.getFullYear(), // starting point + currentDay: date.getDate(), currentMonth: date.getMonth(), + currentYear: date.getFullYear(), // current selection + drawMonth: date.getMonth(), drawYear: date.getFullYear()}); // month being drawn + this._updateDatepicker(inst); + } + }, + + // change method deprecated + _changeDatepicker: function(target, name, value) { + this._optionDatepicker(target, name, value); + }, + + /* Redraw the date picker attached to an input field or division. + @param target element - the target input field or division or span */ + _refreshDatepicker: function(target) { + var inst = this._getInst(target); + if (inst) { + this._updateDatepicker(inst); + } + }, + + /* Set the dates for a jQuery selection. + @param target element - the target input field or division or span + @param date Date - the new date + @param endDate Date - the new end date for a range (optional) */ + _setDateDatepicker: function(target, date, endDate) { + var inst = this._getInst(target); + if (inst) { + this._setDate(inst, date, endDate); + this._updateDatepicker(inst); + this._updateAlternate(inst); + } + }, + + /* Get the date(s) for the first entry in a jQuery selection. + @param target element - the target input field or division or span + @return Date - the current date or + Date[2] - the current dates for a range */ + _getDateDatepicker: function(target) { + var inst = this._getInst(target); + if (inst && !inst.inline) + this._setDateFromField(inst); + return (inst ? this._getDate(inst) : null); + }, + + /* Handle keystrokes. */ + _doKeyDown: function(event) { + var inst = $.datepicker._getInst(event.target); + var handled = true; + inst._keyEvent = true; + if ($.datepicker._datepickerShowing) + switch (event.keyCode) { + case 9: $.datepicker._hideDatepicker(null, ''); + break; // hide on tab out + case 13: var sel = $('td.' + $.datepicker._dayOverClass + + ', td.' + $.datepicker._currentClass, inst.dpDiv); + if (sel[0]) + $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]); + else + $.datepicker._hideDatepicker(null, $.datepicker._get(inst, 'duration')); + return false; // don't submit the form + break; // select the value on enter + case 27: $.datepicker._hideDatepicker(null, $.datepicker._get(inst, 'duration')); + break; // hide on escape + case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ? + -$.datepicker._get(inst, 'stepBigMonths') : + -$.datepicker._get(inst, 'stepMonths')), 'M'); + break; // previous month/year on page up/+ ctrl + case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ? + +$.datepicker._get(inst, 'stepBigMonths') : + +$.datepicker._get(inst, 'stepMonths')), 'M'); + break; // next month/year on page down/+ ctrl + case 35: if (event.ctrlKey || event.metaKey) $.datepicker._clearDate(event.target); + handled = event.ctrlKey || event.metaKey; + break; // clear on ctrl or command +end + case 36: if (event.ctrlKey || event.metaKey) $.datepicker._gotoToday(event.target); + handled = event.ctrlKey || event.metaKey; + break; // current on ctrl or command +home + case 37: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -1, 'D'); + handled = event.ctrlKey || event.metaKey; + // -1 day on ctrl or command +left + if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ? + -$.datepicker._get(inst, 'stepBigMonths') : + -$.datepicker._get(inst, 'stepMonths')), 'M'); + // next month/year on alt +left on Mac + break; + case 38: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -7, 'D'); + handled = event.ctrlKey || event.metaKey; + break; // -1 week on ctrl or command +up + case 39: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +1, 'D'); + handled = event.ctrlKey || event.metaKey; + // +1 day on ctrl or command +right + if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ? + +$.datepicker._get(inst, 'stepBigMonths') : + +$.datepicker._get(inst, 'stepMonths')), 'M'); + // next month/year on alt +right + break; + case 40: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +7, 'D'); + handled = event.ctrlKey || event.metaKey; + break; // +1 week on ctrl or command +down + default: handled = false; + } + else if (event.keyCode == 36 && event.ctrlKey) // display the date picker on ctrl+home + $.datepicker._showDatepicker(this); + else { + handled = false; + } + if (handled) { + event.preventDefault(); + event.stopPropagation(); + } + }, + + /* Filter entered characters - based on date format. */ + _doKeyPress: function(event) { + var inst = $.datepicker._getInst(event.target); + if ($.datepicker._get(inst, 'constrainInput')) { + var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat')); + var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode); + return event.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1); + } + }, + + /* Pop-up the date picker for a given input field. + @param input element - the input field attached to the date picker or + event - if triggered by focus */ + _showDatepicker: function(input) { + input = input.target || input; + if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger + input = $('input', input.parentNode)[0]; + if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here + return; + var inst = $.datepicker._getInst(input); + var beforeShow = $.datepicker._get(inst, 'beforeShow'); + extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {})); + $.datepicker._hideDatepicker(null, ''); + $.datepicker._lastInput = input; + $.datepicker._setDateFromField(inst); + if ($.datepicker._inDialog) // hide cursor + input.value = ''; + if (!$.datepicker._pos) { // position below input + $.datepicker._pos = $.datepicker._findPos(input); + $.datepicker._pos[1] += input.offsetHeight; // add the height + } + var isFixed = false; + $(input).parents().each(function() { + isFixed |= $(this).css('position') == 'fixed'; + return !isFixed; + }); + if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled + $.datepicker._pos[0] -= document.documentElement.scrollLeft; + $.datepicker._pos[1] -= document.documentElement.scrollTop; + } + var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]}; + $.datepicker._pos = null; + inst.rangeStart = null; + // determine sizing offscreen + inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'}); + $.datepicker._updateDatepicker(inst); + // fix width for dynamic number of date pickers + inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1] * + $('.ui-datepicker', inst.dpDiv[0])[0].offsetWidth); + // and adjust position before showing + offset = $.datepicker._checkOffset(inst, offset, isFixed); + inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ? + 'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none', + left: offset.left + 'px', top: offset.top + 'px'}); + if (!inst.inline) { + var showAnim = $.datepicker._get(inst, 'showAnim') || 'show'; + var duration = $.datepicker._get(inst, 'duration'); + var postProcess = function() { + $.datepicker._datepickerShowing = true; + if ($.browser.msie && parseInt($.browser.version,10) < 7) // fix IE < 7 select problems + $('iframe.ui-datepicker-cover').css({width: inst.dpDiv.width() + 4, + height: inst.dpDiv.height() + 4}); + }; + if ($.effects && $.effects[showAnim]) + inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); + else + inst.dpDiv[showAnim](duration, postProcess); + if (duration == '') + postProcess(); + if (inst.input[0].type != 'hidden') + inst.input[0].focus(); + $.datepicker._curInst = inst; + } + }, + + /* Generate the date picker content. */ + _updateDatepicker: function(inst) { + var dims = {width: inst.dpDiv.width() + 4, + height: inst.dpDiv.height() + 4}; + inst.dpDiv.empty().append(this._generateHTML(inst)). + find('iframe.ui-datepicker-cover'). + css({width: dims.width, height: dims.height}); + var numMonths = this._getNumberOfMonths(inst); + inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') + + 'Class']('ui-datepicker-multi'); + inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') + + 'Class']('ui-datepicker-rtl'); + if (inst.input && inst.input[0].type != 'hidden' && inst == $.datepicker._curInst) + $(inst.input[0]).focus(); + }, + + /* Check positioning to remain on screen. */ + _checkOffset: function(inst, offset, isFixed) { + var pos = inst.input ? this._findPos(inst.input[0]) : null; + var browserWidth = window.innerWidth || (document.documentElement ? + document.documentElement.clientWidth : document.body.clientWidth); + var browserHeight = window.innerHeight || (document.documentElement ? + document.documentElement.clientHeight : document.body.clientHeight); + var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; + var scrollY = document.documentElement.scrollTop || document.body.scrollTop; + // reposition date picker horizontally if outside the browser window + if (this._get(inst, 'isRTL') || (offset.left + inst.dpDiv.width() - scrollX) > browserWidth) + offset.left = Math.max((isFixed ? 0 : scrollX), + pos[0] + (inst.input ? inst.input.width() : 0) - (isFixed ? scrollX : 0) - inst.dpDiv.width() - + (isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0)); + else + offset.left -= (isFixed ? scrollX : 0); + // reposition date picker vertically if outside the browser window + if ((offset.top + inst.dpDiv.height() - scrollY) > browserHeight) + offset.top = Math.max((isFixed ? 0 : scrollY), + pos[1] - (isFixed ? scrollY : 0) - (this._inDialog ? 0 : inst.dpDiv.height()) - + (isFixed && $.browser.opera ? document.documentElement.scrollTop : 0)); + else + offset.top -= (isFixed ? scrollY : 0); + return offset; + }, + + /* Find an object's position on the screen. */ + _findPos: function(obj) { + while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) { + obj = obj.nextSibling; + } + var position = $(obj).offset(); + return [position.left, position.top]; + }, + + /* Hide the date picker from view. + @param input element - the input field attached to the date picker + @param duration string - the duration over which to close the date picker */ + _hideDatepicker: function(input, duration) { + var inst = this._curInst; + if (!inst || (input && inst != $.data(input, PROP_NAME))) + return; + var rangeSelect = this._get(inst, 'rangeSelect'); + if (rangeSelect && inst.stayOpen) + this._selectDate('#' + inst.id, this._formatDate(inst, + inst.currentDay, inst.currentMonth, inst.currentYear)); + inst.stayOpen = false; + if (this._datepickerShowing) { + duration = (duration != null ? duration : this._get(inst, 'duration')); + var showAnim = this._get(inst, 'showAnim'); + var postProcess = function() { + $.datepicker._tidyDialog(inst); + }; + if (duration != '' && $.effects && $.effects[showAnim]) + inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), + duration, postProcess); + else + inst.dpDiv[(duration == '' ? 'hide' : (showAnim == 'slideDown' ? 'slideUp' : + (showAnim == 'fadeIn' ? 'fadeOut' : 'hide')))](duration, postProcess); + if (duration == '') + this._tidyDialog(inst); + var onClose = this._get(inst, 'onClose'); + if (onClose) + onClose.apply((inst.input ? inst.input[0] : null), + [(inst.input ? inst.input.val() : ''), inst]); // trigger custom callback + this._datepickerShowing = false; + this._lastInput = null; + inst.settings.prompt = null; + if (this._inDialog) { + this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' }); + if ($.blockUI) { + $.unblockUI(); + $('body').append(this.dpDiv); + } + } + this._inDialog = false; + } + this._curInst = null; + }, + + /* Tidy up after a dialog display. */ + _tidyDialog: function(inst) { + inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker'); + $('.' + this._promptClass, inst.dpDiv).remove(); + }, + + /* Close date picker if clicked elsewhere. */ + _checkExternalClick: function(event) { + if (!$.datepicker._curInst) + return; + var $target = $(event.target); + if (($target.parents('#' + $.datepicker._mainDivId).length == 0) && + !$target.hasClass($.datepicker.markerClassName) && + !$target.hasClass($.datepicker._triggerClass) && + $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI)) + $.datepicker._hideDatepicker(null, ''); + }, + + /* Adjust one of the date sub-fields. */ + _adjustDate: function(id, offset, period) { + var target = $(id); + var inst = this._getInst(target[0]); + this._adjustInstDate(inst, offset, period); + this._updateDatepicker(inst); + }, + + /* Action for current link. */ + _gotoToday: function(id) { + var target = $(id); + var inst = this._getInst(target[0]); + if (this._get(inst, 'gotoCurrent') && inst.currentDay) { + inst.selectedDay = inst.currentDay; + inst.drawMonth = inst.selectedMonth = inst.currentMonth; + inst.drawYear = inst.selectedYear = inst.currentYear; + } + else { + var date = new Date(); + inst.selectedDay = date.getDate(); + inst.drawMonth = inst.selectedMonth = date.getMonth(); + inst.drawYear = inst.selectedYear = date.getFullYear(); + } + this._notifyChange(inst); + this._adjustDate(target); + }, + + /* Action for selecting a new month/year. */ + _selectMonthYear: function(id, select, period) { + var target = $(id); + var inst = this._getInst(target[0]); + inst._selectingMonthYear = false; + inst['selected' + (period == 'M' ? 'Month' : 'Year')] = + inst['draw' + (period == 'M' ? 'Month' : 'Year')] = + parseInt(select.options[select.selectedIndex].value,10); + this._notifyChange(inst); + this._adjustDate(target); + }, + + /* Restore input focus after not changing month/year. */ + _clickMonthYear: function(id) { + var target = $(id); + var inst = this._getInst(target[0]); + if (inst.input && inst._selectingMonthYear && !$.browser.msie) + inst.input[0].focus(); + inst._selectingMonthYear = !inst._selectingMonthYear; + }, + + /* Action for changing the first week day. */ + _changeFirstDay: function(id, day) { + var target = $(id); + var inst = this._getInst(target[0]); + inst.settings.firstDay = day; + this._updateDatepicker(inst); + }, + + /* Action for selecting a day. */ + _selectDay: function(id, month, year, td) { + if ($(td).hasClass(this._unselectableClass)) + return; + var target = $(id); + var inst = this._getInst(target[0]); + var rangeSelect = this._get(inst, 'rangeSelect'); + if (rangeSelect) { + inst.stayOpen = !inst.stayOpen; + if (inst.stayOpen) { + $('.ui-datepicker td', inst.dpDiv).removeClass(this._currentClass); + $(td).addClass(this._currentClass); + } + } + inst.selectedDay = inst.currentDay = $('a', td).html(); + inst.selectedMonth = inst.currentMonth = month; + inst.selectedYear = inst.currentYear = year; + if (inst.stayOpen) { + inst.endDay = inst.endMonth = inst.endYear = null; + } + else if (rangeSelect) { + inst.endDay = inst.currentDay; + inst.endMonth = inst.currentMonth; + inst.endYear = inst.currentYear; + } + this._selectDate(id, this._formatDate(inst, + inst.currentDay, inst.currentMonth, inst.currentYear)); + if (inst.stayOpen) { + inst.rangeStart = this._daylightSavingAdjust( + new Date(inst.currentYear, inst.currentMonth, inst.currentDay)); + this._updateDatepicker(inst); + } + else if (rangeSelect) { + inst.selectedDay = inst.currentDay = inst.rangeStart.getDate(); + inst.selectedMonth = inst.currentMonth = inst.rangeStart.getMonth(); + inst.selectedYear = inst.currentYear = inst.rangeStart.getFullYear(); + inst.rangeStart = null; + if (inst.inline) + this._updateDatepicker(inst); + } + }, + + /* Erase the input field and hide the date picker. */ + _clearDate: function(id) { + var target = $(id); + var inst = this._getInst(target[0]); + if (this._get(inst, 'mandatory')) + return; + inst.stayOpen = false; + inst.endDay = inst.endMonth = inst.endYear = inst.rangeStart = null; + this._selectDate(target, ''); + }, + + /* Update the input field with the selected date. */ + _selectDate: function(id, dateStr) { + var target = $(id); + var inst = this._getInst(target[0]); + dateStr = (dateStr != null ? dateStr : this._formatDate(inst)); + if (this._get(inst, 'rangeSelect') && dateStr) + dateStr = (inst.rangeStart ? this._formatDate(inst, inst.rangeStart) : + dateStr) + this._get(inst, 'rangeSeparator') + dateStr; + if (inst.input) + inst.input.val(dateStr); + this._updateAlternate(inst); + var onSelect = this._get(inst, 'onSelect'); + if (onSelect) + onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback + else if (inst.input) + inst.input.trigger('change'); // fire the change event + if (inst.inline) + this._updateDatepicker(inst); + else if (!inst.stayOpen) { + this._hideDatepicker(null, this._get(inst, 'duration')); + this._lastInput = inst.input[0]; + if (typeof(inst.input[0]) != 'object') + inst.input[0].focus(); // restore focus + this._lastInput = null; + } + }, + + /* Update any alternate field to synchronise with the main field. */ + _updateAlternate: function(inst) { + var altField = this._get(inst, 'altField'); + if (altField) { // update alternate field too + var altFormat = this._get(inst, 'altFormat') || this._get(inst, 'dateFormat'); + var date = this._getDate(inst); + dateStr = (isArray(date) ? (!date[0] && !date[1] ? '' : + this.formatDate(altFormat, date[0], this._getFormatConfig(inst)) + + this._get(inst, 'rangeSeparator') + this.formatDate( + altFormat, date[1] || date[0], this._getFormatConfig(inst))) : + this.formatDate(altFormat, date, this._getFormatConfig(inst))); + $(altField).each(function() { $(this).val(dateStr); }); + } + }, + + /* Set as beforeShowDay function to prevent selection of weekends. + @param date Date - the date to customise + @return [boolean, string] - is this date selectable?, what is its CSS class? */ + noWeekends: function(date) { + var day = date.getDay(); + return [(day > 0 && day < 6), '']; + }, + + /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition. + @param date Date - the date to get the week for + @return number - the number of the week within the year that contains this date */ + iso8601Week: function(date) { + var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate()); + var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4); // First week always contains 4 Jan + var firstDay = firstMon.getDay() || 7; // Day of week: Mon = 1, ..., Sun = 7 + firstMon.setDate(firstMon.getDate() + 1 - firstDay); // Preceding Monday + if (firstDay < 4 && checkDate < firstMon) { // Adjust first three days in year if necessary + checkDate.setDate(checkDate.getDate() - 3); // Generate for previous year + return $.datepicker.iso8601Week(checkDate); + } else if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) { // Check last three days in year + firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7; + if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) { // Adjust if necessary + return 1; + } + } + return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date + }, + + /* Provide status text for a particular date. + @param date the date to get the status for + @param inst the current datepicker instance + @return the status display text for this date */ + dateStatus: function(date, inst) { + return $.datepicker.formatDate($.datepicker._get(inst, 'dateStatus'), + date, $.datepicker._getFormatConfig(inst)); + }, + + /* Parse a string value into a date object. + See formatDate below for the possible formats. + + @param format string - the expected format of the date + @param value string - the date in the above format + @param settings Object - attributes include: + shortYearCutoff number - the cutoff year for determining the century (optional) + dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) + dayNames string[7] - names of the days from Sunday (optional) + monthNamesShort string[12] - abbreviated names of the months (optional) + monthNames string[12] - names of the months (optional) + @return Date - the extracted date value or null if value is blank */ + parseDate: function (format, value, settings) { + if (format == null || value == null) + throw 'Invalid arguments'; + value = (typeof value == 'object' ? value.toString() : value + ''); + if (value == '') + return null; + var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff; + var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; + var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; + var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; + var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; + var year = -1; + var month = -1; + var day = -1; + var doy = -1; + var literal = false; + // Check whether a format character is doubled + var lookAhead = function(match) { + var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); + if (matches) + iFormat++; + return matches; + }; + // Extract a number from the string value + var getNumber = function(match) { + lookAhead(match); + var origSize = (match == '@' ? 14 : (match == 'y' ? 4 : (match == 'o' ? 3 : 2))); + var size = origSize; + var num = 0; + while (size > 0 && iValue < value.length && + value.charAt(iValue) >= '0' && value.charAt(iValue) <= '9') { + num = num * 10 + parseInt(value.charAt(iValue++),10); + size--; + } + if (size == origSize) + throw 'Missing number at position ' + iValue; + return num; + }; + // Extract a name from the string value and convert to an index + var getName = function(match, shortNames, longNames) { + var names = (lookAhead(match) ? longNames : shortNames); + var size = 0; + for (var j = 0; j < names.length; j++) + size = Math.max(size, names[j].length); + var name = ''; + var iInit = iValue; + while (size > 0 && iValue < value.length) { + name += value.charAt(iValue++); + for (var i = 0; i < names.length; i++) + if (name == names[i]) + return i + 1; + size--; + } + throw 'Unknown name at position ' + iInit; + }; + // Confirm that a literal character matches the string value + var checkLiteral = function() { + if (value.charAt(iValue) != format.charAt(iFormat)) + throw 'Unexpected literal at position ' + iValue; + iValue++; + }; + var iValue = 0; + for (var iFormat = 0; iFormat < format.length; iFormat++) { + if (literal) + if (format.charAt(iFormat) == "'" && !lookAhead("'")) + literal = false; + else + checkLiteral(); + else + switch (format.charAt(iFormat)) { + case 'd': + day = getNumber('d'); + break; + case 'D': + getName('D', dayNamesShort, dayNames); + break; + case 'o': + doy = getNumber('o'); + break; + case 'm': + month = getNumber('m'); + break; + case 'M': + month = getName('M', monthNamesShort, monthNames); + break; + case 'y': + year = getNumber('y'); + break; + case '@': + var date = new Date(getNumber('@')); + year = date.getFullYear(); + month = date.getMonth() + 1; + day = date.getDate(); + break; + case "'": + if (lookAhead("'")) + checkLiteral(); + else + literal = true; + break; + default: + checkLiteral(); + } + } + if (year == -1) + year = new Date().getFullYear(); + else if (year < 100) + year += new Date().getFullYear() - new Date().getFullYear() % 100 + + (year <= shortYearCutoff ? 0 : -100); + if (doy > -1) { + month = 1; + day = doy; + do { + var dim = this._getDaysInMonth(year, month - 1); + if (day <= dim) + break; + month++; + day -= dim; + } while (true); + } + var date = this._daylightSavingAdjust(new Date(year, month - 1, day)); + if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) + throw 'Invalid date'; // E.g. 31/02/* + return date; + }, + + /* Standard date formats. */ + ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601) + COOKIE: 'D, dd M yy', + ISO_8601: 'yy-mm-dd', + RFC_822: 'D, d M y', + RFC_850: 'DD, dd-M-y', + RFC_1036: 'D, d M y', + RFC_1123: 'D, d M yy', + RFC_2822: 'D, d M yy', + RSS: 'D, d M y', // RFC 822 + TIMESTAMP: '@', + W3C: 'yy-mm-dd', // ISO 8601 + + /* Format a date object into a string value. + The format can be combinations of the following: + d - day of month (no leading zero) + dd - day of month (two digit) + o - day of year (no leading zeros) + oo - day of year (three digit) + D - day name short + DD - day name long + m - month of year (no leading zero) + mm - month of year (two digit) + M - month name short + MM - month name long + y - year (two digit) + yy - year (four digit) + @ - Unix timestamp (ms since 01/01/1970) + '...' - literal text + '' - single quote + + @param format string - the desired format of the date + @param date Date - the date value to format + @param settings Object - attributes include: + dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) + dayNames string[7] - names of the days from Sunday (optional) + monthNamesShort string[12] - abbreviated names of the months (optional) + monthNames string[12] - names of the months (optional) + @return string - the date in the above format */ + formatDate: function (format, date, settings) { + if (!date) + return ''; + var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; + var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; + var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; + var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; + // Check whether a format character is doubled + var lookAhead = function(match) { + var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); + if (matches) + iFormat++; + return matches; + }; + // Format a number, with leading zero if necessary + var formatNumber = function(match, value, len) { + var num = '' + value; + if (lookAhead(match)) + while (num.length < len) + num = '0' + num; + return num; + }; + // Format a name, short or long as requested + var formatName = function(match, value, shortNames, longNames) { + return (lookAhead(match) ? longNames[value] : shortNames[value]); + }; + var output = ''; + var literal = false; + if (date) + for (var iFormat = 0; iFormat < format.length; iFormat++) { + if (literal) + if (format.charAt(iFormat) == "'" && !lookAhead("'")) + literal = false; + else + output += format.charAt(iFormat); + else + switch (format.charAt(iFormat)) { + case 'd': + output += formatNumber('d', date.getDate(), 2); + break; + case 'D': + output += formatName('D', date.getDay(), dayNamesShort, dayNames); + break; + case 'o': + var doy = date.getDate(); + for (var m = date.getMonth() - 1; m >= 0; m--) + doy += this._getDaysInMonth(date.getFullYear(), m); + output += formatNumber('o', doy, 3); + break; + case 'm': + output += formatNumber('m', date.getMonth() + 1, 2); + break; + case 'M': + output += formatName('M', date.getMonth(), monthNamesShort, monthNames); + break; + case 'y': + output += (lookAhead('y') ? date.getFullYear() : + (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100); + break; + case '@': + output += date.getTime(); + break; + case "'": + if (lookAhead("'")) + output += "'"; + else + literal = true; + break; + default: + output += format.charAt(iFormat); + } + } + return output; + }, + + /* Extract all possible characters from the date format. */ + _possibleChars: function (format) { + var chars = ''; + var literal = false; + for (var iFormat = 0; iFormat < format.length; iFormat++) + if (literal) + if (format.charAt(iFormat) == "'" && !lookAhead("'")) + literal = false; + else + chars += format.charAt(iFormat); + else + switch (format.charAt(iFormat)) { + case 'd': case 'm': case 'y': case '@': + chars += '0123456789'; + break; + case 'D': case 'M': + return null; // Accept anything + case "'": + if (lookAhead("'")) + chars += "'"; + else + literal = true; + break; + default: + chars += format.charAt(iFormat); + } + return chars; + }, + + /* Get a setting value, defaulting if necessary. */ + _get: function(inst, name) { + return inst.settings[name] !== undefined ? + inst.settings[name] : this._defaults[name]; + }, + + /* Parse existing date and initialise date picker. */ + _setDateFromField: function(inst) { + var dateFormat = this._get(inst, 'dateFormat'); + var dates = inst.input ? inst.input.val().split(this._get(inst, 'rangeSeparator')) : null; + inst.endDay = inst.endMonth = inst.endYear = null; + var date = defaultDate = this._getDefaultDate(inst); + if (dates.length > 0) { + var settings = this._getFormatConfig(inst); + if (dates.length > 1) { + date = this.parseDate(dateFormat, dates[1], settings) || defaultDate; + inst.endDay = date.getDate(); + inst.endMonth = date.getMonth(); + inst.endYear = date.getFullYear(); + } + try { + date = this.parseDate(dateFormat, dates[0], settings) || defaultDate; + } catch (event) { + this.log(event); + date = defaultDate; + } + } + inst.selectedDay = date.getDate(); + inst.drawMonth = inst.selectedMonth = date.getMonth(); + inst.drawYear = inst.selectedYear = date.getFullYear(); + inst.currentDay = (dates[0] ? date.getDate() : 0); + inst.currentMonth = (dates[0] ? date.getMonth() : 0); + inst.currentYear = (dates[0] ? date.getFullYear() : 0); + this._adjustInstDate(inst); + }, + + /* Retrieve the default date shown on opening. */ + _getDefaultDate: function(inst) { + var date = this._determineDate(this._get(inst, 'defaultDate'), new Date()); + var minDate = this._getMinMaxDate(inst, 'min', true); + var maxDate = this._getMinMaxDate(inst, 'max'); + date = (minDate && date < minDate ? minDate : date); + date = (maxDate && date > maxDate ? maxDate : date); + return date; + }, + + /* A date may be specified as an exact value or a relative one. */ + _determineDate: function(date, defaultDate) { + var offsetNumeric = function(offset) { + var date = new Date(); + date.setDate(date.getDate() + offset); + return date; + }; + var offsetString = function(offset, getDaysInMonth) { + var date = new Date(); + var year = date.getFullYear(); + var month = date.getMonth(); + var day = date.getDate(); + var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g; + var matches = pattern.exec(offset); + while (matches) { + switch (matches[2] || 'd') { + case 'd' : case 'D' : + day += parseInt(matches[1],10); break; + case 'w' : case 'W' : + day += parseInt(matches[1],10) * 7; break; + case 'm' : case 'M' : + month += parseInt(matches[1],10); + day = Math.min(day, getDaysInMonth(year, month)); + break; + case 'y': case 'Y' : + year += parseInt(matches[1],10); + day = Math.min(day, getDaysInMonth(year, month)); + break; + } + matches = pattern.exec(offset); + } + return new Date(year, month, day); + }; + date = (date == null ? defaultDate : + (typeof date == 'string' ? offsetString(date, this._getDaysInMonth) : + (typeof date == 'number' ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : date))); + date = (date && date.toString() == 'Invalid Date' ? defaultDate : date); + if (date) { + date.setHours(0); + date.setMinutes(0); + date.setSeconds(0); + date.setMilliseconds(0); + } + return this._daylightSavingAdjust(date); + }, + + /* Handle switch to/from daylight saving. + Hours may be non-zero on daylight saving cut-over: + > 12 when midnight changeover, but then cannot generate + midnight datetime, so jump to 1AM, otherwise reset. + @param date (Date) the date to check + @return (Date) the corrected date */ + _daylightSavingAdjust: function(date) { + if (!date) return null; + date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0); + return date; + }, + + /* Set the date(s) directly. */ + _setDate: function(inst, date, endDate) { + var clear = !(date); + var origMonth = inst.selectedMonth; + var origYear = inst.selectedYear; + date = this._determineDate(date, new Date()); + inst.selectedDay = inst.currentDay = date.getDate(); + inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth(); + inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear(); + if (this._get(inst, 'rangeSelect')) { + if (endDate) { + endDate = this._determineDate(endDate, null); + inst.endDay = endDate.getDate(); + inst.endMonth = endDate.getMonth(); + inst.endYear = endDate.getFullYear(); + } else { + inst.endDay = inst.currentDay; + inst.endMonth = inst.currentMonth; + inst.endYear = inst.currentYear; + } + } + if (origMonth != inst.selectedMonth || origYear != inst.selectedYear) + this._notifyChange(inst); + this._adjustInstDate(inst); + if (inst.input) + inst.input.val(clear ? '' : this._formatDate(inst) + + (!this._get(inst, 'rangeSelect') ? '' : this._get(inst, 'rangeSeparator') + + this._formatDate(inst, inst.endDay, inst.endMonth, inst.endYear))); + }, + + /* Retrieve the date(s) directly. */ + _getDate: function(inst) { + var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null : + this._daylightSavingAdjust(new Date( + inst.currentYear, inst.currentMonth, inst.currentDay))); + if (this._get(inst, 'rangeSelect')) { + return [inst.rangeStart || startDate, + (!inst.endYear ? inst.rangeStart || startDate : + this._daylightSavingAdjust(new Date(inst.endYear, inst.endMonth, inst.endDay)))]; + } else + return startDate; + }, + + /* Generate the HTML for the current state of the date picker. */ + _generateHTML: function(inst) { + var today = new Date(); + today = this._daylightSavingAdjust( + new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time + var showStatus = this._get(inst, 'showStatus'); + var initStatus = this._get(inst, 'initStatus') || ' '; + var isRTL = this._get(inst, 'isRTL'); + // build the date picker HTML + var clear = (this._get(inst, 'mandatory') ? '' : + ''); + var controls = '
          ' + (isRTL ? '' : clear) + + '' + (isRTL ? clear : '') + '
          '; + var prompt = this._get(inst, 'prompt'); + var closeAtTop = this._get(inst, 'closeAtTop'); + var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext'); + var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat'); + var showBigPrevNext = this._get(inst, 'showBigPrevNext'); + var numMonths = this._getNumberOfMonths(inst); + var showCurrentAtPos = this._get(inst, 'showCurrentAtPos'); + var stepMonths = this._get(inst, 'stepMonths'); + var stepBigMonths = this._get(inst, 'stepBigMonths'); + var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1); + var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) : + new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); + var minDate = this._getMinMaxDate(inst, 'min', true); + var maxDate = this._getMinMaxDate(inst, 'max'); + var drawMonth = inst.drawMonth - showCurrentAtPos; + var drawYear = inst.drawYear; + if (drawMonth < 0) { + drawMonth += 12; + drawYear--; + } + if (maxDate) { + var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(), + maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate())); + maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw); + while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) { + drawMonth--; + if (drawMonth < 0) { + drawMonth = 11; + drawYear--; + } + } + } + // controls and links + var prevText = this._get(inst, 'prevText'); + prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText, + this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)), + this._getFormatConfig(inst))); + var prevBigText = (showBigPrevNext ? this._get(inst, 'prevBigText') : ''); + prevBigText = (!navigationAsDateFormat ? prevBigText : this.formatDate(prevBigText, + this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepBigMonths, 1)), + this._getFormatConfig(inst))); + var prev = '
          ' + (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? + (showBigPrevNext ? '' + prevBigText + '' : '') + + '' + prevText + '' : + (hideIfNoPrevNext ? '' : (showBigPrevNext ? '' : '') + + '')) + '
          '; + var nextText = this._get(inst, 'nextText'); + nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText, + this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)), + this._getFormatConfig(inst))); + var nextBigText = (showBigPrevNext ? this._get(inst, 'nextBigText') : ''); + nextBigText = (!navigationAsDateFormat ? nextBigText : this.formatDate(nextBigText, + this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepBigMonths, 1)), + this._getFormatConfig(inst))); + var next = '
          ' + (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ? + '' + nextText + '' + + (showBigPrevNext ? '' + nextBigText + '' : '') : + (hideIfNoPrevNext ? '' : '' + + (showBigPrevNext ? '' : ''))) + '
          '; + var currentText = this._get(inst, 'currentText'); + var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today); + currentText = (!navigationAsDateFormat ? currentText : + this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); + var html = (closeAtTop && !inst.inline ? controls : '') + + '' + + (prompt ? '
          ' + prompt + '
          ' : ''); + var firstDay = parseInt(this._get(inst, 'firstDay')); + firstDay = (isNaN(firstDay) ? 0 : firstDay); + var changeFirstDay = this._get(inst, 'changeFirstDay'); + var dayNames = this._get(inst, 'dayNames'); + var dayNamesShort = this._get(inst, 'dayNamesShort'); + var dayNamesMin = this._get(inst, 'dayNamesMin'); + var monthNames = this._get(inst, 'monthNames'); + var beforeShowDay = this._get(inst, 'beforeShowDay'); + var highlightWeek = this._get(inst, 'highlightWeek'); + var showOtherMonths = this._get(inst, 'showOtherMonths'); + var showWeeks = this._get(inst, 'showWeeks'); + var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week; + var weekStatus = this._get(inst, 'weekStatus'); + var status = (showStatus ? this._get(inst, 'dayStatus') || initStatus : ''); + var dateStatus = this._get(inst, 'statusForDate') || this.dateStatus; + var endDate = inst.endDay ? this._daylightSavingAdjust( + new Date(inst.endYear, inst.endMonth, inst.endDay)) : currentDate; + var defaultDate = this._getDefaultDate(inst); + for (var row = 0; row < numMonths[0]; row++) + for (var col = 0; col < numMonths[1]; col++) { + var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); + html += '
          ' + + this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate, + selectedDate, row > 0 || col > 0, showStatus, initStatus, monthNames) + // draw month headers + '' + + '' + + (showWeeks ? '' + + this._get(inst, 'weekHeader') + '' : ''); + for (var dow = 0; dow < 7; dow++) { // days of the week + var day = (dow + firstDay) % 7; + var dayStatus = (status.indexOf('DD') > -1 ? status.replace(/DD/, dayNames[day]) : + status.replace(/D/, dayNamesShort[day])); + html += '= 5 ? ' class="ui-datepicker-week-end-cell"' : '') + '>' + + (!changeFirstDay ? '' + + dayNamesMin[day] + (changeFirstDay ? '' : '') + ''; + } + html += ''; + var daysInMonth = this._getDaysInMonth(drawYear, drawMonth); + if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth) + inst.selectedDay = Math.min(inst.selectedDay, daysInMonth); + var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7; + var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate + var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays)); + for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows + html += '' + + (showWeeks ? '' : ''); + for (var dow = 0; dow < 7; dow++) { // create date picker days + var daySettings = (beforeShowDay ? + beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']); + var otherMonth = (printDate.getMonth() != drawMonth); + var unselectable = otherMonth || !daySettings[0] || + (minDate && printDate < minDate) || (maxDate && printDate > maxDate); + html += ''; // display for this month + printDate.setDate(printDate.getDate() + 1); + printDate = this._daylightSavingAdjust(printDate); + } + html += ''; + } + drawMonth++; + if (drawMonth > 11) { + drawMonth = 0; + drawYear++; + } + html += '
          ' + + calculateWeek(printDate) + '' + // actions + (otherMonth ? (showOtherMonths ? printDate.getDate() : ' ') : // display for other months + (unselectable ? printDate.getDate() : '' + printDate.getDate() + '')) + '
          '; + } + html += (showStatus ? '
          ' + initStatus + '
          ' : '') + + (!closeAtTop && !inst.inline ? controls : '') + + '
          ' + + ($.browser.msie && parseInt($.browser.version,10) < 7 && !inst.inline ? + '' : ''); + inst._keyEvent = false; + return html; + }, + + /* Generate the month and year header. */ + _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate, + selectedDate, secondary, showStatus, initStatus, monthNames) { + minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate); + var changeMonth = this._get(inst, 'changeMonth'); + var changeYear = this._get(inst, 'changeYear'); + var showMonthAfterYear = this._get(inst, 'showMonthAfterYear'); + var html = '
          '; + var monthHtml = ''; + // month selection + if (secondary || !changeMonth) + monthHtml += monthNames[drawMonth]; + else { + var inMinYear = (minDate && minDate.getFullYear() == drawYear); + var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear); + monthHtml += ''; + } + if (!showMonthAfterYear) + html += monthHtml + (secondary || changeMonth || changeYear ? ' ' : ''); + // year selection + if (secondary || !changeYear) + html += drawYear; + else { + // determine range of years to display + var years = this._get(inst, 'yearRange').split(':'); + var year = 0; + var endYear = 0; + if (years.length != 2) { + year = drawYear - 10; + endYear = drawYear + 10; + } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') { + year = endYear = new Date().getFullYear(); + year += parseInt(years[0], 10); + endYear += parseInt(years[1], 10); + } else { + year = parseInt(years[0], 10); + endYear = parseInt(years[1], 10); + } + year = (minDate ? Math.max(year, minDate.getFullYear()) : year); + endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear); + html += ''; + } + if (showMonthAfterYear) + html += (secondary || changeMonth || changeYear ? ' ' : '') + monthHtml; + html += '
          '; // Close datepicker_header + return html; + }, + + /* Provide code to set and clear the status panel. */ + _addStatus: function(showStatus, id, text, initStatus) { + return (showStatus ? ' onmouseover="jQuery(\'#ui-datepicker-status-' + id + + '\').html(\'' + (text || initStatus) + '\');" ' + + 'onmouseout="jQuery(\'#ui-datepicker-status-' + id + + '\').html(\'' + initStatus + '\');"' : ''); + }, + + /* Adjust one of the date sub-fields. */ + _adjustInstDate: function(inst, offset, period) { + var year = inst.drawYear + (period == 'Y' ? offset : 0); + var month = inst.drawMonth + (period == 'M' ? offset : 0); + var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + + (period == 'D' ? offset : 0); + var date = this._daylightSavingAdjust(new Date(year, month, day)); + // ensure it is within the bounds set + var minDate = this._getMinMaxDate(inst, 'min', true); + var maxDate = this._getMinMaxDate(inst, 'max'); + date = (minDate && date < minDate ? minDate : date); + date = (maxDate && date > maxDate ? maxDate : date); + inst.selectedDay = date.getDate(); + inst.drawMonth = inst.selectedMonth = date.getMonth(); + inst.drawYear = inst.selectedYear = date.getFullYear(); + if (period == 'M' || period == 'Y') + this._notifyChange(inst); + }, + + /* Notify change of month/year. */ + _notifyChange: function(inst) { + var onChange = this._get(inst, 'onChangeMonthYear'); + if (onChange) + onChange.apply((inst.input ? inst.input[0] : null), + [inst.selectedYear, inst.selectedMonth + 1, inst]); + }, + + /* Determine the number of months to show. */ + _getNumberOfMonths: function(inst) { + var numMonths = this._get(inst, 'numberOfMonths'); + return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths)); + }, + + /* Determine the current maximum date - ensure no time components are set - may be overridden for a range. */ + _getMinMaxDate: function(inst, minMax, checkRange) { + var date = this._determineDate(this._get(inst, minMax + 'Date'), null); + return (!checkRange || !inst.rangeStart ? date : + (!date || inst.rangeStart > date ? inst.rangeStart : date)); + }, + + /* Find the number of days in a given month. */ + _getDaysInMonth: function(year, month) { + return 32 - new Date(year, month, 32).getDate(); + }, + + /* Find the day of the week of the first of a month. */ + _getFirstDayOfMonth: function(year, month) { + return new Date(year, month, 1).getDay(); + }, + + /* Determines if we should allow a "next/prev" month display change. */ + _canAdjustMonth: function(inst, offset, curYear, curMonth) { + var numMonths = this._getNumberOfMonths(inst); + var date = this._daylightSavingAdjust(new Date( + curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1)); + if (offset < 0) + date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth())); + return this._isInRange(inst, date); + }, + + /* Is the given date in the accepted range? */ + _isInRange: function(inst, date) { + // during range selection, use minimum of selected date and range start + var newMinDate = (!inst.rangeStart ? null : this._daylightSavingAdjust( + new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay))); + newMinDate = (newMinDate && inst.rangeStart < newMinDate ? inst.rangeStart : newMinDate); + var minDate = newMinDate || this._getMinMaxDate(inst, 'min'); + var maxDate = this._getMinMaxDate(inst, 'max'); + return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate)); + }, + + /* Provide the configuration settings for formatting/parsing. */ + _getFormatConfig: function(inst) { + var shortYearCutoff = this._get(inst, 'shortYearCutoff'); + shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff : + new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)); + return {shortYearCutoff: shortYearCutoff, + dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'), + monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')}; + }, + + /* Format the given date for display. */ + _formatDate: function(inst, day, month, year) { + if (!day) { + inst.currentDay = inst.selectedDay; + inst.currentMonth = inst.selectedMonth; + inst.currentYear = inst.selectedYear; + } + var date = (day ? (typeof day == 'object' ? day : + this._daylightSavingAdjust(new Date(year, month, day))) : + this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); + return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst)); + } +}); + +/* jQuery extend now ignores nulls! */ +function extendRemove(target, props) { + $.extend(target, props); + for (var name in props) + if (props[name] == null || props[name] == undefined) + target[name] = props[name]; + return target; +}; + +/* Determine whether an object is an array. */ +function isArray(a) { + return (a && (($.browser.safari && typeof a == 'object' && a.length) || + (a.constructor && a.constructor.toString().match(/\Array\(\)/)))); +}; + +/* Invoke the datepicker functionality. + @param options string - a command, optionally followed by additional parameters or + Object - settings for attaching new datepicker functionality + @return jQuery object */ +$.fn.datepicker = function(options){ + + /* Initialise the date picker. */ + if (!$.datepicker.initialized) { + $(document.body).append($.datepicker.dpDiv). + mousedown($.datepicker._checkExternalClick); + $.datepicker.initialized = true; + } + + var otherArgs = Array.prototype.slice.call(arguments, 1); + if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate')) + return $.datepicker['_' + options + 'Datepicker']. + apply($.datepicker, [this[0]].concat(otherArgs)); + return this.each(function() { + typeof options == 'string' ? + $.datepicker['_' + options + 'Datepicker']. + apply($.datepicker, [this].concat(otherArgs)) : + $.datepicker._attachDatepicker(this, options); + }); +}; + +$.datepicker = new Datepicker(); // singleton instance +$.datepicker.initialized = false; +$.datepicker.uuid = new Date().getTime(); +$.datepicker.version = "1.6"; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.dialog.js b/sites/all/libraries/jquery.ui/ui/ui.dialog.js new file mode 100644 index 0000000..42b8a00 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.dialog.js @@ -0,0 +1,607 @@ +/* + * jQuery UI Dialog 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Dialog + * + * Depends: + * ui.core.js + * ui.draggable.js + * ui.resizable.js + */ +(function($) { + +var setDataSwitch = { + dragStart: "start.draggable", + drag: "drag.draggable", + dragStop: "stop.draggable", + maxHeight: "maxHeight.resizable", + minHeight: "minHeight.resizable", + maxWidth: "maxWidth.resizable", + minWidth: "minWidth.resizable", + resizeStart: "start.resizable", + resize: "drag.resizable", + resizeStop: "stop.resizable" +}; + +$.widget("ui.dialog", { + + _init: function() { + this.originalTitle = this.element.attr('title'); + this.options.title = this.options.title || this.originalTitle; + + var self = this, + options = this.options, + + uiDialogContent = this.element + .removeAttr('title') + .addClass('ui-dialog-content') + .wrap('
          ') + .wrap('
          '), + + uiDialogContainer = (this.uiDialogContainer = uiDialogContent.parent()) + .addClass('ui-dialog-container') + .css({ + position: 'relative', + width: '100%', + height: '100%' + }), + + uiDialogTitlebar = (this.uiDialogTitlebar = $('
          ')) + .addClass('ui-dialog-titlebar') + .mousedown(function() { + self.moveToTop(); + }) + .prependTo(uiDialogContainer), + + uiDialogTitlebarClose = $('') + .addClass('ui-dialog-titlebar-close') + .attr('role', 'button') + .appendTo(uiDialogTitlebar), + + uiDialogTitlebarCloseText = (this.uiDialogTitlebarCloseText = $('')) + .text(options.closeText) + .appendTo(uiDialogTitlebarClose), + + title = options.title || ' ', + titleId = $.ui.dialog.getTitleId(this.element), + uiDialogTitle = $('') + .addClass('ui-dialog-title') + .attr('id', titleId) + .html(title) + .prependTo(uiDialogTitlebar), + + uiDialog = (this.uiDialog = uiDialogContainer.parent()) + .appendTo(document.body) + .hide() + .addClass('ui-dialog') + .addClass(options.dialogClass) + .css({ + position: 'absolute', + width: options.width, + height: options.height, + overflow: 'hidden', + zIndex: options.zIndex + }) + // setting tabIndex makes the div focusable + // setting outline to 0 prevents a border on focus in Mozilla + .attr('tabIndex', -1).css('outline', 0).keydown(function(ev) { + (options.closeOnEscape && ev.keyCode + && ev.keyCode == $.ui.keyCode.ESCAPE && self.close()); + }) + .attr({ + role: 'dialog', + 'aria-labelledby': titleId + }) + .mouseup(function() { + self.moveToTop(); + }), + + uiDialogButtonPane = (this.uiDialogButtonPane = $('
          ')) + .addClass('ui-dialog-buttonpane') + .css({ + position: 'absolute', + bottom: 0 + }) + .appendTo(uiDialog), + + uiDialogTitlebarClose = $('.ui-dialog-titlebar-close', uiDialogTitlebar) + .hover( + function() { + $(this).addClass('ui-dialog-titlebar-close-hover'); + }, + function() { + $(this).removeClass('ui-dialog-titlebar-close-hover'); + } + ) + .mousedown(function(ev) { + ev.stopPropagation(); + }) + .click(function() { + self.close(); + return false; + }); + + uiDialogTitlebar.find("*").add(uiDialogTitlebar).disableSelection(); + + (options.draggable && $.fn.draggable && this._makeDraggable()); + (options.resizable && $.fn.resizable && this._makeResizable()); + + this._createButtons(options.buttons); + this._isOpen = false; + + (options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe()); + (options.autoOpen && this.open()); + }, + + destroy: function() { + (this.overlay && this.overlay.destroy()); + this.uiDialog.hide(); + this.element + .unbind('.dialog') + .removeData('dialog') + .removeClass('ui-dialog-content') + .hide().appendTo('body'); + this.uiDialog.remove(); + + (this.originalTitle && this.element.attr('title', this.originalTitle)); + }, + + close: function() { + if (false === this._trigger('beforeclose', null, { options: this.options })) { + return; + } + + (this.overlay && this.overlay.destroy()); + this.uiDialog + .hide(this.options.hide) + .unbind('keypress.ui-dialog'); + + this._trigger('close', null, { options: this.options }); + $.ui.dialog.overlay.resize(); + + this._isOpen = false; + }, + + isOpen: function() { + return this._isOpen; + }, + + // the force parameter allows us to move modal dialogs to their correct + // position on open + moveToTop: function(force) { + + if ((this.options.modal && !force) + || (!this.options.stack && !this.options.modal)) { + return this._trigger('focus', null, { options: this.options }); + } + + var maxZ = this.options.zIndex, options = this.options; + $('.ui-dialog:visible').each(function() { + maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10) || options.zIndex); + }); + (this.overlay && this.overlay.$el.css('z-index', ++maxZ)); + + //Save and then restore scroll since Opera 9.5+ resets when parent z-Index is changed. + // http://ui.jquery.com/bugs/ticket/3193 + var saveScroll = { scrollTop: this.element.attr('scrollTop'), scrollLeft: this.element.attr('scrollLeft') }; + this.uiDialog.css('z-index', ++maxZ); + this.element.attr(saveScroll); + this._trigger('focus', null, { options: this.options }); + }, + + open: function() { + if (this._isOpen) { return; } + + this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null; + (this.uiDialog.next().length && this.uiDialog.appendTo('body')); + this._position(this.options.position); + this.uiDialog.show(this.options.show); + (this.options.autoResize && this._size()); + this.moveToTop(true); + + // prevent tabbing out of modal dialogs + (this.options.modal && this.uiDialog.bind('keypress.ui-dialog', function(event) { + if (event.keyCode != $.ui.keyCode.TAB) { + return; + } + + var tabbables = $(':tabbable', this), + first = tabbables.filter(':first')[0], + last = tabbables.filter(':last')[0]; + + if (event.target == last && !event.shiftKey) { + setTimeout(function() { + first.focus(); + }, 1); + } else if (event.target == first && event.shiftKey) { + setTimeout(function() { + last.focus(); + }, 1); + } + })); + + this.uiDialog.find(':tabbable:first').focus(); + this._trigger('open', null, { options: this.options }); + this._isOpen = true; + }, + + _createButtons: function(buttons) { + var self = this, + hasButtons = false, + uiDialogButtonPane = this.uiDialogButtonPane; + + // remove any existing buttons + uiDialogButtonPane.empty().hide(); + + $.each(buttons, function() { return !(hasButtons = true); }); + if (hasButtons) { + uiDialogButtonPane.show(); + $.each(buttons, function(name, fn) { + $('') + .text(name) + .click(function() { fn.apply(self.element[0], arguments); }) + .appendTo(uiDialogButtonPane); + }); + } + }, + + _makeDraggable: function() { + var self = this, + options = this.options; + + this.uiDialog.draggable({ + cancel: '.ui-dialog-content', + helper: options.dragHelper, + handle: '.ui-dialog-titlebar', + start: function() { + self.moveToTop(); + (options.dragStart && options.dragStart.apply(self.element[0], arguments)); + }, + drag: function() { + (options.drag && options.drag.apply(self.element[0], arguments)); + }, + stop: function() { + (options.dragStop && options.dragStop.apply(self.element[0], arguments)); + $.ui.dialog.overlay.resize(); + } + }); + }, + + _makeResizable: function(handles) { + handles = (handles === undefined ? this.options.resizable : handles); + var self = this, + options = this.options, + resizeHandles = typeof handles == 'string' + ? handles + : 'n,e,s,w,se,sw,ne,nw'; + + this.uiDialog.resizable({ + cancel: '.ui-dialog-content', + helper: options.resizeHelper, + maxWidth: options.maxWidth, + maxHeight: options.maxHeight, + minWidth: options.minWidth, + minHeight: options.minHeight, + start: function() { + (options.resizeStart && options.resizeStart.apply(self.element[0], arguments)); + }, + resize: function() { + (options.autoResize && self._size.apply(self)); + (options.resize && options.resize.apply(self.element[0], arguments)); + }, + handles: resizeHandles, + stop: function() { + (options.autoResize && self._size.apply(self)); + (options.resizeStop && options.resizeStop.apply(self.element[0], arguments)); + $.ui.dialog.overlay.resize(); + } + }); + }, + + _position: function(pos) { + var wnd = $(window), doc = $(document), + pTop = doc.scrollTop(), pLeft = doc.scrollLeft(), + minTop = pTop; + + if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) { + pos = [ + pos == 'right' || pos == 'left' ? pos : 'center', + pos == 'top' || pos == 'bottom' ? pos : 'middle' + ]; + } + if (pos.constructor != Array) { + pos = ['center', 'middle']; + } + if (pos[0].constructor == Number) { + pLeft += pos[0]; + } else { + switch (pos[0]) { + case 'left': + pLeft += 0; + break; + case 'right': + pLeft += wnd.width() - this.uiDialog.outerWidth(); + break; + default: + case 'center': + pLeft += (wnd.width() - this.uiDialog.outerWidth()) / 2; + } + } + if (pos[1].constructor == Number) { + pTop += pos[1]; + } else { + switch (pos[1]) { + case 'top': + pTop += 0; + break; + case 'bottom': + // Opera check fixes #3564, can go away with jQuery 1.3 + pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight(); + break; + default: + case 'middle': + // Opera check fixes #3564, can go away with jQuery 1.3 + pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight()) / 2; + } + } + + // prevent the dialog from being too high (make sure the titlebar + // is accessible) + pTop = Math.max(pTop, minTop); + this.uiDialog.css({top: pTop, left: pLeft}); + }, + + _setData: function(key, value){ + (setDataSwitch[key] && this.uiDialog.data(setDataSwitch[key], value)); + switch (key) { + case "buttons": + this._createButtons(value); + break; + case "closeText": + this.uiDialogTitlebarCloseText.text(value); + break; + case "draggable": + (value + ? this._makeDraggable() + : this.uiDialog.draggable('destroy')); + break; + case "height": + this.uiDialog.height(value); + break; + case "position": + this._position(value); + break; + case "resizable": + var uiDialog = this.uiDialog, + isResizable = this.uiDialog.is(':data(resizable)'); + + // currently resizable, becoming non-resizable + (isResizable && !value && uiDialog.resizable('destroy')); + + // currently resizable, changing handles + (isResizable && typeof value == 'string' && + uiDialog.resizable('option', 'handles', value)); + + // currently non-resizable, becoming resizable + (isResizable || this._makeResizable(value)); + + break; + case "title": + $(".ui-dialog-title", this.uiDialogTitlebar).html(value || ' '); + break; + case "width": + this.uiDialog.width(value); + break; + } + + $.widget.prototype._setData.apply(this, arguments); + }, + + _size: function() { + var container = this.uiDialogContainer, + titlebar = this.uiDialogTitlebar, + content = this.element, + tbMargin = (parseInt(content.css('margin-top'), 10) || 0) + + (parseInt(content.css('margin-bottom'), 10) || 0), + lrMargin = (parseInt(content.css('margin-left'), 10) || 0) + + (parseInt(content.css('margin-right'), 10) || 0); + content.height(container.height() - titlebar.outerHeight() - tbMargin); + content.width(container.width() - lrMargin); + } + +}); + +$.extend($.ui.dialog, { + version: "1.6", + defaults: { + autoOpen: true, + autoResize: true, + bgiframe: false, + buttons: {}, + closeOnEscape: true, + closeText: 'close', + draggable: true, + height: 200, + minHeight: 100, + minWidth: 150, + modal: false, + overlay: {}, + position: 'center', + resizable: true, + stack: true, + width: 300, + zIndex: 1000 + }, + + getter: 'isOpen', + + uuid: 0, + + getTitleId: function($el) { + return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid); + }, + + overlay: function(dialog) { + this.$el = $.ui.dialog.overlay.create(dialog); + } +}); + +$.extend($.ui.dialog.overlay, { + instances: [], + events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','), + function(event) { return event + '.dialog-overlay'; }).join(' '), + create: function(dialog) { + if (this.instances.length === 0) { + // prevent use of anchors and inputs + // we use a setTimeout in case the overlay is created from an + // event that we're going to be cancelling (see #2804) + setTimeout(function() { + $('a, :input').bind($.ui.dialog.overlay.events, function() { + // allow use of the element if inside a dialog and + // - there are no modal dialogs + // - there are modal dialogs, but we are in front of the topmost modal + var allow = false; + var $dialog = $(this).parents('.ui-dialog'); + if ($dialog.length) { + var $overlays = $('.ui-dialog-overlay'); + if ($overlays.length) { + var maxZ = parseInt($overlays.css('z-index'), 10); + $overlays.each(function() { + maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10)); + }); + allow = parseInt($dialog.css('z-index'), 10) > maxZ; + } else { + allow = true; + } + } + return allow; + }); + }, 1); + + // allow closing by pressing the escape key + $(document).bind('keydown.dialog-overlay', function(event) { + (dialog.options.closeOnEscape && event.keyCode + && event.keyCode == $.ui.keyCode.ESCAPE && dialog.close()); + }); + + // handle window resize + $(window).bind('resize.dialog-overlay', $.ui.dialog.overlay.resize); + } + + var $el = $('
          ').appendTo(document.body) + .addClass('ui-dialog-overlay').css($.extend({ + borderWidth: 0, margin: 0, padding: 0, + position: 'absolute', top: 0, left: 0, + width: this.width(), + height: this.height() + }, dialog.options.overlay)); + + (dialog.options.bgiframe && $.fn.bgiframe && $el.bgiframe()); + + this.instances.push($el); + return $el; + }, + + destroy: function($el) { + this.instances.splice($.inArray(this.instances, $el), 1); + + if (this.instances.length === 0) { + $('a, :input').add([document, window]).unbind('.dialog-overlay'); + } + + $el.remove(); + }, + + height: function() { + // handle IE 6 + if ($.browser.msie && $.browser.version < 7) { + var scrollHeight = Math.max( + document.documentElement.scrollHeight, + document.body.scrollHeight + ); + var offsetHeight = Math.max( + document.documentElement.offsetHeight, + document.body.offsetHeight + ); + + if (scrollHeight < offsetHeight) { + return $(window).height() + 'px'; + } else { + return scrollHeight + 'px'; + } + // handle Opera + } else if ($.browser.opera) { + return Math.max( + window.innerHeight, + $(document).height() + ) + 'px'; + // handle "good" browsers + } else { + return $(document).height() + 'px'; + } + }, + + width: function() { + // handle IE 6 + if ($.browser.msie && $.browser.version < 7) { + var scrollWidth = Math.max( + document.documentElement.scrollWidth, + document.body.scrollWidth + ); + var offsetWidth = Math.max( + document.documentElement.offsetWidth, + document.body.offsetWidth + ); + + if (scrollWidth < offsetWidth) { + return $(window).width() + 'px'; + } else { + return scrollWidth + 'px'; + } + // handle Opera + } else if ($.browser.opera) { + return Math.max( + window.innerWidth, + $(document).width() + ) + 'px'; + // handle "good" browsers + } else { + return $(document).width() + 'px'; + } + }, + + resize: function() { + /* If the dialog is draggable and the user drags it past the + * right edge of the window, the document becomes wider so we + * need to stretch the overlay. If the user then drags the + * dialog back to the left, the document will become narrower, + * so we need to shrink the overlay to the appropriate size. + * This is handled by shrinking the overlay before setting it + * to the full document size. + */ + var $overlays = $([]); + $.each($.ui.dialog.overlay.instances, function() { + $overlays = $overlays.add(this); + }); + + $overlays.css({ + width: 0, + height: 0 + }).css({ + width: $.ui.dialog.overlay.width(), + height: $.ui.dialog.overlay.height() + }); + } +}); + +$.extend($.ui.dialog.overlay.prototype, { + destroy: function() { + $.ui.dialog.overlay.destroy(this.$el); + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.draggable.js b/sites/all/libraries/jquery.ui/ui/ui.draggable.js new file mode 100644 index 0000000..3432f44 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.draggable.js @@ -0,0 +1,711 @@ +/* + * jQuery UI Draggable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Draggables + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.draggable", $.extend({}, $.ui.mouse, { + + _init: function() { + + if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position"))) + this.element[0].style.position = 'relative'; + + (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-draggable")); + (this.options.disabled && this.element.addClass('ui-draggable-disabled')); + + this._mouseInit(); + + }, + + destroy: function() { + if(!this.element.data('draggable')) return; + this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable ui-draggable-dragging ui-draggable-disabled'); + this._mouseDestroy(); + }, + + _mouseCapture: function(event) { + + var o = this.options; + + if (this.helper || o.disabled || $(event.target).is('.ui-resizable-handle')) + return false; + + //Quit if we're not on a valid handle + this.handle = this._getHandle(event); + if (!this.handle) + return false; + + return true; + + }, + + _mouseStart: function(event) { + + var o = this.options; + + //Create and append the visible helper + this.helper = this._createHelper(event); + + //Cache the helper size + this._cacheHelperProportions(); + + //If ddmanager is used for droppables, set the global draggable + if($.ui.ddmanager) + $.ui.ddmanager.current = this; + + /* + * - Position generation - + * This block generates everything position related - it's the core of draggables. + */ + + //Cache the margins of the original element + this._cacheMargins(); + + //Store the helper's css position + this.cssPosition = this.helper.css("position"); + this.scrollParent = this.helper.scrollParent(); + + //The element's absolute position on the page minus margins + this.offset = this.element.offset(); + this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left + }; + + $.extend(this.offset, { + click: { //Where the click happened, relative to the element + left: event.pageX - this.offset.left, + top: event.pageY - this.offset.top + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper + }); + + //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied + if(o.cursorAt) + this._adjustOffsetFromHelper(o.cursorAt); + + //Generate the original position + this.originalPosition = this._generatePosition(event); + + //Set a containment if given in the options + if(o.containment) + this._setContainment(); + + //Call plugins and callbacks + this._propagate("start", event); + + //Recache the helper size + this._cacheHelperProportions(); + + //Prepare the droppable offsets + if ($.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(this, event); + + this.helper.addClass("ui-draggable-dragging"); + this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position + return true; + }, + + _mouseDrag: function(event, noPropagation) { + + //Compute the helpers position + this.position = this._generatePosition(event); + this.positionAbs = this._convertPositionTo("absolute"); + + //Call plugins and callbacks and use the resulting position if something is returned + if(!noPropagation) this.position = this._propagate("drag", event) || this.position; + + if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; + if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; + if($.ui.ddmanager) $.ui.ddmanager.drag(this, event); + + return false; + }, + + _mouseStop: function(event) { + + //If we are using droppables, inform the manager about the drop + var dropped = false; + if ($.ui.ddmanager && !this.options.dropBehaviour) + var dropped = $.ui.ddmanager.drop(this, event); + + if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) { + var self = this; + $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() { + self._propagate("stop", event); + self._clear(); + }); + } else { + this._propagate("stop", event); + this._clear(); + } + + return false; + }, + + _getHandle: function(event) { + + var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false; + $(this.options.handle, this.element) + .find("*") + .andSelf() + .each(function() { + if(this == event.target) handle = true; + }); + + return handle; + + }, + + _createHelper: function(event) { + + var o = this.options; + var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper == 'clone' ? this.element.clone() : this.element); + + if(!helper.parents('body').length) + helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo)); + + if(helper[0] != this.element[0] && !(/(fixed|absolute)/).test(helper.css("position"))) + helper.css("position", "absolute"); + + return helper; + + }, + + _adjustOffsetFromHelper: function(obj) { + if(obj.left != undefined) this.offset.click.left = obj.left + this.margins.left; + if(obj.right != undefined) this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; + if(obj.top != undefined) this.offset.click.top = obj.top + this.margins.top; + if(obj.bottom != undefined) this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; + }, + + _getParentOffset: function() { + + this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); //Get the offsetParent and cache its position + + if((this.offsetParent[0] == document.body && $.browser.mozilla) //Ugly FF3 fix + || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.browser.msie)) //Ugly IE fix + po = { top: 0, left: 0 }; + + return { + top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), + left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) + }; + + }, + + _getRelativeOffset: function() { + + if(this.cssPosition == "relative") { + var p = this.element.position(); + return { + top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(), + left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft() + }; + } else { + 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) + }; + }, + + _cacheHelperProportions: function() { + this.helperProportions = { + width: this.helper.outerWidth(), + height: this.helper.outerHeight() + }; + }, + + _setContainment: function() { + + var o = this.options; + if(o.containment == 'parent') o.containment = this.helper[0].parentNode; + if(o.containment == 'document' || o.containment == 'window') this.containment = [ + 0 - this.offset.relative.left - this.offset.parent.left, + 0 - this.offset.relative.top - this.offset.parent.top, + $(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0), + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0) + ]; + + if(!(/^(document|window|parent)$/).test(o.containment)) { + var ce = $(o.containment)[0]; + var co = $(o.containment).offset(); + var over = ($(ce).css("overflow") != 'hidden'); + + this.containment = [ + co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, + co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top, + co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left, + co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top + ]; + } + + }, + + _convertPositionTo: function(d, pos) { + + if(!pos) pos = this.position; + var mod = d == "absolute" ? 1 : -1; + var scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + return { + top: ( + pos.top // the calculated relative position + + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod + + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods) + ), + left: ( + pos.left // the calculated relative position + + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : ( scrollIsRootNode ? 0 : scroll.scrollLeft() ) ) * mod + + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods) + ) + }; + }, + + _generatePosition: function(event) { + + var o = this.options, scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + var position = { + top: ( + event.pageY // The absolute mouse position + - this.offset.click.top // Click offset (relative to the element) + - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.top // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) + ), + left: ( + event.pageX // The absolute mouse position + - this.offset.click.left // Click offset (relative to the element) + - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.left // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) + ) + }; + + if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options + + /* + * - Position constraining - + * Constrain the position to a mix of grid, containment. + */ + if(this.containment) { + if(position.left < this.containment[0]) position.left = this.containment[0]; + if(position.top < this.containment[1]) position.top = this.containment[1]; + if(position.left > this.containment[2]) position.left = this.containment[2]; + if(position.top > this.containment[3]) position.top = this.containment[3]; + } + + if(o.grid) { + var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1]; + position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; + + var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0]; + position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; + } + + return position; + }, + + _clear: function() { + this.helper.removeClass("ui-draggable-dragging"); + if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove(); + //if($.ui.ddmanager) $.ui.ddmanager.current = null; + this.helper = null; + this.cancelHelperRemoval = false; + }, + + // From now on bulk stuff - mainly helpers + + _propagate: function(n, event) { + $.ui.plugin.call(this, n, [event, this._uiHash()]); + if(n == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins + return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [event, this._uiHash()], this.options[n]); + }, + + plugins: {}, + + _uiHash: function(event) { + return { + helper: this.helper, + position: this.position, + absolutePosition: this.positionAbs, + options: this.options + }; + } + +})); + +$.extend($.ui.draggable, { + version: "1.6", + defaults: { + appendTo: "parent", + axis: false, + cancel: ":input", + connectToSortable: false, + containment: false, + cssNamespace: "ui", + cursor: "default", + cursorAt: null, + delay: 0, + distance: 1, + grid: false, + handle: false, + helper: "original", + iframeFix: false, + opacity: 1, + refreshPositions: false, + revert: false, + revertDuration: 500, + scope: "default", + scroll: true, + scrollSensitivity: 20, + scrollSpeed: 20, + snap: false, + snapMode: "both", + snapTolerance: 20, + stack: false, + zIndex: null + } +}); + +$.ui.plugin.add("draggable", "connectToSortable", { + start: function(event, ui) { + + var inst = $(this).data("draggable"); + inst.sortables = []; + $(ui.options.connectToSortable).each(function() { + // 'this' points to a string, and should therefore resolved as query, but instead, if the string is assigned to a variable, it loops through the strings properties, + // so we have to append '' to make it anonymous again + $(this+'').each(function() { + if($.data(this, 'sortable')) { + var sortable = $.data(this, 'sortable'); + inst.sortables.push({ + instance: sortable, + shouldRevert: sortable.options.revert + }); + sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache + sortable._propagate("activate", event, inst); + } + }); + }); + + }, + stop: function(event, ui) { + + //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper + var inst = $(this).data("draggable"); + + $.each(inst.sortables, function() { + if(this.instance.isOver) { + this.instance.isOver = 0; + inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance + this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work) + if(this.shouldRevert) this.instance.options.revert = true; //revert here + this.instance._mouseStop(event); + + //Also propagate receive event, since the sortable is actually receiving a element + this.instance.element.triggerHandler("sortreceive", [event, $.extend(this.instance._ui(), { sender: inst.element })], this.instance.options["receive"]); + + this.instance.options.helper = this.instance.options._helper; + + if(inst.options.helper == 'original') { + this.instance.currentItem.css({ top: 'auto', left: 'auto' }); + } + + } else { + this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance + this.instance._propagate("deactivate", event, inst); + } + + }); + + }, + drag: function(event, ui) { + + var inst = $(this).data("draggable"), self = this; + + var checkPos = function(o) { + var dyClick = this.offset.click.top, dxClick = this.offset.click.left; + var helperTop = this.positionAbs.top, helperLeft = this.positionAbs.left; + var itemHeight = o.height, itemWidth = o.width; + var itemTop = o.top, itemLeft = o.left; + + return $.ui.isOver(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth); + }; + + $.each(inst.sortables, function(i) { + + if(checkPos.call(inst, this.instance.containerCache)) { + + //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once + if(!this.instance.isOver) { + this.instance.isOver = 1; + //Now we fake the start of dragging for the sortable instance, + //by cloning the list group item, appending it to the sortable and using it as inst.currentItem + //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one) + this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true); + this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it + this.instance.options.helper = function() { return ui.helper[0]; }; + + event.target = this.instance.currentItem[0]; + this.instance._mouseCapture(event, true); + this.instance._mouseStart(event, true, true); + + //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes + this.instance.offset.click.top = inst.offset.click.top; + this.instance.offset.click.left = inst.offset.click.left; + this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left; + this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top; + + inst._propagate("toSortable", event); + + } + + //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable + if(this.instance.currentItem) this.instance._mouseDrag(event); + + } else { + + //If it doesn't intersect with the sortable, and it intersected before, + //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval + if(this.instance.isOver) { + this.instance.isOver = 0; + this.instance.cancelHelperRemoval = true; + this.instance.options.revert = false; //No revert here + this.instance._mouseStop(event, true); + this.instance.options.helper = this.instance.options._helper; + + //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size + this.instance.currentItem.remove(); + if(this.instance.placeholder) this.instance.placeholder.remove(); + + inst._propagate("fromSortable", event); + } + + }; + + }); + + } +}); + +$.ui.plugin.add("draggable", "cursor", { + start: function(event, ui) { + var t = $('body'); + if (t.css("cursor")) ui.options._cursor = t.css("cursor"); + t.css("cursor", ui.options.cursor); + }, + stop: function(event, ui) { + if (ui.options._cursor) $('body').css("cursor", ui.options._cursor); + } +}); + +$.ui.plugin.add("draggable", "iframeFix", { + start: function(event, ui) { + $(ui.options.iframeFix === true ? "iframe" : ui.options.iframeFix).each(function() { + $('
          ') + .css({ + width: this.offsetWidth+"px", height: this.offsetHeight+"px", + position: "absolute", opacity: "0.001", zIndex: 1000 + }) + .css($(this).offset()) + .appendTo("body"); + }); + }, + stop: function(event, ui) { + $("div.ui-draggable-iframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers + } +}); + +$.ui.plugin.add("draggable", "opacity", { + start: function(event, ui) { + var t = $(ui.helper); + if(t.css("opacity")) ui.options._opacity = t.css("opacity"); + t.css('opacity', ui.options.opacity); + }, + stop: function(event, ui) { + if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity); + } +}); + +$.ui.plugin.add("draggable", "scroll", { + start: function(event, ui) { + var o = ui.options; + var i = $(this).data("draggable"); + + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset(); + + }, + drag: function(event, ui) { + + var o = ui.options, scrolled = false; + var i = $(this).data("draggable"); + + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') { + + if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed; + else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed; + + if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed; + else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed; + + } else { + + if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); + else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); + + if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); + else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); + + } + + if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(i, event); + + + + // This is a special case where we need to modify a offset calculated on start, since the following happened: + // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent + // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that + // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag + if(scrolled !== false && i.cssPosition == 'absolute' && i.scrollParent[0] != document && $.ui.contains(i.scrollParent[0], i.offsetParent[0])) { + i.offset.parent = i._getParentOffset(); + + } + + // This is another very weird special case that only happens for relative elements: + // 1. If the css position is relative + // 2. and the scroll parent is the document or similar to the offset parent + // we have to refresh the relative offset during the scroll so there are no jumps + if(scrolled !== false && i.cssPosition == 'relative' && !(i.scrollParent[0] != document && i.scrollParent[0] != i.offsetParent[0])) { + i.offset.relative = i._getRelativeOffset(); + } + + + } +}); + +$.ui.plugin.add("draggable", "snap", { + start: function(event, ui) { + + var inst = $(this).data("draggable"); + inst.snapElements = []; + + $(ui.options.snap.constructor != String ? ( ui.options.snap.items || ':data(draggable)' ) : ui.options.snap).each(function() { + var $t = $(this); var $o = $t.offset(); + if(this != inst.element[0]) inst.snapElements.push({ + item: this, + width: $t.outerWidth(), height: $t.outerHeight(), + top: $o.top, left: $o.left + }); + }); + + }, + drag: function(event, ui) { + + var inst = $(this).data("draggable"); + var d = ui.options.snapTolerance; + + var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width, + y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height; + + for (var i = inst.snapElements.length - 1; i >= 0; i--){ + + var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width, + t = inst.snapElements[i].top, b = t + inst.snapElements[i].height; + + //Yes, I know, this is insane ;) + if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) { + if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); + inst.snapElements[i].snapping = false; + continue; + } + + if(ui.options.snapMode != 'inner') { + var ts = Math.abs(t - y2) <= d; + var bs = Math.abs(b - y1) <= d; + var ls = Math.abs(l - x2) <= d; + var rs = Math.abs(r - x1) <= d; + if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top; + if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top; + if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left; + if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left; + } + + var first = (ts || bs || ls || rs); + + if(ui.options.snapMode != 'outer') { + var ts = Math.abs(t - y1) <= d; + var bs = Math.abs(b - y2) <= d; + var ls = Math.abs(l - x1) <= d; + var rs = Math.abs(r - x2) <= d; + if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top; + if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top; + if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left; + if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left; + } + + if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) + (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item }))); + inst.snapElements[i].snapping = (ts || bs || ls || rs || first); + + }; + + } +}); + +$.ui.plugin.add("draggable", "stack", { + start: function(event, ui) { + var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) { + return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min); + }); + + $(group).each(function(i) { + this.style.zIndex = ui.options.stack.min + i; + }); + + this[0].style.zIndex = ui.options.stack.min + group.length; + } +}); + +$.ui.plugin.add("draggable", "zIndex", { + start: function(event, ui) { + var t = $(ui.helper); + if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex"); + t.css('zIndex', ui.options.zIndex); + }, + stop: function(event, ui) { + if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex); + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.droppable.js b/sites/all/libraries/jquery.ui/ui/ui.droppable.js new file mode 100644 index 0000000..2e16a9d --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.droppable.js @@ -0,0 +1,315 @@ +/* + * jQuery UI Droppable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Droppables + * + * Depends: + * ui.core.js + * ui.draggable.js + */ +(function($) { + +$.widget("ui.droppable", { + + _init: function() { + + var o = this.options, accept = o.accept; + this.isover = 0; this.isout = 1; + + this.options.accept = this.options.accept && $.isFunction(this.options.accept) ? this.options.accept : function(d) { + return d.is(accept); + }; + + //Store the droppable's proportions + this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight }; + + // Add the reference and positions to the manager + $.ui.ddmanager.droppables[this.options.scope] = $.ui.ddmanager.droppables[this.options.scope] || []; + $.ui.ddmanager.droppables[this.options.scope].push(this); + + (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-droppable")); + + }, + + destroy: function() { + var drop = $.ui.ddmanager.droppables[this.options.scope]; + for ( var i = 0; i < drop.length; i++ ) + if ( drop[i] == this ) + drop.splice(i, 1); + + this.element + .removeClass("ui-droppable-disabled") + .removeData("droppable") + .unbind(".droppable"); + }, + + _setData: function(key, value) { + + if(key == 'accept') { + this.options.accept = value && $.isFunction(value) ? value : function(d) { + return d.is(accept); + }; + } else { + $.widget.prototype._setData.apply(this, arguments); + } + + }, + + _activate: function(event) { + + var draggable = $.ui.ddmanager.current; + $.ui.plugin.call(this, 'activate', [event, this.ui(draggable)]); + if(draggable) this.element.triggerHandler("dropactivate", [event, this.ui(draggable)], this.options.activate); + + }, + + _deactivate: function(event) { + + var draggable = $.ui.ddmanager.current; + $.ui.plugin.call(this, 'deactivate', [event, this.ui(draggable)]); + if(draggable) this.element.triggerHandler("dropdeactivate", [event, this.ui(draggable)], this.options.deactivate); + + }, + + _over: function(event) { + + var draggable = $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element + + if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { + $.ui.plugin.call(this, 'over', [event, this.ui(draggable)]); + this.element.triggerHandler("dropover", [event, this.ui(draggable)], this.options.over); + } + + }, + + _out: function(event) { + + var draggable = $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element + + if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { + $.ui.plugin.call(this, 'out', [event, this.ui(draggable)]); + this.element.triggerHandler("dropout", [event, this.ui(draggable)], this.options.out); + } + + }, + + _drop: function(event,custom) { + + var draggable = custom || $.ui.ddmanager.current; + if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element + + var childrenIntersection = false; + this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() { + var inst = $.data(this, 'droppable'); + if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) { + childrenIntersection = true; return false; + } + }); + if(childrenIntersection) return false; + + if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { + $.ui.plugin.call(this, 'drop', [event, this.ui(draggable)]); + this.element.triggerHandler("drop", [event, this.ui(draggable)], this.options.drop); + return this.element; + } + + return false; + + }, + + plugins: {}, + + ui: function(c) { + return { + draggable: (c.currentItem || c.element), + helper: c.helper, + position: c.position, + absolutePosition: c.positionAbs, + options: this.options, + element: this.element + }; + } + +}); + +$.extend($.ui.droppable, { + version: "1.6", + defaults: { + accept: '*', + activeClass: null, + cssNamespace: 'ui', + greedy: false, + hoverClass: null, + scope: 'default', + tolerance: 'intersect' + } +}); + +$.ui.intersect = function(draggable, droppable, toleranceMode) { + + if (!droppable.offset) return false; + + var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width, + y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height; + var l = droppable.offset.left, r = l + droppable.proportions.width, + t = droppable.offset.top, b = t + droppable.proportions.height; + + switch (toleranceMode) { + case 'fit': + return (l < x1 && x2 < r + && t < y1 && y2 < b); + break; + case 'intersect': + return (l < x1 + (draggable.helperProportions.width / 2) // Right Half + && x2 - (draggable.helperProportions.width / 2) < r // Left Half + && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half + && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half + break; + case 'pointer': + var draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left), + draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top), + isOver = $.ui.isOver(draggableTop, draggableLeft, t, l, droppable.proportions.height, droppable.proportions.width); + return isOver; + break; + case 'touch': + return ( + (y1 >= t && y1 <= b) || // Top edge touching + (y2 >= t && y2 <= b) || // Bottom edge touching + (y1 < t && y2 > b) // Surrounded vertically + ) && ( + (x1 >= l && x1 <= r) || // Left edge touching + (x2 >= l && x2 <= r) || // Right edge touching + (x1 < l && x2 > r) // Surrounded horizontally + ); + break; + default: + return false; + break; + } + +}; + +/* + This manager tracks offsets of draggables and droppables +*/ +$.ui.ddmanager = { + current: null, + droppables: { 'default': [] }, + prepareOffsets: function(t, event) { + + var m = $.ui.ddmanager.droppables[t.options.scope]; + var type = event ? event.type : null; // workaround for #2317 + var list = (t.currentItem || t.element).find(":data(droppable)").andSelf(); + + droppablesLoop: for (var i = 0; i < m.length; i++) { + + if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue; //No disabled and non-accepted + for (var j=0; j < list.length; j++) { if(list[j] == m[i].element[0]) { m[i].proportions.height = 0; continue droppablesLoop; } }; //Filter out elements in the current dragged item + m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue + + m[i].offset = m[i].element.offset(); + m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight }; + + if(type == "dragstart" || type == "sortactivate") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables + + } + + }, + drop: function(draggable, event) { + + var dropped = false; + $.each($.ui.ddmanager.droppables[draggable.options.scope], function() { + + if(!this.options) return; + if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) + dropped = this._drop.call(this, event); + + if (!this.options.disabled && this.visible && this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { + this.isout = 1; this.isover = 0; + this._deactivate.call(this, event); + } + + }); + return dropped; + + }, + drag: function(draggable, event) { + + //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse. + if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event); + + //Run through all droppables and check their positions based on specific tolerance options + + $.each($.ui.ddmanager.droppables[draggable.options.scope], function() { + + if(this.options.disabled || this.greedyChild || !this.visible) return; + var intersects = $.ui.intersect(draggable, this, this.options.tolerance); + + var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null); + if(!c) return; + + var parentInstance; + if (this.options.greedy) { + var parent = this.element.parents(':data(droppable):eq(0)'); + if (parent.length) { + parentInstance = $.data(parent[0], 'droppable'); + parentInstance.greedyChild = (c == 'isover' ? 1 : 0); + } + } + + // we just moved into a greedy child + if (parentInstance && c == 'isover') { + parentInstance['isover'] = 0; + parentInstance['isout'] = 1; + parentInstance._out.call(parentInstance, event); + } + + this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0; + this[c == "isover" ? "_over" : "_out"].call(this, event); + + // we just moved out of a greedy child + if (parentInstance && c == 'isout') { + parentInstance['isout'] = 0; + parentInstance['isover'] = 1; + parentInstance._over.call(parentInstance, event); + } + }); + + } +}; + +/* + * Droppable Extensions + */ + +$.ui.plugin.add("droppable", "activeClass", { + activate: function(event, ui) { + $(this).addClass(ui.options.activeClass); + }, + deactivate: function(event, ui) { + $(this).removeClass(ui.options.activeClass); + }, + drop: function(event, ui) { + $(this).removeClass(ui.options.activeClass); + } +}); + +$.ui.plugin.add("droppable", "hoverClass", { + over: function(event, ui) { + $(this).addClass(ui.options.hoverClass); + }, + out: function(event, ui) { + $(this).removeClass(ui.options.hoverClass); + }, + drop: function(event, ui) { + $(this).removeClass(ui.options.hoverClass); + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.resizable.js b/sites/all/libraries/jquery.ui/ui/ui.resizable.js new file mode 100644 index 0000000..c43d0a8 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.resizable.js @@ -0,0 +1,819 @@ +/* + * jQuery UI Resizable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Resizables + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.resizable", $.extend({}, $.ui.mouse, { + + _init: function() { + + var self = this, o = this.options; + + var elpos = this.element.css('position'); + + this.originalElement = this.element; + + // simulate .ui-resizable { position: relative; } + this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos }); + + $.extend(o, { + _aspectRatio: !!(o.aspectRatio), + helper: o.helper || o.ghost || o.animate ? o.helper || 'ui-resizable-helper' : null, + knobHandles: o.knobHandles === true ? 'ui-resizable-knob-handle' : o.knobHandles + }); + + //Default Theme + var aBorder = '1px solid #DEDEDE'; + + o.defaultTheme = { + 'ui-resizable': { display: 'block' }, + 'ui-resizable-handle': { position: 'absolute', background: '#F2F2F2', fontSize: '0.1px' }, + 'ui-resizable-n': { cursor: 'n-resize', height: '4px', left: '0px', right: '0px', borderTop: aBorder }, + 'ui-resizable-s': { cursor: 's-resize', height: '4px', left: '0px', right: '0px', borderBottom: aBorder }, + 'ui-resizable-e': { cursor: 'e-resize', width: '4px', top: '0px', bottom: '0px', borderRight: aBorder }, + 'ui-resizable-w': { cursor: 'w-resize', width: '4px', top: '0px', bottom: '0px', borderLeft: aBorder }, + 'ui-resizable-se': { cursor: 'se-resize', width: '4px', height: '4px', borderRight: aBorder, borderBottom: aBorder }, + 'ui-resizable-sw': { cursor: 'sw-resize', width: '4px', height: '4px', borderBottom: aBorder, borderLeft: aBorder }, + 'ui-resizable-ne': { cursor: 'ne-resize', width: '4px', height: '4px', borderRight: aBorder, borderTop: aBorder }, + 'ui-resizable-nw': { cursor: 'nw-resize', width: '4px', height: '4px', borderLeft: aBorder, borderTop: aBorder } + }; + + o.knobTheme = { + 'ui-resizable-handle': { background: '#F2F2F2', border: '1px solid #808080', height: '8px', width: '8px' }, + 'ui-resizable-n': { cursor: 'n-resize', top: '0px', left: '45%' }, + 'ui-resizable-s': { cursor: 's-resize', bottom: '0px', left: '45%' }, + 'ui-resizable-e': { cursor: 'e-resize', right: '0px', top: '45%' }, + 'ui-resizable-w': { cursor: 'w-resize', left: '0px', top: '45%' }, + 'ui-resizable-se': { cursor: 'se-resize', right: '0px', bottom: '0px' }, + 'ui-resizable-sw': { cursor: 'sw-resize', left: '0px', bottom: '0px' }, + 'ui-resizable-nw': { cursor: 'nw-resize', left: '0px', top: '0px' }, + 'ui-resizable-ne': { cursor: 'ne-resize', right: '0px', top: '0px' } + }; + + o._nodeName = this.element[0].nodeName; + + //Wrap the element if it cannot hold child nodes + if(o._nodeName.match(/canvas|textarea|input|select|button|img/i)) { + var el = this.element; + + //Opera fixing relative position + if (/relative/.test(el.css('position')) && $.browser.opera) + el.css({ position: 'relative', top: 'auto', left: 'auto' }); + + //Create a wrapper element and set the wrapper to the new current internal element + el.wrap( + $('
          ').css( { + position: el.css('position'), + width: el.outerWidth(), + height: el.outerHeight(), + top: el.css('top'), + left: el.css('left') + }) + ); + + var oel = this.element; this.element = this.element.parent(); + + // store instance on wrapper + this.element.data('resizable', this); + + //Move margins to the wrapper + this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"), + marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom") + }); + + oel.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0}); + + //Prevent Safari textarea resize + if ($.browser.safari && o.preventDefault) oel.css('resize', 'none'); + + o.proportionallyResize = oel.css({ position: 'static', zoom: 1, display: 'block' }); + + // avoid IE jump + this.element.css({ margin: oel.css('margin') }); + + // fix handlers offset + this._proportionallyResize(); + } + + if(!o.handles) o.handles = !$('.ui-resizable-handle', this.element).length ? "e,s,se" : { 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' }; + if(o.handles.constructor == String) { + + o.zIndex = o.zIndex || 1000; + + if(o.handles == 'all') o.handles = 'n,e,s,w,se,sw,ne,nw'; + + var n = o.handles.split(","); o.handles = {}; + + // insertions are applied when don't have theme loaded + var insertionsDefault = { + handle: 'position: absolute; display: none; overflow:hidden;', + n: 'top: 0pt; width:100%;', + e: 'right: 0pt; height:100%;', + s: 'bottom: 0pt; width:100%;', + w: 'left: 0pt; height:100%;', + se: 'bottom: 0pt; right: 0px;', + sw: 'bottom: 0pt; left: 0px;', + ne: 'top: 0pt; right: 0px;', + nw: 'top: 0pt; left: 0px;' + }; + + for(var i = 0; i < n.length; i++) { + var handle = $.trim(n[i]), dt = o.defaultTheme, hname = 'ui-resizable-'+handle, loadDefault = !$.ui.css(hname) && !o.knobHandles, userKnobClass = $.ui.css('ui-resizable-knob-handle'), + allDefTheme = $.extend(dt[hname], dt['ui-resizable-handle']), allKnobTheme = $.extend(o.knobTheme[hname], !userKnobClass ? o.knobTheme['ui-resizable-handle'] : {}); + + // increase zIndex of sw, se, ne, nw axis + var applyZIndex = /sw|se|ne|nw/.test(handle) ? { zIndex: ++o.zIndex } : {}; + + var defCss = (loadDefault ? insertionsDefault[handle] : ''), + axis = $(['
          '].join('')).css( applyZIndex ); + o.handles[handle] = '.ui-resizable-'+handle; + + this.element.append( + //Theme detection, if not loaded, load o.defaultTheme + axis.css( loadDefault ? allDefTheme : {} ) + // Load the knobHandle css, fix width, height, top, left... + .css( o.knobHandles ? allKnobTheme : {} ).addClass(o.knobHandles ? 'ui-resizable-knob-handle' : '').addClass(o.knobHandles) + ); + } + + if (o.knobHandles) this.element.addClass('ui-resizable-knob').css( !$.ui.css('ui-resizable-knob') ? { /*border: '1px #fff dashed'*/ } : {} ); + } + + this._renderAxis = function(target) { + target = target || this.element; + + for(var i in o.handles) { + if(o.handles[i].constructor == String) + o.handles[i] = $(o.handles[i], this.element).show(); + + if (o.transparent) + o.handles[i].css({opacity:0}); + + //Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls) + if (this.element.is('.ui-wrapper') && + o._nodeName.match(/textarea|input|select|button/i)) { + + var axis = $(o.handles[i], this.element), padWrapper = 0; + + //Checking the correct pad and border + padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth(); + + //The padding type i have to apply... + var padPos = [ 'padding', + /ne|nw|n/.test(i) ? 'Top' : + /se|sw|s/.test(i) ? 'Bottom' : + /^e$/.test(i) ? 'Right' : 'Left' ].join(""); + + if (!o.transparent) + target.css(padPos, padWrapper); + + this._proportionallyResize(); + } + if(!$(o.handles[i]).length) continue; + } + }; + + this._renderAxis(this.element); + o._handles = $('.ui-resizable-handle', self.element); + + if (o.disableSelection) + o._handles.disableSelection(); + + //Matching axis name + o._handles.mouseover(function() { + if (!o.resizing) { + if (this.className) + var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i); + //Axis, default = se + self.axis = o.axis = axis && axis[1] ? axis[1] : 'se'; + } + }); + + //If we want to auto hide the elements + if (o.autoHide) { + o._handles.hide(); + $(self.element).addClass("ui-resizable-autohide").hover(function() { + $(this).removeClass("ui-resizable-autohide"); + o._handles.show(); + }, + function(){ + if (!o.resizing) { + $(this).addClass("ui-resizable-autohide"); + o._handles.hide(); + } + }); + } + + this._mouseInit(); + }, + + destroy: function() { + var el = this.element, wrapped = el.children(".ui-resizable").get(0); + + this._mouseDestroy(); + + var _destroy = function(exp) { + $(exp).removeClass("ui-resizable ui-resizable-disabled") + .removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove(); + }; + + _destroy(el); + + if (el.is('.ui-wrapper') && wrapped) { + el.parent().append( + $(wrapped).css({ + position: el.css('position'), + width: el.outerWidth(), + height: el.outerHeight(), + top: el.css('top'), + left: el.css('left') + }) + ).end().remove(); + + _destroy(wrapped); + } + }, + + _mouseCapture: function(event) { + + if(this.options.disabled) return false; + + var handle = false; + for(var i in this.options.handles) { + if($(this.options.handles[i])[0] == event.target) handle = true; + } + if (!handle) return false; + + return true; + + }, + + _mouseStart: function(event) { + + var o = this.options, iniPos = this.element.position(), el = this.element, + ie6 = $.browser.msie && $.browser.version < 7; + o.resizing = true; + o.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() }; + + // bugfix #1749 + if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) { + + // sOffset decides if document scrollOffset will be added to the top/left of the resizable element + var sOffset = $.browser.msie && !o.containment && (/absolute/).test(el.css('position')) && !(/relative/).test(el.parent().css('position')); + var dscrollt = sOffset ? this.documentScroll.top : 0, dscrolll = sOffset ? this.documentScroll.left : 0; + + el.css({ position: 'absolute', top: (iniPos.top + dscrollt), left: (iniPos.left + dscrolll) }); + } + + //Opera fixing relative position + if ($.browser.opera && (/relative/).test(el.css('position'))) + el.css({ position: 'relative', top: 'auto', left: 'auto' }); + + this._renderProxy(); + + var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top')); + + if (o.containment) { + curleft += $(o.containment).scrollLeft()||0; + curtop += $(o.containment).scrollTop()||0; + } + + //Store needed variables + this.offset = this.helper.offset(); + this.position = { left: curleft, top: curtop }; + this.size = o.helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; + this.originalSize = o.helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() }; + this.originalPosition = { left: curleft, top: curtop }; + this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() }; + this.originalMousePosition = { left: event.pageX, top: event.pageY }; + + //Aspect Ratio + o.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height)||1); + + if (o.preserveCursor) { + var cursor = $('.ui-resizable-' + this.axis).css('cursor'); + $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor); + } + + this._propagate("start", event); + return true; + }, + + _mouseDrag: function(event) { + + //Increase performance, avoid regex + var el = this.helper, o = this.options, props = {}, + self = this, smp = this.originalMousePosition, a = this.axis; + + var dx = (event.pageX-smp.left)||0, dy = (event.pageY-smp.top)||0; + var trigger = this._change[a]; + if (!trigger) return false; + + // Calculate the attrs that will be change + var data = trigger.apply(this, [event, dx, dy]), ie6 = $.browser.msie && $.browser.version < 7, csdif = this.sizeDiff; + + if (o._aspectRatio || event.shiftKey) + data = this._updateRatio(data, event); + + data = this._respectSize(data, event); + + // plugins callbacks need to be called first + this._propagate("resize", event); + + el.css({ + top: this.position.top + "px", left: this.position.left + "px", + width: this.size.width + "px", height: this.size.height + "px" + }); + + if (!o.helper && o.proportionallyResize) + this._proportionallyResize(); + + this._updateCache(data); + + // calling the user callback at the end + this.element.triggerHandler("resize", [event, this.ui()], this.options["resize"]); + + return false; + }, + + _mouseStop: function(event) { + + this.options.resizing = false; + var o = this.options, self = this; + + if(o.helper) { + var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName), + soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height, + soffsetw = ista ? 0 : self.sizeDiff.width; + + var s = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) }, + left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null, + top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null; + + if (!o.animate) + this.element.css($.extend(s, { top: top, left: left })); + + if (o.helper && !o.animate) this._proportionallyResize(); + } + + if (o.preserveCursor) + $('body').css('cursor', 'auto'); + + this._propagate("stop", event); + + if (o.helper) this.helper.remove(); + + return false; + }, + + _updateCache: function(data) { + var o = this.options; + this.offset = this.helper.offset(); + if (data.left) this.position.left = data.left; + if (data.top) this.position.top = data.top; + if (data.height) this.size.height = data.height; + if (data.width) this.size.width = data.width; + }, + + _updateRatio: function(data, event) { + + var o = this.options, cpos = this.position, csize = this.size, a = this.axis; + + if (data.height) data.width = (csize.height * o.aspectRatio); + else if (data.width) data.height = (csize.width / o.aspectRatio); + + if (a == 'sw') { + data.left = cpos.left + (csize.width - data.width); + data.top = null; + } + if (a == 'nw') { + data.top = cpos.top + (csize.height - data.height); + data.left = cpos.left + (csize.width - data.width); + } + + return data; + }, + + _respectSize: function(data, event) { + + var el = this.helper, o = this.options, pRatio = o._aspectRatio || event.shiftKey, a = this.axis, + ismaxw = data.width && o.maxWidth && o.maxWidth < data.width, ismaxh = data.height && o.maxHeight && o.maxHeight < data.height, + isminw = data.width && o.minWidth && o.minWidth > data.width, isminh = data.height && o.minHeight && o.minHeight > data.height; + + if (isminw) data.width = o.minWidth; + if (isminh) data.height = o.minHeight; + if (ismaxw) data.width = o.maxWidth; + if (ismaxh) data.height = o.maxHeight; + + var dw = this.originalPosition.left + this.originalSize.width, dh = this.position.top + this.size.height; + var cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a); + + if (isminw && cw) data.left = dw - o.minWidth; + if (ismaxw && cw) data.left = dw - o.maxWidth; + if (isminh && ch) data.top = dh - o.minHeight; + if (ismaxh && ch) data.top = dh - o.maxHeight; + + // fixing jump error on top/left - bug #2330 + var isNotwh = !data.width && !data.height; + if (isNotwh && !data.left && data.top) data.top = null; + else if (isNotwh && !data.top && data.left) data.left = null; + + return data; + }, + + _proportionallyResize: function() { + var o = this.options; + if (!o.proportionallyResize) return; + var prel = o.proportionallyResize, el = this.helper || this.element; + + if (!o.borderDif) { + var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')], + p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')]; + + o.borderDif = $.map(b, function(v, i) { + var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0; + return border + padding; + }); + } + prel.css({ + height: (el.height() - o.borderDif[0] - o.borderDif[2]) + "px", + width: (el.width() - o.borderDif[1] - o.borderDif[3]) + "px" + }); + }, + + _renderProxy: function() { + var el = this.element, o = this.options; + this.elementOffset = el.offset(); + + if(o.helper) { + this.helper = this.helper || $('
          '); + + // fix ie6 offset + var ie6 = $.browser.msie && $.browser.version < 7, ie6offset = (ie6 ? 1 : 0), + pxyoffset = ( ie6 ? 2 : -1 ); + + this.helper.addClass(o.helper).css({ + width: el.outerWidth() + pxyoffset, + height: el.outerHeight() + pxyoffset, + position: 'absolute', + left: this.elementOffset.left - ie6offset +'px', + top: this.elementOffset.top - ie6offset +'px', + zIndex: ++o.zIndex + }); + + this.helper.appendTo("body"); + + if (o.disableSelection) + this.helper.disableSelection(); + + } else { + this.helper = el; + } + }, + + _change: { + e: function(event, dx, dy) { + return { width: this.originalSize.width + dx }; + }, + w: function(event, dx, dy) { + var o = this.options, cs = this.originalSize, sp = this.originalPosition; + return { left: sp.left + dx, width: cs.width - dx }; + }, + n: function(event, dx, dy) { + var o = this.options, cs = this.originalSize, sp = this.originalPosition; + return { top: sp.top + dy, height: cs.height - dy }; + }, + s: function(event, dx, dy) { + return { height: this.originalSize.height + dy }; + }, + se: function(event, dx, dy) { + return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [event, dx, dy])); + }, + sw: function(event, dx, dy) { + return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [event, dx, dy])); + }, + ne: function(event, dx, dy) { + return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [event, dx, dy])); + }, + nw: function(event, dx, dy) { + return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [event, dx, dy])); + } + }, + + _propagate: function(n, event) { + $.ui.plugin.call(this, n, [event, this.ui()]); + if (n != "resize") this.element.triggerHandler(["resize", n].join(""), [event, this.ui()], this.options[n]); + }, + + plugins: {}, + + ui: function() { + return { + originalElement: this.originalElement, + element: this.element, + helper: this.helper, + position: this.position, + size: this.size, + options: this.options, + originalSize: this.originalSize, + originalPosition: this.originalPosition + }; + } + +})); + +$.extend($.ui.resizable, { + version: "1.6", + defaults: { + alsoResize: false, + animate: false, + animateDuration: "slow", + animateEasing: "swing", + aspectRatio: false, + autoHide: false, + cancel: ":input", + containment: false, + disableSelection: true, + distance: 1, + delay: 0, + ghost: false, + grid: false, + knobHandles: false, + maxHeight: null, + maxWidth: null, + minHeight: 10, + minWidth: 10, + preserveCursor: true, + preventDefault: true, + proportionallyResize: false, + transparent: false + } +}); + +/* + * Resizable Extensions + */ + +$.ui.plugin.add("resizable", "alsoResize", { + + start: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), + + _store = function(exp) { + $(exp).each(function() { + $(this).data("resizable-alsoresize", { + width: parseInt($(this).width(), 10), height: parseInt($(this).height(), 10), + left: parseInt($(this).css('left'), 10), top: parseInt($(this).css('top'), 10) + }); + }); + }; + + if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) { + if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); } + else { $.each(o.alsoResize, function(exp, c) { _store(exp); }); } + }else{ + _store(o.alsoResize); + } + }, + + resize: function(event, ui){ + var o = ui.options, self = $(this).data("resizable"), os = self.originalSize, op = self.originalPosition; + + var delta = { + height: (self.size.height - os.height) || 0, width: (self.size.width - os.width) || 0, + top: (self.position.top - op.top) || 0, left: (self.position.left - op.left) || 0 + }, + + _alsoResize = function(exp, c) { + $(exp).each(function() { + var start = $(this).data("resizable-alsoresize"), style = {}, css = c && c.length ? c : ['width', 'height', 'top', 'left']; + + $.each(css || ['width', 'height', 'top', 'left'], function(i, prop) { + var sum = (start[prop]||0) + (delta[prop]||0); + if (sum && sum >= 0) + style[prop] = sum || null; + }); + $(this).css(style); + }); + }; + + if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) { + $.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); }); + }else{ + _alsoResize(o.alsoResize); + } + }, + + stop: function(event, ui){ + $(this).removeData("resizable-alsoresize-start"); + } +}); + +$.ui.plugin.add("resizable", "animate", { + + stop: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"); + + var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName), + soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height, + soffsetw = ista ? 0 : self.sizeDiff.width; + + var style = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) }, + left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null, + top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null; + + self.element.animate( + $.extend(style, top && left ? { top: top, left: left } : {}), { + duration: o.animateDuration, + easing: o.animateEasing, + step: function() { + + var data = { + width: parseInt(self.element.css('width'), 10), + height: parseInt(self.element.css('height'), 10), + top: parseInt(self.element.css('top'), 10), + left: parseInt(self.element.css('left'), 10) + }; + + if (pr) pr.css({ width: data.width, height: data.height }); + + // propagating resize, and updating values for each animation step + self._updateCache(data); + self._propagate("animate", event); + + } + } + ); + } + +}); + +$.ui.plugin.add("resizable", "containment", { + + start: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), el = self.element; + var oc = o.containment, ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc; + if (!ce) return; + + self.containerElement = $(ce); + + if (/document/.test(oc) || oc == document) { + self.containerOffset = { left: 0, top: 0 }; + self.containerPosition = { left: 0, top: 0 }; + + self.parentData = { + element: $(document), left: 0, top: 0, + width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight + }; + } + + // i'm a node, so compute top, left, right, bottom + else{ + var element = $(ce), p = []; + $([ "Top", "Right", "Left", "Bottom" ]).each(function(i, name) { p[i] = num(element.css("padding" + name)); }); + + self.containerOffset = element.offset(); + self.containerPosition = element.position(); + self.containerSize = { height: (element.innerHeight() - p[3]), width: (element.innerWidth() - p[1]) }; + + var co = self.containerOffset, ch = self.containerSize.height, cw = self.containerSize.width, + width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch); + + self.parentData = { + element: ce, left: co.left, top: co.top, width: width, height: height + }; + } + }, + + resize: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), + ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position, + pRatio = o._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement; + + if (ce[0] != document && (/static/).test(ce.css('position'))) cop = co; + + if (cp.left < (o.helper ? co.left : 0)) { + self.size.width = self.size.width + (o.helper ? (self.position.left - co.left) : (self.position.left - cop.left)); + if (pRatio) self.size.height = self.size.width / o.aspectRatio; + self.position.left = o.helper ? co.left : 0; + } + + if (cp.top < (o.helper ? co.top : 0)) { + self.size.height = self.size.height + (o.helper ? (self.position.top - co.top) : self.position.top); + if (pRatio) self.size.width = self.size.height * o.aspectRatio; + self.position.top = o.helper ? co.top : 0; + } + + self.offset.left = self.parentData.left+self.position.left; + self.offset.top = self.parentData.top+self.position.top; + + var woset = Math.abs( (o.helper ? self.offset.left - cop.left : (self.offset.left - cop.left)) + self.sizeDiff.width ), + hoset = Math.abs( (o.helper ? self.offset.top - cop.top : (self.offset.top - co.top)) + self.sizeDiff.height ); + + var isParent = self.containerElement.get(0) == self.element.parent().get(0), + isOffsetRelative = /relative|absolute/.test(self.containerElement.css('position')); + + if(isParent && isOffsetRelative) woset -= self.parentData.left; + + if (woset + self.size.width >= self.parentData.width) { + self.size.width = self.parentData.width - woset; + if (pRatio) self.size.height = self.size.width / o.aspectRatio; + } + + if (hoset + self.size.height >= self.parentData.height) { + self.size.height = self.parentData.height - hoset; + if (pRatio) self.size.width = self.size.height * o.aspectRatio; + } + }, + + stop: function(event, ui){ + var o = ui.options, self = $(this).data("resizable"), cp = self.position, + co = self.containerOffset, cop = self.containerPosition, ce = self.containerElement; + + var helper = $(self.helper), ho = helper.offset(), w = helper.outerWidth() - self.sizeDiff.width, h = helper.outerHeight() - self.sizeDiff.height; + + if (o.helper && !o.animate && (/relative/).test(ce.css('position'))) + $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h }); + + if (o.helper && !o.animate && (/static/).test(ce.css('position'))) + $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h }); + + } +}); + +$.ui.plugin.add("resizable", "ghost", { + + start: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize, cs = self.size; + + if (!pr) self.ghost = self.element.clone(); + else self.ghost = pr.clone(); + + self.ghost.css( + { opacity: .25, display: 'block', position: 'relative', height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 } + ) + .addClass('ui-resizable-ghost').addClass(typeof o.ghost == 'string' ? o.ghost : ''); + + self.ghost.appendTo(self.helper); + + }, + + resize: function(event, ui){ + var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize; + + if (self.ghost) self.ghost.css({ position: 'relative', height: self.size.height, width: self.size.width }); + + }, + + stop: function(event, ui){ + var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize; + if (self.ghost && self.helper) self.helper.get(0).removeChild(self.ghost.get(0)); + } + +}); + +$.ui.plugin.add("resizable", "grid", { + + resize: function(event, ui) { + var o = ui.options, self = $(this).data("resizable"), cs = self.size, os = self.originalSize, op = self.originalPosition, a = self.axis, ratio = o._aspectRatio || event.shiftKey; + o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid; + var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1); + + if (/^(se|s|e)$/.test(a)) { + self.size.width = os.width + ox; + self.size.height = os.height + oy; + } + else if (/^(ne)$/.test(a)) { + self.size.width = os.width + ox; + self.size.height = os.height + oy; + self.position.top = op.top - oy; + } + else if (/^(sw)$/.test(a)) { + self.size.width = os.width + ox; + self.size.height = os.height + oy; + self.position.left = op.left - ox; + } + else { + self.size.width = os.width + ox; + self.size.height = os.height + oy; + self.position.top = op.top - oy; + self.position.left = op.left - ox; + } + } + +}); + +var num = function(v) { + return parseInt(v, 10) || 0; +}; + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.selectable.js b/sites/all/libraries/jquery.ui/ui/ui.selectable.js new file mode 100644 index 0000000..c0e3922 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.selectable.js @@ -0,0 +1,266 @@ +/* + * jQuery UI Selectable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Selectables + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.selectable", $.extend({}, $.ui.mouse, { + + _init: function() { + var self = this; + + this.element.addClass("ui-selectable"); + + this.dragged = false; + + // cache selectee children based on filter + var selectees; + this.refresh = function() { + selectees = $(self.options.filter, self.element[0]); + selectees.each(function() { + var $this = $(this); + var pos = $this.offset(); + $.data(this, "selectable-item", { + element: this, + $element: $this, + left: pos.left, + top: pos.top, + right: pos.left + $this.width(), + bottom: pos.top + $this.height(), + startselected: false, + selected: $this.hasClass('ui-selected'), + selecting: $this.hasClass('ui-selecting'), + unselecting: $this.hasClass('ui-unselecting') + }); + }); + }; + this.refresh(); + + this.selectees = selectees.addClass("ui-selectee"); + + this._mouseInit(); + + this.helper = $(document.createElement('div')) + .css({border:'1px dotted black'}) + .addClass("ui-selectable-helper"); + }, + + destroy: function() { + this.element + .removeClass("ui-selectable ui-selectable-disabled") + .removeData("selectable") + .unbind(".selectable"); + this._mouseDestroy(); + }, + + _mouseStart: function(event) { + var self = this; + + this.opos = [event.pageX, event.pageY]; + + if (this.options.disabled) + return; + + var options = this.options; + + this.selectees = $(options.filter, this.element[0]); + + // selectable START callback + this.element.triggerHandler("selectablestart", [event, { + "selectable": this.element[0], + "options": options + }], options.start); + + $('body').append(this.helper); + // position helper (lasso) + this.helper.css({ + "z-index": 100, + "position": "absolute", + "left": event.clientX, + "top": event.clientY, + "width": 0, + "height": 0 + }); + + if (options.autoRefresh) { + this.refresh(); + } + + this.selectees.filter('.ui-selected').each(function() { + var selectee = $.data(this, "selectable-item"); + selectee.startselected = true; + if (!event.metaKey) { + selectee.$element.removeClass('ui-selected'); + selectee.selected = false; + selectee.$element.addClass('ui-unselecting'); + selectee.unselecting = true; + // selectable UNSELECTING callback + self.element.triggerHandler("selectableunselecting", [event, { + selectable: self.element[0], + unselecting: selectee.element, + options: options + }], options.unselecting); + } + }); + + var isSelectee = false; + $(event.target).parents().andSelf().each(function() { + if($.data(this, "selectable-item")) isSelectee = true; + }); + return this.options.keyboard ? !isSelectee : true; + }, + + _mouseDrag: function(event) { + var self = this; + this.dragged = true; + + if (this.options.disabled) + return; + + var options = this.options; + + var x1 = this.opos[0], y1 = this.opos[1], x2 = event.pageX, y2 = event.pageY; + if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; } + if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; } + this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1}); + + this.selectees.each(function() { + var selectee = $.data(this, "selectable-item"); + //prevent helper from being selected if appendTo: selectable + if (!selectee || selectee.element == self.element[0]) + return; + var hit = false; + if (options.tolerance == 'touch') { + hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) ); + } else if (options.tolerance == 'fit') { + hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2); + } + + if (hit) { + // SELECT + if (selectee.selected) { + selectee.$element.removeClass('ui-selected'); + selectee.selected = false; + } + if (selectee.unselecting) { + selectee.$element.removeClass('ui-unselecting'); + selectee.unselecting = false; + } + if (!selectee.selecting) { + selectee.$element.addClass('ui-selecting'); + selectee.selecting = true; + // selectable SELECTING callback + self.element.triggerHandler("selectableselecting", [event, { + selectable: self.element[0], + selecting: selectee.element, + options: options + }], options.selecting); + } + } else { + // UNSELECT + if (selectee.selecting) { + if (event.metaKey && selectee.startselected) { + selectee.$element.removeClass('ui-selecting'); + selectee.selecting = false; + selectee.$element.addClass('ui-selected'); + selectee.selected = true; + } else { + selectee.$element.removeClass('ui-selecting'); + selectee.selecting = false; + if (selectee.startselected) { + selectee.$element.addClass('ui-unselecting'); + selectee.unselecting = true; + } + // selectable UNSELECTING callback + self.element.triggerHandler("selectableunselecting", [event, { + selectable: self.element[0], + unselecting: selectee.element, + options: options + }], options.unselecting); + } + } + if (selectee.selected) { + if (!event.metaKey && !selectee.startselected) { + selectee.$element.removeClass('ui-selected'); + selectee.selected = false; + + selectee.$element.addClass('ui-unselecting'); + selectee.unselecting = true; + // selectable UNSELECTING callback + self.element.triggerHandler("selectableunselecting", [event, { + selectable: self.element[0], + unselecting: selectee.element, + options: options + }], options.unselecting); + } + } + } + }); + + return false; + }, + + _mouseStop: function(event) { + var self = this; + + this.dragged = false; + + var options = this.options; + + $('.ui-unselecting', this.element[0]).each(function() { + var selectee = $.data(this, "selectable-item"); + selectee.$element.removeClass('ui-unselecting'); + selectee.unselecting = false; + selectee.startselected = false; + self.element.triggerHandler("selectableunselected", [event, { + selectable: self.element[0], + unselected: selectee.element, + options: options + }], options.unselected); + }); + $('.ui-selecting', this.element[0]).each(function() { + var selectee = $.data(this, "selectable-item"); + selectee.$element.removeClass('ui-selecting').addClass('ui-selected'); + selectee.selecting = false; + selectee.selected = true; + selectee.startselected = true; + self.element.triggerHandler("selectableselected", [event, { + selectable: self.element[0], + selected: selectee.element, + options: options + }], options.selected); + }); + this.element.triggerHandler("selectablestop", [event, { + selectable: self.element[0], + options: this.options + }], this.options.stop); + + this.helper.remove(); + + return false; + } + +})); + +$.extend($.ui.selectable, { + version: "1.6", + defaults: { + appendTo: 'body', + autoRefresh: true, + cancel: ":input", + delay: 0, + distance: 1, + filter: '*', + tolerance: 'touch' + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.slider.js b/sites/all/libraries/jquery.ui/ui/ui.slider.js new file mode 100644 index 0000000..0581400 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.slider.js @@ -0,0 +1,553 @@ +/* + * jQuery UI Slider 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Slider + * + * Depends: + * ui.core.js + */ +(function($) { + +$.fn.unwrap = $.fn.unwrap || function(expr) { + return this.each(function(){ + $(this).parents(expr).eq(0).after(this).remove(); + }); +}; + +$.widget("ui.slider", { + + _init: function() { + + var self = this; + this.element.addClass("ui-slider"); + this._initBoundaries(); + + // Initialize mouse and key events for interaction + this.handle = $(this.options.handle, this.element); + if (!this.handle.length) { + self.handle = self.generated = $(self.options.handles || [0]).map(function() { + var handle = $("
          ").addClass("ui-slider-handle").appendTo(self.element); + if (this.id) + handle.attr("id", this.id); + return handle[0]; + }); + } + + var handleclass = function(el) { + this.element = $(el); + this.element.data("mouse", this); + this.options = self.options; + + this.element.bind("mousedown", function() { + if(self.currentHandle) this.blur(self.currentHandle); + self._focus(this, true); + }); + + this._mouseInit(); + }; + + $.extend(handleclass.prototype, $.ui.mouse, { + _mouseCapture: function() { return true; }, + _mouseStart: function(event) { return self._start.call(self, event, this.element[0]); }, + _mouseDrag: function(event) { return self._drag.call(self, event, this.element[0]); }, + _mouseStop: function(event) { return self._stop.call(self, event, this.element[0]); }, + trigger: function(event) { this._mouseDown(event); } + }); + + $(this.handle) + .each(function() { + new handleclass(this); + }) + .wrap('') + .parent() + .bind('click', function() { return false; }) + .bind('focus', function(event) { self._focus(this.firstChild); }) + .bind('blur', function(event) { self._blur(this.firstChild); }) + .bind('keydown', function(event) { if(!self.options.noKeyboard) return self._keydown(event.keyCode, this.firstChild); }) + ; + + // Bind the click to the slider itself + this.element.bind('mousedown.slider', function(event) { + + if($(event.target).is('.ui-slider-handle')) return; + + //Go to the actual clicked posiion, apply a click + self._click.apply(self, [event]); + + //initiate a handle drag, so we can click+drag somewhere + self.currentHandle.data("mouse").trigger(event); + + //This is for always triggering the change event + self.firstValue = self.firstValue + 1; + + }); + + // Move the first handle to the startValue + $.each(this.options.handles || [], function(index, handle) { + self.moveTo(handle.start, index, true); + }); + if (!isNaN(this.options.startValue)) + this.moveTo(this.options.startValue, 0, true); + + this.previousHandle = $(this.handle[0]); //set the previous handle to the first to allow clicking before selecting the handle + if(this.handle.length == 2 && this.options.range) this._createRange(); + + }, + + destroy: function() { + + this.element + .removeClass("ui-slider ui-slider-disabled") + .removeData("slider") + .unbind(".slider"); + + if(this.handle && this.handle.length) { + this.handle + .unwrap("a"); + this.handle.each(function() { + var mouse = $(this).data("mouse"); + mouse && mouse._mouseDestroy(); + }); + } + + this.generated && this.generated.remove(); + + }, + + _start: function(event, handle) { + + var o = this.options; + if(o.disabled) return false; + + // Prepare the outer size + this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() }; + + // This is a especially ugly fix for strange blur events happening on mousemove events + if (!this.currentHandle) + this._focus(this.previousHandle, true); + + this.offset = this.element.offset(); + + this.handleOffset = this.currentHandle.offset(); + this.clickOffset = { top: event.pageY - this.handleOffset.top, left: event.pageX - this.handleOffset.left }; + + this.firstValue = this.value(); + + this._propagate('start', event); + this._drag(event, handle); + return true; + + }, + + _drag: function(event, handle) { + + var o = this.options; + + var position = { top: event.pageY - this.offset.top - this.clickOffset.top, left: event.pageX - this.offset.left - this.clickOffset.left}; + if(!this.currentHandle) this._focus(this.previousHandle, true); //This is a especially ugly fix for strange blur events happening on mousemove events + + position.left = this._translateLimits(position.left, "x"); + position.top = this._translateLimits(position.top, "y"); + + if (o.stepping.x) { + var value = this._convertValue(position.left, "x"); + value = this._round(value / o.stepping.x) * o.stepping.x; + position.left = this._translateValue(value, "x"); + } + if (o.stepping.y) { + var value = this._convertValue(position.top, "y"); + value = this._round(value / o.stepping.y) * o.stepping.y; + position.top = this._translateValue(value, "y"); + } + + position.left = this._translateRange(position.left, "x"); + position.top = this._translateRange(position.top, "y"); + + if(o.axis != "vertical") this.currentHandle.css({ left: position.left }); + if(o.axis != "horizontal") this.currentHandle.css({ top: position.top }); + + //Store the slider's value + this.currentHandle.data("mouse").sliderValue = { + x: this._round(this._convertValue(position.left, "x")) || 0, + y: this._round(this._convertValue(position.top, "y")) || 0 + }; + + if (this.rangeElement) + this._updateRange(); + this._propagate('slide', event); + return false; + + }, + + _stop: function(event) { + + this._propagate('stop', event); + + if (this.firstValue != this.value()) + this._propagate('change', event); + + // This is a especially ugly fix for strange blur events happening on mousemove events + this._focus(this.currentHandle, true); + + return false; + + }, + + _round: function(value) { + + return this.options.round ? parseInt(value,10) : parseFloat(value); + + }, + + _setData: function(key, value) { + + $.widget.prototype._setData.apply(this, arguments); + + if (/min|max|steps/.test(key)) { + this._initBoundaries(); + } + + if(key == "range") { + value ? this.handle.length == 2 && this._createRange() : this._removeRange(); + } + + }, + + _initBoundaries: function() { + + var element = this.element[0], o = this.options; + this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() }; + + $.extend(o, { + axis: o.axis || (element.offsetWidth < element.offsetHeight ? 'vertical' : 'horizontal'), + max: !isNaN(parseInt(o.max,10)) ? { x: parseInt(o.max, 10), y: parseInt(o.max, 10) } : ({ x: o.max && o.max.x || 100, y: o.max && o.max.y || 100 }), + min: !isNaN(parseInt(o.min,10)) ? { x: parseInt(o.min, 10), y: parseInt(o.min, 10) } : ({ x: o.min && o.min.x || 0, y: o.min && o.min.y || 0 }) + }); + //Prepare the real maxValue + o.realMax = { + x: o.max.x - o.min.x, + y: o.max.y - o.min.y + }; + //Calculate stepping based on steps + o.stepping = { + x: o.stepping && o.stepping.x || parseInt(o.stepping, 10) || (o.steps ? o.realMax.x/(o.steps.x || parseInt(o.steps, 10) || o.realMax.x) : 0), + y: o.stepping && o.stepping.y || parseInt(o.stepping, 10) || (o.steps ? o.realMax.y/(o.steps.y || parseInt(o.steps, 10) || o.realMax.y) : 0) + }; + + }, + + _keydown: function(keyCode, handle) { + + if (this.options.disabled) + return; + + var k = keyCode; + if(/(33|34|35|36|37|38|39|40)/.test(k)) { + var o = this.options, xpos, ypos; + if (/(35|36)/.test(k)) { + xpos = (k == 35) ? o.max.x : o.min.x; + ypos = (k == 35) ? o.max.y : o.min.y; + } else { + var oper = /(34|37|40)/.test(k) ? "-=" : "+="; + var step = /(37|38|39|40)/.test(k) ? "_oneStep" : "_pageStep"; + xpos = oper + this[step]("x"); + ypos = oper + this[step]("y"); + } + this.moveTo({ + x: xpos, + y: ypos + }, handle); + return false; + } + return true; + + }, + + _focus: function(handle,hard) { + + this.currentHandle = $(handle).addClass('ui-slider-handle-active'); + + if (hard) + this.currentHandle.parent()[0].focus(); + + }, + + _blur: function(handle) { + + $(handle).removeClass('ui-slider-handle-active'); + + if(this.currentHandle && this.currentHandle[0] == handle) { + this.previousHandle = this.currentHandle; + this.currentHandle = null; + }; + + }, + + _click: function(event) { + + // This method is only used if: + // - The user didn't click a handle + // - The Slider is not disabled + // - There is a current, or previous selected handle (otherwise we wouldn't know which one to move) + + var pointer = [event.pageX, event.pageY]; + + var clickedHandle = false; + this.handle.each(function() { + if(this == event.target) + clickedHandle = true; + }); + if (clickedHandle || this.options.disabled || !(this.currentHandle || this.previousHandle)) + return; + + // If a previous handle was focussed, focus it again + if (!this.currentHandle && this.previousHandle) + this._focus(this.previousHandle, true); + + // propagate only for distance > 0, otherwise propagation is done my drag + this.offset = this.element.offset(); + + this.moveTo({ + y: this._convertValue(event.pageY - this.offset.top - this.currentHandle[0].offsetHeight/2, "y"), + x: this._convertValue(event.pageX - this.offset.left - this.currentHandle[0].offsetWidth/2, "x") + }, null, !this.options.distance); + + }, + + _createRange: function() { + + if(this.rangeElement) return; + this.rangeElement = $('
          ') + .addClass('ui-slider-range') + .css({ position: 'absolute' }) + .appendTo(this.element); + this._updateRange(); + + }, + + _removeRange: function() { + + this.rangeElement.remove(); + this.rangeElement = null; + + }, + + _updateRange: function() { + + var prop = this.options.axis == "vertical" ? "top" : "left"; + var size = this.options.axis == "vertical" ? "height" : "width"; + + this.rangeElement.css(prop, (this._round($(this.handle[0]).css(prop)) || 0) + this._handleSize(0, this.options.axis == "vertical" ? "y" : "x")/2); + this.rangeElement.css(size, (this._round($(this.handle[1]).css(prop)) || 0) - (this._round($(this.handle[0]).css(prop)) || 0)); + + }, + + _getRange: function() { + + return this.rangeElement ? this._convertValue(this._round(this.rangeElement.css(this.options.axis == "vertical" ? "height" : "width")), this.options.axis == "vertical" ? "y" : "x") : null; + + }, + + _handleIndex: function() { + + return this.handle.index(this.currentHandle[0]); + + }, + + value: function(handle, axis) { + + if(this.handle.length == 1) this.currentHandle = this.handle; + if(!axis) axis = this.options.axis == "vertical" ? "y" : "x"; + + var curHandle = $(handle != undefined && handle !== null ? this.handle[handle] || handle : this.currentHandle); + + if(curHandle.data("mouse").sliderValue) { + return this._round(curHandle.data("mouse").sliderValue[axis]); + } else { + return this._round(((this._round(curHandle.css(axis == "x" ? "left" : "top")) / (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(handle,axis))) * this.options.realMax[axis]) + this.options.min[axis]); + } + + }, + + _convertValue: function(value,axis) { + + return this.options.min[axis] + (value / (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis))) * this.options.realMax[axis]; + + }, + + _translateValue: function(value,axis) { + + return ((value - this.options.min[axis]) / this.options.realMax[axis]) * (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis)); + + }, + + _translateRange: function(value,axis) { + + if (this.rangeElement) { + if (this.currentHandle[0] == this.handle[0] && value >= this._translateValue(this.value(1),axis)) + value = this._translateValue(this.value(1,axis) - this._oneStep(axis), axis); + if (this.currentHandle[0] == this.handle[1] && value <= this._translateValue(this.value(0),axis)) + value = this._translateValue(this.value(0,axis) + this._oneStep(axis), axis); + } + + if (this.options.handles) { + var handle = this.options.handles[this._handleIndex()]; + if (value < this._translateValue(handle.min,axis)) { + value = this._translateValue(handle.min,axis); + } else if (value > this._translateValue(handle.max,axis)) { + value = this._translateValue(handle.max,axis); + } + } + + return value; + + }, + + _translateLimits: function(value,axis) { + + if (value >= this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis)) + value = this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis); + + if (value <= 0) + value = 0; + + return value; + + }, + + _handleSize: function(handle,axis) { + + return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0]["offset"+(axis == "x" ? "Width" : "Height")]; + + }, + + _oneStep: function(axis) { + + return this.options.stepping[axis] || 1; + + }, + + _pageStep: function(axis) { + + return /* this.options.paging[axis] ||*/ 10; + + }, + + moveTo: function(value, handle, noPropagation) { + + var o = this.options; + + // Prepare the outer size + this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() }; + + //If no handle has been passed, no current handle is available and we have multiple handles, return false + if (handle == undefined && !this.currentHandle && this.handle.length != 1) + return false; + + //If only one handle is available, use it + if (handle == undefined && !this.currentHandle) + handle = 0; + + if (handle != undefined) + this.currentHandle = this.previousHandle = $(this.handle[handle] || handle); + + if(value.x !== undefined && value.y !== undefined) { + var x = value.x, y = value.y; + } else { + var x = value, y = value; + } + + if(x !== undefined && x.constructor != Number) { + var me = /^\-\=/.test(x), pe = /^\+\=/.test(x); + if(me || pe) { + x = this.value(null, "x") + this._round(x.replace(me ? '=' : '+=', '')); + } else { + x = isNaN(this._round(x)) ? undefined : this._round(x); + } + } + + if(y !== undefined && y.constructor != Number) { + var me = /^\-\=/.test(y), pe = /^\+\=/.test(y); + if(me || pe) { + y = this.value(null, "y") + this._round(y.replace(me ? '=' : '+=', '')); + } else { + y = isNaN(this._round(y)) ? undefined : this._round(y); + } + } + + if(o.axis != "vertical" && x !== undefined) { + if(o.stepping.x) x = this._round(x / o.stepping.x) * o.stepping.x; + x = this._translateValue(x, "x"); + x = this._translateLimits(x, "x"); + x = this._translateRange(x, "x"); + + o.animate ? this.currentHandle.stop().animate({ left: x }, (Math.abs(parseInt(this.currentHandle.css("left"),10) - x)) * (!isNaN(parseInt(o.animate,10)) ? o.animate : 5)) : this.currentHandle.css({ left: x }); + } + + if(o.axis != "horizontal" && y !== undefined) { + if(o.stepping.y) y = this._round(y / o.stepping.y) * o.stepping.y; + y = this._translateValue(y, "y"); + y = this._translateLimits(y, "y"); + y = this._translateRange(y, "y"); + o.animate ? this.currentHandle.stop().animate({ top: y }, (Math.abs(parseInt(this.currentHandle.css("top"),10) - y)) * (!isNaN(parseInt(o.animate,10)) ? o.animate : 5)) : this.currentHandle.css({ top: y }); + } + + if (this.rangeElement) + this._updateRange(); + + //Store the slider's value + this.currentHandle.data("mouse").sliderValue = { + x: this._round(this._convertValue(x, "x")) || 0, + y: this._round(this._convertValue(y, "y")) || 0 + }; + + if (!noPropagation) { + this._propagate('start', null); + this._propagate("slide", null); + this._propagate('stop', null); + this._propagate('change', null); + } + + }, + + _propagate: function(n, event) { + + $.ui.plugin.call(this, n, [event, this.ui()]); + this.element.triggerHandler(n == "slide" ? n : "slide"+n, [event, this.ui()], this.options[n]); + + }, + + plugins: {}, + + ui: function(event) { + return { + options: this.options, + handle: this.currentHandle, + value: this.options.axis != "both" || !this.options.axis ? + this._round(this.value(null, this.options.axis == "vertical" ? "y" : "x")) : + { + x: this._round(this.value(null, "x")), + y: this._round(this.value(null, "y")) + }, + range: this._getRange() + }; + } + +}); + +$.extend($.ui.slider, { + getter: "value", + version: "1.6", + defaults: { + animate: false, + distance: 1, + handle: ".ui-slider-handle", + round: true + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.sortable.js b/sites/all/libraries/jquery.ui/ui/ui.sortable.js new file mode 100644 index 0000000..8983dd9 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.sortable.js @@ -0,0 +1,1015 @@ +/* + * jQuery UI Sortable 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Sortables + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.sortable", $.extend({}, $.ui.mouse, { + _init: function() { + + var o = this.options; + this.containerCache = {}; + this.element.addClass("ui-sortable"); + + //Get the items + this.refresh(); + + //Let's determine if the items are floating + this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false; + + //Let's determine the parent's offset + this.offset = this.element.offset(); + + //Initialize mouse events for interaction + this._mouseInit(); + + }, + + destroy: function() { + this.element + .removeClass("ui-sortable ui-sortable-disabled") + .removeData("sortable") + .unbind(".sortable"); + this._mouseDestroy(); + + for ( var i = this.items.length - 1; i >= 0; i-- ) + this.items[i].item.removeData("sortable-item"); + }, + + _mouseCapture: function(event, overrideHandle) { + + if (this.reverting) { + return false; + } + + if(this.options.disabled || this.options.type == 'static') return false; + + //We have to refresh the items data once first + this._refreshItems(event); + + //Find out if the clicked node (or one of its parents) is a actual item in this.items + var currentItem = null, self = this, nodes = $(event.target).parents().each(function() { + if($.data(this, 'sortable-item') == self) { + currentItem = $(this); + return false; + } + }); + if($.data(event.target, 'sortable-item') == self) currentItem = $(event.target); + + if(!currentItem) return false; + if(this.options.handle && !overrideHandle) { + var validHandle = false; + + $(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == event.target) validHandle = true; }); + if(!validHandle) return false; + } + + this.currentItem = currentItem; + this._removeCurrentsFromItems(); + return true; + + }, + + _mouseStart: function(event, overrideHandle, noActivation) { + + var o = this.options; + this.currentContainer = this; + + //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture + this.refreshPositions(); + + //Create and append the visible helper + this.helper = this._createHelper(event); + + //Cache the helper size + this._cacheHelperProportions(); + + /* + * - Position generation - + * This block generates everything position related - it's the core of draggables. + */ + + //Cache the margins of the original element + this._cacheMargins(); + + //Get the next scrolling parent + this.scrollParent = this.helper.scrollParent(); + + //The element's absolute position on the page minus margins + this.offset = this.currentItem.offset(); + + this.offset = { + top: this.offset.top - this.margins.top, + left: this.offset.left - this.margins.left + }; + + // Only after we got the offset, we can change the helper's position to absolute + // TODO: Still need to figure out a way to make relative sorting possible + this.helper.css("position", "absolute"); + this.cssPosition = this.helper.css("position"); + + $.extend(this.offset, { + click: { //Where the click happened, relative to the element + left: event.pageX - this.offset.left, + top: event.pageY - this.offset.top + }, + parent: this._getParentOffset(), + relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper + }); + + //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied + if(o.cursorAt) + this._adjustOffsetFromHelper(o.cursorAt); + + //Generate the original position + this.originalPosition = this._generatePosition(event); + + //Cache the former DOM position + this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] }; + + //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way + if(this.helper[0] != this.currentItem[0]) { + this.currentItem.hide(); + } + + //Create the placeholder + this._createPlaceholder(); + + //Set a containment if given in the options + if(o.containment) + this._setContainment(); + + //Call plugins and callbacks + this._propagate("start", event); + + //Recache the helper size + if(!this._preserveHelperProportions) + this._cacheHelperProportions(); + + + //Post 'activate' events to possible containers + if(!noActivation) { + for (var i = this.containers.length - 1; i >= 0; i--) { this.containers[i]._propagate("activate", event, this); } + } + + //Prepare possible droppables + if($.ui.ddmanager) + $.ui.ddmanager.current = this; + + if ($.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(this, event); + + this.dragging = true; + + this.helper.addClass('ui-sortable-helper'); + this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position + return true; + + }, + + _mouseDrag: function(event) { + + //Compute the helpers position + this.position = this._generatePosition(event); + this.positionAbs = this._convertPositionTo("absolute"); + + if (!this.lastPositionAbs) { + this.lastPositionAbs = this.positionAbs; + } + + //Call the internal plugins + $.ui.plugin.call(this, "sort", [event, this._ui()]); + + //Regenerate the absolute position used for position checks + this.positionAbs = this._convertPositionTo("absolute"); + + //Set the helper position + if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; + if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; + + //Rearrange + for (var i = this.items.length - 1; i >= 0; i--) { + + //Cache variables and intersection, continue if no intersection + var item = this.items[i], itemElement = item.item[0], intersection = this._intersectsWithPointer(item); + if (!intersection) continue; + + if(itemElement != this.currentItem[0] //cannot intersect with itself + && this.placeholder[intersection == 1 ? "next" : "prev"]()[0] != itemElement //no useless actions that have been done before + && !$.ui.contains(this.placeholder[0], itemElement) //no action if the item moved is the parent of the item checked + && (this.options.type == 'semi-dynamic' ? !$.ui.contains(this.element[0], itemElement) : true) + ) { + + this.direction = intersection == 1 ? "down" : "up"; + + if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) { + this.options.sortIndicator.call(this, event, item); + } else { + break; + } + + this._propagate("change", event); //Call plugins and callbacks + break; + } + } + + //Post events to containers + this._contactContainers(event); + + //Interconnect with droppables + if($.ui.ddmanager) $.ui.ddmanager.drag(this, event); + + //Call callbacks + this._trigger('sort', event, this._ui()); + + this.lastPositionAbs = this.positionAbs; + return false; + + }, + + _mouseStop: function(event, noPropagation) { + + if(!event) return; + + //If we are using droppables, inform the manager about the drop + if ($.ui.ddmanager && !this.options.dropBehaviour) + $.ui.ddmanager.drop(this, event); + + if(this.options.revert) { + var self = this; + var cur = self.placeholder.offset(); + + self.reverting = true; + + $(this.helper).animate({ + left: cur.left - this.offset.parent.left - self.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft), + top: cur.top - this.offset.parent.top - self.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) + }, parseInt(this.options.revert, 10) || 500, function() { + self._clear(event); + }); + } else { + this._clear(event, noPropagation); + } + + return false; + + }, + + cancel: function() { + + if(this.dragging) { + + this._mouseUp(); + + if(this.options.helper == "original") + this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"); + else + this.currentItem.show(); + + //Post deactivating events to containers + for (var i = this.containers.length - 1; i >= 0; i--){ + this.containers[i]._propagate("deactivate", null, this); + if(this.containers[i].containerCache.over) { + this.containers[i]._propagate("out", null, this); + this.containers[i].containerCache.over = 0; + } + } + + } + + //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node! + if(this.placeholder[0].parentNode) this.placeholder[0].parentNode.removeChild(this.placeholder[0]); + if(this.options.helper != "original" && this.helper && this.helper[0].parentNode) this.helper.remove(); + + $.extend(this, { + helper: null, + dragging: false, + reverting: false, + _noFinalSort: null + }); + + if(this.domPosition.prev) { + $(this.domPosition.prev).after(this.currentItem); + } else { + $(this.domPosition.parent).prepend(this.currentItem); + } + + return true; + + }, + + serialize: function(o) { + + var items = this._getItemsAsjQuery(o && o.connected); + var str = []; o = o || {}; + + $(items).each(function() { + var res = ($(o.item || this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/)); + if(res) str.push((o.key || res[1]+'[]')+'='+(o.key && o.expression ? res[1] : res[2])); + }); + + return str.join('&'); + + }, + + toArray: function(o) { + + var items = this._getItemsAsjQuery(o && o.connected); + var ret = []; o = o || {}; + + items.each(function() { ret.push($(o.item || this).attr(o.attribute || 'id') || ''); }); + return ret; + + }, + + /* Be careful with the following core functions */ + _intersectsWith: function(item) { + + var x1 = this.positionAbs.left, + x2 = x1 + this.helperProportions.width, + y1 = this.positionAbs.top, + y2 = y1 + this.helperProportions.height; + + var l = item.left, + r = l + item.width, + t = item.top, + b = t + item.height; + + var dyClick = this.offset.click.top, + dxClick = this.offset.click.left; + + var isOverElement = (y1 + dyClick) > t && (y1 + dyClick) < b && (x1 + dxClick) > l && (x1 + dxClick) < r; + + if( this.options.tolerance == "pointer" + || this.options.forcePointerForContainers + || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height']) + ) { + return isOverElement; + } else { + + return (l < x1 + (this.helperProportions.width / 2) // Right Half + && x2 - (this.helperProportions.width / 2) < r // Left Half + && t < y1 + (this.helperProportions.height / 2) // Bottom Half + && y2 - (this.helperProportions.height / 2) < b ); // Top Half + + } + }, + + _intersectsWithPointer: function(item) { + + var isOverElementHeight = $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height), + isOverElementWidth = $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width), + isOverElement = isOverElementHeight && isOverElementWidth, + verticalDirection = this._getDragVerticalDirection(), + horizontalDirection = this._getDragHorizontalDirection(); + + if (!isOverElement) + return false; + + return this.floating ? + ( ((horizontalDirection && horizontalDirection == "right") || verticalDirection == "down") ? 2 : 1 ) + : ( verticalDirection && (verticalDirection == "down" ? 2 : 1) ); + + }, + + _intersectsWithSides: function(item) { + + var isOverBottomHalf = $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height), + isOverRightHalf = $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width), + verticalDirection = this._getDragVerticalDirection(), + horizontalDirection = this._getDragHorizontalDirection(); + + if (this.floating && horizontalDirection) { + return ((horizontalDirection == "right" && isOverRightHalf) || (horizontalDirection == "left" && !isOverRightHalf)); + } else { + return verticalDirection && ((verticalDirection == "down" && isOverBottomHalf) || (verticalDirection == "up" && !isOverBottomHalf)); + } + + }, + + _getDragVerticalDirection: function() { + var delta = this.positionAbs.top - this.lastPositionAbs.top; + return delta != 0 && (delta > 0 ? "down" : "up"); + }, + + _getDragHorizontalDirection: function() { + var delta = this.positionAbs.left - this.lastPositionAbs.left; + return delta != 0 && (delta > 0 ? "right" : "left"); + }, + + refresh: function(event) { + this._refreshItems(event); + this.refreshPositions(); + }, + + _getItemsAsjQuery: function(connected) { + + var self = this; + var items = []; + var queries = []; + + if(this.options.connectWith && connected) { + for (var i = this.options.connectWith.length - 1; i >= 0; i--){ + var cur = $(this.options.connectWith[i]); + for (var j = cur.length - 1; j >= 0; j--){ + var inst = $.data(cur[j], 'sortable'); + if(inst && inst != this && !inst.options.disabled) { + queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper"), inst]); + } + }; + }; + } + + queries.push([$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element).not(".ui-sortable-helper"), this]); + + for (var i = queries.length - 1; i >= 0; i--){ + queries[i][0].each(function() { + items.push(this); + }); + }; + + return $(items); + + }, + + _removeCurrentsFromItems: function() { + + var list = this.currentItem.find(":data(sortable-item)"); + + for (var i=0; i < this.items.length; i++) { + + for (var j=0; j < list.length; j++) { + if(list[j] == this.items[i].item[0]) + this.items.splice(i,1); + }; + + }; + + }, + + _refreshItems: function(event) { + + this.items = []; + this.containers = [this]; + var items = this.items; + var self = this; + var queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element[0], event, { item: this.currentItem }) : $(this.options.items, this.element), this]]; + + if(this.options.connectWith) { + for (var i = this.options.connectWith.length - 1; i >= 0; i--){ + var cur = $(this.options.connectWith[i]); + for (var j = cur.length - 1; j >= 0; j--){ + var inst = $.data(cur[j], 'sortable'); + if(inst && inst != this && !inst.options.disabled) { + queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]); + this.containers.push(inst); + } + }; + }; + } + + for (var i = queries.length - 1; i >= 0; i--) { + var targetData = queries[i][1]; + var _queries = queries[i][0]; + + for (var j=0, queriesLength = _queries.length; j < queriesLength; j++) { + var item = $(_queries[j]); + + item.data('sortable-item', targetData); // Data for target checking (mouse manager) + + items.push({ + item: item, + instance: targetData, + width: 0, height: 0, + left: 0, top: 0 + }); + }; + }; + + }, + + refreshPositions: function(fast) { + + //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change + if(this.offsetParent && this.helper) { + this.offset.parent = this._getParentOffset(); + } + + for (var i = this.items.length - 1; i >= 0; i--){ + var item = this.items[i]; + + //We ignore calculating positions of all connected containers when we're not over them + if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0]) + continue; + + var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item; + + if (!fast) { + if (this.options.accurateIntersection) { + item.width = t.outerWidth(); + item.height = t.outerHeight(); + } + else { + item.width = t[0].offsetWidth; + item.height = t[0].offsetHeight; + } + } + + var p = t.offset(); + item.left = p.left; + item.top = p.top; + }; + + if(this.options.custom && this.options.custom.refreshContainers) { + this.options.custom.refreshContainers.call(this); + } else { + for (var i = this.containers.length - 1; i >= 0; i--){ + var p = this.containers[i].element.offset(); + this.containers[i].containerCache.left = p.left; + this.containers[i].containerCache.top = p.top; + this.containers[i].containerCache.width = this.containers[i].element.outerWidth(); + this.containers[i].containerCache.height = this.containers[i].element.outerHeight(); + }; + } + + }, + + _createPlaceholder: function(that) { + + var self = that || this, o = self.options; + + if(!o.placeholder || o.placeholder.constructor == String) { + var className = o.placeholder; + o.placeholder = { + element: function() { + + var el = $(document.createElement(self.currentItem[0].nodeName)) + .addClass(className || self.currentItem[0].className+" ui-sortable-placeholder") + .removeClass('ui-sortable-helper')[0]; + + if(!className) { + el.style.visibility = "hidden"; + document.body.appendChild(el); + // Name attributes are removed, otherwice causes elements to be unchecked + // Expando attributes also have to be removed because of stupid IE (no condition, doesn't hurt in other browsers) + el.innerHTML = self.currentItem[0].innerHTML.replace(/name\=\"[^\"\']+\"/g, '').replace(/jQuery[0-9]+\=\"[^\"\']+\"/g, ''); + document.body.removeChild(el); + }; + + return el; + }, + update: function(container, p) { + if(className && !o.forcePlaceholderSize) return; + if(!p.height()) { p.height(self.currentItem.innerHeight() - parseInt(self.currentItem.css('paddingTop')||0, 10) - parseInt(self.currentItem.css('paddingBottom')||0, 10)); }; + if(!p.width()) { p.width(self.currentItem.innerWidth() - parseInt(self.currentItem.css('paddingLeft')||0, 10) - parseInt(self.currentItem.css('paddingRight')||0, 10)); }; + } + }; + } + + //Create the placeholder + self.placeholder = $(o.placeholder.element.call(self.element, self.currentItem)); + + //Append it after the actual current item + self.currentItem.after(self.placeholder); + + //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317) + o.placeholder.update(self, self.placeholder); + + }, + + _contactContainers: function(event) { + for (var i = this.containers.length - 1; i >= 0; i--){ + + if(this._intersectsWith(this.containers[i].containerCache)) { + if(!this.containers[i].containerCache.over) { + + if(this.currentContainer != this.containers[i]) { + + //When entering a new container, we will find the item with the least distance and append our item near it + var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[i].floating ? 'left' : 'top']; + for (var j = this.items.length - 1; j >= 0; j--) { + if(!$.ui.contains(this.containers[i].element[0], this.items[j].item[0])) continue; + var cur = this.items[j][this.containers[i].floating ? 'left' : 'top']; + if(Math.abs(cur - base) < dist) { + dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j]; + } + } + + if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled + continue; + + this.currentContainer = this.containers[i]; + itemWithLeastDistance ? this.options.sortIndicator.call(this, event, itemWithLeastDistance, null, true) : this.options.sortIndicator.call(this, event, null, this.containers[i].element, true); + this._propagate("change", event); //Call plugins and callbacks + this.containers[i]._propagate("change", event, this); //Call plugins and callbacks + + //Update the placeholder + this.options.placeholder.update(this.currentContainer, this.placeholder); + + } + + this.containers[i]._propagate("over", event, this); + this.containers[i].containerCache.over = 1; + } + } else { + if(this.containers[i].containerCache.over) { + this.containers[i]._propagate("out", event, this); + this.containers[i].containerCache.over = 0; + } + } + + }; + }, + + _createHelper: function(event) { + + var o = this.options; + var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : (o.helper == 'clone' ? this.currentItem.clone() : this.currentItem); + + if(!helper.parents('body').length) //Add the helper to the DOM if that didn't happen already + $(o.appendTo != 'parent' ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(helper[0]); + + if(helper[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") }; + + if(helper[0].style.width == '' || o.forceHelperSize) helper.width(this.currentItem.width()); + if(helper[0].style.height == '' || o.forceHelperSize) helper.height(this.currentItem.height()); + + return helper; + + }, + + _adjustOffsetFromHelper: function(obj) { + if(obj.left != undefined) this.offset.click.left = obj.left + this.margins.left; + if(obj.right != undefined) this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; + if(obj.top != undefined) this.offset.click.top = obj.top + this.margins.top; + if(obj.bottom != undefined) this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; + }, + + _getParentOffset: function() { + + //Get the offsetParent and cache its position + this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); + + if((this.offsetParent[0] == document.body && $.browser.mozilla) //Ugly FF3 fix + || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.browser.msie)) //Ugly IE fix + po = { top: 0, left: 0 }; + + return { + top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0), + left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0) + }; + + }, + + _getRelativeOffset: function() { + + if(this.cssPosition == "relative") { + var p = this.currentItem.position(); + return { + top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(), + left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft() + }; + } else { + 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 o = this.options; + if(o.containment == 'parent') o.containment = this.helper[0].parentNode; + if(o.containment == 'document' || o.containment == 'window') this.containment = [ + 0 - this.offset.relative.left - this.offset.parent.left, + 0 - this.offset.relative.top - this.offset.parent.top, + $(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.margins.left - (parseInt(this.currentItem.css("marginRight"),10) || 0), + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.margins.top - (parseInt(this.currentItem.css("marginBottom"),10) || 0) + ]; + + if(!(/^(document|window|parent)$/).test(o.containment)) { + var ce = $(o.containment)[0]; + var co = $(o.containment).offset(); + var over = ($(ce).css("overflow") != 'hidden'); + + this.containment = [ + co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, + co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top, + co.left + (over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, + co.top + (over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top + ]; + } + + }, + + _convertPositionTo: function(d, pos) { + + if(!pos) pos = this.position; + var mod = d == "absolute" ? 1 : -1; + var scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + return { + top: ( + pos.top // the calculated relative position + + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod + + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods) + ), + left: ( + pos.left // the calculated relative position + + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent + + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : ( scrollIsRootNode ? 0 : scroll.scrollLeft() ) ) * mod + + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods) + ) + }; + }, + + _generatePosition: function(event) { + + var o = this.options, scroll = this[(this.cssPosition == 'absolute' ? 'offset' : 'scroll')+'Parent'], scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); + + var position = { + top: ( + event.pageY // The absolute mouse position + - this.offset.click.top // Click offset (relative to the element) + - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.top // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) + ), + left: ( + event.pageX // The absolute mouse position + - this.offset.click.left // Click offset (relative to the element) + - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent + - this.offset.parent.left // The offsetParent's offset without borders (offset + border) + + ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : ( scrollIsRootNode ? 0 : scroll.scrollLeft() ) ) + ) + }; + + if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options + + /* + * - Position constraining - + * Constrain the position to a mix of grid, containment. + */ + if(this.containment) { + if(position.left < this.containment[0]) position.left = this.containment[0]; + if(position.top < this.containment[1]) position.top = this.containment[1]; + if(position.left + this.helperProportions.width > this.containment[2]) position.left = this.containment[2] - this.helperProportions.width; + if(position.top + this.helperProportions.height > this.containment[3]) position.top = this.containment[3] - this.helperProportions.height; + } + + if(o.grid) { + var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1]; + position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top; + + var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0]; + position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left; + } + + return position; + }, + + _rearrange: function(event, i, a, hardRefresh) { + + a ? a[0].appendChild(this.placeholder[0]) : i.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction == 'down' ? i.item[0] : i.item[0].nextSibling)); + + //Various things done here to improve the performance: + // 1. we create a setTimeout, that calls refreshPositions + // 2. on the instance, we have a counter variable, that get's higher after every append + // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same + // 4. this lets only the last addition to the timeout stack through + this.counter = this.counter ? ++this.counter : 1; + var self = this, counter = this.counter; + + window.setTimeout(function() { + if(counter == self.counter) self.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove + },0); + + }, + + _clear: function(event, noPropagation) { + + this.reverting = false; + + //We first have to update the dom position of the actual currentItem + if(!this._noFinalSort) this.placeholder.before(this.currentItem); + this._noFinalSort = null; + + if(this.helper[0] == this.currentItem[0]) { + for(var i in this._storedCSS) { + if(this._storedCSS[i] == 'auto' || this._storedCSS[i] == 'static') this._storedCSS[i] = ''; + } + this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"); + } else { + this.currentItem.show(); + } + + if(this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) this._propagate("update", event, null, noPropagation); //Trigger update callback if the DOM position has changed + if(!$.ui.contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element + this._propagate("remove", event, null, noPropagation); + for (var i = this.containers.length - 1; i >= 0; i--){ + if($.ui.contains(this.containers[i].element[0], this.currentItem[0])) { + this.containers[i]._propagate("update", event, this, noPropagation); + this.containers[i]._propagate("receive", event, this, noPropagation); + } + }; + }; + + //Post events to containers + for (var i = this.containers.length - 1; i >= 0; i--){ + this.containers[i]._propagate("deactivate", event, this, noPropagation); + if(this.containers[i].containerCache.over) { + this.containers[i]._propagate("out", event, this); + this.containers[i].containerCache.over = 0; + } + } + + this.dragging = false; + if(this.cancelHelperRemoval) { + this._propagate("beforeStop", event, null, noPropagation); + this._propagate("stop", event, null, noPropagation); + return false; + } + + this._propagate("beforeStop", event, null, noPropagation); + + //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node! + this.placeholder[0].parentNode.removeChild(this.placeholder[0]); + + if(this.options.helper != "original") this.helper.remove(); this.helper = null; + this._propagate("stop", event, null, noPropagation); + + return true; + + }, + + _propagate: function(n, event, inst, noPropagation) { + $.ui.plugin.call(this, n, [event, this._ui(inst)]); + var dontCancel = !noPropagation ? this.element.triggerHandler(n == "sort" ? n : "sort"+n, [event, this._ui(inst)], this.options[n]) : true; + if(dontCancel === false) this.cancel(); + }, + + plugins: {}, + + _ui: function(inst) { + var self = inst || this; + return { + helper: self.helper, + placeholder: self.placeholder || $([]), + position: self.position, + absolutePosition: self.positionAbs, + item: self.currentItem, + sender: inst ? inst.element : null + }; + } + +})); + +$.extend($.ui.sortable, { + getter: "serialize toArray", + version: "1.6", + defaults: { + accurateIntersection: true, + appendTo: "parent", + cancel: ":input", + delay: 0, + distance: 1, + dropOnEmpty: true, + forcePlaceholderSize: false, + forceHelperSize: false, + helper: "original", + items: '> *', + scope: "default", + scroll: true, + scrollSensitivity: 20, + scrollSpeed: 20, + sortIndicator: $.ui.sortable.prototype._rearrange, + tolerance: "default", + zIndex: 1000 + } +}); + +/* + * Sortable Extensions + */ + +$.ui.plugin.add("sortable", "cursor", { + start: function(event, ui) { + var t = $('body'), i = $(this).data('sortable'); + if (t.css("cursor")) i.options._cursor = t.css("cursor"); + t.css("cursor", i.options.cursor); + }, + beforeStop: function(event, ui) { + var i = $(this).data('sortable'); + if (i.options._cursor) $('body').css("cursor", i.options._cursor); + } +}); + +$.ui.plugin.add("sortable", "opacity", { + start: function(event, ui) { + var t = ui.helper, i = $(this).data('sortable'); + if(t.css("opacity")) i.options._opacity = t.css("opacity"); + t.css('opacity', i.options.opacity); + }, + beforeStop: function(event, ui) { + var i = $(this).data('sortable'); + if(i.options._opacity) $(ui.helper).css('opacity', i.options._opacity); + } +}); + +$.ui.plugin.add("sortable", "scroll", { + start: function(event, ui) { + var i = $(this).data("sortable"), o = i.options; + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset(); + }, + sort: function(event, ui) { + + var i = $(this).data("sortable"), o = i.options, scrolled = false; + + if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') { + + if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed; + else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity) + i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed; + + if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed; + else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity) + i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed; + + } else { + + if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); + else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) + scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); + + if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); + else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) + scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); + + } + + if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) + $.ui.ddmanager.prepareOffsets(i, event); + + + + //This is a special case where we need to modify a offset calculated on start, since the following happened: + // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent + // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that + // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag + if(scrolled !== false && i.cssPosition == 'absolute' && i.scrollParent[0] != document && $.ui.contains(i.scrollParent[0], i.offsetParent[0])) { + i.offset.parent = i._getParentOffset(); + } + + // This is another very weird special case that only happens for relative elements: + // 1. If the css position is relative + // 2. and the scroll parent is the document or similar to the offset parent + // we have to refresh the relative offset during the scroll so there are no jumps + if(scrolled !== false && i.cssPosition == 'relative' && !(i.scrollParent[0] != document && i.scrollParent[0] != i.offsetParent[0])) { + i.offset.relative = i._getRelativeOffset(); + } + + } +}); + +$.ui.plugin.add("sortable", "zIndex", { + start: function(event, ui) { + var t = ui.helper, i = $(this).data('sortable'); + if(t.css("zIndex")) i.options._zIndex = t.css("zIndex"); + t.css('zIndex', i.options.zIndex); + }, + beforeStop: function(event, ui) { + var i = $(this).data('sortable'); + if(i.options._zIndex) $(ui.helper).css('zIndex', i.options._zIndex == 'auto' ? '' : i.options._zIndex); + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/ui/ui.tabs.js b/sites/all/libraries/jquery.ui/ui/ui.tabs.js new file mode 100644 index 0000000..6a308f9 --- /dev/null +++ b/sites/all/libraries/jquery.ui/ui/ui.tabs.js @@ -0,0 +1,572 @@ +/* + * jQuery UI Tabs 1.6 + * + * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Tabs + * + * Depends: + * ui.core.js + */ +(function($) { + +$.widget("ui.tabs", { + + _init: function() { + // create tabs + this._tabify(true); + }, + + destroy: function() { + var o = this.options; + this.element.unbind('.tabs') + .removeClass(o.navClass).removeData('tabs'); + this.$tabs.each(function() { + var href = $.data(this, 'href.tabs'); + if (href) + this.href = href; + var $this = $(this).unbind('.tabs'); + $.each(['href', 'load', 'cache'], function(i, prefix) { + $this.removeData(prefix + '.tabs'); + }); + }); + this.$lis.add(this.$panels).each(function() { + if ($.data(this, 'destroy.tabs')) + $(this).remove(); + else + $(this).removeClass([o.selectedClass, o.deselectableClass, + o.disabledClass, o.panelClass, o.hideClass].join(' ')); + }); + if (o.cookie) + this._cookie(null, o.cookie); + }, + + _setData: function(key, value) { + if ((/^selected/).test(key)) + this.select(value); + else { + this.options[key] = value; + this._tabify(); + } + }, + + length: function() { + return this.$tabs.length; + }, + + _tabId: function(a) { + return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '') + || this.options.idPrefix + $.data(a); + }, + + _sanitizeSelector: function(hash) { + return hash.replace(/:/g, '\\:'); // we need this because an id may contain a ":" + }, + + _cookie: function() { + var cookie = this.cookie || (this.cookie = 'ui-tabs-' + $.data(this.element[0])); + return $.cookie.apply(null, [cookie].concat($.makeArray(arguments))); + }, + + _tabify: function(init) { + + this.$lis = $('li:has(a[href])', this.element); + this.$tabs = this.$lis.map(function() { return $('a', this)[0]; }); + this.$panels = $([]); + + var self = this, o = this.options; + + this.$tabs.each(function(i, a) { + // inline tab + if (a.hash && a.hash.replace('#', '')) // Safari 2 reports '#' for an empty hash + self.$panels = self.$panels.add(self._sanitizeSelector(a.hash)); + // remote tab + else if ($(a).attr('href') != '#') { // prevent loading the page itself if href is just "#" + $.data(a, 'href.tabs', a.href); // required for restore on destroy + $.data(a, 'load.tabs', a.href); // mutable + var id = self._tabId(a); + a.href = '#' + id; + var $panel = $('#' + id); + if (!$panel.length) { + $panel = $(o.panelTemplate).attr('id', id).addClass(o.panelClass) + .insertAfter(self.$panels[i - 1] || self.element); + $panel.data('destroy.tabs', true); + } + self.$panels = self.$panels.add($panel); + } + // invalid tab href + else + o.disabled.push(i + 1); + }); + + // initialization from scratch + if (init) { + + // attach necessary classes for styling if not present + this.element.addClass(o.navClass); + this.$panels.addClass(o.panelClass); + + // Selected tab + // use "selected" option or try to retrieve: + // 1. from fragment identifier in url + // 2. from cookie + // 3. from selected class attribute on
        14. + if (o.selected === undefined) { + if (location.hash) { + this.$tabs.each(function(i, a) { + if (a.hash == location.hash) { + o.selected = i; + return false; // break + } + }); + } + else if (o.cookie) { + var index = parseInt(self._cookie(), 10); + if (index && self.$tabs[index]) o.selected = index; + } + else if (self.$lis.filter('.' + o.selectedClass).length) + o.selected = self.$lis.index( self.$lis.filter('.' + o.selectedClass)[0] ); + } + o.selected = o.selected === null || o.selected !== undefined ? o.selected : 0; // first tab selected by default + + // Take disabling tabs via class attribute from HTML + // into account and update option properly. + // A selected tab cannot become disabled. + o.disabled = $.unique(o.disabled.concat( + $.map(this.$lis.filter('.' + o.disabledClass), + function(n, i) { return self.$lis.index(n); } ) + )).sort(); + if ($.inArray(o.selected, o.disabled) != -1) + o.disabled.splice($.inArray(o.selected, o.disabled), 1); + + // highlight selected tab + this.$panels.addClass(o.hideClass); + this.$lis.removeClass(o.selectedClass); + if (o.selected !== null) { + this.$panels.eq(o.selected).removeClass(o.hideClass); + var classes = [o.selectedClass]; + if (o.deselectable) classes.push(o.deselectableClass); + this.$lis.eq(o.selected).addClass(classes.join(' ')); + + // seems to be expected behavior that the show callback is fired + var onShow = function() { + self._trigger('show', null, + self.ui(self.$tabs[o.selected], self.$panels[o.selected])); + }; + + // load if remote tab + if ($.data(this.$tabs[o.selected], 'load.tabs')) + this.load(o.selected, onShow); + // just trigger show event + else onShow(); + } + + // clean up to avoid memory leaks in certain versions of IE 6 + $(window).bind('unload', function() { + self.$tabs.unbind('.tabs'); + self.$lis = self.$tabs = self.$panels = null; + }); + + } + // update selected after add/remove + else + o.selected = this.$lis.index( this.$lis.filter('.' + o.selectedClass)[0] ); + + // set or update cookie after init and add/remove respectively + if (o.cookie) this._cookie(o.selected, o.cookie); + + // disable tabs + for (var i = 0, li; li = this.$lis[i]; i++) + $(li)[$.inArray(i, o.disabled) != -1 && !$(li).hasClass(o.selectedClass) ? 'addClass' : 'removeClass'](o.disabledClass); + + // reset cache if switching from cached to not cached + if (o.cache === false) this.$tabs.removeData('cache.tabs'); + + // set up animations + var hideFx, showFx; + if (o.fx) { + if (o.fx.constructor == Array) { + hideFx = o.fx[0]; + showFx = o.fx[1]; + } + else hideFx = showFx = o.fx; + } + + // Reset certain styles left over from animation + // and prevent IE's ClearType bug... + function resetStyle($el, fx) { + $el.css({ display: '' }); + if ($.browser.msie && fx.opacity) $el[0].style.removeAttribute('filter'); + } + + // Show a tab... + var showTab = showFx ? + function(clicked, $show) { + $show.animate(showFx, showFx.duration || 'normal', function() { + $show.removeClass(o.hideClass); + resetStyle($show, showFx); + self._trigger('show', null, self.ui(clicked, $show[0])); + }); + } : + function(clicked, $show) { + $show.removeClass(o.hideClass); + self._trigger('show', null, self.ui(clicked, $show[0])); + }; + + // Hide a tab, $show is optional... + var hideTab = hideFx ? + function(clicked, $hide, $show) { + $hide.animate(hideFx, hideFx.duration || 'normal', function() { + $hide.addClass(o.hideClass); + resetStyle($hide, hideFx); + if ($show) showTab(clicked, $show, $hide); + }); + } : + function(clicked, $hide, $show) { + $hide.addClass(o.hideClass); + if ($show) showTab(clicked, $show); + }; + + // Switch a tab... + function switchTab(clicked, $li, $hide, $show) { + var classes = [o.selectedClass]; + if (o.deselectable) classes.push(o.deselectableClass); + $li.addClass(classes.join(' ')).siblings().removeClass(classes.join(' ')); + hideTab(clicked, $hide, $show); + } + + // attach tab event handler, unbind to avoid duplicates from former tabifying... + this.$tabs.unbind('.tabs').bind(o.event + '.tabs', function() { + + //var trueClick = event.clientX; // add to history only if true click occured, not a triggered click + var $li = $(this).parents('li:eq(0)'), + $hide = self.$panels.filter(':visible'), + $show = $(self._sanitizeSelector(this.hash)); + + // If tab is already selected and not deselectable or tab disabled or + // or is already loading or click callback returns false stop here. + // Check if click handler returns false last so that it is not executed + // for a disabled or loading tab! + if (($li.hasClass(o.selectedClass) && !o.deselectable) + || $li.hasClass(o.disabledClass) + || $(this).hasClass(o.loadingClass) + || self._trigger('select', null, self.ui(this, $show[0])) === false + ) { + this.blur(); + return false; + } + + o.selected = self.$tabs.index(this); + + // if tab may be closed + if (o.deselectable) { + if ($li.hasClass(o.selectedClass)) { + self.options.selected = null; + $li.removeClass([o.selectedClass, o.deselectableClass].join(' ')); + self.$panels.stop(); + hideTab(this, $hide); + this.blur(); + return false; + } else if (!$hide.length) { + self.$panels.stop(); + var a = this; + self.load(self.$tabs.index(this), function() { + $li.addClass([o.selectedClass, o.deselectableClass].join(' ')); + showTab(a, $show); + }); + this.blur(); + return false; + } + } + + if (o.cookie) self._cookie(o.selected, o.cookie); + + // stop possibly running animations + self.$panels.stop(); + + // show new tab + if ($show.length) { + var a = this; + self.load(self.$tabs.index(this), $hide.length ? + function() { + switchTab(a, $li, $hide, $show); + } : + function() { + $li.addClass(o.selectedClass); + showTab(a, $show); + } + ); + } else + throw 'jQuery UI Tabs: Mismatching fragment identifier.'; + + // Prevent IE from keeping other link focussed when using the back button + // and remove dotted border from clicked link. This is controlled via CSS + // in modern browsers; blur() removes focus from address bar in Firefox + // which can become a usability and annoying problem with tabs('rotate'). + if ($.browser.msie) this.blur(); + + return false; + + }); + + // disable click if event is configured to something else + if (o.event != 'click') this.$tabs.bind('click.tabs', function(){return false;}); + + }, + + add: function(url, label, index) { + if (index == undefined) + index = this.$tabs.length; // append by default + + var o = this.options; + var $li = $(o.tabTemplate.replace(/#\{href\}/g, url).replace(/#\{label\}/g, label)); + $li.data('destroy.tabs', true); + + var id = url.indexOf('#') == 0 ? url.replace('#', '') : this._tabId( $('a:first-child', $li)[0] ); + + // try to find an existing element before creating a new one + var $panel = $('#' + id); + if (!$panel.length) { + $panel = $(o.panelTemplate).attr('id', id) + .addClass(o.hideClass) + .data('destroy.tabs', true); + } + $panel.addClass(o.panelClass); + if (index >= this.$lis.length) { + $li.appendTo(this.element); + $panel.appendTo(this.element[0].parentNode); + } else { + $li.insertBefore(this.$lis[index]); + $panel.insertBefore(this.$panels[index]); + } + + o.disabled = $.map(o.disabled, + function(n, i) { return n >= index ? ++n : n }); + + this._tabify(); + + if (this.$tabs.length == 1) { + $li.addClass(o.selectedClass); + $panel.removeClass(o.hideClass); + var href = $.data(this.$tabs[0], 'load.tabs'); + if (href) + this.load(index, href); + } + + // callback + this._trigger('add', null, this.ui(this.$tabs[index], this.$panels[index])); + }, + + remove: function(index) { + var o = this.options, $li = this.$lis.eq(index).remove(), + $panel = this.$panels.eq(index).remove(); + + // If selected tab was removed focus tab to the right or + // in case the last tab was removed the tab to the left. + if ($li.hasClass(o.selectedClass) && this.$tabs.length > 1) + this.select(index + (index + 1 < this.$tabs.length ? 1 : -1)); + + o.disabled = $.map($.grep(o.disabled, function(n, i) { return n != index; }), + function(n, i) { return n >= index ? --n : n }); + + this._tabify(); + + // callback + this._trigger('remove', null, this.ui($li.find('a')[0], $panel[0])); + }, + + enable: function(index) { + var o = this.options; + if ($.inArray(index, o.disabled) == -1) + return; + + var $li = this.$lis.eq(index).removeClass(o.disabledClass); + if ($.browser.safari) { // fix disappearing tab (that used opacity indicating disabling) after enabling in Safari 2... + $li.css('display', 'inline-block'); + setTimeout(function() { + $li.css('display', 'block'); + }, 0); + } + + o.disabled = $.grep(o.disabled, function(n, i) { return n != index; }); + + // callback + this._trigger('enable', null, this.ui(this.$tabs[index], this.$panels[index])); + }, + + disable: function(index) { + var self = this, o = this.options; + if (index != o.selected) { // cannot disable already selected tab + this.$lis.eq(index).addClass(o.disabledClass); + + o.disabled.push(index); + o.disabled.sort(); + + // callback + this._trigger('disable', null, this.ui(this.$tabs[index], this.$panels[index])); + } + }, + + select: function(index) { + // TODO make null as argument work + if (typeof index == 'string') + index = this.$tabs.index( this.$tabs.filter('[href$=' + index + ']')[0] ); + this.$tabs.eq(index).trigger(this.options.event + '.tabs'); + }, + + load: function(index, callback) { // callback is for internal usage only + + var self = this, o = this.options, $a = this.$tabs.eq(index), a = $a[0], + bypassCache = callback == undefined || callback === false, url = $a.data('load.tabs'); + + callback = callback || function() {}; + + // no remote or from cache - just finish with callback + if (!url || !bypassCache && $.data(a, 'cache.tabs')) { + callback(); + return; + } + + // load remote from here on + + var inner = function(parent) { + var $parent = $(parent), $inner = $parent.find('*:last'); + return $inner.length && $inner.is(':not(img)') && $inner || $parent; + }; + var cleanup = function() { + self.$tabs.filter('.' + o.loadingClass).removeClass(o.loadingClass) + .each(function() { + if (o.spinner) + inner(this).parent().html(inner(this).data('label.tabs')); + }); + self.xhr = null; + }; + + if (o.spinner) { + var label = inner(a).html(); + inner(a).wrapInner('') + .find('em').data('label.tabs', label).html(o.spinner); + } + + var ajaxOptions = $.extend({}, o.ajaxOptions, { + url: url, + success: function(r, s) { + $(self._sanitizeSelector(a.hash)).html(r); + cleanup(); + + if (o.cache) + $.data(a, 'cache.tabs', true); // if loaded once do not load them again + + // callbacks + self._trigger('load', null, self.ui(self.$tabs[index], self.$panels[index])); + try { + o.ajaxOptions.success(r, s); + } + catch (event) {} + + // This callback is required because the switch has to take + // place after loading has completed. Call last in order to + // fire load before show callback... + callback(); + } + }); + if (this.xhr) { + // terminate pending requests from other tabs and restore tab label + this.xhr.abort(); + cleanup(); + } + $a.addClass(o.loadingClass); + self.xhr = $.ajax(ajaxOptions); + }, + + url: function(index, url) { + this.$tabs.eq(index).removeData('cache.tabs').data('load.tabs', url); + }, + + ui: function(tab, panel) { + return { + options: this.options, + tab: tab, + panel: panel, + index: this.$tabs.index(tab) + }; + } + +}); + +$.extend($.ui.tabs, { + version: '1.6', + getter: 'length', + defaults: { + ajaxOptions: null, + cache: false, + cookie: null, // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true } + deselectable: false, + deselectableClass: 'ui-tabs-deselectable', + disabled: [], + disabledClass: 'ui-tabs-disabled', + event: 'click', + fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 } + hideClass: 'ui-tabs-hide', + idPrefix: 'ui-tabs-', + loadingClass: 'ui-tabs-loading', + navClass: 'ui-tabs-nav', + panelClass: 'ui-tabs-panel', + panelTemplate: '
          ', + selectedClass: 'ui-tabs-selected', + spinner: 'Loading…', + tabTemplate: '
        15. #{label}
        16. ' + } +}); + +/* + * Tabs Extensions + */ + +/* + * Rotate + */ +$.extend($.ui.tabs.prototype, { + rotation: null, + rotate: function(ms, continuing) { + + continuing = continuing || false; + + var self = this, t = this.options.selected; + + function start() { + self.rotation = setInterval(function() { + t = ++t < self.$tabs.length ? t : 0; + self.select(t); + }, ms); + } + + function stop(event) { + if (!event || event.clientX) { // only in case of a true click + clearInterval(self.rotation); + } + } + + // start interval + if (ms) { + start(); + if (!continuing) + this.$tabs.bind(this.options.event + '.tabs', stop); + else + this.$tabs.bind(this.options.event + '.tabs', function() { + stop(); + t = self.options.selected; + start(); + }); + } + // stop interval + else { + stop(); + this.$tabs.unbind(this.options.event + '.tabs', stop); + } + } +}); + +})(jQuery); diff --git a/sites/all/libraries/jquery.ui/version.txt b/sites/all/libraries/jquery.ui/version.txt new file mode 100644 index 0000000..dc39e58 --- /dev/null +++ b/sites/all/libraries/jquery.ui/version.txt @@ -0,0 +1 @@ +1.6 \ No newline at end of file