first commit
1
wp-content/plugins/loco-translate/pub/css/admin.css
Normal file
1
wp-content/plugins/loco-translate/pub/css/bundle.css
Normal file
@@ -0,0 +1 @@
|
||||
form.loco-filter{float:right}@media only screen and (max-width: 1024px){table.wp-list-table a.row-title{max-width:100px}}
|
||||
1
wp-content/plugins/loco-translate/pub/css/config.css
Normal file
@@ -0,0 +1 @@
|
||||
form#loco-conf>div{overflow:visible;border-bottom:solid 1px #ccc;padding-top:2em}form#loco-conf>div h2{margin-top:0}form#loco-conf td.twin>div{float:left;clear:none;width:50%}form#loco-conf td .description:first-child{margin-top:0;margin-bottom:4px}form#loco-conf a.icon-del{display:block;float:right;z-index:99;color:#aaa;outline:none}form#loco-conf a.icon-del:hover{color:#c00}form#loco-conf>div:first-child a.icon-del{display:none}form#loco-conf p.description{color:#aaa;font-size:12px;text-indent:.25em}form#loco-conf tr:hover p.description{color:#666}form#loco-reset{position:absolute;bottom:0;right:0}
|
||||
1
wp-content/plugins/loco-translate/pub/css/editor.css
Normal file
1
wp-content/plugins/loco-translate/pub/css/fileinfo.css
Normal file
@@ -0,0 +1 @@
|
||||
#loco-admin.wrap .panel-info nav,#loco-admin.wrap .notice-info nav{display:block;position:absolute;right:0;top:0;font-size:1.3em;padding:1em}#loco-admin.wrap .panel-info nav a,#loco-admin.wrap .notice-info nav a{color:#666;margin-left:10px}#loco-admin.wrap .panel-info nav a:hover,#loco-admin.wrap .notice-info nav a:hover{color:#000;text-decoration:none}#loco-admin.wrap .panel-info dl,#loco-admin.wrap .notice-info dl{margin-top:0;display:inline-block}#loco-admin.wrap .panel-info dl dt,#loco-admin.wrap .panel-info dl dd,#loco-admin.wrap .notice-info dl dt,#loco-admin.wrap .notice-info dl dd{line-height:1.4em}#loco-admin.wrap .panel-info dl dt,#loco-admin.wrap .notice-info dl dt{font-weight:bold;color:#555}#loco-admin.wrap .panel-info dl dd,#loco-admin.wrap .notice-info dl dd{margin-left:0;margin-bottom:.8em}#loco-admin.wrap .panel-info dl div.progress .l,#loco-admin.wrap .notice-info dl div.progress .l{display:none}
|
||||
1
wp-content/plugins/loco-translate/pub/css/locale.css
Normal file
@@ -0,0 +1 @@
|
||||
#loco-admin.wrap td.loco-not-active{color:#aaa}#loco-admin.wrap div.loco-projects>h3{float:left}#loco-admin.wrap div.loco-projects form.loco-filter{float:right;margin:1em 0}
|
||||
1
wp-content/plugins/loco-translate/pub/css/podiff.css
Normal file
@@ -0,0 +1 @@
|
||||
#loco-admin.wrap .revisions-diff{padding:10px;min-height:20px}#loco-admin.wrap table.diff{border-collapse:collapse;table-layout:auto}#loco-admin.wrap table.diff td{white-space:nowrap;overflow:hidden;font:normal 12px/17px "Monaco","Menlo","Ubuntu Mono","Consolas","source-code-pro",monospace;padding:2px}#loco-admin.wrap table.diff td>span{color:#aaa}#loco-admin.wrap table.diff td>span:after{content:". "}#loco-admin.wrap table.diff tbody{border-top:1px dashed #ccc}#loco-admin.wrap table.diff tbody:first-child{border-top:none}#loco-admin.wrap table.diff td>.dashicons{display:none}#loco-admin.wrap .revisions.loading .diff-meta{color:#eee}#loco-admin.wrap .revisions.loading .loading-indicator span.spinner{visibility:visible;background:#fff url(../img/spin-modal.gif?v=2.8.0) center center no-repeat}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){#loco-admin.wrap .revisions.loading .loading-indicator span.spinner{background-size:16px;background-image:url(../img/spin-modal@2x.gif?v=2.8.0)}}#loco-admin.wrap .revisions-meta{clear:both;padding:10px 12px;margin:0;position:relative;top:10px}#loco-admin.wrap .revisions-meta .diff-meta{clear:none;float:left;width:50%;padding:0;min-height:auto}#loco-admin.wrap .revisions-meta .diff-meta button{margin-top:5px}#loco-admin.wrap .revisions-meta .diff-meta-current{float:right;text-align:right}#loco-admin.wrap .revisions-meta time{color:#72777c}#loco-admin.wrap .revisions-control-frame{margin:10px 0}#loco-admin.wrap .revisions-diff-frame{margin-top:20px}
|
||||
1
wp-content/plugins/loco-translate/pub/css/poinit.css
Normal file
@@ -0,0 +1 @@
|
||||
form#loco-poinit .loco-locales fieldset{float:left;margin-right:2em}form#loco-poinit .loco-locales fieldset.disabled span.lang{visibility:hidden !important}form#loco-poinit .loco-locales fieldset span.nolang{background:#999}form#loco-poinit .loco-locales fieldset>label span{width:20px;text-align:center;display:inline-block;margin-right:4px}form#loco-poinit a.icon-help{color:#999;font-style:normal;text-decoration:none}form#loco-poinit a.icon-help:hover{color:#666}form#loco-poinit .form-table th{padding:15px 10px}form#loco-poinit .form-table tr:first-child td,form#loco-poinit .form-table tr:first-child th{padding-top:25px}form#loco-poinit label.for-disabled input{visibility:hidden}form#loco-poinit label.for-disabled .icon-lock{top:0;left:0;display:block;position:absolute;width:1em;font-size:14px;text-align:center;color:gray}
|
||||
1
wp-content/plugins/loco-translate/pub/css/poview.css
Normal file
@@ -0,0 +1 @@
|
||||
.js #loco-admin.wrap .loco-loading{min-height:100px;background:#fff url(../img/spin-modal.gif?v=2.8.0) center center no-repeat}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.js #loco-admin.wrap .loco-loading{background-size:16px;background-image:url(../img/spin-modal@2x.gif?v=2.8.0)}}.js #loco-admin.wrap .loco-loading ol.msgcat{display:none}#loco-admin.wrap #loco-po{padding-right:0;overflow:auto}#loco-admin.wrap ol.msgcat{margin-left:3em;padding-top:1em;border-top:1px dashed #ccc}#loco-admin.wrap ol.msgcat:first-child{padding-top:0;border-top:none}#loco-admin.wrap ol.msgcat li{color:#aaa;margin:0;padding:0 0 0 1em;font:normal 12px/17px "Monaco","Menlo","Ubuntu Mono","Consolas","source-code-pro",monospace;border-left:1px solid #eee}#loco-admin.wrap ol.msgcat li>*{color:#333;white-space:pre}#loco-admin.wrap ol.msgcat li>.po-comment{color:#3cc200}#loco-admin.wrap ol.msgcat li>.po-refs{color:#0073aa}#loco-admin.wrap ol.msgcat li>.po-refs a{color:inherit;text-decoration:none}#loco-admin.wrap ol.msgcat li>.po-refs a:hover{text-decoration:underline}#loco-admin.wrap ol.msgcat li>.po-flags{color:#77904a}#loco-admin.wrap ol.msgcat li>.po-flags em{font-style:normal}#loco-admin.wrap ol.msgcat li>.po-word{color:#000}#loco-admin.wrap ol.msgcat li>.po-junk{font-style:italic;color:#ccc}#loco-admin.wrap ol.msgcat li>.po-string>span{color:#c931c7}#loco-admin.wrap form.loco-filter{top:0;right:0;position:absolute}#loco-admin.wrap .loco-invalid form.loco-filter input[type=text]:focus{border-color:#c00;-webkit-box-shadow:0 0 2px rgba(153,0,0,.5);-moz-box-shadow:0 0 2px rgba(153,0,0,.5);box-shadow:0 0 2px rgba(153,0,0,.5)}#loco-admin.wrap .loco-invalid ol.msgcat{list-style-type:none}#loco-admin.wrap .loco-invalid ol.msgcat li{color:#000}
|
||||
1
wp-content/plugins/loco-translate/pub/css/skins/blue.css
Normal file
@@ -0,0 +1 @@
|
||||
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(9,100,132,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#096484}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:hsl(38.0392156863,10%,80%) !important;background:rgb(219.2535211268,152.5267605634,36.9464788732) !important;border-color:rgb(219.2535211268,152.5267605634,36.9464788732) !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:rgba(0,0,0,0) url(../../img/skins/blue/spin-primary-button.gif?v=2.8.0) 0 0 no-repeat !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.wp-core-ui .button-primary.loco-loading[disabled]:before{background-size:16px !important;background-image:url(../../img/skins/blue/spin-primary-button@2x.gif?v=2.8.0) !important}}.debug{color:#e1a948}
|
||||
@@ -0,0 +1 @@
|
||||
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(199,165,137,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#c7a589}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:hsl(27.0967741935,10%,80%) !important;background:hsl(27.0967741935,35.632183908%,57.8823529412%) !important;border-color:hsl(27.0967741935,35.632183908%,57.8823529412%) !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:rgba(0,0,0,0) url(../../img/skins/coffee/spin-primary-button.gif?v=2.8.0) 0 0 no-repeat !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.wp-core-ui .button-primary.loco-loading[disabled]:before{background-size:16px !important;background-image:url(../../img/skins/coffee/spin-primary-button@2x.gif?v=2.8.0) !important}}.debug{color:#c7a589}
|
||||
@@ -0,0 +1 @@
|
||||
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(163,183,69,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#a3b745}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:hsl(70.5263157895,10%,80%) !important;background:rgb(136.6095238095,153.3714285714,57.8285714286) !important;border-color:rgb(136.6095238095,153.3714285714,57.8285714286) !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:rgba(0,0,0,0) url(../../img/skins/ectoplasm/spin-primary-button.gif?v=2.8.0) 0 0 no-repeat !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.wp-core-ui .button-primary.loco-loading[disabled]:before{background-size:16px !important;background-image:url(../../img/skins/ectoplasm/spin-primary-button@2x.gif?v=2.8.0) !important}}.debug{color:#a3b745}
|
||||
@@ -0,0 +1 @@
|
||||
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(136,136,136,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#888}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:hsl(192,10%,80%) !important;background:hsl(192,96.1538461538%,32.7843137255%) !important;border-color:hsl(192,96.1538461538%,32.7843137255%) !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:rgba(0,0,0,0) url(../../img/skins/light/spin-primary-button.gif?v=2.8.0) 0 0 no-repeat !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.wp-core-ui .button-primary.loco-loading[disabled]:before{background-size:16px !important;background-image:url(../../img/skins/light/spin-primary-button@2x.gif?v=2.8.0) !important}}.debug{color:#04a4cc}
|
||||
@@ -0,0 +1 @@
|
||||
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(225,77,67,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#e14d43}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:hsl(3.7974683544,10%,80%) !important;background:rgb(216.6311926606,46.0917431193,34.5688073394) !important;border-color:rgb(216.6311926606,46.0917431193,34.5688073394) !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:rgba(0,0,0,0) url(../../img/skins/midnight/spin-primary-button.gif?v=2.8.0) 0 0 no-repeat !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.wp-core-ui .button-primary.loco-loading[disabled]:before{background-size:16px !important;background-image:url(../../img/skins/midnight/spin-primary-button@2x.gif?v=2.8.0) !important}}.debug{color:#e14d43}
|
||||
@@ -0,0 +1 @@
|
||||
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(56,88,233,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#3858e9}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:hsl(229.1525423729,10%,80%) !important;background:rgb(24.7076923077,60.6461538462,223.4923076923) !important;border-color:rgb(24.7076923077,60.6461538462,223.4923076923) !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:rgba(0,0,0,0) url(../../img/skins/modern/spin-primary-button.gif?v=2.8.0) 0 0 no-repeat !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.wp-core-ui .button-primary.loco-loading[disabled]:before{background-size:16px !important;background-image:url(../../img/skins/modern/spin-primary-button@2x.gif?v=2.8.0) !important}}.debug{color:#3858e9}
|
||||
@@ -0,0 +1 @@
|
||||
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(158,186,160,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#9ebaa0}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:hsl(124.2857142857,10%,80%) !important;background:rgb(134.1590361446,169.0409638554,136.6506024096) !important;border-color:rgb(134.1590361446,169.0409638554,136.6506024096) !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:rgba(0,0,0,0) url(../../img/skins/ocean/spin-primary-button.gif?v=2.8.0) 0 0 no-repeat !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.wp-core-ui .button-primary.loco-loading[disabled]:before{background-size:16px !important;background-image:url(../../img/skins/ocean/spin-primary-button@2x.gif?v=2.8.0) !important}}.debug{color:#9ebaa0}
|
||||
@@ -0,0 +1 @@
|
||||
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(221,130,59,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#dd823b}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:hsl(26.2962962963,10%,80%) !important;background:rgb(203.84,109.2,35.36) !important;border-color:rgb(203.84,109.2,35.36) !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:rgba(0,0,0,0) url(../../img/skins/sunrise/spin-primary-button.gif?v=2.8.0) 0 0 no-repeat !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.wp-core-ui .button-primary.loco-loading[disabled]:before{background-size:16px !important;background-image:url(../../img/skins/sunrise/spin-primary-button@2x.gif?v=2.8.0) !important}}.debug{color:#dd823b}
|
||||
BIN
wp-content/plugins/loco-translate/pub/font/loco.eot
Normal file
124
wp-content/plugins/loco-translate/pub/font/loco.svg
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
wp-content/plugins/loco-translate/pub/font/loco.ttf
Normal file
BIN
wp-content/plugins/loco-translate/pub/font/loco.woff
Normal file
BIN
wp-content/plugins/loco-translate/pub/img/api/deepl.png
Normal file
|
After Width: | Height: | Size: 668 B |
BIN
wp-content/plugins/loco-translate/pub/img/api/deepl@2x.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
wp-content/plugins/loco-translate/pub/img/api/google.png
Normal file
|
After Width: | Height: | Size: 580 B |
BIN
wp-content/plugins/loco-translate/pub/img/api/google@2x.png
Normal file
|
After Width: | Height: | Size: 1001 B |
BIN
wp-content/plugins/loco-translate/pub/img/api/microsoft.png
Normal file
|
After Width: | Height: | Size: 742 B |
BIN
wp-content/plugins/loco-translate/pub/img/api/microsoft@2x.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-content/plugins/loco-translate/pub/img/flags-16.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
wp-content/plugins/loco-translate/pub/img/flags-32.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
wp-content/plugins/loco-translate/pub/img/logo-foot.gif
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
BIN
wp-content/plugins/loco-translate/pub/img/spin-editor-button.gif
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
BIN
wp-content/plugins/loco-translate/pub/img/spin-modal.gif
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
wp-content/plugins/loco-translate/pub/img/spin-modal@2x.gif
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
wp-content/plugins/loco-translate/pub/img/wg/splitx.png
Normal file
|
After Width: | Height: | Size: 87 B |
BIN
wp-content/plugins/loco-translate/pub/img/wg/splity.png
Normal file
|
After Width: | Height: | Size: 90 B |
5478
wp-content/plugins/loco-translate/pub/js/min/admin.js
Normal file
51
wp-content/plugins/loco-translate/pub/js/min/config.js
Normal file
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
|
||||
!function(n, p, d) {
|
||||
function h(a, b) {
|
||||
let c = a.offsetTop;
|
||||
for (;(a = a.offsetParent) && a !== b; ) c += a.offsetTop;
|
||||
return c;
|
||||
}
|
||||
function k() {
|
||||
function a(e, f) {
|
||||
e = f.name.replace("[0]", l);
|
||||
d(f).attr("name", e).val("");
|
||||
}
|
||||
var b = d("#loco-conf > div");
|
||||
let c = b.eq(0).clone();
|
||||
b = b.length;
|
||||
let l = "[" + b + "]";
|
||||
c.attr("id", "loco-conf-" + b);
|
||||
c.find("input").each(a);
|
||||
c.find("textarea").each(a);
|
||||
c.find("h2").eq(0).html("New set <span>(untitled)</span>");
|
||||
c.insertBefore("#loco-form-foot");
|
||||
g(c.find("a.icon-del"), b);
|
||||
c.hide().slideDown(500);
|
||||
d("html, body").animate({
|
||||
scrollTop: h(c[0])
|
||||
}, 500);
|
||||
}
|
||||
function g(a, b) {
|
||||
return a.on("click", function(c) {
|
||||
c.preventDefault();
|
||||
m(b);
|
||||
return !1;
|
||||
});
|
||||
}
|
||||
function m(a) {
|
||||
var b = d("#loco-conf-" + a);
|
||||
b.find('input[name="conf[' + a + '][removed]"]').val("1");
|
||||
b.slideUp(500, function() {
|
||||
d(this).hide().find("table").remove();
|
||||
});
|
||||
}
|
||||
d("#loco-conf > div").each(function(a, b) {
|
||||
g(d(b).find("a.icon-del"), a);
|
||||
});
|
||||
d("#loco-add-butt").attr("disabled", !1).on("click", function(a) {
|
||||
a.preventDefault();
|
||||
k();
|
||||
return !1;
|
||||
});
|
||||
}(window, document, window.jQuery);
|
||||
1
wp-content/plugins/loco-translate/pub/js/min/debug.js
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
7
wp-content/plugins/loco-translate/pub/js/min/delete.js
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
!function(c, a) {
|
||||
let b = a.getElementById("loco-fs");
|
||||
a = a.getElementById("loco-del");
|
||||
b && a && c.loco.fs.init(b).setForm(a);
|
||||
}(window, document);
|
||||
582
wp-content/plugins/loco-translate/pub/js/min/editor.js
Normal file
@@ -0,0 +1,582 @@
|
||||
"use strict";
|
||||
|
||||
!function(C, d) {
|
||||
function u(a) {
|
||||
return k.l10n._(a);
|
||||
}
|
||||
function G(a, b, c) {
|
||||
return k.l10n.n(a, b, c);
|
||||
}
|
||||
function z(a) {
|
||||
return a.format(0, ".", Ea);
|
||||
}
|
||||
function Fa(a) {
|
||||
k.ajax.post("sync", ma, function(b) {
|
||||
const c = [];
|
||||
var e = b.pot, h = b.po;
|
||||
const t = b.done || {
|
||||
add: [],
|
||||
del: [],
|
||||
fuz: []
|
||||
};
|
||||
var n = t.add.length;
|
||||
const r = t.del.length, A = t.fuz.length, D = t.trn || 0;
|
||||
B.clear().load(h);
|
||||
f.load(B);
|
||||
da(f);
|
||||
if (n || r || A || D) {
|
||||
if (e ? c.push(v(u("Merged from %s"), e)) : c.push(u("Merged from source code")),
|
||||
n && c.push(v(G("%s new string added", "%s new strings added", n), z(n))), r && c.push(v(G("%s obsolete string removed", "%s obsolete strings removed", r), z(r))),
|
||||
A && c.push(v(G("%s string marked Fuzzy", "%s strings marked Fuzzy", A), z(A))),
|
||||
D && c.push(v(G("%s translation copied", "%s translations copied", D), z(D))), d(H).trigger("poUnsaved", []),
|
||||
T(), Ga && C.console) {
|
||||
e = console;
|
||||
h = -1;
|
||||
for (n = t.add.length; ++h < n; ) e.log(" + " + String(t.add[h]));
|
||||
n = t.del.length;
|
||||
for (h = 0; h < n; h++) e.log(" - " + String(t.del[h]));
|
||||
n = t.fuz.length;
|
||||
for (h = 0; h < n; h++) e.log(" ~ " + String(t.fuz[h]));
|
||||
}
|
||||
} else e ? c.push(v(u("Strings up to date with %s"), e)) : c.push(u("Strings up to date with source code"));
|
||||
k.notices.success(c.join(". "));
|
||||
d(H).trigger("poMerge", [ b ]);
|
||||
a && a();
|
||||
}, a);
|
||||
}
|
||||
function Ha(a) {
|
||||
const b = a.currentTarget;
|
||||
a.stopImmediatePropagation();
|
||||
b.disabled = !0;
|
||||
na();
|
||||
b.disabled = !1;
|
||||
}
|
||||
function na() {
|
||||
const a = [];
|
||||
B.each(function(b, c) {
|
||||
f.validate(c) && a.push(c);
|
||||
});
|
||||
k.notices.clear();
|
||||
oa(a);
|
||||
}
|
||||
function da(a) {
|
||||
a.invalid && (oa(a.invalid), a.invalid = null);
|
||||
}
|
||||
function oa(a) {
|
||||
const b = a.length;
|
||||
if (0 === b) k.notices.success(u("No formatting errors detected")); else {
|
||||
const c = [ v(G("%s possible error detected", "%s possible errors detected", b), b), u("Check the translations marked with a warning sign") ];
|
||||
k.notices.warn(c.join(". ")).slow();
|
||||
}
|
||||
0 < b && f.current(a[0]);
|
||||
}
|
||||
function Ia(a) {
|
||||
const b = a.id, c = k.apis, e = c.providers();
|
||||
return c.create(a, e[b] || e._);
|
||||
}
|
||||
function pa() {
|
||||
for (var a = -1, b, c = [], e = L, h = e.length, t = String(Ja); ++a < h; ) try {
|
||||
b = e[a], null == b.src && (b.src = t), c.push(Ia(b));
|
||||
} catch (n) {
|
||||
k.notices.error(String(n));
|
||||
}
|
||||
return c;
|
||||
}
|
||||
function qa(a) {
|
||||
function b(e) {
|
||||
ea = new Date().getTime();
|
||||
L = e && e.apis || [];
|
||||
0 === L.length ? P = fa("loco-apis-empty", e.html) : U = fa("loco-apis-batch", e.html);
|
||||
c.remove();
|
||||
a(L);
|
||||
}
|
||||
if (V || ra) k.notices.error("APIs not available in current mode"); else if (null == L || 0 === L.length || 10 < Math.round((new Date().getTime() - ea) / 1e3)) {
|
||||
P && P.remove();
|
||||
P = null;
|
||||
U && U.remove();
|
||||
U = null;
|
||||
W && W.remove();
|
||||
L = W = null;
|
||||
var c = d('<div><div class="loco-loading"></div></div>').dialog({
|
||||
dialogClass: "loco-modal loco-modal-no-close",
|
||||
appendTo: "#loco-admin.wrap",
|
||||
title: "Loading..",
|
||||
modal: !0,
|
||||
autoOpen: !0,
|
||||
closeOnEscape: !1,
|
||||
resizable: !1,
|
||||
draggable: !1,
|
||||
position: sa,
|
||||
height: 200
|
||||
});
|
||||
k.ajax.get("apis", {
|
||||
locale: String(E)
|
||||
}, b);
|
||||
} else ea = new Date().getTime(), a(L);
|
||||
}
|
||||
function fa(a, b) {
|
||||
b = d(b);
|
||||
b.attr("id", a);
|
||||
b.dialog({
|
||||
dialogClass: "loco-modal",
|
||||
appendTo: "#loco-admin.wrap",
|
||||
title: b.attr("title"),
|
||||
modal: !0,
|
||||
autoOpen: !1,
|
||||
closeOnEscape: !0,
|
||||
resizable: !1,
|
||||
draggable: !1,
|
||||
position: sa
|
||||
});
|
||||
return b;
|
||||
}
|
||||
function ta() {
|
||||
qa(function(a) {
|
||||
a.length ? Ka() : ua();
|
||||
});
|
||||
}
|
||||
function La(a) {
|
||||
a.preventDefault();
|
||||
qa(function(b) {
|
||||
b.length ? Ma() : ua();
|
||||
});
|
||||
return !1;
|
||||
}
|
||||
function ua() {
|
||||
P ? P.dialog("open") : k.notices.error("Logic error. Unconfigured API modal missing");
|
||||
}
|
||||
function Ma() {
|
||||
function a(g) {
|
||||
a: {
|
||||
var q = d(g.api).val();
|
||||
for (var Q, M = Z || (Z = pa()), R = M.length, S = -1; ++S < R; ) if (Q = M[S],
|
||||
Q.getId() === q) {
|
||||
q = Q;
|
||||
break a;
|
||||
}
|
||||
k.notices.error("No " + q + " client");
|
||||
q = void 0;
|
||||
}
|
||||
g = g.existing.checked;
|
||||
N.text("Calculating....");
|
||||
h = k.apis.createJob(q);
|
||||
h.init(B, g);
|
||||
t = q.toString();
|
||||
N.text(v(u("%s unique source strings."), z(h.length)) + " " + v(u("%s characters will be sent for translation."), z(h.chars)));
|
||||
F[0].disabled = h.length ? !1 : !0;
|
||||
n = null;
|
||||
}
|
||||
function b(g) {
|
||||
h && (D && g.fuzzy(0, !0), f.pasteMessage(g), g === f.active && f.setStatus(g),
|
||||
f.unsave(g, 0), r++, A && !g.valid() && (A = !1));
|
||||
}
|
||||
function c(g, q) {
|
||||
g = q ? 100 * g / q : 0;
|
||||
N.text(v(u("Translation progress %s%%"), z(g)));
|
||||
}
|
||||
function e() {
|
||||
F.removeClass("loco-loading");
|
||||
if (h && n) {
|
||||
var g = n.todo();
|
||||
g && k.notices.warn(v(G("Translation job aborted with %s string remaining", "Translation job aborted with %s strings remaining", g), z(g))).slow();
|
||||
g = [];
|
||||
const q = n.did();
|
||||
q && g.push(v(G("%1$s string translated via %2$s", "%1$s strings translated via %2$s", q), z(q), t));
|
||||
r ? g.push(v(G("%s string updated", "%s strings updated", r), z(r))) : q && g.push(u("Nothing needed updating"));
|
||||
g.length && k.notices.success(g.join(". ")).slow();
|
||||
n = h = null;
|
||||
}
|
||||
r && (T(), f.rebuildSearch());
|
||||
I && (I.off("dialogclose").dialog("close"), I = null);
|
||||
f.fire("poAuto");
|
||||
A || na();
|
||||
}
|
||||
let h, t, n, r = 0, A = !0, D = !1, I = U.dialog("open");
|
||||
const y = I.find("form"), F = y.find("button.button-primary"), N = d("#loco-job-progress");
|
||||
F.removeClass("loco-loading");
|
||||
F[0].disabled = !0;
|
||||
k.notices.clear();
|
||||
y.off("submit change");
|
||||
a(y[0]);
|
||||
y.on("change", function(g) {
|
||||
g = g.target;
|
||||
const q = g.name;
|
||||
"api" !== q && "existing" !== q || a(g.form);
|
||||
return !0;
|
||||
}).on("submit", function(g) {
|
||||
g.preventDefault();
|
||||
F.addClass("loco-loading");
|
||||
F[0].disabled = !0;
|
||||
r = 0;
|
||||
c(0);
|
||||
D = g.target.fuzzy.checked;
|
||||
n = h.dispatch(B).done(e).each(b).prog(c).stat();
|
||||
});
|
||||
I.off("dialogclose").on("dialogclose", function() {
|
||||
h.abort();
|
||||
I = null;
|
||||
e();
|
||||
});
|
||||
}
|
||||
function Ka() {
|
||||
function a(l) {
|
||||
if (l.isDefaultPrevented()) return !1;
|
||||
var p = l.which;
|
||||
let m = -1;
|
||||
49 <= p && 57 >= p ? m = p - 49 : 97 <= p && 105 >= p && (m = p - 97);
|
||||
return 0 <= m && 9 > m && (p = g && g.find("button.button-primary").eq(m)) && 1 === p.length ? (p.click(),
|
||||
l.preventDefault(), l.stopPropagation(), !1) : !0;
|
||||
}
|
||||
function b(l, p) {
|
||||
return function(m) {
|
||||
m.preventDefault();
|
||||
m.stopPropagation();
|
||||
h();
|
||||
m = f.current();
|
||||
const w = f.getTargetOffset();
|
||||
m.translate(p, w);
|
||||
f.focus().reloadMessage(m);
|
||||
};
|
||||
}
|
||||
function c(l, p, m, w) {
|
||||
let J = w.getId(), O = R[J], va = String(O + 1), Na = w.getUrl(), wa = u("Use this translation");
|
||||
w = String(w);
|
||||
let xa = X && X[J];
|
||||
l = d('<button class="button button-primary"></button>').attr("tabindex", String(1 + N + O)).on("click", b(l, p));
|
||||
l.attr("accesskey", va);
|
||||
1 < q.length && (wa += " (" + va + ")");
|
||||
l.text(wa);
|
||||
xa && xa.replaceWith(d('<div class="loco-api loco-api-result loco-api-' + J + '"></div>').append(d('<div class="loco-api-credit">Translated by </div>').append(d('<a target="_blank" tabindex="-1"></a>').attr("href", Na).text(w))).append(d("<blockquote " + I + "></blockquote>").text(p || "FAILED")).append(l));
|
||||
++S === Q && (g && g.dialog("option", "title", u("Suggested translations") + " — " + m.label),
|
||||
N += S, y.attr("disabled") && y.attr("disabled", !1));
|
||||
0 === O && l.focus();
|
||||
}
|
||||
function e(l) {
|
||||
const p = d('<div class="loco-api loco-api-loading"></div>').text("Calling " + l + " ...");
|
||||
return X[l.getId()] = p;
|
||||
}
|
||||
function h(l) {
|
||||
g && null == l && g.dialog("close");
|
||||
X = R = g = null;
|
||||
d(C).off("keydown", a);
|
||||
}
|
||||
function t(l) {
|
||||
return function(p, m, w) {
|
||||
M[l.getId()] = m;
|
||||
c(p, m, w, l);
|
||||
};
|
||||
}
|
||||
function n(l) {
|
||||
const p = r.notes(), m = r.context();
|
||||
var w = m + "" + l;
|
||||
M = ya[w] || (ya[w] = {});
|
||||
for (w = -1; ++w < Q; ) {
|
||||
const J = q[w], O = J.getId();
|
||||
g.append(e(J));
|
||||
R[O] = w;
|
||||
M[O] ? c(l, M[O], E, J) : J.translate({
|
||||
source: l,
|
||||
context: m,
|
||||
notes: p
|
||||
}, E, t(J));
|
||||
}
|
||||
}
|
||||
const r = f.current();
|
||||
if (!r) return !1;
|
||||
var A = r.pluralized();
|
||||
const D = A ? Math.min(f.getTargetOffset(), 1) : 0, I = 'lang="' + String(E) + '" dir="' + (E.isRTL() ? "RTL" : "LTR") + '"';
|
||||
let y, F = r.source(null, D);
|
||||
A ? (y = d('<select lang="en" name="s" disabled></select>'), r.eachSrc(function(l, p) {
|
||||
var m = f.t();
|
||||
m = l ? m._x("Plural", "Editor") : m._x("Single", "Editor");
|
||||
m = d("<optgroup></optgroup>").attr("label", m);
|
||||
y.append(m.append(d("<option></option>").attr("value", String(l)).text(p)));
|
||||
}), y.val(String(D)), y.on("change", function(l) {
|
||||
g.find("div.loco-api-result").remove();
|
||||
X = {};
|
||||
R = {};
|
||||
S = 0;
|
||||
F = r.source(null, l.target.selectedIndex);
|
||||
y.attr("disabled", "true");
|
||||
n(F);
|
||||
})) : y = d('<blockquote lang="en"></blockquote>').text(F);
|
||||
let N = 99, g = (W || (W = fa("loco-apis-hint", "<div></div>"))).html("").append(d('<div class="loco-api"><p>Source text:</p></div>').append(y)).dialog("option", "title", u("Loading suggestions") + "...").off("dialogclose").on("dialogclose", h).dialog("open");
|
||||
(A = r.translation(D)) && d('<div class="loco-api"><p>Current translation:</p></div>').append(d("<blockquote " + I + "></blockquote>").text(A)).append(d('<button class="button"></button>').attr("tabindex", String(++N)).text(u("Keep this translation")).on("click", function(l) {
|
||||
l.preventDefault();
|
||||
h();
|
||||
})).appendTo(g);
|
||||
const q = Z || (Z = pa()), Q = q.length;
|
||||
let M, R = {}, S = 0, X = {};
|
||||
n(F);
|
||||
d(C).on("keydown", a);
|
||||
return !0;
|
||||
}
|
||||
function Oa(a) {
|
||||
const b = new FormData();
|
||||
for (const c in a) a.hasOwnProperty(c) && b.append(c, a[c]);
|
||||
return b;
|
||||
}
|
||||
function za(a) {
|
||||
let b = d.extend({
|
||||
locale: String(B.locale() || "")
|
||||
}, Aa || {});
|
||||
Ba && Ba.applyCreds(b);
|
||||
ha ? (b = Oa(b), b.append("po", new Blob([ String(B) ], {
|
||||
type: "application/x-gettext"
|
||||
}), String(b.path).split("/").pop() || "untitled.po")) : b.data = String(B);
|
||||
k.ajax.post("save", b, function(c) {
|
||||
a && a();
|
||||
f.save(!0);
|
||||
d("#loco-po-modified").text(c.datetime || "[datetime error]");
|
||||
da(f);
|
||||
}, a);
|
||||
}
|
||||
function Pa() {
|
||||
f.dirty && za();
|
||||
}
|
||||
function Qa() {
|
||||
return u("Your changes will be lost if you continue without saving");
|
||||
}
|
||||
function Ra(a) {
|
||||
function b() {
|
||||
a.disabled = !1;
|
||||
d(a).removeClass("loco-loading");
|
||||
}
|
||||
f.on("poUnsaved", function() {
|
||||
a.disabled = !1;
|
||||
d(a).addClass("button-primary");
|
||||
}).on("poSave", function() {
|
||||
a.disabled = !0;
|
||||
d(a).removeClass("button-primary");
|
||||
});
|
||||
Aa = d.extend({
|
||||
path: ia
|
||||
}, x.project || {});
|
||||
d(a).on("click", function(c) {
|
||||
c.preventDefault();
|
||||
a.disabled = !0;
|
||||
d(a).addClass("loco-loading");
|
||||
za(b);
|
||||
return !1;
|
||||
});
|
||||
return !0;
|
||||
}
|
||||
function Sa(a) {
|
||||
const b = x.project;
|
||||
if (b) {
|
||||
var c = function() {
|
||||
a.disabled = !1;
|
||||
d(a).removeClass("loco-loading");
|
||||
};
|
||||
f.on("poUnsaved", function() {
|
||||
a.disabled = !0;
|
||||
}).on("poSave", function() {
|
||||
a.disabled = !1;
|
||||
});
|
||||
ma = {
|
||||
bundle: b.bundle,
|
||||
domain: b.domain,
|
||||
type: V ? "pot" : "po",
|
||||
path: ia || "",
|
||||
sync: Ta || "",
|
||||
mode: Ua || ""
|
||||
};
|
||||
d(a).on("click", function(e) {
|
||||
e.preventDefault();
|
||||
a.disabled = !0;
|
||||
d(a).addClass("loco-loading");
|
||||
Fa(c);
|
||||
return !1;
|
||||
});
|
||||
a.disabled = !1;
|
||||
}
|
||||
return !0;
|
||||
}
|
||||
function Va(a) {
|
||||
f.on("poUnsaved", function() {
|
||||
a.disabled = !0;
|
||||
}).on("poSave poAuto", function() {
|
||||
a.disabled = !1;
|
||||
});
|
||||
d(a).on("click", La);
|
||||
a.disabled = !1;
|
||||
return !0;
|
||||
}
|
||||
function Wa(a) {
|
||||
d(a).on("click", Ha);
|
||||
a.disabled = !1;
|
||||
}
|
||||
function Xa(a) {
|
||||
a.disabled = !1;
|
||||
d(a).on("click", function(b) {
|
||||
b.preventDefault();
|
||||
b = 1;
|
||||
var c, e = /(\d+)$/;
|
||||
for (c = "New message"; B.get(c); ) b = e.exec(c) ? Math.max(b, Number(RegExp.$1)) : b,
|
||||
c = "New message " + ++b;
|
||||
f.add(c);
|
||||
return !1;
|
||||
});
|
||||
return !0;
|
||||
}
|
||||
function Ya(a) {
|
||||
a.disabled = !1;
|
||||
d(a).on("click", function(b) {
|
||||
b.preventDefault();
|
||||
f.del();
|
||||
return !1;
|
||||
});
|
||||
return !0;
|
||||
}
|
||||
function ja(a, b) {
|
||||
a.disabled = !1;
|
||||
d(a).on("click", function() {
|
||||
let c = ia;
|
||||
"archive" === b ? c = c.replace(/\.po$/, ".zip") : "binary" === b && (c = c.replace(/\.po$/, ".mo"));
|
||||
const e = a.form;
|
||||
e.path.value = c;
|
||||
e.source.value = B.toString();
|
||||
return !0;
|
||||
});
|
||||
return !0;
|
||||
}
|
||||
function ka(a) {
|
||||
a.preventDefault();
|
||||
return !1;
|
||||
}
|
||||
function T() {
|
||||
var a = f.stats(), b = a.t, c = a.f, e = a.u;
|
||||
b = v(G("%s string", "%s strings", b), z(b));
|
||||
var h = [];
|
||||
E && (b = v(u("%s%% translated"), a.p.replace("%", "")) + ", " + b, c && h.push(v(u("%s fuzzy"), z(c))),
|
||||
e && h.push(v(u("%s untranslated"), z(e))), h.length && (b += " (" + h.join(", ") + ")"));
|
||||
d("#loco-po-status").text(b);
|
||||
}
|
||||
function Ca(a, b) {
|
||||
a = b.getAttribute("data-loco");
|
||||
const c = Y[a];
|
||||
c && c(b, a) || d(b).addClass("loco-noop");
|
||||
}
|
||||
const k = C.loco, x = k && k.conf, H = document.getElementById("loco-editor-inner");
|
||||
if (k && x && H) {
|
||||
var Ga = !!x.WP_DEBUG, la = k.po.ref && k.po.ref.init(k, x), ma = null, Aa = null, ha = x.multipart, Za = k.l10n, v = k.string.sprintf, Ea = x.wpnum && x.wpnum.thousands_sep || ",", E = x.locale, B = k.po.init(E).wrap(x.powrap), V = !E, Ja = k.locale.clone(x.source || {
|
||||
lang: "en"
|
||||
}), $a = document.getElementById("loco-actions"), ia = x.popath, Ta = x.potpath, Ua = x.syncmode, K = document.getElementById("loco-fs"), Ba = K && k.fs.init(K), ra = x.readonly;
|
||||
K = !ra;
|
||||
var aa = C.sessionStorage || {
|
||||
setItem: function() {},
|
||||
getItem: function() {
|
||||
return "";
|
||||
}
|
||||
}, ba = !!aa.getItem("loco-ed-invs"), ca = !!aa.getItem("loco-ed-code"), L, Z, ya = {}, W, U, P, ea = 0, sa = {
|
||||
my: "top",
|
||||
at: "top",
|
||||
of: "#loco-content"
|
||||
};
|
||||
!ha || C.FormData && C.Blob || (ha = !1, k.notices.warn("Your browser doesn't support Ajax file uploads. Falling back to standard postdata"));
|
||||
la || k.notices.warn("admin.js is out of date. Please empty your browser cache and reload the page.");
|
||||
var Da = function() {
|
||||
var a, b = parseInt(d(H).css("min-height") || 0);
|
||||
return function() {
|
||||
for (var c = H, e = c.offsetTop || 0; (c = c.offsetParent) && c !== document.body; ) e += c.offsetTop || 0;
|
||||
c = Math.max(b, C.innerHeight - e - 20);
|
||||
a !== c && (H.style.height = String(c) + "px", a = c);
|
||||
};
|
||||
}();
|
||||
Da();
|
||||
d(C).resize(Da);
|
||||
H.innerHTML = "";
|
||||
var f = k.po.ed.init(H).localise(Za);
|
||||
k.po.kbd.init(f).add("save", K ? Pa : ka).add("hint", E && K && ta || ka).enable("copy", "clear", "enter", "next", "prev", "fuzzy", "save", "invis", "hint");
|
||||
var Y = {
|
||||
save: K && Ra,
|
||||
sync: K && Sa,
|
||||
revert: function(a) {
|
||||
f.on("poUnsaved", function() {
|
||||
a.disabled = !1;
|
||||
}).on("poSave", function() {
|
||||
a.disabled = !0;
|
||||
});
|
||||
d(a).on("click", function(b) {
|
||||
b.preventDefault();
|
||||
location.reload();
|
||||
return !1;
|
||||
});
|
||||
return !0;
|
||||
},
|
||||
invs: function(a) {
|
||||
const b = d(a);
|
||||
a.disabled = !1;
|
||||
f.on("poInvs", function(c, e) {
|
||||
b[e ? "addClass" : "removeClass"]("inverted");
|
||||
ba !== e && (ba = e, aa.setItem("loco-ed-invs", e ? "1" : ""));
|
||||
});
|
||||
b.on("click", function(c) {
|
||||
c.preventDefault();
|
||||
f.setInvs(!f.getInvs());
|
||||
return !1;
|
||||
});
|
||||
k.tooltip.init(b);
|
||||
return !0;
|
||||
},
|
||||
code: function(a) {
|
||||
const b = d(a);
|
||||
a.disabled = !1;
|
||||
f.on("poMode", function() {
|
||||
const c = f.getMono();
|
||||
b[c ? "addClass" : "removeClass"]("inverted");
|
||||
ca !== c && (ca = c, aa.setItem("loco-ed-code", c ? "1" : ""));
|
||||
});
|
||||
b.on("click", function(c) {
|
||||
c.preventDefault();
|
||||
f.setMono(!f.getMono());
|
||||
return !1;
|
||||
});
|
||||
k.tooltip.init(b);
|
||||
return !0;
|
||||
},
|
||||
source: ja,
|
||||
binary: V ? null : ja,
|
||||
archive: V ? null : ja
|
||||
};
|
||||
V ? (Y.add = K && Xa, Y.del = K && Ya) : (Y.auto = Va, Y.lint = Wa);
|
||||
d("#loco-editor > nav .button").each(Ca);
|
||||
d("#loco-content > form .button").each(Ca);
|
||||
d($a).on("submit", ka);
|
||||
(function(a) {
|
||||
function b(h) {
|
||||
d(a.parentNode)[h || null == h ? "removeClass" : "addClass"]("invalid");
|
||||
}
|
||||
f.searchable(k.fulltext.init());
|
||||
a.disabled = !1;
|
||||
var c = a.value = "", e = k.watchtext(a, function(h) {
|
||||
h = f.filter(h, !0);
|
||||
b(h);
|
||||
});
|
||||
f.on("poFilter", function(h, t, n) {
|
||||
c = e.val();
|
||||
e.val(t || "");
|
||||
b(n);
|
||||
}).on("poMerge", function() {
|
||||
c && f.filter(c);
|
||||
});
|
||||
})(document.getElementById("loco-search"));
|
||||
ba && f.setInvs(ba);
|
||||
ca && f.setMono(ca);
|
||||
f.on("poUnsaved", function() {
|
||||
C.onbeforeunload = Qa;
|
||||
}).on("poSave", function() {
|
||||
T();
|
||||
C.onbeforeunload = null;
|
||||
}).on("poHint", ta).on("poUpdate", T).on("poMeta", function(a, b) {
|
||||
b = "CODE" === b.tagName ? b : b.getElementsByTagName("CODE")[0];
|
||||
return b && la ? (la.load(b.textContent), a.preventDefault(), !1) : !0;
|
||||
});
|
||||
B.load(x.podata);
|
||||
f.load(B);
|
||||
(E = f.targetLocale) ? E.isRTL() && d(H).addClass("trg-rtl") : f.unlock();
|
||||
T();
|
||||
da(f);
|
||||
delete k.conf;
|
||||
}
|
||||
}(window, window.jQuery);
|
||||
7
wp-content/plugins/loco-translate/pub/js/min/head.js
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
!function(c, a) {
|
||||
var b = a.getElementById("loco-fs");
|
||||
a = a.getElementById("loco-main");
|
||||
b && a && c.loco.fs.init(b).setForm(a);
|
||||
}(window, document);
|
||||
24
wp-content/plugins/loco-translate/pub/js/min/move.js
Normal file
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
|
||||
!function(k, e, f) {
|
||||
function g(a) {
|
||||
f(b).find("button.button-primary").each(function(r, l) {
|
||||
l.disabled = a;
|
||||
});
|
||||
}
|
||||
function m(a) {
|
||||
g(!(a && c));
|
||||
}
|
||||
function n(a) {
|
||||
a = a.target || {};
|
||||
"dest" !== a.name || !a.checked && "text" !== a.type || (a = a.value) && a !== c && (c = a,
|
||||
g(!0), p !== a && (d.dest.value = a, h.connect()));
|
||||
}
|
||||
function q(a) {
|
||||
if (c) return !0;
|
||||
a.preventDefault();
|
||||
return !1;
|
||||
}
|
||||
let h, c, d = e.getElementById("loco-fs"), b = e.getElementById("loco-main"), p = b.path.value;
|
||||
d && b && (h = k.loco.fs.init(d).setForm(b).listen(m), f(b).change(n).submit(q));
|
||||
}(window, document, window.jQuery);
|
||||
72
wp-content/plugins/loco-translate/pub/js/min/podiff.js
Normal file
@@ -0,0 +1,72 @@
|
||||
"use strict";
|
||||
|
||||
!function(h, g, d) {
|
||||
function p() {
|
||||
return d(e).removeClass("loading");
|
||||
}
|
||||
function k(a) {
|
||||
return d(e).find("div.diff").html(a);
|
||||
}
|
||||
function x(a) {
|
||||
p();
|
||||
return d('<p class="error"></p>').text(a).appendTo(k(""));
|
||||
}
|
||||
function E(a, b) {
|
||||
let c = b.getElementsByTagName("tr"), y = c.length;
|
||||
a = b.getAttribute("data-diff").split(/\D+/);
|
||||
b = a[0];
|
||||
let q = a[1], F = a[2], G = a[3];
|
||||
for (a = 0; a < y; a++) {
|
||||
var l = c[a].getElementsByTagName("td");
|
||||
var m = l[0], z = b++;
|
||||
z <= q && d("<span></span>").text(String(z)).prependTo(m);
|
||||
l = l[2];
|
||||
m = F++;
|
||||
m <= G && d("<span></span>").text(String(m)).prependTo(l);
|
||||
}
|
||||
}
|
||||
function H(a) {
|
||||
f && f.abort();
|
||||
let b = A[a];
|
||||
null != b ? (k(b), p()) : (k(""), d(e).addClass("loading"), f = r.ajax.post("diff", {
|
||||
lhs: t.paths[a],
|
||||
rhs: t.paths[a + 1]
|
||||
}, function(c, y, q) {
|
||||
q === f && (c && c.html ? (b = c.html, A[a] = b, k(b).find("tbody").each(E), p()) : x(c && c.error || "Unknown error"));
|
||||
}, function(c) {
|
||||
c === f && (f = null, x("Failed to generate diff"));
|
||||
}));
|
||||
}
|
||||
function I(a) {
|
||||
a.preventDefault();
|
||||
u(n - 1);
|
||||
return !1;
|
||||
}
|
||||
function J(a) {
|
||||
a.preventDefault();
|
||||
u(n + 1);
|
||||
return !1;
|
||||
}
|
||||
function u(a) {
|
||||
if (0 <= a && a <= v) {
|
||||
n = a;
|
||||
H(a);
|
||||
{
|
||||
a = n;
|
||||
let b = a + 1;
|
||||
B.disabled = a >= v;
|
||||
C.disabled = 0 >= a;
|
||||
w.addClass("jshide").removeClass("diff-meta-current");
|
||||
w.eq(a).removeClass("jshide").addClass("diff-meta-current");
|
||||
w.eq(b).removeClass("jshide");
|
||||
}
|
||||
}
|
||||
}
|
||||
let f, A = [], r = h.loco, t = r.conf, n = 0, v = t.paths.length - 2, e = g.getElementById("loco-ui");
|
||||
h = g.getElementById("loco-fs");
|
||||
g = e.getElementsByTagName("form").item(0);
|
||||
let D = e.getElementsByTagName("button"), w = d(e).find("div.diff-meta"), B = D.item(0), C = D.item(1);
|
||||
h && g && r.fs.init(h).setForm(g);
|
||||
v && (d(B).on("click", J).parent().removeClass("jshide"), d(C).on("click", I).parent().removeClass("jshide"));
|
||||
u(0);
|
||||
}(window, document, window.jQuery);
|
||||
99
wp-content/plugins/loco-translate/pub/js/min/poinit.js
Normal file
@@ -0,0 +1,99 @@
|
||||
"use strict";
|
||||
|
||||
!function(z, w, d) {
|
||||
function p(a) {
|
||||
d(h).find("button.button-primary").each(function(c, b) {
|
||||
b.disabled = a;
|
||||
});
|
||||
}
|
||||
function x() {
|
||||
var a = q && q.val(), c = a && a.isValid() && "zxx" !== a.lang;
|
||||
const b = r && r.val();
|
||||
c = c && b;
|
||||
A(a);
|
||||
p(!0);
|
||||
c && (a = r.txt(), a !== t ? (t = a, u.path.value = t, y.listen(B).connect()) : p(!1));
|
||||
}
|
||||
function B(a) {
|
||||
p(!a);
|
||||
}
|
||||
function A(a) {
|
||||
const c = d(h), b = a && a.toString("_") || "", g = b ? "zxx" === b ? "{locale}" : b : "{invalid}";
|
||||
c.find("code.path span").each(function(n, e) {
|
||||
e.textContent = g;
|
||||
});
|
||||
c.find("span.lang").each(function(n, e) {
|
||||
a && "zxx" !== a.lang ? (e.setAttribute("lang", a.lang), e.setAttribute("class", a.getIcon())) : (e.setAttribute("lang", ""),
|
||||
e.setAttribute("class", "lang nolang"));
|
||||
});
|
||||
}
|
||||
function C(a) {
|
||||
(a = a && a.redirect) && location.assign(a);
|
||||
}
|
||||
let t = "";
|
||||
const l = z.loco, u = w.getElementById("loco-fs"), h = w.getElementById("loco-poinit"), y = u && l.fs.init(u), q = function(a) {
|
||||
function c() {
|
||||
m[0].checked = !0;
|
||||
e(!0);
|
||||
}
|
||||
function b() {
|
||||
k.value || (k.value = g());
|
||||
m[1].checked = !0;
|
||||
e(!1);
|
||||
}
|
||||
function g() {
|
||||
const f = d(m[0].checked ? v : k).serializeArray();
|
||||
return f[0] && f[0].value || "";
|
||||
}
|
||||
function n() {
|
||||
e(m[0].checked);
|
||||
return !0;
|
||||
}
|
||||
function e(f) {
|
||||
k.disabled = f;
|
||||
v.disabled = !f;
|
||||
D.className = f ? "disabled" : "active";
|
||||
E.className = f ? "active" : "disabled";
|
||||
x();
|
||||
}
|
||||
const v = a["select-locale"], k = a["custom-locale"], m = a["use-selector"], E = d(v).on("focus", c).closest("fieldset").on("click", c)[0], D = d(k).on("focus", b).closest("fieldset").on("click", b)[0];
|
||||
return {
|
||||
val: function() {
|
||||
var f = g();
|
||||
return f ? l.locale.parse(f) : l.locale.clone({
|
||||
lang: "zxx"
|
||||
});
|
||||
},
|
||||
init: function() {
|
||||
d(m).change(n);
|
||||
n();
|
||||
l.watchtext(k, function() {
|
||||
d(k.form).triggerHandler("change");
|
||||
});
|
||||
}
|
||||
};
|
||||
}(h), r = function() {
|
||||
function a(b) {
|
||||
var g;
|
||||
return (g = (g = d(c).serializeArray()[0]) && g.value || null) && h[b + "[" + g + "]"];
|
||||
}
|
||||
const c = h["select-path"];
|
||||
return {
|
||||
val: function() {
|
||||
const b = a("path");
|
||||
return b && b.value;
|
||||
},
|
||||
txt: function() {
|
||||
const b = a("path");
|
||||
return b && d(b.parentNode).find("code.path").text();
|
||||
}
|
||||
};
|
||||
}(h);
|
||||
q.init();
|
||||
d(h).on("change", x).on("submit", function(a) {
|
||||
a.preventDefault();
|
||||
y.applyCreds(h);
|
||||
l.ajax.submit(a.target, C);
|
||||
return !1;
|
||||
});
|
||||
}(window, document, window.jQuery);
|
||||
16
wp-content/plugins/loco-translate/pub/js/min/potinit.js
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
!function(c, b, e) {
|
||||
function f(a) {
|
||||
(a = a && a.redirect) && location.assign(a);
|
||||
}
|
||||
const d = c.loco;
|
||||
c = b.getElementById("loco-fs");
|
||||
b = b.getElementById("loco-potinit");
|
||||
e(b).on("submit", function(a) {
|
||||
a.preventDefault();
|
||||
d.ajax.submit(a.target, f);
|
||||
return !1;
|
||||
});
|
||||
c && d.fs.init(c).setForm(b);
|
||||
}(window, document, window.jQuery);
|
||||
56
wp-content/plugins/loco-translate/pub/js/min/poview.js
Normal file
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
|
||||
!function(p, u, c) {
|
||||
const g = p.loco, C = g.po.ref.init(g, g.conf), h = u.getElementById("loco-po");
|
||||
!function(d, e) {
|
||||
function b() {
|
||||
l.length && (v.push([ m, w ]), e.push(l), l = []);
|
||||
m = null;
|
||||
}
|
||||
function k(a) {
|
||||
return c('<ol class="msgcat"></ol>').attr("start", a).appendTo(d);
|
||||
}
|
||||
function q(a) {
|
||||
x !== a && (c("#loco-content")[a ? "removeClass" : "addClass"]("loco-invalid"),
|
||||
x = a);
|
||||
}
|
||||
let m, w, l = [], v = [], x = !0, r = !1, t = c(d).find("li");
|
||||
t.each(function(a, f) {
|
||||
f = c(f);
|
||||
f.find("span.po-none").length ? b() : (w = a, null == m && (m = a), a = f.find(".po-text").text(),
|
||||
"" !== a && (l = l.concat(a.replace(/\\[ntvfab\\"]/g, " ").split(" "))));
|
||||
});
|
||||
b();
|
||||
g.watchtext(c(d.parentNode).find("form.loco-filter")[0].q, function(a) {
|
||||
if (a) {
|
||||
var f = e.find(a), y = -1, z = f.length, A;
|
||||
c("ol", d).remove();
|
||||
if (z) {
|
||||
for (;++y < z; ) {
|
||||
var B = v[f[y]];
|
||||
a = B[0];
|
||||
for (A = k(a + 1); a <= B[1]; a++) A.append(t[a]);
|
||||
}
|
||||
q(!0);
|
||||
} else q(!1), k(0).append(c("<li></li>").text(g.l10n._("Nothing matches the text filter")));
|
||||
r = !0;
|
||||
n();
|
||||
} else r && (q(!0), r = !1, c("ol", d).remove(), k(1).append(t), n());
|
||||
});
|
||||
}(h, g.fulltext.init());
|
||||
c(h).removeClass("loco-loading");
|
||||
var n = function() {
|
||||
let d, e = h.clientHeight - 2;
|
||||
return function() {
|
||||
for (var b = h, k = b.offsetTop || 0; (b = b.offsetParent) && b !== u.body; ) k += b.offsetTop || 0;
|
||||
b = p.innerHeight - k - 20;
|
||||
d !== b && (h.style.height = b < e ? String(b) + "px" : "", d = b);
|
||||
};
|
||||
}();
|
||||
n();
|
||||
c(p).resize(n);
|
||||
c(h).on("click", function(d) {
|
||||
const e = d.target;
|
||||
if (e.hasAttribute("href")) return d.preventDefault(), C.load(e.textContent), !1;
|
||||
});
|
||||
}(window, document, window.jQuery);
|
||||
60
wp-content/plugins/loco-translate/pub/js/min/setup.js
Normal file
@@ -0,0 +1,60 @@
|
||||
"use strict";
|
||||
|
||||
!function(r, t, b) {
|
||||
function u(a, f, k) {
|
||||
function e() {
|
||||
l("Failed to contact remote API");
|
||||
c = null;
|
||||
}
|
||||
function g() {
|
||||
c && (clearTimeout(c), c = null);
|
||||
}
|
||||
var c = setTimeout(e, 3e3);
|
||||
l("");
|
||||
b.ajax({
|
||||
url: n.apiUrl + "/" + a + "/" + f + ".jsonp?version=" + encodeURIComponent(k),
|
||||
dataType: "jsonp",
|
||||
success: function(h) {
|
||||
if (c) {
|
||||
g();
|
||||
const p = h && h.exact, v = h && h.status;
|
||||
p ? (d["json-content"].value = p, b("#loco-remote-empty").hide(), b("#loco-remote-found").show()) : 404 === v ? l("Sorry, we don't know a bundle by this name") : (q.notices.error(h.error || "Unknown server error"),
|
||||
e());
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
c && (g(), e());
|
||||
},
|
||||
cache: !0
|
||||
});
|
||||
return {
|
||||
abort: g
|
||||
};
|
||||
}
|
||||
function l(a) {
|
||||
d["json-content"].value = "";
|
||||
b("#loco-remote-empty").show().find("span").text(a);
|
||||
b("#loco-remote-found").hide().removeClass("jshide");
|
||||
}
|
||||
var q = r.loco, n = q.conf || {}, m, d = t.getElementById("loco-remote");
|
||||
b(d).find('button[type="button"]').on("click", function(a) {
|
||||
a.preventDefault();
|
||||
m && m.abort();
|
||||
m = u(d.vendor.value, d.slug.value, d.version.value);
|
||||
return !1;
|
||||
});
|
||||
b(d).find('input[type="reset"]').on("click", function(a) {
|
||||
a.preventDefault();
|
||||
l("");
|
||||
return !1;
|
||||
});
|
||||
b.ajax({
|
||||
url: n.apiUrl + "/vendors.jsonp",
|
||||
dataType: "jsonp",
|
||||
success: function(a) {
|
||||
for (var f = -1, k, e, g = a.length, c = b(d.vendor).html(""); ++f < g; ) k = a[f][0],
|
||||
e = a[f][1], c.append(b("<option></option>").attr("value", k).text(e));
|
||||
},
|
||||
cache: !0
|
||||
});
|
||||
}(window, document, window.jQuery);
|
||||
40
wp-content/plugins/loco-translate/pub/js/min/system.js
Normal file
@@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
|
||||
!function(d, c) {
|
||||
function k(a, b, e) {
|
||||
"success" !== b && (e = d.ajax.parse(d.ajax.strip(a.responseText)));
|
||||
c("#loco-ajax-check").text("FAILED: " + e).addClass("loco-danger");
|
||||
}
|
||||
function g(a, b) {
|
||||
return c("#loco-api-" + a).text(b);
|
||||
}
|
||||
function m(a) {
|
||||
var b = a.getId();
|
||||
a.key() ? a.verify(function(e) {
|
||||
e ? g(b, "OK ✓") : g(b, "FAILED").addClass("loco-danger");
|
||||
}) : g(b, d.l10n._("No API key"));
|
||||
}
|
||||
var f = c("#loco-utf8-check")[0].textContent, h = d.conf;
|
||||
1 === f.length && 10003 === f.charCodeAt(0) || d.notices.warn("This page has a problem rendering UTF-8").stick();
|
||||
window.ajaxurl && c("#loco-ajax-url").text(window.ajaxurl);
|
||||
c("#loco-vers-jquery").text([ c.fn && c.fn.jquery || "unknown", "ui/" + (c.ui && c.ui.version || "none"), "migrate/" + (c.migrateVersion || "none") ].join("; "));
|
||||
d.ajax.post("ping", {
|
||||
echo: "ΟΚ ✓"
|
||||
}, function(a, b, e) {
|
||||
a && a.ping ? c("#loco-ajax-check").text(a.ping) : k(e, b, a && a.error && a.error.message);
|
||||
}, k);
|
||||
f = h.apis;
|
||||
h = f.length;
|
||||
const l = d.apis.providers();
|
||||
if (d.apis) {
|
||||
let a = -1;
|
||||
for (;++a < h; ) {
|
||||
const b = f[a], e = b.id;
|
||||
try {
|
||||
m(d.apis.create(b, l[e] || l._));
|
||||
} catch (n) {
|
||||
g(e, String(n));
|
||||
}
|
||||
}
|
||||
} else d.notices.error("admin.js is out of date. Please empty your browser cache.");
|
||||
}(window.loco, window.jQuery);
|
||||
54
wp-content/plugins/loco-translate/pub/js/min/upload.js
Normal file
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
|
||||
!function(e, l, m) {
|
||||
function h(a) {
|
||||
const n = m(b).find("button.button-primary");
|
||||
n.each(function(A, t) {
|
||||
t.disabled = a;
|
||||
});
|
||||
return n;
|
||||
}
|
||||
function p() {
|
||||
h(!0).addClass("loco-loading");
|
||||
}
|
||||
function f(a) {
|
||||
h(a).removeClass("loco-loading");
|
||||
}
|
||||
function u(a) {
|
||||
f(!(a && c && d));
|
||||
}
|
||||
function q() {
|
||||
b.path.value = c + "/" + d;
|
||||
p();
|
||||
g.connect();
|
||||
}
|
||||
function v(a) {
|
||||
d = String(b.f.value).split(/[\\\/]/).pop();
|
||||
a = a.target || {};
|
||||
if ("dir" === a.name && a.checked) {
|
||||
if ((a = a.value) && a !== c && (c = a, d)) {
|
||||
q();
|
||||
return;
|
||||
}
|
||||
} else if ("f" === a.name && c) {
|
||||
q();
|
||||
return;
|
||||
}
|
||||
h(!(c && d && g.authed()));
|
||||
}
|
||||
function w(a) {
|
||||
a.redirect ? (f(!0), e.location.assign(a.redirect)) : f(!1);
|
||||
}
|
||||
function x() {
|
||||
f(!1);
|
||||
}
|
||||
function y(a) {
|
||||
if (c && d && g.authed()) return z ? (a.preventDefault(), a = new FormData(b), p(),
|
||||
k.ajax.post("upload", a, w, x), !1) : !0;
|
||||
a.preventDefault();
|
||||
return !1;
|
||||
}
|
||||
let g, c, d;
|
||||
const k = e.loco, z = (k && k.conf || {}).multipart && e.FormData && e.Blob, r = l.getElementById("loco-fs"), b = l.getElementById("loco-main");
|
||||
r && b && (g = e.loco.fs.init(r).setForm(b).listen(u), m(b).change(v).submit(y));
|
||||
}(window, document, window.jQuery);
|
||||