diff --git a/DEBIAN/conffiles b/DEBIAN/conffiles deleted file mode 100644 index 9f5d6cc7..00000000 --- a/DEBIAN/conffiles +++ /dev/null @@ -1 +0,0 @@ -/etc/hedera-web/config.php diff --git a/DEBIAN/control b/DEBIAN/control deleted file mode 100644 index 130c8869..00000000 --- a/DEBIAN/control +++ /dev/null @@ -1,9 +0,0 @@ -Package: hedera-web -Version: 1.0-4 -Architecture: all -Maintainer: Juan Ferrer Toribio -Depends: apache2, php5-mysql -Section: misc -Priority: optional -Description: Verdnatura's web page - Verdnatura's web page. diff --git a/DEBIAN/postinst b/DEBIAN/postinst deleted file mode 100755 index b9cb5d2f..00000000 --- a/DEBIAN/postinst +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -service apache2 reload - diff --git a/DEBIAN/prerm b/DEBIAN/prerm deleted file mode 100755 index b9cb5d2f..00000000 --- a/DEBIAN/prerm +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -service apache2 reload - diff --git a/etc/apache2/conf.d/hedera-web b/etc/apache2/conf.d/hedera-web deleted file mode 100644 index 505ef125..00000000 --- a/etc/apache2/conf.d/hedera-web +++ /dev/null @@ -1,9 +0,0 @@ -Alias /hedera-web /usr/share/hedera-web/ - - - Options Indexes - Options +FollowSymLinks - AllowOverride None - Order Allow,Deny - Allow From All - diff --git a/etc/hedera-web/config.php b/etc/hedera-web/config.php deleted file mode 100755 index f266f8c7..00000000 --- a/etc/hedera-web/config.php +++ /dev/null @@ -1,66 +0,0 @@ - 'es' - -/** - * Compatible browsers. - **/ -,'browser' => array -( - 'Firefox' => 4.0 - ,'Iceweasel' => 4.0 - ,'IE' => 10.0 - ,'Chrome' => 7.0 - ,'Opera' => 11.6 -) - -/** - * Database parameters. - **/ -,'db' => array -( - 'host' => 'db.verdnatura.es' - ,'name' => 'hedera' - ,'user' => 'root' - ,'pass' => 'base64pass' -) - -/** - * The guest user. - **/ -,'guest' => array -( - 'user' => 'visitor' - ,'pass' => 'base64pass' -) - -/** - * Whether to force the use of https on the client. - **/ -,'https' => FALSE - -/** - * The lifetime of the session cookie, in days. - **/ -,'cookieLife' => 15 - -/** - * The module to load if none is specified. - **/ -,'defaultModule' => 'home' - -/** - * The directory where images are located. - **/ -,'imageDir' => '/image/cache' - -); - -?> diff --git a/package/DEBIAN/control b/package/DEBIAN/control index f0570dfa..b1309ea9 100644 --- a/package/DEBIAN/control +++ b/package/DEBIAN/control @@ -1,5 +1,5 @@ Package: hedera-web -Version: 1.0-24 +Version: 1.0-28 Architecture: all Maintainer: Juan Ferrer Toribio Depends: apache2, php5-mysql, php-vn-web diff --git a/package/usr/share/hedera-web/forms/cms/contact/send-data.php b/package/usr/share/hedera-web/forms/cms/contact/send-data.php index b202eaef..2276f880 100755 --- a/package/usr/share/hedera-web/forms/cms/contact/send-data.php +++ b/package/usr/share/hedera-web/forms/cms/contact/send-data.php @@ -6,12 +6,10 @@ $params = array ( 'name' ,'surname' + ,'pc' + ,'phone' ,'email' ,'message' - ,'address' - ,'pc' - ,'city' - ,'phone' ,'captcha' ); diff --git a/package/usr/share/hedera-web/forms/cms/contact/style.css b/package/usr/share/hedera-web/forms/cms/contact/style.css index d8672ca1..854b7f61 100755 --- a/package/usr/share/hedera-web/forms/cms/contact/style.css +++ b/package/usr/share/hedera-web/forms/cms/contact/style.css @@ -61,6 +61,6 @@ div.form-group #captcha input { margin-left: 1em; - max-width: 10em; + max-width: 8em; } diff --git a/package/usr/share/hedera-web/forms/cms/home/style.css b/package/usr/share/hedera-web/forms/cms/home/style.css index 3b7c6ba1..aa5a4097 100755 --- a/package/usr/share/hedera-web/forms/cms/home/style.css +++ b/package/usr/share/hedera-web/forms/cms/home/style.css @@ -23,9 +23,9 @@ .new h2 { - font-size: 1.3em; + font-size: 1.6em; color: black; - font-weight: bold; + font-weight: normal; } .new-info { diff --git a/package/usr/share/hedera-web/forms/cms/training/style.css b/package/usr/share/hedera-web/forms/cms/training/style.css index 01e79b58..566b73e4 100755 --- a/package/usr/share/hedera-web/forms/cms/training/style.css +++ b/package/usr/share/hedera-web/forms/cms/training/style.css @@ -23,9 +23,9 @@ .new h2 { - font-size: 1.3em; + font-size: 1.6em; color: black; - font-weight: bold; + font-weight: normal; } .new-info { diff --git a/package/usr/share/hedera-web/forms/ecomerce/catalog/catalog.js b/package/usr/share/hedera-web/forms/ecomerce/catalog/catalog.js index aa741b19..83cb51aa 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/catalog/catalog.js +++ b/package/usr/share/hedera-web/forms/ecomerce/catalog/catalog.js @@ -3,8 +3,15 @@ Vn.Catalog = new Class ({ Extends: Vn.Module + ,realmColor: null + ,activate: function () { + var model = this.get ('items'); + model.setTableInfo ('m', 'order_row_view'); + model.setFieldFlags ('id', Db.Conn.Flag.AI); + model.setFieldFlags ('Id_Article', Db.Conn.Flag.PRI_KEY); + $('basket-button').addEventListener ('click', this.basketClicked.bind (this)); $('catalog-menu-button').addEventListener ('click', this.showMenu.bind (this)); $('catalog-menu').addEventListener ('click', this.onMenuClick.bind (this)); @@ -37,7 +44,10 @@ Vn.Catalog = new Class ,onRealmsReload: function (model, status) { if (status == Db.Model.Status.READY) + { this.onRealmChanged (); + this.onTypeChanged (); + } } ,onRealmChanged: function () @@ -47,11 +57,9 @@ Vn.Catalog = new Class var row = realms.search ('id', this.get ('realm').value); if (row != -1) - color = '#'+ realms.get (row, 'color'); + this.realmColor = '#'+ realms.get (row, 'color'); else - color = null; - - $('realms-bar').style.backgroundColor = color; + this.realmColor = null; } ,onTypesReload: function (model, status) @@ -70,7 +78,7 @@ Vn.Catalog = new Class var color = null; if (this.get ('type').value) - color = $('realms-bar').style.backgroundColor; + color = this.realmColor; $('catalog-header').style.backgroundColor = color; diff --git a/package/usr/share/hedera-web/forms/ecomerce/catalog/html.php b/package/usr/share/hedera-web/forms/ecomerce/catalog/html.php index 289f9de4..a57917aa 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/catalog/html.php +++ b/package/usr/share/hedera-web/forms/ecomerce/catalog/html.php @@ -97,7 +97,6 @@ -
diff --git a/package/usr/share/hedera-web/forms/ecomerce/catalog/mobile.css b/package/usr/share/hedera-web/forms/ecomerce/catalog/mobile.css new file mode 100755 index 00000000..a2279cba --- /dev/null +++ b/package/usr/share/hedera-web/forms/ecomerce/catalog/mobile.css @@ -0,0 +1,13 @@ + +#catalog-menu-button +{ + display: block; +} +#catalog-menu +{ + display: none; +} +#catalog-center +{ + right: 0; +} diff --git a/package/usr/share/hedera-web/forms/ecomerce/catalog/style.css b/package/usr/share/hedera-web/forms/ecomerce/catalog/style.css index e227ce12..395b5130 100755 --- a/package/usr/share/hedera-web/forms/ecomerce/catalog/style.css +++ b/package/usr/share/hedera-web/forms/ecomerce/catalog/style.css @@ -50,14 +50,13 @@ float: left; display: block; background-color: white; - height: 2em; + height: 2.2em; padding: 0; } #search-entry { margin: 0; border: none; - width: 11em; width: 10em; box-shadow: none; } @@ -67,7 +66,7 @@ } #catalog-search > img { - margin: 0.3em; + margin: 0.4em; margin-top: 0; vertical-align: middle; } @@ -87,13 +86,6 @@ height: 1.8em; } -@media screen and (min-resolution: 100dpi) -{ - #catalog-menu-button { display: block; } - #catalog-menu { display: none; } - #catalog-center { right: 0; } -} - /* Menu */ #catalog-menu @@ -115,14 +107,14 @@ } #catalog .form-group { - margin: 1em; + margin: 2em; } #catalog .form-group select, #catalog .form-group button { display: block; margin: 0 auto; - width: 70%; + width: 12em; } /* Realms */ @@ -144,18 +136,13 @@ { /* height: 4em; */ } -#realms-bar -{ - width: 100%; - height: 0.5em; -} /* Types */ #types-box { position: absolute; - top: 14.4em; + top: 17em; bottom: 0em; right: 0em; left: 0em; @@ -200,7 +187,7 @@ #items-grid > thead > tr, #realms-bar { - background-color: #666; + background-color: #777; } #items-grid > thead th:hover { diff --git a/package/usr/share/hedera-web/forms/news/news/html.php b/package/usr/share/hedera-web/forms/news/news/html.php index e2ba9537..a32ddd88 100755 --- a/package/usr/share/hedera-web/forms/news/news/html.php +++ b/package/usr/share/hedera-web/forms/news/news/html.php @@ -19,8 +19,8 @@ - +
diff --git a/package/usr/share/hedera-web/global/mobile.css b/package/usr/share/hedera-web/global/mobile.css new file mode 100755 index 00000000..3eba5990 --- /dev/null +++ b/package/usr/share/hedera-web/global/mobile.css @@ -0,0 +1,12 @@ + +/* Responsive */ + +@media screen and (max-device-width: 1200px) and (min-resolution: 100dpi) and (orientation: landscape) +{ + * { font-size: 16pt; } +} +@media screen and (max-device-width: 800px) and (min-resolution: 100dpi) +{ + * { font-size: 26pt; } +} + diff --git a/package/usr/share/hedera-web/global/roboto.ttf b/package/usr/share/hedera-web/global/roboto.ttf new file mode 100644 index 00000000..8c082c8d Binary files /dev/null and b/package/usr/share/hedera-web/global/roboto.ttf differ diff --git a/package/usr/share/hedera-web/global/style.css b/package/usr/share/hedera-web/global/style.css index 76371164..33643776 100755 --- a/package/usr/share/hedera-web/global/style.css +++ b/package/usr/share/hedera-web/global/style.css @@ -9,14 +9,6 @@ { * { font-size: 11pt; } } -@media screen and (max-device-width: 1200px) and (min-resolution: 100dpi) and (orientation: landscape) -{ - * { font-size: 16pt; } -} -@media screen and (max-device-width: 800px) and (min-resolution: 100dpi) -{ - * { font-size: 26pt; } -} /* Global */ @@ -112,16 +104,16 @@ select { background-color: white; } +input[type=text], +input[type=password] +{ + height: 1.6em; +} textarea { height: 3.5em; width: 20em; } -input[type=submit], -input[type=button] -{ - background-color: #EEF; -} input[type=text]:focus, input[type=password]:focus, textarea:focus @@ -129,19 +121,18 @@ textarea:focus background-color: #EEF; border-color: #BBC; } -input[type=submit]:hover, -input[type=button]:hover -{ - cursor: pointer; - background-color: #DDE; -} input[type=checkbox], input[type=radio] { width: 0.8em; height: 0.8em; } -button + +/* Buttons */ + +button, +input[type=submit], +input[type=button] { border: none; background-color: #009688; @@ -149,6 +140,13 @@ button padding: 0.5em; cursor: pointer; } +button:hover, +input[type=submit]:hover, +input[type=button]:hover +{ + cursor: pointer; + background-color: #076; +} button.vn { border: none; @@ -175,8 +173,9 @@ button.vn:hover background-color: white; color: black; text-align: left; - min-width: 8em; + min-width: 9em; min-height: 2.3em; + text-align: center; } /* Float */ @@ -205,8 +204,8 @@ div.box .header div.box .header h1 { text-align: left; - font-size: 1.5em; - line-height: 1.7em; + font-size: 1.6em; + line-height: 2em; font-weight: normal; display: inline; } @@ -391,6 +390,11 @@ button.cell-button img { border-top: none /* 1px solid #CCD */; } +.calendar th.button:hover +{ + cursor: pointer; + background-color: #076; +} .calendar col { width: 14.2%; @@ -405,8 +409,7 @@ button.cell-button img padding-right: 0.5em; } .calendar td.highlight, -.calendar td:hover, -.button:hover +.calendar td:hover { cursor: pointer; background-color: #DDE; @@ -442,32 +445,62 @@ img.editable { cursor: pointer; } -div.image-editor +.htk-image-editor { + width: 20em; background-color: white; - border: 1px solid #999; + margin: 0 auto; border-radius: 0.1em; - padding: 1.2em; - width: 35em; + box-shadow: 0 0 0.4em #AAA; } -div.image-editor h3 +.htk-image-editor h2 { - text-align: center; - padding-bottom: 1em; + color: white; + background-color: #009688; + text-align: left; + font-size: 1.3em; + line-height: 1.7em; + font-weight: normal; + padding: 0.6em 0.8em; + margin: 0; } -div.image-editor iframe +.htk-image-editor iframe { display: none; } -div.image-editor button +.htk-image-editor form { - margin-left: 0.5em; - margin-right: 0.5em; + padding: 1.5em; } -div.image-editor img +.htk-image-editor .form-group +{ + margin-bottom: 0.5em; +} +.htk-image-editor .form-group label +{ + display: block; + margin-bottom: 0.3em; +} +.htk-image-editor .form-group input +{ + width: 95%; + height: 1.8em; +} +.htk-image-editor .footer +{ + margin-top: 1em; + text-align: center; +} +.htk-image-editor .footer img { visibility: hidden; vertical-align: middle; padding-right: 1em; } +.htk-image-editor .footer input +{ + display: inline; + margin-left: 0.5em; + margin-right: 0.5em; +} diff --git a/package/usr/share/hedera-web/index.php b/package/usr/share/hedera-web/index.php index df2a11e7..49123c5f 100755 --- a/package/usr/share/hedera-web/index.php +++ b/package/usr/share/hedera-web/index.php @@ -7,17 +7,19 @@ require_once ('vn/hedera/util.php'); use Vn\Hedera\Web; use Vn\Lib\Locale; -Web::init (); - -if ($conf['https'] && (!isset ($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on')) +try { + Web::init (); +} +catch (Exception $e) { - header ("Location: https://${_SERVER['SERVER_NAME']}${_SERVER['REQUEST_URI']}"); + header ('Location: unavailable.html'); exit (0); } -if (!Web::$sysConn->isOpen ()) +if (!isset ($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on') +if (Web::$sysConn->getValue ('SELECT https FROM config')) { - header ('Location: unavailable.html'); + header ("Location: https://${_SERVER['SERVER_NAME']}${_SERVER['REQUEST_URI']}"); exit (0); } @@ -56,11 +58,14 @@ if (!isset ($_SESSION['skipBrowser']) && $page != 'update-browser') $_SESSION['skipBrowser'] = TRUE; } +// Setting the version + +setcookie ('hedera_version', $_SESSION['version']); + // Loading the requested page $basePath = 'pages/'. $page; -setcookie ('hedera_version', $_SESSION['version']); header ('Content-Type: text/html; charset=utf-8'); if (file_exists ($basePath)) diff --git a/package/usr/share/hedera-web/js/db/conn.js b/package/usr/share/hedera-web/js/db/conn.js index f8ad1dde..958f2cce 100755 --- a/package/usr/share/hedera-web/js/db/conn.js +++ b/package/usr/share/hedera-web/js/db/conn.js @@ -189,7 +189,7 @@ Db.Conn.implement this.signalEmit ('loading-changed', false); if (!success) - error = new Vn.Error ('Conn', 'connError', _('ConnError')); + error = new Vn.Error ('Http', 'connError', _('ConnError')); else try { var json = httpRequest.getJson (); @@ -232,7 +232,7 @@ Db.Conn.implement } } catch (e) { - error = new Vn.Error ('Conn', 'badReply', e.message /*_('BadServerReply')*/); + error = new Vn.Error ('Http', 'badReply', e.message); } if (callback) diff --git a/package/usr/share/hedera-web/js/db/model.js b/package/usr/share/hedera-web/js/db/model.js index 2b6e8891..99a726a0 100755 --- a/package/usr/share/hedera-web/js/db/model.js +++ b/package/usr/share/hedera-web/js/db/model.js @@ -624,7 +624,7 @@ Db.Model.implement if (index) { - if (index[value]) + if (index[value] !== undefined) return index[value]; return -1; diff --git a/package/usr/share/hedera-web/js/htk/field/image-editor.js b/package/usr/share/hedera-web/js/htk/field/image-editor.js index 3788df3b..588fca08 100755 --- a/package/usr/share/hedera-web/js/htk/field/image-editor.js +++ b/package/usr/share/hedera-web/js/htk/field/image-editor.js @@ -8,16 +8,11 @@ Htk.ImageEditor = new Class ,initialize: function () { this.createElement ('div'); - this.node.className = 'image-editor'; + this.node.className = 'htk-image-editor'; - var h3 = document.createElement ('h3'); - h3.appendChild (document.createTextNode (_('UpdateImage'))); - this.node.appendChild (h3); - - var iframe = document.createElement ('iframe'); - iframe.name = 'image-editor'; - iframe.addEventListener ('load', this.imageUploaded.bind (this, iframe)); - this.node.appendChild (iframe); + var title = document.createElement ('h2'); + title.appendChild (document.createTextNode (_('UpdateImage'))); + this.node.appendChild (title); var form = document.createElement ('form'); form.method = 'post'; @@ -27,6 +22,52 @@ Htk.ImageEditor = new Class form.addEventListener ('submit', this.formSubmit.bind (this)); this.node.appendChild (form); + var div = document.createElement ('div'); + div.className = 'form-group'; + form.appendChild (div); + + var label = document.createElement ('label'); + label.appendChild (document.createTextNode (_('FileName') + ':')); + div.appendChild (label); + + var nameInput = document.createElement ('input'); + nameInput.type = 'text'; + nameInput.name = 'name'; + nameInput.addEventListener ('change', this.nameChanged.bind (this)); + div.appendChild (nameInput); + + var div = document.createElement ('div'); + div.className = 'form-group'; + form.appendChild (div); + + var label = document.createElement ('label'); + label.appendChild (document.createTextNode (_('File') + ':')); + div.appendChild (label); + + var fileInput = document.createElement ('input'); + fileInput.type = 'file'; + fileInput.name = 'image'; + div.appendChild (fileInput); + + var div = document.createElement ('div'); + div.className = 'footer'; + form.appendChild (div); + + var loader = document.createElement ('img'); + loader.alt = _('Loading'); + loader.src = 'image/loader-black.gif'; + div.appendChild (loader); + + var submitButton = document.createElement ('input'); + submitButton.type = 'submit'; + submitButton.appendChild (document.createTextNode (_('UploadFile'))); + div.appendChild (submitButton); + + var iframe = document.createElement ('iframe'); + iframe.name = 'image-editor'; + iframe.addEventListener ('load', this.imageUploaded.bind (this, iframe)); + this.node.appendChild (iframe); + var schemaInput = document.createElement ('input'); schemaInput.type = 'hidden'; schemaInput.name = 'schema'; @@ -38,64 +79,6 @@ Htk.ImageEditor = new Class input.value = this.maxFileSize; form.appendChild (input); - var table = document.createElement ('table'); - table.cellSpacing = 5; - form.appendChild (table); - - var tbody = document.createElement ('tbody'); - table.appendChild (tbody); - - var tr = document.createElement ('tr'); - tbody.appendChild (tr); - - var td = document.createElement ('td'); - td.style.textAlign = 'right'; - td.appendChild (document.createTextNode (_('FileName') + ':')); - tr.appendChild (td); - - var td = document.createElement ('td'); - tr.appendChild (td); - - var nameInput = document.createElement ('input'); - nameInput.type = 'text'; - nameInput.name = 'name'; - nameInput.addEventListener ('change', this.nameChanged.bind (this)); - td.appendChild (nameInput); - - var tr = document.createElement ('tr'); - tbody.appendChild (tr); - - var td = document.createElement ('td'); - td.style.textAlign = 'right'; - td.appendChild (document.createTextNode (_('File') + ':')); - tr.appendChild (td); - - var td = document.createElement ('td'); - tr.appendChild (td); - - var fileInput = document.createElement ('input'); - fileInput.type = 'file'; - fileInput.name = 'image'; - td.appendChild (fileInput); - - var tr = document.createElement ('tr'); - tbody.appendChild (tr); - - var td = document.createElement ('td'); - td.style.textAlign = 'center'; - td.colSpan = 2; - tr.appendChild (td); - - var loader = document.createElement ('img'); - loader.alt = _('Loading'); - loader.src = 'image/loader-black.gif'; - td.appendChild (loader); - - var submitButton = document.createElement ('input'); - submitButton.type = 'submit'; - submitButton.appendChild (document.createTextNode (_('UploadFile'))); - td.appendChild (submitButton); - this.schemaInput = schemaInput; this.fileInput = fileInput; this.nameInput = nameInput; diff --git a/package/usr/share/hedera-web/js/vn/locale.js b/package/usr/share/hedera-web/js/vn/locale.js index 6a6439a9..dd865869 100755 --- a/package/usr/share/hedera-web/js/vn/locale.js +++ b/package/usr/share/hedera-web/js/vn/locale.js @@ -28,16 +28,21 @@ Vn.Locale = { if (request.readyState != 4) return; + + var success = false; if (request.status == 200) - try { - this.add (eval ('('+ request.responseText +')')); - } - catch (e) { - console.log (e); - } - - callback (); + { + try { + this.add (eval ('('+ request.responseText +')')); + success = true; + } + catch (e) { + console.log ('Locale: %s', e); + } + } + + callback (success); } ,add: function (strings) diff --git a/package/usr/share/hedera-web/js/vn/main.js b/package/usr/share/hedera-web/js/vn/main.js index feb6fe04..17263144 100755 --- a/package/usr/share/hedera-web/js/vn/main.js +++ b/package/usr/share/hedera-web/js/vn/main.js @@ -90,7 +90,9 @@ var Vn = includeData.callbacks.push (callback); script.onload = - this.jsLoaded.bind (this, includeData); + this.jsLoaded.bind (this, includeData, true); + script.onerror = + this.jsLoaded.bind (this, includeData, false); script.onreadystatechange = this.jsStateChanged.bind (this, includeData); @@ -109,17 +111,19 @@ var Vn = ,jsStateChanged: function (includeData) { + console.log ('js: '+ includeData.script.readyState); + if (includeData.script.readyState == 'complete') - this.jsLoaded (includeData); + this.jsLoaded (includeData, true); } - ,jsLoaded: function (includeData) + ,jsLoaded: function (includeData, success) { if (includeData.loaded) return; for (var i = 0; i < includeData.callbacks.length; i++) - includeData.callbacks[i] (); + includeData.callbacks[i] (success); includeData.loaded = true; includeData.callbacks = null; @@ -133,14 +137,10 @@ var Vn = ,isMobile: function () { if (this.isMobileCached === null) - this.isMobileCached = - navigator.userAgent.match (/Android/i) - || navigator.userAgent.match (/webOS/i) - || navigator.userAgent.match (/iPhone/i) - || navigator.userAgent.match (/iPad/i) - || navigator.userAgent.match (/iPod/i) - || navigator.userAgent.match (/BlackBerry/i) - || navigator.userAgent.match (/Windows Phone/i); + { + var regExp = /(Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone)/i; + this.isMobileCached = navigator.userAgent.match (regExp); + } return this.isMobileCached; } diff --git a/package/usr/share/hedera-web/pages/login/head.php b/package/usr/share/hedera-web/pages/login/head.php index 5b0b5568..21855b37 100755 --- a/package/usr/share/hedera-web/pages/login/head.php +++ b/package/usr/share/hedera-web/pages/login/head.php @@ -3,6 +3,17 @@ require_once ('global/metatags.php'); require_once ('js/vn/main.php'); -Vn\Hedera\Js::includeFile ('pages/login/login.js'); +use Vn\Hedera\Js; + +Js::includeFile ('pages/login/login.js'); + +Js::includeCss ('global/style.css'); +Js::includeCss ('pages/login/style.css'); + +if (Js::isMobile ()) +{ + Js::includeCss ('global/mobile.css'); + Js::includeCss ('pages/login/mobile.css'); +} ?> diff --git a/package/usr/share/hedera-web/pages/login/html.php b/package/usr/share/hedera-web/pages/login/html.php index d15dd3d8..7184fcc3 100755 --- a/package/usr/share/hedera-web/pages/login/html.php +++ b/package/usr/share/hedera-web/pages/login/html.php @@ -3,17 +3,14 @@ - + - - Login - Verdnatura -
+ diff --git a/package/usr/share/hedera-web/pages/login/style.css b/package/usr/share/hedera-web/pages/login/style.css index 209ace15..84b977ff 100755 --- a/package/usr/share/hedera-web/pages/login/style.css +++ b/package/usr/share/hedera-web/pages/login/style.css @@ -51,8 +51,9 @@ a left: 0; right: 0; bottom: 0; - background-image: url("background.png"); +/* background-image: url("background.png"); background-repeat: repeat; +*/ } #column { @@ -129,6 +130,7 @@ input[type=submit] border: 1px solid #8B2; height: 2.4em; width: 8em; + color: #250; } input[type=submit]:hover { diff --git a/package/usr/share/hedera-web/pages/web/head.php b/package/usr/share/hedera-web/pages/web/head.php index 6f41b8a2..558deee1 100755 --- a/package/usr/share/hedera-web/pages/web/head.php +++ b/package/usr/share/hedera-web/pages/web/head.php @@ -8,4 +8,13 @@ require_once ('js/htk/main.php'); Js::includeFile ('pages/web/web.js'); Js::includeFile ('pages/web/module.js'); +Js::includeCss ('global/style.css'); +Js::includeCss ('pages/web/style.css'); + +if (Js::isMobile ()) +{ + Js::includeCss ('global/mobile.css'); + Js::includeCss ('pages/web/mobile.css'); +} + ?> diff --git a/package/usr/share/hedera-web/pages/web/html.php b/package/usr/share/hedera-web/pages/web/html.php index 020281fd..5085db38 100755 --- a/package/usr/share/hedera-web/pages/web/html.php +++ b/package/usr/share/hedera-web/pages/web/html.php @@ -8,12 +8,9 @@ - - Verdnatura - '),n=n.firstChild,d.getContainerElm().appendChild(n),setTimeout(function(){r.addClass(n,i+"in"),r.addClass(d.getEl(),i+"in") -},0),c=!0),l.push(d),t()}}),d.on("close hide",function(e){if(e.control==d){for(var n=l.length;n--;)l[n]===d&&l.splice(n,1);t()}}),d.on("show",function(){d.parents().each(function(e){return e._fixed?(d.fixed(!0),!1):void 0})}),e.popover&&(d._preBodyHtml='
',d.addClass("popover").addClass("bottom").addClass(d.isRtl()?"end":"start"))},fixed:function(e){var t=this;if(t._fixed!=e){if(t._rendered){var n=r.getViewPort();e?t.layoutRect().y-=n.y:t.layoutRect().y+=n.y}t.toggleClass("fixed",e),t._fixed=e}return t},show:function(){var e=this,t,n=e._super();for(t=s.length;t--&&s[t]!==e;);return-1===t&&s.push(e),n},hide:function(){return i(this),this._super()},hideAll:function(){u.hideAll()},close:function(){var e=this;return e.fire("close"),e.remove()},remove:function(){i(this),this._super()},postRender:function(){var e=this;return e.settings.bodyRole&&this.getEl("body").setAttribute("role",e.settings.bodyRole),e._super()}});return u.hideAll=function(){for(var e=s.length;e--;){var t=s[e];t&&t.settings.autohide&&(t.hide(),s.splice(e,1))}},u}),r(et,[Z,X,U,Y],function(e,t,n,r){var i=e.extend({modal:!0,Defaults:{border:1,layout:"flex",containerCls:"panel",role:"dialog",callbacks:{submit:function(){this.fire("submit",{data:this.toJSON()})},close:function(){this.close()}}},init:function(e){var n=this;n._super(e),n.isRtl()&&n.addClass("rtl"),n.addClass("window"),n._fixed=!0,e.buttons&&(n.statusbar=new t({layout:"flex",border:"1 0 0 0",spacing:3,padding:10,align:"center",pack:n.isRtl()?"start":"end",defaults:{type:"button"},items:e.buttons}),n.statusbar.addClass("foot"),n.statusbar.parent(n)),n.on("click",function(e){-1!=e.target.className.indexOf(n.classPrefix+"close")&&n.close()}),n.on("cancel",function(){n.close()}),n.aria("describedby",n.describedBy||n._id+"-none"),n.aria("label",e.title),n._fullscreen=!1},recalc:function(){var e=this,t=e.statusbar,r,i,o,a;e._fullscreen&&(e.layoutRect(n.getWindowSize()),e.layoutRect().contentH=e.layoutRect().innerH),e._super(),r=e.layoutRect(),e.settings.title&&!e._fullscreen&&(i=r.headerW,i>r.w&&(o=r.x-Math.max(0,i/2),e.layoutRect({w:i,x:o}),a=!0)),t&&(t.layoutRect({w:e.layoutRect().innerW}).recalc(),i=t.layoutRect().minW+r.deltaW,i>r.w&&(o=r.x-Math.max(0,i-r.w),e.layoutRect({w:i,x:o}),a=!0)),a&&e.recalc()},initLayoutRect:function(){var e=this,t=e._super(),r=0,i;if(e.settings.title&&!e._fullscreen){i=e.getEl("head");var o=n.getSize(i);t.headerW=o.width,t.headerH=o.height,r+=t.headerH}e.statusbar&&(r+=e.statusbar.layoutRect().h),t.deltaH+=r,t.minH+=r,t.h+=r;var a=n.getWindowSize();return t.x=Math.max(0,a.w/2-t.w/2),t.y=Math.max(0,a.h/2-t.h/2),t},renderHtml:function(){var e=this,t=e._layout,n=e._id,r=e.classPrefix,i=e.settings,o="",a="",s=i.html;return e.preRender(),t.preRender(e),i.title&&(o='
'+e.encode(i.title)+'
'),i.url&&(s=''),"undefined"==typeof s&&(s=t.renderHtml(e)),e.statusbar&&(a=e.statusbar.renderHtml()),'
'+o+'
'+s+"
"+a+"
"},fullscreen:function(e){var t=this,r=document.documentElement,i,o=t.classPrefix,a;if(e!=t._fullscreen)if(n.on(window,"resize",function(){var e;if(t._fullscreen)if(i)t._timer||(t._timer=setTimeout(function(){var e=n.getWindowSize();t.moveTo(0,0).resizeTo(e.w,e.h),t._timer=0},50));else{e=(new Date).getTime();var r=n.getWindowSize();t.moveTo(0,0).resizeTo(r.w,r.h),(new Date).getTime()-e>50&&(i=!0)}}),a=t.layoutRect(),t._fullscreen=e,e){t._initial={x:a.x,y:a.y,w:a.w,h:a.h},t._borderBox=t.parseBox("0"),t.getEl("head").style.display="none",a.deltaH-=a.headerH+2,n.addClass(r,o+"fullscreen"),n.addClass(document.body,o+"fullscreen"),t.addClass("fullscreen");var s=n.getWindowSize();t.moveTo(0,0).resizeTo(s.w,s.h)}else t._borderBox=t.parseBox(t.settings.border),t.getEl("head").style.display="",a.deltaH+=a.headerH,n.removeClass(r,o+"fullscreen"),n.removeClass(document.body,o+"fullscreen"),t.removeClass("fullscreen"),t.moveTo(t._initial.x,t._initial.y).resizeTo(t._initial.w,t._initial.h);return t.reflow()},postRender:function(){var e=this,t;setTimeout(function(){e.addClass("in")},0),e._super(),e.statusbar&&e.statusbar.postRender(),e.focus(),this.dragHelper=new r(e._id+"-dragh",{start:function(){t={x:e.layoutRect().x,y:e.layoutRect().y}},drag:function(n){e.moveTo(t.x+n.deltaX,t.y+n.deltaY)}}),e.on("submit",function(t){t.isDefaultPrevented()||e.close()})},submit:function(){return this.fire("submit",{data:this.toJSON()})},remove:function(){var e=this,t=e.classPrefix;e.dragHelper.destroy(),e._super(),e.statusbar&&this.statusbar.remove(),e._fullscreen&&(n.removeClass(document.documentElement,t+"fullscreen"),n.removeClass(document.body,t+"fullscreen"))},getContentWindow:function(){var e=this.getEl().getElementsByTagName("iframe")[0];return e?e.contentWindow:null}});return i}),r(tt,[et],function(e){var t=e.extend({init:function(e){e={border:1,padding:20,layout:"flex",pack:"center",align:"center",containerCls:"panel",autoScroll:!0,buttons:{type:"button",text:"Ok",action:"ok"},items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200}},this._super(e)},Statics:{OK:1,OK_CANCEL:2,YES_NO:3,YES_NO_CANCEL:4,msgBox:function(n){var r,i=n.callback||function(){};switch(n.buttons){case t.OK_CANCEL:r=[{type:"button",text:"Ok",subtype:"primary",onClick:function(e){e.control.parents()[1].close(),i(!0)}},{type:"button",text:"Cancel",onClick:function(e){e.control.parents()[1].close(),i(!1)}}];break;case t.YES_NO:r=[{type:"button",text:"Ok",subtype:"primary",onClick:function(e){e.control.parents()[1].close(),i(!0)}}];break;case t.YES_NO_CANCEL:r=[{type:"button",text:"Ok",subtype:"primary",onClick:function(e){e.control.parents()[1].close()}}];break;default:r=[{type:"button",text:"Ok",subtype:"primary",onClick:function(e){e.control.parents()[1].close(),i(!0)}}]}return new e({padding:20,x:n.x,y:n.y,minWidth:300,minHeight:100,layout:"flex",pack:"center",align:"center",buttons:r,title:n.title,role:"alertdialog",items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200,text:n.text},onPostRender:function(){this.aria("describedby",this.items()[0]._id)},onClose:n.onClose,onCancel:function(){i(!1)}}).renderTo(document.body).reflow()},alert:function(e,n){return"string"==typeof e&&(e={text:e}),e.callback=n,t.msgBox(e)},confirm:function(e,n){return"string"==typeof e&&(e={text:e}),e.callback=n,e.buttons=t.OK_CANCEL,t.msgBox(e)}}});return t}),r(nt,[et,tt],function(e,t){return function(n){function r(){return o.length?o[o.length-1]:void 0}var i=this,o=[];i.windows=o,i.open=function(t,r){var i;return n.editorManager.activeEditor=n,t.title=t.title||" ",t.url=t.url||t.file,t.url&&(t.width=parseInt(t.width||320,10),t.height=parseInt(t.height||240,10)),t.body&&(t.items={defaults:t.defaults,type:t.bodyType||"form",items:t.body}),t.url||t.buttons||(t.buttons=[{text:"Ok",subtype:"primary",onclick:function(){i.find("form")[0].submit()}},{text:"Cancel",onclick:function(){i.close()}}]),i=new e(t),o.push(i),i.on("close",function(){for(var e=o.length;e--;)o[e]===i&&o.splice(e,1);n.focus()}),t.data&&i.on("postRender",function(){this.find("*").each(function(e){var n=e.name();n in t.data&&e.value(t.data[n])})}),i.features=t||{},i.params=r||{},n.nodeChanged(),i.renderTo().reflow()},i.alert=function(e,r,i){t.alert(e,function(){r?r.call(i||this):n.focus()})},i.confirm=function(e,n,r){t.confirm(e,function(e){n.call(r||this,e)})},i.close=function(){r()&&r().close()},i.getParams=function(){return r()?r().params:null},i.setParams=function(e){r()&&(r().params=e)},i.getWindows=function(){return o}}}),r(rt,[R,B,x,h,g,p],function(e,t,n,r,i,o){return function(a){function s(e,t){try{a.getDoc().execCommand(e,!1,t)}catch(n){}}function l(){var e=a.getDoc().documentMode;return e?e:6}function c(e){return e.isDefaultPrevented()}function u(){function t(e){var t=new i(function(){});o.each(a.getBody().getElementsByTagName("*"),function(e){"SPAN"==e.tagName&&e.setAttribute("mce-data-marked",1),!e.hasAttribute("data-mce-style")&&e.hasAttribute("style")&&a.dom.setAttrib(e,"style",e.getAttribute("style"))}),t.observe(a.getDoc(),{childList:!0,attributes:!0,subtree:!0,attributeFilter:["style"]}),a.getDoc().execCommand(e?"ForwardDelete":"Delete",!1,null);var n=a.selection.getRng(),r=n.startContainer.parentNode;o.each(t.takeRecords(),function(e){if("style"==e.attributeName){var t=e.target.getAttribute("data-mce-style");t?e.target.setAttribute("style",t):e.target.removeAttribute("style")}o.each(e.addedNodes,function(e){if("SPAN"==e.nodeName&&!e.getAttribute("mce-data-marked")){var t,i;e==r&&(t=n.startOffset,i=e.firstChild),U.remove(e,!0),i&&(n.setStart(i,t),n.setEnd(i,t),a.selection.setRng(n))}})}),t.disconnect(),o.each(a.dom.select("span[mce-data-marked]"),function(e){e.removeAttribute("mce-data-marked")})}var n=a.getDoc(),r="data:text/mce-internal,",i=window.MutationObserver,s;i||(s=!0,i=function(){function e(e){var t=e.relatedNode||e.target;n.push({target:t,addedNodes:[t]})}function t(e){var t=e.relatedNode||e.target;n.push({target:t,attributeName:e.attrName})}var n=[],r;this.observe=function(n){r=n,r.addEventListener("DOMSubtreeModified",e,!1),r.addEventListener("DOMNodeInsertedIntoDocument",e,!1),r.addEventListener("DOMNodeInserted",e,!1),r.addEventListener("DOMAttrModified",t,!1)},this.disconnect=function(){r.removeEventListener("DOMNodeInserted",e),r.removeEventListener("DOMAttrModified",t),r.removeEventListener("DOMSubtreeModified",e,!1)},this.takeRecords=function(){return n}}),a.on("keydown",function(n){var r=n.keyCode==V,i=e.metaKeyPressed(n);if(!c(n)&&(r||n.keyCode==W)){var o=a.selection.getRng(),s=o.startContainer,l=o.startOffset;if(!i&&o.collapsed&&3==s.nodeType&&(r?l0))return;n.preventDefault(),i&&a.selection.getSel().modify("extend",r?"forward":"backward","word"),t(r)}}),a.on("keypress",function(n){c(n)||q.isCollapsed()||!n.charCode||e.metaKeyPressed(n)||(n.preventDefault(),t(!0),a.selection.setContent(String.fromCharCode(n.charCode)))}),a.addCommand("Delete",function(){t()}),a.addCommand("ForwardDelete",function(){t(!0)}),s||(a.on("dragstart",function(e){e.dataTransfer.setData("URL","data:text/mce-internal,"+escape(a.selection.getContent()))}),a.on("drop",function(e){if(!c(e)){var i=e.dataTransfer.getData("URL");if(!i||-1==i.indexOf(r)||!n.caretRangeFromPoint)return;i=unescape(i.substr(r.length)),n.caretRangeFromPoint&&(e.preventDefault(),t(),a.selection.setRng(n.caretRangeFromPoint(e.x,e.y)),a.insertContent(i))}}),a.on("cut",function(e){!c(e)&&e.clipboardData&&(e.preventDefault(),e.clipboardData.clearData(),e.clipboardData.setData("text/html",a.selection.getContent()),e.clipboardData.setData("text/plain",a.selection.getContent({format:"text"})),t(!0))}))}function d(){function e(e){var t=U.create("body"),n=e.cloneContents();return t.appendChild(n),q.serializer.serialize(t,{format:"html"})}function n(n){if(!n.setStart){if(n.item)return!1;var r=n.duplicate();return r.moveToElementText(a.getBody()),t.compareRanges(n,r)}var i=e(n),o=U.createRng();o.selectNode(a.getBody());var s=e(o);return i===s}a.on("keydown",function(e){var t=e.keyCode,r,i;if(!c(e)&&(t==V||t==W)){if(r=a.selection.isCollapsed(),i=a.getBody(),r&&!U.isEmpty(i))return;if(!r&&!n(a.selection.getRng()))return;e.preventDefault(),a.setContent(""),i.firstChild&&U.isBlock(i.firstChild)?a.selection.setCursorLocation(i.firstChild,0):a.selection.setCursorLocation(i,0),a.nodeChanged()}})}function f(){a.on("keydown",function(t){!c(t)&&65==t.keyCode&&e.metaKeyPressed(t)&&(t.preventDefault(),a.execCommand("SelectAll"))})}function p(){a.settings.content_editable||(U.bind(a.getDoc(),"focusin",function(){q.setRng(q.getRng())}),U.bind(a.getDoc(),"mousedown",function(e){e.target==a.getDoc().documentElement&&(a.getBody().focus(),q.setRng(q.getRng()))}))}function m(){a.on("keydown",function(e){if(!c(e)&&e.keyCode===W&&q.isCollapsed()&&0===q.getRng(!0).startOffset){var t=q.getNode(),n=t.previousSibling;if("HR"==t.nodeName)return U.remove(t),void e.preventDefault();n&&n.nodeName&&"hr"===n.nodeName.toLowerCase()&&(U.remove(n),e.preventDefault())}})}function h(){window.Range.prototype.getClientRects||a.on("mousedown",function(e){if(!c(e)&&"HTML"===e.target.nodeName){var t=a.getBody();t.blur(),setTimeout(function(){t.focus()},0)}})}function g(){a.on("click",function(e){e=e.target,/^(IMG|HR)$/.test(e.nodeName)&&q.getSel().setBaseAndExtent(e,0,e,1),"A"==e.nodeName&&U.hasClass(e,"mce-item-anchor")&&q.select(e),a.nodeChanged()})}function v(){function e(){var e=U.getAttribs(q.getStart().cloneNode(!1));return function(){var t=q.getStart();t!==a.getBody()&&(U.setAttrib(t,"style",null),z(e,function(e){t.setAttributeNode(e.cloneNode(!0))}))}}function t(){return!q.isCollapsed()&&U.getParent(q.getStart(),U.isBlock)!=U.getParent(q.getEnd(),U.isBlock)}a.on("keypress",function(n){var r;return c(n)||8!=n.keyCode&&46!=n.keyCode||!t()?void 0:(r=e(),a.getDoc().execCommand("delete",!1,null),r(),n.preventDefault(),!1)}),U.bind(a.getDoc(),"cut",function(n){var r;!c(n)&&t()&&(r=e(),setTimeout(function(){r()},0))})}function y(){var e,n;a.on("selectionchange",function(){n&&(clearTimeout(n),n=0),n=window.setTimeout(function(){if(!a.removed){var n=q.getRng();e&&t.compareRanges(n,e)||(a.nodeChanged(),e=n)}},50)})}function b(){document.body.setAttribute("role","application")}function C(){a.on("keydown",function(e){if(!c(e)&&e.keyCode===W&&q.isCollapsed()&&0===q.getRng(!0).startOffset){var t=q.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})}function x(){l()>7||(s("RespectVisibilityInDesign",!0),a.contentStyles.push(".mceHideBrInPre pre br {display: none}"),U.addClass(a.getBody(),"mceHideBrInPre"),j.addNodeFilter("pre",function(e){for(var t=e.length,r,i,o,a;t--;)for(r=e[t].getAll("br"),i=r.length;i--;)o=r[i],a=o.prev,a&&3===a.type&&"\n"!=a.value.charAt(a.value-1)?a.value+="\n":o.parent.insert(new n("#text",3),o,!0).value="\n"}),K.addNodeFilter("pre",function(e){for(var t=e.length,n,r,i,o;t--;)for(n=e[t].getAll("br"),r=n.length;r--;)i=n[r],o=i.prev,o&&3==o.type&&(o.value=o.value.replace(/\r?\n$/,""))}))}function w(){U.bind(a.getBody(),"mouseup",function(){var e,t=q.getNode();"IMG"==t.nodeName&&((e=U.getStyle(t,"width"))&&(U.setAttrib(t,"width",e.replace(/[^0-9%]+/g,"")),U.setStyle(t,"width","")),(e=U.getStyle(t,"height"))&&(U.setAttrib(t,"height",e.replace(/[^0-9%]+/g,"")),U.setStyle(t,"height","")))})}function _(){a.on("keydown",function(t){var n,r,i,o,s;if(!c(t)&&t.keyCode==e.BACKSPACE&&(n=q.getRng(),r=n.startContainer,i=n.startOffset,o=U.getRoot(),s=r,n.collapsed&&0===i)){for(;s&&s.parentNode&&s.parentNode.firstChild==s&&s.parentNode!=o;)s=s.parentNode;"BLOCKQUOTE"===s.tagName&&(a.formatter.toggle("blockquote",null,s),n=U.createRng(),n.setStart(r,0),n.setEnd(r,0),q.setRng(n))}})}function N(){function e(){a._refreshContentEditable(),s("StyleWithCSS",!1),s("enableInlineTableEditing",!1),$.object_resizing||s("enableObjectResizing",!1)}$.readonly||a.on("BeforeExecCommand MouseDown",e)}function E(){function e(){z(U.select("a"),function(e){var t=e.parentNode,n=U.getRoot();if(t.lastChild===e){for(;t&&!U.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}U.add(t,"br",{"data-mce-bogus":1})}})}a.on("SetContent ExecCommand",function(t){("setcontent"==t.type||"mceInsertLink"===t.command)&&e()})}function S(){$.forced_root_block&&a.on("init",function(){s("DefaultParagraphSeparator",$.forced_root_block)})}function k(){a.on("Undo Redo SetContent",function(e){e.initial||a.execCommand("mceRepaint")})}function T(){a.on("keydown",function(e){var t;c(e)||e.keyCode!=W||(t=a.getDoc().selection.createRange(),t&&t.item&&(e.preventDefault(),a.undoManager.beforeChange(),U.remove(t.item(0)),a.undoManager.add()))})}function R(){var e;l()>=10&&(e="",z("p div h1 h2 h3 h4 h5 h6".split(" "),function(t,n){e+=(n>0?",":"")+t+":empty"}),a.contentStyles.push(e+"{padding-right: 1px !important}"))}function A(){l()<9&&(j.addNodeFilter("noscript",function(e){for(var t=e.length,n,r;t--;)n=e[t],r=n.firstChild,r&&n.attr("data-mce-innertext",r.value)}),K.addNodeFilter("noscript",function(e){for(var t=e.length,i,o,a;t--;)i=e[t],o=e[t].firstChild,o?o.value=r.decode(o.value):(a=i.attributes.map["data-mce-innertext"],a&&(i.attr("data-mce-innertext",null),o=new n("#text",3),o.value=a,o.raw=!0,i.append(o)))}))}function B(){function e(e,t){var n=i.createTextRange();try{n.moveToPoint(e,t)}catch(r){n=null}return n}function t(t){var r;t.button?(r=e(t.x,t.y),r&&(r.compareEndPoints("StartToStart",a)>0?r.setEndPoint("StartToStart",a):r.setEndPoint("EndToEnd",a),r.select())):n()}function n(){var e=r.selection.createRange();a&&!e.item&&0===e.compareEndPoints("StartToEnd",e)&&a.select(),U.unbind(r,"mouseup",n),U.unbind(r,"mousemove",t),a=o=0}var r=U.doc,i=r.body,o,a,s;r.documentElement.unselectable=!0,U.bind(r,"mousedown contextmenu",function(i){if("HTML"===i.target.nodeName){if(o&&n(),s=r.documentElement,s.scrollHeight>s.clientHeight)return;o=1,a=e(i.x,i.y),a&&(U.bind(r,"mouseup",n),U.bind(r,"mousemove",t),U.getRoot().focus(),a.select())}})}function L(){a.on("keyup focusin mouseup",function(t){65==t.keyCode&&e.metaKeyPressed(t)||q.normalize()},!0)}function D(){a.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}function M(){a.inline||a.on("keydown",function(){document.activeElement==document.body&&a.getWin().focus()})}function H(){a.inline||(a.contentStyles.push("body {min-height: 150px}"),a.on("click",function(e){"HTML"==e.target.nodeName&&(a.getBody().focus(),a.selection.normalize(),a.nodeChanged())}))}function P(){i.mac&&a.on("keydown",function(t){!e.metaKeyPressed(t)||37!=t.keyCode&&39!=t.keyCode||(t.preventDefault(),a.selection.getSel().modify("move",37==t.keyCode?"backward":"forward","word"))})}function O(){s("AutoUrlDetect",!1)}function I(){a.inline||a.on("focus blur",function(){var e=a.dom.create("br");a.getBody().appendChild(e),e.parentNode.removeChild(e)},!0)}function F(){a.on("click",function(e){var t=e.target;do if("A"===t.tagName)return void e.preventDefault();while(t=t.parentNode)}),a.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")}var z=o.each,W=e.BACKSPACE,V=e.DELETE,U=a.dom,q=a.selection,$=a.settings,j=a.parser,K=a.serializer,Y=i.gecko,G=i.ie,X=i.webkit;C(),_(),d(),L(),X&&(u(),p(),g(),S(),i.iOS?(y(),M(),H(),F()):f()),G&&i.ie<11&&(m(),b(),x(),w(),T(),R(),A(),B()),i.ie>=11&&(H(),I()),i.ie&&(f(),O()),Y&&(m(),h(),v(),N(),E(),k(),D(),P())}}),r(it,[p],function(e){function t(){return!1}function n(){return!0}var r="__bindings",i=e.makeMap("focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave keydown keypress keyup contextmenu dragstart dragend dragover draggesture dragdrop drop drag"," ");return{fire:function(e,i,o){var a=this,s,l,c,u,d;if(e=e.toLowerCase(),i=i||{},i.type=e,!a.removed||"remove"===e){if(i.target||(i.target=a),i.preventDefault||(i.preventDefault=function(){i.isDefaultPrevented=n},i.stopPropagation=function(){i.isPropagationStopped=n},i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=n},i.isDefaultPrevented=t,i.isPropagationStopped=t,i.isImmediatePropagationStopped=t),a[r]&&(s=a[r][e]))for(l=0,c=s.length;c>l&&(s[l]=u=s[l],!i.isImmediatePropagationStopped());l++)if(u.call(a,i)===!1)return i.preventDefault(),i;if(o!==!1&&a.parent)for(d=a.parent();d&&!i.isPropagationStopped();)d.fire(e,i,!1),d=d.parent();return i}},on:function(e,t,n){var o=this,a,s,l,c;if(t===!1&&(t=function(){return!1}),t)for(l=e.toLowerCase().split(" "),c=l.length;c--;)e=l[c],a=o[r],a||(a=o[r]={}),s=a[e],s||(s=a[e]=[],o.bindNative&&i[e]&&o.bindNative(e)),n?s.unshift(t):s.push(t);return o},off:function(e,t){var n=this,o,a=n[r],s,l,c,u;if(a)if(e)for(c=e.toLowerCase().split(" "),o=c.length;o--;){if(e=c[o],s=a[e],!e){for(l in a)a[e].length=0;return n}if(s){if(t)for(u=s.length;u--;)s[u]===t&&s.splice(u,1);else s.length=0;!s.length&&n.unbindNative&&i[e]&&(n.unbindNative(e),delete a[e])}}else{if(n.unbindNative)for(e in a)n.unbindNative(e);n[r]=[]}return n},hasEventListeners:function(e){var t=this[r];return e=e.toLowerCase(),!(!t||!t[e]||0===t[e].length)}}}),r(ot,[p,g],function(e,t){var n=e.each,r=e.explode,i={f9:120,f10:121,f11:122};return function(o){var a=this,s={};o.on("keyup keypress keydown",function(e){(e.altKey||e.ctrlKey||e.metaKey)&&n(s,function(n){var r=t.mac?e.metaKey:e.ctrlKey;if(n.ctrl==r&&n.alt==e.altKey&&n.shift==e.shiftKey)return e.keyCode==n.keyCode||e.charCode&&e.charCode==n.charCode?(e.preventDefault(),"keydown"==e.type&&n.func.call(n.scope),!0):void 0})}),a.add=function(t,a,l,c){var u;return u=l,"string"==typeof l?l=function(){o.execCommand(u,!1,null)}:e.isArray(u)&&(l=function(){o.execCommand(u[0],u[1],u[2])}),n(r(t.toLowerCase()),function(e){var t={func:l,scope:c||o,desc:o.translate(a),alt:!1,ctrl:!1,shift:!1};n(r(e,"+"),function(e){switch(e){case"alt":case"ctrl":case"shift":t[e]=!0;break;default:t.charCode=e.charCodeAt(0),t.keyCode=i[e]||e.toUpperCase().charCodeAt(0)}}),s[(t.ctrl?"ctrl":"")+","+(t.alt?"alt":"")+","+(t.shift?"shift":"")+","+t.keyCode]=t}),!0}}}),r(at,[y,C,x,k,S,L,M,H,P,O,I,F,b,l,nt,w,N,rt,g,p,it,ot],function(e,n,r,i,o,a,s,l,c,u,d,f,p,m,h,g,v,y,b,C,x,w){function _(e,t){return"selectionchange"==t?e.getDoc():!e.inline&&/^mouse|click|contextmenu|drop/.test(t)?e.getDoc():e.getBody()}function N(e,t,r){var i=this,o,a;o=i.documentBaseUrl=r.documentBaseURL,a=r.baseURI,i.settings=t=T({id:e,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:o,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"",visual:!0,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,padd_empty_editor:!0,render_ui:!0,indentation:"30px",inline_styles:!0,convert_fonts_to_spans:!0,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",validate:!0,entity_encoding:"named",url_converter:i.convertURL,url_converter_scope:i,ie7_compat:!0},t),n.language=t.language||"en",n.languageLoad=t.language_load,n.baseURL=r.baseURL,i.id=t.id=e,i.isNotDirty=!0,i.plugins={},i.documentBaseURI=new f(t.document_base_url||o,{base_uri:a}),i.baseURI=a,i.contentCSS=[],i.contentStyles=[],i.shortcuts=new w(i),i.execCommands={},i.queryStateCommands={},i.queryValueCommands={},i.loadedCSS={},i.suffix=r.suffix,i.editorManager=r,i.inline=t.inline,r.fire("SetupEditor",i),i.execCallback("setup",i)}var E=e.DOM,S=n.ThemeManager,k=n.PluginManager,T=C.extend,R=C.each,A=C.explode,B=C.inArray,L=C.trim,D=C.resolve,M=m.Event,H=b.gecko,P=b.ie;return N.prototype={render:function(){function e(){E.unbind(window,"ready",e),n.render()}function t(){var e=p.ScriptLoader;if(r.language&&"en"!=r.language&&!r.language_url&&(r.language_url=n.editorManager.baseURL+"/langs/"+r.language+".js"),r.language_url&&e.add(r.language_url),r.theme&&"function"!=typeof r.theme&&"-"!=r.theme.charAt(0)&&!S.urls[r.theme]){var t=r.theme_url;t=t?n.documentBaseURI.toAbsolute(t):"themes/"+r.theme+"/theme"+o+".js",S.load(r.theme,t)}C.isArray(r.plugins)&&(r.plugins=r.plugins.join(" ")),R(r.external_plugins,function(e,t){k.load(t,e),r.plugins+=" "+t}),R(r.plugins.split(/[ ,]/),function(e){if(e=L(e),e&&!k.urls[e])if("-"==e.charAt(0)){e=e.substr(1,e.length);var t=k.dependencies(e);R(t,function(e){var t={prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"};e=k.createUrl(t,e),k.load(e.resource,e)})}else k.load(e,{prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"})}),e.loadQueue(function(){n.removed||n.init()})}var n=this,r=n.settings,i=n.id,o=n.suffix;if(!M.domLoaded)return void E.bind(window,"ready",e);if(n.getElement()&&b.contentEditable){r.inline?n.inline=!0:(n.orgVisibility=n.getElement().style.visibility,n.getElement().style.visibility="hidden");var a=n.getElement().form||E.getParent(i,"form");a&&(n.formElement=a,r.hidden_input&&!/TEXTAREA|INPUT/i.test(n.getElement().nodeName)&&(E.insertAfter(E.create("input",{type:"hidden",name:i}),i),n.hasHiddenInput=!0),n.formEventDelegate=function(e){n.fire(e.type,e)},E.bind(a,"submit reset",n.formEventDelegate),n.on("reset",function(){n.setContent(n.startContent,{format:"raw"})}),!r.submit_patch||a.submit.nodeType||a.submit.length||a._mceOldSubmit||(a._mceOldSubmit=a.submit,a.submit=function(){return n.editorManager.triggerSave(),n.isNotDirty=!0,a._mceOldSubmit(a)})),n.windowManager=new h(n),"xml"==r.encoding&&n.on("GetContent",function(e){e.save&&(e.content=E.encode(e.content))}),r.add_form_submit_trigger&&n.on("submit",function(){n.initialized&&n.save()}),r.add_unload_trigger&&(n._beforeUnload=function(){!n.initialized||n.destroyed||n.isHidden()||n.save({format:"raw",no_events:!0,set_dirty:!1})},n.editorManager.on("BeforeUnload",n._beforeUnload)),t()}},init:function(){function e(n){var r=k.get(n),i,o;i=k.urls[n]||t.documentBaseUrl.replace(/\/$/,""),n=L(n),r&&-1===B(h,n)&&(R(k.dependencies(n),function(t){e(t)}),o=new r(t,i),t.plugins[n]=o,o.init&&(o.init(t,i),h.push(n)))}var t=this,n=t.settings,r=t.getElement(),i,o,a,s,l,c,u,d,f,p,m,h=[];if(t.rtl=this.editorManager.i18n.rtl,t.editorManager.add(t),n.aria_label=n.aria_label||E.getAttrib(r,"aria-label",t.getLang("aria.rich_text_area")),n.theme&&("function"!=typeof n.theme?(n.theme=n.theme.replace(/-/,""),c=S.get(n.theme),t.theme=new c(t,S.urls[n.theme]),t.theme.init&&t.theme.init(t,S.urls[n.theme]||t.documentBaseUrl.replace(/\/$/,""))):t.theme=n.theme),R(n.plugins.replace(/\-/g,"").split(/[ ,]/),e),n.render_ui&&t.theme&&(t.orgDisplay=r.style.display,"function"!=typeof n.theme?(i=n.width||r.style.width||r.offsetWidth,o=n.height||r.style.height||r.offsetHeight,a=n.min_height||100,p=/^[0-9\.]+(|px)$/i,p.test(""+i)&&(i=Math.max(parseInt(i,10),100)),p.test(""+o)&&(o=Math.max(parseInt(o,10),a)),l=t.theme.renderUI({targetNode:r,width:i,height:o,deltaWidth:n.delta_width,deltaHeight:n.delta_height}),n.content_editable||(E.setStyles(l.sizeContainer||l.editorContainer,{wi2dth:i,h2eight:o}),o=(l.iframeHeight||o)+("number"==typeof o?l.deltaHeight||0:""),a>o&&(o=a))):(l=n.theme(t,r),l.editorContainer.nodeType&&(l.editorContainer=l.editorContainer.id=l.editorContainer.id||t.id+"_parent"),l.iframeContainer.nodeType&&(l.iframeContainer=l.iframeContainer.id=l.iframeContainer.id||t.id+"_iframecontainer"),o=l.iframeHeight||r.offsetHeight),t.editorContainer=l.editorContainer),n.content_css&&R(A(n.content_css),function(e){t.contentCSS.push(t.documentBaseURI.toAbsolute(e))}),n.content_style&&t.contentStyles.push(n.content_style),n.content_editable)return r=s=l=null,t.initContentBody();for(t.iframeHTML=n.doctype+"",n.document_base_url!=t.documentBaseUrl&&(t.iframeHTML+=''),!b.caretAfter&&n.ie7_compat&&(t.iframeHTML+=''),t.iframeHTML+='',m=0;m',t.loadedCSS[g]=!0}d=n.body_id||"tinymce",-1!=d.indexOf("=")&&(d=t.getParam("body_id","","hash"),d=d[t.id]||d),f=n.body_class||"",-1!=f.indexOf("=")&&(f=t.getParam("body_class","","hash"),f=f[t.id]||""),t.iframeHTML+='
";var v='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.initContentBody(true);})()';if(document.domain!=location.hostname&&(u=v),s=E.add(l.iframeContainer,"iframe",{id:t.id+"_ifr",src:u||'javascript:""',frameBorder:"0",allowTransparency:"true",title:t.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),style:{width:"100%",height:o,display:"block"}}),P)try{t.getDoc()}catch(y){s.src=u=v}t.contentAreaContainer=l.iframeContainer,l.editorContainer&&(E.get(l.editorContainer).style.display=t.orgDisplay),E.get(t.id).style.display="none",E.setAttrib(t.id,"aria-hidden",!0),u||t.initContentBody(),r=s=l=null},initContentBody:function(t){var n=this,o=n.settings,f=E.get(n.id),p=n.getDoc(),m,h;o.inline||(n.getElement().style.visibility=n.orgVisibility),t||o.content_editable||(p.open(),p.write(n.iframeHTML),p.close()),o.content_editable&&(n.on("remove",function(){var e=this.getBody();E.removeClass(e,"mce-content-body"),E.removeClass(e,"mce-edit-focus"),E.setAttrib(e,"contentEditable",null)}),E.addClass(f,"mce-content-body"),n.contentDocument=p=o.content_document||document,n.contentWindow=o.content_window||window,n.bodyElement=f,o.content_document=o.content_window=null,o.root_name=f.nodeName.toLowerCase()),m=n.getBody(),m.disabled=!0,o.readonly||(n.inline&&"static"==E.getStyle(m,"position",!0)&&(m.style.position="relative"),m.contentEditable=n.getParam("content_editable_state",!0)),m.disabled=!1,n.schema=new g(o),n.dom=new e(p,{keep_values:!0,url_converter:n.convertURL,url_converter_scope:n,hex_colors:o.force_hex_style_colors,class_filter:o.class_filter,update_styles:!0,root_element:o.content_editable?n.id:null,collect:o.content_editable,schema:n.schema,onSetAttrib:function(e){n.fire("SetAttrib",e)}}),n.parser=new v(o,n.schema),n.parser.addAttributeFilter("src,href,style,tabindex",function(e,t){for(var r=e.length,i,o=n.dom,a,s;r--;)i=e[r],a=i.attr(t),s="data-mce-"+t,i.attributes.map[s]||("style"===t?i.attr(s,o.serializeStyle(o.parseStyle(a),i.name)):"tabindex"===t?(i.attr(s,a),i.attr(t,null)):i.attr(s,n.convertURL(a,t,i.name)))}),n.parser.addNodeFilter("script",function(e){for(var t=e.length,n;t--;)n=e[t],n.attr("type","mce-"+(n.attr("type")||"text/javascript"))}),n.parser.addNodeFilter("#cdata",function(e){for(var t=e.length,n;t--;)n=e[t],n.type=8,n.name="#comment",n.value="[CDATA["+n.value+"]]"}),n.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(e){for(var t=e.length,i,o=n.schema.getNonEmptyElements();t--;)i=e[t],i.isEmpty(o)&&(i.empty().append(new r("br",1)).shortEnded=!0)}),n.serializer=new i(o,n),n.selection=new a(n.dom,n.getWin(),n.serializer,n),n.formatter=new s(n),n.undoManager=new l(n),n.forceBlocks=new u(n),n.enterKey=new c(n),n.editorCommands=new d(n),n.fire("PreInit"),o.browser_spellcheck||o.gecko_spellcheck||(p.body.spellcheck=!1,E.setAttrib(m,"spellcheck","false")),n.fire("PostRender"),n.quirks=y(n),o.directionality&&(m.dir=o.directionality),o.nowrap&&(m.style.whiteSpace="nowrap"),o.protect&&n.on("BeforeSetContent",function(e){R(o.protect,function(t){e.content=e.content.replace(t,function(e){return""})})}),n.on("SetContent",function(){n.addVisual(n.getBody())}),o.padd_empty_editor&&n.on("PostProcess",function(e){e.content=e.content.replace(/^(]*>( | |\s|\u00a0|)<\/p>[\r\n]*|
[\r\n]*)$/,"")}),n.load({initial:!0,format:"html"}),n.startContent=n.getContent({format:"raw"}),n.initialized=!0,R(n._pendingNativeEvents,function(e){n.dom.bind(_(n,e),e,function(e){n.fire(e.type,e)})}),n.fire("init"),n.focus(!0),n.nodeChanged({initial:!0}),n.execCallback("init_instance_callback",n),n.contentStyles.length>0&&(h="",R(n.contentStyles,function(e){h+=e+"\r\n" -}),n.dom.addStyle(h)),R(n.contentCSS,function(e){n.loadedCSS[e]||(n.dom.loadCSS(e),n.loadedCSS[e]=!0)}),o.auto_focus&&setTimeout(function(){var e=n.editorManager.get(o.auto_focus);e.selection.select(e.getBody(),1),e.selection.collapse(1),e.getBody().focus(),e.getWin().focus()},100),f=p=m=null},focus:function(e){var t,n=this,r=n.selection,i=n.settings.content_editable,o,a,s=n.getDoc(),l;if(!e){if(o=r.getRng(),o.item&&(a=o.item(0)),n._refreshContentEditable(),i||(b.opera||n.getBody().focus(),n.getWin().focus()),H||i){if(l=n.getBody(),l.setActive)try{l.setActive()}catch(c){l.focus()}else l.focus();i&&r.normalize()}a&&a.ownerDocument==s&&(o=s.body.createControlRange(),o.addElement(a),o.select())}n.editorManager.activeEditor!=n&&((t=n.editorManager.activeEditor)&&t.fire("deactivate",{relatedTarget:n}),n.fire("activate",{relatedTarget:t})),n.editorManager.activeEditor=n},execCallback:function(e){var t=this,n=t.settings[e],r;if(n)return t.callbackLookup&&(r=t.callbackLookup[e])&&(n=r.func,r=r.scope),"string"==typeof n&&(r=n.replace(/\.\w+$/,""),r=r?D(r):0,n=D(n),t.callbackLookup=t.callbackLookup||{},t.callbackLookup[e]={func:n,scope:r}),n.apply(r||t,Array.prototype.slice.call(arguments,1))},translate:function(e){var t=this.settings.language||"en",n=this.editorManager.i18n;return e?n.data[t+"."+e]||e.replace(/\{\#([^\}]+)\}/g,function(e,r){return n.data[t+"."+r]||"{#"+r+"}"}):""},getLang:function(e,n){return this.editorManager.i18n.data[(this.settings.language||"en")+"."+e]||(n!==t?n:"{#"+e+"}")},getParam:function(e,t,n){var r=e in this.settings?this.settings[e]:t,i;return"hash"===n?(i={},"string"==typeof r?R(r.split(r.indexOf("=")>0?/[;,](?![^=;,]*(?:[;,]|$))/:","),function(e){e=e.split("="),i[L(e[0])]=L(e.length>1?e[1]:e)}):i=r,i):r},nodeChanged:function(){var e=this,t=e.selection,n,r,i;!e.initialized||e.settings.disable_nodechange||e.settings.readonly||(i=e.getBody(),n=t.getStart()||i,n=P&&n.ownerDocument!=e.getDoc()?e.getBody():n,"IMG"==n.nodeName&&t.isCollapsed()&&(n=n.parentNode),r=[],e.dom.getParent(n,function(e){return e===i?!0:void r.push(e)}),e.fire("NodeChange",{element:n,parents:r}))},addButton:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),t.text||t.icon||(t.icon=e),n.buttons=n.buttons||{},t.tooltip=t.tooltip||t.title,n.buttons[e]=t},addMenuItem:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),n.menuItems=n.menuItems||{},n.menuItems[e]=t},addCommand:function(e,t,n){this.execCommands[e]={func:t,scope:n||this}},addQueryStateHandler:function(e,t,n){this.queryStateCommands[e]={func:t,scope:n||this}},addQueryValueHandler:function(e,t,n){this.queryValueCommands[e]={func:t,scope:n||this}},addShortcut:function(e,t,n,r){this.shortcuts.add(e,t,n,r)},execCommand:function(e,t,n,r){var i=this,o=0,a;return/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus||i.focus(),r=T({},r),r=i.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented()?!1:(a=i.execCommands[e])&&a.func.call(a.scope,t,n)!==!0?(i.fire("ExecCommand",{command:e,ui:t,value:n}),!0):(R(i.plugins,function(r){return r.execCommand&&r.execCommand(e,t,n)?(i.fire("ExecCommand",{command:e,ui:t,value:n}),o=!0,!1):void 0}),o?o:i.theme&&i.theme.execCommand&&i.theme.execCommand(e,t,n)?(i.fire("ExecCommand",{command:e,ui:t,value:n}),!0):i.editorCommands.execCommand(e,t,n)?(i.fire("ExecCommand",{command:e,ui:t,value:n}),!0):(i.getDoc().execCommand(e,t,n),void i.fire("ExecCommand",{command:e,ui:t,value:n})))},queryCommandState:function(e){var t=this,n,r;if(!t._isHidden()){if((n=t.queryStateCommands[e])&&(r=n.func.call(n.scope),r!==!0))return r;if(r=t.editorCommands.queryCommandState(e),-1!==r)return r;try{return t.getDoc().queryCommandState(e)}catch(i){}}},queryCommandValue:function(e){var n=this,r,i;if(!n._isHidden()){if((r=n.queryValueCommands[e])&&(i=r.func.call(r.scope),i!==!0))return i;if(i=n.editorCommands.queryCommandValue(e),i!==t)return i;try{return n.getDoc().queryCommandValue(e)}catch(o){}}},show:function(){var e=this;E.show(e.getContainer()),E.hide(e.id),e.load(),e.fire("show")},hide:function(){var e=this,t=e.getDoc();P&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),E.hide(e.getContainer()),E.setStyle(e.id,"display",e.orgDisplay),e.fire("hide")},isHidden:function(){return!E.isHidden(this.id)},setProgressState:function(e,t){this.fire("ProgressState",{state:e,time:t})},load:function(e){var n=this,r=n.getElement(),i;return r?(e=e||{},e.load=!0,i=n.setContent(r.value!==t?r.value:r.innerHTML,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,i):void 0},save:function(e){var t=this,n=t.getElement(),r,i;if(n&&t.initialized)return e=e||{},e.save=!0,e.element=n,r=e.content=t.getContent(e),e.no_events||t.fire("SaveContent",e),r=e.content,/TEXTAREA|INPUT/i.test(n.nodeName)?n.value=r:(t.inline||(n.innerHTML=r),(i=E.getParent(t.id,"form"))&&R(i.elements,function(e){return e.name==t.id?(e.value=r,!1):void 0})),e.element=n=null,e.set_dirty!==!1&&(t.isNotDirty=!0),r},setContent:function(e,t){var n=this,r=n.getBody(),i;return t=t||{},t.format=t.format||"html",t.set=!0,t.content=e,t.no_events||n.fire("BeforeSetContent",t),e=t.content,0===e.length||/^\s+$/.test(e)?(i=n.settings.forced_root_block,i&&n.schema.isValidChild(r.nodeName.toLowerCase(),i.toLowerCase())?(e=P&&11>P?"":'
',e=n.dom.createHTML(i,n.settings.forced_root_block_attrs,e)):P||(e='
'),r.innerHTML=e,n.fire("SetContent",t)):("raw"!==t.format&&(e=new o({},n.schema).serialize(n.parser.parse(e,{isRootContent:!0}))),t.content=L(e),n.dom.setHTML(r,t.content),t.no_events||n.fire("SetContent",t)),t.content},getContent:function(e){var t=this,n,r=t.getBody();return e=e||{},e.format=e.format||"html",e.get=!0,e.getInner=!0,e.no_events||t.fire("BeforeGetContent",e),n="raw"==e.format?r.innerHTML:"text"==e.format?r.innerText||r.textContent:t.serializer.serialize(r,e),e.content="text"!=e.format?L(n):n,e.no_events||t.fire("GetContent",e),e.content},insertContent:function(e){this.execCommand("mceInsertContent",!1,e)},isDirty:function(){return!this.isNotDirty},getContainer:function(){var e=this;return e.container||(e.container=E.get(e.editorContainer||e.id+"_parent")),e.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return E.get(this.settings.content_element||this.id)},getWin:function(){var e=this,t;return e.contentWindow||(t=E.get(e.id+"_ifr"),t&&(e.contentWindow=t.contentWindow)),e.contentWindow},getDoc:function(){var e=this,t;return e.contentDocument||(t=e.getWin(),t&&(e.contentDocument=t.document)),e.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(e,t,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!i.convert_urls||n&&"LINK"==n.nodeName||0===e.indexOf("file:")||0===e.length?e:i.relative_urls?r.documentBaseURI.toRelative(e):e=r.documentBaseURI.toAbsolute(e,i.remove_script_host)},addVisual:function(e){var n=this,r=n.settings,i=n.dom,o;e=e||n.getBody(),n.hasVisual===t&&(n.hasVisual=r.visual),R(i.select("table,a",e),function(e){var t;switch(e.nodeName){case"TABLE":return o=r.visual_table_class||"mce-item-table",t=i.getAttrib(e,"border"),void(t&&"0"!=t||(n.hasVisual?i.addClass(e,o):i.removeClass(e,o)));case"A":return void(i.getAttrib(e,"href",!1)||(t=i.getAttrib(e,"name")||e.id,o=r.visual_anchor_class||"mce-item-anchor",t&&(n.hasVisual?i.addClass(e,o):i.removeClass(e,o))))}}),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},remove:function(){var e=this;if(!e.removed){e.removed=1,e.save(),e.hasHiddenInput&&E.remove(e.getElement().nextSibling),e.inline||(P&&10>P&&e.getDoc().execCommand("SelectAll",!1,null),E.setStyle(e.id,"display",e.orgDisplay),e.getBody().onload=null,M.unbind(e.getWin()),M.unbind(e.getDoc()));var t=e.getContainer();M.unbind(e.getBody()),M.unbind(t),e.fire("remove"),e.editorManager.remove(e),E.remove(t),e.destroy()}},bindNative:function(e){var t=this;t.settings.readonly||(t.initialized?t.dom.bind(_(t,e),e,function(n){t.fire(e,n)}):t._pendingNativeEvents?t._pendingNativeEvents.push(e):t._pendingNativeEvents=[e])},unbindNative:function(e){var t=this;t.initialized&&t.dom.unbind(e)},destroy:function(e){var t=this,n;if(!t.destroyed){if(!e&&!t.removed)return void t.remove();e&&H&&(M.unbind(t.getDoc()),M.unbind(t.getWin()),M.unbind(t.getBody())),e||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),t.selection.destroy(),t.dom.destroy()),n=t.formElement,n&&(n._mceOldSubmit&&(n.submit=n._mceOldSubmit,n._mceOldSubmit=null),E.unbind(n,"submit reset",t.formEventDelegate)),t.contentAreaContainer=t.formElement=t.container=t.editorContainer=null,t.settings.content_element=t.bodyElement=t.contentDocument=t.contentWindow=null,t.selection&&(t.selection=t.selection.win=t.selection.dom=t.selection.dom.doc=null),t.destroyed=1}},_refreshContentEditable:function(){var e=this,t,n;e._isHidden()&&(t=e.getBody(),n=t.parentNode,n.removeChild(t),n.appendChild(t),t.focus())},_isHidden:function(){var e;return H?(e=this.selection.getSel(),!e||!e.rangeCount||0===e.rangeCount):0}},T(N.prototype,x),N}),r(st,[],function(){var e={};return{rtl:!1,add:function(t,n){for(var r in n)e[r]=n[r];this.rtl=this.rtl||"rtl"===e._dir},translate:function(t){if("undefined"==typeof t)return t;if("string"!=typeof t&&t.raw)return t.raw;if(t.push){var n=t.slice(1);t=(e[t[0]]||t[0]).replace(/\{([^\}]+)\}/g,function(e,t){return n[t]})}return e[t]||t},data:e}}),r(lt,[y,g],function(e,t){function n(e){function a(){try{return document.activeElement}catch(e){return document.body}}function s(e){return e&&e.startContainer?{startContainer:e.startContainer,startOffset:e.startOffset,endContainer:e.endContainer,endOffset:e.endOffset}:e}function l(e,t){var n;return t.startContainer?(n=e.getDoc().createRange(),n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset)):n=t,n}function c(e){return!!o.getParent(e,n.isEditorUIElement)}function u(e,t){for(var n=t.getBody();e;){if(e==n)return!0;e=e.parentNode}}function d(n){var d=n.editor;d.on("init",function(){(d.inline||t.ie)&&(d.on("nodechange keyup",function(){var e=document.activeElement;e&&e.id==d.id+"_ifr"&&(e=d.getBody()),u(e,d)&&(d.lastRng=d.selection.getRng())}),t.webkit&&!r&&(r=function(){var t=e.activeEditor;if(t&&t.selection){var n=t.selection.getRng();n&&!n.collapsed&&(d.lastRng=n)}},o.bind(document,"selectionchange",r)))}),d.on("setcontent",function(){d.lastRng=null}),d.on("mousedown",function(){d.selection.lastFocusBookmark=null}),d.on("focusin",function(){var t=e.focusedEditor;d.selection.lastFocusBookmark&&(d.selection.setRng(l(d,d.selection.lastFocusBookmark)),d.selection.lastFocusBookmark=null),t!=d&&(t&&t.fire("blur",{focusedEditor:d}),e.activeEditor=d,e.focusedEditor=d,d.fire("focus",{blurredEditor:t}),d.focus(!0)),d.lastRng=null}),d.on("focusout",function(){window.setTimeout(function(){var t=e.focusedEditor;c(a())||t!=d||(d.fire("blur",{focusedEditor:null}),e.focusedEditor=null,d.selection&&(d.selection.lastFocusBookmark=null))},0)}),i||(i=function(t){var n=e.activeEditor;n&&t.target.ownerDocument==document&&(n.selection&&(n.selection.lastFocusBookmark=s(n.lastRng)),c(t.target)||e.focusedEditor!=n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))},o.bind(document,"focusin",i))}function f(t){e.focusedEditor==t.editor&&(e.focusedEditor=null),e.activeEditor||(o.unbind(document,"selectionchange",r),o.unbind(document,"focusin",i),r=i=null)}e.on("AddEditor",d),e.on("RemoveEditor",f)}var r,i,o=e.DOM;return n.isEditorUIElement=function(e){return-1!==e.className.toString().indexOf("mce-")},n}),r(ct,[at,y,F,g,p,it,st,lt],function(e,t,n,r,i,o,a,s){var l=t.DOM,c=i.explode,u=i.each,d=i.extend,f=0,p,m={majorVersion:"4",minorVersion:"0.21",releaseDate:"2014-04-01",editors:[],i18n:a,activeEditor:null,setup:function(){var e=this,t,r,i="",o;if(r=document.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(r)||(r+="/"),o=window.tinymce||window.tinyMCEPreInit)t=o.base||o.baseURL,i=o.suffix;else for(var a=document.getElementsByTagName("script"),l=0;l0&&u(c(h),function(n){l.get(n)?(m=new e(n,t,s),p.push(m),m.render()):u(document.forms,function(e){u(e.elements,function(e){e.name===n&&(n="mce_editor_"+f++,l.setAttrib(e,"id",n),r(n,t))})})});break;case"textareas":case"specific_textareas":u(l.select("textarea"),function(e){t.editor_deselector&&o(e,t.editor_deselector)||(!t.editor_selector||o(e,t.editor_selector))&&r(n(e),t)})}t.oninit&&(h=g=0,u(p,function(e){g++,e.initialized?h++:e.on("init",function(){h++,h==g&&i(t,"oninit")}),h==g&&i(t,"oninit")}))}var s=this,p=[],m;s.settings=t,l.bind(window,"ready",a)},get:function(e){return arguments.length?e in this.editors?this.editors[e]:null:this.editors},add:function(e){var t=this,n=t.editors;return n[e.id]=e,n.push(e),t.activeEditor=e,t.fire("AddEditor",{editor:e}),p||(p=function(){t.fire("BeforeUnload")},l.bind(window,"beforeunload",p)),e},createEditor:function(t,n){return this.add(new e(t,n,this))},remove:function(e){var t=this,n,r=t.editors,i,o;{if(e){if("string"==typeof e)return e=e.selector||e,void u(l.select(e),function(e){t.remove(r[e.id])});if(i=e,!r[i.id])return null;for(delete r[i.id],n=0;n=0;n--)t.remove(r[n])}},execCommand:function(t,n,r){var i=this,o=i.get(r);switch(t){case"mceAddEditor":return i.get(r)||new e(r,i.settings,i).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(i.execCommand("mceAddEditor",0,r),!0)}return i.activeEditor?i.activeEditor.execCommand(t,n,r):!1},triggerSave:function(){u(this.editors,function(e){e.save()})},addI18n:function(e,t){a.add(e,t)},translate:function(e){return a.translate(e)}};return d(m,o),m.setup(),window.tinymce=window.tinyMCE=m,m}),r(ut,[ct,p],function(e,t){var n=t.each,r=t.explode;e.on("AddEditor",function(e){var t=e.editor;t.on("preInit",function(){function e(e,t){n(t,function(t,n){t&&s.setStyle(e,n,t)}),s.rename(e,"span")}function i(e){s=t.dom,l.convert_fonts_to_spans&&n(s.select("font,u,strike",e.node),function(e){o[e.nodeName.toLowerCase()](s,e)})}var o,a,s,l=t.settings;l.inline_styles&&(a=r(l.font_size_legacy_values),o={font:function(t,n){e(n,{backgroundColor:n.style.backgroundColor,color:n.color,fontFamily:n.face,fontSize:a[parseInt(n.size,10)-1]})},u:function(t,n){e(n,{textDecoration:"underline"})},strike:function(t,n){e(n,{textDecoration:"line-through"})}},t.on("PreProcess SetContent",i))})})}),r(dt,[],function(){return{send:function(e){function t(){!e.async||4==n.readyState||r++>1e4?(e.success&&1e4>r&&200==n.status?e.success.call(e.success_scope,""+n.responseText,n,e):e.error&&e.error.call(e.error_scope,r>1e4?"TIMED_OUT":"GENERAL",n,e),n=null):setTimeout(t,10)}var n,r=0;if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=e.async===!1?!1:!0,e.data=e.data||"",n=new XMLHttpRequest){if(n.overrideMimeType&&n.overrideMimeType(e.content_type),n.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.content_type&&n.setRequestHeader("Content-Type",e.content_type),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(e.data),!e.async)return t();setTimeout(t,10)}}}}),r(ft,[],function(){function e(t,n){var r,i,o,a;if(n=n||'"',null===t)return"null";if(o=typeof t,"string"==o)return i="\bb t\nn\ff\rr\"\"''\\\\",n+t.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(e,t){return'"'===n&&"'"===e?e:(r=i.indexOf(t),r+1?"\\"+i.charAt(r+1):(e=t.charCodeAt().toString(16),"\\u"+"0000".substring(e.length)+e))})+n;if("object"==o){if(t.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(t)){for(r=0,i="[";r0?",":"")+e(t[r],n);return i+"]"}i="{";for(a in t)t.hasOwnProperty(a)&&(i+="function"!=typeof t[a]?(i.length>1?","+n:n)+a+n+":"+e(t[a],n):"");return i+"}"}return""+t}return{serialize:e,parse:function(e){try{return window[String.fromCharCode(101)+"val"]("("+e+")")}catch(t){}}}}),r(pt,[ft,dt,p],function(e,t,n){function r(e){this.settings=i({},e),this.count=0}var i=n.extend;return r.sendRPC=function(e){return(new r).send(e)},r.prototype={send:function(n){var r=n.error,o=n.success;n=i(this.settings,n),n.success=function(t,i){t=e.parse(t),"undefined"==typeof t&&(t={error:"JSON Parse error."}),t.error?r.call(n.error_scope||n.scope,t.error,i):o.call(n.success_scope||n.scope,t.result)},n.error=function(e,t){r&&r.call(n.error_scope||n.scope,e,t)},n.data=e.serialize({id:n.id||"c"+this.count++,method:n.method,params:n.params}),n.content_type="application/json",t.send(n)}},r}),r(mt,[y],function(e){return{callbacks:{},count:0,send:function(n){var r=this,i=e.DOM,o=n.count!==t?n.count:r.count,a="tinymce_jsonp_"+o;r.callbacks[o]=function(e){i.remove(a),delete r.callbacks[o],n.callback(e)},i.add(i.doc.body,"script",{id:a,src:n.url,type:"text/javascript"}),r.count++}}}),r(ht,[],function(){function e(){s=[];for(var e in a)s.push(e);i.length=s.length}function n(){function n(e){var n,r;return r=e!==t?u+e:i.indexOf(",",u),-1===r||r>i.length?null:(n=i.substring(u,r),u=r+1,n)}var r,i,s,u=0;if(a={},c){o.load(l),i=o.getAttribute(l)||"";do{var d=n();if(null===d)break;if(r=n(parseInt(d,32)||0),null!==r){if(d=n(),null===d)break;s=n(parseInt(d,32)||0),r&&(a[r]=s)}}while(null!==r);e()}}function r(){var t,n="";if(c){for(var r in a)t=a[r],n+=(n?",":"")+r.length.toString(32)+","+r+","+t.length.toString(32)+","+t;o.setAttribute(l,n);try{o.save(l)}catch(i){}e()}}var i,o,a,s,l,c;try{if(window.localStorage)return localStorage}catch(u){}return l="tinymce",o=document.documentElement,c=!!o.addBehavior,c&&o.addBehavior("#default#userData"),i={key:function(e){return s[e]},getItem:function(e){return e in a?a[e]:null},setItem:function(e,t){a[e]=""+t,r()},removeItem:function(e){delete a[e],r()},clear:function(){a={},r()}},n(),i}),r(gt,[y,l,b,C,p,g],function(e,t,n,r,i,o){var a=window.tinymce;return a.DOM=e.DOM,a.ScriptLoader=n.ScriptLoader,a.PluginManager=r.PluginManager,a.ThemeManager=r.ThemeManager,a.dom=a.dom||{},a.dom.Event=t.Event,i.each(i,function(e,t){a[t]=e}),i.each("isOpera isWebKit isIE isGecko isMac".split(" "),function(e){a[e]=o[e.substr(2).toLowerCase()]}),{}}),r(vt,[z,p],function(e,t){return e.extend({Defaults:{firstControlClass:"first",lastControlClass:"last"},init:function(e){this.settings=t.extend({},this.Defaults,e)},preRender:function(e){e.addClass(this.settings.containerClass,"body")},applyClasses:function(e){var t=this,n=t.settings,r,i,o;r=e.items().filter(":visible"),i=n.firstControlClass,o=n.lastControlClass,r.each(function(e){e.removeClass(i).removeClass(o),n.controlClass&&e.addClass(n.controlClass)}),r.eq(0).addClass(i),r.eq(-1).addClass(o)},renderHtml:function(e){var t=this,n=t.settings,r,i="";return r=e.items(),r.eq(0).addClass(n.firstControlClass),r.eq(-1).addClass(n.lastControlClass),r.each(function(e){n.controlClass&&e.addClass(n.controlClass),i+=e.renderHtml()}),i},recalc:function(){},postRender:function(){}})}),r(yt,[vt],function(e){return e.extend({Defaults:{containerClass:"abs-layout",controlClass:"abs-layout-item"},recalc:function(e){e.items().filter(":visible").each(function(e){var t=e.settings;e.layoutRect({x:t.x,y:t.y,w:t.w,h:t.h}),e.recalc&&e.recalc()})},renderHtml:function(e){return'
'+this._super(e)}})}),r(bt,[q,J],function(e,t){return e.extend({Mixins:[t],Defaults:{classes:"widget tooltip tooltip-n"},text:function(e){var t=this;return"undefined"!=typeof e?(t._value=e,t._rendered&&(t.getEl().lastChild.innerHTML=t.encode(e)),t):t._value},renderHtml:function(){var e=this,t=e.classPrefix;return'"},repaint:function(){var e=this,t,n;t=e.getEl().style,n=e._layoutRect,t.left=n.x+"px",t.top=n.y+"px",t.zIndex=131070}})}),r(Ct,[q,bt],function(e,t){var n,r=e.extend({init:function(e){var t=this;t._super(e),e=t.settings,t.canFocus=!0,e.tooltip&&r.tooltips!==!1&&(t.on("mouseenter",function(n){var r=t.tooltip().moveTo(-65535);if(n.control==t){var i=r.text(e.tooltip).show().testMoveRel(t.getEl(),["bc-tc","bc-tl","bc-tr"]);r.toggleClass("tooltip-n","bc-tc"==i),r.toggleClass("tooltip-nw","bc-tl"==i),r.toggleClass("tooltip-ne","bc-tr"==i),r.moveRel(t.getEl(),i)}else r.hide()}),t.on("mouseleave mousedown click",function(){t.tooltip().hide()})),t.aria("label",e.ariaLabel||e.tooltip)},tooltip:function(){return n||(n=new t({type:"tooltip"}),n.renderTo()),n},active:function(e){var t=this,n;return e!==n&&(t.aria("pressed",e),t.toggleClass("active",e)),t._super(e)},disabled:function(e){var t=this,n;return e!==n&&(t.aria("disabled",e),t.toggleClass("disabled",e)),t._super(e)},postRender:function(){var e=this,t=e.settings;e._rendered=!0,e._super(),e.parent()||!t.width&&!t.height||(e.initLayoutRect(),e.repaint()),t.autofocus&&e.focus()},remove:function(){this._super(),n&&(n.remove(),n=null)}});return r}),r(xt,[Ct],function(e){return e.extend({Defaults:{classes:"widget btn",role:"button"},init:function(e){var t=this,n;t.on("click mousedown",function(e){e.preventDefault()}),t._super(e),n=e.size,e.subtype&&t.addClass(e.subtype),n&&t.addClass("btn-"+n)},icon:function(e){var t=this,n=t.classPrefix;if("undefined"==typeof e)return t.settings.icon;if(t.settings.icon=e,e=e?n+"ico "+n+"i-"+t.settings.icon:"",t._rendered){var r=t.getEl().firstChild,i=r.getElementsByTagName("i")[0];e?(i&&i==r.firstChild||(i=document.createElement("i"),r.insertBefore(i,r.firstChild)),i.className=e):i&&r.removeChild(i),t.text(t._text)}return t},repaint:function(){var e=this.getEl().firstChild.style;e.width=e.height="100%",this._super()},text:function(e){var t=this;if(t._rendered){var n=t.getEl().lastChild.lastChild;n&&(n.data=t.translate(e))}return t._super(e)},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix,r=e.settings.icon,i;return i=e.settings.image,i?(r="none","string"!=typeof i&&(i=window.getSelection?i[0]:i[1]),i=" style=\"background-image: url('"+i+"')\""):i="",r=e.settings.icon?n+"ico "+n+"i-"+r:"",'
"}})}),r(wt,[K],function(e){return e.extend({Defaults:{defaultType:"button",role:"group"},renderHtml:function(){var e=this,t=e._layout;return e.addClass("btn-group"),e.preRender(),t.preRender(e),'
'+(e.settings.html||"")+t.renderHtml(e)+"
"}})}),r(_t,[Ct],function(e){return e.extend({Defaults:{classes:"checkbox",role:"checkbox",checked:!1},init:function(e){var t=this;t._super(e),t.on("click mousedown",function(e){e.preventDefault()}),t.on("click",function(e){e.preventDefault(),t.disabled()||t.checked(!t.checked())}),t.checked(t.settings.checked)},checked:function(e){var t=this;return"undefined"!=typeof e?(e?t.addClass("checked"):t.removeClass("checked"),t._checked=e,t.aria("checked",e),t):t._checked},value:function(e){return this.checked(e)},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix;return'
'+e.encode(e._text)+"
"}})}),r(Nt,[xt,Z],function(e,t){return e.extend({showPanel:function(){var e=this,n=e.settings;if(e.active(!0),e.panel)e.panel.show();else{var r=n.panel;r.type&&(r={layout:"grid",items:r}),r.role=r.role||"dialog",r.popover=!0,r.autohide=!0,r.ariaRoot=!0,e.panel=new t(r).on("hide",function(){e.active(!1)}).on("cancel",function(t){t.stopPropagation(),e.focus(),e.hidePanel()}).parent(e).renderTo(e.getContainerElm()),e.panel.fire("show"),e.panel.reflow()}e.panel.moveRel(e.getEl(),n.popoverAlign||(e.isRtl()?["bc-tr","bc-tc"]:["bc-tl","bc-tc"]))},hidePanel:function(){var e=this;e.panel&&e.panel.hide()},postRender:function(){var e=this;return e.aria("haspopup",!0),e.on("click",function(t){t.control===e&&(e.panel&&e.panel.visible()?e.hidePanel():(e.showPanel(),e.panel.focus(!!t.aria)))}),e._super()}})}),r(Et,[Nt,y],function(e,t){var n=t.DOM;return e.extend({init:function(e){this._super(e),this.addClass("colorbutton")},color:function(e){return e?(this._color=e,this.getEl("preview").style.backgroundColor=e,this):this._color},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix,r=e.settings.icon?n+"ico "+n+"i-"+e.settings.icon:"",i=e.settings.image?" style=\"background-image: url('"+e.settings.image+"')\"":"";return'
'},postRender:function(){var e=this,t=e.settings.onclick;return e.on("click",function(r){r.aria&&"down"==r.aria.key||r.control!=e||n.getParent(r.target,"."+e.classPrefix+"open")||(r.stopImmediatePropagation(),t.call(e,r))}),delete e.settings.onclick,e._super()}})}),r(St,[Ct,$,U],function(e,t,n){return e.extend({init:function(e){var t=this;t._super(e),t.addClass("combobox"),t.subinput=!0,t.ariaTarget="inp",e=t.settings,e.menu=e.menu||e.values,e.menu&&(e.icon="caret"),t.on("click",function(n){for(var r=n.target,i=t.getEl();r&&r!=i;)r.id&&-1!=r.id.indexOf("-open")&&(t.fire("action"),e.menu&&(t.showMenu(),n.aria&&t.menu.items()[0].focus())),r=r.parentNode}),t.on("keydown",function(e){"INPUT"==e.target.nodeName&&13==e.keyCode&&t.parents().reverse().each(function(n){return e.preventDefault(),t.fire("change"),n.hasEventListeners("submit")&&n.toJSON?(n.fire("submit",{data:n.toJSON()}),!1):void 0})}),e.placeholder&&(t.addClass("placeholder"),t.on("focusin",function(){t._hasOnChange||(n.on(t.getEl("inp"),"change",function(){t.fire("change")}),t._hasOnChange=!0),t.hasClass("placeholder")&&(t.getEl("inp").value="",t.removeClass("placeholder"))}),t.on("focusout",function(){0===t.value().length&&(t.getEl("inp").value=e.placeholder,t.addClass("placeholder"))}))},showMenu:function(){var e=this,n=e.settings,r;e.menu||(r=n.menu||[],r.length?r={type:"menu",items:r}:r.type=r.type||"menu",e.menu=t.create(r).parent(e).renderTo(e.getContainerElm()),e.fire("createmenu"),e.menu.reflow(),e.menu.on("cancel",function(t){t.control===e.menu&&e.focus()}),e.menu.on("show hide",function(t){t.control.items().each(function(t){t.active(t.value()==e.value())})}).fire("show"),e.menu.on("select",function(t){e.value(t.control.value())}),e.on("focusin",function(t){"INPUT"==t.target.tagName.toUpperCase()&&e.menu.hide()}),e.aria("expanded",!0)),e.menu.show(),e.menu.layoutRect({w:e.layoutRect().w}),e.menu.moveRel(e.getEl(),e.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},value:function(e){var t=this;return"undefined"!=typeof e?(t._value=e,t.removeClass("placeholder"),t._rendered&&(t.getEl("inp").value=e),t):t._rendered?(e=t.getEl("inp").value,e!=t.settings.placeholder?e:""):t._value},disabled:function(e){var t=this;return t._rendered&&"undefined"!=typeof e&&(t.getEl("inp").disabled=e),t._super(e)},focus:function(){this.getEl("inp").focus()},repaint:function(){var e=this,t=e.getEl(),r=e.getEl("open"),i=e.layoutRect(),o,a;o=r?i.w-n.getSize(r).width-10:i.w-10;var s=document;return s.all&&(!s.documentMode||s.documentMode<=8)&&(a=e.layoutRect().h-2+"px"),n.css(t.firstChild,{width:o,lineHeight:a}),e._super(),e},postRender:function(){var e=this;return n.on(this.getEl("inp"),"change",function(){e.fire("change")}),e._super()},remove:function(){n.off(this.getEl("inp")),this._super()},renderHtml:function(){var e=this,t=e._id,n=e.settings,r=e.classPrefix,i=n.value||n.placeholder||"",o,a,s="",l="";return"spellcheck"in n&&(l+=' spellcheck="'+n.spellcheck+'"'),n.maxLength&&(l+=' maxlength="'+n.maxLength+'"'),n.size&&(l+=' size="'+n.size+'"'),n.subtype&&(l+=' type="'+n.subtype+'"'),e.disabled()&&(l+=' disabled="disabled"'),o=n.icon,o&&"caret"!=o&&(o=r+"ico "+r+"i-"+n.icon),a=e._text,(o||a)&&(s='
",e.addClass("has-open")),'
"+s+"
"}})}),r(kt,[Ct],function(e){return e.extend({init:function(e){var t=this;e.delimiter||(e.delimiter="\xbb"),t._super(e),t.addClass("path"),t.canFocus=!0,t.on("click",function(e){var n,r=e.target;(n=r.getAttribute("data-index"))&&t.fire("select",{value:t.data()[n],index:n})})},focus:function(){var e=this;return e.getEl().firstChild.focus(),e},data:function(e){var t=this;return"undefined"!=typeof e?(t._data=e,t.update(),t):t._data},update:function(){this.innerHtml(this._getPathHtml())},postRender:function(){var e=this;e._super(),e.data(e.settings.data)},renderHtml:function(){var e=this;return'
'+e._getPathHtml()+"
"},_getPathHtml:function(){var e=this,t=e._data||[],n,r,i="",o=e.classPrefix;for(n=0,r=t.length;r>n;n++)i+=(n>0?'":"")+'
'+t[n].name+"
";return i||(i='
\xa0
'),i}})}),r(Tt,[kt,ct],function(e,t){return e.extend({postRender:function(){function e(e){if(1===e.nodeType){if("BR"==e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1}var n=this,r=t.activeEditor;return n.on("select",function(t){var n=[],i,o=r.getBody();for(r.focus(),i=r.selection.getStart();i&&i!=o;)e(i)||n.push(i),i=i.parentNode;r.selection.select(n[n.length-1-t.index]),r.nodeChanged()}),r.on("nodeChange",function(t){for(var i=[],o=t.parents,a=o.length;a--;)if(1==o[a].nodeType&&!e(o[a])){var s=r.fire("ResolveName",{name:o[a].nodeName.toLowerCase(),target:o[a]});i.push({name:s.name})}n.data(i)}),n._super()}})}),r(Rt,[K],function(e){return e.extend({Defaults:{layout:"flex",align:"center",defaults:{flex:1}},renderHtml:function(){var e=this,t=e._layout,n=e.classPrefix;return e.addClass("formitem"),t.preRender(e),'
'+(e.settings.title?'
'+e.settings.title+"
":"")+'
'+(e.settings.html||"")+t.renderHtml(e)+"
" -}})}),r(At,[K,Rt],function(e,t){return e.extend({Defaults:{containerCls:"form",layout:"flex",direction:"column",align:"stretch",flex:1,padding:20,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var e=this,n=e.items();n.each(function(n){var r,i=n.settings.label;i&&(r=new t({layout:"flex",autoResize:"overflow",defaults:{flex:1},items:[{type:"label",id:n._id+"-l",text:i,flex:0,forId:n._id,disabled:n.disabled()}]}),r.type="formitem",n.aria("labelledby",n._id+"-l"),"undefined"==typeof n.settings.flex&&(n.settings.flex=1),e.replace(n,r),r.add(n))})},recalcLabels:function(){var e=this,t=0,n=[],r,i;if(e.settings.labelGapCalc!==!1)for(e.items().filter("formitem").each(function(e){var r=e.items()[0],i=r.getEl().clientWidth;t=i>t?i:t,n.push(r)}),i=e.settings.labelGap||0,r=n.length;r--;)n[r].settings.minWidth=t+i},visible:function(e){var t=this._super(e);return e===!0&&this._rendered&&this.recalcLabels(),t},submit:function(){return this.fire("submit",{data:this.toJSON()})},postRender:function(){var e=this;e._super(),e.recalcLabels(),e.fromJSON(e.settings.data)}})}),r(Bt,[At],function(e){return e.extend({Defaults:{containerCls:"fieldset",layout:"flex",direction:"column",align:"stretch",flex:1,padding:"25 15 5 15",labelGap:30,spacing:10,border:1},renderHtml:function(){var e=this,t=e._layout,n=e.classPrefix;return e.preRender(),t.preRender(e),'
'+(e.settings.title?''+e.settings.title+"":"")+'
'+(e.settings.html||"")+t.renderHtml(e)+"
"}})}),r(Lt,[St],function(e){return e.extend({init:function(e){var t=this,n=tinymce.activeEditor,r;e.spellcheck=!1,r=n.settings.file_browser_callback,r&&(e.icon="browse",e.onaction=function(){r(t.getEl("inp").id,t.getEl("inp").value,e.filetype,window)}),t._super(e)}})}),r(Dt,[yt],function(e){return e.extend({recalc:function(e){var t=e.layoutRect(),n=e.paddingBox();e.items().filter(":visible").each(function(e){e.layoutRect({x:n.left,y:n.top,w:t.innerW-n.right-n.left,h:t.innerH-n.top-n.bottom}),e.recalc&&e.recalc()})}})}),r(Mt,[yt],function(e){return e.extend({recalc:function(e){var t,n,r,i,o,a,s,l,c,u,d,f,p,m,h,g,v=[],y,b,C,x,w,_,N,E,S,k,T,R,A,B,L,D,M,H,P,O,I,F,z=Math.max,W=Math.min;for(r=e.items().filter(":visible"),i=e.layoutRect(),o=e._paddingBox,a=e.settings,f=e.isRtl()?a.direction||"row-reversed":a.direction,s=a.align,l=e.isRtl()?a.pack||"end":a.pack,c=a.spacing||0,("row-reversed"==f||"column-reverse"==f)&&(r=r.set(r.toArray().reverse()),f=f.split("-")[0]),"column"==f?(S="y",N="h",E="minH",k="maxH",R="innerH",T="top",A="deltaH",B="contentH",P="left",M="w",L="x",D="innerW",H="minW",O="right",I="deltaW",F="contentW"):(S="x",N="w",E="minW",k="maxW",R="innerW",T="left",A="deltaW",B="contentW",P="top",M="h",L="y",D="innerH",H="minH",O="bottom",I="deltaH",F="contentH"),d=i[R]-o[T]-o[T],_=u=0,t=0,n=r.length;n>t;t++)p=r[t],m=p.layoutRect(),h=p.settings,g=h.flex,d-=n-1>t?c:0,g>0&&(u+=g,m[k]&&v.push(p),m.flex=g),d-=m[E],y=o[P]+m[H]+o[O],y>_&&(_=y);if(x={},x[E]=0>d?i[E]-d+i[A]:i[R]-d+i[A],x[H]=_+i[I],x[B]=i[R]-d,x[F]=_,x.minW=W(x.minW,i.maxW),x.minH=W(x.minH,i.maxH),x.minW=z(x.minW,i.startMinWidth),x.minH=z(x.minH,i.startMinHeight),!i.autoResize||x.minW==i.minW&&x.minH==i.minH){for(C=d/u,t=0,n=v.length;n>t;t++)p=v[t],m=p.layoutRect(),b=m[k],y=m[E]+m.flex*C,y>b?(d-=m[k]-m[E],u-=m.flex,m.flex=0,m.maxFlexSize=b):m.maxFlexSize=0;for(C=d/u,w=o[T],x={},0===u&&("end"==l?w=d+o[T]:"center"==l?(w=Math.round(i[R]/2-(i[R]-d)/2)+o[T],0>w&&(w=o[T])):"justify"==l&&(w=o[T],c=Math.floor(d/(r.length-1)))),x[L]=o[P],t=0,n=r.length;n>t;t++)p=r[t],m=p.layoutRect(),y=m.maxFlexSize||m[E],"center"===s?x[L]=Math.round(i[D]/2-m[M]/2):"stretch"===s?(x[M]=z(m[H]||0,i[D]-o[P]-o[O]),x[L]=o[P]):"end"===s&&(x[L]=i[D]-m[M]-o.top),m.flex>0&&(y+=m.flex*C),x[N]=y,x[S]=w,p.layoutRect(x),p.recalc&&p.recalc(),w+=y+c}else if(x.w=x.minW,x.h=x.minH,e.layoutRect(x),this.recalc(e),null===e._lastRect){var V=e.parent();V&&(V._lastRect=null,V.recalc())}}})}),r(Ht,[vt],function(e){return e.extend({Defaults:{containerClass:"flow-layout",controlClass:"flow-layout-item",endClass:"break"},recalc:function(e){e.items().filter(":visible").each(function(e){e.recalc&&e.recalc()})}})}),r(Pt,[q,Ct,Z,p,ct,g],function(e,t,n,r,i,o){function a(e){function t(t,n){return function(){var r=this;e.on("nodeChange",function(i){var o=e.formatter,a=null;s(i.parents,function(e){return s(t,function(t){return n?o.matchNode(e,n,{value:t.value})&&(a=t.value):o.matchNode(e,t.value)&&(a=t.value),a?!1:void 0}),a?!1:void 0}),r.value(a)})}}function r(e){e=e.split(";");for(var t=e.length;t--;)e[t]=e[t].split("=");return e}function i(){function t(e){var n=[];if(e)return s(e,function(e){var o={text:e.title,icon:e.icon};if(e.items)o.menu=t(e.items);else{var a=e.format||"custom"+r++;e.format||(e.name=a,i.push(e)),o.format=a}n.push(o)}),n}function n(){var n;return n=t(e.settings.style_formats_merge?e.settings.style_formats?o.concat(e.settings.style_formats):o:e.settings.style_formats||o)}var r=0,i=[],o=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strikethrough",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Alignment",items:[{title:"Left",icon:"alignleft",format:"alignleft"},{title:"Center",icon:"aligncenter",format:"aligncenter"},{title:"Right",icon:"alignright",format:"alignright"},{title:"Justify",icon:"alignjustify",format:"alignjustify"}]}];return e.on("init",function(){s(i,function(t){e.formatter.register(t.name,t)})}),{type:"menu",items:n(),onPostRender:function(t){e.fire("renderFormatsMenu",{control:t.control})},itemDefaults:{preview:!0,textStyle:function(){return this.settings.format?e.formatter.getCssText(this.settings.format):void 0},onPostRender:function(){var t=this,n=this.settings.format;n&&t.parent().on("show",function(){t.disabled(!e.formatter.canApply(n)),t.active(e.formatter.match(n))})},onclick:function(){this.settings.format&&d(this.settings.format)}}}}function o(){return e.undoManager?e.undoManager.hasUndo():!1}function a(){return e.undoManager?e.undoManager.hasRedo():!1}function l(){var t=this;t.disabled(!o()),e.on("Undo Redo AddUndo TypingUndo",function(){t.disabled(!o())})}function c(){var t=this;t.disabled(!a()),e.on("Undo Redo AddUndo TypingUndo",function(){t.disabled(!a())})}function u(){var t=this;e.on("VisualAid",function(e){t.active(e.hasVisual)}),t.active(e.hasVisual)}function d(t){t.control&&(t=t.control.value()),t&&e.execCommand("mceToggleFormat",!1,t)}var f;f=i(),s({bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript"},function(t,n){e.addButton(n,{tooltip:t,onPostRender:function(){var t=this;e.formatter?e.formatter.formatChanged(n,function(e){t.active(e)}):e.on("init",function(){e.formatter.formatChanged(n,function(e){t.active(e)})})},onclick:function(){d(n)}})}),s({outdent:["Decrease indent","Outdent"],indent:["Increase indent","Indent"],cut:["Cut","Cut"],copy:["Copy","Copy"],paste:["Paste","Paste"],help:["Help","mceHelp"],selectall:["Select all","SelectAll"],hr:["Insert horizontal rule","InsertHorizontalRule"],removeformat:["Clear formatting","RemoveFormat"],visualaid:["Visual aids","mceToggleVisualAid"],newdocument:["New document","mceNewDocument"]},function(t,n){e.addButton(n,{tooltip:t[0],cmd:t[1]})}),s({blockquote:["Blockquote","mceBlockQuote"],numlist:["Numbered list","InsertOrderedList"],bullist:["Bullet list","InsertUnorderedList"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],alignleft:["Align left","JustifyLeft"],aligncenter:["Align center","JustifyCenter"],alignright:["Align right","JustifyRight"],alignjustify:["Justify","JustifyFull"]},function(t,n){e.addButton(n,{tooltip:t[0],cmd:t[1],onPostRender:function(){var t=this;e.formatter?e.formatter.formatChanged(n,function(e){t.active(e)}):e.on("init",function(){e.formatter.formatChanged(n,function(e){t.active(e)})})}})}),e.addButton("undo",{tooltip:"Undo",onPostRender:l,cmd:"undo"}),e.addButton("redo",{tooltip:"Redo",onPostRender:c,cmd:"redo"}),e.addMenuItem("newdocument",{text:"New document",shortcut:"Ctrl+N",icon:"newdocument",cmd:"mceNewDocument"}),e.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Ctrl+Z",onPostRender:l,cmd:"undo"}),e.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Ctrl+Y",onPostRender:c,cmd:"redo"}),e.addMenuItem("visualaid",{text:"Visual aids",selectable:!0,onPostRender:u,cmd:"mceToggleVisualAid"}),s({cut:["Cut","Cut","Ctrl+X"],copy:["Copy","Copy","Ctrl+C"],paste:["Paste","Paste","Ctrl+V"],selectall:["Select all","SelectAll","Ctrl+A"],bold:["Bold","Bold","Ctrl+B"],italic:["Italic","Italic","Ctrl+I"],underline:["Underline","Underline"],strikethrough:["Strikethrough","Strikethrough"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],removeformat:["Clear formatting","RemoveFormat"]},function(t,n){e.addMenuItem(n,{text:t[0],icon:n,shortcut:t[2],cmd:t[1]})}),e.on("mousedown",function(){n.hideAll()}),e.addButton("styleselect",{type:"menubutton",text:"Formats",menu:f}),e.addButton("formatselect",function(){var n=[],i=r(e.settings.block_formats||"Paragraph=p;Address=address;Pre=pre;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6");return s(i,function(t){n.push({text:t[0],value:t[1],textStyle:function(){return e.formatter.getCssText(t[1])}})}),{type:"listbox",text:i[0][0],values:n,fixedWidth:!0,onselect:d,onPostRender:t(n)}}),e.addButton("fontselect",function(){var n="Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",i=[],o=r(e.settings.font_formats||n);return s(o,function(e){i.push({text:{raw:e[0]},value:e[1],textStyle:-1==e[1].indexOf("dings")?"font-family:"+e[1]:""})}),{type:"listbox",text:"Font Family",tooltip:"Font Family",values:i,fixedWidth:!0,onPostRender:t(i,"fontname"),onselect:function(t){t.control.settings.value&&e.execCommand("FontName",!1,t.control.settings.value)}}}),e.addButton("fontsizeselect",function(){var n=[],r="8pt 10pt 12pt 14pt 18pt 24pt 36pt",i=e.settings.fontsize_formats||r;return s(i.split(" "),function(e){n.push({text:e,value:e})}),{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:n,fixedWidth:!0,onPostRender:t(n,"fontsize"),onclick:function(t){t.control.settings.value&&e.execCommand("FontSize",!1,t.control.settings.value)}}}),e.addMenuItem("formats",{text:"Formats",menu:f})}var s=r.each;i.on("AddEditor",function(t){t.editor.rtl&&(e.rtl=!0),a(t.editor)}),e.translate=function(e){return i.translate(e)},t.tooltips=!o.iOS}),r(Ot,[yt],function(e){return e.extend({recalc:function(e){var t=e.settings,n,r,i,o,a,s,l,c,u,d,f,p,m,h,g,v,y,b,C,x,w,_,N=[],E=[],S,k,T,R;for(t=e.settings,i=e.items().filter(":visible"),o=e.layoutRect(),r=t.columns||Math.ceil(Math.sqrt(i.length)),n=Math.ceil(i.length/r),y=t.spacingH||t.spacing||0,b=t.spacingV||t.spacing||0,C=t.alignH||t.align,x=t.alignV||t.align,g=e._paddingBox,C&&"string"==typeof C&&(C=[C]),x&&"string"==typeof x&&(x=[x]),d=0;r>d;d++)N.push(0);for(f=0;n>f;f++)E.push(0);for(f=0;n>f;f++)for(d=0;r>d&&(u=i[f*r+d],u);d++)c=u.layoutRect(),S=c.minW,k=c.minH,N[d]=S>N[d]?S:N[d],E[f]=k>E[f]?k:E[f];for(T=o.innerW-g.left-g.right,w=0,d=0;r>d;d++)w+=N[d]+(d>0?y:0),T-=(d>0?y:0)+N[d];for(R=o.innerH-g.top-g.bottom,_=0,f=0;n>f;f++)_+=E[f]+(f>0?b:0),R-=(f>0?b:0)+E[f];if(w+=g.left+g.right,_+=g.top+g.bottom,l={},l.minW=w+(o.w-o.innerW),l.minH=_+(o.h-o.innerH),l.contentW=l.minW-o.deltaW,l.contentH=l.minH-o.deltaH,l.minW=Math.min(l.minW,o.maxW),l.minH=Math.min(l.minH,o.maxH),l.minW=Math.max(l.minW,o.startMinWidth),l.minH=Math.max(l.minH,o.startMinHeight),!o.autoResize||l.minW==o.minW&&l.minH==o.minH){o.autoResize&&(l=e.layoutRect(l),l.contentW=l.minW-o.deltaW,l.contentH=l.minH-o.deltaH);var A;A="start"==t.packV?0:R>0?Math.floor(R/n):0;var B=0,L=t.flexWidths;if(L)for(d=0;dd;d++)N[d]+=L?L[d]*D:D;for(m=g.top,f=0;n>f;f++){for(p=g.left,s=E[f]+A,d=0;r>d&&(u=i[f*r+d],u);d++)h=u.settings,c=u.layoutRect(),a=Math.max(N[d],c.startMinWidth),c.x=p,c.y=m,v=h.alignH||(C?C[d]||C[0]:null),"center"==v?c.x=p+a/2-c.w/2:"right"==v?c.x=p+a-c.w:"stretch"==v&&(c.w=a),v=h.alignV||(x?x[d]||x[0]:null),"center"==v?c.y=m+s/2-c.h/2:"bottom"==v?c.y=m+s-c.h:"stretch"==v&&(c.h=s),u.layoutRect(c),p+=a+y,u.recalc&&u.recalc();m+=s+b}}else if(l.w=l.minW,l.h=l.minH,e.layoutRect(l),this.recalc(e),null===e._lastRect){var M=e.parent();M&&(M._lastRect=null,M.recalc())}}})}),r(It,[Ct],function(e){return e.extend({renderHtml:function(){var e=this;return e.addClass("iframe"),e.canFocus=!1,''},src:function(e){this.getEl().src=e},html:function(e,t){var n=this,r=this.getEl().contentWindow.document.body;return r?(r.innerHTML=e,t&&t()):setTimeout(function(){n.html(e)},0),this}})}),r(Ft,[Ct,U],function(e,t){return e.extend({init:function(e){var t=this;t._super(e),t.addClass("widget"),t.addClass("label"),t.canFocus=!1,e.multiline&&t.addClass("autoscroll"),e.strong&&t.addClass("strong")},initLayoutRect:function(){var e=this,n=e._super();if(e.settings.multiline){var r=t.getSize(e.getEl());r.width>n.maxW&&(n.minW=n.maxW,e.addClass("multiline")),e.getEl().style.width=n.minW+"px",n.startMinH=n.h=n.minH=Math.min(n.maxH,t.getSize(e.getEl()).height)}return n},repaint:function(){var e=this;return e.settings.multiline||(e.getEl().style.lineHeight=e.layoutRect().h+"px"),e._super()},text:function(e){var t=this;return t._rendered&&e&&this.innerHtml(t.encode(e)),t._super(e)},renderHtml:function(){var e=this,t=e.settings.forId;return'"}})}),r(zt,[K],function(e){return e.extend({Defaults:{role:"toolbar",layout:"flow"},init:function(e){var t=this;t._super(e),t.addClass("toolbar")},postRender:function(){var e=this;return e.items().addClass("toolbar-item"),e._super()}})}),r(Wt,[zt],function(e){return e.extend({Defaults:{role:"menubar",containerCls:"menubar",ariaRoot:!0,defaults:{type:"menubutton"}}})}),r(Vt,[xt,$,Wt],function(e,t,n){function r(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}var i=e.extend({init:function(e){var t=this;t._renderOpen=!0,t._super(e),t.addClass("menubtn"),e.fixedWidth&&t.addClass("fixed-width"),t.aria("haspopup",!0),t.hasPopup=!0},showMenu:function(){var e=this,n=e.settings,r;return e.menu&&e.menu.visible()?e.hideMenu():(e.menu||(r=n.menu||[],r.length?r={type:"menu",items:r}:r.type=r.type||"menu",e.menu=t.create(r).parent(e).renderTo(),e.fire("createmenu"),e.menu.reflow(),e.menu.on("cancel",function(t){t.control.parent()===e.menu&&(t.stopPropagation(),e.focus(),e.hideMenu())}),e.menu.on("select",function(){e.focus()}),e.menu.on("show hide",function(t){t.control==e.menu&&e.activeMenu("show"==t.type),e.aria("expanded","show"==t.type)}).fire("show")),e.menu.show(),e.menu.layoutRect({w:e.layoutRect().w}),void e.menu.moveRel(e.getEl(),e.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"]))},hideMenu:function(){var e=this;e.menu&&(e.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),e.menu.hide())},activeMenu:function(e){this.toggleClass("active",e)},renderHtml:function(){var e=this,t=e._id,r=e.classPrefix,i=e.settings.icon?r+"ico "+r+"i-"+e.settings.icon:"";return e.aria("role",e.parent()instanceof n?"menuitem":"button"),'
'},postRender:function(){var e=this;return e.on("click",function(t){t.control===e&&r(t.target,e.getEl())&&(e.showMenu(),t.aria&&e.menu.items()[0].focus())}),e.on("mouseenter",function(t){var n=t.control,r=e.parent(),o;n&&r&&n instanceof i&&n.parent()==r&&(r.items().filter("MenuButton").each(function(e){e.hideMenu&&e!=n&&(e.menu&&e.menu.visible()&&(o=!0),e.hideMenu())}),o&&(n.focus(),n.showMenu()))}),e._super()},text:function(e){var t=this,n,r;if(t._rendered)for(r=t.getEl("open").getElementsByTagName("span"),n=0;n0&&(o=n[0].text,t._value=n[0].value),e.menu=n}e.text=e.text||o||n[0].text,t._super(e),t.addClass("listbox"),t.on("select",function(n){var r=n.control;a&&(n.lastControl=a),e.multiple?r.active(!r.active()):t.value(n.control.settings.value),a=r})},value:function(e){function t(e,n){e.items().each(function(e){r=e.value()===n,r&&(i=i||e.text()),e.active(r),e.menu&&t(e.menu,n)})}var n=this,r,i,o,a;if("undefined"!=typeof e){if(n.menu)t(n.menu,e);else for(o=n.settings.menu,a=0;a'+("-"!==o?'\xa0":"")+("-"!==o?''+o+"":"")+(l?'
'+l+"
":"")+(r.menu?'
':"")+""},postRender:function(){var e=this,t=e.settings,n=t.textStyle;if("function"==typeof n&&(n=n.call(this)),n){var r=e.getEl("text");r&&r.setAttribute("style",n)}return e.on("mouseenter click",function(n){n.control===e&&(t.menu||"click"!==n.type?(e.showMenu(),n.aria&&e.menu.focus(!0)):(e.fire("select"),e.parent().hideAll()))}),e._super(),e},active:function(e){return"undefined"!=typeof e&&this.aria("checked",e),this._super(e)},remove:function(){this._super(),this.menu&&this.menu.remove()}})}),r($t,[Z,qt,p],function(e,t,n){var r=e.extend({Defaults:{defaultType:"menuitem",border:1,layout:"stack",role:"application",bodyRole:"menu",ariaRoot:!0},init:function(e){var t=this;if(e.autohide=!0,e.constrainToViewport=!0,e.itemDefaults)for(var r=e.items,i=r.length;i--;)r[i]=n.extend({},e.itemDefaults,r[i]);t._super(e),t.addClass("menu")},repaint:function(){return this.toggleClass("menu-align",!0),this._super(),this.getEl().style.height="",this.getEl("body").style.height="",this},cancel:function(){var e=this;e.hideAll(),e.fire("select")},hideAll:function(){var e=this;return this.find("menuitem").exec("hideMenu"),e._super()},preRender:function(){var e=this;return e.items().each(function(t){var n=t.settings;return n.icon||n.selectable?(e._hasIcons=!0,!1):void 0}),e._super()}});return r}),r(jt,[_t],function(e){return e.extend({Defaults:{classes:"radio",role:"radio"}})}),r(Kt,[Ct,Y],function(e,t){return e.extend({renderHtml:function(){var e=this,t=e.classPrefix;return e.addClass("resizehandle"),"both"==e.settings.direction&&e.addClass("resizehandle-both"),e.canFocus=!1,'
'},postRender:function(){var e=this;e._super(),e.resizeDragHelper=new t(this._id,{start:function(){e.fire("ResizeStart")},drag:function(t){"both"!=e.settings.direction&&(t.deltaX=0),e.fire("Resize",t)},stop:function(){e.fire("ResizeEnd")}})},remove:function(){return this.resizeDragHelper&&this.resizeDragHelper.destroy(),this._super()}})}),r(Yt,[Ct],function(e){return e.extend({renderHtml:function(){var e=this;return e.addClass("spacer"),e.canFocus=!1,'
'}})}),r(Gt,[Vt,U],function(e,t){return e.extend({Defaults:{classes:"widget btn splitbtn",role:"button"},repaint:function(){var e=this,n=e.getEl(),r=e.layoutRect(),i,o;return e._super(),i=n.firstChild,o=n.lastChild,t.css(i,{width:r.w-t.getSize(o).width,height:r.h-2}),t.css(o,{height:r.h-2}),e},activeMenu:function(e){var n=this;t.toggleClass(n.getEl().lastChild,n.classPrefix+"active",e)},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix,r=e.settings.icon?n+"ico "+n+"i-"+e.settings.icon:"";return'
'},postRender:function(){var e=this,t=e.settings.onclick;return e.on("click",function(e){var n=e.target;if(e.control==this)for(;n;){if(e.aria&&"down"!=e.aria.key||"BUTTON"==n.nodeName&&-1==n.className.indexOf("open"))return e.stopImmediatePropagation(),void t.call(this,e);n=n.parentNode}}),delete e.settings.onclick,e._super()}})}),r(Xt,[Ht],function(e){return e.extend({Defaults:{containerClass:"stack-layout",controlClass:"stack-layout-item",endClass:"break"}})}),r(Jt,[X,U],function(e,t){return e.extend({lastIdx:0,Defaults:{layout:"absolute",defaults:{type:"panel"}},activateTab:function(e){var n;this.activeTabId&&(n=this.getEl(this.activeTabId),t.removeClass(n,this.classPrefix+"active"),n.setAttribute("aria-selected","false")),this.activeTabId="t"+e,n=this.getEl("t"+e),n.setAttribute("aria-selected","true"),t.addClass(n,this.classPrefix+"active"),e!=this.lastIdx&&(this.items()[this.lastIdx].hide(),this.lastIdx=e),this.items()[e].show().fire("showtab"),this.reflow()},renderHtml:function(){var e=this,t=e._layout,n="",r=e.classPrefix;return e.preRender(),t.preRender(e),e.items().each(function(t,i){var o=e._id+"-t"+i;t.aria("role","tabpanel"),t.aria("labelledby",o),n+='"}),'
'+n+'
'+t.renderHtml(e)+"
"},postRender:function(){var e=this;e._super(),e.settings.activeTab=e.settings.activeTab||0,e.activateTab(e.settings.activeTab),this.on("click",function(t){var n=t.target.parentNode;if(t.target.parentNode.id==e._id+"-head")for(var r=n.childNodes.length;r--;)n.childNodes[r]==t.target&&e.activateTab(r)})},initLayoutRect:function(){var e=this,n,r,i;r=t.getSize(e.getEl("head")).width,r=0>r?0:r,i=0,e.items().each(function(t,n){r=Math.max(r,t.layoutRect().minW),i=Math.max(i,t.layoutRect().minH),e.settings.activeTab!=n&&t.hide()}),e.items().each(function(e){e.settings.x=0,e.settings.y=0,e.settings.w=r,e.settings.h=i,e.layoutRect({x:0,y:0,w:r,h:i})});var o=t.getSize(e.getEl("head")).height;return e.settings.minWidth=r,e.settings.minHeight=i+o,n=e._super(),n.deltaH+=o,n.innerH=n.h-n.deltaH,n}})}),r(Qt,[Ct,U],function(e,t){return e.extend({init:function(e){var t=this;t._super(e),t._value=e.value||"",t.addClass("textbox"),e.multiline?t.addClass("multiline"):t.on("keydown",function(e){13==e.keyCode&&t.parents().reverse().each(function(t){return e.preventDefault(),t.hasEventListeners("submit")&&t.toJSON?(t.fire("submit",{data:t.toJSON()}),!1):void 0})})},disabled:function(e){var t=this;return t._rendered&&"undefined"!=typeof e&&(t.getEl().disabled=e),t._super(e)},value:function(e){var t=this;return"undefined"!=typeof e?(t._value=e,t._rendered&&(t.getEl().value=e),t):t._rendered?t.getEl().value:t._value},repaint:function(){var e=this,t,n,r,i=0,o=0,a;t=e.getEl().style,n=e._layoutRect,a=e._lastRepaintRect||{};var s=document;return!e.settings.multiline&&s.all&&(!s.documentMode||s.documentMode<=8)&&(t.lineHeight=n.h-o+"px"),r=e._borderBox,i=r.left+r.right+8,o=r.top+r.bottom+(e.settings.multiline?8:0),n.x!==a.x&&(t.left=n.x+"px",a.x=n.x),n.y!==a.y&&(t.top=n.y+"px",a.y=n.y),n.w!==a.w&&(t.width=n.w-i+"px",a.w=n.w),n.h!==a.h&&(t.height=n.h-o+"px",a.h=n.h),e._lastRepaintRect=a,e.fire("repaint",{},!1),e},renderHtml:function(){var e=this,t=e._id,n=e.settings,r=e.encode(e._value,!1),i="";return"spellcheck"in n&&(i+=' spellcheck="'+n.spellcheck+'"'),n.maxLength&&(i+=' maxlength="'+n.maxLength+'"'),n.size&&(i+=' size="'+n.size+'"'),n.subtype&&(i+=' type="'+n.subtype+'"'),e.disabled()&&(i+=' disabled="disabled"'),n.multiline?'":'"},postRender:function(){var e=this;return t.on(e.getEl(),"change",function(t){e.fire("change",t)}),e._super()},remove:function(){t.off(this.getEl()),this._super()}})}),r(Zt,[U,q],function(e,t){return function(n,r){var i=this,o,a=t.classPrefix;i.show=function(t){return i.hide(),o=!0,window.setTimeout(function(){o&&n.appendChild(e.createFragment('
'))},t||0),i},i.hide=function(){var e=n.lastChild;return e&&-1!=e.className.indexOf("throbber")&&e.parentNode.removeChild(e),o=!1,i}}}),a([l,c,u,d,f,p,m,h,g,v,y,b,C,x,w,_,N,E,S,k,T,R,A,B,L,D,M,H,P,O,I,F,z,W,V,U,q,$,j,K,Y,G,X,J,Q,Z,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,pt,mt,ht,gt,vt,yt,bt,Ct,xt,wt,_t,Nt,Et,St,kt,Tt,Rt,At,Bt,Lt,Dt,Mt,Ht,Pt,Ot,It,Ft,zt,Wt,Vt,Ut,qt,$t,jt,Kt,Yt,Gt,Xt,Jt,Qt,Zt])}(this);tinymce.PluginManager.add("advlist",function(t){function e(t,e){var n=[];return tinymce.each(e.split(/[ ,]/),function(t){n.push({text:t.replace(/\-/g," ").replace(/\b\w/g,function(t){return t.toUpperCase()}),data:"default"==t?"":t})}),n}function n(e,n){var o,l=t.dom,a=t.selection;o=l.getParent(a.getNode(),"ol,ul"),o&&o.nodeName==e&&n!==!1||t.execCommand("UL"==e?"InsertUnorderedList":"InsertOrderedList"),n=n===!1?i[e]:n,i[e]=n,o=l.getParent(a.getNode(),"ol,ul"),o&&(l.setStyle(o,"listStyleType",n),o.removeAttribute("data-mce-style")),t.focus()}function o(e){var n=t.dom.getStyle(t.dom.getParent(t.selection.getNode(),"ol,ul"),"listStyleType")||"";e.control.items().each(function(t){t.active(t.settings.data===n)})}var l,a,i={};l=e("OL",t.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),a=e("UL",t.getParam("advlist_bullet_styles","default,circle,disc,square")),t.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:l,onshow:o,onselect:function(t){n("OL",t.control.settings.data)},onclick:function(){n("OL",!1)}}),t.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",menu:a,onshow:o,onselect:function(t){n("UL",t.control.settings.data)},onclick:function(){n("UL",!1)}})});tinymce.PluginManager.add("anchor",function(n){function e(){var e=n.selection.getNode();n.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:e.name||e.id},onsubmit:function(e){n.execCommand("mceInsertContent",!1,n.dom.createHTML("a",{id:e.data.name}))}})}n.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:e,stateSelector:"a:not([href])"}),n.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:e})});tinymce.PluginManager.add("autolink",function(t){function e(t){o(t,-1,"(",!0)}function n(t){o(t,0,"",!0)}function i(t){o(t,-1,"",!1)}function o(t,e,n){var i,o,r,s,d,a,f,l,c;if(i=t.selection.getRng(!0).cloneRange(),i.startOffset<5){if(l=i.endContainer.previousSibling,!l){if(!i.endContainer.firstChild||!i.endContainer.firstChild.nextSibling)return;l=i.endContainer.firstChild.nextSibling}if(c=l.length,i.setStart(l,c),i.setEnd(l,c),i.endOffset<5)return;o=i.endOffset,s=l}else{if(s=i.endContainer,3!=s.nodeType&&s.firstChild){for(;3!=s.nodeType&&s.firstChild;)s=s.firstChild;3==s.nodeType&&(i.setStart(s,0),i.setEnd(s,s.nodeValue.length))}o=1==i.endOffset?2:i.endOffset-1-e}r=o;do i.setStart(s,o>=2?o-2:0),i.setEnd(s,o>=1?o-1:0),o-=1;while(" "!=i.toString()&&""!==i.toString()&&160!=i.toString().charCodeAt(0)&&o-2>=0&&i.toString()!=n);if(i.toString()==n||160==i.toString().charCodeAt(0)?(i.setStart(s,o),i.setEnd(s,r),o+=1):0===i.startOffset?(i.setStart(s,0),i.setEnd(s,r)):(i.setStart(s,o),i.setEnd(s,r)),a=i.toString(),"."==a.charAt(a.length-1)&&i.setEnd(s,r-1),a=i.toString(),f=a.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i),f&&("www."==f[1]?f[1]="http://www.":/@$/.test(f[1])&&!/^mailto:/.test(f[1])&&(f[1]="mailto:"+f[1]),d=t.selection.getBookmark(),t.selection.setRng(i),t.execCommand("createlink",!1,f[1]+f[2]),t.selection.moveToBookmark(d),t.nodeChanged(),tinymce.Env.webkit)){t.selection.collapse(!1);var g=Math.min(s.length,r+1);i.setStart(s,g),i.setEnd(s,g),t.selection.setRng(i)}}var r;return t.on("keydown",function(e){return 13==e.keyCode?i(t):void 0}),tinymce.Env.ie?void t.on("focus",function(){if(!r){r=!0;try{t.execCommand("AutoUrlDetect",!1,!0)}catch(e){}}}):(t.on("keypress",function(n){return 41==n.which?e(t):void 0}),void t.on("keyup",function(e){return 32==e.keyCode?n(t):void 0}))});tinymce.PluginManager.add("autoresize",function(e){function t(){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()}function i(n){var s,r,g,u,l,m,h,d,f=tinymce.DOM;if(r=e.getDoc()){if(g=r.body,u=r.documentElement,l=o.autoresize_min_height,!g||n&&"setcontent"===n.type&&n.initial||t())return void(g&&u&&(g.style.overflowY="auto",u.style.overflowY="auto"));h=e.dom.getStyle(g,"margin-top",!0),d=e.dom.getStyle(g,"margin-bottom",!0),m=g.offsetHeight+parseInt(h,10)+parseInt(d,10),(isNaN(m)||0>=m)&&(m=tinymce.Env.ie?g.scrollHeight:tinymce.Env.webkit&&0===g.clientHeight?0:g.offsetHeight),m>o.autoresize_min_height&&(l=m),o.autoresize_max_height&&m>o.autoresize_max_height?(l=o.autoresize_max_height,g.style.overflowY="auto",u.style.overflowY="auto"):(g.style.overflowY="hidden",u.style.overflowY="hidden",g.scrollTop=0),l!==a&&(s=l-a,f.setStyle(f.get(e.id+"_ifr"),"height",l+"px"),a=l,tinymce.isWebKit&&0>s&&i(n))}}function n(e,t,o){setTimeout(function(){i({}),e--?n(e,t,o):o&&o()},t)}var o=e.settings,a=0;e.settings.inline||(o.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight),10),o.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0),10),e.on("init",function(){var t=e.getParam("autoresize_overflow_padding",1);e.dom.setStyles(e.getBody(),{paddingBottom:e.getParam("autoresize_bottom_margin",50),paddingLeft:t,paddingRight:t})}),e.on("nodechange setcontent keyup FullscreenStateChanged",i),e.getParam("autoresize_on_init",!0)&&e.on("init",function(){n(20,100,function(){n(5,1e3)})}),e.addCommand("mceAutoResize",i))});tinymce.PluginManager.add("autosave",function(e){function t(e,t){var n={s:1e3,m:6e4};return e=/^(\d+)([ms]?)$/.exec(""+(e||t)),(e[2]?n[e[2]]:1)*parseInt(e,10)}function n(){var e=parseInt(l.getItem(d+"time"),10)||0;return(new Date).getTime()-e>v.autosave_retention?(a(!1),!1):!0}function a(t){l.removeItem(d+"draft"),l.removeItem(d+"time"),t!==!1&&e.fire("RemoveDraft")}function r(){!c()&&e.isDirty()&&(l.setItem(d+"draft",e.getContent({format:"raw",no_events:!0})),l.setItem(d+"time",(new Date).getTime()),e.fire("StoreDraft"))}function o(){n()&&(e.setContent(l.getItem(d+"draft"),{format:"raw"}),e.fire("RestoreDraft"))}function i(){m||(setInterval(function(){e.removed||r()},v.autosave_interval),m=!0)}function s(){var t=this;t.disabled(!n()),e.on("StoreDraft RestoreDraft RemoveDraft",function(){t.disabled(!n())}),i()}function u(){e.undoManager.beforeChange(),o(),a(),e.undoManager.add()}function f(){var e;return tinymce.each(tinymce.editors,function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&t.getParam("autosave_ask_before_unload",!0)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e}function c(t){var n=e.settings.forced_root_block;return t=tinymce.trim("undefined"==typeof t?e.getBody().innerHTML:t),""===t||new RegExp("^<"+n+"[^>]*>(( | |[ ]|]*>)+?|)|
$","i").test(t)}var d,m,v=e.settings,l=tinymce.util.LocalStorage;d=v.autosave_prefix||"tinymce-autosave-{path}{query}-{id}-",d=d.replace(/\{path\}/g,document.location.pathname),d=d.replace(/\{query\}/g,document.location.search),d=d.replace(/\{id\}/g,e.id),v.autosave_interval=t(v.autosave_interval,"30s"),v.autosave_retention=t(v.autosave_retention,"20m"),e.addButton("restoredraft",{title:"Restore last draft",onclick:u,onPostRender:s}),e.addMenuItem("restoredraft",{text:"Restore last draft",onclick:u,onPostRender:s,context:"file"}),e.settings.autosave_restore_when_empty!==!1&&(e.on("init",function(){n()&&c()&&o()}),e.on("saveContent",function(){a()})),window.onbeforeunload=f,this.hasDraft=n,this.storeDraft=r,this.restoreDraft=o,this.removeDraft=a,this.isEmpty=c});!function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(o){var e=this,t=o.getParam("bbcode_dialect","punbb").toLowerCase();o.on("beforeSetContent",function(o){o.content=e["_"+t+"_bbcode2html"](o.content)}),o.on("postProcess",function(o){o.set&&(o.content=e["_"+t+"_bbcode2html"](o.content)),o.get&&(o.content=e["_"+t+"_html2bbcode"](o.content))})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://www.tinymce.com",infourl:"http://www.tinymce.com/wiki.php/Plugin:bbcode"}},_punbb_html2bbcode:function(o){function e(e,t){o=o.replace(e,t)}return o=tinymce.trim(o),e(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"),e(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),e(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),e(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),e(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),e(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"),e(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"),e(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"),e(/(.*?)<\/font>/gi,"$1"),e(//gi,"[img]$1[/img]"),e(/(.*?)<\/span>/gi,"[code]$1[/code]"),e(/(.*?)<\/span>/gi,"[quote]$1[/quote]"),e(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),e(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),e(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),e(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),e(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),e(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),e(/<\/(strong|b)>/gi,"[/b]"),e(/<(strong|b)>/gi,"[b]"),e(/<\/(em|i)>/gi,"[/i]"),e(/<(em|i)>/gi,"[i]"),e(/<\/u>/gi,"[/u]"),e(/(.*?)<\/span>/gi,"[u]$1[/u]"),e(//gi,"[u]"),e(/]*>/gi,"[quote]"),e(/<\/blockquote>/gi,"[/quote]"),e(/
/gi,"\n"),e(//gi,"\n"),e(/
/gi,"\n"),e(/

/gi,""),e(/<\/p>/gi,"\n"),e(/ |\u00a0/gi," "),e(/"/gi,'"'),e(/</gi,"<"),e(/>/gi,">"),e(/&/gi,"&"),o},_punbb_bbcode2html:function(o){function e(e,t){o=o.replace(e,t)}return o=tinymce.trim(o),e(/\n/gi,"
"),e(/\[b\]/gi,""),e(/\[\/b\]/gi,""),e(/\[i\]/gi,""),e(/\[\/i\]/gi,""),e(/\[u\]/gi,""),e(/\[\/u\]/gi,""),e(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2'),e(/\[url\](.*?)\[\/url\]/gi,'$1'),e(/\[img\](.*?)\[\/img\]/gi,''),e(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2'),e(/\[code\](.*?)\[\/code\]/gi,'$1 '),e(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 '),o}}),tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)}();tinymce.PluginManager.add("charmap",function(e){function a(){function a(e){for(;e;){if("TD"==e.nodeName)return e;e=e.parentNode}}var i,r,o,n;i='';var l=25;for(o=0;10>o;o++){for(i+="",r=0;l>r;r++){var s=t[o*l+r];i+='"}i+=""}i+="";var c={type:"container",html:i,onclick:function(a){var t=a.target;/^(TD|DIV)$/.test(t.nodeName)&&(e.execCommand("mceInsertContent",!1,tinymce.trim(t.innerText||t.textContent)),a.ctrlKey||n.close())},onmouseover:function(e){var t=a(e.target);t&&n.find("#preview").text(t.firstChild.firstChild.data)}};n=e.windowManager.open({title:"Special character",spacing:10,padding:10,items:[c,{type:"label",name:"preview",text:" ",style:"font-size: 40px; text-align: center",border:1,minWidth:100,minHeight:80}],buttons:[{text:"Close",onclick:function(){n.close()}}]})}var t=[["160","no-break space"],["38","ampersand"],["34","quotation mark"],["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"],["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sign"],["181","micro sign"],["183","middle dot"],["8226","bullet"],["8230","three dot leader"],["8242","minutes / feet"],["8243","seconds / inches"],["167","section sign"],["182","paragraph sign"],["223","sharp s / ess-zed"],["8249","single left-pointing angle quotation mark"],["8250","single right-pointing angle quotation mark"],["171","left pointing guillemet"],["187","right pointing guillemet"],["8216","left single quotation mark"],["8217","right single quotation mark"],["8220","left double quotation mark"],["8221","right double quotation mark"],["8218","single low-9 quotation mark"],["8222","double low-9 quotation mark"],["60","less-than sign"],["62","greater-than sign"],["8804","less-than or equal to"],["8805","greater-than or equal to"],["8211","en dash"],["8212","em dash"],["175","macron"],["8254","overline"],["164","currency sign"],["166","broken bar"],["168","diaeresis"],["161","inverted exclamation mark"],["191","turned question mark"],["710","circumflex accent"],["732","small tilde"],["176","degree sign"],["8722","minus sign"],["177","plus-minus sign"],["247","division sign"],["8260","fraction slash"],["215","multiplication sign"],["185","superscript one"],["178","superscript two"],["179","superscript three"],["188","fraction one quarter"],["189","fraction one half"],["190","fraction three quarters"],["402","function / florin"],["8747","integral"],["8721","n-ary sumation"],["8734","infinity"],["8730","square root"],["8764","similar to"],["8773","approximately equal to"],["8776","almost equal to"],["8800","not equal to"],["8801","identical to"],["8712","element of"],["8713","not an element of"],["8715","contains as member"],["8719","n-ary product"],["8743","logical and"],["8744","logical or"],["172","not sign"],["8745","intersection"],["8746","union"],["8706","partial differential"],["8704","for all"],["8707","there exists"],["8709","diameter"],["8711","backward difference"],["8727","asterisk operator"],["8733","proportional to"],["8736","angle"],["180","acute accent"],["184","cedilla"],["170","feminine ordinal indicator"],["186","masculine ordinal indicator"],["8224","dagger"],["8225","double dagger"],["192","A - grave"],["193","A - acute"],["194","A - circumflex"],["195","A - tilde"],["196","A - diaeresis"],["197","A - ring above"],["198","ligature AE"],["199","C - cedilla"],["200","E - grave"],["201","E - acute"],["202","E - circumflex"],["203","E - diaeresis"],["204","I - grave"],["205","I - acute"],["206","I - circumflex"],["207","I - diaeresis"],["208","ETH"],["209","N - tilde"],["210","O - grave"],["211","O - acute"],["212","O - circumflex"],["213","O - tilde"],["214","O - diaeresis"],["216","O - slash"],["338","ligature OE"],["352","S - caron"],["217","U - grave"],["218","U - acute"],["219","U - circumflex"],["220","U - diaeresis"],["221","Y - acute"],["376","Y - diaeresis"],["222","THORN"],["224","a - grave"],["225","a - acute"],["226","a - circumflex"],["227","a - tilde"],["228","a - diaeresis"],["229","a - ring above"],["230","ligature ae"],["231","c - cedilla"],["232","e - grave"],["233","e - acute"],["234","e - circumflex"],["235","e - diaeresis"],["236","i - grave"],["237","i - acute"],["238","i - circumflex"],["239","i - diaeresis"],["240","eth"],["241","n - tilde"],["242","o - grave"],["243","o - acute"],["244","o - circumflex"],["245","o - tilde"],["246","o - diaeresis"],["248","o slash"],["339","ligature oe"],["353","s - caron"],["249","u - grave"],["250","u - acute"],["251","u - circumflex"],["252","u - diaeresis"],["253","y - acute"],["254","thorn"],["255","y - diaeresis"],["913","Alpha"],["914","Beta"],["915","Gamma"],["916","Delta"],["917","Epsilon"],["918","Zeta"],["919","Eta"],["920","Theta"],["921","Iota"],["922","Kappa"],["923","Lambda"],["924","Mu"],["925","Nu"],["926","Xi"],["927","Omicron"],["928","Pi"],["929","Rho"],["931","Sigma"],["932","Tau"],["933","Upsilon"],["934","Phi"],["935","Chi"],["936","Psi"],["937","Omega"],["945","alpha"],["946","beta"],["947","gamma"],["948","delta"],["949","epsilon"],["950","zeta"],["951","eta"],["952","theta"],["953","iota"],["954","kappa"],["955","lambda"],["956","mu"],["957","nu"],["958","xi"],["959","omicron"],["960","pi"],["961","rho"],["962","final sigma"],["963","sigma"],["964","tau"],["965","upsilon"],["966","phi"],["967","chi"],["968","psi"],["969","omega"],["8501","alef symbol"],["982","pi symbol"],["8476","real part symbol"],["978","upsilon - hook symbol"],["8472","Weierstrass p"],["8465","imaginary part"],["8592","leftwards arrow"],["8593","upwards arrow"],["8594","rightwards arrow"],["8595","downwards arrow"],["8596","left right arrow"],["8629","carriage return"],["8656","leftwards double arrow"],["8657","upwards double arrow"],["8658","rightwards double arrow"],["8659","downwards double arrow"],["8660","left right double arrow"],["8756","therefore"],["8834","subset of"],["8835","superset of"],["8836","not a subset of"],["8838","subset of or equal to"],["8839","superset of or equal to"],["8853","circled plus"],["8855","circled times"],["8869","perpendicular"],["8901","dot operator"],["8968","left ceiling"],["8969","right ceiling"],["8970","left floor"],["8971","right floor"],["9001","left-pointing angle bracket"],["9002","right-pointing angle bracket"],["9674","lozenge"],["9824","black spade suit"],["9827","black club suit"],["9829","black heart suit"],["9830","black diamond suit"],["8194","en space"],["8195","em space"],["8201","thin space"],["8204","zero width non-joiner"],["8205","zero width joiner"],["8206","left-to-right mark"],["8207","right-to-left mark"],["173","soft hyphen"]];e.addButton("charmap",{icon:"charmap",tooltip:"Special character",onclick:a}),e.addMenuItem("charmap",{icon:"charmap",text:"Special character",onclick:a,context:"insert"})});tinymce.PluginManager.add("code",function(e){function o(){e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),value:e.getContent({source_view:!0}),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(o){e.focus(),e.undoManager.transact(function(){e.setContent(o.data.code)}),e.selection.setCursorLocation(),e.nodeChanged()}})}e.addCommand("mceCodeEditor",o),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:o}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:o})});tinymce.PluginManager.add("contextmenu",function(e){var n,t=e.settings.contextmenu_never_use_native;e.on("contextmenu",function(i){var o;if(!i.ctrlKey||t){if(i.preventDefault(),o=e.settings.contextmenu||"link image inserttable | cell row column deletetable",n)n.show();else{var c=[];tinymce.each(o.split(/[ ,]/),function(n){var t=e.menuItems[n];"|"==n&&(t={text:n}),t&&(t.shortcut="",c.push(t))});for(var a=0;a'}),t+=""}),t+=""}var i=[["cool","cry","embarassed","foot-in-mouth"],["frown","innocent","kiss","laughing"],["money-mouth","sealed","smile","surprised"],["tongue-out","undecided","wink","yell"]];t.addButton("emoticons",{type:"panelbutton",panel:{role:"application",autohide:!0,html:a,onclick:function(e){var a=t.dom.getParent(e.target,"a");a&&(t.insertContent(''+a.getAttribute('),this.hide())}},tooltip:"Emoticons"})});tinymce.PluginManager.add("fullpage",function(e){function t(){var t=n();e.windowManager.open({title:"Document properties",data:t,defaults:{type:"textbox",size:40},body:[{name:"title",label:"Title"},{name:"keywords",label:"Keywords"},{name:"description",label:"Description"},{name:"robots",label:"Robots"},{name:"author",label:"Author"},{name:"docencoding",label:"Encoding"}],onSubmit:function(e){l(tinymce.extend(t,e.data))}})}function n(){function t(e,t){var n=e.attr(t);return n||""}var n,l,a=i(),r={};return r.fontface=e.getParam("fullpage_default_fontface",""),r.fontsize=e.getParam("fullpage_default_fontsize",""),n=a.firstChild,7==n.type&&(r.xml_pi=!0,l=/encoding="([^"]+)"/.exec(n.value),l&&(r.docencoding=l[1])),n=a.getAll("#doctype")[0],n&&(r.doctype=""),n=a.getAll("title")[0],n&&n.firstChild&&(r.title=n.firstChild.value),s(a.getAll("meta"),function(e){var t,n=e.attr("name"),l=e.attr("http-equiv");n?r[n.toLowerCase()]=e.attr("content"):"Content-Type"==l&&(t=/charset\s*=\s*(.*)\s*/gi.exec(e.attr("content")),t&&(r.docencoding=t[1]))}),n=a.getAll("html")[0],n&&(r.langcode=t(n,"lang")||t(n,"xml:lang")),r.stylesheets=[],tinymce.each(a.getAll("link"),function(e){"stylesheet"==e.attr("rel")&&r.stylesheets.push(e.attr("href"))}),n=a.getAll("body")[0],n&&(r.langdir=t(n,"dir"),r.style=t(n,"style"),r.visited_color=t(n,"vlink"),r.link_color=t(n,"link"),r.active_color=t(n,"alink")),r}function l(t){function n(e,t,n){e.attr(t,n?n:void 0)}function l(e){r.firstChild?r.insert(e,r.firstChild):r.append(e)}var a,r,o,c,u,f=e.dom;a=i(),r=a.getAll("head")[0],r||(c=a.getAll("html")[0],r=new m("head",1),c.firstChild?c.insert(r,c.firstChild,!0):c.append(r)),c=a.firstChild,t.xml_pi?(u='version="1.0"',t.docencoding&&(u+=' encoding="'+t.docencoding+'"'),7!=c.type&&(c=new m("xml",7),a.insert(c,a.firstChild,!0)),c.value=u):c&&7==c.type&&c.remove(),c=a.getAll("#doctype")[0],t.doctype?(c||(c=new m("#doctype",10),t.xml_pi?a.insert(c,a.firstChild):l(c)),c.value=t.doctype.substring(9,t.doctype.length-1)):c&&c.remove(),c=null,s(a.getAll("meta"),function(e){"Content-Type"==e.attr("http-equiv")&&(c=e)}),t.docencoding?(c||(c=new m("meta",1),c.attr("http-equiv","Content-Type"),c.shortEnded=!0,l(c)),c.attr("content","text/html; charset="+t.docencoding)):c.remove(),c=a.getAll("title")[0],t.title?(c?c.empty():(c=new m("title",1),l(c)),c.append(new m("#text",3)).value=t.title):c&&c.remove(),s("keywords,description,author,copyright,robots".split(","),function(e){var n,i,r=a.getAll("meta"),o=t[e];for(n=0;n"))}function i(){return new tinymce.html.DomParser({validate:!1,root_name:"#document"}).parse(d)}function a(t){function n(e){return e.replace(/<\/?[A-Z]+/g,function(e){return e.toLowerCase()})}var l,a,o,m,u=t.content,f="",g=e.dom;if(!t.selection&&!("raw"==t.format&&d||t.source_view&&e.getParam("fullpage_hide_in_source_view"))){u=u.replace(/<(\/?)BODY/gi,"<$1body"),l=u.indexOf("",l),d=n(u.substring(0,l+1)),a=u.indexOf("\n"),o=i(),s(o.getAll("style"),function(e){e.firstChild&&(f+=e.firstChild.value)}),m=o.getAll("body")[0],m&&g.setAttribs(e.getBody(),{style:m.attr("style")||"",dir:m.attr("dir")||"",vLink:m.attr("vlink")||"",link:m.attr("link")||"",aLink:m.attr("alink")||""}),g.remove("fullpage_styles");var y=e.getDoc().getElementsByTagName("head")[0];f&&(g.add(y,"style",{id:"fullpage_styles"},f),m=g.get("fullpage_styles"),m.styleSheet&&(m.styleSheet.cssText=f));var h={};tinymce.each(y.getElementsByTagName("link"),function(e){"stylesheet"==e.rel&&e.getAttribute("data-mce-fullpage")&&(h[e.href]=e)}),tinymce.each(o.getAll("link"),function(e){var t=e.attr("href");h[t]||"stylesheet"!=e.attr("rel")||g.add(y,"link",{rel:"stylesheet",text:"text/css",href:t,"data-mce-fullpage":"1"}),delete h[t]}),tinymce.each(h,function(e){e.parentNode.removeChild(e)})}}function r(){var t,n="",l="";return e.getParam("fullpage_default_xml_pi")&&(n+='\n'),n+=e.getParam("fullpage_default_doctype",""),n+="\n\n\n",(t=e.getParam("fullpage_default_title"))&&(n+=""+t+"\n"),(t=e.getParam("fullpage_default_encoding"))&&(n+='\n'),(t=e.getParam("fullpage_default_font_family"))&&(l+="font-family: "+t+";"),(t=e.getParam("fullpage_default_font_size"))&&(l+="font-size: "+t+";"),(t=e.getParam("fullpage_default_text_color"))&&(l+="color: "+t+";"),n+="\n\n"}function o(t){t.selection||t.source_view&&e.getParam("fullpage_hide_in_source_view")||(t.content=tinymce.trim(d)+"\n"+tinymce.trim(t.content)+"\n"+tinymce.trim(c))}var d,c,s=tinymce.each,m=tinymce.html.Node;e.addCommand("mceFullPageProperties",t),e.addButton("fullpage",{title:"Document properties",cmd:"mceFullPageProperties"}),e.addMenuItem("fullpage",{text:"Document properties",cmd:"mceFullPageProperties",context:"file"}),e.on("BeforeSetContent",a),e.on("GetContent",o)});tinymce.PluginManager.add("fullscreen",function(e){function t(){var e,t,n=window,i=document,l=i.body;return l.offsetWidth&&(e=l.offsetWidth,t=l.offsetHeight),n.innerWidth&&n.innerHeight&&(e=n.innerWidth,t=n.innerHeight),{w:e,h:t}}function n(){function n(){d.setStyle(a,"height",t().h-(h.clientHeight-a.clientHeight))}var u,h,a,f,m=document.body,g=document.documentElement;s=!s,h=e.getContainer(),u=h.style,a=e.getContentAreaContainer().firstChild,f=a.style,s?(i=f.width,l=f.height,f.width=f.height="100%",c=u.width,o=u.height,u.width=u.height="",d.addClass(m,"mce-fullscreen"),d.addClass(g,"mce-fullscreen"),d.addClass(h,"mce-fullscreen"),d.bind(window,"resize",n),n(),r=n):(f.width=i,f.height=l,c&&(u.width=c),o&&(u.height=o),d.removeClass(m,"mce-fullscreen"),d.removeClass(g,"mce-fullscreen"),d.removeClass(h,"mce-fullscreen"),d.unbind(window,"resize",r)),e.fire("FullscreenStateChanged",{state:s})}var i,l,r,c,o,s=!1,d=tinymce.DOM;return e.settings.inline?void 0:(e.on("init",function(){e.addShortcut("Ctrl+Alt+F","",n)}),e.on("remove",function(){r&&d.unbind(window,"resize",r)}),e.addCommand("mceFullScreen",n),e.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Ctrl+Alt+F",selectable:!0,onClick:n,onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})},context:"view"}),e.addButton("fullscreen",{tooltip:"Fullscreen",shortcut:"Ctrl+Alt+F",onClick:n,onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})}}),{isFullscreen:function(){return s}})});tinymce.PluginManager.add("hr",function(n){n.addCommand("InsertHorizontalRule",function(){n.execCommand("mceInsertContent",!1,"


")}),n.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),n.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})});tinymce.PluginManager.add("image",function(e){function t(e,t){function i(e,i){n.parentNode&&n.parentNode.removeChild(n),t({width:e,height:i})}var n=document.createElement("img");n.onload=function(){i(n.clientWidth,n.clientHeight)},n.onerror=function(){i()};var a=n.style;a.visibility="hidden",a.position="fixed",a.bottom=a.left=0,a.width=a.height="auto",document.body.appendChild(n),n.src=e}function i(t){return tinymce.each(t,function(t){t.textStyle=function(){return e.formatter.getCssText({inline:"img",classes:[t.value]})}}),t}function n(t){return function(){var i=e.settings.image_list;"string"==typeof i?tinymce.util.XHR.send({url:i,success:function(e){t(tinymce.util.JSON.parse(e))}}):t(i)}}function a(n){function a(t,i,n){var a,l=[];return tinymce.each(e.settings[t]||n,function(e){var t={text:e.text||e.title,value:e.value};l.push(t),(f[i]===e.value||!a&&e.selected)&&(a=t)}),a&&!f[i]&&(f[i]=a.value,a.selected=!0),l}function l(){var t=[{text:"None",value:""}];return tinymce.each(n,function(i){t.push({text:i.text||i.title,value:e.convertURL(i.value||i.url,"src"),menu:i.menu})}),t}function o(){var e,t,i,n;e=u.find("#width")[0],t=u.find("#height")[0],i=e.value(),n=t.value(),u.find("#constrain")[0].checked()&&g&&h&&i&&n&&(g!=i?(n=Math.round(i/g*n),t.value(n)):(i=Math.round(n/h*i),e.value(i))),g=i,h=n}function s(){function t(t){function i(){t.onload=t.onerror=null,e.selection.select(t),e.nodeChanged()}t.onload=function(){f.width||f.height||y.setAttribs(t,{width:t.clientWidth,height:t.clientHeight}),i()},t.onerror=i}d(),o(),f=tinymce.extend(f,u.toJSON()),f.alt||(f.alt=""),""===f.width&&(f.width=null),""===f.height&&(f.height=null),""===f.style&&(f.style=null),f={src:f.src,alt:f.alt,width:f.width,height:f.height,style:f.style,"class":f["class"]},f["class"]||delete f["class"],e.undoManager.transact(function(){return f.src?(v?y.setAttribs(v,f):(f.id="__mcenew",e.focus(),e.selection.setContent(y.createHTML("img",f)),v=y.get("__mcenew"),y.setAttrib(v,"id",null)),void t(v)):void(v&&(y.remove(v),e.focus(),e.nodeChanged()))})}function r(e){return e&&(e=e.replace(/px$/,"")),e}function c(){m&&m.value(e.convertURL(this.value(),"src")),t(this.value(),function(e){e.width&&e.height&&(g=e.width,h=e.height,u.find("#width").value(g),u.find("#height").value(h))})}function d(){function t(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e}if(e.settings.image_advtab){var i=u.toJSON(),n=y.parseStyle(i.style);delete n.margin,n["margin-top"]=n["margin-bottom"]=t(i.vspace),n["margin-left"]=n["margin-right"]=t(i.hspace),n["border-width"]=t(i.border),u.find("#style").value(y.serializeStyle(y.parseStyle(y.serializeStyle(n))))}}var u,g,h,m,p,f={},y=e.dom,v=e.selection.getNode();g=y.getAttrib(v,"width"),h=y.getAttrib(v,"height"),"IMG"!=v.nodeName||v.getAttribute("data-mce-object")||v.getAttribute("data-mce-placeholder")?v=null:f={src:y.getAttrib(v,"src"),alt:y.getAttrib(v,"alt"),"class":y.getAttrib(v,"class"),width:g,height:h},n&&(m={type:"listbox",label:"Image list",values:l(),value:f.src&&e.convertURL(f.src,"src"),onselect:function(e){var t=u.find("#alt");(!t.value()||e.lastControl&&t.value()==e.lastControl.text())&&t.value(e.control.text()),u.find("#src").value(e.control.value())},onPostRender:function(){m=this}}),e.settings.image_class_list&&(p={name:"class",type:"listbox",label:"Class",values:i(a("image_class_list","class"))});var b=[{name:"src",type:"filepicker",filetype:"image",label:"Source",autofocus:!0,onchange:c},m];e.settings.image_description!==!1&&b.push({name:"alt",type:"textbox",label:"Image description"}),e.settings.image_dimensions!==!1&&b.push({type:"container",label:"Dimensions",layout:"flex",direction:"row",align:"center",spacing:5,items:[{name:"width",type:"textbox",maxLength:5,size:3,onchange:o,ariaLabel:"Width"},{type:"label",text:"x"},{name:"height",type:"textbox",maxLength:5,size:3,onchange:o,ariaLabel:"Height"},{name:"constrain",type:"checkbox",checked:!0,text:"Constrain proportions"}]}),b.push(p),e.settings.image_advtab?(v&&(f.hspace=r(v.style.marginLeft||v.style.marginRight),f.vspace=r(v.style.marginTop||v.style.marginBottom),f.border=r(v.style.borderWidth),f.style=e.dom.serializeStyle(e.dom.parseStyle(e.dom.getAttrib(v,"style")))),u=e.windowManager.open({title:"Insert/edit image",data:f,bodyType:"tabpanel",body:[{title:"General",type:"form",items:b},{title:"Advanced",type:"form",pack:"start",items:[{label:"Style",name:"style",type:"textbox"},{type:"form",layout:"grid",packV:"start",columns:2,padding:0,alignH:["left","right"],defaults:{type:"textbox",maxWidth:50,onchange:d},items:[{label:"Vertical space",name:"vspace"},{label:"Horizontal space",name:"hspace"},{label:"Border",name:"border"}]}]}],onSubmit:s})):u=e.windowManager.open({title:"Insert/edit image",data:f,body:b,onSubmit:s})}e.addButton("image",{icon:"image",tooltip:"Insert/edit image",onclick:n(a),stateSelector:"img:not([data-mce-object],[data-mce-placeholder])"}),e.addMenuItem("image",{icon:"image",text:"Insert image",onclick:n(a),context:"insert",prependToContext:!0})});tinymce.PluginManager.add("importcss",function(t){function e(t){return"string"==typeof t?function(e){return-1!==e.indexOf(t)}:t instanceof RegExp?function(e){return t.test(e)}:t}function n(e,n){function i(t,e){var o,l=t.href;if((e||c[l])&&(!n||n(l))){s(t.imports,function(t){i(t,!0)});try{o=t.cssRules||t.rules}catch(a){}s(o,function(t){t.styleSheet?i(t.styleSheet,!0):t.selectorText&&s(t.selectorText.split(","),function(t){r.push(tinymce.trim(t))})})}}var r=[],c={};s(t.contentCSS,function(t){c[t]=!0});try{s(e.styleSheets,function(t){i(t)})}catch(o){}return r}function i(e){var n,i=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(e);if(i){var r=i[1],s=i[2].substr(1).split(".").join(" "),c=tinymce.makeMap("a,img");return i[1]?(n={title:e},t.schema.getTextBlockElements()[r]?n.block=r:t.schema.getBlockElements()[r]||c[r.toLowerCase()]?n.selector=r:n.inline=r):i[2]&&(n={inline:"span",title:e.substr(1),classes:s}),t.settings.importcss_merge_classes!==!1?n.classes=s:n.attributes={"class":s},n}}var r=this,s=tinymce.each;t.on("renderFormatsMenu",function(c){var o=t.settings,l={},a=o.importcss_selector_converter||i,m=e(o.importcss_selector_filter);t.settings.importcss_append||c.control.items().remove();var f=[];tinymce.each(o.importcss_groups,function(t){t=tinymce.extend({},t),t.filter=e(t.filter),f.push(t)}),s(n(t.getDoc(),e(o.importcss_file_filter)),function(e){if(-1===e.indexOf(".mce-")&&!l[e]&&(!m||m(e))){var n,i=a.call(r,e);if(i){var s=i.name||tinymce.DOM.uniqueId();if(f)for(var o=0;o'+n+"";var i=e.dom.getParent(e.selection.getStart(),"time");if(i)return void e.dom.setOuterHTML(i,n)}e.insertContent(n)}var n,r,i="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),d="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),c="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),m="January February March April May June July August September October November December".split(" "),u=[];e.addCommand("mceInsertDate",function(){a(e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d")))}),e.addCommand("mceInsertTime",function(){a(e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S")))}),e.addButton("insertdatetime",{type:"splitbutton",title:"Insert date/time",onclick:function(){a(n||r)},menu:u}),tinymce.each(e.settings.insertdatetime_formats||["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"],function(e){r||(r=e),u.push({text:t(e),onclick:function(){n=e,a(e)}})}),e.addMenuItem("insertdatetime",{icon:"date",text:"Insert date/time",menu:u,context:"insert"})});!function(e){e.on("AddEditor",function(e){e.editor.settings.inline_styles=!1}),e.PluginManager.add("legacyoutput",function(t){t.on("init",function(){var i="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",n=e.explode(t.settings.font_size_style_values),l=t.schema;t.formatter.register({alignleft:{selector:i,attributes:{align:"left"}},aligncenter:{selector:i,attributes:{align:"center"}},alignright:{selector:i,attributes:{align:"right"}},alignjustify:{selector:i,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all"},{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all"},{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all"},{inline:"span",styles:{textDecoration:"underline"},exact:!0}],strikethrough:[{inline:"strike",remove:"all"},{inline:"span",styles:{textDecoration:"line-through"},exact:!0}],fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(t){return e.inArray(n,t.value)+1}}},forecolor:{inline:"font",attributes:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}}),e.each("b,i,u,strike".split(","),function(e){l.addValidElements(e+"[*]")}),l.getElementRule("font")||l.addValidElements("font[face|size|color|style]"),e.each(i.split(","),function(e){var t=l.getElementRule(e);t&&(t.attributes.align||(t.attributes.align={},t.attributesOrder.push("align")))})})})}(tinymce);tinymce.PluginManager.add("link",function(t){function e(e){return function(){var n=t.settings.link_list;"string"==typeof n?tinymce.util.XHR.send({url:n,success:function(t){e(tinymce.util.JSON.parse(t))}}):e(n)}}function n(e){function n(t){var e=d.find("#text");(!e.value()||t.lastControl&&e.value()==t.lastControl.text())&&e.value(t.control.text()),d.find("#href").value(t.control.value())}function l(){var n=[{text:"None",value:""}];return tinymce.each(e,function(e){n.push({text:e.text||e.title,value:t.convertURL(e.value||e.url,"href"),menu:e.menu})}),n}function i(e){return tinymce.each(e,function(e){e.textStyle=function(){return t.formatter.getCssText({inline:"a",classes:[e.value]})}}),e}function a(e,n,l){var i,a=[];return tinymce.each(t.settings[e]||l,function(t){var e={text:t.text||t.title,value:t.value};a.push(e),(b[n]===t.value||!i&&t.selected)&&(i=e)}),i&&!b[n]&&(b[n]=i.value,i.selected=!0),a}function r(e){var l=[];return tinymce.each(t.dom.select("a:not([href])"),function(t){var n=t.name||t.id;n&&l.push({text:n,value:"#"+n,selected:-1!=e.indexOf("#"+n)})}),l.length?(l.unshift({text:"None",value:""}),{name:"anchor",type:"listbox",label:"Anchors",values:l,onselect:n}):void 0}function o(){h&&h.value(t.convertURL(this.value(),"href")),!f&&0===b.text.length&&x&&this.parent().parent().find("#text")[0].value(this.value())}function s(t){var e=k.getContent();if(/]+>[^<]+<\/a>$/.test(e)||-1==e.indexOf("href=")))return!1;if(t){var n,l=t.childNodes;if(0===l.length)return!1;for(n=l.length-1;n>=0;n--)if(3!=l[n].nodeType)return!1}return!0}var u,c,f,d,x,v,h,g,m,p,y,b={},k=t.selection,w=t.dom;u=k.getNode(),c=w.getParent(u,"a[href]"),x=s(),b.text=f=c?c.innerText||c.textContent:k.getContent({format:"text"}),b.href=c?w.getAttrib(c,"href"):"",b.target=c?w.getAttrib(c,"target"):t.settings.default_link_target||null,b.rel=c?w.getAttrib(c,"rel"):null,b["class"]=c?w.getAttrib(c,"class"):null,b.title=c?w.getAttrib(c,"title"):"",x&&(v={name:"text",type:"textbox",size:40,label:"Text to display",onchange:function(){b.text=this.value()}}),e&&(h={type:"listbox",label:"Link list",values:l(),onselect:n,value:t.convertURL(b.href,"href"),onPostRender:function(){h=this}}),t.settings.target_list!==!1&&(m={name:"target",type:"listbox",label:"Target",values:a("target_list","target",[{text:"None",value:""},{text:"New window",value:"_blank"}])}),t.settings.rel_list&&(g={name:"rel",type:"listbox",label:"Rel",values:a("rel_list","rel",[{text:"None",value:""}])}),t.settings.link_class_list&&(p={name:"class",type:"listbox",label:"Class",values:i(a("link_class_list","class"))}),t.settings.link_title!==!1&&(y={name:"title",type:"textbox",label:"Title",value:b.title}),d=t.windowManager.open({title:"Insert link",data:b,body:[{name:"href",type:"filepicker",filetype:"file",size:40,autofocus:!0,label:"Url",onchange:o,onkeyup:o},v,y,r(b.href),h,g,m,p],onSubmit:function(e){function n(e,n){var l=t.selection.getRng();window.setTimeout(function(){t.windowManager.confirm(e,function(e){t.selection.setRng(l),n(e)})},0)}function l(){var e={href:i,target:b.target?b.target:null,rel:b.rel?b.rel:null,"class":b["class"]?b["class"]:null,title:b.title?b.title:null};c?(t.focus(),x&&b.text!=f&&("innerText"in c?c.innerText=b.text:c.textContent=b.text),w.setAttribs(c,e),k.select(c),t.undoManager.add()):x?t.insertContent(w.createHTML("a",e,w.encode(b.text))):t.execCommand("mceInsertLink",!1,e)}var i;return b=tinymce.extend(b,e.data),(i=b.href)?i.indexOf("@")>0&&-1==i.indexOf("//")&&-1==i.indexOf("mailto:")?void n("The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",function(t){t&&(i="mailto:"+i),l()}):/^\s*www\./i.test(i)?void n("The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",function(t){t&&(i="http://"+i),l()}):void l():void t.execCommand("unlink")}})}t.addButton("link",{icon:"link",tooltip:"Insert/edit link",shortcut:"Ctrl+K",onclick:e(n),stateSelector:"a[href]"}),t.addButton("unlink",{icon:"unlink",tooltip:"Remove link",cmd:"unlink",stateSelector:"a[href]"}),t.addShortcut("Ctrl+K","",e(n)),this.showDialog=n,t.addMenuItem("link",{icon:"link",text:"Insert link",shortcut:"Ctrl+K",onclick:e(n),stateSelector:"a[href]",context:"insert",prependToContext:!0})});tinymce.PluginManager.add("lists",function(e){function t(e){return e&&/^(OL|UL)$/.test(e.nodeName)}function n(e){return e.parentNode.firstChild==e}function r(e){return e.parentNode.lastChild==e}function o(t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]}function i(e){return e&&"SPAN"===e.nodeName&&"bookmark"===e.getAttribute("data-mce-type")}var a=this;e.on("init",function(){function d(e){function t(t){var r,o,i;o=e[t?"startContainer":"endContainer"],i=e[t?"startOffset":"endOffset"],1==o.nodeType&&(r=b.create("span",{"data-mce-type":"bookmark"}),o.hasChildNodes()?(i=Math.min(i,o.childNodes.length-1),t?o.insertBefore(r,o.childNodes[i]):b.insertAfter(r,o.childNodes[i])):o.appendChild(r),o=r,i=0),n[t?"startContainer":"endContainer"]=o,n[t?"startOffset":"endOffset"]=i}var n={};return t(!0),e.collapsed||t(),n}function s(e){function t(t){function n(e){for(var t=e.parentNode.firstChild,n=0;t;){if(t==e)return n;(1!=t.nodeType||"bookmark"!=t.getAttribute("data-mce-type"))&&n++,t=t.nextSibling}return-1}var r,o,i;r=i=e[t?"startContainer":"endContainer"],o=e[t?"startOffset":"endOffset"],r&&(1==r.nodeType&&(o=n(r),r=r.parentNode,b.remove(i)),e[t?"startContainer":"endContainer"]=r,e[t?"startOffset":"endOffset"]=o)}t(!0),t();var n=b.createRng();n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),L.setRng(n)}function f(t,n){var r,o,i,a=b.createFragment(),d=e.schema.getBlockElements();if(e.settings.forced_root_block&&(n=n||e.settings.forced_root_block),n&&(o=b.create(n),o.tagName===e.settings.forced_root_block&&b.setAttribs(o,e.settings.forced_root_block_attrs),a.appendChild(o)),t)for(;r=t.firstChild;){var s=r.nodeName;i||"SPAN"==s&&"bookmark"==r.getAttribute("data-mce-type")||(i=!0),d[s]?(a.appendChild(r),o=null):n?(o||(o=b.create(n),a.appendChild(o)),o.appendChild(r)):a.appendChild(r)}return e.settings.forced_root_block?i||tinymce.Env.ie&&!(tinymce.Env.ie>10)||o.appendChild(b.create("br",{"data-mce-bogus":"1"})):a.appendChild(b.create("br")),a}function l(){return tinymce.grep(L.getSelectedBlocks(),function(e){return"LI"==e.nodeName})}function c(e,t,n){var r,o,i=b.select('span[data-mce-type="bookmark"]',e);n=n||f(t),r=b.createRng(),r.setStartAfter(t),r.setEndAfter(e),o=r.extractContents(),b.isEmpty(o)||b.insertAfter(o,e),b.insertAfter(n,e),b.isEmpty(t.parentNode)&&(tinymce.each(i,function(e){t.parentNode.parentNode.insertBefore(e,t.parentNode)}),b.remove(t.parentNode)),b.remove(t)}function p(e){var n,r;if(n=e.nextSibling,n&&t(n)&&n.nodeName==e.nodeName){for(;r=n.firstChild;)e.appendChild(r);b.remove(n)}if(n=e.previousSibling,n&&t(n)&&n.nodeName==e.nodeName){for(;r=n.firstChild;)e.insertBefore(r,e.firstChild);b.remove(n)}}function u(e){tinymce.each(tinymce.grep(b.select("ol,ul",e)),function(e){var n,r=e.parentNode;"LI"==r.nodeName&&r.firstChild==e&&(n=r.previousSibling,n&&"LI"==n.nodeName&&(n.appendChild(e),b.isEmpty(r)&&b.remove(r))),t(r)&&(n=r.previousSibling,n&&"LI"==n.nodeName&&n.appendChild(e))})}function m(e){function o(e){b.isEmpty(e)&&b.remove(e)}var i,a=e.parentNode,d=a.parentNode;return n(e)&&r(e)?("LI"==d.nodeName?(b.insertAfter(e,d),o(d),b.remove(a)):t(d)?b.remove(a,!0):(d.insertBefore(f(e),a),b.remove(a)),!0):n(e)?("LI"==d.nodeName?(b.insertAfter(e,d),e.appendChild(a),o(d)):t(d)?d.insertBefore(e,a):(d.insertBefore(f(e),a),b.remove(e)),!0):r(e)?("LI"==d.nodeName?b.insertAfter(e,d):t(d)?b.insertAfter(e,a):(b.insertAfter(f(e),a),b.remove(e)),!0):("LI"==d.nodeName?(a=d,i=f(e,"LI")):i=t(d)?f(e,"LI"):f(e),c(a,e,i),u(a.parentNode),!0)}function h(e){function n(n,r){var o;if(t(n)){for(;o=e.lastChild.firstChild;)r.appendChild(o);b.remove(n)}}var r,o;return r=e.previousSibling,r&&t(r)?(r.appendChild(e),!0):r&&"LI"==r.nodeName&&t(r.lastChild)?(r.lastChild.appendChild(e),n(e.lastChild,r.lastChild),!0):(r=e.nextSibling,r&&t(r)?(r.insertBefore(e,r.firstChild),!0):r&&"LI"==r.nodeName&&t(e.lastChild)?!1:(r=e.previousSibling,r&&"LI"==r.nodeName?(o=b.create(e.parentNode.nodeName),r.appendChild(o),o.appendChild(e),n(e.lastChild,o),!0):!1))}function v(){var t=l();if(t.length){for(var n=d(L.getRng(!0)),r=0;r0))return n;for(var o=new tinymce.dom.TreeWalker(e.startContainer);n=o[t?"next":"prev"]();)if(3==n.nodeType&&n.data.length>0)return n}function r(e,n){var r,o,i=e.parentNode;for(t(n.lastChild)&&(o=n.lastChild),r=n.lastChild,r&&"BR"==r.nodeName&&e.hasChildNodes()&&b.remove(r);r=e.firstChild;)n.appendChild(r);o&&n.appendChild(o),b.remove(e),b.isEmpty(i)&&b.remove(i)}if(L.isCollapsed()){var o=b.getParent(L.getStart(),"LI");if(o){var i=L.getRng(!0),a=b.getParent(n(i,e),"LI");if(a&&a!=o){var f=d(i);return e?r(a,o):r(o,a),s(f),!0}if(!a&&!e&&N(o.parentNode.nodeName))return!0}}},e.addCommand("Indent",function(){return v()?void 0:!0}),e.addCommand("Outdent",function(){return C()?void 0:!0}),e.addCommand("InsertUnorderedList",function(){y("UL")}),e.addCommand("InsertOrderedList",function(){y("OL")}),e.on("keydown",function(t){9==t.keyCode&&e.dom.getParent(e.selection.getStart(),"LI")&&(t.preventDefault(),t.shiftKey?C():v())})}),e.addButton("indent",{icon:"indent",title:"Increase indent",cmd:"Indent",onPostRender:function(){var t=this;e.on("nodechange",function(){var r=e.dom.getParent(e.selection.getNode(),"LI,UL,OL");t.disabled(r&&("LI"!=r.nodeName||n(r)))})}}),e.on("keydown",function(e){e.keyCode==tinymce.util.VK.BACKSPACE?a.backspaceDelete()&&e.preventDefault():e.keyCode==tinymce.util.VK.DELETE&&a.backspaceDelete(!0)&&e.preventDefault()})});tinymce.PluginManager.add("media",function(e,t){function i(e){return-1!=e.indexOf(".mp3")?"audio/mpeg":-1!=e.indexOf(".wav")?"audio/wav":-1!=e.indexOf(".mp4")?"video/mp4":-1!=e.indexOf(".webm")?"video/webm":-1!=e.indexOf(".ogg")?"video/ogg":-1!=e.indexOf(".swf")?"application/x-shockwave-flash":""}function r(t){var i=e.settings.media_scripts;if(i)for(var r=0;r':"application/x-shockwave-flash"==o.source1mime?(a+='',o.poster&&(a+=''),a+=""):-1!=o.source1mime.indexOf("audio")?e.settings.audio_template_callback?a=e.settings.audio_template_callback(o):a+='":"script"==o.type?a+='':a=e.settings.video_template_callback?e.settings.video_template_callback(o):'"}return a}function s(e){var t={};return new tinymce.html.SaxParser({validate:!1,allow_conditional_comments:!0,special:"script,noscript",start:function(e,i){if(t.source1||"param"!=e||(t.source1=i.map.movie),("iframe"==e||"object"==e||"embed"==e||"video"==e||"audio"==e)&&(t.type||(t.type=e),t=tinymce.extend(i.map,t)),"script"==e){var o=r(i.map.src);if(!o)return;t={type:"script",source1:i.map.src,width:o.width,height:o.height}}"source"==e&&(t.source1?t.source2||(t.source2=i.map.src):t.source1=i.map.src),"img"!=e||t.poster||(t.poster=i.map.src)}}).parse(e),t.source1=t.source1||t.src||t.data,t.source2=t.source2||"",t.poster=t.poster||"",t}function n(t){return t.getAttribute("data-mce-object")?s(e.serializer.serialize(t,{selection:!0})):{}}function m(e,t,i){function r(e,t){var i,r,o,a;for(i in t)if(o=""+t[i],e.map[i])for(r=e.length;r--;)a=e[r],a.name==i&&(o?(e.map[i]=o,a.value=o):(delete e.map[i],e.splice(r,1)));else o&&(e.push({name:i,value:o}),e.map[i]=o)}var o,a=new tinymce.html.Writer,c=0;return new tinymce.html.SaxParser({validate:!1,allow_conditional_comments:!0,special:"script,noscript",comment:function(e){a.comment(e)},cdata:function(e){a.cdata(e)},text:function(e,t){a.text(e,t)},start:function(e,s,n){switch(e){case"video":case"object":case"embed":case"img":case"iframe":r(s,{width:t.width,height:t.height})}if(i)switch(e){case"video":r(s,{poster:t.poster,src:""}),t.source2&&r(s,{src:""});break;case"iframe":r(s,{src:t.source1});break;case"source":if(c++,2>=c&&(r(s,{src:t["source"+c],type:t["source"+c+"mime"]}),!t["source"+c]))return;break;case"img":if(!t.poster)return;o=!0}a.start(e,s,n)},end:function(e){if("video"==e&&i)for(var s=1;2>=s;s++)if(t["source"+s]){var n=[];n.map={},s>c&&(r(n,{src:t["source"+s],type:t["source"+s+"mime"]}),a.start("source",n,!0))}if(t.poster&&"object"==e&&i&&!o){var m=[];m.map={},r(m,{src:t.poster,width:t.width,height:t.height}),a.start("img",m,!0)}a.end(e)}},new tinymce.html.Schema({})).parse(e),a.getContent()}var d=[{regex:/youtu\.be\/([\w\-.]+)/,type:"iframe",w:425,h:350,url:"//www.youtube.com/embed/$1"},{regex:/youtube\.com(.+)v=([^&]+)/,type:"iframe",w:425,h:350,url:"//www.youtube.com/embed/$2"},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"//player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc"},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'//maps.google.com/maps/ms?msid=$2&output=embed"'}];e.on("ResolveName",function(e){var t;1==e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)}),e.on("preInit",function(){var t=e.schema.getSpecialElements();tinymce.each("video audio iframe object".split(" "),function(e){t[e]=new RegExp("]*>","gi")}),e.schema.addValidElements("object[id|style|width|height|classid|codebase|*],embed[id|style|width|height|type|src|*],video[*],audio[*]");var i=e.schema.getBoolAttrs();tinymce.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),function(e){i[e]={}}),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",function(t,i){for(var o,a,c,s,n,m,d,u,l=t.length;l--;)if(a=t[l],"script"!=a.name||(u=r(a.attr("src")))){for(c=new tinymce.html.Node("img",1),c.shortEnded=!0,u&&(u.width&&a.attr("width",u.width.toString()),u.height&&a.attr("height",u.height.toString())),m=a.attributes,o=m.length;o--;)s=m[o].name,n=m[o].value,"width"!==s&&"height"!==s&&"style"!==s&&(("data"==s||"src"==s)&&(n=e.convertURL(n,s)),c.attr("data-mce-p-"+s,n));d=a.firstChild&&a.firstChild.value,d&&(c.attr("data-mce-html",escape(d)),c.firstChild=null),c.attr({width:a.attr("width")||"300",height:a.attr("height")||("audio"==i?"30":"150"),style:a.attr("style"),src:tinymce.Env.transparentSrc,"data-mce-object":i,"class":"mce-object mce-object-"+i}),a.replace(c)}}),e.serializer.addAttributeFilter("data-mce-object",function(e,t){for(var i,r,o,a,c,s,n,m=e.length;m--;){for(i=e[m],n=i.attr(t),r=new tinymce.html.Node(n,1),"audio"!=n&&"script"!=n&&r.attr({width:i.attr("width"),height:i.attr("height")}),r.attr({style:i.attr("style")}),a=i.attributes,o=a.length;o--;){var d=a[o].name;0===d.indexOf("data-mce-p-")&&r.attr(d.substr(11),a[o].value)}"script"==n&&r.attr("type","text/javascript"),c=i.attr("data-mce-html"),c&&(s=new tinymce.html.Node("#text",3),s.raw=!0,s.value=unescape(c),r.append(s)),i.replace(r)}})}),e.on("ObjectSelected",function(e){var t=e.target.getAttribute("data-mce-object");("audio"==t||"script"==t)&&e.preventDefault()}),e.on("objectResized",function(e){var t,i=e.target;i.getAttribute("data-mce-object")&&(t=i.getAttribute("data-mce-html"),t&&(t=unescape(t),i.setAttribute("data-mce-html",escape(m(t,{width:e.width,height:e.height})))))}),e.addButton("media",{tooltip:"Insert/edit video",onclick:o,stateSelector:["img[data-mce-object=video]","img[data-mce-object=iframe]"]}),e.addMenuItem("media",{icon:"media",text:"Insert video",onclick:o,context:"insert",prependToContext:!0})});tinymce.PluginManager.add("nonbreaking",function(n){var e=n.getParam("nonbreaking_force_tab");if(n.addCommand("mceNonBreaking",function(){n.insertContent(n.plugins.visualchars&&n.plugins.visualchars.state?' ':" "),n.dom.setAttrib(n.dom.select("span.mce-nbsp"),"data-mce-bogus","1")}),n.addButton("nonbreaking",{title:"Insert nonbreaking space",cmd:"mceNonBreaking"}),n.addMenuItem("nonbreaking",{text:"Nonbreaking space",cmd:"mceNonBreaking",context:"insert"}),e){var a=+e>1?+e:3;n.on("keydown",function(e){if(9==e.keyCode){if(e.shiftKey)return;e.preventDefault();for(var t=0;a>t;t++)n.execCommand("mceNonBreaking")}})}});tinymce.PluginManager.add("noneditable",function(e){function t(e){var t;if(1===e.nodeType){if(t=e.getAttribute(u),t&&"inherit"!==t)return t;if(t=e.contentEditable,"inherit"!==t)return t}return null}function n(e){for(var n;e;){if(n=t(e))return"false"===n?e:null;e=e.parentNode}}function r(){function r(e){for(;e;){if(e.id===g)return e;e=e.parentNode}}function a(e){var t;if(e)for(t=new f(e,e),e=t.current();e;e=t.next())if(3===e.nodeType)return e}function i(n,r){var a,i;return"false"===t(n)&&u.isBlock(n)?void s.select(n):(i=u.createRng(),"true"===t(n)&&(n.firstChild||n.appendChild(e.getDoc().createTextNode(" ")),n=n.firstChild,r=!0),a=u.create("span",{id:g,"data-mce-bogus":!0},m),r?n.parentNode.insertBefore(a,n):u.insertAfter(a,n),i.setStart(a.firstChild,1),i.collapse(!0),s.setRng(i),a)}function o(e){var t,n,i,o;if(e)t=s.getRng(!0),t.setStartBefore(e),t.setEndBefore(e),n=a(e),n&&n.nodeValue.charAt(0)==m&&(n=n.deleteData(0,1)),u.remove(e,!0),s.setRng(t);else for(i=r(s.getStart());(e=u.get(g))&&e!==o;)i!==e&&(n=a(e),n&&n.nodeValue.charAt(0)==m&&(n=n.deleteData(0,1)),u.remove(e,!0)),o=e}function l(){function e(e,n){var r,a,i,o,l;if(r=d.startContainer,a=d.startOffset,3==r.nodeType){if(l=r.nodeValue.length,a>0&&l>a||(n?a==l:0===a))return}else{if(!(a0?a-1:a;r=r.childNodes[u],r.hasChildNodes()&&(r=r.firstChild)}for(i=new f(r,e);o=i[n?"prev":"next"]();){if(3===o.nodeType&&o.nodeValue.length>0)return;if("true"===t(o))return o}return e}var r,a,l,d,u;o(),l=s.isCollapsed(),r=n(s.getStart()),a=n(s.getEnd()),(r||a)&&(d=s.getRng(!0),l?(r=r||a,(u=e(r,!0))?i(u,!0):(u=e(r,!1))?i(u,!1):s.select(r)):(d=s.getRng(!0),r&&d.setStartBefore(r),a&&d.setEndAfter(a),s.setRng(d)))}function d(a){function i(e,t){for(;e=e[t?"previousSibling":"nextSibling"];)if(3!==e.nodeType||e.nodeValue.length>0)return e}function d(e,t){s.select(e),s.collapse(t)}function g(a){function i(e){for(var t=d;t;){if(t===e)return;t=t.parentNode}u.remove(e),l()}function o(){var r,o,l=e.schema.getNonEmptyElements();for(o=new tinymce.dom.TreeWalker(d,e.getBody());(r=a?o.prev():o.next())&&!l[r.nodeName.toLowerCase()]&&!(3===r.nodeType&&tinymce.trim(r.nodeValue).length>0);)if("false"===t(r))return i(r),!0;return n(r)?!0:!1}var f,d,c,g;if(s.isCollapsed()){if(f=s.getRng(!0),d=f.startContainer,c=f.startOffset,d=r(d)||d,g=n(d))return i(g),!1;if(3==d.nodeType&&(a?c>0:ch||h>124)&&h!=c.DELETE&&h!=c.BACKSPACE){if((tinymce.isMac?a.metaKey:a.ctrlKey)&&(67==h||88==h||86==h))return;if(a.preventDefault(),h==c.LEFT||h==c.RIGHT){var y=h==c.LEFT;if(e.dom.isBlock(m)){var T=y?m.previousSibling:m.nextSibling,C=new f(T,T),b=y?C.prev():C.next();d(b,!y)}else d(m,y)}}else if(h==c.LEFT||h==c.RIGHT||h==c.BACKSPACE||h==c.DELETE){if(p=r(v)){if(h==c.LEFT||h==c.BACKSPACE)if(m=i(p,!0),m&&"false"===t(m)){if(a.preventDefault(),h!=c.LEFT)return void u.remove(m);d(m,!0)}else o(p);if(h==c.RIGHT||h==c.DELETE)if(m=i(p),m&&"false"===t(m)){if(a.preventDefault(),h!=c.RIGHT)return void u.remove(m);d(m,!1)}else o(p)}if((h==c.BACKSPACE||h==c.DELETE)&&!g(h==c.BACKSPACE))return a.preventDefault(),!1}}var u=e.dom,s=e.selection,g="mce_noneditablecaret",m="";e.on("mousedown",function(n){var r=e.selection.getNode();"false"===t(r)&&r==n.target&&l()}),e.on("mouseup keyup",l),e.on("keydown",d)}function a(t){var n=l.length,r=t.content,a=tinymce.trim(o);if("raw"!=t.format){for(;n--;)r=r.replace(l[n],function(t){var n=arguments,i=n[n.length-2];return i>0&&'"'==r.charAt(i-1)?t:''+e.dom.encode("string"==typeof n[1]?n[1]:n[0])+""});t.content=r}}var i,o,l,f=tinymce.dom.TreeWalker,d="contenteditable",u="data-mce-"+d,c=tinymce.util.VK;i=" "+tinymce.trim(e.getParam("noneditable_editable_class","mceEditable"))+" ",o=" "+tinymce.trim(e.getParam("noneditable_noneditable_class","mceNonEditable"))+" ",l=e.getParam("noneditable_regexp"),l&&!l.length&&(l=[l]),e.on("PreInit",function(){r(),l&&e.on("BeforeSetContent",a),e.parser.addAttributeFilter("class",function(e){for(var t,n,r=e.length;r--;)n=e[r],t=" "+n.attr("class")+" ",-1!==t.indexOf(i)?n.attr(u,"true"):-1!==t.indexOf(o)&&n.attr(u,"false")}),e.serializer.addAttributeFilter(u,function(e){for(var t,n=e.length;n--;)t=e[n],l&&t.attr("data-mce-content")?(t.name="#text",t.type=3,t.raw=!0,t.value=t.attr("data-mce-content")):(t.attr(d,null),t.attr(u,null))}),e.parser.addAttributeFilter(d,function(e){for(var t,n=e.length;n--;)t=e[n],t.attr(u,t.attr(d)),t.attr(d,null)})}),e.on("drop",function(e){n(e.target)&&e.preventDefault()})});tinymce.PluginManager.add("pagebreak",function(e){var a="mce-pagebreak",t=e.getParam("pagebreak_separator",""),n=new RegExp(t.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi"),r='';e.addCommand("mcePageBreak",function(){e.insertContent(e.settings.pagebreak_split_block?"

"+r+"

":r)}),e.addButton("pagebreak",{title:"Page break",cmd:"mcePageBreak"}),e.addMenuItem("pagebreak",{text:"Page break",icon:"pagebreak",cmd:"mcePageBreak",context:"insert"}),e.on("ResolveName",function(t){"IMG"==t.target.nodeName&&e.dom.hasClass(t.target,a)&&(t.name="pagebreak")}),e.on("click",function(t){t=t.target,"IMG"===t.nodeName&&e.dom.hasClass(t,a)&&e.selection.select(t)}),e.on("BeforeSetContent",function(e){e.content=e.content.replace(n,r)}),e.on("PreInit",function(){e.serializer.addNodeFilter("img",function(a){for(var n,r,c=a.length;c--;)if(n=a[c],r=n.attr("class"),r&&-1!==r.indexOf("mce-pagebreak")){var o=n.parent;if(e.schema.getBlockElements()[o.name]&&e.settings.pagebreak_split_block){o.type=3,o.value=t,o.raw=!0,n.remove();continue}n.type=3,n.value=t,n.raw=!0}})})});!function(e,t){"use strict";function n(e,t){for(var n,r=[],i=0;i"),t&&/^(PRE|DIV)$/.test(t.nodeName)||!o?e=n.filter(e,[[/\n/g,"
"]]):(e=n.filter(e,[[/\n\n/g,"

"+a],[/^(.*<\/p>)(

)$/,a+"$1"],[/\n/g,"
"]]),-1!=e.indexOf("

")&&(e=a+e)),i(e)}function a(){var t=r.dom,n=r.getBody(),i=r.dom.getViewPort(r.getWin()),o=i.y,a=20,s;if(v=r.selection.getRng(),r.inline&&(s=r.selection.getScrollContainer(),s&&(o=s.scrollTop)),v.getClientRects){var l=v.getClientRects();if(l.length)a=o+(l[0].top-t.getPos(n).y);else{a=o;var c=v.startContainer;c&&(3==c.nodeType&&c.parentNode!=n&&(c=c.parentNode),1==c.nodeType&&(a=t.getPos(c,s||n).y))}}g=t.add(r.getBody(),"div",{id:"mcepastebin",contentEditable:!0,"data-mce-bogus":"1",style:"position: absolute; top: "+a+"px;width: 10px; height: 10px; overflow: hidden; opacity: 0"},b),(e.ie||e.gecko)&&t.setStyle(g,"left","rtl"==t.getStyle(n,"direction",!0)?65535:-65535),t.bind(g,"beforedeactivate focusin focusout",function(e){e.stopPropagation()}),g.focus(),r.selection.select(g,!0)}function s(){if(g){for(var e;e=r.dom.get("mcepastebin");)r.dom.remove(e),r.dom.unbind(e);v&&r.selection.setRng(v)}C=!1,g=v=null}function l(){var e=b,t,n;for(t=r.dom.select("div[id=mcepastebin]"),n=t.length;n--;){var i=t[n].innerHTML;e==b&&(e=""),i.length>e.length&&(e=i)}return e}function c(e){var t={};if(e&&e.types){var n=e.getData("Text");n&&n.length>0&&(t["text/plain"]=n);for(var r=0;r')},t.readAsDataURL(e.getAsFile()),!0}}if(!(!r.settings.paste_data_images||"text/html"in t||"text/plain"in t)&&e.clipboardData){var o=e.clipboardData.items;if(o)for(var a=0;a0}function m(){r.on("keydown",function(n){if(!n.isDefaultPrevented()&&(t.metaKeyPressed(n)&&86==n.keyCode||n.shiftKey&&45==n.keyCode)){if(C=n.shiftKey&&86==n.keyCode,n.stopImmediatePropagation(),y=(new Date).getTime(),e.ie&&C)return n.preventDefault(),void r.fire("paste",{ieFake:!0});s(),a()}}),r.on("paste",function(t){var c=d(t),f=(new Date).getTime()-y<1e3,m="text"==h.pasteFormat||C;return t.isDefaultPrevented()?void s():u(t,c)?void s():(f||t.preventDefault(),!e.ie||f&&!t.ieFake||(a(),r.dom.bind(g,"paste",function(e){e.stopPropagation()}),r.getDoc().execCommand("Paste",!1,null),c["text/html"]=l()),void setTimeout(function(){var e=l();return g&&g.firstChild&&"mcepastebin"===g.firstChild.id&&(m=!0),s(),!m&&f&&e&&e!=b&&(c["text/html"]=e),e!=b&&f||(e=c["text/html"]||c["text/plain"]||b,e!=b)?(!p(c,"text/html")&&p(c,"text/plain")&&(m=!0),void(m?o(c["text/plain"]||n.innerText(e)):i(e))):void(f||r.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."))},0))}),r.on("dragstart",function(e){if(e.dataTransfer.types)try{e.dataTransfer.setData("mce-internal",r.selection.getContent())}catch(t){}}),r.on("drop",function(e){var t=f(e);if(t&&!e.isDefaultPrevented()){var n=c(e.dataTransfer),a=n["mce-internal"]||n["text/html"]||n["text/plain"];a&&(e.preventDefault(),r.undoManager.transact(function(){n["mce-internal"]&&r.execCommand("Delete"),r.selection.setRng(t),n["text/html"]?i(a):o(a)}))}})}var h=this,g,v,y=0,b="%MCEPASTEBIN%",C;h.pasteHtml=i,h.pasteText=o,r.on("preInit",function(){m(),r.parser.addNodeFilter("img",function(t){if(!r.settings.paste_data_images)for(var n=t.length;n--;){var i=t[n].attributes.map.src;i&&0===i.indexOf("data:image")&&(t[n].attr("data-mce-object")||i===e.transparentSrc||t[n].remove())}})}),r.on("PreProcess",function(){r.dom.remove(r.dom.get("mcepastebin"))})}}),r(h,[c,d,u,g,v,l],function(e,t,n,r,i,o){function a(e){return/l?n&&(n=n.parent.parent):(r=n,n=null)),n&&n.name==a?n.append(e):(r=r||n,n=new i(a,1),s>1&&n.attr("start",""+s),e.wrap(n)),e.name="li",t.value="";var c=t.next;c&&3==c.type&&(c.value=c.value.replace(/^\u00a0+/,"")),l>o&&r&&r.lastChild.append(n),o=l}for(var n,r,o=1,a=e.getAll("p"),s=0;s/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,"\xa0"],[/([\s\u00a0]*)<\/span>/gi,function(e,t){return t.length>0?t.replace(/./," ").slice(Math.floor(t.length/2)).split("").join("\xa0"):""}]]);var h=l.paste_word_valid_elements;h||(h="@[style],-strong/b,-em/i,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-table[width],-tr,-td[colspan|rowspan|width],-th,-thead,-tfoot,-tbody,-a[href|name],sub,sup,strike,br");var g=new n({valid_elements:h}),v=new t({},g);v.addAttributeFilter("style",function(e){for(var t=e.length,n;t--;)n=e[t],n.attr("style",u(n,n.attr("style"))),"span"!=n.name||n.attributes.length||n.unwrap()}),v.addNodeFilter("a",function(e){for(var t=e.length,n,r,i;t--;)n=e[t],r=n.attr("href"),i=n.attr("name"),r&&0===r.indexOf("file://")&&(r=r.split("#")[1],r&&(r="#"+r)),r||i?n.attr({href:r,name:i}):n.unwrap()});var y=v.parse(f);d(y),c.content=new r({},g).serialize(y)}})}return s.isWordContent=a,s}),r(y,[p,c,h,l],function(e,t,n,r){return function(i){function o(e){i.on("BeforePastePreProcess",function(t){t.content=e(t.content)})}function a(e){return e=r.filter(e,[/^[\s\S]*|[\s\S]*$/g,[/\u00a0<\/span>/g,"\xa0"],/
$/i])}function s(e){if(!n.isWordContent(e))return e;var o=[];t.each(i.schema.getBlockElements(),function(e,t){o.push(t)});var a=new RegExp("(?:
 [\\s\\r\\n]+|
)*(<\\/?("+o.join("|")+")[^>]*>)(?:
 [\\s\\r\\n]+|
)*","g");return e=r.filter(e,[[a,"$1"]]),e=r.filter(e,[[/

/g,"

"],[/
/g," "],[/

/g,"
"]])}function l(e){if(n.isWordContent(e))return e;var t=i.getParam("paste_webkit_styles","color font-size font-family background-color").split(/[, ]/);if(i.settings.paste_remove_styles_if_webkit===!1&&(t="all"),"all"!=t){var r=i.dom,o=i.selection.getNode();e=e.replace(/ style=\"([^\"]+)\"/gi,function(e,n){var i=r.parseStyle(n,"span"),a={};if("none"===t)return"";for(var s=0;s0&&e.preventDefault()}),e.addButton("pastetext",{icon:"pastetext",tooltip:"Paste as text",onclick:o,active:"text"==a.clipboard.pasteFormat}),e.addMenuItem("pastetext",{text:"Paste as text",selectable:!0,active:s.pasteFormat,onclick:o})})}),a([l,f,h,y,b])}(this);tinymce.PluginManager.add("preview",function(e){var t=e.settings;e.addCommand("mcePreview",function(){e.windowManager.open({title:"Preview",width:parseInt(e.getParam("plugin_preview_width","650"),10),height:parseInt(e.getParam("plugin_preview_height","500"),10),html:'',buttons:{text:"Close",onclick:function(){this.parent().parent().close()}},onPostRender:function(){var i,n=this.getEl("body").firstChild.contentWindow.document,a="";e.settings.document_base_url!=e.documentBaseUrl&&(a+=''),tinymce.each(e.contentCSS,function(t){a+=''});var r=t.body_id||"tinymce";-1!=r.indexOf("=")&&(r=e.getParam("body_id","","hash"),r=r[e.id]||r);var d=t.body_class||"";-1!=d.indexOf("=")&&(d=e.getParam("body_class","","hash"),d=d[e.id]||"");var o=e.settings.directionality?' dir="'+e.settings.directionality+'"':"";i=""+a+'"+e.getContent()+"",n.open(),n.write(i),n.close()}})}),e.addButton("preview",{title:"Preview",cmd:"mcePreview"}),e.addMenuItem("preview",{text:"Preview",cmd:"mcePreview",context:"view"})});tinymce.PluginManager.add("print",function(t){t.addCommand("mcePrint",function(){t.getWin().print()}),t.addButton("print",{title:"Print",cmd:"mcePrint"}),t.addShortcut("Ctrl+P","","mcePrint"),t.addMenuItem("print",{text:"Print",cmd:"mcePrint",icon:"print",shortcut:"Ctrl+P",context:"file"})});tinymce.PluginManager.add("save",function(e){function a(){var a;return a=tinymce.DOM.getParent(e.id,"form"),!e.getParam("save_enablewhendirty",!0)||e.isDirty()?(tinymce.triggerSave(),e.getParam("save_onsavecallback")?void(e.execCallback("save_onsavecallback",e)&&(e.startContent=tinymce.trim(e.getContent({format:"raw"})),e.nodeChanged())):void(a?(e.isNotDirty=!0,(!a.onsubmit||a.onsubmit())&&("function"==typeof a.submit?a.submit():e.windowManager.alert("Error: Form submit field collision.")),e.nodeChanged()):e.windowManager.alert("Error: No form element found."))):void 0}function n(){var a=tinymce.trim(e.startContent);return e.getParam("save_oncancelcallback")?void e.execCallback("save_oncancelcallback",e):(e.setContent(a),e.undoManager.clear(),void e.nodeChanged())}function t(){var a=this;e.on("nodeChange",function(){a.disabled(e.getParam("save_enablewhendirty",!0)&&!e.isDirty())})}e.addCommand("mceSave",a),e.addCommand("mceCancel",n),e.addButton("save",{icon:"save",text:"Save",cmd:"mceSave",disabled:!0,onPostRender:t}),e.addButton("cancel",{text:"Cancel",icon:!1,cmd:"mceCancel",disabled:!0,onPostRender:t}),e.addShortcut("ctrl+s","","mceSave")});!function(){function e(e,t,n,a,r){function i(e,t){if(t=t||0,!e[0])throw"findAndReplaceDOMText cannot handle zero-length matches";var n=e.index;if(t>0){var a=e[t];if(!a)throw"Invalid capture group";n+=e[0].indexOf(a),e[0]=a}return[n,n+e[0].length,[e[0]]]}function d(e){var t;if(3===e.nodeType)return e.data;if(h[e.nodeName]&&!u[e.nodeName])return"";if(t="",(u[e.nodeName]||m[e.nodeName])&&(t+="\n"),e=e.firstChild)do t+=d(e);while(e=e.nextSibling);return t}function o(e,t,n){var a,r,i,d,o=[],l=0,c=e,s=t.shift(),f=0;e:for(;;){if((u[c.nodeName]||m[c.nodeName])&&l++,3===c.nodeType&&(!r&&c.length+l>=s[1]?(r=c,d=s[1]-l):a&&o.push(c),!a&&c.length+l>s[0]&&(a=c,i=s[0]-l),l+=c.length),a&&r){if(c=n({startNode:a,startNodeIndex:i,endNode:r,endNodeIndex:d,innerNodes:o,match:s[2],matchIndex:f}),l-=r.length-d,a=null,r=null,o=[],s=t.shift(),f++,!s)break}else{if((!h[c.nodeName]||u[c.nodeName])&&c.firstChild){c=c.firstChild;continue}if(c.nextSibling){c=c.nextSibling;continue}}for(;;){if(c.nextSibling){c=c.nextSibling;break}if(c.parentNode===e)break e;c=c.parentNode}}}function l(e){var t;if("function"!=typeof e){var n=e.nodeType?e:f.createElement(e);t=function(e,t){var a=n.cloneNode(!1);return a.setAttribute("data-mce-index",t),e&&a.appendChild(f.createTextNode(e)),a}}else t=e;return function(e){var n,a,r,i=e.startNode,d=e.endNode,o=e.matchIndex;if(i===d){var l=i;r=l.parentNode,e.startNodeIndex>0&&(n=f.createTextNode(l.data.substring(0,e.startNodeIndex)),r.insertBefore(n,l));var c=t(e.match[0],o);return r.insertBefore(c,l),e.endNodeIndexh;++h){var g=e.innerNodes[h],p=t(g.data,o);g.parentNode.replaceChild(p,g),u.push(p)}var x=t(d.data.substring(0,e.endNodeIndex),o);return r=i.parentNode,r.insertBefore(n,i),r.insertBefore(s,i),r.removeChild(i),r=d.parentNode,r.insertBefore(x,d),r.insertBefore(a,d),r.removeChild(d),x}}var c,s,f,u,h,m,g=[],p=0;if(f=t.ownerDocument,u=r.getBlockElements(),h=r.getWhiteSpaceElements(),m=r.getShortEndedElements(),s=d(t)){if(e.global)for(;c=e.exec(s);)g.push(i(c,a));else c=s.match(e),g.push(i(c,a));return g.length&&(p=g.length,o(t,g,l(n))),p}}function t(t){function n(){function e(){r.statusbar.find("#next").disabled(!d(s+1).length),r.statusbar.find("#prev").disabled(!d(s-1).length)}function n(){tinymce.ui.MessageBox.alert("Could not find the specified string.",function(){r.find("#find")[0].focus()})}var a={},r=tinymce.ui.Factory.create({type:"window",layout:"flex",pack:"center",align:"center",onClose:function(){t.focus(),c.done()},onSubmit:function(t){var i,o,l,f;return t.preventDefault(),o=r.find("#case").checked(),f=r.find("#words").checked(),l=r.find("#find").value(),l.length?a.text==l&&a.caseState==o&&a.wholeWord==f?0===d(s+1).length?void n():(c.next(),void e()):(i=c.find(l,o,f),i||n(),r.statusbar.items().slice(1).disabled(0===i),e(),void(a={text:l,caseState:o,wholeWord:f})):(c.done(!1),void r.statusbar.items().slice(1).disabled(!0))},buttons:[{text:"Find",onclick:function(){r.submit()}},{text:"Replace",disabled:!0,onclick:function(){c.replace(r.find("#replace").value())||(r.statusbar.items().slice(1).disabled(!0),s=-1,a={})}},{text:"Replace all",disabled:!0,onclick:function(){c.replace(r.find("#replace").value(),!0,!0),r.statusbar.items().slice(1).disabled(!0),a={}}},{type:"spacer",flex:1},{text:"Prev",name:"prev",disabled:!0,onclick:function(){c.prev(),e()}},{text:"Next",name:"next",disabled:!0,onclick:function(){c.next(),e()}}],title:"Find and replace",items:{type:"form",padding:20,labelGap:30,spacing:10,items:[{type:"textbox",name:"find",size:40,label:"Find",value:t.selection.getNode().src},{type:"textbox",name:"replace",size:40,label:"Replace with"},{type:"checkbox",name:"case",text:"Match case",label:" "},{type:"checkbox",name:"words",text:"Whole words",label:" "}]}}).renderTo().reflow()}function a(e){var t=e.getAttribute("data-mce-index");return"number"==typeof t?""+t:t}function r(n){var a,r;return r=t.dom.create("span",{"data-mce-bogus":1}),r.className="mce-match-marker",a=t.getBody(),c.done(!1),e(n,a,r,!1,t.schema)}function i(e){var t=e.parentNode;e.firstChild&&t.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)}function d(e){var n,r=[];if(n=tinymce.toArray(t.getBody().getElementsByTagName("span")),n.length)for(var i=0;is&&f[o].setAttribute("data-mce-index",m-1)}return t.undoManager.add(),s=p,n?(g=d(p+1).length>0,c.next()):(g=d(p-1).length>0,c.prev()),!r&&g},c.done=function(e){var n,r,d,o;for(r=tinymce.toArray(t.getBody().getElementsByTagName("span")),n=0;n=d.end?(r=c,a=d.end-s):o&&l.push(c),!o&&c.length+s>d.start&&(o=c,i=d.start-s),s+=c.length),o&&r){if(c=n({startNode:o,startNodeIndex:i,endNode:r,endNodeIndex:a,innerNodes:l,match:d.text,matchIndex:u}),s-=r.length-a,o=null,r=null,l=[],d=t.shift(),u++,!d)break}else{if((!S[c.nodeName]||N[c.nodeName])&&c.firstChild){c=c.firstChild;continue}if(c.nextSibling){c=c.nextSibling;continue}}for(;;){if(c.nextSibling){c=c.nextSibling;break}if(c.parentNode===e)break e;c=c.parentNode}}}function i(e){function t(t,n){var o=w[n];o.stencil||(o.stencil=e(o));var r=o.stencil.cloneNode(!1);return r.setAttribute("data-mce-index",n),t&&r.appendChild(P.doc.createTextNode(t)),r}return function(e){var n,o,r,i=e.startNode,a=e.endNode,l=e.matchIndex,s=P.doc;if(i===a){var c=i;r=c.parentNode,e.startNodeIndex>0&&(n=s.createTextNode(c.data.substring(0,e.startNodeIndex)),r.insertBefore(n,c));var d=t(e.match,l);return r.insertBefore(d,c),e.endNodeIndexm;++m){var g=e.innerNodes[m],h=t(g.data,l);g.parentNode.replaceChild(h,g),f.push(h)}var v=t(a.data.substring(0,e.endNodeIndex),l);return r=i.parentNode,r.insertBefore(n,i),r.insertBefore(u,i),r.removeChild(i),r=a.parentNode,r.insertBefore(v,a),r.insertBefore(o,a),r.removeChild(a),v}}function a(e){var t=e.parentNode;t.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)}function l(t){var n=e.getElementsByTagName("*"),o=[];t="number"==typeof t?""+t:null;for(var r=0;rt&&e(w[t],t)!==!1;t++);return this}function u(t){return w.length&&r(e,w,i(t)),this}function f(e,t){if(C&&e.global)for(;x=e.exec(C);)w.push(n(x,t));return this}function m(e){var t,n=l(e?s(e):null);for(t=n.length;t--;)a(n[t]);return this}function p(e){return w[e.getAttribute("data-mce-index")]}function g(e){return l(s(e))[0]}function h(e,t,n){return w.push({start:e,end:e+t,text:C.substr(e,t),data:n}),this}function v(e){var n=l(s(e)),o=t.dom.createRng();return o.setStartBefore(n[0]),o.setEndAfter(n[n.length-1]),o}function b(e,n){var o=v(e);return o.deleteContents(),n.length>0&&o.insertNode(t.dom.doc.createTextNode(n)),o}function y(){return w.splice(0,w.length),m(),this}var x,w=[],C,P=t.dom,N,S,k;return N=t.schema.getBlockElements(),S=t.schema.getWhiteSpaceElements(),k=t.schema.getShortEndedElements(),C=o(e),{text:C,matches:w,each:d,filter:c,reset:y,matchFromElement:p,elementFromMatch:g,find:f,add:h,wrap:u,unwrap:m,replace:b,rangeFromMatch:v,indexOf:s}}}),o(c,[s,d,u,f,m,p,g],function(e,t,n,o,r,i,a){t.add("spellchecker",function(t,l){function s(){return b.textMatcher||(b.textMatcher=new e(t.getBody(),t)),b.textMatcher}function c(e,t){var o=[];return n.each(t,function(e){o.push({selectable:!0,text:e.name,data:e.value})}),o}function d(e){for(var t in e)return!1;return!0}function u(e){var i=[],a=y[e.text];n.each(a,function(n){i.push({text:n,onclick:function(){var o=s().replace(e,n);o.collapse(!1),t.selection.setRng(o),m()}})}),i.push.apply(i,[{text:"-"},{text:"Ignore",onclick:function(){p(e)}},{text:"Ignore all",onclick:function(){p(e,!0)}},{text:"Finish",onclick:g}]),w=new o({items:i,context:"contextmenu",onautohide:function(e){-1!=e.target.className.indexOf("spellchecker")&&e.preventDefault()},onhide:function(){w.remove(),w=null}}),w.renderTo(document.body);var l=s().elementFromMatch(e),c=r.DOM.getPos(t.getContentAreaContainer()),d=t.dom.getPos(l),u=t.dom.getRoot();"BODY"==u.nodeName?(d.x-=u.ownerDocument.documentElement.scrollLeft||u.scrollLeft,d.y-=u.ownerDocument.documentElement.scrollTop||u.scrollTop):(d.x-=u.scrollLeft,d.y-=u.scrollTop),c.x+=d.x,c.y+=d.y,w.moveTo(c.x,c.y+l.offsetHeight)}function f(){function e(e){return t.setProgressState(!1),d(e)?(t.windowManager.alert("No misspellings found"),void(x=!1)):(y=e,s().filter(function(t){return!!e[t.text]}).wrap(function(){return t.dom.create("span",{"class":"mce-spellchecker-word","data-mce-bogus":1})}),void t.fire("SpellcheckStart"))}function n(e,n,o){i.sendRPC({url:new a(l).toAbsolute(C.spellchecker_rpc_url),method:e,params:{lang:C.spellchecker_language||"en",words:n},success:function(e){o(e)},error:function(e,n){e="JSON Parse error."==e?"Non JSON response:"+n.responseText:"Error: "+e,t.windowManager.alert(e),t.setProgressState(!1),g()}})}var o=[],r={};if(x)return void g();g(),x=!0;var c=t.getParam("spellchecker_wordchar_pattern")||new RegExp('[^\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`\xa7\xa9\xab\xae\xb1\xb6\xb7\xb8\xbb\xbc\xbd\xbe\xbf\xd7\xf7\xa4\u201d\u201c\u201e]+',"g");s().find(c).each(function(e){var t=e.text;if(!r[t]){if(/^\d+$/.test(t)||1==t.length)return;o.push(t),r[t]=!0}}),t.setProgressState(!0);var u=C.spellchecker_callback||n;u("spellcheck",o,e),t.focus()}function m(){t.dom.select("span.mce-spellchecker-word").length||g()}function p(e,n){t.selection.collapse(),n?s().each(function(t){t.text==e.text&&s().unwrap(t)}):s().unwrap(e),m()}function g(){s().reset(),b.textMatcher=null,x&&(x=!1,t.fire("SpellcheckEnd"))}function h(e){var t=C.spellchecker_language;e.control.items().each(function(e){e.active(e.settings.data===t)})}var v,b=this,y,x,w,C=t.settings,P=C.spellchecker_languages||"English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr_FR,German=de,Italian=it,Polish=pl,Portuguese=pt_BR,Spanish=es,Swedish=sv";v=c("Language",n.map(P.split(","),function(e){var t=e.split("=");return{name:t[0],value:t[1]}})),t.on("click",function(e){if("mce-spellchecker-word"==e.target.className){e.preventDefault();var n=s().matchFromElement(e.target);t.selection.setRng(s().rangeFromMatch(n)),u(n)}}),t.addMenuItem("spellchecker",{text:"Spellcheck",context:"tools",onclick:f,selectable:!0,onPostRender:function(){var e=this;t.on("SpellcheckStart SpellcheckEnd",function(){e.active(x)})}});var N={tooltip:"Spellcheck",onclick:f,onPostRender:function(){var e=this;t.on("SpellcheckStart SpellcheckEnd",function(){e.active(x)})}};v.length>1&&(N.type="splitbutton",N.menu=v,N.onshow=h,N.onselect=function(e){C.spellchecker_language=e.control.settings.data}),t.addButton("spellchecker",N),t.addCommand("mceSpellCheck",f),t.on("remove",function(){w&&(w.remove(),w=null)}),this.getTextMatcher=s,C.spellchecker_language=C.spellchecker_language||C.language||"en"})}),a([s,c])}(this);tinymce.PluginManager.add("tabfocus",function(e){function n(e){9!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()}function t(n){function t(n){function t(e){return"BODY"===e.nodeName||"hidden"!=e.type&&"none"!=e.style.display&&"hidden"!=e.style.visibility&&t(e.parentNode)}function r(e){return e.tabIndex||"INPUT"==e.nodeName||"TEXTAREA"==e.nodeName}function c(e){return!r(e)&&"-1"!=e.getAttribute("tabindex")&&t(e)}if(u=i.select(":input:enabled,*[tabindex]:not(iframe)"),o(u,function(n,t){return n.id==e.id?(a=t,!1):void 0}),n>0){for(d=a+1;d=0;d--)if(c(u[d]))return u[d];return null}var a,u,c,d;if(!(9!==n.keyCode||n.ctrlKey||n.altKey||n.metaKey)&&(c=r(e.getParam("tab_focus",e.getParam("tabfocus_elements",":prev,:next"))),1==c.length&&(c[1]=c[0],c[0]=":prev"),u=n.shiftKey?":prev"==c[0]?t(-1):i.get(c[0]):":next"==c[1]?t(1):i.get(c[1]))){var y=tinymce.get(u.id||u.name);u.id&&y?y.focus():window.setTimeout(function(){tinymce.Env.webkit||window.focus(),u.focus()},10),n.preventDefault()}}var i=tinymce.DOM,o=tinymce.each,r=tinymce.explode;e.on("init",function(){e.inline&&tinymce.DOM.setAttrib(e.getBody(),"tabIndex",null)}),e.on("keyup",n),tinymce.Env.gecko?e.on("keypress keydown",t):e.on("keydown",t)});!function(e,t){"use strict";function n(e,t){for(var n,o=[],i=0;i "+t+" tr",a);i(n,function(n,r){r+=e,i(I.select("> td, > th",n),function(e,n){var i,a,l,s;if(A[r])for(;A[r][n];)n++;for(l=o(e,"rowspan"),s=o(e,"colspan"),a=r;r+l>a;a++)for(A[a]||(A[a]=[]),i=n;n+s>i;i++)A[a][i]={part:t,real:a==r&&i==n,elm:e,rowspan:l,colspan:s}})}),e+=n.length})}function s(e,t){return e=e.cloneNode(t),e.removeAttribute("id"),e}function c(e,t){var n;return n=A[t],n?n[e]:void 0}function d(e,t,n){e&&(n=parseInt(n,10),1===n?e.removeAttribute(t,1):e.setAttribute(t,n,1))}function u(e){return e&&(I.hasClass(e.elm,"mce-item-selected")||e==M)}function f(){var e=[];return i(a.rows,function(t){i(t.cells,function(n){return I.hasClass(n,"mce-item-selected")||M&&n==M.elm?(e.push(t),!1):void 0})}),e}function m(){var e=I.createRng();e.setStartAfter(a),e.setEndAfter(a),E.setRng(e),I.remove(a)}function p(t){var o,a={};return r.settings.table_clone_elements!==!1&&(a=e.makeMap((r.settings.table_clone_elements||"strong em b i span font h1 h2 h3 h4 h5 h6 p div").toUpperCase(),/[ ,]/)),e.walk(t,function(e){var r;return 3==e.nodeType?(i(I.getParents(e.parentNode,null,t).reverse(),function(e){a[e.nodeName]&&(e=s(e,!1),o?r&&r.appendChild(e):o=r=e,r=e)}),r&&(r.innerHTML=n.ie?" ":'
'),!1):void 0},"childNodes"),t=s(t,!1),d(t,"rowSpan",1),d(t,"colSpan",1),o?t.appendChild(o):n.ie||(t.innerHTML='
'),t}function g(){var e=I.createRng(),t;return i(I.select("tr",a),function(e){0===e.cells.length&&I.remove(e)}),0===I.select("tr",a).length?(e.setStartBefore(a),e.setEndBefore(a),E.setRng(e),void I.remove(a)):(i(I.select("thead,tbody,tfoot",a),function(e){0===e.rows.length&&I.remove(e)}),l(),void(B&&(t=A[Math.min(A.length-1,B.y)],t&&(E.select(t[Math.min(t.length-1,B.x)].elm,!0),E.collapse(!0)))))}function h(e,t,n,o){var i,r,a,l,s;for(i=A[t][e].elm.parentNode,a=1;n>=a;a++)if(i=I.getNext(i,"tr")){for(r=e;r>=0;r--)if(s=A[t+a][r].elm,s.parentNode==i){for(l=1;o>=l;l++)I.insertAfter(p(s),s);break}if(-1==r)for(l=1;o>=l;l++)i.insertBefore(p(i.cells[0]),i.cells[0])}}function b(){i(A,function(e,t){i(e,function(e,n){var i,r,a;if(u(e)&&(e=e.elm,i=o(e,"colspan"),r=o(e,"rowspan"),i>1||r>1)){for(d(e,"rowSpan",1),d(e,"colSpan",1),a=0;i-1>a;a++)I.insertAfter(p(e),e);h(n,t,r-1,i)}})})}function v(t,n,o){var r,a,s,f,m,p,h,v,y,w,x;if(t?(r=T(t),a=r.x,s=r.y,f=a+(n-1),m=s+(o-1)):(B=D=null,i(A,function(e,t){i(e,function(e,n){u(e)&&(B||(B={x:n,y:t}),D={x:n,y:t})})}),B&&(a=B.x,s=B.y,f=D.x,m=D.y)),v=c(a,s),y=c(f,m),v&&y&&v.part==y.part){for(b(),l(),v=c(a,s).elm,d(v,"colSpan",f-a+1),d(v,"rowSpan",m-s+1),h=s;m>=h;h++)for(p=a;f>=p;p++)A[h]&&A[h][p]&&(t=A[h][p].elm,t!=v&&(w=e.grep(t.childNodes),i(w,function(e){v.appendChild(e)}),w.length&&(w=e.grep(v.childNodes),x=0,i(w,function(e){"BR"==e.nodeName&&I.getAttrib(e,"data-mce-bogus")&&x++0&&A[n-1][l]&&(g=A[n-1][l].elm,h=o(g,"rowSpan"),h>1)){d(g,"rowSpan",h+1);continue}}else if(h=o(r,"rowspan"),h>1){d(r,"rowSpan",h+1);continue}m=p(r),d(m,"colSpan",r.colSpan),f.appendChild(m),a=r}f.hasChildNodes()&&(e?c.parentNode.insertBefore(f,c):I.insertAfter(f,c))}}function w(e){var t,n;i(A,function(n){return i(n,function(n,o){return u(n)&&(t=o,e)?!1:void 0}),e?!t:void 0}),i(A,function(i,r){var a,l,s;i[t]&&(a=i[t].elm,a!=n&&(s=o(a,"colspan"),l=o(a,"rowspan"),1==s?e?(a.parentNode.insertBefore(p(a),a),h(t,r,l-1,s)):(I.insertAfter(p(a),a),h(t,r,l-1,s)):d(a,"colSpan",a.colSpan+1),n=a))})}function x(){var t=[];i(A,function(n){i(n,function(n,r){u(n)&&-1===e.inArray(t,r)&&(i(A,function(e){var t=e[r].elm,n;n=o(t,"colSpan"),n>1?d(t,"colSpan",n-1):I.remove(t)}),t.push(r))})}),g()}function C(){function e(e){var t,n,r;t=I.getNext(e,"tr"),i(e.cells,function(e){var t=o(e,"rowSpan");t>1&&(d(e,"rowSpan",t-1),n=T(e),h(n.x,n.y,1,1))}),n=T(e.cells[0]),i(A[n.y],function(e){var t;e=e.elm,e!=r&&(t=o(e,"rowSpan"),1>=t?I.remove(e):d(e,"rowSpan",t-1),r=e)})}var t;t=f(),i(t.reverse(),function(t){e(t)}),g()}function P(){var e=f();return I.remove(e),g(),e}function R(){var e=f();return i(e,function(t,n){e[n]=s(t,!0)}),e}function S(e,t){var n=f(),o=n[t?0:n.length-1],r=o.cells.length;e&&(i(A,function(e){var t;return r=0,i(e,function(e){e.real&&(r+=e.colspan),e.elm.parentNode==o&&(t=1)}),t?!1:void 0}),t||e.reverse(),i(e,function(e){var n,i=e.cells.length,a;for(n=0;i>n;n++)a=e.cells[n],d(a,"colSpan",1),d(a,"rowSpan",1);for(n=i;r>n;n++)e.appendChild(p(e.cells[i-1]));for(n=r;i>n;n++)I.remove(e.cells[n]);t?o.parentNode.insertBefore(e,o):I.insertAfter(e,o)}),I.removeClass(I.select("td.mce-item-selected,th.mce-item-selected"),"mce-item-selected"))}function T(e){var t;return i(A,function(n,o){return i(n,function(n,i){return n.elm==e?(t={x:i,y:o},!1):void 0}),!t}),t}function k(e){B=T(e)}function N(){var e,t;return e=t=0,i(A,function(n,o){i(n,function(n,i){var r,a;u(n)&&(n=A[o][i],i>e&&(e=i),o>t&&(t=o),n.real&&(r=n.colspan-1,a=n.rowspan-1,r&&i+r>e&&(e=i+r),a&&o+a>t&&(t=o+a)))})}),{x:e,y:t}}function _(e){var t,n,o,i,r,a,l,s,c,d;if(D=T(e),B&&D){for(t=Math.min(B.x,D.x),n=Math.min(B.y,D.y),o=Math.max(B.x,D.x),i=Math.max(B.y,D.y),r=o,a=i,d=n;a>=d;d++)e=A[d][t],e.real||t-(e.colspan-1)=c;c++)e=A[n][c],e.real||n-(e.rowspan-1)=d;d++)for(c=t;o>=c;c++)e=A[d][c],e.real&&(l=e.colspan-1,s=e.rowspan-1,l&&c+l>r&&(r=c+l),s&&d+s>a&&(a=d+s));for(I.removeClass(I.select("td.mce-item-selected,th.mce-item-selected"),"mce-item-selected"),d=n;a>=d;d++)for(c=t;r>=c;c++)A[d][c]&&I.addClass(A[d][c].elm,"mce-item-selected")}}var A,B,D,M,E=r.selection,I=E.dom;a=a||I.getParent(E.getStart(),"table"),l(),M=I.getParent(E.getStart(),"th,td"),M&&(B=T(M),D=N(),M=c(B.x,B.y)),e.extend(this,{deleteTable:m,split:b,merge:v,insertRow:y,insertCol:w,deleteCols:x,deleteRows:C,cutRows:P,copyRows:R,pasteRows:S,getPos:T,setStartCell:k,setEndCell:_})}}),o(u,[f,d,c],function(e,t,n){function o(e,t){return parseInt(e.getAttribute(t)||1,10)}var i=n.each;return function(n){function r(){function t(t){function r(e,o){var i=e?"previousSibling":"nextSibling",r=n.dom.getParent(o,"tr"),l=r[i];if(l)return h(n,o,l,e),t.preventDefault(),!0;var d=n.dom.getParent(r,"table"),u=r.parentNode,f=u.nodeName.toLowerCase();if("tbody"===f||f===(e?"tfoot":"thead")){var m=a(e,d,u,"tbody");if(null!==m)return s(e,m,o)}return c(e,r,i,d)}function a(e,t,o,i){var r=n.dom.select(">"+i,t),a=r.indexOf(o);if(e&&0===a||!e&&a===r.length-1)return l(e,t);if(-1===a){var s="thead"===o.tagName.toLowerCase()?0:r.length-1;return r[s]}return r[a+(e?-1:1)]}function l(e,t){var o=e?"thead":"tfoot",i=n.dom.select(">"+o,t);return 0!==i.length?i[0]:null}function s(e,o,i){var r=d(o,e);return r&&h(n,i,r,e),t.preventDefault(),!0}function c(e,o,i,a){var l=a[i];if(l)return u(l),!0;var s=n.dom.getParent(a,"td,th");if(s)return r(e,s,t);var c=d(o,!e);return u(c),t.preventDefault(),!1}function d(e,t){var o=e&&e[t?"lastChild":"firstChild"];return o&&"BR"===o.nodeName?n.dom.getParent(o,"td,th"):o}function u(e){n.selection.setCursorLocation(e,0)}function f(){return y==e.UP||y==e.DOWN}function m(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"tr");return null!==n}function p(e){for(var t=0,n=e;n.previousSibling;)n=n.previousSibling,t+=o(n,"colspan");return t}function g(e,t){var n=0,r=0;return i(e.children,function(e,i){return n+=o(e,"colspan"),r=i,n>t?!1:void 0}),r}function h(e,t,o,i){var r=p(n.dom.getParent(t,"td,th")),a=g(o,r),l=o.childNodes[a],s=d(l,i);u(s||l)}function b(e){var t=n.selection.getNode(),o=n.dom.getParent(t,"td,th"),i=n.dom.getParent(e,"td,th");return o&&o!==i&&v(o,i)}function v(e,t){return n.dom.getParent(e,"TABLE")===n.dom.getParent(t,"TABLE")}var y=t.keyCode;if(f()&&m(n)){var w=n.selection.getNode();setTimeout(function(){b(w)&&r(!t.shiftKey&&y===e.UP,w,t)},0)}}n.on("KeyDown",function(e){t(e)})}function a(){function e(e,t){var n=t.ownerDocument,o=n.createRange(),i;return o.setStartBefore(t),o.setEnd(e.endContainer,e.endOffset),i=n.createElement("body"),i.appendChild(o.cloneContents()),0===i.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length}n.on("KeyDown",function(t){var o,i,r=n.dom;(37==t.keyCode||38==t.keyCode)&&(o=n.selection.getRng(),i=r.getParent(o.startContainer,"table"),i&&n.getBody().firstChild==i&&e(o,i)&&(o=r.createRng(),o.setStartBefore(i),o.setEndBefore(i),n.selection.setRng(o),t.preventDefault()))})}function l(){n.on("KeyDown SetContent VisualAid",function(){var e;for(e=n.getBody().lastChild;e;e=e.previousSibling)if(3==e.nodeType){if(e.nodeValue.length>0)break}else if(1==e.nodeType&&!e.getAttribute("data-mce-bogus"))break;e&&"TABLE"==e.nodeName&&(n.settings.forced_root_block?n.dom.add(n.getBody(),n.settings.forced_root_block,n.settings.forced_root_block_attrs,t.ie&&t.ie<11?" ":'
'):n.dom.add(n.getBody(),"br",{"data-mce-bogus":"1"}))}),n.on("PreProcess",function(e){var t=e.node.lastChild;t&&("BR"==t.nodeName||1==t.childNodes.length&&("BR"==t.firstChild.nodeName||"\xa0"==t.firstChild.nodeValue))&&t.previousSibling&&"TABLE"==t.previousSibling.nodeName&&n.dom.remove(t)})}function s(){function e(e,t,n,o){var i=3,r=e.dom.getParent(t.startContainer,"TABLE"),a,l,s;return r&&(a=r.parentNode),l=t.startContainer.nodeType==i&&0===t.startOffset&&0===t.endOffset&&o&&("TR"==n.nodeName||n==a),s=("TD"==n.nodeName||"TH"==n.nodeName)&&!o,l||s}function t(){var t=n.selection.getRng(),o=n.selection.getNode(),i=n.dom.getParent(t.startContainer,"TD,TH");if(e(n,t,o,i)){i||(i=o);for(var r=i.lastChild;r.lastChild;)r=r.lastChild;t.setEnd(r,r.nodeValue.length),n.selection.setRng(t)}}n.on("KeyDown",function(){t()}),n.on("MouseDown",function(e){2!=e.button&&t()})}function c(){n.on("keydown",function(t){if((t.keyCode==e.DELETE||t.keyCode==e.BACKSPACE)&&!t.isDefaultPrevented()){var o=n.dom.getParent(n.selection.getStart(),"table");if(o){for(var i=n.dom.select("td,th",o),r=i.length;r--;)if(!n.dom.hasClass(i[r],"mce-item-selected"))return;t.preventDefault(),n.execCommand("mceTableDelete")}}})}c(),t.webkit&&(r(),s()),t.gecko&&(a(),l()),t.ie>10&&(a(),l())}}),o(m,[s,p,c],function(e,t,n){return function(o){function i(){o.getBody().style.webkitUserSelect="",d&&(o.dom.removeClass(o.dom.select("td.mce-item-selected,th.mce-item-selected"),"mce-item-selected"),d=!1)}function r(t){var n,i,r=t.target;if(s&&(l||r!=s)&&("TD"==r.nodeName||"TH"==r.nodeName)){i=a.getParent(r,"table"),i==c&&(l||(l=new e(o,i),l.setStartCell(s),o.getBody().style.webkitUserSelect="none"),l.setEndCell(r),d=!0),n=o.selection.getSel();try{n.removeAllRanges?n.removeAllRanges():n.empty()}catch(u){}t.preventDefault()}}var a=o.dom,l,s,c,d=!0;return o.on("MouseDown",function(e){2!=e.button&&(i(),s=a.getParent(e.target,"td,th"),c=a.getParent(s,"table"))}),o.on("mouseover",r),o.on("remove",function(){a.unbind(o.getDoc(),"mouseover",r)}),o.on("MouseUp",function(){function e(e,o){var r=new t(e,e);do{if(3==e.nodeType&&0!==n.trim(e.nodeValue).length)return void(o?i.setStart(e,0):i.setEnd(e,e.nodeValue.length));if("BR"==e.nodeName)return void(o?i.setStartBefore(e):i.setEndBefore(e))}while(e=o?r.next():r.prev())}var i,r=o.selection,d,u,f,m,p;if(s){if(l&&(o.getBody().style.webkitUserSelect=""),d=a.select("td.mce-item-selected,th.mce-item-selected"),d.length>0){i=a.createRng(),f=d[0],p=d[d.length-1],i.setStartBefore(f),i.setEndAfter(f),e(f,1),u=new t(f,a.getParent(d[0],"table"));do if("TD"==f.nodeName||"TH"==f.nodeName){if(!a.hasClass(f,"mce-item-selected"))break;m=f}while(f=u.next());e(m),r.setRng(i)}o.nodeChanged(),s=l=c=null}}),o.on("KeyUp",function(){i()}),{clear:i}}}),o(g,[s,u,m,c,p,d,h],function(e,t,n,o,i,r,a){function l(o){function i(e){return e?e.replace(/px$/,""):""}function a(e){return/^[0-9]+$/.test(e)&&(e+="px"),e}function l(e){s("left center right".split(" "),function(t){o.formatter.remove("align"+t,{},e)})}function c(){var e=o.dom,t,n,c,d;t=e.getParent(o.selection.getStart(),"table"),d={width:i(e.getStyle(t,"width")||e.getAttrib(t,"width")),height:i(e.getStyle(t,"height")||e.getAttrib(t,"height")),cellspacing:t?e.getAttrib(t,"cellspacing"):"",cellpadding:t?e.getAttrib(t,"cellpadding"):"",border:t?e.getAttrib(t,"border"):"",caption:!!e.select("caption",t)[0]},s("left center right".split(" "),function(e){o.formatter.matchNode(t,"align"+e)&&(d.align=e)}),t||(n={label:"Cols",name:"cols"},c={label:"Rows",name:"rows"}),o.windowManager.open({title:"Table properties",items:{type:"form",layout:"grid",columns:2,data:d,defaults:{type:"textbox",maxWidth:50},items:[n,c,{label:"Width",name:"width"},{label:"Height",name:"height"},{label:"Cell spacing",name:"cellspacing"},{label:"Cell padding",name:"cellpadding"},{label:"Border",name:"border"},{label:"Caption",name:"caption",type:"checkbox"},{label:"Alignment",minWidth:90,name:"align",type:"listbox",text:"None",maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}]},onsubmit:function(){var n=this.toJSON(),i;o.undoManager.transact(function(){t||(t=p(n.cols||1,n.rows||1)),o.dom.setAttribs(t,{cellspacing:n.cellspacing,cellpadding:n.cellpadding,border:n.border}),o.dom.setStyles(t,{width:a(n.width),height:a(n.height)}),i=e.select("caption",t)[0],i&&!n.caption&&e.remove(i),!i&&n.caption&&(i=e.create("caption"),i.innerHTML=r.ie?"\xa0":'
',t.insertBefore(i,t.firstChild)),l(t),n.align&&o.formatter.apply("align"+n.align,{},t),o.focus(),o.addVisual()})}})}function d(e,t){o.windowManager.open({title:"Merge cells",body:[{label:"Cols",name:"cols",type:"textbox",size:10},{label:"Rows",name:"rows",type:"textbox",size:10}],onsubmit:function(){var n=this.toJSON();o.undoManager.transact(function(){e.merge(t,n.cols,n.rows)})}})}function u(){var e=o.dom,t,n,r=[];r=o.dom.select("td.mce-item-selected,th.mce-item-selected"),t=o.dom.getParent(o.selection.getStart(),"td,th"),!r.length&&t&&r.push(t),t=t||r[0],t&&(n={width:i(e.getStyle(t,"width")||e.getAttrib(t,"width")),height:i(e.getStyle(t,"height")||e.getAttrib(t,"height")),scope:e.getAttrib(t,"scope")},n.type=t.nodeName.toLowerCase(),s("left center right".split(" "),function(e){o.formatter.matchNode(t,"align"+e)&&(n.align=e)}),o.windowManager.open({title:"Cell properties",items:{type:"form",data:n,layout:"grid",columns:2,defaults:{type:"textbox",maxWidth:50},items:[{label:"Width",name:"width"},{label:"Height",name:"height"},{label:"Cell type",name:"type",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{label:"Scope",name:"scope",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{label:"Alignment",name:"align",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}]},onsubmit:function(){var t=this.toJSON();o.undoManager.transact(function(){s(r,function(n){o.dom.setAttrib(n,"scope",t.scope),o.dom.setStyles(n,{width:a(t.width),height:a(t.height)}),t.type&&n.nodeName.toLowerCase()!=t.type&&(n=e.rename(n,t.type)),l(n),t.align&&o.formatter.apply("align"+t.align,{},n)}),o.focus()})}}))}function f(){var e=o.dom,t,n,r,c,d=[];t=o.dom.getParent(o.selection.getStart(),"table"),n=o.dom.getParent(o.selection.getStart(),"td,th"),s(t.rows,function(t){s(t.cells,function(o){return e.hasClass(o,"mce-item-selected")||o==n?(d.push(t),!1):void 0})}),r=d[0],r&&(c={height:i(e.getStyle(r,"height")||e.getAttrib(r,"height")),scope:e.getAttrib(r,"scope")},c.type=r.parentNode.nodeName.toLowerCase(),s("left center right".split(" "),function(e){o.formatter.matchNode(r,"align"+e)&&(c.align=e)}),o.windowManager.open({title:"Row properties",items:{type:"form",data:c,columns:2,defaults:{type:"textbox"},items:[{type:"listbox",name:"type",label:"Row type",text:"None",maxWidth:null,values:[{text:"Header",value:"thead"},{text:"Body",value:"tbody"},{text:"Footer",value:"tfoot"}]},{type:"listbox",name:"align",label:"Alignment",text:"None",maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height"}]},onsubmit:function(){var t=this.toJSON(),n,i,r;o.undoManager.transact(function(){var c=t.type;s(d,function(s){o.dom.setAttrib(s,"scope",t.scope),o.dom.setStyles(s,{height:a(t.height)}),c!=s.parentNode.nodeName.toLowerCase()&&(n=e.getParent(s,"table"),i=s.parentNode,r=e.select(c,n)[0],r||(r=e.create(c),n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)),r.appendChild(s),i.hasChildNodes()||e.remove(i)),l(s),t.align&&o.formatter.apply("align"+t.align,{},s)}),o.focus()})}}))}function m(e){return function(){o.execCommand(e)}}function p(e,t){var n,i,a;for(a='',n=0;t>n;n++){for(a+="",i=0;e>i;i++)a+="";a+=""}a+="
"+(r.ie?" ":"
")+"
",o.insertContent(a);var l=o.dom.get("__mce");return o.dom.setAttrib(l,"id",null),l}function g(e,t){function n(){e.disabled(!o.dom.getParent(o.selection.getStart(),t)),o.selection.selectorChanged(t,function(t){e.disabled(!t)})}o.initialized?n():o.on("init",n)}function h(){g(this,"table")}function b(){g(this,"td,th")}function v(){var e="";e='';for(var t=0;10>t;t++){e+="";for(var n=0;10>n;n++)e+='";e+=""}return e+="
",e+='

'}function y(e,t,n){var i=n.getEl().getElementsByTagName("table")[0],r=n.parent().rel,a,l,s,c;if(n.isRtl()||"tl-tr"==r){for(l=9;l>=0;l--)for(a=0;10>a;a++)c=i.rows[l].childNodes[a].firstChild,o.dom.toggleClass(c,"mce-active",a>=e&&t>=l),a>=e&&t>=l&&(s=c);e=9-e,i.nextSibling.innerHTML=e+" x "+(t+1)}else{for(l=0;10>l;l++)for(a=0;10>a;a++)c=i.rows[l].childNodes[a].firstChild,o.dom.toggleClass(c,"mce-active",e>=a&&t>=l),e>=a&&t>=l&&(s=c);i.nextSibling.innerHTML=e+1+" x "+(t+1)}return s.parentNode}var w,x,C=this;o.settings.table_grid===!1?o.addMenuItem("inserttable",{text:"Insert table",icon:"table",context:"table",onclick:c}):o.addMenuItem("inserttable",{text:"Insert table",icon:"table",context:"table",ariaHideMenu:!0,onclick:function(e){e.aria&&(this.parent().hideAll(),e.stopImmediatePropagation(),c())},onhide:function(){var e=this.menu.items()[0].getEl().getElementsByTagName("a");o.dom.removeClass(e,"mce-active"),o.dom.addClass(e[0],"mce-active")},menu:[{type:"container",html:v(),onPostRender:function(){this.lastX=this.lastY=0},onmousemove:function(e){var t=e.target,n,o;"A"==t.tagName.toUpperCase()&&(n=parseInt(t.getAttribute("data-mce-x"),10),o=parseInt(t.getAttribute("data-mce-y"),10),(n!==this.lastX||o!==this.lastY)&&(y(n,o,e.control),this.lastX=n,this.lastY=o))},onkeydown:function(e){var t=this.lastX,n=this.lastY,o;switch(e.keyCode){case 37:t>0&&(t--,o=!0);break;case 39:o=!0,9>t&&t++;break;case 38:o=!0,n>0&&n--;break;case 40:o=!0,9>n&&n++}o&&(e.preventDefault(),e.stopPropagation(),y(t,n,e.control).focus(),this.lastX=t,this.lastY=n)},onclick:function(e){"A"==e.target.tagName.toUpperCase()&&(e.preventDefault(),e.stopPropagation(),this.parent().cancel(),p(this.lastX+1,this.lastY+1))}}]}),o.addMenuItem("tableprops",{text:"Table properties",context:"table",onPostRender:h,onclick:c}),o.addMenuItem("deletetable",{text:"Delete table",context:"table",onPostRender:h,cmd:"mceTableDelete"}),o.addMenuItem("cell",{separator:"before",text:"Cell",context:"table",menu:[{text:"Cell properties",onclick:m("mceTableCellProps"),onPostRender:b},{text:"Merge cells",onclick:m("mceTableMergeCells"),onPostRender:b},{text:"Split cell",onclick:m("mceTableSplitCells"),onPostRender:b}]}),o.addMenuItem("row",{text:"Row",context:"table",menu:[{text:"Insert row before",onclick:m("mceTableInsertRowBefore"),onPostRender:b},{text:"Insert row after",onclick:m("mceTableInsertRowAfter"),onPostRender:b},{text:"Delete row",onclick:m("mceTableDeleteRow"),onPostRender:b},{text:"Row properties",onclick:m("mceTableRowProps"),onPostRender:b},{text:"-"},{text:"Cut row",onclick:m("mceTableCutRow"),onPostRender:b},{text:"Copy row",onclick:m("mceTableCopyRow"),onPostRender:b},{text:"Paste row before",onclick:m("mceTablePasteRowBefore"),onPostRender:b},{text:"Paste row after",onclick:m("mceTablePasteRowAfter"),onPostRender:b}]}),o.addMenuItem("column",{text:"Column",context:"table",menu:[{text:"Insert column before",onclick:m("mceTableInsertColBefore"),onPostRender:b},{text:"Insert column after",onclick:m("mceTableInsertColAfter"),onPostRender:b},{text:"Delete column",onclick:m("mceTableDeleteCol"),onPostRender:b}]});var P=[];s("inserttable tableprops deletetable | cell row column".split(" "),function(e){P.push("|"==e?{text:"-"}:o.menuItems[e])}),o.addButton("table",{type:"menubutton",title:"Table",menu:P}),r.isIE||o.on("click",function(e){e=e.target,"TABLE"===e.nodeName&&(o.selection.select(e),o.nodeChanged())}),C.quirks=new t(o),o.on("Init",function(){w=o.windowManager,C.cellSelection=new n(o)}),s({mceTableSplitCells:function(e){e.split()},mceTableMergeCells:function(e){var t,n,i;i=o.dom.getParent(o.selection.getStart(),"th,td"),i&&(t=i.rowSpan,n=i.colSpan),o.dom.select("td.mce-item-selected,th.mce-item-selected").length?e.merge():d(e,i)},mceTableInsertRowBefore:function(e){e.insertRow(!0)},mceTableInsertRowAfter:function(e){e.insertRow()},mceTableInsertColBefore:function(e){e.insertCol(!0)},mceTableInsertColAfter:function(e){e.insertCol()},mceTableDeleteCol:function(e){e.deleteCols()},mceTableDeleteRow:function(e){e.deleteRows()},mceTableCutRow:function(e){x=e.cutRows()},mceTableCopyRow:function(e){x=e.copyRows()},mceTablePasteRowBefore:function(e){e.pasteRows(x,!0)},mceTablePasteRowAfter:function(e){e.pasteRows(x)},mceTableDelete:function(e){e.deleteTable()}},function(t,n){o.addCommand(n,function(){var n=new e(o);n&&(t(n),o.execCommand("mceRepaint"),C.cellSelection.clear())})}),s({mceInsertTable:function(){c()},mceTableRowProps:f,mceTableCellProps:u},function(e,t){o.addCommand(t,function(t,n){e(n)})})}var s=o.each;a.add("table",l)}),a([s,u,m,g])}(this);tinymce.PluginManager.add("template",function(e){function t(t){return function(){var a=e.settings.templates;"string"==typeof a?tinymce.util.XHR.send({url:a,success:function(e){t(tinymce.util.JSON.parse(e))}}):t(a)}}function a(t){function a(t){function a(t){if(-1==t.indexOf("")){var a="";tinymce.each(e.contentCSS,function(t){a+=''}),t=""+a+""+t+""}t=r(t,"template_preview_replace_values");var l=n.find("iframe")[0].getEl().contentWindow.document;l.open(),l.write(t),l.close()}var c=t.control.value();c.url?tinymce.util.XHR.send({url:c.url,success:function(e){l=e,a(l)}}):(l=c.content,a(l)),n.find("#description")[0].text(t.control.value().description)}var n,l,i=[];return t&&0!==t.length?(tinymce.each(t,function(e){i.push({selected:!i.length,text:e.title,value:{url:e.url,content:e.content,description:e.description}})}),n=e.windowManager.open({title:"Insert template",layout:"flex",direction:"column",align:"stretch",padding:15,spacing:10,items:[{type:"form",flex:0,padding:0,items:[{type:"container",label:"Templates",items:{type:"listbox",label:"Templates",name:"template",values:i,onselect:a}}]},{type:"label",name:"description",label:"Description",text:" "},{type:"iframe",flex:1,border:1}],onsubmit:function(){c(!1,l)},width:e.getParam("template_popup_width",600),height:e.getParam("template_popup_height",500)}),void n.find("listbox")[0].fire("select")):void e.windowManager.alert("No templates defined")}function n(t,a){function n(e,t){if(e=""+e,e.length0&&(o=p.create("div",null),o.appendChild(s[0].cloneNode(!0))),i(p.select("*",o),function(t){c(t,e.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))&&(t.innerHTML=n(e.getParam("template_cdate_format",e.getLang("template.cdate_format")))),c(t,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(t.innerHTML=n(e.getParam("template_mdate_format",e.getLang("template.mdate_format")))),c(t,e.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))&&(t.innerHTML=m)}),l(o),e.execCommand("mceInsertContent",!1,o.innerHTML),e.addVisual()}var i=tinymce.each;e.addCommand("mceInsertTemplate",c),e.addButton("template",{title:"Insert template",onclick:t(a)}),e.addMenuItem("template",{text:"Insert template",onclick:t(a),context:"insert"}),e.on("PreProcess",function(t){var a=e.dom;i(a.select("div",t.node),function(t){a.hasClass(t,"mceTmpl")&&(i(a.select("*",t),function(t){a.hasClass(t,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(t.innerHTML=n(e.getParam("template_mdate_format",e.getLang("template.mdate_format"))))}),l(t))})})});tinymce.PluginManager.add("textcolor",function(e){function t(){var t,o,r=[];for(o=e.settings.textcolor_map||["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Brown","C0C0C0","Silver","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum","FFFFFF","White"],t=0;t',a=o.length-1,c=e.settings.textcolor_rows||5,i=e.settings.textcolor_cols||8,F=0;c>F;F++){for(l+="",n=0;i>n;n++)d=F*i+n,d>a?l+="":(r=o[d],l+='
');l+=""}return l+=""}function r(t){var o,r=this.parent();(o=t.target.getAttribute("data-mce-color"))&&(this.lastId&&document.getElementById(this.lastId).setAttribute("aria-selected",!1),t.target.setAttribute("aria-selected",!0),this.lastId=t.target.id,r.hidePanel(),o="#"+o,r.color(o),e.execCommand(r.settings.selectcmd,!1,o))}function l(){var t=this;t._color&&e.execCommand(t.settings.selectcmd,!1,t._color)}e.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",selectcmd:"ForeColor",panel:{role:"application",ariaRemember:!0,html:o,onclick:r},onclick:l}),e.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",selectcmd:"HiliteColor",panel:{role:"application",ariaRemember:!0,html:o,onclick:r},onclick:l})});tinymce.PluginManager.add("visualblocks",function(e,s){function o(){var s=this;s.active(a),e.on("VisualBlocks",function(){s.active(e.dom.hasClass(e.getBody(),"mce-visualblocks"))})}var l,t,a;window.NodeList&&(e.addCommand("mceVisualBlocks",function(){var o,c=e.dom;l||(l=c.uniqueId(),o=c.create("link",{id:l,rel:"stylesheet",href:s+"/css/visualblocks.css"}),e.getDoc().getElementsByTagName("head")[0].appendChild(o)),e.on("PreviewFormats AfterPreviewFormats",function(s){a&&c.toggleClass(e.getBody(),"mce-visualblocks","afterpreviewformats"==s.type)}),c.toggleClass(e.getBody(),"mce-visualblocks"),a=e.dom.hasClass(e.getBody(),"mce-visualblocks"),t&&t.active(c.hasClass(e.getBody(),"mce-visualblocks")),e.fire("VisualBlocks")}),e.addButton("visualblocks",{title:"Show blocks",cmd:"mceVisualBlocks",onPostRender:o}),e.addMenuItem("visualblocks",{text:"Show blocks",cmd:"mceVisualBlocks",onPostRender:o,selectable:!0,context:"view",prependToContext:!0}),e.on("init",function(){e.settings.visualblocks_default_state&&e.execCommand("mceVisualBlocks",!1,null,{skip_focus:!0})}),e.on("remove",function(){e.dom.removeClass(e.getBody(),"mce-visualblocks")}))});tinymce.PluginManager.add("visualchars",function(e){function a(a){var t,s,i,r,c,d,l=e.getBody(),m=e.selection;if(n=!n,o.state=n,e.fire("VisualChars",{state:n}),a&&(d=m.getBookmark()),n)for(s=[],tinymce.walk(l,function(e){3==e.nodeType&&e.nodeValue&&-1!=e.nodeValue.indexOf(" ")&&s.push(e)},"childNodes"),i=0;i$1
'),c=e.dom.create("div",null,r);t=c.lastChild;)e.dom.insertAfter(t,s[i]);e.dom.remove(s[i])}else for(s=e.dom.select("span.mce-nbsp",l),i=s.length-1;i>=0;i--)e.dom.remove(s[i],1);m.moveToBookmark(d)}function t(){var a=this;e.on("VisualChars",function(e){a.active(e.state)})}var n,o=this;e.addCommand("mceVisualChars",a),e.addButton("visualchars",{title:"Show invisible characters",cmd:"mceVisualChars",onPostRender:t}),e.addMenuItem("visualchars",{text:"Show invisible characters",cmd:"mceVisualChars",onPostRender:t,selectable:!0,context:"view",prependToContext:!0}),e.on("beforegetcontent",function(e){n&&"raw"!=e.format&&!e.draft&&(n=!0,a(!1))})});tinymce.PluginManager.add("wordcount",function(e){function t(){e.theme.panel.find("#wordcount").text(["Words: {0}",a.getCount()])}var n,o,a=this;n=e.getParam("wordcount_countregex",/[\w\u2019\x27\-\u00C0-\u1FFF]+/g),o=e.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$?\x27\x22_+=\\\/\-]*/g),e.on("init",function(){var n=e.theme.panel&&e.theme.panel.find("#statusbar")[0];n&&window.setTimeout(function(){n.insert({type:"label",name:"wordcount",text:["Words: {0}",a.getCount()],classes:"wordcount",disabled:e.settings.readonly},0),e.on("setcontent beforeaddundo",t),e.on("keyup",function(e){32==e.keyCode&&t()})},0)}),a.getCount=function(){var t=e.getContent({format:"raw"}),a=0;if(t){t=t.replace(/\.\.\./g," "),t=t.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," "),t=t.replace(/(\w+)(&#?[a-z0-9]+;)+(\w+)/i,"$1$3").replace(/&.+?;/g," "),t=t.replace(o,"");var r=t.match(n);r&&(a=r.length)}return a}});tinymce.ThemeManager.add("modern",function(e){function t(){function t(t){var i,o=[];if(t)return d(t.split(/[ ,]/),function(t){function n(){var n=e.selection;"bullist"==r&&n.selectorChanged("ul > li",function(e,n){for(var i,o=n.parents.length;o--&&(i=n.parents[o].nodeName,"OL"!=i&&"UL"!=i););t.active(e&&"UL"==i)}),"numlist"==r&&n.selectorChanged("ol > li",function(e,n){for(var i,o=n.parents.length;o--&&(i=n.parents[o].nodeName,"OL"!=i&&"UL"!=i););t.active(e&&"OL"==i)}),t.settings.stateSelector&&n.selectorChanged(t.settings.stateSelector,function(e){t.active(e)},!0),t.settings.disabledStateSelector&&n.selectorChanged(t.settings.disabledStateSelector,function(e){t.disabled(e)})}var r;"|"==t?i=null:c.has(t)?(t={type:t},u.toolbar_items_size&&(t.size=u.toolbar_items_size),o.push(t),i=null):(i||(i={type:"buttongroup",items:[]},o.push(i)),e.buttons[t]&&(r=t,t=e.buttons[r],"function"==typeof t&&(t=t()),t.type=t.type||"button",u.toolbar_items_size&&(t.size=u.toolbar_items_size),t=c.create(t),i.items.push(t),e.initialized?n():e.on("init",n)))}),n.push({type:"toolbar",layout:"flow",items:o}),!0}var n=[];if(tinymce.isArray(u.toolbar)){if(0===u.toolbar.length)return;tinymce.each(u.toolbar,function(e,t){u["toolbar"+(t+1)]=e}),delete u.toolbar}for(var i=1;10>i&&t(u["toolbar"+i]);i++);return n.length||u.toolbar===!1||t(u.toolbar||f),n.length?{type:"panel",layout:"stack",classes:"toolbar-grp",ariaRoot:!0,ariaRemember:!0,items:n}:void 0}function n(){function t(t){var n;return"|"==t?{text:"|"}:n=e.menuItems[t]}function n(n){var i,o,r,a,s;if(s=tinymce.makeMap((u.removed_menuitems||"").split(/[ ,]/)),u.menu?(o=u.menu[n],a=!0):o=h[n],o){i={text:o.title},r=[],d((o.items||"").split(/[ ,]/),function(e){var n=t(e);n&&!s[e]&&r.push(t(e))}),a||d(e.menuItems,function(e){e.context==n&&("before"==e.separator&&r.push({text:"|"}),e.prependToContext?r.unshift(e):r.push(e),"after"==e.separator&&r.push({text:"|"}))});for(var l=0;l 0) - sql += ', '; - sql += this.field[n].render (batch); - } - - sql += ') VALUES ('; - - for (n = 0; n < this.field.length; n++) - { - if (n > 0) - sql += ', '; - sql += this.expr[n].render(batch); - } - - sql += ')'; - - return sql; - } -}) diff --git a/usr/share/hedera-web/js/sql/list.js b/usr/share/hedera-web/js/sql/list.js deleted file mode 100755 index be6e86a8..00000000 --- a/usr/share/hedera-web/js/sql/list.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * List of Sql.Object - **/ -Sql.List = new Class -({ - Extends: Sql.Object - - ,objects: [] - - ,add: function (object) - { - this.objects.push (object); - object.on ('changed', this.onObjectChange, this); - this.onObjectChange (); - } - - ,get: function (i) - { - return objects[i]; - } - - ,getArray: function () - { - return this.objects; - } - - ,remove: function (i) - { - var object = objects.splice (i, 1); - object.disconnect ('changed', this.onObjectChange, this); - this.onObjectChange (); - } - - ,onObjectChange: function () - { - this.signalEmit ('changed'); - } - - ,isReady: function () - { - var o = this.objects; - - if (o.length == 0) - return false; - - for (var i = 0; i < o.length; i++) - if (!o[i].isReady ()) - return false; - - return true; - } -}); - diff --git a/usr/share/hedera-web/js/sql/main.js b/usr/share/hedera-web/js/sql/main.js deleted file mode 100755 index 21358f87..00000000 --- a/usr/share/hedera-web/js/sql/main.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * The namespace. - **/ -var Sql = {}; - diff --git a/usr/share/hedera-web/js/sql/main.php b/usr/share/hedera-web/js/sql/main.php deleted file mode 100755 index be47c0a8..00000000 --- a/usr/share/hedera-web/js/sql/main.php +++ /dev/null @@ -1,31 +0,0 @@ - diff --git a/usr/share/hedera-web/js/sql/multi-stmt.js b/usr/share/hedera-web/js/sql/multi-stmt.js deleted file mode 100755 index 0e7ac091..00000000 --- a/usr/share/hedera-web/js/sql/multi-stmt.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * The equivalent of a SQL multi statement. - **/ -Sql.MultiStmt = new Class -({ - Extends: Sql.Stmt - - ,stmts: [] - - ,addStmt: function (stmt) - { - stmt.on ('changed', this.stmtChanged.bind (this)); - return this.stmts.push (stmt); - } - - ,stmtChanged: function () - { - this.signalEmit ('changed'); - } - - ,isReady: function () - { - if (this.stmts.length == 0) - return false; - - for (var i = 0; i < this.stmts.length; i++) - if (!this.stmts[i].isReady ()) - return false; - - return true; - } - - ,render: function (batch) - { - var sql = ''; - - for (var i = 0; i < this.stmts.length; i++) - sql += this.stmts[i].render (batch) + '; '; - - return sql; - } -}); diff --git a/usr/share/hedera-web/js/sql/object.js b/usr/share/hedera-web/js/sql/object.js deleted file mode 100755 index 34fbd43d..00000000 --- a/usr/share/hedera-web/js/sql/object.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Base class for all objects on this library. - **/ -Sql.Object = new Class -({ - Extends: Vn.Object - - /** - * Renders the object as an SQL string. - * - * @param {Sql.Batch} batch The batch used to render the object - * @return {String} The SQL string - **/ - ,render: function (batch) {} - - /** - * Gets if the object is ready to be rendered. - * - * @return {boolean} %true if the object is ready, %false otherwise - **/ - ,isReady: function () - { - return true; - } - - /** - * Through the query looking for containers and adds it to the batch. - * - * @return {Sql.Batch} batch The batch - **/ - ,findHolders: function (batch) {} -}); diff --git a/usr/share/hedera-web/js/sql/operation.js b/usr/share/hedera-web/js/sql/operation.js deleted file mode 100755 index 10f7dfa6..00000000 --- a/usr/share/hedera-web/js/sql/operation.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * The equivalent of a SQL operation between exprs. - * - * @param {Array#Sql.Expr} expr Array with the exprs - * @param {Sql..Operation.Type} type The type of the operation - **/ -Sql.Operation = new Class ().extend -({ - Type: - { - EQUAL : 0 - ,LIKE : 1 - ,AND : 2 - ,OR : 3 - } - ,Operators: - [ - '=' - ,'LIKE' - ,'AND' - ,'OR' - ] -}); - -Sql.Operation.implement -({ - Extends: Sql.Expr - ,Tag: 'sql-operation' - ,Properties: - { - type: - { - enumType: Sql.Operation.Type - ,value: -1 - } - } - - ,initialize: function (props) - { - this.parent (props); - this.link ({exprs: new Sql.List ()}, {'changed': this.onListChange}); - } - - ,onListChange: function () - { - this.signalEmit ('changed'); - } - - ,isReady: function () - { - return this.exprs.isReady (); - } - - ,render: function (batch) - { - var sql = '('; - var operator = ' '+ Sql.Operation.Operators[this.type] +' '; - var e = this.exprs.getArray (); - - for (var i = 0; i < e.length; i++) - { - if (i > 0) - sql += operator; - - sql += e[i].render (batch); - } - - sql += ')'; - - return sql; - } -}); diff --git a/usr/share/hedera-web/js/sql/search-tags.js b/usr/share/hedera-web/js/sql/search-tags.js deleted file mode 100755 index 27f80b74..00000000 --- a/usr/share/hedera-web/js/sql/search-tags.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * The equivalent of a SQL value. - **/ -Sql.SearchTags = new Class -({ - Extends: Sql.Value - ,Tag: 'sql-search-tags' - - ,render: function (batch) - { - if (typeof this._value == 'string') - { - var value = this._value.replace (/^| +|$/g, '%'); - return "'" + value.replace (this.regexp, this.replaceFunc) + "'"; - } - else - return this.parent (); - } -}); diff --git a/usr/share/hedera-web/js/sql/select.js b/usr/share/hedera-web/js/sql/select.js deleted file mode 100755 index 7d03fc1a..00000000 --- a/usr/share/hedera-web/js/sql/select.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * The equivalent of a SQL select. - **/ -Sql.Select = new Class -({ - Extends: Sql.Stmt - - ,expr: [] - - ,addField: function (fieldName) - { - this.expr.push (new Sql.Field ({name: fieldName})); - } - - ,render: function (batch) - { - var sql = 'SELECT ' - - for (var i = 0; i < this.expr.length; i++) - { - if (i > 0) - sql += ', '; - sql += this.expr[i].render(batch); - } - - sql += ' FROM ' + this.renderTarget (batch); - - if (this.where) - sql += ' WHERE ' + this.where.render (batch); - - return sql; - } -}); diff --git a/usr/share/hedera-web/js/sql/stmt.js b/usr/share/hedera-web/js/sql/stmt.js deleted file mode 100755 index b3c71b7c..00000000 --- a/usr/share/hedera-web/js/sql/stmt.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * The equivalent of a SQL statement. - **/ -Sql.Stmt = new Class -({ - Extends: Sql.Object - ,Properties: - { - where: - { - type: Sql.Expr - ,value: null - } - } - - ,target: [] - - ,addTarget: function (target) - { - this.target.push (target); - } - - ,renderTarget: function (batch) - { - var sql; - var len = this.target.length; - - if (len > 0) - { - sql = ' '; - - for (var n = 0; n < len; n++) - { - if (n > 0) sql += ', '; - sql += this.target[n].render (batch); - } - } - else - sql += 'DUAL'; - - return sql; - } -}); diff --git a/usr/share/hedera-web/js/sql/string.js b/usr/share/hedera-web/js/sql/string.js deleted file mode 100755 index 2a7ac8ce..00000000 --- a/usr/share/hedera-web/js/sql/string.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Literal SQL string. - **/ -Sql.String = new Class -({ - Extends: Sql.Stmt - ,Properties: - { - query: - { - type: String - ,value: null - } - } - - ,regexp: /#\w+/g - - ,replaceFunc: function (batch, token) - { - var holder = new Sql.Holder ({id: token.substr (1)}); - return holder.render (batch); - } - - ,render: function (batch) - { - if (!this.query) - return null; - - return this.query.replace (this.regexp, this.replaceFunc.bind (this, batch)); - } - - ,findHolders: function (batch) - { - var ids = this.query.match (this.regexp); - - if (ids) - for (var i = 0; i < ids.length; i++) - batch.add (ids[i].substr (1)); - } -}); diff --git a/usr/share/hedera-web/js/sql/table.js b/usr/share/hedera-web/js/sql/table.js deleted file mode 100755 index e4d43207..00000000 --- a/usr/share/hedera-web/js/sql/table.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * - **/ -Sql.Table = new Class -({ - Extends: Sql.Target - ,Properties: - { - name: - { - type: String - ,value: null - }, - schema: - { - type: String - ,value: null - } - } - - ,render: function (batch) - { - var sql; - sql = this.schema ? '`' + this.schema + '`.' : ''; - sql = sql + '`' + this.name + '`'; - return sql; - } -}); diff --git a/usr/share/hedera-web/js/sql/target.js b/usr/share/hedera-web/js/sql/target.js deleted file mode 100755 index 3a1f793c..00000000 --- a/usr/share/hedera-web/js/sql/target.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * The equivalent of a SQL target. - **/ -Sql.Target = new Class -({ - Extends: Sql.Object -}); diff --git a/usr/share/hedera-web/js/sql/update.js b/usr/share/hedera-web/js/sql/update.js deleted file mode 100755 index 31d40dd9..00000000 --- a/usr/share/hedera-web/js/sql/update.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * The equivalent of a SQL update. - **/ -Sql.Update = new Class -({ - Extends: Sql.Dml - - ,render: function (batch) - { - var sql; - var n; - - sql = 'UPDATE ' + this.renderTarget (batch) + ' SET '; - - for (n = 0; n < this.field.length; n++) - { - if (n > 0) - sql += ', '; - sql += this.field[n].render () + ' = ' + this.expr[n].render(batch); - } - - if (this.where) - sql += ' WHERE ' + this.where.render (batch); - - sql += ' LIMIT 1'; // Only for security. - - return sql; - } -}); diff --git a/usr/share/hedera-web/js/sql/value.js b/usr/share/hedera-web/js/sql/value.js deleted file mode 100755 index 5be89871..00000000 --- a/usr/share/hedera-web/js/sql/value.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * The equivalent of a SQL value. - **/ -Sql.Value = new Class -({ - Extends: Sql.Expr - ,Tag: 'sql-value' - - ,Properties: - { - /** - * The master param. - **/ - param: - { - type: Vn.Param - ,set: function (x) - { - this.link ({_param: x}, {'changed': this.onParamChange}); - this.onParamChange (); - } - ,get: function () - { - return this._param; - } - }, - /** - * The value. - **/ - value: - { - type: Object - ,set: function (x) - { - if (Vn.Value.compare (x, this._value)) - return; - - if (x instanceof Date) - x = x.clone (); - - this._value = x; - - if (this._param && !this.paramLock) - { - this.paramLock = true; - this._param.value = x; - this.paramLock = false; - } - - this.signalEmit ('changed'); - } - ,get: function () - { - return this._value; - } - } - } - - ,_value: undefined - ,_param: null - ,regexp: new RegExp ('(\\\\)|\'', 'g') - ,paramLock: false - - ,onParamChange: function () - { - if (this.paramLock) - return; - - this.paramLock = true; - this.value = this._param.value; - this.paramLock = false; - } - - ,isReady: function () - { - if (this._value !== undefined && this._value !== null) - return true; - - return false; - } - - ,replaceFunc: function (token) - { - switch (token) - { - case '\\': return '\\\\'; - case '\'': return '\\\''; - } - - return token; - } - - ,render: function (batch) - { - var v = this._value; - - switch (typeof v) - { - case 'number': - return v; - case 'boolean': - return (v) ? 'TRUE' : 'FALSE'; - case 'string': - return "'" + v.replace (this.regexp, this.replaceFunc) + "'"; - case 'object': - if (v instanceof Date) - return Vn.Date.strftime (v, '\'%Y-%m-%d\''); - default: - return 'NULL'; - } - } -}); diff --git a/usr/share/hedera-web/js/vn/builder.js b/usr/share/hedera-web/js/vn/builder.js deleted file mode 100755 index 376055bf..00000000 --- a/usr/share/hedera-web/js/vn/builder.js +++ /dev/null @@ -1,189 +0,0 @@ -/** - * Loads a object from a XML specification. - **/ -Vn.Builder = new Class -({ - objectMap: {} - ,contexts: [] - ,tags: {} - ,root: null - - ,destroy: function () - { - for (var key in this.objectMap) - { - var object = this.objectMap[key]; - - if (object.destroy instanceof Function) - this.objectMap[key].destroy (); - } - } - - ,addFromXml: function (xmlDocument) - { - if (!xmlDocument) - return null; - - this.root = xmlDocument.documentElement; - var html = this.loadNode (this.root, null, null, true); - this.resolveProperties (); - this.contexts = []; - return html; - } - - ,loadNode: function (node, parent, htmlParent, firstCall) - { - var klass = null; - var tagName = null; - var htmlNode = null; - var context = null; - - if (node.tagName) - { - tagName = node.tagName.toLowerCase (); - klass = Vn.customTags[tagName]; - } - - if (klass) - { - var object = new klass (); - var nodeId = node.getAttribute ('id'); - - if (htmlParent && object instanceof Htk.Widget) - { - if (nodeId) - object.node.id = nodeId; - - htmlParent.appendChild (object.node); - } - - if (nodeId) - this.objectMap[nodeId] = object; - - if (!this.tags[tagName]) - this.tags[tagName] = []; - - this.tags[tagName].push (object); - - context = { - node: node - ,parent: parent - ,object: object - ,klass: klass - }; - this.contexts.push (context); - } - else if (htmlParent || firstCall) - { - if (tagName) - { - htmlNode = document.createElement (tagName); - - var a = node.attributes; - - for (var i = 0; i < a.length; i++) - htmlNode.setAttribute (a[i].nodeName, a[i].nodeValue); - } - else - htmlNode = document.importNode (node, false); - - if (htmlParent) - htmlParent.appendChild (htmlNode); - } - - if (node.tagName) - { - var childs = node.childNodes; - - if (childs) - for (var i = 0; i < childs.length; i++) - this.loadNode (childs[i], context, htmlNode, false); - } - - return htmlNode; - } - - ,replaceFunc: function (token) - { - return token.charAt(1).toUpperCase (); - } - - ,resolveProperties: function () - { - for (var i = 0; i < this.contexts.length; i++) - { - var c = this.contexts[i]; - var a = c.node.attributes; - - for (var j = 0; j < a.length; j++) - { - var prop = a[j].nodeName.replace (/-./g, this.replaceFunc); - this.setProperty (c, prop, a[j].nodeValue); - } - - if (c.parent) - { - var parentProperty = c.node.getAttribute ('property'); - - if (!parentProperty) - parentProperty = c.parent.klass.Child; - - if (parentProperty) - this.setProperty (c.parent, parentProperty, c.object); - - if (c.klass.Parent) - this.setProperty (c, c.klass.Parent, c.parent.object); - } - - c.object.loadXml (this, c.node); - } - } - - ,setProperty: function (c, propName, value) - { - var prop = c.klass.Properties[propName]; - - if (!prop || !value) - return; - - switch (prop.type) - { - case Boolean: - value = (/^(true|1)$/i).test (value); - break; - case Number: - value = 0 + new Number (value); - break; - case String: - case Function: - break; - default: - if (prop.type instanceof Function) - { - if (typeof value == 'string') - value = this.get (value); - if (!(value instanceof prop.type)) - return; - } - else if (prop.enumType) - value = prop.enumType[value]; - } - - if (value !== undefined) - c.object[propName] = value; - } - - ,get: function (objectId) - { - return this.objectMap[objectId]; - } - - ,getObjects: function (tagName) - { - if (this.tags[tagName]) - return this.tags[tagName]; - - return []; - } -}); - diff --git a/usr/share/hedera-web/js/vn/cookie.js b/usr/share/hedera-web/js/vn/cookie.js deleted file mode 100755 index 9f971032..00000000 --- a/usr/share/hedera-web/js/vn/cookie.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Brownser cookie handler. - **/ -Vn.Cookie = -{ - set: function (key, value, days) - { - var strCookie = key + '=' + value + ';'; - - if (days != undefined) - { - var date = new Date (); - date.setTime (date.getTime () + days * 86400000); - strCookie += 'expires=' + date.toGMTString (); - } - - document.cookie = strCookie; - } - - ,unset: function (key) - { - this.set (key, '', -1); - } - - ,get: function (key) - { - var cookie = new String (document.cookie); - var start = cookie.indexOf (key + '='); - - if (start != -1) - { - var end; - - start += key.length + 1; - end = cookie.indexOf (';', start); - - if (end > 0) - return cookie.substring (start, end); - else - return cookie.substring (start); - } - - return null; - } - - ,getInt: function (key) - { - var value = this.get (key); - - if (value != null) - return parseInt (value); - - return null; - } - - ,getFloat: function (key) - { - var value = Cookie.get (key); - - if (value != null) - return parseFloat (value); - - return null; - } - - ,check: function (key) - { - return this.get (key) != null; - } -}; - diff --git a/usr/share/hedera-web/js/vn/date.js b/usr/share/hedera-web/js/vn/date.js deleted file mode 100755 index 07bf5e64..00000000 --- a/usr/share/hedera-web/js/vn/date.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Date handling utilities. - **/ - -Date.prototype.clone = function () -{ - return new Date (this.getTime ()); -} - -Vn.Date = -{ - WDays: - [ - _('Sunday') - ,_('Monday') - ,_('Tuesday') - ,_('Wednesday') - ,_('Thursday') - ,_('Friday') - ,_('Saturday') - ] - ,AbrWDays: - [ - _('Su') - ,_('Mo') - ,_('Tu') - ,_('We') - ,_('Th') - ,_('Fr') - ,_('Sa') - ] - ,Months: - [ - _('January') - ,_('February') - ,_('March') - ,_('April') - ,_('May') - ,_('June') - ,_('July') - ,_('August') - ,_('September') - ,_('October') - ,_('November') - ,_('December') - ] - ,AbrMonths: - [ - _('Jan') - ,_('Feb') - ,_('Mar') - ,_('Apr') - ,_('May') - ,_('Jun') - ,_('Jul') - ,_('Ago') - ,_('Sep') - ,_('Oct') - ,_('Nov') - ,_('Dec') - ] - - ,regexp: new RegExp ('%[a-zA-Z]', 'g') - - ,pad: function (number) - { - if (number < 10) - return '0'+ number.toString (); - - return number.toString (); - } - - ,regexpFunc: function (d, token) - { - switch (token.charAt (1)) - { - // Minutes with 2 digits - case 'M': return this.pad (d.getMinutes ()); - - // Hour with 2 digits in 24 hour format - case 'H': return this.pad (d.getHours ()); - - // Complete time - case 'T': return d.toLocaleTimeString (); - - // Complete week day name - case 'A': return this.WDays[d.getDay ()]; - - // Abreviated week day name - case 'a': return this.AbrWDays[d.getDay ()]; - - // Day of month with 2 digits - case 'd': return this.pad (d.getDate ()); - - // Day of month - case 'e': return d.getDate (); - - // Complete month name - case 'B': return this.Months[d.getMonth ()]; - - // Abreviated month name - case 'b': return this.AbrMonths[d.getMonth ()]; - - // Month number with 2 digits - case 'm': return this.pad (d.getMonth () + 1); - - // Year with 4 digits - case 'Y': return d.getFullYear (); - } - - return token; - } - - ,strftime: function (date, format) - { - if (!date) - return ''; - - return format.replace (this.regexp, this.regexpFunc.bind (this, date)); - } -}; - diff --git a/usr/share/hedera-web/js/vn/error.js b/usr/share/hedera-web/js/vn/error.js deleted file mode 100755 index 9980d59e..00000000 --- a/usr/share/hedera-web/js/vn/error.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This class stores the database errors. - **/ -Vn.Error = new Class -({ - domain: null - ,code: null - ,message: null - - ,initialize: function (domain, code, message) - { - this.domain = domain; - this.code = code; - this.message = message; - } -}); - diff --git a/usr/share/hedera-web/js/vn/hash-link.js b/usr/share/hedera-web/js/vn/hash-link.js deleted file mode 100755 index 477ea258..00000000 --- a/usr/share/hedera-web/js/vn/hash-link.js +++ /dev/null @@ -1,88 +0,0 @@ - -Vn.HashLink = new Class -({ - Extends: Vn.Object - ,Tag: 'vn-hash-link' - ,Parent: 'param' - ,Properties: - { - param: - { - type: Vn.Param - ,set: function (x) - { - this.link ({_param: x}, {'changed': this.onParamChange}); - this.onHashChange (); - } - ,get: function () - { - return this._param; - } - }, - hash: - { - type: Vn.Hash - ,set: function (x) - { - this.link ({_hash: x}, {'changed': this.onHashChange}); - this.onHashChange (); - } - ,get: function () - { - return this._hash; - } - }, - key: - { - type: String - ,set: function (x) - { - this._key = x; - this.onHashChange (); - } - ,get: function () - { - return this._key; - } - } - } - - ,lock: false - ,value: null - ,_key: null - - ,onHashChange: function () - { - if (!this._key || !this._hash) - return; - - var newValue = this._hash.get (this._key); - - if (this.value != newValue) - { - this.value = newValue; - this.signalEmit ('changed'); - - if (this._param && !this.lock) - { - this.lock = true; - this._param.value = newValue; - this.lock = false; - } - } - } - - ,onParamChange: function () - { - if (this.lock) - return; - - var map = {}; - map[this.key] = this._param.value; - - this.lock = true; - this._hash.add (map); - this.lock = false; - } -}); - diff --git a/usr/share/hedera-web/js/vn/hash.js b/usr/share/hedera-web/js/vn/hash.js deleted file mode 100755 index f5d7dfb0..00000000 --- a/usr/share/hedera-web/js/vn/hash.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Class to handle the URL. - **/ -Vn.Hash = new Class -({ - Extends: Vn.Object - - ,hash: null - ,hashMap: {} - - ,initialize: function () - { - this.hashChangedHandler = this.hashChanged.bind (this); - window.addEventListener ('hashchange', this.hashChangedHandler); - this.hashChanged (); - } - - ,destroy: function () - { - this.parent (); - window.removeEventListener ('hashchange', this.hashChangedHandler); - } - - /** - * Gets the hash part of the URL. - * - * @param {string} key The variable name - **/ - ,get: function (key) - { - return this.hashMap[key]; - } - - /** - * Sets the hash part of the URL, respecting the current hash variables. - * - * @param {Object} map A key-value map - **/ - ,add: function (map) - { - var newMap = this.hashMap; - - for (var key in map) - newMap[key] = map[key]; - - this.set (newMap); - } - - /** - * Sets the hash part of the URL. - * - * @param {Object} map A key-value map - **/ - ,set: function (map) - { - for (var key in map) - if (map[key] === null || map[key] === undefined) - delete map[key]; - - var newHash = this.make (map); - - if (newHash !== this.hash) - { - this.hashMap = map; - this.putHash (newHash); - } - } - - /** - * Creates a URL with the given hash data. - * - * @param {Object} map A key-value map - * @param {boolean} add %true to combine with the current map, %false otherwise - * @return {String} The URL - **/ - ,make: function (map, add) - { - var hash = '#!'; - - if (add) - for (var key in this.hashMap) - if (!map[key]) - map[key] = this.hashMap[key]; - - for (var key in map) - { - if (hash.length > 2) - hash += '&'; - - hash += key +'='+ map[key]; - } - - return hash; - } - - ,putHash: function (newHash) - { - location.hash = newHash; - this.hash = location.hash; - this.signalEmit ('changed'); - } - - ,hashChanged: function () - { - var newHash = location.hash; - - if (newHash === this.hash) - return; - - this.hashMap = {}; - var kvPairs = newHash.substr(2).split ('&'); - - for (var i = 0; i < kvPairs.length; i++) - { - var kvPair = kvPairs[i].split ('=', 2); - - if (kvPair[0]) - this.hashMap[kvPair[0]] = kvPair[1]; - } - - this.putHash (newHash); - } -}); diff --git a/usr/share/hedera-web/js/vn/locale.js b/usr/share/hedera-web/js/vn/locale.js deleted file mode 100755 index a52e7813..00000000 --- a/usr/share/hedera-web/js/vn/locale.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Class to manage the internationalization. - **/ -Vn.Locale = -{ - strings: {} - - ,load: function (path, callback) - { - var file = 'locale/'+ Vn.Cookie.get ('hedera_lang') +'/'+ path +'.json' - +'?'+ Vn.Cookie.get ('hedera_version'); - - var request = new XMLHttpRequest (); - request.open ('get', file, true); - request.onreadystatechange = this.loadDone.bind (this, request, callback); - request.send (); - } - - ,loadDone: function (request, callback) - { - if (request.readyState != 4) - return; - - if (request.status == 200) - try { - this.add (eval ('('+ request.responseText +')')); - } - catch (e) { - console.log (e); - } - - callback (); - } - - ,add: function (strings) - { - for (var stringId in strings) - this.strings[stringId] = strings[stringId]; - } -} - -function _(stringId) -{ - var string = Vn.Locale.strings[stringId]; - return (string) ? string : stringId; -} - diff --git a/usr/share/hedera-web/js/vn/main.js b/usr/share/hedera-web/js/vn/main.js deleted file mode 100755 index 83dedbb6..00000000 --- a/usr/share/hedera-web/js/vn/main.js +++ /dev/null @@ -1,131 +0,0 @@ -/** - * The main namespace. - **/ -var Vn = -{ - jsIncludes: {} - ,cssIncludes: {} - ,customTags: {} - ,head: document.getElementsByTagName ('head')[0] - - /** - * Includes a new CSS stylesheet in the current document, if the stylesheet - * its already included, does nothing. - * - * @param {string} fileName The stylesheet file name - **/ - ,includeCss: function (fileName) - { - var cssData = this.cssIncludes[fileName]; - - if (!cssData) - { - var link = document.createElement ('link'); - link.rel = 'stylesheet'; - link.type = 'text/css'; - link.href = fileName +'?'+ Vn.Cookie.get ('hedera_version'); - this.head.appendChild (link); - - this.cssIncludes[fileName] = - { - included: true - ,link: link - }; - } - else if (!cssData.included) - { - this.head.appendChild (cssData.link); - cssData.included = true; - } - } - - /** - * Excludes a CSS stylesheet from the current document. - * - * @param {string} fileName The stylesheet file name - **/ - ,excludeCss: function (fileName) - { - var cssData = this.cssIncludes[fileName]; - - if (cssData && cssData.included) - { - this.head.removeChild (cssData.link); - cssData.included = false; - } - } - - /** - * Includes a new Javascript in the current document, if the script - * its already included, does nothing. - * - * @param {string} fileName The script file name - * @param {Function} callback The function to call when script is - * downloaded and included - **/ - ,includeJs: function (fileName, callback, skipVersion) - { - var includeData = this.jsIncludes[fileName]; - - if (includeData === undefined) - { - var src = fileName; - - if (!skipVersion) - src = src +'?'+ Vn.Cookie.get ('hedera_version'); - - var script = document.createElement ('script'); - script.type = 'text/javascript'; - script.src = src; - - includeData = { - script: script - ,callbacks: [] - ,loaded: false - }; - - if (callback) - includeData.callbacks.push (callback); - - script.onload = - this.jsLoaded.bind (this, includeData); - script.onreadystatechange = - this.jsStateChanged.bind (this, includeData); - - this.jsIncludes[fileName] = includeData; - - this.head.appendChild (script); - } - else if (callback) - { - if (includeData.loaded) - callback (); - else - includeData.callbacks.push (callback); - } - } - - ,jsStateChanged: function (includeData) - { - if (includeData.script.readyState == 'complete') - this.jsLoaded (includeData); - } - - ,jsLoaded: function (includeData) - { - if (includeData.loaded) - return; - - for (var i = 0; i < includeData.callbacks.length; i++) - includeData.callbacks[i] (); - - includeData.loaded = true; - includeData.callbacks = null; - } - - ,get: function (id) - { - return document.getElementById (id); - } -}; - diff --git a/usr/share/hedera-web/js/vn/main.php b/usr/share/hedera-web/js/vn/main.php deleted file mode 100755 index fb50985a..00000000 --- a/usr/share/hedera-web/js/vn/main.php +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/usr/share/hedera-web/js/vn/mutators.js b/usr/share/hedera-web/js/vn/mutators.js deleted file mode 100755 index bd42db9c..00000000 --- a/usr/share/hedera-web/js/vn/mutators.js +++ /dev/null @@ -1,45 +0,0 @@ - -Class.Mutators.Tag = function (tagName) -{ - Vn.customTags[tagName] = this; - - if (this.parent) - { - this.implement ({Parent: this.parent.Parent}); - this.implement ({Child: this.parent.Child}); - this.implement ({Properties: {}}); - } - - this.extend ({Tag: tagName}); -}; - -Class.Mutators.Properties = function (props) -{ - var parentProps; - - for (var propName in props) - { - var prop = props[propName]; - - if (!prop.get && !prop.set && prop.writable === undefined) - prop.writable = true; - } - - if (this.parent && (parentProps = this.parent.Properties)) - for (var propName in parentProps) - props[propName] = parentProps[propName]; - - this.extend ({Properties: props}); - Object.defineProperties (this.prototype, props); -}; - -Class.Mutators.Parent = function (propName) -{ - this.extend ({Parent: propName}); -}; - -Class.Mutators.Child = function (propName) -{ - this.extend ({Child: propName}); -}; - diff --git a/usr/share/hedera-web/js/vn/node.js b/usr/share/hedera-web/js/vn/node.js deleted file mode 100755 index 0273a9d8..00000000 --- a/usr/share/hedera-web/js/vn/node.js +++ /dev/null @@ -1,23 +0,0 @@ -Vn.Node = -{ - removeChilds: function (node) - { - var childs = node.childNodes; - - while (childs.length > 0) - node.removeChild (childs[0]); - } - - ,remove: function (node) - { - node.parentNode.removeChild (node); - } - - ,setText: function (node, text) - { - Vn.Node.removeChilds (node); - - if (text) - node.appendChild (document.createTextNode (text)); - } -}; diff --git a/usr/share/hedera-web/js/vn/object.js b/usr/share/hedera-web/js/vn/object.js deleted file mode 100755 index ea40b22e..00000000 --- a/usr/share/hedera-web/js/vn/object.js +++ /dev/null @@ -1,133 +0,0 @@ -/** - * The main base class. Manages the signal system. - * - * @param signals Map with all connected signal handlers - **/ -Vn.Object = new Class -({ - Tag: 'vn-object' - ,Properties: {} - ,signals: {} - - ,initialize: function (props) - { - for (var prop in props) - this[prop] = props[prop]; - } - - ,loadXml: function (builder, node) - { - return null; - } - - /** - * Conects a signal with a function. - * - * @param {String} id The signal identifier - * @param {Function} callback The callback - * @param {Object} instance The instance - **/ - ,on: function (id, callback, instance) - { - if (!this.signals[id]) - this.signals[id] = []; - - this.signals[id].push - ({ - blocked: false - ,callback: callback - ,instance: instance - }); - } - - /** - * Locks/Unlocks a signal emission to the specified object. - * - * @param {String} id The signal identifier - * @param {Function} callback The callback - * @param {Boolean} block %true for lock the signal, %false for unlock - **/ - ,blockSignal: function (id, callback, block) - { - var callbacks = this.signals[id]; - - if (!callbacks) - return; - - for (var i = 0; i < callbacks.length; i++) - if (callbacks[i].callback == callback) - callbacks[i].blocked = block; - } - - /** - * Emits a signal in the current object. - * - * @param {String} id The signal identifier - **/ - ,signalEmit: function (id) - { - var callbacks = this.signals[id]; - - if (!callbacks) - return; - - var callbackArgs = []; - callbackArgs.push (this); - - for (var i = 1; i < arguments.length; i++) - callbackArgs.push (arguments[i]); - - for (var i = 0; i < callbacks.length; i++) - if (!callbacks[i].blocked) - callbacks[i].callback.apply (callbacks[i].instance, callbackArgs); - } - - /** - * Disconnects a signal from current object. - * - * @param {String} id The signal identifier - * @param {Function} callback The connected callback - * @param {Object} instance The instance - **/ - ,disconnect: function (id, callback, instance) - { - var callbacks = this.signals[id]; - - if (!callbacks) - return; - - for (var i = 0; i < callbacks.length; i++) - if (callbacks[i].callback == callback - && callbacks[i].instance == instance) - callbacks.splice (i--, 1); - } - - /** - * Destroys the object, this method should only be called before losing - * the last reference to the object. - **/ - ,destroy: function () - { - delete this.signals; - } - - ,link: function (prop, handlers) - { - for (var key in prop) - { - var newObject = prop[key]; - var oldObject = this[key]; - - if (oldObject) - for (var signal in handlers) - oldObject.disconnect (signal, handlers[signal], this); - - this[key] = newObject; - - if (newObject) - for (var signal in handlers) - newObject.on (signal, handlers[signal], this); - } - } -}); - diff --git a/usr/share/hedera-web/js/vn/param.js b/usr/share/hedera-web/js/vn/param.js deleted file mode 100755 index 72cbf248..00000000 --- a/usr/share/hedera-web/js/vn/param.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Simply a linkable value holder. - **/ -Vn.Param = new Class -({ - Extends: Vn.Object - ,Tag: 'vn-param' - ,Properties: - { - value: - { - type: Object - ,set: function (x) - { - if (Vn.Value.compare (x, this._value)) - return; - - if (x instanceof Date) - x = x.clone (); - - this._value = x; - - if (this._master && !this.masterLock) - { - this.masterLock = true; - this._master.value = x; - this.masterLock = false; - } - - this.signalEmit ('changed'); - } - ,get: function () - { - return this._value; - } - }, - master: - { - type: Vn.Param - ,set: function (x) - { - this.link ({_master: x}, {'changed': this.onMasterChange}); - this.onMasterChange (); - } - ,get: function () - { - return this._master; - } - } - } - - ,_value: undefined - ,_master: null - ,masterLock: false - - ,onMasterChange: function () - { - if (this.masterLock) - return; - - this.masterLock = true; - this.value = this._master.value; - this.masterLock = false; - } -}) diff --git a/usr/share/hedera-web/js/vn/url.js b/usr/share/hedera-web/js/vn/url.js deleted file mode 100755 index 5371b8bd..00000000 --- a/usr/share/hedera-web/js/vn/url.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Class to handle the URL. - **/ -Vn.Url = -{ - /** - * Gets the value of a URL variable. - * - * @param {string} key The variable name - **/ - getQuery: function (key) - { - var regExp = new RegExp ('[\?\&]'+ key +'=([^\&]*)(\&?)', 'i'); - var value = location.search.match (regExp); - - return value ? value[1] : value; - } - - /** - * Sets the value of a URL variable. - * - * @param {string} key The variable name - * @param {string} value The new value - **/ - ,setQuery: function (key, value) - { - var changed = true; - var found = false; - var newPair = key +'='+ value; - var kvPairs = location.search.substr(1).split ('?'); - - for (var i = 0; i < kvPairs.length; i++) - { - var kvPair = kvPairs[i].split ('=', 1); - - if (kvPair[0] == key) - { - if (kvPair[1] != value) - kvPairs.splice (i, 1, newPair); - else - changed = false; - - found = true; - break; - } - } - - if (!found) - kvPairs.push (newPair); - - if (changed) - document.location.hash = '?'+ kvPairs.join ('&'); - } - - ,makeUri: function (map) - { - var post = ''; - - for (var key in map) - { - var value = map[key]; - - if (post.length > 2) - post += '&'; - - if (typeof value == 'boolean') - value = new Number (value); - - post += key +'='+ encodeURIComponent (value); - } - - return post; - } -}; diff --git a/usr/share/hedera-web/js/vn/value.js b/usr/share/hedera-web/js/vn/value.js deleted file mode 100755 index 541eb73a..00000000 --- a/usr/share/hedera-web/js/vn/value.js +++ /dev/null @@ -1,48 +0,0 @@ - -Vn.Value = -{ - regexpNumber: /%\.([0-9]+)d/g - ,regexpString: /%s/g - - ,compare: function (a, b) - { - if (a === b) - return true; - if (typeof a === typeof b && a instanceof Date) - return a.getTime () === b.getTime (); - - return false; - } - - ,format: function (value, format) - { - if (value === null || value === undefined) - return ''; - - if (format) - switch (typeof value) - { - case 'number': - return format.replace (this.regexpNumber, - this.replaceNumber.bind (null, value)); - case 'string': - return format.replace (this.regexpString, - this.replaceString.bind (null, value)); - case 'object': - if (value instanceof Date) - return Vn.Date.strftime (value, format); - } - - return value; - } - - ,replaceNumber: function (value, token, digits) - { - return new Number (value).toFixed (parseInt (digits)); - } - - ,replaceString: function (value) - { - return value; - } -}; diff --git a/usr/share/hedera-web/locale/ca/ajax/image.json b/usr/share/hedera-web/locale/ca/ajax/image.json deleted file mode 100755 index 21f09f26..00000000 --- a/usr/share/hedera-web/locale/ca/ajax/image.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "BadFileFormat": "Format d'arxiu no reconegut" - ,"FileNotChoosed": "No ha seleccionat cap arxiu" - ,"PermissionDenied": "No disposa de permisos per a putjar el fitxer" - ,"FileUploadError": "Error al putjar el fitxer, comprovi que el seu tamany no sigui massa gran" - ,"FileSaveError": "Error al guardar el fitxer: %s" - ,"FileSizeError": "El fitxer no deu ocupar més de %.2f MB" - ,"BadFileName": "Solament és possible utilitzar lletres minúscules, digits o el caracter '_' al nom de l'arxiu" - ,"ComError": "Error en la comunicació amb el servidor" - ,"ImageOpenError": "Error al obrir l'arxiu d'imatge" -} diff --git a/usr/share/hedera-web/locale/ca/ajax/query.json b/usr/share/hedera-web/locale/ca/ajax/query.json deleted file mode 100755 index 3bc546a6..00000000 --- a/usr/share/hedera-web/locale/ca/ajax/query.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "InvalidAction": "Acció invàlida" - - ,"EmptyQuery": "Consulta buida" -} diff --git a/usr/share/hedera-web/locale/ca/js/db.js b/usr/share/hedera-web/locale/ca/js/db.js deleted file mode 100755 index 1542f2c2..00000000 --- a/usr/share/hedera-web/locale/ca/js/db.js +++ /dev/null @@ -1,9 +0,0 @@ -Vn.Locale.add -({ - "ConnError": "Error en la conexió" - ,"InternalError": "S'ha produït un error intern" - ,"BadServerReply": "Resposta del servidor incorrecta" - ,"ModelNotUpdatable": "Aquest model no és actualitzable" - ,"RowNotExists": "El registre no existeix o ha sigut esborrat" - ,"ColNotExists": "La columna no existeix" -}); diff --git a/usr/share/hedera-web/locale/ca/js/htk.js b/usr/share/hedera-web/locale/ca/js/htk.js deleted file mode 100755 index 1d9366b7..00000000 --- a/usr/share/hedera-web/locale/ca/js/htk.js +++ /dev/null @@ -1,24 +0,0 @@ -Vn.Locale.add -({ - "True": "Sí" - ,"False": "No" - ,"Null": "Nul" - ,"ChangeDate": "Cambiar Data" - ,"Sort": "Ordenar" - ,"At": "a les" - ,"Of": "de" - ,"OfThe": "del" - ,"Remove": "Esborrar" - ,"Loading": "Carregant" - ,"ReallyDelete": "¿Realment dessitja esborrar la linia?" - ,"EmptyList": "Llistat buit" - ,"NoData": "Sense dades" - ,"ErrorLoadingData": "Error" - ,"Error": "Error" - ,"Image": "Imatge" - ,"File": "Arxiu" - ,"FileName": "Nom" - ,"UpdateImage": "Afegir / Actualitzar Imatge" - ,"UploadFile": "Putjar arxiu" - ,"Close": "Tancar" -}); diff --git a/usr/share/hedera-web/locale/ca/js/vn.js b/usr/share/hedera-web/locale/ca/js/vn.js deleted file mode 100755 index fa55e123..00000000 --- a/usr/share/hedera-web/locale/ca/js/vn.js +++ /dev/null @@ -1,75 +0,0 @@ -Vn.Locale.add -({ - "Sunday": "Diumenge" - ,"Monday": "Dilluns" - ,"Tuesday": "Dimarts" - ,"Wednesday": "Dimecres" - ,"Thursday": "Dijous" - ,"Friday": "Divendres" - ,"Saturday": "Dissabte" - - ,"Su": "Dg" - ,"Mo": "Dl" - ,"Tu": "Dt" - ,"We": "Dc" - ,"Th": "Dj" - ,"Fr": "Dv" - ,"Sa": "Ds" - - ,"January": "Gener" - ,"February": "Febrer" - ,"March": "Març" - ,"April": "Abril" - ,"May": "Maig" - ,"June": "Juny" - ,"July": "Juliol" - ,"August": "Agost" - ,"September": "Setembre" - ,"October": "Octubre" - ,"November": "Novembre" - ,"December": "Decembre" - - ,"Jan": "Gen" - ,"Feb": "Febr" - ,"Mar": "Març" - ,"Apr": "Abr" - ,"May": "Maig" - ,"Jun": "Juny" - ,"Jul": "Jul" - ,"Ago": "Ag" - ,"Sep": "Set" - ,"Oct": "Oct" - ,"Nov": "Nov" - ,"Dec": "Des" - - ,"AppName": "Verdnatura" - ,"Beta": "Beta" - ,"User": "Usuari" - ,"Password": "Contrasenya" - ,"Remember": "Recordar" - ,"Enter": "Entrar" - ,"Exit": "Sortir" - ,"Menu": "Menú" - ,"ErrorLoadingMod": "Error al carregar mòdul" - ,"YoureVisitor": "Solament esteu de visita?" - ,"NewVersionAvailable": "Existeix una nova versió del lloc web, ¿Desitgeu actualitzar?" - ,"ChangeLog": "Canvis recentes" - ,"CookiesNotification": "En utilitzar aquest lloc web acceptes l'ús de cookies per a la personalització de continguts i anàlisi." - - ,"Home": "Inici" - ,"Orders": "Encàrrecs" - ,"Catalog": "Catàleg" - ,"Configuration": "Configuració" - ,"About": "Coneix-nos" - ,"Why": "Per què?" - ,"Location": "Localització" - ,"Administration": "Administració" - ,"Users": "Usuaris" - ,"Visits": "Visites" - ,"Agencies": "Agències" - ,"News": "Noticies" - ,"Contact": "Vull ser client" - - ,"SessionExpired": "Ha estat massa temps inactiu i la sessió ha expirat." - ,"InvalidLogin": "Usuari o contrasenya incorrectes. Recorde que s'hi distingeix entre majúscula i minúscula." -}); diff --git a/usr/share/hedera-web/locale/ca/modules/about.json b/usr/share/hedera-web/locale/ca/modules/about.json deleted file mode 100755 index e3553626..00000000 --- a/usr/share/hedera-web/locale/ca/modules/about.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "QualityAndVariety": "Calidad, variedad y servicio" - - ,"MaximumFreshness": "Verdnatura te ofrece un producto con la máxima frescura garantizada, gracias a sus recepciones diarias de flor y planta procedentes de Holanda, Sudamérica, o desde el mismo productor." - ,"SquareMeters": "Más de 13.000m de instalaciones" - ,"AboutRealms": "Con flor cortada, verdes, artificial y complementos" - ,"AboutLocation": "Asentados en Valencia, Madrid, Barcelona, Holanda y Francia, ofrecemos venta directa en nuestras instalaciones y reparto a toda España mediante servicio propio o agencia." - ,"PurchaseThroughWeb": "Compra a través de nuestra web y recibe tu pedido cómodamente en tu floristería. ¡En menos de 24 horas!" - - ,"WhatMakeUsDifferent": "¿Que nos hace diferentes?" - - ,"DesignVariety": "La variedad en el diseño, la calidad de los materiales utilizados y nuestro servicio de reparto, te garantizan un muestrario de género dinámico, siempre fresco y atractivo." - ,"AdaptToYourNeeds": "Verdnatura se adapta a las necesidades de cada cliente ofreciéndole un amplio abanico de productos, garantizado siempre." - ,"TheBestQuality": "La mejor calidad al mejor precio. Sin olvidar nunca el diseño." - - ,"AtYourService": "Estamos a tu servicio" - - ,"BuyersAndTraders": "9 compradores especializados y nuestros 20 comerciales te asesorarán en todo lo que necesites." - - ,"Training": "Verdnatura formación" - - ,"GoodTraining": "En Verdnatura sabemos que una buena formación es imprescindible para el desarrollo óptimo de cualquier actividad, y cómo no, también la de florista." - ,"SpecialTrainingPrices": "Para que el presupuesto de una escuela no repercuta en la calidad de su formación, colaboramos con una política de precios especiales para todas aquellas escuelas que lo soliciten realizar cursos en nuestras instalaciones de Verdnatura Silla." - ,"YoutubeChannel": "Y no te pierdas los vídeos de Canal Verdnatura en Youtube. Donde encontrarás un montón de consejos muy interesantes sobre el manejo de la flor." - - ,"HowWeWork": "¿Cómo trabajamos?" - - ,"FirstQualityControl": "1º control de calidad" - ,"SecondQualityControl": "2º control de calidad" - ,"ThirdQualityControl": "3º control de calidad" - ,"FourthQualityControl": "4º control de calidad" - - ,"AalsmeerAuction": "Alas 5:00h, nuestros responsables de compras adquieren, en la subasta de Aalsmeer y Noaldwijk, el género que el productor ha cosechado el día anterior." - ,"BeforeAuction": "Tras su compra, este género entra rápidamente en Verdnatura Holland BV, nuestra empresa de Flora Holland, en Aalsmeer." - ,"DirectlyFromProviders": "Además de comprar a través de la subasta Holandesa, también compramos directamente a productores de Colombia, Ecuador, Thailandia, Malasia, África y Australia. Estos productos son supervisados directamente por nuestros delegados de compra ubicados en cada zona. Esta mercancía viajará a Amsterdam, sometida a un proceso de Vaacum y en menos de dos horas desde su aterrizaje, estará en nuestras instalaciones de Aalsmeer." - ,"GoodsDischarge": "A las 7:00h nuestros compañeros de Aalsmeer empiezan a recibir la mercancía comprada, pasando un primer control de calidad, y dándola de alta en nuestro stock. Ya está disponible para nuestros clientes en la web." - ,"GoodsTravel": "La mercancía viaja durante día y medio en camiones con compartimentos estancos a temperaturas diferentes, de manera que no se rompa la cadena de frío y viaje en las mejores condiciones." - ,"GoodsReception": "A la recepción de la mercancía el responsable de su compra revisa el estado en el que llega, aceptándola o rechazándola según el caso, se descarga en frío y rápidamente entra en nuestra cámara." - ,"CustomerOrders": "Nuestros clientes pueden hacer sus pedidos a través de la web, por teléfono o viniendo directamente a nuestras instalaciones. Tenemos un equipo de comerciales especializados que te asesorará en tu compra y que te informará de las novedades y artículos que puedan ser de tu interés, de forma que tu compra se ajuste a tus necesidades y quedes totalmente satisfecho." - ,"AfterOrder": "Una vez realizado el pedido, pasa al departamento de producción. Durante la preparación de este se realiza un nuevo control de calidad (el tercero) en el que se desechará la mercancía deficiente." - ,"BuyerControl": "En cuanto se finaliza la preparación, se realiza un nuevo control (el cuarto) donde un especialista cuenta y revisa el estado de los productos. En caso de que estos no cumplan con los estándares de calidad exigidos los rechaza y los sustituye por los adecuados." - ,"EmbeddedSection": "Seguidamente se lleva a la sección de encajado, donde el pedido es acondicionado para su correcta entrega. Cada tipo de entrega requiere un método de encajado adecuado para que el género viaje protegido y llegue al cliente en perfectas condiciones." - ,"AfterEmbedAgency": "En cuanto el producto ha sido encajado se almacena de nuevo en la cámara hasta su salida por agencia o por reparto propio, recibiéndolo el cliente, en 24h en el caso de la agencia o el mismo día en el caso del reparto, cómodamente en su domicilio." - ,"FreshnessGuaranteed": "Esta forma de trabajo garantiza la mayor frescura por la rapidez los procesos y por el mantenimiento de la cadena de frío desde compra hasta su recepción por nuestro cliente." - - ,"AboutSummary": "75 personas repartidas por casi todo el mundo para que nuestro cliente tenga el más amplio catálogo del sector, la flor más fresca, la planta más novedosa, los complementos más actuales, y el servicio más rápido posible." -} diff --git a/usr/share/hedera-web/locale/ca/modules/account.json b/usr/share/hedera-web/locale/ca/modules/account.json deleted file mode 100755 index fee51e3e..00000000 --- a/usr/share/hedera-web/locale/ca/modules/account.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "PasswordsChanged": "Contrasenya modificada!" - ,"PasswordsDoesntMatch": "Les contrasenyes no coincideixen!" - ,"Configuration": "Configuració" - ,"UserNumber": "N d'usuari:" - ,"UserName": "Nom d'usuari:" - ,"Password": "Contrasenya:" - ,"Email": "Correu electrònic:" - ,"Billing": "Facturació" - ,"BillingByEmail": "Enviar factures per correu electrònic" -} diff --git a/usr/share/hedera-web/locale/ca/modules/agencies.json b/usr/share/hedera-web/locale/ca/modules/agencies.json deleted file mode 100755 index 5733fe9b..00000000 --- a/usr/share/hedera-web/locale/ca/modules/agencies.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "ListByAgency": "Llistat de paquets per agència" - - ,"ShowByProvince": "Mostrar desglose per província" - ,"Agency": "Agència" - ,"Exps": "Exps" - ,"Bundles": "Paquets" - ,"Prevision": "Previsió" - - ,"ByProvince": "Desglose per província" - - ,"SelectAgency": "Seleccione una agència al llistat de l'esquerra" - ,"Province": "Província" - ,"Expeditions": "Expedicions" - ,"Left": "Falten" -} diff --git a/usr/share/hedera-web/locale/ca/modules/catalog.json b/usr/share/hedera-web/locale/ca/modules/catalog.json deleted file mode 100755 index 39222fc1..00000000 --- a/usr/share/hedera-web/locale/ca/modules/catalog.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "SelectFamily": "Seleccione família" - ,"SelectSubtype": "Per favor, seleccione el subtipus al menú de la dreta" - ,"ArticleNotFound": "Artcle no trobat" - ,"ArticleNotAvailable": "Article no disponible" - - ,"StartOrder": "Començar encàrrec" - ,"ShoppingBasket": "Veure la cistella de la compra" - - ,"Realm": "Família" - ,"Subtype": "Subtipus" - ,"Search:": "Cercar:" - ,"Date:": "Data:" - ,"Warehouse:": "Magatzem:" - - ,"Amount": "Quant" - ,"Aval": "Disp" - ,"Name": "Nom" - ,"S1": "Mes" - ,"S2": "S2" - ,"Stems": "Tiges" - ,"Cat": "Cat" - ,"Pack": "Pack" - ,"Origin": "Origen" - ,"AstPrice": "* Preu" - - ,"FixedPrices": "* Els preus resaltats en verd són fixes, la resta són orientatius." -} diff --git a/usr/share/hedera-web/locale/ca/modules/contact.json b/usr/share/hedera-web/locale/ca/modules/contact.json deleted file mode 100755 index 7a9d405b..00000000 --- a/usr/share/hedera-web/locale/ca/modules/contact.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "IWantCustomer": "Vull ser client!" - - ,"FillFormData": "Ompliu el formulari amb les seves dades i en breu ens posarem en contacte amb vostè." - ,"OrCallUs": "O si ho prefereix truqui al 963 242 100." - ,"AllFieldsMandatory": "* Tots els camps són obligatoris." - - ,"Name:": "Nom:" - ,"Surname:": "Cognoms:" - ,"EMail:": "Correu electrònic:" - ,"Message:": "Missatge:" - ,"Address:": "Adreça:" - ,"PC:": "Codi postal:" - ,"City:": "Ciutat:" - ,"Phone:": "Telèfon:" - ,"Send": "Enviar dades" - - ,"DataSentSuccess": "Les seves dades han estat enviades correctament. En breu ens posarem en contacte amb vostè." - ,"ErrorSendingData": "Un error en enviar les seves dades. Si us plau, comprovi que ha omplert tots els camps i que ha introduït el codi antispam correctament." -} diff --git a/usr/share/hedera-web/locale/ca/modules/home.json b/usr/share/hedera-web/locale/ca/modules/home.json deleted file mode 100755 index 0355e621..00000000 --- a/usr/share/hedera-web/locale/ca/modules/home.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "Sent": "Enviat" - ,"Author": "Autor" - ,"votes": "vots" - ,"NoAnswerSelected": "No ha seleccionat cap resposta" - ,"ThanksForVote": "Gràcias por el seu vot!" - ,"Vote": "Votar" - ,"Total": "Total" - ,"BrownserRecommend": - "Verdnatura li recomana utilitzar el navegador web Mozilla Firefox per a obtindre tota la funcionalitat del nostre lloc web." - ,"PressHere": "Polse ací per a descarregar Firefox" -} - diff --git a/usr/share/hedera-web/locale/ca/modules/links.json b/usr/share/hedera-web/locale/ca/modules/links.json deleted file mode 100755 index 251fbba7..00000000 --- a/usr/share/hedera-web/locale/ca/modules/links.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Module": "Mòdul" - ,"Description": "Descripció" -} diff --git a/usr/share/hedera-web/locale/ca/modules/location.json b/usr/share/hedera-web/locale/ca/modules/location.json deleted file mode 100755 index eb6899d5..00000000 --- a/usr/share/hedera-web/locale/ca/modules/location.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ShowMap": "Mostrar Mapa" -} diff --git a/usr/share/hedera-web/locale/ca/modules/new.json b/usr/share/hedera-web/locale/ca/modules/new.json deleted file mode 100755 index 10be568f..00000000 --- a/usr/share/hedera-web/locale/ca/modules/new.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "AddNew": "Afegir/Editar notícia" - - ,"Title:": "Títol:" - ,"NewBody:": "Cos:" - - ,"Cancel": "Cancel" - ,"Accept": "Acceptar" -} diff --git a/usr/share/hedera-web/locale/ca/modules/news.json b/usr/share/hedera-web/locale/ca/modules/news.json deleted file mode 100755 index 00f6b71a..00000000 --- a/usr/share/hedera-web/locale/ca/modules/news.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "NewsManagement": "Gestió de noticies" - - ,"AddNew": "Afegir noticia" - ,"EditNew": "Edita notícia" - - ,"NewNum": "N notícia" - ,"Date": "Data" - ,"Author": "Autor" - ,"Title": "Títol" - ,"Priority": "Prioritat" -} diff --git a/usr/share/hedera-web/locale/ca/modules/order.json b/usr/share/hedera-web/locale/ca/modules/order.json deleted file mode 100755 index 7202fdb1..00000000 --- a/usr/share/hedera-web/locale/ca/modules/order.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "Delete": "Borrar encàrrec" - ,"GoToCatalog": "Accedir al catàleg" - ,"Checkout": "Tramitar encàrrec" - - ,"OrderNumber:": "N encàrec:" - ,"DateExit:": "Data d'eixida:" - ,"Warehouse:": "Magatzem:" - ,"OrderTotal:": "Total encàrrec:" - ,"VATNotIncluded": "(IVA i transport no inclosos)" - - ,"Amount": "Quant" - ,"Pack": "Pack" - ,"Stems": "Tijes" - ,"Avail": "Disp" - ,"Item": "Artícle" - ,"Cat": "Cat" - ,"S1": "Mes" - ,"Color": "Color" - ,"Origin": "Orige" - ,"Price": "Preu" - ,"Disc": "Desc" - ,"Subtotal": "Subtotal" - - ,"GoBasket": "Tornar a la cistella" - ,"Confirm": "Confirmar" - - ,"PayCash": "Contrareemborsament/Contat" - ,"PayMethod:": "Forma de pagament:" - ,"Notes:": "Notes:" - ,"SendMethod:": "Forma d'enviament:" - ,"Insurance": "Assegurar mercaderia: 5% de l'import de l'encàrrec (Sols per a enviament per agència)" - - ,"Consignee": "Consignatari" - ,"Province": "Provincia" - ,"PC": "Codi postal" - ,"City": "Ciutat" - ,"Address": "Domicili" - - ,"SureDelOrder": "Està seguro d'eliminar l'encàrrec?" - ,"SureConfirmOrder": "¿Dessotja confirmar el seu encàrrec?" - ,"OrderConfirmed": "El seu encàrrec ha sigut procesat i confirmat correctament" - - ,"ClientAcceptCash": "El cliente accepta pagar Contrareemborsament/Contat" - ,"InetOrder": "Encàrrec realitzat per Internet" - ,"NoOrderFound": "No s'ha trobat cap encàrrec" - ,"NoArticleAdded": "No ha afegit cap article al seu encàrrec" - ,"OrderExceeded": "Ha excedit el nombre màxim d'encarrecs per confirmar, per favor elimine o confirme els encarrecs iniciats" - ,"HighQuantity": "Alguns articles ja no estan disponibles o hi ha més quantitat de la disponible, revisi els recuadres en roig" - ,"NoArticleAdded": "No ha seleccionat cap artícle" - ,"IsertOrderType": "Introduïsca el tipus d'encàrrec que dessitja" - ,"QuantityIntroduced": "La quantitat introduïda de" - ,"IsHigherThan": "és major que la quantiat disponible, per tant s'afegirà el màxim disponible" - ,"RoundedTo": "ha sigut arredonit, degut a que aquest artícle es ven per caixes" - ,"NoOrderAfterHour": "No és possible realitzar encarrecs per a hui després de les" ,"NoOrderOnHolidays": "No és possible realitzar encarrecs per a Diumenges o festius" - ,"DateLow": "La data d'enviament ha de ser igual o superior al dia d'avui" - ,"DateHigh": "La data introduïda és massa gran" - ,"DateUpdatedTo": "El dia d'enviament ha sigut actualitzat al" - ,"CreditExceeded": "Ha excedit el seu crèdit màxim permés,si dessitja confirmar l'encàrrec igualment, marqui la casella Pagament Contrareemborsament/Contat o reduïsca l'import del seu encàrrec en " - ,"InsuranceQuestion": "Les agencies de transport dispose d'un menor nombre de treballadors a l'estiu, per les vacances, motiu el qual pot ocasionar retards en el lliurament. A més a més, unït al calor, ha causat, en algunes ocasions, que la mercaderia no arribi en òptimes condicions. Ja que els nostres ports habituals no inclouen cap tipus d'assegurança, li oferim la possibilitat d'assegurar aquest enviament. El cost seria del 5% del valor de la mercaderia. Dessitja contracta-ho?" -} diff --git a/usr/share/hedera-web/locale/ca/modules/orders.json b/usr/share/hedera-web/locale/ca/modules/orders.json deleted file mode 100755 index 6ff179f9..00000000 --- a/usr/share/hedera-web/locale/ca/modules/orders.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "StartedOrdersDesc": - "Encarrecs pendents de confirmació." - - ,"StartOrder": "Començar encàrrec" - ,"ContinueOrder": "Continuar encàrrec" - ,"OrderNumber": "N encàrrec" - ,"DateMake": "Data de creació" - ,"DateExit": "Data d'eixida" - ,"SendMethod": "Forma d'enviament" - - ,"ConfirmedOrdersDesc": - "Encarrecs confirmats més recents." - - ,"MoneyDelivery": "Lliurament a compte" - ,"SeeOrder": "Mostrar detall de l'encàrrec" - ,"TicketNumber": "N ticket" - ,"SentAddress": "Adreça d'enviament" - ,"Consignee": "Consignatari" - ,"Boxes": "Caixes" - ,"TotalWithVAT": "Total amb IVA" - ,"Pending": "Pendent" - ,"PayOrder": "Pagar encàrrec" - - ,"AmountToPay:": "Quantitat a pagar (€):" - ,"AmountError": "La quantitat ha de ser un nombre positiu i inferior o igual a l'import pendent" - ,"PayError": "Error al realitzar el pagament" -} diff --git a/usr/share/hedera-web/locale/ca/modules/ticket.json b/usr/share/hedera-web/locale/ca/modules/ticket.json deleted file mode 100755 index a19a5fbf..00000000 --- a/usr/share/hedera-web/locale/ca/modules/ticket.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Print": "Imprimir albarà" - - ,"TicketNumber:": "N ticket:" - ,"DateExit:": "Data d'enviament:" - ,"SendMethod:": "Forma d'enviament:" - ,"Notes:": "Notes:" - ,"TicketTotal:": "Total encàrrec:" - ,"(VATIncluded)": "(IVA inclós)" - - ,"PC": "Codi postal" - ,"City": "Ciutat" - ,"Province": "Província" - ,"Address": "Domicili" - ,"Consignee": "Consignatari" - - ,"ItemNumber": "N article" - ,"Amount": "Quant" - ,"Item": "Article" - ,"Category": "Categoria" - ,"S1": "Mes" - ,"Stems": "Tijes" - ,"Color": "Color" - ,"Origin": "Orige" - ,"Price": "Preu" - ,"Disc": "Desc" - ,"Subtotal": "Subtotal" -} diff --git a/usr/share/hedera-web/locale/ca/modules/users.json b/usr/share/hedera-web/locale/ca/modules/users.json deleted file mode 100755 index a02b4c39..00000000 --- a/usr/share/hedera-web/locale/ca/modules/users.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "UserManagement": "Gestió d'usuaris" - - ,"UserName:": "Nom d'usuari:" - - ,"UserNumber": "N usuari" - ,"UserName": "Nom d'usuari" - ,"Alias": "Alias" - ,"Phone": "Telèfon" - ,"Mobile": "Mòbil" - - ,"AccessAsUser": "Suplantar usuari" -} diff --git a/usr/share/hedera-web/locale/ca/modules/visits.json b/usr/share/hedera-web/locale/ca/modules/visits.json deleted file mode 100755 index 4a18c6ca..00000000 --- a/usr/share/hedera-web/locale/ca/modules/visits.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "Visits": "Visites" - ,"VisitsManagement": "Gestió de visites" - - ,"ActiveSessions": "Usuaris conectats" - ,"VisitsQuery": "Consulta de visites" - ,"Refresh": "Actualitzar" - - ,"ActiveSessions:": "Usuaris conectats:" - ,"NewVisitsTotal:": "Noves visites:" - - ,"SessionNumber": "N sessió" - ,"User": "Usuari" - ,"Login": "Hora d'accés" - ,"LastActivity": "Última activitat" - ,"SO": "Sistema Operatiu" - ,"Version": "Versió" - ,"NewVisit": "Nova visita" - - ,"SelectDateInterval": "Seleccione un intèrval de dates" - ,"FromDate:": "Des de el dia:" - ,"ToDate:": "Fins el dia:" - ,"VisitsTotal:": "Total visites:" - - ,"Browser": "Navegador" - ,"MinVersion": "Versió mínima" - ,"MaxVersion": "Versió màxima" - ,"LastVisit": "Última visita" - ,"NewVisits": "Noves visites" - ,"%a, %e %b %Y at %T": "%a, %e %b %Y a las %T" -} diff --git a/usr/share/hedera-web/locale/ca/modules/why.json b/usr/share/hedera-web/locale/ca/modules/why.json deleted file mode 100755 index 44ac3a44..00000000 --- a/usr/share/hedera-web/locale/ca/modules/why.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "AboutCompany": "Per què Verdnatura?" - ,"StorePhoto": "Foto Magatzem" - ,"AboutWhy": - "
  • Perquè tenim el catàleg més gran del sector, renovat diariament.
  • Per aquest lloc web, amb stock en temps real sempre a la seua disposició.
  • Per el nostre departament de compres, amb 9 compradors especialitzats.
  • Perquè és molt fàcil realitzar el seu encàrrec mitjançant la web, per telèfon o venint.
  • Per les nostres instal·lacions, vingui y vistens. Li encantaran.
  • Pel nostre departament comercial, amb professionals que sempre ofereixen amb una solució adaptada a les seues necessitats.
  • Perquè tenim un taller de confecció per a ajudar-li.
  • Perquè tenim el que necessita quan ho necessita...
  • " - - ,"AboutDesc": - "Som una empresa dedicada a la venta a l'engrós i distribució d'una amplia gama de complements, verds i flors naturals a frloristeries o altres majoristes." - - ,"AboutService": - "Disposem de servei de repartiment a domicili amb els nostres vehícles per tota la provincia de València i arees limitades de Castelló, Alacant, Murcia, Albacete i Madrid. A la resta de la península enviem mitjançan agències de transport amb servei 24/48 hores (Zeleris, Viaexpress). També realitzaem venda directa a floristes en qualsevol de les nostres instal·lacions." - - ,"AboutDisp": - "La nostra empresa disposa de més de 50 treballadors i diferents sucursals. La principal es troba a València i disposa de més de 8000 m2. També disposem d'un magatzem situat a Mercaflor - Mercavalencia (València) en el qual solament realitzem venda directa." - - ,"AboutOrder": - "Pot realitzar els seus encarrecs i reserves telefonant al 96 324 21 00, per Internet mitjançant el nostre lloc web o bé directament a les nostres instal·lacions." -} diff --git a/usr/share/hedera-web/locale/ca/sections/login.json b/usr/share/hedera-web/locale/ca/sections/login.json deleted file mode 100755 index b333edef..00000000 --- a/usr/share/hedera-web/locale/ca/sections/login.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "User": "Usuari" - ,"Password": "Contrasenya" - ,"NotCloseSession": "No tancar sessió" - ,"IWantToKnowMore": "Vuic saber-ne més!" - ,"Enter": "Entrar" -} diff --git a/usr/share/hedera-web/locale/ca/sections/tpv.json b/usr/share/hedera-web/locale/ca/sections/tpv.json deleted file mode 100755 index 9bdecf58..00000000 --- a/usr/share/hedera-web/locale/ca/sections/tpv.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "PaymentComplete": "Pagament acabat, ja pot tornar a la nostra pàgina web." - ,"ReturnToWeb": "Tornar a Verdnatura" -} diff --git a/usr/share/hedera-web/locale/ca/sections/update-browser.json b/usr/share/hedera-web/locale/ca/sections/update-browser.json deleted file mode 100755 index 6aa59eeb..00000000 --- a/usr/share/hedera-web/locale/ca/sections/update-browser.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "UpdateYourBrowser": "Actualitzi el seu navegador" - ,"ContinueAnyway": "Continuar igualment" -} diff --git a/usr/share/hedera-web/locale/ca/sections/web.json b/usr/share/hedera-web/locale/ca/sections/web.json deleted file mode 100755 index 42bc0f69..00000000 --- a/usr/share/hedera-web/locale/ca/sections/web.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Welcome": "Benvingut/da" - ,"Exit": "Eixir" -} diff --git a/usr/share/hedera-web/locale/es/ajax/image.json b/usr/share/hedera-web/locale/es/ajax/image.json deleted file mode 100755 index 7d518242..00000000 --- a/usr/share/hedera-web/locale/es/ajax/image.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "BadFileFormat": "Formato de archivo no reconocido" - ,"FileNotChoosed": "No ha seleccionado ningún archivo" - ,"PermissionDenied": "No tiene permiso para subir el fichero" - ,"FileUploadError": "Error al subir el fichero, compruebe que su tamaño no sea demasiado grande" - ,"FileSaveError": "Error al guardar el fichero: %s" - ,"FileSizeError": "El fichero no debe ocupar mas de %.2f MB" - ,"BadFileName": "Solo es posible utilizar letras minúsculas, dígitos o el caráter '_' en el nombre del archivo" - ,"ComError": "Error en la comunicación con el servidor" - ,"ImageOpenError": "Error al abrir el archivo de imagen" -} diff --git a/usr/share/hedera-web/locale/es/ajax/query.json b/usr/share/hedera-web/locale/es/ajax/query.json deleted file mode 100755 index 445312b5..00000000 --- a/usr/share/hedera-web/locale/es/ajax/query.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "InvalidAction": "Acción inválida" - - ,"EmptyQuery": "Consulta vacia" -} diff --git a/usr/share/hedera-web/locale/es/js/db.js b/usr/share/hedera-web/locale/es/js/db.js deleted file mode 100755 index 55637078..00000000 --- a/usr/share/hedera-web/locale/es/js/db.js +++ /dev/null @@ -1,9 +0,0 @@ -Vn.Locale.add -({ - "ConnError": "Error en la conexión" - ,"InternalError": "Se ha producido un error interno" - ,"BadServerReply": "Respuesta del servidor incorrecta" - ,"ModelNotUpdatable": "Este modelo no es actualizable" - ,"RowNotExists": "El registro no existe o a sido borrado" - ,"ColNotExists": "La columna no existe" -}); diff --git a/usr/share/hedera-web/locale/es/js/htk.js b/usr/share/hedera-web/locale/es/js/htk.js deleted file mode 100755 index e4874615..00000000 --- a/usr/share/hedera-web/locale/es/js/htk.js +++ /dev/null @@ -1,24 +0,0 @@ -Vn.Locale.add -({ - "True": "Si" - ,"False": "No" - ,"Null": "Nulo" - ,"ChangeDate": "Cambiar Fecha" - ,"Sort": "Ordenar" - ,"At": "a las" - ,"Of": "de" - ,"OfThe": "del" - ,"Remove": "Borrar" - ,"Loading": "Cargando" - ,"ReallyDelete": "¿Realmente desea borrar la línea?" - ,"EmptyList": "Lista vacía" - ,"NoData": "Sin datos" - ,"ErrorLoadingData": "Error" - ,"Error": "Error" - ,"Image": "Imagen" - ,"File": "Archivo" - ,"FileName": "Nombre" - ,"UpdateImage": "Añadir / Actualizar Imagen" - ,"UploadFile": "Subir archivo" - ,"Close": "Cerrar" -}); diff --git a/usr/share/hedera-web/locale/es/js/vn.js b/usr/share/hedera-web/locale/es/js/vn.js deleted file mode 100755 index 0dab2617..00000000 --- a/usr/share/hedera-web/locale/es/js/vn.js +++ /dev/null @@ -1,75 +0,0 @@ -Vn.Locale.add -({ - "Sunday": "Domingo" - ,"Monday": "Lunes" - ,"Tuesday": "Martes" - ,"Wednesday": "Miercoles" - ,"Thursday": "Jueves" - ,"Friday": "Viernes" - ,"Saturday": "Sábado" - - ,"Su": "Do" - ,"Mo": "Lu" - ,"Tu": "Ma" - ,"We": "Mi" - ,"Th": "Ju" - ,"Fr": "Vi" - ,"Sa": "Sa" - - ,"January": "Enero" - ,"February": "Febrero" - ,"March": "Marzo" - ,"April": "Abril" - ,"May": "Mayo" - ,"June": "Junio" - ,"July": "Julio" - ,"August": "Agosto" - ,"September": "Septiembre" - ,"October": "Octubre" - ,"November": "Noviembre" - ,"December": "Diciembre" - - ,"Jan": "Ene" - ,"Feb": "Feb" - ,"Mar": "Mar" - ,"Apr": "Abr" - ,"May": "May" - ,"Jun": "Jun" - ,"Jul": "Jul" - ,"Ago": "Ago" - ,"Sep": "Sep" - ,"Oct": "Oct" - ,"Nov": "Nov" - ,"Dec": "Dic" - - ,"AppName": "Verdnatura" - ,"Beta": "Beta" - ,"User": "Usuario" - ,"Password": "Contraseña" - ,"Remember": "Recordar" - ,"Enter": "Entrar" - ,"Exit": "Salir" - ,"Menu": "Menú" - ,"ErrorLoadingMod": "Error al cargar módulo" - ,"YoureVisitor": "¿Solo estás de visita?" - ,"NewVersionAvailable": "Existe una nueva versión de la página web, ¿Desea actualizar?" - ,"ChangeLog": "Cambios recientes" - ,"CookiesNotification": "Al utilizar este sitio web aceptas el uso de cookies para la personalización de contenidos y análisis." - - ,"Home": "Inicio" - ,"Orders": "Pedidos" - ,"Catalog": "Catálogo" - ,"Configuration": "Configuración" - ,"About": "Conócenos" - ,"Why": "¿Por qué?" - ,"Location": "Localización" - ,"Administration": "Administración" - ,"Users": "Usuarios" - ,"Visits": "Visitas" - ,"Agencies": "Agencias" - ,"News": "Noticias" - ,"Contact": "Quiero ser cliente" - - ,"SessionExpired": "Ha estado demasiado tiempo inactivo y su sesión ha expirado." - ,"InvalidLogin": "Usuario o contraseña incorrectos. Recuerde que se hace distinción entre mayúsculas y minúsculas." -}); diff --git a/usr/share/hedera-web/locale/es/modules/about.json b/usr/share/hedera-web/locale/es/modules/about.json deleted file mode 100755 index e3553626..00000000 --- a/usr/share/hedera-web/locale/es/modules/about.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "QualityAndVariety": "Calidad, variedad y servicio" - - ,"MaximumFreshness": "Verdnatura te ofrece un producto con la máxima frescura garantizada, gracias a sus recepciones diarias de flor y planta procedentes de Holanda, Sudamérica, o desde el mismo productor." - ,"SquareMeters": "Más de 13.000m de instalaciones" - ,"AboutRealms": "Con flor cortada, verdes, artificial y complementos" - ,"AboutLocation": "Asentados en Valencia, Madrid, Barcelona, Holanda y Francia, ofrecemos venta directa en nuestras instalaciones y reparto a toda España mediante servicio propio o agencia." - ,"PurchaseThroughWeb": "Compra a través de nuestra web y recibe tu pedido cómodamente en tu floristería. ¡En menos de 24 horas!" - - ,"WhatMakeUsDifferent": "¿Que nos hace diferentes?" - - ,"DesignVariety": "La variedad en el diseño, la calidad de los materiales utilizados y nuestro servicio de reparto, te garantizan un muestrario de género dinámico, siempre fresco y atractivo." - ,"AdaptToYourNeeds": "Verdnatura se adapta a las necesidades de cada cliente ofreciéndole un amplio abanico de productos, garantizado siempre." - ,"TheBestQuality": "La mejor calidad al mejor precio. Sin olvidar nunca el diseño." - - ,"AtYourService": "Estamos a tu servicio" - - ,"BuyersAndTraders": "9 compradores especializados y nuestros 20 comerciales te asesorarán en todo lo que necesites." - - ,"Training": "Verdnatura formación" - - ,"GoodTraining": "En Verdnatura sabemos que una buena formación es imprescindible para el desarrollo óptimo de cualquier actividad, y cómo no, también la de florista." - ,"SpecialTrainingPrices": "Para que el presupuesto de una escuela no repercuta en la calidad de su formación, colaboramos con una política de precios especiales para todas aquellas escuelas que lo soliciten realizar cursos en nuestras instalaciones de Verdnatura Silla." - ,"YoutubeChannel": "Y no te pierdas los vídeos de Canal Verdnatura en Youtube. Donde encontrarás un montón de consejos muy interesantes sobre el manejo de la flor." - - ,"HowWeWork": "¿Cómo trabajamos?" - - ,"FirstQualityControl": "1º control de calidad" - ,"SecondQualityControl": "2º control de calidad" - ,"ThirdQualityControl": "3º control de calidad" - ,"FourthQualityControl": "4º control de calidad" - - ,"AalsmeerAuction": "Alas 5:00h, nuestros responsables de compras adquieren, en la subasta de Aalsmeer y Noaldwijk, el género que el productor ha cosechado el día anterior." - ,"BeforeAuction": "Tras su compra, este género entra rápidamente en Verdnatura Holland BV, nuestra empresa de Flora Holland, en Aalsmeer." - ,"DirectlyFromProviders": "Además de comprar a través de la subasta Holandesa, también compramos directamente a productores de Colombia, Ecuador, Thailandia, Malasia, África y Australia. Estos productos son supervisados directamente por nuestros delegados de compra ubicados en cada zona. Esta mercancía viajará a Amsterdam, sometida a un proceso de Vaacum y en menos de dos horas desde su aterrizaje, estará en nuestras instalaciones de Aalsmeer." - ,"GoodsDischarge": "A las 7:00h nuestros compañeros de Aalsmeer empiezan a recibir la mercancía comprada, pasando un primer control de calidad, y dándola de alta en nuestro stock. Ya está disponible para nuestros clientes en la web." - ,"GoodsTravel": "La mercancía viaja durante día y medio en camiones con compartimentos estancos a temperaturas diferentes, de manera que no se rompa la cadena de frío y viaje en las mejores condiciones." - ,"GoodsReception": "A la recepción de la mercancía el responsable de su compra revisa el estado en el que llega, aceptándola o rechazándola según el caso, se descarga en frío y rápidamente entra en nuestra cámara." - ,"CustomerOrders": "Nuestros clientes pueden hacer sus pedidos a través de la web, por teléfono o viniendo directamente a nuestras instalaciones. Tenemos un equipo de comerciales especializados que te asesorará en tu compra y que te informará de las novedades y artículos que puedan ser de tu interés, de forma que tu compra se ajuste a tus necesidades y quedes totalmente satisfecho." - ,"AfterOrder": "Una vez realizado el pedido, pasa al departamento de producción. Durante la preparación de este se realiza un nuevo control de calidad (el tercero) en el que se desechará la mercancía deficiente." - ,"BuyerControl": "En cuanto se finaliza la preparación, se realiza un nuevo control (el cuarto) donde un especialista cuenta y revisa el estado de los productos. En caso de que estos no cumplan con los estándares de calidad exigidos los rechaza y los sustituye por los adecuados." - ,"EmbeddedSection": "Seguidamente se lleva a la sección de encajado, donde el pedido es acondicionado para su correcta entrega. Cada tipo de entrega requiere un método de encajado adecuado para que el género viaje protegido y llegue al cliente en perfectas condiciones." - ,"AfterEmbedAgency": "En cuanto el producto ha sido encajado se almacena de nuevo en la cámara hasta su salida por agencia o por reparto propio, recibiéndolo el cliente, en 24h en el caso de la agencia o el mismo día en el caso del reparto, cómodamente en su domicilio." - ,"FreshnessGuaranteed": "Esta forma de trabajo garantiza la mayor frescura por la rapidez los procesos y por el mantenimiento de la cadena de frío desde compra hasta su recepción por nuestro cliente." - - ,"AboutSummary": "75 personas repartidas por casi todo el mundo para que nuestro cliente tenga el más amplio catálogo del sector, la flor más fresca, la planta más novedosa, los complementos más actuales, y el servicio más rápido posible." -} diff --git a/usr/share/hedera-web/locale/es/modules/account.json b/usr/share/hedera-web/locale/es/modules/account.json deleted file mode 100755 index ac69558b..00000000 --- a/usr/share/hedera-web/locale/es/modules/account.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "PasswordsChanged": "¡Contraseña modificada!" - ,"PasswordsDoesntMatch": "¡Las contraseñas no coinciden!" - ,"Configuration": "Configuración" - ,"UserNumber": "Nº usuario:" - ,"UserName": "Nombre de usuario:" - ,"Password": "Contraseña:" - ,"Email": "Correo electrónico:" - ,"Billing": "Facturación" - ,"BillingByEmail": "Enviar facturas por correo electrónico" -} diff --git a/usr/share/hedera-web/locale/es/modules/agencies.json b/usr/share/hedera-web/locale/es/modules/agencies.json deleted file mode 100755 index 5394818a..00000000 --- a/usr/share/hedera-web/locale/es/modules/agencies.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "ListByAgency": "Listado de bultos por agencia" - - ,"ShowByProvince": "Mostrar desglose por provincia" - ,"Agency": "Agencia" - ,"Exps": "Exps" - ,"Bundles": "Bultos" - ,"Prevision": "Previsión" - - ,"ByProvince": "Desglose por provincia" - - ,"SelectAgency": "Seleccione una agencia en el listado de la izquierda" - ,"Province": "Provincia" - ,"Expeditions": "Expediciones" - ,"Left": "Faltan" -} diff --git a/usr/share/hedera-web/locale/es/modules/catalog.json b/usr/share/hedera-web/locale/es/modules/catalog.json deleted file mode 100755 index 6f807368..00000000 --- a/usr/share/hedera-web/locale/es/modules/catalog.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "SelectFamily": "Seleccione familia" - ,"SelectSubtype": "Por favor, seleccione el subtipo en el menú de la derecha" - ,"ArticleNotFound": "Artículo no encontrado" - ,"ArticleNotAvailable": "Artículo no disponible" - - ,"StartOrder": "Empezar pedido" - ,"ShoppingBasket": "Ver cesta de la compra" - - ,"Realm": "Familia" - ,"Subtype": "Subtipo" - ,"Date:": "Fecha:" - ,"Warehouse:": "Almacén:" - ,"Search:": "Buscar:" - ,"GeneralSearch": "Búsqueda general" - - ,"Amount": "Cant" - ,"Aval": "Disp" - ,"Name": "Nombre" - ,"S1": "Med" - ,"S2": "S2" - ,"Stems": "Tallos" - ,"Cat": "Cat" - ,"Pack": "Pack" - ,"Origin": "Origen" - ,"AstPrice": "* Precio" - - ,"FixedPrices": "* Los precios resaltados en verde son fijos, el resto son orientativos." -} diff --git a/usr/share/hedera-web/locale/es/modules/contact.json b/usr/share/hedera-web/locale/es/modules/contact.json deleted file mode 100755 index fff7de6a..00000000 --- a/usr/share/hedera-web/locale/es/modules/contact.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "IWantCustomer": "¡Quiero ser cliente!" - - ,"FillFormData": "Rellene el formulario con sus datos y en breve nos pondremos en contacto con usted." - ,"OrCallUs": "O si lo prefiere llámenos al 963 242 100." - ,"AllFieldsMandatory": "* Todos los campos son obligatorios." - - ,"Name:": "Nombre:" - ,"Surname:": "Apellidos:" - ,"EMail:": "Correo electrónico:" - ,"Message:": "Mensaje:" - ,"Address:": "Dirección:" - ,"PC:": "Código postal:" - ,"City:": "Ciudad:" - ,"Phone:": "Teléfono:" - ,"Send": "Enviar datos" - - ,"DataSentSuccess": "Sus datos han sido enviados correctamente. En breve nos pondremos en contacto con usted." - ,"ErrorSendingData": "Error al enviar sus datos. Por favor, compruebe que ha rellenado todos los campos y que ha introducido el código anti-spam correctamente." -} diff --git a/usr/share/hedera-web/locale/es/modules/home.json b/usr/share/hedera-web/locale/es/modules/home.json deleted file mode 100755 index fd06f8e2..00000000 --- a/usr/share/hedera-web/locale/es/modules/home.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "Sent": "Enviado" - ,"Author": "Autor" - ,"votes": "votos" - ,"NoAnswerSelected": "No ha seleccionado ninguna respuesta" - ,"ThanksForVote": "¡Gracias por su voto!" - ,"Vote": "Votar" - ,"Total": "Total" - ,"BrownserRecommend": - "Verdnatura le recomienda utilizar el navegador web Mozilla Firefox para obtener toda la funcionalidad de nuestra página web." - ,"PressHere": "Pulse aquí para descargar Firefox" -} - diff --git a/usr/share/hedera-web/locale/es/modules/links.json b/usr/share/hedera-web/locale/es/modules/links.json deleted file mode 100755 index 8ca8aea0..00000000 --- a/usr/share/hedera-web/locale/es/modules/links.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Module": "Módulo" - ,"Description": "Descripción" -} diff --git a/usr/share/hedera-web/locale/es/modules/location.json b/usr/share/hedera-web/locale/es/modules/location.json deleted file mode 100755 index eb6899d5..00000000 --- a/usr/share/hedera-web/locale/es/modules/location.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ShowMap": "Mostrar Mapa" -} diff --git a/usr/share/hedera-web/locale/es/modules/new.json b/usr/share/hedera-web/locale/es/modules/new.json deleted file mode 100755 index c8148af3..00000000 --- a/usr/share/hedera-web/locale/es/modules/new.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "AddNew": "Añadir/Editar noticia" - - ,"Title:": "Título:" - ,"NewBody:": "Cuerpo:" - - ,"Cancel": "Cancelar" - ,"Accept": "Aceptar" -} diff --git a/usr/share/hedera-web/locale/es/modules/news.json b/usr/share/hedera-web/locale/es/modules/news.json deleted file mode 100755 index 89bb2d28..00000000 --- a/usr/share/hedera-web/locale/es/modules/news.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "NewsManagement": "Gestión de noticias" - - ,"AddNew": "Añadir noticia" - ,"EditNew": "Editar noticia" - - ,"NewNum": "Nº noticia" - ,"Date": "Fecha" - ,"Author": "Autor" - ,"Title": "Título" - ,"Priority": "Prioridad" -} diff --git a/usr/share/hedera-web/locale/es/modules/order.json b/usr/share/hedera-web/locale/es/modules/order.json deleted file mode 100755 index 3abb50dd..00000000 --- a/usr/share/hedera-web/locale/es/modules/order.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Delete": "Borrar pedido" - ,"GoToCatalog": "Acceder al catálogo" - ,"Checkout": "Tramitar pedido" - - ,"OrderNumber:": "Nº pedido:" - ,"DateExit:": "Fecha de salida:" - ,"Warehouse:": "Almacén:" - ,"OrderTotal:": "Total pedido:" - ,"VATNotIncluded": "(IVA y transporte no incluídos)" - - ,"Amount": "Cant" - ,"Pack": "Pack" - ,"Stems": "Tallos" - ,"Avail": "Disp" - ,"Item": "Artículo" - ,"Cat": "Cat" - ,"S1": "Med" - ,"Color": "Color" - ,"Origin": "Origen" - ,"Price": "Precio" - ,"Disc": "Desc" - ,"Subtotal": "Subtotal" - - ,"GoBasket": "Volver a la cesta" - ,"Confirm": "Confirmar" - - ,"PayCash": "Contrareembolso/Contado" - ,"PayMethod:": "Forma de pago:" - ,"Notes:": "Notas:" - ,"SendMethod:": "Forma de envío:" - ,"Insurance": "Asegurar mercancía: 5% del importe del pedido (Solo para envíos por agencia)" - - ,"Consignee": "Consignatario" - ,"Province": "Provincia" - ,"PC": "Código postal" - ,"City": "Ciudad" - ,"Address": "Domicilio" - - ,"SureDelOrder": "¿Está seguro de eliminar el pedido?" - ,"SureConfirmOrder": "¿Desea confirmar su pedido?" - ,"OrderConfirmed": "Su pedido ha sido procesado y confirmado correctamente" - - ,"ClientAcceptCash": "El cliente accepta pagar Contrareembolso/Contado" - ,"InetOrder": "Pedido realizado por Internet" - ,"NoOrderFound": "No se ha encontrado ningún pedido" - ,"NoArticleAdded": "No ha agregado ningún artículo a su pedido" - ,"OrderExceeded": "Ha excedido el numero maximo de pedidos por confirmar, por favor elimine o confirme los pedidos iniciados" - ,"HighQuantity": "Algunos artículos ya no están disponibles o hay mas cantidad de la disponible, revise los recuadros en rojo" - ,"NoArticleAdded": "No ha seleccionado ningun artículo" - ,"IsertOrderType": "Introduzca el tipo de pedido que desea" - ,"QuantityIntroduced": "La cantidad introducida de" - ,"IsHigherThan": "es mayor que la cantidad disponible, por lo tanto se agregará el máximo disponible" - ,"RoundedTo": "ha sido redondeada debido a que este artículo se vende por cajas" - ,"NoOrderAfterHour": "No es posible realizar pedidos para hoy despues de las" - ,"NoOrderOnHolidays": "No es posible realizar pedidos para Domingos o festivos" - ,"DateLow": "La fecha de envío debe de ser igual o superior al día de hoy" - ,"DateHigh": "La fecha introducida es demasiado grande" - ,"DateUpdatedTo": "El día de envío ha sido actualizado a el" - ,"CreditExceeded": "Ha excedido su crédito máximo permitido, si desea confimar el pedido de todas formas marque la casilla Pago Contrareembolso/Contado o reduzca el importe de su pedido en " - ,"InsuranceQuestion": "Las agencias de transporte disponen de un menor número de trabajadores en verano, por las vacaciones, lo que puede ocasionar retrasos en la entrega. Esto, unido al calor, ha causado, en algunas ocasiones, que la mercancía no llegara en óptimas condiciones. Ya que nuestros portes habituales no incluyen ningún tipo de seguro, le ofrecemos la posibilidad de asegurar este envio. El coste sería de el 5% del valor de la mercancía. ¿Desea contratarlo?" -} diff --git a/usr/share/hedera-web/locale/es/modules/orders.json b/usr/share/hedera-web/locale/es/modules/orders.json deleted file mode 100755 index e4246e6a..00000000 --- a/usr/share/hedera-web/locale/es/modules/orders.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "StartedOrdersDesc": - "Pedidos pendientes de confirmar." - - ,"StartOrder": "Empezar pedido" - ,"ContinueOrder": "Continuar pedido" - ,"OrderNumber": "Nº pedido" - ,"DateMake": "Fecha de creación" - ,"DateExit": "Fecha de salida" - ,"SendMethod": "Forma de envío" - - ,"ConfirmedOrdersDesc": - "Pedidos confirmados más recientes." - - ,"MoneyDelivery": "Entrega a cuenta" - ,"SeeOrder": "Mostrar detalle del pedido" - ,"TicketNumber": "Nº ticket" - ,"SentAddress": "Dirección de envío" - ,"Consignee": "Consignatario" - ,"Boxes": "Bultos" - ,"TotalWithVAT": "Total con IVA" - ,"Pending": "Pendiente" - ,"PayOrder": "Pagar pedido" - - ,"AmountToPay:": "Cantidad a pagar (€):" - ,"AmountError": "La cantidad debe ser un número positivo e inferior o igual al importe pendiente" - ,"PayError": "Error al realizar el pago" -} diff --git a/usr/share/hedera-web/locale/es/modules/ticket.json b/usr/share/hedera-web/locale/es/modules/ticket.json deleted file mode 100755 index 10b9df77..00000000 --- a/usr/share/hedera-web/locale/es/modules/ticket.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Print": "Imprimir albarán" - - ,"TicketNumber:": "Nº ticket:" - ,"DateExit:": "Fecha de envío:" - ,"SendMethod:": "Forma de envío:" - ,"Notes:": "Notas:" - ,"TicketTotal:": "Total pedido:" - ,"(VATIncluded)": "(IVA incluído)" - - ,"PC": "Código postal" - ,"City": "Ciudad" - ,"Province": "Provincia" - ,"Address": "Domicilio" - ,"Consignee": "Consignatario" - - ,"ItemNumber": "Nº artículo" - ,"Amount": "Cant" - ,"Item": "Artículo" - ,"Category": "Categoría" - ,"S1": "Med" - ,"Stems": "Tallos" - ,"Color": "Color" - ,"Origin": "Origen" - ,"Price": "Precio" - ,"Disc": "Desc" - ,"Subtotal": "Subtotal" -} diff --git a/usr/share/hedera-web/locale/es/modules/users.json b/usr/share/hedera-web/locale/es/modules/users.json deleted file mode 100755 index 08f31cc2..00000000 --- a/usr/share/hedera-web/locale/es/modules/users.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "UserManagement": "Gestión de usuarios" - - ,"UserName:": "Nombre de usuario:" - - ,"UserNumber": "Nº usuario" - ,"UserName": "Nombre de usuario" - ,"Alias": "Alias" - ,"Phone": "Teléfono" - ,"Mobile": "Móvil" - - ,"AccessAsUser": "Suplantar usuario" -} diff --git a/usr/share/hedera-web/locale/es/modules/visits.json b/usr/share/hedera-web/locale/es/modules/visits.json deleted file mode 100755 index 8a4f3649..00000000 --- a/usr/share/hedera-web/locale/es/modules/visits.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "Visits": "Visitas" - ,"VisitsManagement": "Gestión de visitas" - - ,"ActiveSessions": "Usuarios conectados" - ,"VisitsQuery": "Consulta de visitas" - ,"Refresh": "Actualizar" - - ,"ActiveSessions:": "Usuarios conectados:" - ,"NewVisitsTotal:": "Nuevas visitas:" - - ,"SessionNumber": "Nº sesión" - ,"User": "Usuario" - ,"Login": "Hora de acceso" - ,"LastActivity": "Última actividad" - ,"SO": "Sistema Operativo" - ,"Version": "Versión" - ,"NewVisit": "Nueva visita" - - ,"SelectDateInterval": "Seleccione un intérvalo de fechas" - ,"FromDate:": "Desde el día:" - ,"ToDate:": "Hasta el día:" - ,"VisitsTotal:": "Total visitas:" - - ,"Browser": "Navegador" - ,"MinVersion": "Versión mínima" - ,"MaxVersion": "Versión máxima" - ,"LastVisit": "Última visita" - ,"NewVisits": "Nuevas visitas" - ,"%a, %e %b %Y at %T": "%a, %e %b %Y a las %T" -} diff --git a/usr/share/hedera-web/locale/es/modules/why.json b/usr/share/hedera-web/locale/es/modules/why.json deleted file mode 100755 index 49172ca3..00000000 --- a/usr/share/hedera-web/locale/es/modules/why.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "AboutCompany": "¿Por qué Verdnatura?" - ,"StorePhoto": "Foto Almacén" - ,"AboutWhy": - "
  • Porque tenemos el catálogo más grande del sector, renovado diariamente.
  • Por esta página web, con stock en tiempo real siempre a tu disposición.
  • Por nuestro departamento de compras con 9 compradores especializados.
  • Porque es muy fácil hacer tu pedido por web, por teléfono o viniendo.
  • Por nuestras instalaciones, ven y visítanos. Te encantarán.
  • Por nuestro departamento comercial, con profesionales que siempre encontrarán una solución a tus necesidades.
  • Porque tenemos un taller de confección para ayudarte.
  • Porque tenemos lo que necesitas cuando lo necesitas...
  • " - - ,"AboutDesc": - "Somos una empresa dedicada a la venta mayorista y distribución de una amplia gama de complementos, verdes y flores naturales a floristerías u otros mayoristas." - - ,"AboutService": - "Disponemos de servicio de reparto a domicilio con nuestros vehículos por toda la provincia de Valencia y áreas limitadas de Castellón, Alicante, Murcia, Albacete y Madrid enviamos al resto de la península mediante agencias de transporte con servicio 24/48 horas (Zeleris, Viaexpress). También realizamos venta directa a floristas en cualquiera de nuestras instalaciones." - - ,"AboutDisp": - "Nuestra empresa dispone de más de 50 trabajadores y varias sucursales. La principal se encuentra situada en Valencia y cuenta con más de 8000 m2. También disponemos de un almacén situado en Mercaflor - Mercavalencia (Valencia) en el que únicamente realizamos venta directa." - - ,"AboutOrder": - "Puede realizar sus pedidos y reservas por teléfono llamando al 96 324 21 00, por Internet a través de nuestra página web o bien directamente en nuestras instalaciones." -} diff --git a/usr/share/hedera-web/locale/es/sections/login.json b/usr/share/hedera-web/locale/es/sections/login.json deleted file mode 100755 index a966452e..00000000 --- a/usr/share/hedera-web/locale/es/sections/login.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "User": "Usuario" - ,"Password": "Contraseña" - ,"NotCloseSession": "No cerrar sesión" - ,"IWantToKnowMore": "¡Quiero saber más!" - ,"Enter": "Entrar" -} diff --git a/usr/share/hedera-web/locale/es/sections/tpv.json b/usr/share/hedera-web/locale/es/sections/tpv.json deleted file mode 100755 index 9117f5f0..00000000 --- a/usr/share/hedera-web/locale/es/sections/tpv.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "PaymentComplete": "Pago terminado, ya puede volver a nuestra página web." - ,"ReturnToWeb": "Volver a Verdnatura" -} diff --git a/usr/share/hedera-web/locale/es/sections/update-browser.json b/usr/share/hedera-web/locale/es/sections/update-browser.json deleted file mode 100755 index 85ce3b73..00000000 --- a/usr/share/hedera-web/locale/es/sections/update-browser.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "UpdateYourBrowser": "Actualice su navegador" - ,"ContinueAnyway": "Continuar de todos modos" -} diff --git a/usr/share/hedera-web/locale/es/sections/web.json b/usr/share/hedera-web/locale/es/sections/web.json deleted file mode 100755 index 443b7269..00000000 --- a/usr/share/hedera-web/locale/es/sections/web.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Welcome": "Bienvenido/a" - ,"Exit": "Salir" -} diff --git a/usr/share/hedera-web/locale/fr/ajax/image.json b/usr/share/hedera-web/locale/fr/ajax/image.json deleted file mode 100755 index 7d518242..00000000 --- a/usr/share/hedera-web/locale/fr/ajax/image.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "BadFileFormat": "Formato de archivo no reconocido" - ,"FileNotChoosed": "No ha seleccionado ningún archivo" - ,"PermissionDenied": "No tiene permiso para subir el fichero" - ,"FileUploadError": "Error al subir el fichero, compruebe que su tamaño no sea demasiado grande" - ,"FileSaveError": "Error al guardar el fichero: %s" - ,"FileSizeError": "El fichero no debe ocupar mas de %.2f MB" - ,"BadFileName": "Solo es posible utilizar letras minúsculas, dígitos o el caráter '_' en el nombre del archivo" - ,"ComError": "Error en la comunicación con el servidor" - ,"ImageOpenError": "Error al abrir el archivo de imagen" -} diff --git a/usr/share/hedera-web/locale/fr/ajax/query.json b/usr/share/hedera-web/locale/fr/ajax/query.json deleted file mode 100755 index 445312b5..00000000 --- a/usr/share/hedera-web/locale/fr/ajax/query.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "InvalidAction": "Acción inválida" - - ,"EmptyQuery": "Consulta vacia" -} diff --git a/usr/share/hedera-web/locale/fr/js/db.js b/usr/share/hedera-web/locale/fr/js/db.js deleted file mode 100755 index 40fd84b5..00000000 --- a/usr/share/hedera-web/locale/fr/js/db.js +++ /dev/null @@ -1,9 +0,0 @@ -Vn.Locale.add -({ - "ConnError": "Échec de la connexion" - ,"InternalError": "Il y avait une erreur interne" - ,"BadServerReply": "Réponse du serveur incorrecte" - ,"ModelNotUpdatable": "Ce modèle n'est pas modifiable" - ,"RowNotExists": "Le dossier n'existe pas ou a été supprimée" - ,"ColNotExists": "N'existe pas la colonne" -}); diff --git a/usr/share/hedera-web/locale/fr/js/htk.js b/usr/share/hedera-web/locale/fr/js/htk.js deleted file mode 100755 index c5a89539..00000000 --- a/usr/share/hedera-web/locale/fr/js/htk.js +++ /dev/null @@ -1,24 +0,0 @@ -Vn.Locale.add -({ - "True": "Si" - ,"False": "Aucun" - ,"Null": "Nul" - ,"ChangeDate": "Modification de la date" - ,"Sort": "Ordre" - ,"At": "à" - ,"Of": "de" - ,"OfThe": "de" - ,"Remove": "Effacer" - ,"Loading": "Chargement" - ,"ReallyDelete": "Voulez-vous vraiment supprimer la ligne?" - ,"EmptyList": "Vider la liste" - ,"NoData": "Aucune donnée" - ,"ErrorLoadingData": "Erreur" - ,"Error": "Erreur" - ,"Image": "Image" - ,"File": "Archives" - ,"FileName": "Nom" - ,"UpdateImage": "Ajouter / Mettre à jour l'image" - ,"UploadFile": "Télécharger le fichier" - ,"Close": "Croche" -}); diff --git a/usr/share/hedera-web/locale/fr/js/vn.js b/usr/share/hedera-web/locale/fr/js/vn.js deleted file mode 100755 index 37b85202..00000000 --- a/usr/share/hedera-web/locale/fr/js/vn.js +++ /dev/null @@ -1,75 +0,0 @@ -Vn.Locale.add -({ - "Sunday": "Dimanche" - ,"Monday": "Lundi" - ,"Tuesday": "Mardi" - ,"Wednesday": "Mercredi" - ,"Thursday": "Jeudi" - ,"Friday": "Vendredi" - ,"Saturday": "Samedi" - - ,"Su": "Do" - ,"Mo": "Lu" - ,"Tu": "Ma" - ,"We": "Me" - ,"Th": "Je" - ,"Fr": "Ve" - ,"Sa": "Sa" - - ,"January": "Janvier" - ,"February": "Février" - ,"March": "Mars" - ,"April": "Avril" - ,"May": "Mai" - ,"June": "Juin" - ,"July": "Juillet" - ,"August": "Août" - ,"September": "Septembre" - ,"October": "Octobre" - ,"November": "Novembre" - ,"December": "Décembre" - - ,"Jan": "Jan" - ,"Feb": "Fév" - ,"Mar": "Mars" - ,"Apr": "Avr" - ,"May": "Mai" - ,"Jun": "Juin" - ,"Jul": "Juil" - ,"Ago": "Août" - ,"Sep": "Sep" - ,"Oct": "Oct" - ,"Nov": "Nov" - ,"Dec": "Déc" - - ,"AppName": "Verdnatura" - ,"Beta": "Beta" - ,"User": "Utilisateur" - ,"Password": "Mot de passe" - ,"Remember": "Rappeler" - ,"Enter": "entrer" - ,"Exit": "Laisser" - ,"Menu": "Menu" - ,"ErrorLoadingMod": "Module erreur de chargement" - ,"YoureVisitor": "¿Solo estás de visita?" - ,"NewVersionAvailable": "Une nouvelle version du site, Vous voulez mettre à niveau?" - ,"ChangeLog": "Modifications récentes" - ,"CookiesNotification": "En utilisant ce site, vous acceptez l'utilisation de cookies pour personnaliser le contenu et l'analyse." - - ,"Home": "Accueil" - ,"Orders": "Commandes" - ,"Catalog": "Catalogue" - ,"Configuration": "Configuration" - ,"About": "Nous" - ,"Why": "Pourquoi?" - ,"Location": "Emplacement" - ,"Administration": "Administration" - ,"Users": "Utilisateurs" - ,"Visits": "Visites" - ,"Agencies": "Agences" - ,"News": "Nouvelles" - ,"Contact": "Je veux être client" - - ,"SessionExpired": "Il a eu le temps de trop paresseux et votre session a expiré." - ,"InvalidLogin": "Utilisateur ou mot de passe incorrect. N'oubliez pas de distinction entre majuscules et minuscules." -}); diff --git a/usr/share/hedera-web/locale/fr/modules/about.json b/usr/share/hedera-web/locale/fr/modules/about.json deleted file mode 100755 index e3553626..00000000 --- a/usr/share/hedera-web/locale/fr/modules/about.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "QualityAndVariety": "Calidad, variedad y servicio" - - ,"MaximumFreshness": "Verdnatura te ofrece un producto con la máxima frescura garantizada, gracias a sus recepciones diarias de flor y planta procedentes de Holanda, Sudamérica, o desde el mismo productor." - ,"SquareMeters": "Más de 13.000m de instalaciones" - ,"AboutRealms": "Con flor cortada, verdes, artificial y complementos" - ,"AboutLocation": "Asentados en Valencia, Madrid, Barcelona, Holanda y Francia, ofrecemos venta directa en nuestras instalaciones y reparto a toda España mediante servicio propio o agencia." - ,"PurchaseThroughWeb": "Compra a través de nuestra web y recibe tu pedido cómodamente en tu floristería. ¡En menos de 24 horas!" - - ,"WhatMakeUsDifferent": "¿Que nos hace diferentes?" - - ,"DesignVariety": "La variedad en el diseño, la calidad de los materiales utilizados y nuestro servicio de reparto, te garantizan un muestrario de género dinámico, siempre fresco y atractivo." - ,"AdaptToYourNeeds": "Verdnatura se adapta a las necesidades de cada cliente ofreciéndole un amplio abanico de productos, garantizado siempre." - ,"TheBestQuality": "La mejor calidad al mejor precio. Sin olvidar nunca el diseño." - - ,"AtYourService": "Estamos a tu servicio" - - ,"BuyersAndTraders": "9 compradores especializados y nuestros 20 comerciales te asesorarán en todo lo que necesites." - - ,"Training": "Verdnatura formación" - - ,"GoodTraining": "En Verdnatura sabemos que una buena formación es imprescindible para el desarrollo óptimo de cualquier actividad, y cómo no, también la de florista." - ,"SpecialTrainingPrices": "Para que el presupuesto de una escuela no repercuta en la calidad de su formación, colaboramos con una política de precios especiales para todas aquellas escuelas que lo soliciten realizar cursos en nuestras instalaciones de Verdnatura Silla." - ,"YoutubeChannel": "Y no te pierdas los vídeos de Canal Verdnatura en Youtube. Donde encontrarás un montón de consejos muy interesantes sobre el manejo de la flor." - - ,"HowWeWork": "¿Cómo trabajamos?" - - ,"FirstQualityControl": "1º control de calidad" - ,"SecondQualityControl": "2º control de calidad" - ,"ThirdQualityControl": "3º control de calidad" - ,"FourthQualityControl": "4º control de calidad" - - ,"AalsmeerAuction": "Alas 5:00h, nuestros responsables de compras adquieren, en la subasta de Aalsmeer y Noaldwijk, el género que el productor ha cosechado el día anterior." - ,"BeforeAuction": "Tras su compra, este género entra rápidamente en Verdnatura Holland BV, nuestra empresa de Flora Holland, en Aalsmeer." - ,"DirectlyFromProviders": "Además de comprar a través de la subasta Holandesa, también compramos directamente a productores de Colombia, Ecuador, Thailandia, Malasia, África y Australia. Estos productos son supervisados directamente por nuestros delegados de compra ubicados en cada zona. Esta mercancía viajará a Amsterdam, sometida a un proceso de Vaacum y en menos de dos horas desde su aterrizaje, estará en nuestras instalaciones de Aalsmeer." - ,"GoodsDischarge": "A las 7:00h nuestros compañeros de Aalsmeer empiezan a recibir la mercancía comprada, pasando un primer control de calidad, y dándola de alta en nuestro stock. Ya está disponible para nuestros clientes en la web." - ,"GoodsTravel": "La mercancía viaja durante día y medio en camiones con compartimentos estancos a temperaturas diferentes, de manera que no se rompa la cadena de frío y viaje en las mejores condiciones." - ,"GoodsReception": "A la recepción de la mercancía el responsable de su compra revisa el estado en el que llega, aceptándola o rechazándola según el caso, se descarga en frío y rápidamente entra en nuestra cámara." - ,"CustomerOrders": "Nuestros clientes pueden hacer sus pedidos a través de la web, por teléfono o viniendo directamente a nuestras instalaciones. Tenemos un equipo de comerciales especializados que te asesorará en tu compra y que te informará de las novedades y artículos que puedan ser de tu interés, de forma que tu compra se ajuste a tus necesidades y quedes totalmente satisfecho." - ,"AfterOrder": "Una vez realizado el pedido, pasa al departamento de producción. Durante la preparación de este se realiza un nuevo control de calidad (el tercero) en el que se desechará la mercancía deficiente." - ,"BuyerControl": "En cuanto se finaliza la preparación, se realiza un nuevo control (el cuarto) donde un especialista cuenta y revisa el estado de los productos. En caso de que estos no cumplan con los estándares de calidad exigidos los rechaza y los sustituye por los adecuados." - ,"EmbeddedSection": "Seguidamente se lleva a la sección de encajado, donde el pedido es acondicionado para su correcta entrega. Cada tipo de entrega requiere un método de encajado adecuado para que el género viaje protegido y llegue al cliente en perfectas condiciones." - ,"AfterEmbedAgency": "En cuanto el producto ha sido encajado se almacena de nuevo en la cámara hasta su salida por agencia o por reparto propio, recibiéndolo el cliente, en 24h en el caso de la agencia o el mismo día en el caso del reparto, cómodamente en su domicilio." - ,"FreshnessGuaranteed": "Esta forma de trabajo garantiza la mayor frescura por la rapidez los procesos y por el mantenimiento de la cadena de frío desde compra hasta su recepción por nuestro cliente." - - ,"AboutSummary": "75 personas repartidas por casi todo el mundo para que nuestro cliente tenga el más amplio catálogo del sector, la flor más fresca, la planta más novedosa, los complementos más actuales, y el servicio más rápido posible." -} diff --git a/usr/share/hedera-web/locale/fr/modules/account.json b/usr/share/hedera-web/locale/fr/modules/account.json deleted file mode 100755 index 9e9e75dd..00000000 --- a/usr/share/hedera-web/locale/fr/modules/account.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "PasswordsChanged": "Mot de passe modifié!" - ,"PasswordsDoesntMatch": "Les mots de passe ne correspondent pas!" - ,"Configuration": "Configuration" - ,"UserNumber": "Numéro utilisateur:" - ,"UserName": "Utilisateur:" - ,"Password": "Mot de passe:" - ,"Email": "Courrier électronique:" - ,"Billing": "Facturation" - ,"BillingByEmail": "Envoi de factures par e-mail" -} diff --git a/usr/share/hedera-web/locale/fr/modules/agencies.json b/usr/share/hedera-web/locale/fr/modules/agencies.json deleted file mode 100755 index 5394818a..00000000 --- a/usr/share/hedera-web/locale/fr/modules/agencies.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "ListByAgency": "Listado de bultos por agencia" - - ,"ShowByProvince": "Mostrar desglose por provincia" - ,"Agency": "Agencia" - ,"Exps": "Exps" - ,"Bundles": "Bultos" - ,"Prevision": "Previsión" - - ,"ByProvince": "Desglose por provincia" - - ,"SelectAgency": "Seleccione una agencia en el listado de la izquierda" - ,"Province": "Provincia" - ,"Expeditions": "Expediciones" - ,"Left": "Faltan" -} diff --git a/usr/share/hedera-web/locale/fr/modules/catalog.json b/usr/share/hedera-web/locale/fr/modules/catalog.json deleted file mode 100755 index e5dbecb1..00000000 --- a/usr/share/hedera-web/locale/fr/modules/catalog.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "SelectFamily": "Choisissez la famille" - ,"SelectSubtype": "S'il vous plaît sélectionnez le sous-menu sur la droite" - ,"ArticleNotFound": "Article pas trouvé" - ,"ArticleNotAvailable": "Article pas disponible" - - ,"StartOrder": "Acheter" - ,"ShoppingBasket": "Voir mon panier" - - ,"Realm": "Famille" - ,"Subtype": "Sous-genre" - ,"Date:": "Date:" - ,"Warehouse:": "Magasin:" - ,"Search:": "Recherche:" - ,"GeneralSearch": "Recherche générale" - - ,"Amount": "Quant" - ,"Aval": "Disp" - ,"Name": "Nom" - ,"S1": "Mes" - ,"S2": "S2" - ,"Stems": "Tige" - ,"Cat": "Cat" - ,"Pack": "Pack" - ,"Origin": "Origine" - ,"AstPrice": "* Prix" - - ,"FixedPrices": "* Les prix en vert sont fixes, le reste sont orientatives." -} diff --git a/usr/share/hedera-web/locale/fr/modules/contact.json b/usr/share/hedera-web/locale/fr/modules/contact.json deleted file mode 100755 index ad10ff8b..00000000 --- a/usr/share/hedera-web/locale/fr/modules/contact.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "IWantCustomer": "Je veux être un client!" - - ,"FillFormData": "Remplissez le formulaire avec vos coordonnées et nous prendrons contact avec vous sous peu." - ,"OrCallUs": "Ou si vous préférez nous appeler au 0033 781 533 900." - ,"AllFieldsMandatory": "* Todos los campos son obligatorios." - - ,"Name:": "Nom:" - ,"Surname:": "Nom:" - ,"EMail:": "Email:" - ,"Message:": "Message:" - ,"Address:": "Adresse:" - ,"PC:": "Code postal:" - ,"City:": "Ville:" - ,"Phone:": "Téléphone:" - ,"Send": "Envoyer des données" - - ,"DataSentSuccess": "Vos détails ont été envoyés avec succès. Peu de temps nous vous contacterons." - ,"ErrorSendingData": "Échec de l'envoi de vos données. S'il vous plaît vérifiez que vous avez rempli tous les champs et a mis en place le code anti-spam correctement." -} diff --git a/usr/share/hedera-web/locale/fr/modules/home.json b/usr/share/hedera-web/locale/fr/modules/home.json deleted file mode 100755 index 8b6e12a6..00000000 --- a/usr/share/hedera-web/locale/fr/modules/home.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "Sent": "Enviado" - ,"Author": "Autor" - ,"votes": "votos" - ,"NoAnswerSelected": "No ha seleccionado ninguna respuesta" - ,"ThanksForVote": "¡Gracias por su voto!" - ,"Vote": "Voter" - ,"Total": "Total" - ,"BrownserRecommend": - "Verdnatura recommande d'utiliser le navigateur Web Mozilla Firefox pour obtenir toutes les fonctionnalités de notre site web." - ,"PressHere": "Cliquez ici pour télécharger Firefox" -} diff --git a/usr/share/hedera-web/locale/fr/modules/links.json b/usr/share/hedera-web/locale/fr/modules/links.json deleted file mode 100755 index f5ad68a7..00000000 --- a/usr/share/hedera-web/locale/fr/modules/links.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Module": "Module" - ,"Description": "Description" -} diff --git a/usr/share/hedera-web/locale/fr/modules/location.json b/usr/share/hedera-web/locale/fr/modules/location.json deleted file mode 100755 index 4b515c3a..00000000 --- a/usr/share/hedera-web/locale/fr/modules/location.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ShowMap": "Show Map" -} diff --git a/usr/share/hedera-web/locale/fr/modules/new.json b/usr/share/hedera-web/locale/fr/modules/new.json deleted file mode 100755 index 0500c1a2..00000000 --- a/usr/share/hedera-web/locale/fr/modules/new.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "AddNew": "Ajouter/Editer nouvelles" - - ,"Title:": "Titre:" - ,"NewBody:": "Corps:" - - ,"Cancel": "Annuler" - ,"Accept": "Accepter" -} diff --git a/usr/share/hedera-web/locale/fr/modules/news.json b/usr/share/hedera-web/locale/fr/modules/news.json deleted file mode 100755 index acd4ebf4..00000000 --- a/usr/share/hedera-web/locale/fr/modules/news.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "NewsManagement": "Gestion des nouvelles" - - ,"AddNew": "Ajouter nouvelles" - ,"EditNew": "Modifier nouvelles" - - ,"NewNum": "Nº nouvelles" - ,"Date": "Date" - ,"Author": "Auteur" - ,"Title": "Titre" - ,"Priority": "Priorité" -} diff --git a/usr/share/hedera-web/locale/fr/modules/order.json b/usr/share/hedera-web/locale/fr/modules/order.json deleted file mode 100755 index b261c6bb..00000000 --- a/usr/share/hedera-web/locale/fr/modules/order.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "Delete": "Effacer" - ,"GoToCatalog": "Accédez au catalogue" - ,"Checkout": "Caisse" - - ,"OrderNumber:": "Numéro de commande:" - ,"DateExit:": "Date de sortie:" - ,"Warehouse:": "Magasin:" - ,"OrderTotal:": "Total commande:" - ,"VATNotIncluded": "(TVA et frais de port non inclus)" - - ,"Amount": "Quant" - ,"Pack": "Pack" - ,"Stems": "Tige" - ,"Avail": "Disp" - ,"Item": "Nom" - ,"Cat": "Cat" - ,"S1": "Mes" - ,"Color": "Couleur" - ,"Origin": "Origine" - ,"Price": "* Prix" - ,"Disc": "Desc" - ,"Subtotal": "Sous-total" - - ,"GoBasket": "Retour au" - ,"Confirm": "Confirmer" - - ,"PayCash": "COD / Trésorerie" - ,"PayMethod:": "Mode de paiement:" - ,"Notes:": "Remarques:" - ,"SendMethod:": "Mode de livraison:" - ,"Insurance": "S'assurer que la marchandise: 5% du montant de la commande (uniquement pour les envois par agence)" - - ,"Consignee": "Destinataire" - ,"Province": "Province" - ,"PC": "Code postal" - ,"City": "Ville" - ,"Address": "Maison" - - ,"SureDelOrder": "Êtes-vous sûr de vouloir supprimer la commande?" - ,"SureConfirmOrder": "Voulez-vous confirmer votre commande?" - ,"OrderConfirmed": "Votre commande a été traitée avec succès et confirmé" - - ,"ClientAcceptCash": "Le client accepte régler en contre-remboursement/cash" - ,"InetOrder": "Commande passée par internet" - ,"NoOrderFound": "Aucune commande trouvée" - ,"NoArticleAdded": "Aucune produit dans sa commande" - ,"OrderExceeded": "Numéro maximum de commandes non confirmées, s'il vous plaît, confirmez ou supprimez les commandes déjà lancées" - ,"HighQuantity": "Certains produits ne sont pas déjà disponibles ou vous avez choissi pus quantité de la quantité disponible, revisez les champs en rouge" - ,"NoArticleAdded": "Vous n'avez pas choisi aucune produit" - ,"IsertOrderType": "Saisissez le type de commande" - ,"QuantityIntroduced": "La quantité saisie de" - ,"IsHigherThan": "est plus elevé que la quantité disponible, nous ajouterons le maximun disponible" - ,"RoundedTo": "arrondie, de vente en boîte" - ,"NoOrderAfterHour": "N'est pas possible passer commades aprés" - ,"NoOrderOnHolidays": "N'est pas possible passer commades Dimanche ou jours fériés" - ,"DateLow": "La date d'envoi doit être supérieure ou égale a ce jour" - ,"DateHigh": "La date saisie est tros grande" - ,"DateUpdatedTo": "Date d'envoi mise à jour a " - ,"CreditExceeded": "Ha excedido su crédito máximo permitido, si desea confimar el pedido de todas formas marque la casilla Pago Contrareembolso/Contado o reduzca el importe de su pedido en " - ,"InsuranceQuestion": "Las agencias de transporte disponen de un menor número de trabajadores en verano, por las vacaciones, lo que puede ocasionar retrasos en la entrega. Esto, unido al calor, ha causado, en algunas ocasiones, que la mercancía no llegara en óptimas condiciones. Ya que nuestros portes habituales no incluyen ningún tipo de seguro, le ofrecemos la posibilidad de asegurar este envio. El coste sería de el 5% del valor de la mercancía. ¿Desea contratarlo?" -} diff --git a/usr/share/hedera-web/locale/fr/modules/orders.json b/usr/share/hedera-web/locale/fr/modules/orders.json deleted file mode 100755 index 3570ceaf..00000000 --- a/usr/share/hedera-web/locale/fr/modules/orders.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "StartedOrdersDesc": - "Commandes en cours de confirmation." - - ,"StartOrder": "Acheter" - ,"ContinueOrder": "Continuer la commande" - ,"OrderNumber": "Numéro de commande" - ,"DateMake": "Date de creation" - ,"DateExit": "Date de sortie" - ,"SendMethod": "Typo" - - ,"ConfirmedOrdersDesc": - "Commandes confirmées." - - ,"MoneyDelivery": "Livraison de l'argent sur compte" - ,"SeeOrder": "Votre panier" - ,"TicketNumber": "Numéro ticket" - ,"SentAddress": "Adresse de livraison" - ,"Consignee": "Destinataire" - ,"Boxes": "Colis" - ,"TotalWithVAT": "Total avec TVA" - ,"Pending": "En attente" - ,"PayOrder": "Payer la commande" - - ,"AmountToPay:": "Montant à payer (€):" - ,"AmountError": "La quantité doit être un neméro positif et inférieur ou égal à la somme restant à payer" - ,"PayError": "Impossible d'effectuer le paiement" -} diff --git a/usr/share/hedera-web/locale/fr/modules/ticket.json b/usr/share/hedera-web/locale/fr/modules/ticket.json deleted file mode 100755 index 9c3a2d4d..00000000 --- a/usr/share/hedera-web/locale/fr/modules/ticket.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Print": "Imprimer bulletin de livraison" - - ,"TicketNumber:": "Num ticket:" - ,"DateExit:": "Date d'envoi:" - ,"SendMethod:": "Mode d'envoi:" - ,"Notes:": "Notes:" - ,"TicketTotal:": "Total:" - ,"(VATIncluded)": "(TVA comprise)" - - ,"PC": "Code postal" - ,"City": "Ville" - ,"Province": "Province" - ,"Address": "Maison" - ,"Consignee": "Destinataire" - - ,"ItemNumber": "Num article" - ,"Amount": "Quant" - ,"Item": "Article" - ,"Category": "catégorie" - ,"S1": "Mes" - ,"Stems": "Tiges" - ,"Color": "Couleur" - ,"Origin": "Origine" - ,"Price": "Prix" - ,"Disc": "Remise" - ,"Subtotal": "Sous-total" -} diff --git a/usr/share/hedera-web/locale/fr/modules/users.json b/usr/share/hedera-web/locale/fr/modules/users.json deleted file mode 100755 index d52867af..00000000 --- a/usr/share/hedera-web/locale/fr/modules/users.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "UserManagement": "Gestion des utilisateurs" - - ,"UserName:": "Nom d'utilisateur:" - - ,"UserNumber": "No. utilisateurs" - ,"UserName": "Nom d'utilisateur" - ,"Alias": "Alias" - ,"Phone": "Téléphone" - ,"Mobile": "Mobile" - - ,"AccessAsUser": "Identité de l'utilisateur" -} diff --git a/usr/share/hedera-web/locale/fr/modules/visits.json b/usr/share/hedera-web/locale/fr/modules/visits.json deleted file mode 100755 index 8a4f3649..00000000 --- a/usr/share/hedera-web/locale/fr/modules/visits.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "Visits": "Visitas" - ,"VisitsManagement": "Gestión de visitas" - - ,"ActiveSessions": "Usuarios conectados" - ,"VisitsQuery": "Consulta de visitas" - ,"Refresh": "Actualizar" - - ,"ActiveSessions:": "Usuarios conectados:" - ,"NewVisitsTotal:": "Nuevas visitas:" - - ,"SessionNumber": "Nº sesión" - ,"User": "Usuario" - ,"Login": "Hora de acceso" - ,"LastActivity": "Última actividad" - ,"SO": "Sistema Operativo" - ,"Version": "Versión" - ,"NewVisit": "Nueva visita" - - ,"SelectDateInterval": "Seleccione un intérvalo de fechas" - ,"FromDate:": "Desde el día:" - ,"ToDate:": "Hasta el día:" - ,"VisitsTotal:": "Total visitas:" - - ,"Browser": "Navegador" - ,"MinVersion": "Versión mínima" - ,"MaxVersion": "Versión máxima" - ,"LastVisit": "Última visita" - ,"NewVisits": "Nuevas visitas" - ,"%a, %e %b %Y at %T": "%a, %e %b %Y a las %T" -} diff --git a/usr/share/hedera-web/locale/fr/modules/why.json b/usr/share/hedera-web/locale/fr/modules/why.json deleted file mode 100755 index edd4516e..00000000 --- a/usr/share/hedera-web/locale/fr/modules/why.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "AboutCompany": "Pourquoi Verdnatura?" - ,"StorePhoto": "Photo Magasin" - ,"AboutWhy": - "
  • Parce que nous avons le plus grand catalogue du secteur, renouvelé tous les jours.
  • Parce que avec ce site web vous avez un stock accessible en temps réel.
  • Parce que notre service d'achat dispose de 9 acheteurs spécialisés.
  • Parce qu'il est très facile de passer commande par internet ou par téléphone.
  • Parce que notre département commercial dispose de professionnels qui trouveront toujours la solution qui vous convient .
  • Parce que nous avons ce qu'il vous faut quand vous en avez besoin.
  • " - - ,"AboutDesc": - "Somos una empresa dedicada a la venta mayorista y distribución de una amplia gama de complementos, verdes y flores naturales a floristerías u otros mayoristas." - - ,"AboutService": - "Disponemos de servicio de reparto a domicilio con nuestros vehículos por toda la provincia de Valencia y áreas limitadas de Castellón, Alicante, Murcia, Albacete y Madrid enviamos al resto de la península mediante agencias de transporte con servicio 24/48 horas (Zeleris, Viaexpress). También realizamos venta directa a floristas en cualquiera de nuestras instalaciones." - - ,"AboutDisp": - "Nuestra empresa dispone de más de 50 trabajadores y varias sucursales. La principal se encuentra situada en Valencia y cuenta con más de 8000 m2. También disponemos de un almacén situado en Mercaflor - Mercavalencia (Valencia) en el que únicamente realizamos venta directa." - - ,"AboutOrder": - "Puede realizar sus pedidos y reservas por teléfono llamando al 96 324 21 00, por Internet a través de nuestra página web o bien directamente en nuestras instalaciones." -} diff --git a/usr/share/hedera-web/locale/fr/sections/login.json b/usr/share/hedera-web/locale/fr/sections/login.json deleted file mode 100755 index 73051040..00000000 --- a/usr/share/hedera-web/locale/fr/sections/login.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "User": "Utilisateur" - ,"Password": "Mot de passe" - ,"NotCloseSession": "Garder ma session active" - ,"IWantToKnowMore": "En savoir plus!" - ,"Enter": "Entrer" -} diff --git a/usr/share/hedera-web/locale/fr/sections/tpv.json b/usr/share/hedera-web/locale/fr/sections/tpv.json deleted file mode 100755 index d87f4ce7..00000000 --- a/usr/share/hedera-web/locale/fr/sections/tpv.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "PaymentComplete": "Le paiement terminé, vous pouvez maintenant revenir à notre site." - ,"ReturnToWeb": "Retour au Verdnatura" -} diff --git a/usr/share/hedera-web/locale/fr/sections/update-browser.json b/usr/share/hedera-web/locale/fr/sections/update-browser.json deleted file mode 100755 index c9e977e0..00000000 --- a/usr/share/hedera-web/locale/fr/sections/update-browser.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "UpdateYourBrowser": "Mettez à jour votre navigateur" - ,"ContinueAnyway": "Continuer" -} diff --git a/usr/share/hedera-web/locale/fr/sections/web.json b/usr/share/hedera-web/locale/fr/sections/web.json deleted file mode 100755 index dff01b04..00000000 --- a/usr/share/hedera-web/locale/fr/sections/web.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Welcome": "Bienvenue" - ,"Exit": "Sortir" -} diff --git a/usr/share/hedera-web/module.php b/usr/share/hedera-web/module.php deleted file mode 100755 index b4174000..00000000 --- a/usr/share/hedera-web/module.php +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/usr/share/hedera-web/modules/about/about.js b/usr/share/hedera-web/modules/about/about.js deleted file mode 100755 index 3afbcc80..00000000 --- a/usr/share/hedera-web/modules/about/about.js +++ /dev/null @@ -1,6 +0,0 @@ - -Vn.About = new Class -({ - Extends: Vn.Module -}); - diff --git a/usr/share/hedera-web/modules/about/html.php b/usr/share/hedera-web/modules/about/html.php deleted file mode 100755 index c12b2aab..00000000 --- a/usr/share/hedera-web/modules/about/html.php +++ /dev/null @@ -1,83 +0,0 @@ -
    -
    -

    -

    -

    - store -

    -

    - trailer -

    - dealer - -

    - palletizing -
    -
    -

    -

    - differentiates_us -

    -

    -
    -
    -

    -

    - commercial -
    -
    -

    -

    - training -

    - courses -

    - youtube -
    -
    -

    -

    - auction -

    - producers -

    -

    - goods_transport -

    - - glass -

    - goods_receive -

    - 2_control -

    -

    - - glass -

    -

    - web -

    - 4_control -

    - - glass -

    -

    -

    - - glass -

    -

    - fit -

    - agencies -

    -
    -
    -

    - - logo_small -

    -
    -
    diff --git a/usr/share/hedera-web/modules/about/image/2_control.png b/usr/share/hedera-web/modules/about/image/2_control.png deleted file mode 100755 index baf92e2e..00000000 Binary files a/usr/share/hedera-web/modules/about/image/2_control.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/4_control.png b/usr/share/hedera-web/modules/about/image/4_control.png deleted file mode 100755 index e40677f9..00000000 Binary files a/usr/share/hedera-web/modules/about/image/4_control.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/agencies.png b/usr/share/hedera-web/modules/about/image/agencies.png deleted file mode 100755 index 22efc294..00000000 Binary files a/usr/share/hedera-web/modules/about/image/agencies.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/auction.png b/usr/share/hedera-web/modules/about/image/auction.png deleted file mode 100755 index 2c6c71b8..00000000 Binary files a/usr/share/hedera-web/modules/about/image/auction.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/commercial.png b/usr/share/hedera-web/modules/about/image/commercial.png deleted file mode 100755 index 9047d848..00000000 Binary files a/usr/share/hedera-web/modules/about/image/commercial.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/courses.png b/usr/share/hedera-web/modules/about/image/courses.png deleted file mode 100755 index 95e78235..00000000 Binary files a/usr/share/hedera-web/modules/about/image/courses.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/dealer.png b/usr/share/hedera-web/modules/about/image/dealer.png deleted file mode 100755 index 6d306d1b..00000000 Binary files a/usr/share/hedera-web/modules/about/image/dealer.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/differentiates_us.png b/usr/share/hedera-web/modules/about/image/differentiates_us.png deleted file mode 100755 index 0ba177e9..00000000 Binary files a/usr/share/hedera-web/modules/about/image/differentiates_us.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/fit.png b/usr/share/hedera-web/modules/about/image/fit.png deleted file mode 100755 index 27d36e60..00000000 Binary files a/usr/share/hedera-web/modules/about/image/fit.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/glass.png b/usr/share/hedera-web/modules/about/image/glass.png deleted file mode 100755 index 53bfc34f..00000000 Binary files a/usr/share/hedera-web/modules/about/image/glass.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/goods_receive.png b/usr/share/hedera-web/modules/about/image/goods_receive.png deleted file mode 100755 index ac0a3b50..00000000 Binary files a/usr/share/hedera-web/modules/about/image/goods_receive.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/goods_transport.png b/usr/share/hedera-web/modules/about/image/goods_transport.png deleted file mode 100755 index 18ae6dc4..00000000 Binary files a/usr/share/hedera-web/modules/about/image/goods_transport.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/palletizing.png b/usr/share/hedera-web/modules/about/image/palletizing.png deleted file mode 100755 index 3fec9c36..00000000 Binary files a/usr/share/hedera-web/modules/about/image/palletizing.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/producers.png b/usr/share/hedera-web/modules/about/image/producers.png deleted file mode 100755 index 0a8949d5..00000000 Binary files a/usr/share/hedera-web/modules/about/image/producers.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/store.png b/usr/share/hedera-web/modules/about/image/store.png deleted file mode 100755 index 266be20c..00000000 Binary files a/usr/share/hedera-web/modules/about/image/store.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/summary.png b/usr/share/hedera-web/modules/about/image/summary.png deleted file mode 100755 index 7e3fc8e3..00000000 Binary files a/usr/share/hedera-web/modules/about/image/summary.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/trailer.png b/usr/share/hedera-web/modules/about/image/trailer.png deleted file mode 100755 index accd4db6..00000000 Binary files a/usr/share/hedera-web/modules/about/image/trailer.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/training.png b/usr/share/hedera-web/modules/about/image/training.png deleted file mode 100755 index 4e925700..00000000 Binary files a/usr/share/hedera-web/modules/about/image/training.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/web.png b/usr/share/hedera-web/modules/about/image/web.png deleted file mode 100755 index bbdb4903..00000000 Binary files a/usr/share/hedera-web/modules/about/image/web.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/image/youtube.png b/usr/share/hedera-web/modules/about/image/youtube.png deleted file mode 100755 index 2be1cc74..00000000 Binary files a/usr/share/hedera-web/modules/about/image/youtube.png and /dev/null differ diff --git a/usr/share/hedera-web/modules/about/style.css b/usr/share/hedera-web/modules/about/style.css deleted file mode 100755 index 5cffb31e..00000000 --- a/usr/share/hedera-web/modules/about/style.css +++ /dev/null @@ -1,82 +0,0 @@ -#about -{ - position: relative; - max-width: 50em; - display: block; - margin: 0px auto; -} -#about h1 -{ - text-align: center; - font-size: 20px; - font-weight: normal; - margin: 20px 0px; - background-color: #F91; - border: #D70 solid 1px; - border-radius: 2px; -} -#about h2 -{ - text-align: center; - font-size: 15px; - margin: 15px; -} -#about h3 -{ - text-align: center; - font-size: 16px; - color: #4A1; - margin: 15px; -} -#about p -{ - width: 90%; - font-size: 15px; - display: block; - margin: 20px auto; -} -#about p.summary -{ - width: 370px; - text-align: center; - font-weight: bold; - background-color: #FF8; - padding: 30px; - border: #DD6 solid 1px; - border-radius: 2px; - margin: 40px auto; -} - -/* Images */ - -#about img -{ - text-align: center; - padding: 15px; - display: block; - margin: 0px auto; -} -#about img[alt="producers"], -#about img[alt="4_control"], -#about img[alt="dealer"], -#about img[alt="goods_transport"] -{ - float: right; -} -#about img[alt="2_control"] -{ - float: left; -} -#about img[alt="glass"] -{ - display: inline; - padding: 0px; - padding-left: 10px; - vertical-align: middle; -} -#about img[alt="logo_small"] -{ - padding: 0px; - padding-top: 30px; -} - diff --git a/usr/share/hedera-web/modules/account/account.js b/usr/share/hedera-web/modules/account/account.js deleted file mode 100755 index 34d8a5fd..00000000 --- a/usr/share/hedera-web/modules/account/account.js +++ /dev/null @@ -1,81 +0,0 @@ - -Vn.Account = new Class -({ - Extends: Vn.Module - - ,activate: function () - { - var model = this.get ('user-model'); - model.setTableInfo ('u', 'user_view'); - model.setTableInfo ('c', 'customer_view'); - - this.get ('password').conn = this.conn; - } -}); - -Htk.Password = new Class -({ - Extends: Htk.Widget - ,Tag: 'htk-password' - - ,initialize: function () - { - this.createElement ('div'); - this.node.className = 'htk-password'; - - var passwordEntry = document.createElement ('input'); - passwordEntry.type = 'password'; - passwordEntry.value = '123456'; - passwordEntry.addEventListener ('change', this.passCheckAndChange.bind (this)); - this.node.appendChild (passwordEntry); - - var repeatEntry = document.createElement ('input'); - repeatEntry.type = 'password'; - repeatEntry.addEventListener ('change', this.passCheckAndChange.bind (this)); - this.node.appendChild (repeatEntry); - - var logNode = document.createElement ('span'); - this.node.appendChild (logNode); - - this.logNode = logNode; - this.passwordEntry = passwordEntry; - this.repeatEntry = repeatEntry; - } - - ,passCheckAndChange: function () - { - var newPassword = this.passwordEntry.value; - var repeatedPassword = this.repeatEntry.value; - - Vn.Node.removeChilds (this.logNode); - - if (newPassword != '' && repeatedPassword != '') - { - if (newPassword !== repeatedPassword) - { - this.logNode.style.color = 'red'; - Vn.Node.setText (this.logNode, _('PasswordsDoesntMatch')); - } - else - { - var batch = new Sql.Batch (); - batch.addValue ('password', newPassword); - - var query = 'UPDATE user_view SET password = MD5(#password) ' - +'WHERE id = account.user_get_id () LIMIT 1'; - - this.conn.execQuery (query, this.passUpdated.bind (this), batch); - } - } - } - - ,passUpdated: function (resultSet) - { - if (!resultSet.fetchResult ()) - return; - - this.logNode.style.color = 'green'; - Vn.Node.setText (this.logNode, _('PasswordsChanged')); - } -}); - diff --git a/usr/share/hedera-web/modules/account/html.php b/usr/share/hedera-web/modules/account/html.php deleted file mode 100755 index 50c00b41..00000000 --- a/usr/share/hedera-web/modules/account/html.php +++ /dev/null @@ -1,56 +0,0 @@ -
    - - - - SELECT id, u.name, password, email, mail, c.user_id - FROM user_view u - LEFT JOIN customer_view c - ON u.id = c.user_id - - - -

    - - - - - - - - - - - - - - - - - - - - - - - -
    - - - -
    - - - -
    - - - -
    - - - -
    - - -
    -
    diff --git a/usr/share/hedera-web/modules/account/style.css b/usr/share/hedera-web/modules/account/style.css deleted file mode 100755 index 80d4e5a9..00000000 --- a/usr/share/hedera-web/modules/account/style.css +++ /dev/null @@ -1,22 +0,0 @@ -#account h1 -{ - font-weight: normal; - text-align: center; - font-size: 20px; - margin: 15px; -} -#account table.form -{ - border-collapse: separate; - border-spacing: 10px; -} -#account td.label -{ - width: 48%; -} - -.htk-password input -{ - width: 75px; - margin-right: 10px; -} diff --git a/usr/share/hedera-web/modules/agencies/agencies.js b/usr/share/hedera-web/modules/agencies/agencies.js deleted file mode 100755 index d40a9bca..00000000 --- a/usr/share/hedera-web/modules/agencies/agencies.js +++ /dev/null @@ -1,16 +0,0 @@ - -Vn.Agencies = new Class -({ - Extends: Vn.Module - - ,activate: function () - { - this.get ('column-show').on ('clicked', this.onShowClick, this); - } - - ,onShowClick: function (column, agencyId) - { - this.get ('agency-id').value = agencyId; - } -}); - diff --git a/usr/share/hedera-web/modules/agencies/html.php b/usr/share/hedera-web/modules/agencies/html.php deleted file mode 100755 index 827714d1..00000000 --- a/usr/share/hedera-web/modules/agencies/html.php +++ /dev/null @@ -1,31 +0,0 @@ -
    -
    -

    - - - CALL vn2008.agencia_volume () - - - - - - - -
    -
    -

    - - - - CALL vn2008.desglose_volume (#agency) - - - - - - - - - -
    -
    diff --git a/usr/share/hedera-web/modules/agencies/style.css b/usr/share/hedera-web/modules/agencies/style.css deleted file mode 100755 index 8775bb9d..00000000 --- a/usr/share/hedera-web/modules/agencies/style.css +++ /dev/null @@ -1,39 +0,0 @@ -#agencies -{ - position: relative; - height: 100%; - width: 100%; -} -#agencies div.panel -{ - position: absolute; - top: 0px; - bottom: 0px; - padding-top: 15px; - padding-bottom: 15px; - overflow: auto; -} -#agencies-left -{ - width: 50%; - left: 0px; -} -#agencies-right -{ - width: 50%; - right: 0px; -} -#agencies h2 -{ - text-align: center; - padding-bottom: 15px; - -} -#agencies table.grid -{ - position: relative -} -#agencies tbody tr -{ - height: 30px; -} diff --git a/usr/share/hedera-web/modules/catalog/catalog.js b/usr/share/hedera-web/modules/catalog/catalog.js deleted file mode 100755 index 46146128..00000000 --- a/usr/share/hedera-web/modules/catalog/catalog.js +++ /dev/null @@ -1,262 +0,0 @@ - -Vn.Catalog = new Class -({ - Extends: Vn.Module - - ,activate: function () - { - Vn.get ('basket').addEventListener ('click', this.basketClicked.bind (this)); - - var model = this.get ('items'); - model.setTableInfo ('m', 'order_row_view'); - model.setFieldFlags ('id', Db.Conn.Flag.AI); - model.setFieldFlags ('Id_Article', Db.Conn.Flag.PRI_KEY); - - this.get ('type-column').renderer = this.typeRenderer.bind (this); - this.get ('cat').renderer = this.catRenderer; - - this.get ('realms').setConn (this.conn); - this.get ('order-form').on ('status-changed', this.orderFormChanged.bind (this)); - this.get ('warehouse').value = 1; - this.get ('date').value = new Date (); - - if (!Vn.Url.getQuery ('guest')) - { - var orderId = Vn.Cookie.getInt ('order'); - - if (!orderId) - this.configureView (); - else - this.get ('order-batch').addValue ('order', orderId); - } - else - this.get ('order').value = 0; - } - - ,configureView: function () - { - var orderId = 0; - var grid = this.get ('items-grid'); - var orderForm = this.get ('order-form'); - - if (orderForm.numRows > 0) - { - orderForm.row = 0; - orderId = orderForm.get ('id'); - - Vn.Node.setText (Vn.get ('basket'), _('ShoppingBasket')); - - var items = this.get ('items'); - items.updatable = true; - items.setDefaultFromColumn ('item_id', 'm', 'Id_Article'); - items.setDefaultFromValue ('order_id', 'm', orderId); - - var amountCol = new Htk.ColumnSpin - ({ - title: 'Amount' - ,editable: true - ,renderer: this.amountRender - }); - amountCol.on ('changed', this.amountChanged.bind (this)); - grid.insertColumn (1, amountCol); - - var stemsCol = new Htk.ColumnSpin - ({ - title: 'Stems' - ,editable: true - ,column: 'amount' - }); - grid.insertColumn (3, stemsCol); - - this.get ('warehouse').master = orderForm.getParam ('wh_id'); - this.get ('date').master = orderForm.getParam ('date_send'); - } - else - Vn.Cookie.unset ('order'); - - this.get ('order').value = orderId; - - var priceCol = new Htk.ColumnSpin - ({ - title: 'AstPrice' - ,digits: 2 - ,unit: '€' - ,column: 'price' - ,renderer: this.priceRenderer - }); - grid.insertColumn (11, priceCol); - - Vn.get ('basket').disabled = false; - } - - ,orderFormChanged: function (form) - { - if (form.ready) - this.configureView (); - } - - ,basketClicked: function () - { - this.hash.set ({'module': 'order'}); - } - - ,typeRenderer: function (column, form) - { - column.href = this.hash.make ({'type': form.get ('tipo_id')}, true); - } - - ,amountRender: function (renderer, form) - { - var amount = form.get ('amount'); - var grouping = form.get ('grouping'); - - if (amount && grouping) - renderer.value = amount / grouping; - else - renderer.value = null; - } - - ,amountChanged: function (renderer, row, newValue) - { - var model = this.get ('items'); - model.set (row, 'amount', newValue * model.get (row, 'grouping')); - } - - ,catRenderer: function (column, form) - { - switch (form.get ('Categoria')) - { - case 'A2': - column.td.className = 'second-category'; - break; - case 'B1': - column.td.className = 'third-category'; - break; - default: - column.td.className = ''; - } - } - - ,priceRenderer: function (column, form) - { - if (form.get ('fixed')) - column.td.className = 'fixed-price'; - else - column.td.className = 'aprox-price'; - } -}); - -Htk.Realm = new Class -({ - Extends: Htk.Field - ,Tag: 'htk-realm' - - ,model: null - ,selectedImg: null - - ,initialize: function (mod) - { - this.createElement ('div'); - this.node.className = 'htk-realm'; - - this.model = new Db.Model (); - this.model.on ('status-changed', this.modelReloaded.bind (this)); - - var query = 'SELECT id, reino FROM vn2008.reinos ' - +'WHERE display != FALSE ' - +'ORDER BY reino'; - this.model.query = query; - } - - ,setConn: function (conn) - { - this.model.conn = conn; - } - - ,modelReloaded: function (model, status) - { - Vn.Node.removeChilds (this.node); - - if (status != Db.Model.Status.READY) - return; - - for (var i = 0; i < model.numRows; i++) - { - var id = model.get (i, 'id'); - - var img = document.createElement ('img'); - img.src = Vn.Config['imageDir'] +'/family/'+ id +'.png'; - img.title = model.get (i, 'reino'); - img.alt = img.title; - img.addEventListener ('click', this.clicked.bind (this, img, id)); - this.node.appendChild (img); - - if (id == this.value) - this.focusImage (img); - } - } - - ,focusImage: function (img) - { - if (this.selectedImg) - this.selectedImg.className = ''; - - img.className = 'selected'; - this.selectedImg = img; - } - - ,clicked: function (img, value) - { - this.focusImage (img); - - if (value != this.value) - this.valueChanged (value); - } - - ,putValue: function (value) - { - var row = this.model.search ('id', value); - - if (row != -1) - this.focusImage (this.node.childNodes[row]); - } -}); - -Htk.Nuller = new Class -({ - Extends: Htk.Field - ,Tag: 'htk-nuller' - - ,previousValue: null - - ,initialize: function () - { - this.parent (); - this.createElement ('input'); - this.node.type = 'checkbox'; - this.node.addEventListener ('change', this.changed.bind (this)); - this.putValue (this.value); - } - - ,changed: function () - { - this.valueChanged (this.node.checked ? null : this.previousValue); - } - - ,putValue: function (value) - { - if (value !== null && value !== undefined) - { - this.node.checked = false; - this.previousValue = value; - } - else - this.node.checked = true; - } - - ,setEditable: function (editable) - { - this.node.disabled = !editable; - } -}); - diff --git a/usr/share/hedera-web/modules/catalog/html.php b/usr/share/hedera-web/modules/catalog/html.php deleted file mode 100755 index a46bf738..00000000 --- a/usr/share/hedera-web/modules/catalog/html.php +++ /dev/null @@ -1,126 +0,0 @@ -
    - - - - - - - SELECT date_send, wh_id, id FROM order_view WHERE id = #order - - - -
    - - - - - - - - - - - - - CALL item (#warehouse, #date); - SELECT i.grouping, m.amount, Foto, i.available, Article, Categoria, - Medida, Tallos, Color, o.Abreviatura, price, fixed, m.id, - Id_Article - FROM vn2008.Articles a - INNER JOIN vn2008.item_catalog i ON i.item_id = a.Id_Article - LEFT JOIN vn2008.Origen o ON a.id_origen = o.id - LEFT JOIN order_row_view m - ON m.item_id = a.Id_Article AND m.order_id = #order - WHERE #filter AND available > 0 - ORDER BY Article, Medida - LIMIT 400 - - - - - - - - - - - - - - - - - -

    - -

    -
    -
    -
    - -
    - - - - - - - - SELECT tipo_id, Tipo FROM vn2008.Tipos - WHERE reino_id = #realm AND Orden != 0 ORDER BY Orden DESC, Tipo - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - -
    - - - - - SELECT id, name FROM vn2008.warehouse - WHERE reserve ORDER BY name - - - -
    - - - - - -
    - - - -
    -
    -
    diff --git a/usr/share/hedera-web/modules/catalog/style.css b/usr/share/hedera-web/modules/catalog/style.css deleted file mode 100755 index 5f4d24e1..00000000 --- a/usr/share/hedera-web/modules/catalog/style.css +++ /dev/null @@ -1,127 +0,0 @@ -#catalog -{ - position: relative; - height: 100%; - width: 100%; -} -#catalog-left -{ - position: absolute; - top: 0px; - right: 240px; - left: 0px; - bottom: 0px; - padding-top: 15px; - padding-bottom: 15px; - overflow: auto; -} -#catalog-right -{ - position: absolute; - top: 0px; - right: 0px; - bottom: 0px; - width: 225px; - margin: 8px; -} - -#catalog-left p -{ - text-align: center; - font-size: 12px; -} - -/* Right panel */ - -#search-entry -{ - width: 110px; -} -#basket -{ - width: 95%; - text-align: center; -} -#types-grid tbody -{ - height: 200px; - display: block; - overflow: auto; -} - -/* Realms */ - -.htk-realm -{ - height: 50px; - text-align: center; - margin-top: 8px; - vertical-align: middle; -} -.htk-realm img -{ - padding: 1px; - height: 32px; - cursor: pointer; -} -.htk-realm img.selected, -.htk-realm img:hover -{ - height: 37px; -} - -/* Types */ - -#types-grid tbody tr -{ - display: block; - width: 100%; - height: 25px; -} -#types-grid tbody td -{ - display: block; - width: 100%; - padding: 0; -} -#types-grid tbody a -{ - display: block; - padding: 4px 7%; - width: 86%; - height: 100%; -} -#types-grid tbody a:hover -{ - background-color: #EEE; -} -#types-grid td.grid-message -{ - padding-top: 15px; -} - -/* Catalog */ - -#catalog-left table.grid tbody tr -{ - height: 45px; -} -td.second-category -{ - font-weight: bold; - color: orange; -} -td.third-category -{ - font-weight: bold; - color: red; -} -td.fixed-price -{ - color: green; -} -td.aprox-price -{ - color: red; -} - diff --git a/usr/share/hedera-web/modules/contact/IndieFlower.ttf b/usr/share/hedera-web/modules/contact/IndieFlower.ttf deleted file mode 100755 index 31679a8a..00000000 Binary files a/usr/share/hedera-web/modules/contact/IndieFlower.ttf and /dev/null differ diff --git a/usr/share/hedera-web/modules/contact/captcha.php b/usr/share/hedera-web/modules/contact/captcha.php deleted file mode 100755 index cc5f256b..00000000 --- a/usr/share/hedera-web/modules/contact/captcha.php +++ /dev/null @@ -1,47 +0,0 @@ - 200 - ,'height' => 60 - ,'output' => 'png' - ,'imageOptions' => array - ( - 'font_size' => 20 - ,'font_path' => './' - ,'font_file' => 'IndieFlower.ttf' - ,'text_color' => '#559955' - ,'lines_color' => '#559955' - ,'background_color' => '#DDDDDD' - ,'antialias' => true - ) -); - -$captcha = Text_CAPTCHA::factory ('Image'); -$retval = $captcha->init ($options); - -if (PEAR::isError ($retval)) -{ - printf ('Error initializing CAPTCHA: %s!', $retval->getMessage()); - exit; -} - -$png = $captcha->getCAPTCHA (); - -if (PEAR::isError ($png)) -{ - printf ('Error generating CAPTCHA: %s!', $png->getMessage ()); - exit; -} - -// Get secret passphrase -$_SESSION['captcha'] = $captcha->getPhrase (); - -header ('Content-Type: image/png'); -echo $png; - -?> diff --git a/usr/share/hedera-web/modules/contact/contact.js b/usr/share/hedera-web/modules/contact/contact.js deleted file mode 100755 index 24e5b88a..00000000 --- a/usr/share/hedera-web/modules/contact/contact.js +++ /dev/null @@ -1,76 +0,0 @@ - -Vn.Contact = new Class -({ - Extends: Vn.Module - - ,activate: function () - { - var self = this; - var form = Vn.get ('contact-form').onsubmit = function () - { self.onSubmit (); return false; }; - - this.refreshCaptcha (); - } - - ,refreshCaptcha: function () - { - var url = 'modules/contact/captcha.php'; - Vn.get ('captcha').src = url +'?'+ new Date ().getTime (); - } - - ,onSubmit: function () - { - var form = Vn.get ('contact-form'); - - var request = new Vn.FormRequest (); - request.send (form, this.onResponse.bind (this)); - } - - ,onResponse: function (response) - { - var form = Vn.get ('contact-form'); - - if (response) - { - form.reset (); - alert (_('DataSentSuccess')); - } - else - alert (_('ErrorSendingData')); - - form['captcha'].value = ''; - this.refreshCaptcha (); - } -}); - -Vn.FormRequest = new Class -({ - send: function (form, callback) - { - var formData = ''; - var elements = form.elements; - - for (var i = 0; i < elements.length; i++) - if (elements[i].name) - formData += elements[i].name +'='+ - encodeURIComponent (elements[i].value) +'&'; - - var request = new XMLHttpRequest (); - request.open (form.method, form.action, true); - request.setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded'); - request.onreadystatechange = this.onSend.bind (this, request, callback); - request.send (formData); - } - - ,onSend: function (request, callback) - { - if (request.readyState != 4) - return; - - if (request.status == 200) - callback (eval (request.responseText)); - else - callback (null); - } -}); - diff --git a/usr/share/hedera-web/modules/contact/html.php b/usr/share/hedera-web/modules/contact/html.php deleted file mode 100755 index 859a149f..00000000 --- a/usr/share/hedera-web/modules/contact/html.php +++ /dev/null @@ -1,100 +0,0 @@ -
    -

    - -

    -

    - -

    -

    - -

    -
    - - - - - - - - - - - - - - - - -
    - - - -
    - - - -
    - - - -
    - - -