diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a29713a..ba02fe17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v3.6.2 +* Добавлена валидация валют при настройке модуля + ## v3.6.1 * Добавлены тесты для новых версий PrestaShop diff --git a/VERSION b/VERSION index 9575d51b..b7276283 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.6.1 +3.6.2 diff --git a/retailcrm/lib/settings/RetailcrmSettingsValidator.php b/retailcrm/lib/settings/RetailcrmSettingsValidator.php index 996808b0..36f10820 100644 --- a/retailcrm/lib/settings/RetailcrmSettingsValidator.php +++ b/retailcrm/lib/settings/RetailcrmSettingsValidator.php @@ -83,14 +83,12 @@ public function getSuccess() public function validate($validateFromRequestOnly = false) { // check url and apiKey + $crmUrl = $this->settings->getValueWithStored('url'); + $crmApiKey = $this->settings->getValueWithStored('apiKey'); + if (!$validateFromRequestOnly || $this->settings->issetValue('url') || $this->settings->issetValue('apiKey')) { - if ($this->validateCrmAddress($this->settings->getValueWithStored('url')) - && $this->validateCrmApiKey($this->settings->getValueWithStored('apiKey')) - ) { - $this->validateApiCredentials( - $this->settings->getValueWithStored('url'), - $this->settings->getValueWithStored('apiKey') - ); + if ($this->validateCrmAddress($crmUrl) && $this->validateCrmApiKey($crmApiKey)) { + $this->validateApiCredentials($crmUrl, $crmApiKey); } } @@ -304,12 +302,31 @@ private function validateMappingSelected($values) public function validateApiCredentials($url, $apiKey) { /** @var RetailcrmProxy|RetailcrmApiClientV5 $api */ - $api = new RetailcrmProxy( - $url, - $apiKey + $api = new RetailcrmProxy($url, $apiKey); + + return $this->validateApiVersion($api) && $this->validateApiAccess($api) && $this->validateCurrency($api); + } + + private function validateCurrency($api) + { + $response = $api->sitesList(); + + if ($response instanceof RetailcrmApiResponse && $response->isSuccessful() && isset($response['sites'])) { + $site = current($response['sites']); + } + + $currencyId = (int) Configuration::get('PS_CURRENCY_DEFAULT'); + $isoCode = Db::getInstance()->getValue( + 'SELECT `iso_code` FROM ' . _DB_PREFIX_ . 'currency WHERE `id_currency` = ' . $currencyId ); - return $this->validateApiVersion($api) && $this->validateApiAccess($api); + if (isset($site['currency']) && $site['currency'] !== $isoCode) { + $this->addError('apiKey', 'errors.currency'); + + return false; + } + + return true; } /** diff --git a/retailcrm/retailcrm.php b/retailcrm/retailcrm.php index f0710c49..063c22a1 100755 --- a/retailcrm/retailcrm.php +++ b/retailcrm/retailcrm.php @@ -48,7 +48,7 @@ class RetailCRM extends Module { - const VERSION = '3.6.1'; + const VERSION = '3.6.2'; const API_URL = 'RETAILCRM_ADDRESS'; const API_KEY = 'RETAILCRM_API_TOKEN'; diff --git a/retailcrm/views/js/app.js b/retailcrm/views/js/app.js index 66ca8976..8b8fb96a 100644 --- a/retailcrm/views/js/app.js +++ b/retailcrm/views/js/app.js @@ -34,4 +34,4 @@ * Don\'t forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. * - */(function(e){function t(t){for(var s,o,i=t[0],c=t[1],l=t[2],u=0,p=[];useparated by commas without spaces (1,2,3,4,5) or specify range (1-5)","Up to 10 orders can be uploaded at a time"],placeholder:"One or more separated by commas or a range",hint:"The ID number corresponds to the order number in PrestaShop",btn:"Upload orders"},export:{title:"Export orders",desc:"Orders that were created in the CMS before the module was connected or that could not be uploaded due to an error during operation",advices:["After the start of export, do not close the tab and do not leave this page","If the export process is interrupted (for example, you leave the page or there are problems with the connection), it can be resumed from the place of stopping"],searching:"Search for unloaded orders",count:{total:"Total orders",unloaded:"Unloaded orders",customers:"Total customers"},run:"Start export","run-desc":"Export only unloaded orders","run-all":"Export all","run-all-desc":"Export all orders and all customers, update history tag",success:"All orders have been exported"},table:{search:{btn:"Search",placeholder:"CMS order ID"},filter:{all:"All",succeeded:"Uploaded",failed:"With an error"},head:{date:"Date and time",id_cms:"ID in CMS",id_crm:"ID in CRM",status:"Status"},"not-found":"Orders not found",uploaded:"Uploaded",failed:"Error",upload:"Upload again",uploading:"Being uploaded"}},check:{title:"How do I make sure the module is working?",text:{duplicate:"To check the module's operation, duplicate the last order in Prestashop","go-to":"Go to",simla:"Simla.com",sales:"Sales",orders:"Orders","and-check-order":"and check whether the order has appeared in the list","check-options":'If you need that when changing an order or a customer, the data comes not only from PrestaShop to Simla.com , but also from Simla.com in PrestaShop, make sure that the "Two-sided" option is enabled in the module settings in the "Advanced" section syncing"',"remove-tests":"After you have verified that synchronization is working correctly, test orders can be deleted in Simla.com and PrestaShop","if-has-any-questions":"If there are problems with the module or there is not enough information on working with Simla.com ","ask-support":"contact tech support","or-read":"or check out",materials:"educational materials"}},errors:{unknown:"Unknown error",url:"Invalid CRM URL address",key:"Invalid API key",connect:"Failed to verify API key",access:"API key with one-shop access required",scopes:"API key permissions are not enough for module operation",version:"The selected API version is unavailable",carts:"The order status for abandoned baskets should not be used in other settings",status:"Order statuses should not be repeated in the comparison",delivery:"Delivery types should not be repeated in the mapping",payment:"Payment types should not be repeated in the comparison",collector:"Invalid or empty ID"},warnings:{delivery:"Select values for all delivery types",status:"Select values for all order statuses",payment:"Select values for all payment types",default:"Select values for all default parameters"}}},"27f5":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".info-image[data-v-66d582dd]{width:100%;height:auto;box-shadow:0 8px 16px rgba(30,34,72,.16)}",""]),e.exports=t},2965:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.73 7.12l-.14-.25a2.07 2.07 0 00-.74-.73l-6.71-3.87a2 2 0 00-1-.27h-.29a2 2 0 00-1 .27L4.14 6.15a2 2 0 00-.73.73l-.14.25a2 2 0 00-.27 1v7.75a2 2 0 00.27 1l.14.25c.18.3.43.55.73.73l6.72 3.87c.302.18.648.273 1 .27h.28a2 2 0 001-.27l6.71-3.88a1.9 1.9 0 00.73-.73l.15-.25a2.05 2.05 0 00.27-1V8.12a2 2 0 00-.27-1zM11.85 4h.29L18 7.38l-2.085 1.202-5.885-3.53L11.85 4zm-3.8 2.196l5.883 3.53L12 10.84 6 7.38l2.05-1.184zM13 19.5l5.85-3.38.15-.25V9.11l-6 3.47v6.92zm-2-7L5 9v7l6 3.5v-7z"}})]))}}},"2b5d":function(e,t,a){var s=a("33cc");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("ba16b3e0",s,!0,{sourceMap:!1,shadowMode:!1})},"2db6":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,'.dot-list__item{display:flex;align-items:center;margin-bottom:4px;font-weight:400;font-size:14px;line-height:1.42857143}.dot-list__icon{width:24px;height:24px;min-width:24px;align-self:flex-start}.chain-arrow{display:inline-block;vertical-align:baseline}.chain-arrow:after{content:"\\2192";display:inline-block;vertical-align:top;line-height:18px;margin:0 4px}.select-box__row{display:flex;margin-bottom:16px}.select-box__row_head{margin-bottom:20px}.select-box__row_head .select-box__col{padding-bottom:12px;border-bottom:1px solid #dee2e6;display:flex;align-items:center;justify-content:space-between;min-height:51px}.select-box__col{width:264px}.select-box__col_name{display:flex;align-items:center}.select-box__col+.select-box__col{margin-left:32px}.select-box__title{font-weight:500;font-size:18px;line-height:1.55555556;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1;padding-right:16px}.select-box__icon{width:24px;height:24px;fill:#c7cdd4}*{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}body{background-color:#fff;color:#000}.settings-box{min-width:100%}.settings-footer{display:flex;justify-content:space-between;width:100%}.switch-content{padding-left:52px}.full-width{width:100%}.nobootstrap label{width:auto}.nobootstrap input[type=text]{box-shadow:none!important}.bootstrap span[class^=UiButton_btn__txt]{font-size:14px}',""]),e.exports=t},3e3:function(e,t,a){e.exports=a.p+"img/ru/where-is-search-2.png"},3236:function(e,t,a){var s=a("eb0f");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("654c53fb",s,!0,{sourceMap:!1,shadowMode:!1})},"33cc":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".settings-box__label[data-v-c0910eb8]{color:#8a96a6;margin-left:8px}",""]),e.exports=t},"361e":function(e,t,a){"use strict";a("0015")},"372c":function(e,t,a){"use strict";a("4aeb")},"375b":function(e,t,a){"use strict";a("19bf")},"3a3a":function(e,t,a){"use strict";a("7b6a")},"3abd":function(e,t,a){var s=a("4bb9");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("06b47fd1",s,!0,{sourceMap:!1,shadowMode:!1})},"3b25":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".checking-work-image[data-v-9f78cc46]{border-radius:4px;border:1px solid #dee2e6;box-shadow:0 8px 16px rgba(30,34,72,.16)}.chain-arrow[data-v-9f78cc46]:after{line-height:1.5}",""]),e.exports=t},"3c28":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".additional[data-v-75423ba6]{padding:24px 24px 24px 52px;margin-bottom:-12px;background:#f9fafb}.additional__row[data-v-75423ba6]{margin-bottom:15px;padding-bottom:20px;border-bottom:1px solid #dee2e6}.additional__title[data-v-75423ba6]{font-weight:400;font-size:16px;line-height:1.5}.additional__text[data-v-75423ba6]{font-weight:400;font-size:14px;line-height:1.42857143;color:#8a96a6;margin-top:8px}",""]),e.exports=t},"3c5d":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{d:"M12.025 2.8c-.02 0-.02 0 0 0-.02 0-.02 0 0 0-5.08 0-9.22 4.12-9.22 9.2 0 5.06 4.12 9.2 9.18 9.2 5.08 0 9.2-4.12 9.2-9.2.02-5.06-4.1-9.2-9.16-9.2zm.78 16.76V17.5c0-.44-.36-.8-.8-.8-.44 0-.8.36-.8.8v2.06a7.58 7.58 0 01-6.76-6.76h2.06c.44 0 .8-.36.8-.8 0-.44-.36-.8-.8-.8h-2.06a7.58 7.58 0 016.76-6.76V6.5c0 .44.36.8.8.8.44 0 .8-.36.8-.8V4.44c3.6.38 6.38 3.2 6.76 6.76h-2.06c-.44 0-.8.36-.8.8 0 .44.36.8.8.8h2.06a7.58 7.58 0 01-6.76 6.76z"}})]))}}},"46a4":function(e,t,a){"use strict";a("7f90")},"48fa":function(e,t,a){e.exports=a.p+"img/ru/where-is-search-5.png"},"4a78":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.169 2.445a1 1 0 011.386-.277l3 2A1 1 0 018.001 5v11.17A3.008 3.008 0 019.83 18H18a1 1 0 110 2H9.83A3.001 3.001 0 116 16.17V5.536L3.447 3.832a1 1 0 01-.277-1.387zM7 18h-.01a1 1 0 10.02 0H7z"}}),a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9 7a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2h-8a2 2 0 01-2-2V7zm4 0h-2v8h8V7h-2v3h-4V7z"}})]))}}},"4aeb":function(e,t,a){var s=a("27f5");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("1f27c8c8",s,!0,{sourceMap:!1,shadowMode:!1})},"4bb9":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".top-bar[data-v-659e5b4d]{justify-content:space-between;align-items:flex-end;width:100%}.top-bar[data-v-659e5b4d],.top-bar__search[data-v-659e5b4d]{display:flex}.top-bar__search-field[data-v-659e5b4d]{margin-right:8px;max-width:200px}.table[data-v-659e5b4d]{width:100%;border-collapse:collapse;border:none;text-align:left}.table-wrapper[data-v-659e5b4d]{position:relative}.table__head[data-v-659e5b4d]{background:#f4f6f8;border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.nobootstrap .table__head-cell[data-v-659e5b4d],.table__head-cell[data-v-659e5b4d]{color:#8a96a6;padding-top:12px;padding-bottom:12px;font-weight:500;font-size:12px;line-height:1.16666667}.nobootstrap .table__head-cell[data-v-659e5b4d]:first-of-type,.table__head-cell[data-v-659e5b4d]:first-of-type{padding-left:24px}.table__cell_center[data-v-659e5b4d]{text-align:center}",""]),e.exports=t},"4d94":function(e,t,a){var s=a("1691");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("0f995a82",s,!0,{sourceMap:!1,shadowMode:!1})},"4f46":function(e,t,a){"use strict";a("3236")},"53fa":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{d:"M20.5 10h-5a.5.5 0 01-.5-.5v-.29a.49.49 0 01.15-.36l1.78-1.78A6.93 6.93 0 0012 5a7 7 0 107 7.47.5.5 0 01.5-.47h1a.52.52 0 01.36.16.5.5 0 01.13.37 9 9 0 11-2.62-6.89l1.49-1.49a.49.49 0 01.35-.15h.29a.5.5 0 01.5.5v5a.5.5 0 01-.5.5z"}})]))}}},5458:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.03 2a.48.48 0 01.35.151l18.47 18.47a.479.479 0 010 .699l-.53.529a.48.48 0 01-.7 0l-.88-.879a2.001 2.001 0 01-3.69-.663c-.147-.821.231-1.647.95-2.072l-1.24-1.258H7a.76.76 0 01-.67-.33l-.22-.379a.768.768 0 010-.709l1.86-3.694a2.186 2.186 0 01-.27-.35l-3.4-5.99L2.15 3.38a.479.479 0 010-.699l.53-.529A.48.48 0 013.03 2zm6.59 10.893l-1 2.087h5.1l-2-1.997h-1.46a2.745 2.745 0 01-.64-.09zM21.5 3.998H7.71l9 8.985A2.94 2.94 0 0019 11.476l2.35-4.123A4.747 4.747 0 0022 4.997v-.5a.5.5 0 00-.5-.499zM6 19.972c0-1.103.895-1.997 2-1.997s2 .894 2 1.997a1.998 1.998 0 01-2 1.996c-1.105 0-2-.893-2-1.996z"}})]))}}},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var s=a("a026"),n=a("9fc3"),r=a.n(n),o=(a("a93e"),a("70cc"),function(e){e.component("IconCheckmark",a("c84e")),e.component("IconDelivery",a("4a78")),e.component("IconDot",a("6a22")),e.component("IconRefresh",a("53fa")),e.component("IconCreditCard",a("f4e3")),e.component("IconСheckmarkSquare",a("bb2b")),e.component("IconSettings",a("79a6")),e.component("IconCartOff",a("5458")),e.component("IconVisible",a("7382")),e.component("IconSmsChat",a("c8f6")),e.component("IconTargetLocation",a("3c5d")),e.component("IconFlash",a("782a")),e.component("IconOrder",a("2965")),e.component("IconSync",a("9c0e")),e.component("IconPauseCircle",a("fa43")),e.component("IconPlayCircle",a("9706")),e.component("IconLinkOff",a("8c10")),e.component("IconWarningOutlined",a("0f26")),e.component("IconUploadFrom",a("dc11"))}),i={background:"rgba(145,142,152,0.2)",textColor:"#1f1f1f"},c={new:{code:"new",background:"#FEA530",textColor:"#fff"},approval:{code:"approval",background:"rgba(254, 165, 48, 0.2)",textColor:"#BC6B01"},assembling:{code:"assembling",background:"rgba(101, 40, 215, 0.1)",textColor:"#4a2aa5"},delivery:{code:"delivery",background:"rgba(63,215,40,0.1)",textColor:"#2aa53e"},complete:{code:"complete",background:"rgba(30,93,26,0.5)",textColor:"#265416"},cancel:{code:"cancel",background:"rgba(215,40,40,0.2)",textColor:"#a52a2a"}},l={default:"blue",done:"green",fail:"red",warn:"yellow"},d={locale:"en",controller:{settings:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmSettings&token=1aed79d44114d65e476031ec3ec57795",payments:"http://dev.prestashop.lc/admin-dev/index.php?controller=AdminPaymentPreferences&token=af1fbb08db1b6a1246f7b80dd2e093b5",orders:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmOrders&token=5ed712457f0ba7028a2f7fad96ff5170",export:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmExport&token=1702fdc9b2e24d99dbc2145d2fd1cab8",link:"http://dev.prestashop.lc/admin-dev/index.php?controller=AdminOrders&token=f085ee727d11734a218da4ead8354298",jobs:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmJobs&token=9895685278a140c5c60bbd41e1fc6568",logs:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmLogs&token=05a37fbb219890c7e1c3db741a5553c1"},main:{connection:{url:"https://demo.retailcrm.ru/",apiKey:"fffffffffffffffffffffffffff"},delivery:{setting:{2:""},cms:[{label:"Prestashop Staging",id:"2",required:!1}],crm:[{code:"self-delivery",name:"Самовывоз"},{code:"russian-post",name:"Почта России"},{code:"ems",name:"EMS Почта России"},{code:"courier-test-privet",name:"Courier"},{code:"courier",name:"Доставка курьером"},{code:"servientrega",name:"Servientrega"},{code:"tnt",name:"TNT"},{code:"servientrega",name:"Servientrega"},{code:"correos-express",name:"Correos Express"}]},payment:{setting:{ps_checkpayment:"",ps_wirepayment:""},cms:[{id:11,code:"ps_checkpayment",name:"Payments by check"},{id:30,code:"ps_wirepayment",name:"Wire payment"}],crm:[{code:"bank-card",name:"Банковская карта"},{code:"e-money",name:"Электронные деньги"},{code:"bank-transfer",name:"Банковский перевод"},{code:"credit",name:"Кредит"},{code:"cash",name:"Наличные"}]},status:{setting:{1:"assembling-complete",2:"",3:"new",4:"",5:"send-to-assembling",6:"manual",7:"offer-analog",8:"",9:"send-to-delivery",10:"no-product",11:"",12:"client-confirmed",13:"error-de-descontar-el-stock"},cms:[{label:"Awaiting bank wire payment",id:"10",required:!1},{label:"Awaiting Cash On Delivery validation",id:"13",required:!1},{label:"Awaiting check payment",id:"1",required:!1},{label:"Canceled",id:"6",required:!1},{label:"Delivered",id:"5",required:!1},{label:"On backorder (not paid)",id:"12",required:!1},{label:"On backorder (paid)",id:"9",required:!1},{label:"Payment accepted",id:"2",required:!1},{label:"Payment accepted",id:"11",required:!1},{label:"Payment error",id:"8",required:!1},{label:"Processing in progress",id:"3",required:!1},{label:"Refunded",id:"7",required:!1},{label:"Shipped",id:"4",required:!1}],crm:[{statuses:[{code:"new",name:"Новый",ordering:10},{code:"abandoned-cart",name:"Брошенная корзина",ordering:990}],code:"new",name:"Новый",ordering:10},{statuses:[{code:"manual",name:"Manual",ordering:990}],code:"manual",name:"Manual",ordering:15},{statuses:[{code:"offer-analog",name:"Предложить замену",ordering:20},{code:"upsell",name:"upsell",ordering:25},{code:"client-confirmed",name:"Согласовано с клиентом",ordering:30},{code:"prepayed",name:"Предоплата поступила",ordering:40}],code:"approval",name:"Согласование",ordering:20},{statuses:[{code:"send-to-assembling",name:"Передано в комплектацию",ordering:10},{code:"assembling",name:"Комплектуется",ordering:20},{code:"assembling-complete",name:"Укомплектован",ordering:30},{code:"reservation-error",name:"Ошибка бронирования",ordering:990},{code:"preparado",name:"preparado",ordering:990},{code:"error-de-descontar-el-stock",name:"error-de-descontar-el-stock",ordering:990}],code:"assembling",name:"Комплектация",ordering:30},{statuses:[{code:"send-to-delivery",name:"Передан в доставку",ordering:10},{code:"delivering",name:"Доставляется",ordering:20},{code:"redirect",name:"Доставка перенесена",ordering:30}],code:"delivery",name:"Доставка",ordering:40},{statuses:[{code:"complete",name:"Выполнен",ordering:10}],code:"complete",name:"Выполнен",ordering:50},{statuses:[{code:"no-call",name:"Недозвон",ordering:10},{code:"no-product",name:"Нет в наличии",ordering:20},{code:"already-buyed",name:"Купил в другом месте",ordering:30},{code:"delyvery-did-not-suit",name:"Не устроила доставка",ordering:40},{code:"prices-did-not-suit",name:"Не устроила цена",ordering:50},{code:"cancel-other",name:"Отменен",ordering:60},{code:"rehusado-recibido",name:"rehusado-recibido",ordering:990},{code:"return",name:"Returned",ordering:990}],code:"cancel",name:"Отменен",ordering:60}]}},additional:{settings:{corporate:!0,numberSend:!0,numberReceive:!1,webJobs:!0,debug:!1},history:{enabled:!0,deliveryDefault:"",paymentDefault:"",delivery:[{label:"Prestashop Staging",id:"2",required:!1}],payment:[{id:11,code:"ps_checkpayment",name:"Payments by check"},{id:30,code:"ps_wirepayment",name:"Wire payment"}]},stocks:{enabled:!1,statuses:{out_of_stock_paid:"",out_of_stock_not_paid:""}},carts:{synchronizeCartsActive:!0,synchronizedCartStatus:"",synchronizedCartDelay:"2700",delays:["900","1800","2700","3600"]},collector:{collectorActive:!1,collectorKey:""},consultant:{consultantScript:""}},catalog:{info:{productsCount:7,offersCount:22,isCatalogConnected:!0,isUrlActual:!0,siteId:"2",lastGenerated:{date:"2022-05-20 11:59:17.000000",timezone_type:3,timezone:"Europe/Moscow"},lastGeneratedDiff:{days:0,hours:0,minutes:38},isOutdated:!1},generateName:"RetailcrmIcmlEvent",updateURLName:"RetailcrmIcmlUpdateUrlEvent"},advanced:{jobs:[{success:!0,lastRun:{date:"2022-02-10 15:04:25.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmAbandonedCartsEvent",running:!1},{success:!0,lastRun:{date:"2022-05-19 13:34:41.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmClearLogsEvent",running:!1},{success:!0,lastRun:{date:"2022-05-20 11:59:18.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmIcmlEvent",running:!1},{success:!0,lastRun:{date:"2022-03-31 18:27:15.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmInventoriesEvent",running:!1},{success:!1,lastRun:{date:"2022-03-04 11:38:12.000000",timezone_type:1,timezone:"+03:00"},error:{message:"Address::dni is empty",trace:"#0 /var/www/html/modules/retailcrm/lib/RetailcrmJobManager.php(706): RetailcrmSyncEvent->execute()\\n#1 /var/www/html/modules/retailcrm/lib/RetailcrmJobManager.php(457): RetailcrmJobManager::execHere('RetailcrmSyncEv...', false, true, 1)\\n#2 /var/www/html/modules/retailcrm/lib/RetailcrmJobManager.php(268): RetailcrmJobManager::runJob('RetailcrmSyncEv...', false, true, 1)\\n#3 /var/www/html/modules/retailcrm/controllers/admin/RetailcrmJobsController.php(85): RetailcrmJobManager::execManualJob('RetailcrmSyncEv...')\\n#4 /var/www/html/modules/retailcrm/controllers/admin/RetailcrmJobsController.php(55): RetailcrmJobsController->runJob('RetailcrmSyncEv...')\\n#5 /var/www/html/modules/retailcrm/controllers/admin/RetailcrmAdminPostAbstractController.php(53): RetailcrmJobsController->postHandler()\\n#6 /var/www/html/modules/retailcrm/controllers/admin/RetailcrmAdminPostAbstractController.php(45): RetailcrmAdminPostAbstractController->getData()\\n#7 /var/www/html/classes/controller/Controller.php(281): RetailcrmAdminPostAbstractController->postProcess()\\n#8 /var/www/html/classes/Dispatcher.php(515): ControllerCore->run()\\n#9 /var/www/html/admin-dev/index.php(97): DispatcherCore->dispatch()\\n#10 {main}"},name:"RetailcrmSyncEvent",running:!1},{success:!0,lastRun:{date:"2022-03-31 18:28:21.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmIcmlUpdateUrlEvent",running:!1}],logs:[{name:"retailcrm_web_2022_05_19.log",path:"/var/www/html/var/logs/retailcrm_web_2022_05_19.log",size:"198 284 bytes",modified:"2022-05-19 22:09:30"},{name:"retailcrm_web_2022_05_20.log",path:"/var/www/html/var/logs/retailcrm_web_2022_05_20.log",size:"4 219 bytes",modified:"2022-05-20 11:59:18"}]}};void 0===window.$appData&&(window.$appData=d,alert("Warning! You are using mock data! If you getting this message and if it is not test environment, then you should clean the cache in settings. If after all you still getting this message then you should contact our support team."));var u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"presta-wrapper",attrs:{id:"app"}},[a("main",{staticClass:"main"},[a("UiRow",{staticClass:"main__panel",attrs:{mb:"20"}},[a("a",{attrs:{href:"#"}},[a("img",{staticClass:"main__logo",attrs:{src:"https://s3-s1.retailcrm.tech/eu-central-1/retailcrm-static/branding/simla/logo/logo_horiz.svg",alt:""}})]),a("AsideLocales")],1),a("div",{staticClass:"main__body"},[e.isLoaded?[e.mode===e.modes.edit?a("aside",{staticClass:"main__aside"},[a("AsideMenu")],1):e._e(),a("article",{staticClass:"main__content"},[a("router-view")],1)]:[a("UiLoader",{attrs:{overlay:!1}})]],2)],1)])},p=[],f=a("1da1"),m=(a("96cf"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("router-link",{staticClass:"nav-link",attrs:{to:"/",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.isActive,n=t.navigate;return[a("UiMenuBtn",{attrs:{active:s},on:{click:n}},[e._v(" "+e._s(e.$t("menu.settings"))+" ")])]}}])}),a("router-link",{staticClass:"nav-link",attrs:{to:"/advanced",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.navigate,n=t.isActive;return[a("UiMenuBtn",{attrs:{active:n},on:{click:s}},[e._v(" "+e._s(e.$t("menu.advanced"))+" ")])]}}])}),a("router-link",{staticClass:"nav-link",attrs:{to:"/orders",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.navigate,n=t.isActive;return[a("UiMenuBtn",{attrs:{active:n},on:{click:s}},[e._v(" "+e._s(e.$t("menu.orders"))+" ")])]}}])}),a("router-link",{staticClass:"nav-link",attrs:{to:"/check-work",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.navigate,n=t.isActive;return[a("UiMenuBtn",{attrs:{active:n},on:{click:s}},[e._v(" "+e._s(e.$t("menu.check"))+" ")])]}}])}),a("router-link",{staticClass:"nav-link",attrs:{to:"/debug",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.navigate,n=t.isActive;return[a("UiMenuBtn",{attrs:{active:n},on:{click:s}},[e._v(" "+e._s(e.$t("menu.debug"))+" ")])]}}])}),a("UiRow",{attrs:{mt:"m"}},[a("NewVersion")],1),a("UiRow",{attrs:{mt:"m"}},[a("CatalogInfo")],1),a("UiRow",{attrs:{mt:"m"}},[a("AsideSupports")],1),a("UiRow",{attrs:{mt:"m"}},[a("AsideLocales")],1)],1)}),h=[],g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"aside-info",class:{"aside-info_warning":e.isLoaded&&!e.catalog.isCatalogConnected}},[e.isLoaded?[e.catalog.isCatalogConnected?a("div",[a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("catalog.connected.title"))+" "),a("UiIcon",{staticClass:"aside-info__icon-status",attrs:{name:"checkmarkCircleOutlined"}})],1),a("UiText",{staticClass:"aside-info__date",attrs:{size:"tiny"}},[e._v(" "+e._s(e.lastGeneratedDate)+" "),a("span",[e._v("•")]),e._v(" "+e._s(e.lastGeneratedTime)+" ")])],1),e.catalog.productsCount&&e.catalog.offersCount?a("div",{staticClass:"aside-info__item"},[a("UiText",{attrs:{size:"paragraph",color:"gray",accent:""}},[e._v(" "+e._s(e.catalog.productsCount)+" ")]),a("UiText",{attrs:{size:"small",color:"gray"}},[e._v(" "+e._s(e.$t("catalog.connected.count.products"))+" ")]),a("UiText",{attrs:{size:"paragraph",color:"gray",accent:""}},[e._v(" "+e._s(e.catalog.offersCount)+" ")]),a("UiText",{attrs:{size:"small",color:"gray"}},[e._v(" "+e._s(e.$t("catalog.connected.count.offers"))+" ")])],1):e._e(),e.catalog.isUrlActual?a("div",{staticClass:"aside-info__item"},[a("UiText",{attrs:{size:"paragraph",color:e.catalog.isOutdated?"action":"gray",accent:""}},[e.catalog.lastGeneratedDiff.days>7?[a("span",[e._v(" "+e._s(e.$t("catalog.connected.date.old"))+" ")])]:[e.catalog.lastGeneratedDiff.days>0?a("span",[e._v(" "+e._s(e.catalog.lastGeneratedDiff.days)+" "+e._s(e.$t("catalog.connected.date.day"))+" ")]):e._e(),e.catalog.lastGeneratedDiff.hours>0?a("span",[e._v(" "+e._s(e.catalog.lastGeneratedDiff.hours)+" "+e._s(e.$t("catalog.connected.date.hour"))+" ")]):e._e(),e.catalog.lastGeneratedDiff.minutes>0?a("span",[e._v(" "+e._s(e.catalog.lastGeneratedDiff.minutes)+" "+e._s(e.$t("catalog.connected.date.min"))+" ")]):e._e()]],2),e.catalog.lastGeneratedDiff.days>0||e.catalog.lastGeneratedDiff.hours>0||e.catalog.lastGeneratedDiff.minutes>0?a("UiText",{attrs:{size:"small",color:e.catalog.isOutdated?"action":"gray"}},[e._v(" "+e._s(e.$t("catalog.connected.date.passed"))+" ")]):e._e(),a("UiRow",{attrs:{mt:"xs"}},[a("UiLink",{attrs:{size:"small","icon-offset":"4","dot-border":""},on:{click:e.generate},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconSync",{})]},proxy:!0}],null,!1,3035392805)},[e._v(" "+e._s(e.$t("catalog.connected.generate"))+" ")])],1)],1):a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status aside-info__status_warning",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("catalog.outdated.title"))+" "),a("IconWarningOutlined",{staticClass:"aside-info__icon-status aside-info__icon-status_warning"})],1),a("UiLink",{attrs:{size:"small","icon-offset":"4","dot-border":""},on:{click:e.updateURL},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconSync",{})]},proxy:!0}],null,!1,3035392805)},[e._v(" "+e._s(e.$t("catalog.outdated.update"))+" ")])],1)]):a("div",[a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("catalog.not-connected.title"))+" "),a("IconWarningOutlined",{staticClass:"aside-info__icon-status"})],1)],1),a("div",{staticClass:"aside-info__item"},[a("UiText",{attrs:{size:"small",color:"gray"}},[e._v(" "+e._s(e.$t("catalog.not-connected.notice"))+" ")]),a("UiRow",{attrs:{mt:"s"}},[a("UiButton",{staticClass:"full-width",attrs:{size:"xs"},on:{click:e.update}},[e._v(" "+e._s(e.$t("catalog.not-connected.check"))+" "),a("IconRefresh")],1)],1),a("UiRow",{attrs:{mt:"xs"}},[a("UiButton",{staticClass:"full-width",attrs:{size:"xs",type:"secondary",href:"mailto:"+e.$t("support.mail")+"?subject="+e.$t("support.subject")+"&body="+e.$t("support.body")}},[e._v(" "+e._s(e.$t("catalog.not-connected.support"))+" ")])],1),a("UiRow",{attrs:{mt:"xs"}},[a("UiButton",{staticClass:"full-width",attrs:{size:"xs",type:"tertiary"}},[e._v(" "+e._s(e.$t("catalog.not-connected.info"))+" ")])],1)],1)])]:[a("UiLoader",{attrs:{overlay:!1}})]],2)},b=[],v=(a("ac1f"),a("1276"),{name:"CatalogInfo",data:function(){return{isLoaded:!1}},computed:{catalog:function(){return this.$store.getters["catalog/getCatalog"]},lastGeneratedDate:function(){if(void 0===this.catalog.lastGenerated.date)return"";var e=this.catalog.lastGenerated.date.split(" ");return 2!==e.length?"":e[0]},lastGeneratedTime:function(){if(void 0===this.catalog.lastGenerated.date)return"";var e=this.catalog.lastGenerated.date.split(" ");return 2!==e.length?"":e[1].substr(0,5)}},created:function(){var e=this;this.$store.dispatch("catalog/load").then((function(){e.isLoaded=!0}))},methods:{generate:function(){var e=this;this.$store.dispatch("catalog/generate").then((function(){e.update()}))},updateURL:function(){var e=this;this.$store.dispatch("catalog/updateUrl").then((function(){e.update()}))},update:function(){this.$store.dispatch("catalog/load")}}}),_=v,y=(a("3a3a"),a("2877")),x=Object(y["a"])(_,g,b,!1,null,"24b39777",null),w=x.exports,C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.latestVersion.isSuccess&&!e.latestVersion.isLatest?a("div",{staticClass:"aside-info aside-info_warning",class:{"aside-info_critical":e.latestVersion.critical}},[e.latestVersion.critical?a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("version.status.critical"))+" "),a("IconWarningOutlined",{staticClass:"aside-info__icon-status"})],1)],1):a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("version.status.update"))+" "),a("IconWarningOutlined",{staticClass:"aside-info__icon-status"})],1)],1),a("UiRow",{attrs:{mt:"s"}},[a("UiButton",{staticClass:"full-width",attrs:{size:"xs"},on:{click:e.download}},[e._v(" "+e._s(e.$t("version.download"))+" "),a("IconUploadFrom")],1)],1),a("UiPopup",{attrs:{type:"hint"},scopedSlots:e._u([{key:"footer",fn:function(){return[e._v(" "+e._s(e.$t("version.info"))+" ")]},proxy:!0}],null,!1,90484190),model:{value:e.hintUpdate,callback:function(t){e.hintUpdate=t},expression:"hintUpdate"}},[a("img",{attrs:{src:e.$i18n.getImage("how-to-update-1.png"),alt:"picture"}})])],1):e._e()},S=[],k={name:"NewVersion",data:function(){return{hintUpdate:!1}},computed:{latestVersion:function(){return this.$store.state.settings.settings.latestVersion}},methods:{download:function(){window.location.href=this.latestVersion.url,this.hintUpdate=!0}}},R=k,U=(a("87c1"),Object(y["a"])(R,C,S,!1,null,"528a40a3",null)),O=U.exports,$=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("UiRow",{attrs:{mb:"xxs"}},[a("UiText",{staticClass:"supports",attrs:{size:"small",accent:""}},[e._v(" "+e._s(e.$t("support.title"))+" ")])],1),a("UiLink",{attrs:{size:"body",href:"mailto:"+e.$t("support.mail")+"?subject="+e.$t("support.subject")+"&body="+e.$t("support.body")}},[e._v(" "+e._s(e.$t("support.mail"))+" ")])],1)},z=[],M={name:"AsideSupports"},j=M,I=(a("375b"),Object(y["a"])(j,$,z,!1,null,"8750f3f4",null)),E=I.exports,L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",e._l(e.getLocales(),(function(t){return a("UiButton",{key:t,attrs:{disabled:e.checkLocale(t),"tooltip-text":e.$t("locale."+t+".long"),size:"xs",type:"tertiary"},on:{click:function(a){return e.toggleLocale(t)}}},[a("span",[e._v(" "+e._s(e.$t("locale."+t+".short"))+" ")])])})),1)},T=[],P={name:"AsideLocales",methods:{getLocales:function(){return this.$i18n.locales()},checkLocale:function(e){return this.$i18n.get()===e},toggleLocale:function(e){this.$i18n.set(e)}}},A=P,D=Object(y["a"])(A,L,T,!1,null,null,null),B=D.exports,q={name:"AsideMenu",components:{AsideLocales:B,NewVersion:O,CatalogInfo:w,AsideSupports:E},data:function(){return{step:0}}},N=q,G=(a("affc"),Object(y["a"])(N,m,h,!1,null,null,null)),W=G.exports,H={wizard:"wizard",edit:"edit"},J={name:"App",components:{AsideMenu:W,AsideLocales:B},data:function(){return{isLoaded:!1,mode:H.wizard}},computed:{modes:function(){return H},settings:function(){return this.$store.getters["settings/getSettings"]}},created:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("settings/load");case 2:return t.next=4,e.$store.dispatch("references/load");case 4:e.mode=e.settings.url&&e.settings.apiKey?H.edit:H.wizard,e.isLoaded=!0;case 6:case"end":return t.stop()}}),t)})))()}},V=J,F=(a("6ddf"),Object(y["a"])(V,u,p,!1,null,"1e13efae",null)),K=F.exports,Y=a("8c4f"),X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("UiCollapseGroupNext",{on:{"ui::collapse-group::expand-cancelled":e.onExpandCancelled},model:{value:e.box,callback:function(t){e.box=t},expression:"box"}},[a("ConnectionSettings",{attrs:{"is-wizard-mode":e.isWizardMode,settings:e.settings}}),a("DeliveriesTypes",{attrs:{"is-wizard-mode":e.isWizardMode,settings:e.settings,references:e.references}}),a("PaymentTypes",{attrs:{"is-wizard-mode":e.isWizardMode,settings:e.settings,references:e.references}}),a("OrderStatuses",{attrs:{"is-wizard-mode":e.isWizardMode,settings:e.settings,references:e.references}})],1)],1)},Q=[],Z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{bordered:"",color:e.status},scopedSlots:e._u([{key:"icon",fn:function(){return[e.isWizardMode&&e.status===e.statuses.done?a("IconCheckmark"):a("UiIcon",{attrs:{name:"linkIcon"}})]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("settings.connection.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{attrs:{"max-width":"383"}},[a("UiRow",{attrs:{mb:"m"}},[a("UiField",{attrs:{"area-id":"crm-url",label:e.$t("settings.connection.address")},scopedSlots:e._u([{key:"subtitle",fn:function(){return[a("UiLink",{attrs:{size:"small"},on:{click:function(t){e.hintCrmUrl=!0}}},[e._v(e._s(e.$t("hint")))])]},proxy:!0}])},[a("UiInput",{attrs:{id:"crm-url",placeholder:e.$t("settings.connection.enter-url")},on:{focus:e.addHttps,paste:e.pasteCheckHttps},model:{value:e.form.url,callback:function(t){e.$set(e.form,"url",t)},expression:"form.url"}})],1)],1),a("UiRow",{attrs:{mb:"m"}},[a("UiInfoBox",{attrs:{icon:"info-outlined"},scopedSlots:e._u([{key:"description",fn:function(){return[e._v(" "+e._s(e.$t("settings.connection.create-key"))+" "),a("b",{staticClass:"chain-arrow"},[e._v(e._s(e.$t("settings.connection.settings")))]),a("b",{staticClass:"chain-arrow"},[e._v(e._s(e.$t("settings.connection.integration")))]),e.urlValid?a("UiLink",{attrs:{href:e.urlForApiKey,size:"small",accent:"",external:""}},[e._v(" "+e._s(e.$t("settings.connection.api-access"))+" ")]):a("b",[e._v(e._s(e.$t("settings.connection.api-access")))])]},proxy:!0}])})],1),a("UiField",{attrs:{"area-id":"api-key",label:e.$t("settings.connection.api-key")},scopedSlots:e._u([{key:"subtitle",fn:function(){return[a("UiLink",{attrs:{size:"small"},on:{click:function(t){e.hintApiKey=!0}}},[e._v(e._s(e.$t("hint")))])]},proxy:!0}])},[a("UiInput",{attrs:{id:"api-key",placeholder:e.$t("settings.connection.enter-api-key")},model:{value:e.form.apiKey,callback:function(t){e.$set(e.form,"apiKey",t)},expression:"form.apiKey"}})],1)],1),a("SaveErrors",{attrs:{form:e.form,"is-loading":e.isLoading,"is-wizard-mode":e.isWizardMode},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}})]},proxy:!0},{key:"footer-content",fn:function(){return[a("div",{staticClass:"settings-footer"},[a("div",[a("UiButton",{attrs:{size:"sm",disabled:e.isLoading},on:{click:e.apply}},[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):e.isWizardMode&&""===e.url?a("span",[e._v(e._s(e.$t("settings.connection.make-connection")))]):a("span",[e._v(e._s(e.$t("save")))])],1),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")])],1),a("UiPopup",{attrs:{type:"hint"},scopedSlots:e._u([{key:"footer",fn:function(){return[e._v(" "+e._s(e.$t("settings.connection.address-hint-desc"))+" ")]},proxy:!0}]),model:{value:e.hintCrmUrl,callback:function(t){e.hintCrmUrl=t},expression:"hintCrmUrl"}},[a("img",{attrs:{src:e.$i18n.getImage("where-is-search-1.png"),alt:"picture"}})]),a("UiPopup",{attrs:{type:"hint"},scopedSlots:e._u([{key:"footer",fn:function(){return[e._v(" "+e._s(e.$t("settings.connection.api-key-hint-desc"))+" ")]},proxy:!0}]),model:{value:e.hintApiKey,callback:function(t){e.hintApiKey=t},expression:"hintApiKey"}},[a("img",{attrs:{src:e.$i18n.getImage("where-is-search-2.png"),alt:"picture"}})])],1)]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},ee=[],te=(a("466d"),a("5319"),a("2ca0"),a("a4d3"),a("e01a"),{methods:{showConfirm:function(e,t,a){this.$modal.confirm(null===a||void 0===a?void 0:a.description,null===a||void 0===a?void 0:a.props).then((function(a){a&&e?e():t&&t()}))}}}),ae={mixins:[te],props:{done:{type:Boolean,default:!1}},data:function(){return{isOpen:!1}},computed:{hasChanges:function(){return!1}},methods:{close:function(){var e=this;this.hasChanges?this.showConfirm((function(){e.reset(),e.isOpen=!1})):this.isOpen=!1},reset:function(){}}},se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiRow",[e.hasErrors?a("UiRow",{attrs:{mt:"m"}},[a("UiInfoBox",{class:e.$style["box_danger"],attrs:{icon:"info-outlined",type:"danger"},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("error"))+" ")]},proxy:!0},{key:"description",fn:function(){return e._l(e.errors,(function(t,s){return a("div",{key:s},[t?a("p",e._l(t,(function(s,n){return a("span",{key:n},[e._v(" "+e._s(e.$te(s)?e.$t(s):s)+" "),n2&&void 0!==arguments[2]?arguments[2]:null;for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=a);return e},ce=function(e){if(null===e||0===Object.keys(e).length)return!0;for(var t in e)if(null!==e[t]&&0!==e[t].length)return!1;return!0},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t===[]?e:Object.keys(e).filter((function(e){return t.indexOf(e)>-1})).reduce((function(t,a){return Object.assign(t,Object(re["a"])({},a,e[a]))}),{})},de={name:"SaveErrors",props:{form:{type:Object,default:function(){return null}},isLoading:{type:Boolean,default:!1},isWizardMode:{type:Boolean,default:!1}},data:function(){return{statuses:l}},computed:{errors:function(){return this.$store.getters["settings/getErrors"](Object.keys(this.form))},warnings:function(){return this.$store.getters["settings/getWarnings"](Object.keys(this.form))},hasErrors:function(){return!ce(this.errors)},hasWarnings:function(){return!ce(this.warnings)},getStatus:function(){return!0===this.isLoading?this.statuses.default:this.hasErrors?this.statuses.fail:this.hasWarnings?this.statuses.warn:null===this.isLoading?this.statuses.default:this.statuses.done}},watch:{getStatus:function(){this.updateStatus(this.getStatus),this.isWizardMode||this.getStatus!==this.statuses.done||setTimeout(function(){this.updateStatus(this.statuses.default)}.bind(this),3e3)}},mounted:function(){this.updateStatus(this.getStatus)},methods:{updateStatus:function(e){this.$emit("input",e),this.$emit("status-changed",e)}}},ue=de,pe=a("5b03");function fe(e){this["$style"]=pe["default"].locals||pe["default"]}var me=Object(y["a"])(ue,se,ne,!1,fe,null,null),he=me.exports,ge={name:"ConnectionSettings",components:{SaveErrors:he},mixins:[ae],props:{isWizardMode:{type:Boolean,default:!1},settings:{type:Object,required:!0}},data:function(){return{url:this.settings.url,apiKey:this.settings.apiKey,hintCrmUrl:!1,hintApiKey:!1,tooltipOptions:{placement:"top"},isLoading:null,status:l.default,statuses:l}},computed:{form:function(){return{url:this.url,apiKey:this.apiKey}},urlValid:function(){var e=/https:\/\/(.*).(retailcrm.(pro|ru|es)|simla.com)/;return null!==this.url&&null!==this.url.match(e)},urlForApiKey:function(){return null===this.url?"":this.url.replace(/~*\/+$/,"")+"/admin/api-keys"}},methods:{apply:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("settings/update",e.form);case 3:e.isLoading=!1;case 4:case"end":return t.stop()}}),t)})))()},addHttps:function(){this.url||(this.url="https://")},pasteCheckHttps:function(e){if("https://"===this.url||""===this.url){e.preventDefault();var t=e.clipboardData.getData("Text");t.startsWith("https://")?this.url=t:this.url="https://"+t}}}},be=ge,ve=Object(y["a"])(be,Z,ee,!1,null,null,null),_e=ve.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{color:e.status,bordered:""},on:{"ui::collapse::toggle":e.checkTypes},scopedSlots:e._u([{key:"icon",fn:function(){return[e.isWizardMode&&e.status===e.statuses.done?a("IconCheckmark"):a("IconDelivery")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("settings.delivery.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{attrs:{mt:"xxs",mb:"m"}},[a("UiText",[e._v(e._s(e.$t("settings.delivery.desc")))])],1),a("UiRow",{staticClass:"dot-list",attrs:{mb:"l"}},[a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.add-new-type-in"))+"  "),a("UiLink",{attrs:{href:e.url+"admin/delivery-types",external:"",size:"small"}},[e._v(e._s(e.$t("settings.delivery.types")))])],1),a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.press-refresh"))+"   "),a("b",[e._v(e._s(e.$t("settings.refresh-types")))])],1),a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.learn-about"))+"  "),a("UiLink",{attrs:{tag:"span",size:"small","dot-border":""},on:{click:function(t){e.infoSidebar=!0}}},[e._v(e._s(e.$t("settings.delivery.important-things")))]),e._v("  "+e._s(e.$t("settings.delivery.when-creating-types"))+" ")],1)]),a("UiRow",{staticClass:"select-box",attrs:{mb:"s"}},[a("div",{staticClass:"select-box__row select-box__row_head"},[a("div",{staticClass:"select-box__col"},[a("div",{staticClass:"select-box__title"},[e._v(e._s(e.$t("prestashop")))]),a("UiIcon",{staticClass:"select-box__icon",attrs:{name:"arrowDoublesidedHorizontal"}})],1),a("div",{staticClass:"select-box__col"},[a("div",{staticClass:"select-box__title"},[e._v(e._s(e.$t("crm")))]),a("UiButton",{attrs:{type:"tertiary",size:"sm",disabled:e.isUpdating},on:{click:e.update}},[e.isUpdating?a("UiIcon",{attrs:{name:"circleLoading"}}):a("IconRefresh"),e._v(" "+e._s(e.$t("settings.refresh-types"))+" ")],1)],1)]),e._l(e.deliveries,(function(t,s){return a("div",{key:"delivery-"+s,staticClass:"select-box__row"},[a("div",{staticClass:"select-box__col select-box__col_name"},[e._v(e._s(t.name))]),a("div",{staticClass:"select-box__col"},[a("UiSelect",{attrs:{placeholder:e.$t("settings.delivery.select"),filtered:"",clearable:""},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"delivery.value"}},e._l(e.deliveryTypes(t.value),(function(e,t){return a("UiOption",{key:"type-"+s+"-"+t,attrs:{value:e.code,label:e.name}})})),1)],1)])}))],2),a("UiRow",{attrs:{pt:"xxs"}},[a("UiInfoBox",{attrs:{icon:"info-outlined"},scopedSlots:e._u([{key:"description",fn:function(){return[e._v(" "+e._s(e.$t("settings.delivery.notice"))+" ")]},proxy:!0}])})],1),a("UiModalSidebar",{scopedSlots:e._u([{key:"head",fn:function(){return[e._v(" "+e._s(e.$t("settings.delivery.popup.title"))+" ")]},proxy:!0},{key:"default",fn:function(){return[a("div",[a("UiRow",{attrs:{mt:"xs",mb:"s",pb:"xxs"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("settings.delivery.popup.header"))+" ")])],1),a("img",{staticClass:"info-image",attrs:{src:e.$i18n.getImage("delivery-info-1.png"),alt:""}}),a("UiRow",{staticClass:"dot-list",attrs:{mt:"s",mb:"s",pb:"xs"}},[a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.popup.countries"))+" ")],1)]),a("img",{staticClass:"info-image",attrs:{src:e.$i18n.getImage("delivery-info-2.png"),alt:""}}),a("UiRow",{staticClass:"dot-list",attrs:{mt:"s"}},[a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.popup.payments"))+" ")],1)])],1)]},proxy:!0},{key:"footer",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:function(t){e.infoSidebar=!1}}},[e._v(" "+e._s(e.$t("close"))+" ")])]},proxy:!0}]),model:{value:e.infoSidebar,callback:function(t){e.infoSidebar=t},expression:"infoSidebar"}}),a("SaveErrors",{attrs:{form:e.form,"is-loading":e.isLoading,"is-wizard-mode":e.isWizardMode},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}})]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",disabled:e.isLoading},on:{click:e.apply}},[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):a("span",[e._v(e._s(e.$t("save")))])],1),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},xe=[],we=(a("d81d"),{name:"DeliveriesTypes",components:{SaveErrors:he},mixins:[ae],props:{isWizardMode:{type:Boolean,default:!1},settings:{type:Object,required:!0},references:{type:Object,required:!0}},data:function(){var e=this;return{selectValue:"",infoSidebar:!1,url:this.settings.url,deliveries:this.references.deliveryTypesCMS.map((function(t){return{name:t.label,id:t.id,value:null===e.settings.delivery||void 0===e.settings.delivery[t.id]?"":e.settings.delivery[t.id]}})),isUpdating:!1,isLoading:null,status:l.default,statuses:l}},computed:{deliveriesTypesCRM:function(){return this.references.deliveryTypesCRM},deliveriesSetting:function(){return JSON.stringify(this.deliveries.reduce((function(e,t){return e[t.id]=t.value,e}),{}))},form:function(){return{delivery:this.deliveriesSetting}}},methods:{deliveryTypes:function(e){var t=this;return this.deliveriesTypesCRM.filter((function(a){for(var s=!1,n=0;nthis.orders.count&&(e=this.orders.count);var t=this.loadStepCustomers*this.customers.exportStepSize;t>this.customers.exportCount&&(t=this.customers.exportCount);var a=e+t+(this.isDone?1:0),s=this.orders.count+this.customers.exportCount+1;this.$console.info("Processed: ",a,"Total: ",s),this.loadPercent=Math.round(100*a/s)},updatePercentUnloaded:function(){var e=this.loadStepOrders*this.orders.exportStepSize;e>this.orders.exportCount&&(e=this.orders.exportCount);var t=e+(this.isDone?1:0),a=this.orders.exportCount+1;this.$console.info("Processed: ",t,"Total: ",a),this.loadPercent=Math.round(100*t/a)},export:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isPause){t.next=2;break}return t.abrupt("return");case 2:if(!e.isDone){t.next=5;break}return setTimeout((function(){e.isDischargeComplete=!0}),250),t.abrupt("return");case 5:if(a=e.isExportAll?e.preparePayload():e.preparePayloadUnloaded(),!a){t.next=11;break}return t.next=9,e.$store.dispatch("export/export",a);case 9:s=t.sent,void 0!==s.success&&s.success||alert(s.errorMsg);case 11:return e.isExportAll?e.updatePercent():e.updatePercentUnloaded(),t.next=14,e.export();case 14:case"end":return t.stop()}}),t)})))()}}},Gt=Nt,Wt=(a("d4f7"),Object(y["a"])(Gt,Bt,qt,!1,null,"6c9c89f7",null)),Ht=Wt.exports,Jt={name:"UnloadedOrders",components:{SearchUnloadedOrder:Ht},mixins:[ae],data:function(){return{isOrdersCountLoad:!1,orders:{count:null,exportCount:null,exportStepSize:null},customers:{count:null,exportCount:null,exportStepSize:null}}},mounted:function(){this.isOrdersCountLoad||this.loadCount()},methods:{loadCount:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("export/getCount");case 2:a=t.sent,void 0!==a.success&&a.success&&void 0!==a.orders&&void 0!==a.customers||alert(a.errorMsg),e.orders=a.orders,e.customers=a.customers,e.isOrdersCountLoad=!0;case 7:case"end":return t.stop()}}),t)})))()}}},Vt=Jt,Ft=(a("a935"),Object(y["a"])(Vt,At,Dt,!1,null,"c0910eb8",null)),Kt=Ft.exports,Yt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconOrder")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("orders.upload.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{attrs:{mb:"xxs"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("orders.upload.desc"))+" ")])],1),a("UiRow",{staticClass:"dot-list",attrs:{mt:"12",mb:"28"}},e._l(e.$t("orders.upload.advices",""),(function(t){return a("div",{key:t,staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),a("div",{domProps:{innerHTML:e._s(t)}})],1)})),0),a("UiRow",{attrs:{mb:"12","max-width":"464"}},[a("UiField",{attrs:{"area-id":"order-id",label:"ID заказов"},scopedSlots:e._u([{key:"subtitle",fn:function(){return[a("UiLink",{attrs:{size:"small"},on:{click:function(t){e.hintOrderId=!0}}},[e._v(e._s(e.$t("hint")))])]},proxy:!0}])},[a("UiInput",{attrs:{id:"order-id",placeholder:e.$t("orders.upload.placeholder")},model:{value:e.ordersId,callback:function(t){e.ordersId=t},expression:"ordersId"}})],1)],1),a("UiRow",[a("UiButton",{attrs:{size:"sm"},on:{click:e.upload}},[e._v(" "+e._s(e.$t("orders.upload.btn"))+" ")])],1),a("UiPopup",{attrs:{type:"hint"},scopedSlots:e._u([{key:"footer",fn:function(){return[e._v(" "+e._s(e.$t("orders.upload.hint"))+" ")]},proxy:!0}]),model:{value:e.hintOrderId,callback:function(t){e.hintOrderId=t},expression:"hintOrderId"}},[a("img",{attrs:{src:e.$i18n.getImage("where-is-search-5.png"),alt:"picture"}})])]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},Xt=[],Qt=a("2909"),Zt=(a("d3b7"),a("25f0"),a("159b"),a("99af"),a("fb6a"),a("ddb0"),a("4e82"),{name:"WorkWithOrders",mixins:[ae],data:function(){return{hintOrderId:!1,ordersId:""}},methods:{upload:function(){this.$store.dispatch("orders/upload",{orders:this.partitionId(this.ordersId)})},partitionId:function(e){if(""===e)return[];var t=e.split(","),a=t.filter((function(e){return-1===e.toString().indexOf("-")})),s=t.filter((function(e){return-1!==e.toString().indexOf("-")})),n=[];return s.forEach((function(e){var t=e.split("-");n=[].concat(Object(Qt["a"])(n),Object(Qt["a"])(Object(Qt["a"])(Array(+t[1]+1).keys()).slice(+t[0],+t[1]+1)))})),[].concat(Object(Qt["a"])(a),Object(Qt["a"])(n)).map((function(e){return+e})).sort((function(e,t){return e-t}))}}}),ea=Zt,ta=Object(y["a"])(ea,Yt,Xt,!1,null,null,null),aa=ta.exports,sa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("UiRow",{staticClass:"top-bar",attrs:{mb:"m"}},[a("UiRow",{staticClass:"top-bar__search"},[a("UiInput",{staticClass:"top-bar__search-field",attrs:{placeholder:e.$t("orders.table.search.placeholder"),"icon-left":"search"},model:{value:e.CMSId,callback:function(t){e.CMSId=t},expression:"CMSId"}}),a("UiButton",{attrs:{type:"secondary",size:"sm"},on:{click:function(t){return e.searchByReset(e.CMSId)}}},[e._v(" "+e._s(e.$t("orders.table.search.btn"))+" ")])],1),a("UiTabs",{attrs:{type:"radiogroup",size:"sm",rubber:""},on:{changeTab:function(t){return e.searchByReset(e.CMSId)}},model:{value:e.orderStatus,callback:function(t){e.orderStatus=t},expression:"orderStatus"}},[a("UiTabsItem",{attrs:{label:e.$t("orders.table.filter.all")}}),a("UiTabsItem",{attrs:{label:e.$t("orders.table.filter.succeeded")},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconCheckmark")]},proxy:!0}])}),a("UiTabsItem",{attrs:{label:e.$t("orders.table.filter.failed"),icon:"warning"}})],1)],1),a("UiRow",{staticClass:"table-wrapper"},[e.isLoading?a("UiLoader"):e._e(),a("table",{staticClass:"table"},[a("thead",{staticClass:"table__head"},[a("tr",[a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("orders.table.head.date"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("orders.table.head.id_cms"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("orders.table.head.id_crm"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("orders.table.head.status"))+" ")]),a("th")])]),a("tbody",[e.orders.length>0?e._l(e.orders,(function(t,s){return a("OrdersRow",{key:s,attrs:{order:t,settings:e.settings,references:e.references}})})):[a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell table__cell_center",attrs:{colspan:"5"}},[e.isLoading?e._e():a("UiText",{attrs:{size:"paragraph"}},[e._v(" "+e._s(e.$t("orders.table.not-found"))+" ")])],1)])]],2)]),a("UiRow",{attrs:{mt:"s"}},[e.pagesCount>1?a("UiPagination",{attrs:{"arrow-placement":"end","pages-count":e.pagesCount},on:{currentPageChange:function(t){return e.searchBy(e.CMSId)}},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e()],1)],1)],1)},na=[],ra=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e._v(" "+e._s(e.orderDate)+", "),a("UiText",{attrs:{tag:"span",color:"gray"}},[e._v(" "+e._s(e.orderTime)+" ")])],1)],1),a("td",{staticClass:"table__cell"},[e.order.CMSId?a("UiLink",{attrs:{size:"small",href:e.orderLinkCMS,external:""}},[e._v(" "+e._s(e.order.CMSId)+" ")]):e._e()],1),a("td",{staticClass:"table__cell"},[e.order.CRMId?a("UiLink",{attrs:{size:"small",href:e.orderLinkCRM,external:""}},[e._v(" "+e._s(e.order.CRMId)+" ")]):e._e()],1),a("td",{staticClass:"table__cell"},[e.orderIsLoaded?a("UiText",{staticClass:"table__status",attrs:{size:"small"}},[a("IconCheckmark",{staticClass:"table__icon-status"}),e._v(" "+e._s(e.$t("orders.table.uploaded"))+" ")],1):a("UiText",{staticClass:"table__status",attrs:{size:"small",color:"action"}},[a("UiTooltip",{attrs:{placement:"top"},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiIcon",{staticClass:"table__icon-status table__icon-status_error",attrs:{name:"warning"}}),a("span",{staticClass:"table__status-text"},[e._v(e._s(e.$t("orders.table.failed")))])]},proxy:!0}])},[1===e.order.errors.length?a("span",[e._v(" "+e._s(e.order.errors[0])+" ")]):a("div",e._l(e.order.errors,(function(t,s){return a("div",{key:s,staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),a("div",[e._v(e._s(t))])],1)})),0)])],1)],1),a("td",[null!==e.order.CMSId?a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{staticClass:"table__button",class:{table__button_visible:e.isLoading||e.isDischargeComplete},attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.onRepeatDischarge}},[e.isDischargeComplete?[e.orderIsLoaded?a("IconCheckmark"):a("IconWarningOutlined")]:[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):a("IconUploadFrom")]],2)]},proxy:!0}],null,!1,1564882269)},[e.isDischargeComplete?[e.orderIsLoaded?a("span",[e._v(e._s(e.$t("orders.table.uploaded")))]):a("span",[e._v(e._s(e.$t("orders.table.failed")))])]:[e.isLoading?a("span",[e._v(e._s(e.$t("orders.table.uploading")))]):a("span",[e._v(e._s(e.$t("orders.table.upload")))])]],2):e._e()],1)])},oa=[],ia=(a("a15b"),{props:{order:{type:Object,default:function(){}},settings:{type:Object,required:!0},references:{type:Object,required:!0}},data:function(){return{linkCMS:this.references.linkOrders,linkCRM:this.settings.url,isLoading:!1,isDischargeComplete:!1}},computed:{orderDate:function(){return this.order.datetime.split(" ")[0]},orderTime:function(){var e=this.order.datetime.split(" ");return e.length>1?e[1].substr(0,5):""},orderLinkCMS:function(){return this.linkCMS+"&vieworder=&id_order="+this.order.CMSId},orderLinkCRM:function(){return this.linkCRM.replace(/~*\/+$/,"")+"/orders/"+this.order.CRMId+"/edit"},orderIsLoaded:function(){return void 0===this.order.errors||null===this.order.errors||0===this.order.errors.length},orderError:function(){return this.order.errors.join(", ")}},methods:{onRepeatDischarge:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("orders/upload",{orders:[e.order.CMSId]});case 3:a=t.sent,e.order.datetime=(new Date).toISOString().replace("T"," ").substr(0,19),e.order.errors=a.errors,void 0!==a.success&&!1!==a.success||void 0!==a.errors&&0!==a.errors.length||(e.order.errors=["Unknown error"]),e.isLoading=!1,e.isDischargeComplete=!0,setTimeout((function(){e.isDischargeComplete=!1}),2e3);case 10:case"end":return t.stop()}}),t)})))()}}}),ca=ia,la=(a("361e"),Object(y["a"])(ca,ra,oa,!1,null,"f096b74c",null)),da=la.exports,ua={name:"OrdersTable",components:{OrdersRow:da},data:function(){return{CMSId:"",isLoading:!1,currentPage:1,pagesCount:1,orderStatus:0,orders:[]}},computed:{settings:function(){return this.$store.getters["settings/getSettings"]},references:function(){return this.$store.getters["references/getReferences"]}},mounted:function(){this.searchBy("")},methods:{partitionId:function(e){if(""===e)return[];var t=e.split(","),a=t.filter((function(e){return-1===e.toString().indexOf("-")})),s=t.filter((function(e){return-1!==e.toString().indexOf("-")})),n=[];return s.forEach((function(e){var t=e.split("-");n=[].concat(Object(Qt["a"])(n),Object(Qt["a"])(Object(Qt["a"])(Array(+t[1]+1).keys()).slice(+t[0],+t[1]+1)))})),[].concat(Object(Qt["a"])(a),Object(Qt["a"])(n)).map((function(e){return+e})).sort((function(e,t){return e-t}))},searchBy:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.isLoading=!0,a.next=3,t.$store.dispatch("orders/search",{orders:t.partitionId(e),page:t.currentPage,filter:t.orderStatus});case 3:s=a.sent,t.orders=s.orders.map((function(e){return{datetime:e.last_uploaded,CMSId:e.id_order,CRMId:e.id_order_crm,errors:JSON.parse(e.errors)}})),t.currentPage=s.pagination.currentPage,t.pagesCount=s.pagination.totalPageCount,t.isLoading=!1;case 8:case"end":return a.stop()}}),a)})))()},searchByReset:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.pagesCount=0,t.currentPage=1,t.searchBy(e);case 3:case"end":return a.stop()}}),a)})))()}}},pa=ua,fa=(a("9fb5"),Object(y["a"])(pa,sa,na,!1,null,"659e5b4d",null)),ma=fa.exports,ha={name:"OrdersSettings",components:{UnloadedOrders:Kt,WorkWithOrders:aa,OrdersTable:ma},mixins:[ae],data:function(){return{box:""}}},ga=ha,ba=Object(y["a"])(ga,Tt,Pt,!1,null,null,null),va=ba.exports,_a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("UiCollapseGroupNext",{model:{value:e.box,callback:function(t){e.box=t},expression:"box"}},[a("AdvancedDebugSettings",{attrs:{settings:e.settings}}),a("JobManager"),a("Logs")],1)],1)},ya=[],xa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{color:e.status,bordered:""},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconSettings")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("advanced.main.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiSwitch",{attrs:{label:e.$t("advanced.system.web-jobs.label")},scopedSlots:e._u([{key:"desc",fn:function(){return[a("div",{domProps:{innerHTML:e._s(e.$t("advanced.system.web-jobs.desc"))}})]},proxy:!0}]),model:{value:e.webJobs,callback:function(t){e.webJobs=t},expression:"webJobs"}}),a("UiSwitch",{attrs:{label:e.$t("advanced.system.debug.label")},scopedSlots:e._u([{key:"desc",fn:function(){return[a("div",{domProps:{innerHTML:e._s(e.$t("advanced.system.debug.desc"))}})]},proxy:!0}]),model:{value:e.debugMode,callback:function(t){e.debugMode=t},expression:"debugMode"}}),a("SaveErrors",{attrs:{form:e.form,"is-loading":e.isLoading},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}})]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",disabled:e.isLoading},on:{click:e.apply}},[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):a("span",[e._v(e._s(e.$t("save")))])],1),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},wa=[],Ca={name:"AdvancedDebugSettings",components:{SaveErrors:he},mixins:[ae],props:{settings:{type:Object,required:!0}},data:function(){return{webJobs:this.settings.webJobs,debugMode:this.settings.debugMode,isLoading:null,status:l.default}},computed:{form:function(){return{webJobs:this.webJobs,debugMode:this.debugMode}}},methods:{apply:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("settings/update",e.form);case 3:e.isLoading=!1;case 4:case"end":return t.stop()}}),t)})))()}}},Sa=Ca,ka=(a("e348"),Object(y["a"])(Sa,xa,wa,!1,null,"66d8c60c",null)),Ra=ka.exports,Ua=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{bordered:""},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconСheckmarkSquare")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("debug.jobs.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{staticClass:"select-box__row",attrs:{mt:"xxs",mb:"m"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("debug.jobs.desc"))+" ")]),a("UiButton",{staticClass:"select-box__col",attrs:{type:"tertiary",size:"sm"},on:{click:e.update}},[a("IconRefresh"),e._v(" "+e._s(e.$t("debug.jobs.refresh"))+" ")],1)],1),a("UiRow",{attrs:{mt:"xxs",mb:"m"}},[a("table",{staticClass:"table"},[a("thead",{staticClass:"table__head"},[a("tr",[a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.jobs.table-header.job"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.jobs.table-header.last-run"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.jobs.table-header.status"))+" ")]),a("th",[a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{staticClass:"table__button",attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.update}},[a("IconRefresh")],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.jobs.refresh")))])])],1)])]),a("tbody",{staticClass:"table__body"},[e.isLoading?a("tr",[a("td",{staticClass:"table__cell table__cell_center",staticStyle:{position:"relative",height:"60px"},attrs:{colspan:"4"}},[a("UiLoader",{attrs:{overlay:!1}})],1)]):e.jobs.length>0?e._l(e.jobs,(function(e,t){return a("JobRow",{key:t,attrs:{job:e}})})):[a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell table__cell_center",attrs:{colspan:"4"}},[a("UiText",{attrs:{size:"paragraph"}},[e._v(" "+e._s(e.$t("debug.jobs.empty"))+" ")])],1)])]],2)])]),a("UiRow",{staticClass:"select-box__row",attrs:{mt:"xxs",mb:"m"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("debug.jobs.notice"))+" ")]),a("UiButton",{staticClass:"select-box__col",attrs:{type:"tertiary",size:"sm"},on:{click:e.resetJobManager}},[a("IconRefresh"),e._v(" "+e._s(e.$t("debug.jobs.reset"))+" ")],1)],1)]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"primary"},on:{click:e.resetJobManager}},[e._v(" "+e._s(e.$t("debug.jobs.reset"))+" ")]),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")]),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.update}},[e._v(" "+e._s(e.$t("debug.jobs.refresh"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},Oa=[],$a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e.$te("debug.jobs.names."+e.job.name)?a("UiTooltip",{staticStyle:{"vertical-align":"middle"},attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[e._v(" "+e._s(e.$t("debug.jobs.names."+e.job.name))+" ")]},proxy:!0}],null,!1,1826889603)},[a("span",[e._v(" "+e._s(e.job.name))])]):a("span",[e._v(" "+e._s(e.job.name))])],1)],1),a("td",{staticClass:"table__cell"},[e.hasDateTime?a("UiText",{attrs:{size:"small"}},[e._v(" "+e._s(e.getDate)+", "),a("UiText",{attrs:{tag:"span",color:"gray"}},[e._v(" "+e._s(e.getTime)+" ")])],1):e._e()],1),a("td",{staticClass:"table__cell"},[!0===e.job.success?a("UiText",{staticClass:"table__status",attrs:{size:"small"}},[a("IconCheckmark",{staticClass:"table__icon-status table__icon-status_success"})],1):!1===e.job.success?a("UiText",{staticClass:"table__status",attrs:{size:"small",color:"action"}},[a("UiTooltip",{attrs:{placement:"top",closable:!0},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiIcon",{staticClass:"table__icon-status table__icon-status_error",attrs:{name:"warning"}})]},proxy:!0}])},[a("UiText",{staticClass:"table__status",attrs:{size:"small",color:"action"}},[e._v(" "+e._s(e.job.error.message)+" ")]),a("br"),a("UiText",{attrs:{size:"tiny"}},[e._v(" Stacktrace: "),a("br"),e._v(" "+e._s(e.job.error.trace)+" ")])],1)],1):e._e()],1),a("td",[a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{directives:[{name:"show",rawName:"v-show",value:!e.isDischargeComplete,expression:"!isDischargeComplete"}],staticClass:"table__button",class:{table__button_visible:e.isLoading||e.job.running},attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.onRepeatDischarge}},[e.isLoading||e.job.running?a("UiIcon",{attrs:{name:"circleLoading"}}):a("UiIcon",{attrs:{name:"play"}})],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.jobs.run")))])]),a("UiTooltip",{attrs:{show:e.isDischargeComplete,trigger:"manual",placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{directives:[{name:"show",rawName:"v-show",value:e.isDischargeComplete,expression:"isDischargeComplete"}],staticClass:"table__button table__button_visible",attrs:{size:"sm",form:"square",type:"tertiary"}},[a("IconWarningOutlined",{staticClass:"table__button-warning"})],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.jobs.succeeded")))])])],1)])},za=[],Ma={props:{job:{type:Object,default:function(){}}},data:function(){return{isLoading:!1,isDischargeComplete:!1}},computed:{hasDateTime:function(){return null!==this.job.lastRun&&null!==this.job.lastRun.date},getDate:function(){return null===this.job.lastRun?"":this.job.lastRun.date.split(" ")[0]},getTime:function(){if(null===this.job.lastRun)return"";var e=this.job.lastRun.date.split(" ");return e.length>1?e[1].substr(0,5):""}},methods:{onRepeatDischarge:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("jobs/run",e.job.name);case 3:e.isLoading=!1,e.isDischargeComplete=!0,setTimeout((function(){e.isDischargeComplete=!1}),2e3);case 6:case"end":return t.stop()}}),t)})))()}}},ja=Ma,Ia=(a("f042"),Object(y["a"])(ja,$a,za,!1,null,"31004b55",null)),Ea=Ia.exports,La={name:"JobManager",components:{JobRow:Ea},mixins:[ae],data:function(){return{jobs:[],isLoading:!1}},created:function(){this.update()},methods:{update:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("jobs/get");case 3:a=t.sent,void 0!==a.result&&(e.jobs=a.result),e.isLoading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetJobManager:function(){var e=this;this.$store.dispatch("jobs/reset").then((function(){e.update()}))}}},Ta=La,Pa=(a("f6ed"),Object(y["a"])(Ta,Ua,Oa,!1,null,"0aa3baaf",null)),Aa=Pa.exports,Da=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{bordered:""},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconSmsChat")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("debug.logs.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{staticClass:"select-box__row",attrs:{mt:"xxs",mb:"m"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("debug.logs.desc"))+" ")]),a("UiButton",{staticClass:"select-box__col",attrs:{type:"tertiary",size:"sm"},on:{click:e.update}},[a("IconRefresh"),e._v(" "+e._s(e.$t("debug.logs.refresh"))+" ")],1)],1),a("UiRow",{attrs:{mt:"xxs",mb:"m"}},[a("table",{staticClass:"table"},[a("thead",{staticClass:"table__head"},[a("tr",[a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.logs.table-header.name"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.logs.table-header.date"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.logs.table-header.size"))+" ")]),a("th",[a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{staticClass:"table__button",attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.update}},[a("IconRefresh")],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.logs.refresh")))])])],1)])]),a("tbody",{staticClass:"table__body"},[e.isLoading?a("tr",[a("td",{staticClass:"table__cell table__cell_center",staticStyle:{position:"relative",height:"60px"},attrs:{colspan:"4"}},[a("UiLoader",{attrs:{overlay:!1}})],1)]):e.logs.length>0?e._l(e.logs,(function(e,t){return a("LogRow",{key:t,attrs:{log:e}})})):[a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell table__cell_center",attrs:{colspan:"4"}},[a("UiText",{attrs:{size:"paragraph"}},[e._v(" "+e._s(e.$t("debug.logs.empty"))+" ")])],1)])]],2)])]),a("UiRow",{staticClass:"select-box__row",attrs:{mt:"xxs",mb:"m"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("debug.logs.notice"))+" ")]),a("UiButton",{staticClass:"select-box__col",attrs:{type:"tertiary",size:"sm"},on:{click:e.downloadAll}},[a("IconUploadFrom"),e._v(" "+e._s(e.$t("debug.logs.download-all"))+" ")],1)],1)]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"primary"},on:{click:e.downloadAll}},[e._v(" "+e._s(e.$t("debug.logs.download-all"))+" ")]),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")]),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.update}},[e._v(" "+e._s(e.$t("debug.logs.refresh"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},Ba=[],qa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e.log.running?a("UiIcon",{attrs:{name:"circleLoading"}}):e._e(),e._v(" "+e._s(e.log.name)+" ")],1)],1),a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e._v(" "+e._s(e.getDate)+", "),a("UiText",{attrs:{tag:"span",color:"gray"}},[e._v(" "+e._s(e.getTime)+" ")])],1)],1),a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e._v(" "+e._s(e.log.size)+" ")])],1),a("td",[a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{staticClass:"table__button",class:{table__button_visible:e.isLoading},attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.onRepeatDischarge}},[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):e.isDischargeComplete?a("UiIcon",{attrs:{name:"checkmarkCircleOutlined"}}):a("IconUploadFrom")],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.logs.download")))])])],1)])},Na=[],Ga={props:{log:{type:Object,default:function(){}}},data:function(){return{isLoading:!1,isDischargeComplete:!1}},computed:{getDate:function(){return this.log.modified.split(" ")[0]},getTime:function(){var e=this.log.modified.split(" ");return e.length>1?e[1].substr(0,5):""}},methods:{onRepeatDischarge:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("logs/download",e.log.name);case 3:e.isLoading=!1,e.isDischargeComplete=!0,setTimeout((function(){e.isDischargeComplete=!1}),2e3);case 6:case"end":return t.stop()}}),t)})))()}}},Wa=Ga,Ha=(a("ce8c"),Object(y["a"])(Wa,qa,Na,!1,null,"59b33bea",null)),Ja=Ha.exports,Va={name:"Logs",components:{LogRow:Ja},mixins:[ae],data:function(){return{logs:[],isLoading:!1}},created:function(){this.update()},methods:{update:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("logs/get");case 3:a=t.sent,void 0!==a.result&&(e.logs=a.result),e.isLoading=!1;case 6:case"end":return t.stop()}}),t)})))()},downloadAll:function(){this.$store.dispatch("logs/downloadAll")}}},Fa=Va,Ka=(a("46a4"),Object(y["a"])(Fa,Da,Ba,!1,null,"87f78122",null)),Ya=Ka.exports,Xa={name:"DebugSettings",components:{AdvancedDebugSettings:Ra,Logs:Ya,JobManager:Aa},mixins:[ae],data:function(){return{showUnloadedOrders:!1,box:""}},computed:{settings:function(){return this.$store.getters["settings/getSettings"]}}},Qa=Xa,Za=Object(y["a"])(Qa,_a,ya,!1,null,null,null),es=Za.exports;s["default"].use(Y["a"]);var ts,as,ss,ns,rs,os,is,cs=[{path:"/",name:"GeneralSettings",component:qe},{path:"/advanced",name:"AdvancedSettings",component:$t},{path:"/debug",name:"DebugSettings",component:es},{path:"/orders",name:"OrdersSettings",component:va},{path:"/check-work",name:"CheckingWork",component:Lt}],ls=new Y["a"]({routes:cs}),ds=ls,us=a("2f62"),ps=(a("caad"),a("2532"),function(e,t){var a={};for(var s in console)"function"===typeof console[s]&&(!t.includes(s,0)||e?a[s]=console[s].bind(window.console):a[s]=function(){});return a}),fs=ps(window.$appData.debug,["debug","trace"]),ms=fs,hs=(a("3ca3"),a("2b3d"),a("bc3a")),gs=a.n(hs),bs={routes:window.$appData.routes,get:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.routes[e],n=this.helpers.buildParams(t);return a=this.helpers.prepareConfig(a),a.params=n,gs.a.get(s,a)},post:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.routes[e],n=this.helpers.buildParams(t);return a=this.helpers.prepareConfig(a),gs.a.post(s,n,a)},download:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,a.post(e,t,{responseType:"arraybuffer"});case 2:return n=s.sent,a.helpers.downloadFileFromRequest(n),s.abrupt("return",{success:!0});case 5:case"end":return s.stop()}}),s)})))()},helpers:{buildParams:function(e){var t=new URLSearchParams;return void 0===e?t:this.appendParams(t,e)},appendParams:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(Array.isArray(t[s])?e=this.appendParams(e,t[s],s+"[]"):e.append(a+s,t[s]));return e},prepareConfig:function(e){return void 0===e&&(e={}),void 0===e.headers&&(e.headers={}),e.headers["Content-Type"]="application/x-www-form-urlencoded",e},downloadFileFromRequest:function(e){var t=e.headers["content-disposition"].split("filename=")[1].split(";")[0],a=e.headers["content-type"],s=e.data,n=URL.createObjectURL(new Blob([s],{type:a})),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},vs={settings:function(){return bs.get("settings")},update:function(e){return bs.post("settings",e)}},_s="UPDATE_SETTINGS",ys="UPDATE_SETTINGS_SUCCESS",xs="UPDATE_SETTINGS_ERROR",ws="GET_SETTINGS",Cs="GET_SETTINGS_SUCCESS",Ss="GET_SETTINGS_ERROR",ks={namespaced:!0,state:{settings:{url:null,apiKey:null,delivery:null,payment:null,status:null,enableCorporate:null,enableOrderNumberSending:null,enableOrderNumberReceiving:null,enableHistoryUploads:null,deliveryDefault:null,paymentDefault:null,enableBalancesReceiving:null,outOfStockStatus:{out_of_stock_paid:null,out_of_stock_not_paid:null},synchronizeCartsActive:null,synchronizedCartStatus:null,synchronizedCartDelay:null,collectorActive:null,collectorKey:null,consultantScript:null,webJobs:null,debugMode:null,latestVersion:null},warnings:{url:null,apiKey:null,delivery:null,payment:null,status:null,enableCorporate:null,enableOrderNumberSending:null,enableOrderNumberReceiving:null,enableHistoryUploads:null,deliveryDefault:null,paymentDefault:null,enableBalancesReceiving:null,outOfStockStatus:null,synchronizeCartsActive:null,synchronizedCartStatus:null,synchronizedCartDelay:null,collectorActive:null,collectorKey:null,consultantScript:null,webJobs:null,debugMode:null},errors:{url:null,apiKey:null,delivery:null,payment:null,status:null,enableCorporate:null,enableOrderNumberSending:null,enableOrderNumberReceiving:null,enableHistoryUploads:null,deliveryDefault:null,paymentDefault:null,enableBalancesReceiving:null,outOfStockStatus:null,synchronizeCartsActive:null,synchronizedCartStatus:null,synchronizedCartDelay:null,collectorActive:null,collectorKey:null,consultantScript:null,webJobs:null,debugMode:null}},getters:{getSettings:function(e){return e.settings},getWarnings:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return le(e.warnings,t)}},getErrors:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return le(e.errors,t)}}},mutations:(ts={},Object(re["a"])(ts,_s,(function(e,t){e.warnings=ie(e.warnings,t),e.errors=ie(e.errors,t)})),Object(re["a"])(ts,ys,(function(e,t){e.settings=oe(e.settings,t.changed),e.warnings=oe(e.warnings,t.warnings),e.errors=oe(e.errors,t.errors)})),Object(re["a"])(ts,xs,(function(e,t){})),Object(re["a"])(ts,ws,(function(e,t){e.warnings=ie(e.warnings,t),e.errors=ie(e.errors,t)})),Object(re["a"])(ts,Cs,(function(e,t){e.settings=oe(e.settings,t.settings),e.warnings=oe(e.warnings,t.warnings),e.errors=oe(e.errors,t.errors)})),Object(re["a"])(ts,Ss,(function(e,t){})),ts),actions:{update:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(_s,t),s.prev=2,a.$console.log("Request: ",t),s.next=6,vs.update(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(ys,r.data),s.abrupt("return",r.data);case 12:if(s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(xs,s.t0.response.data),void 0===s.t0.response||void 0===s.t0.response.data){s.next=18;break}return s.abrupt("return",s.t0.response.data);case 18:return s.abrupt("return",{success:!1,errorMsg:s.t0,errors:{unknown:s.t0}});case 19:case"end":return s.stop()}}),s,null,[[2,12]])})))()},load:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(ws),a.prev=2,a.next=5,vs.settings();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(Cs,n.data),a.abrupt("return",n.data);case 11:if(a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(Ss,a.t0.response.data),void 0===a.t0.response||void 0===a.t0.response.data){a.next=17;break}return a.abrupt("return",a.t0.response.data);case 17:return a.abrupt("return",{success:!1,errorMsg:a.t0,errors:{unknown:a.t0}});case 18:case"end":return a.stop()}}),a,null,[[2,11]])})))()}}},Rs={references:function(){return bs.get("references")},delivery:function(){return bs.get("references",{delivery:!0})},payment:function(){return bs.get("references",{payment:!0})},status:function(){return bs.get("references",{status:!0})}},Us="GET_REFERENCES",Os="GET_REFERENCES_SUCCESS",$s="GET_REFERENCES_ERROR",zs={namespaced:!0,state:{references:{deliveryTypesCMS:[],deliveryTypesCRM:[],paymentTypesCMS:[],paymentTypesCRM:[],statusesCMS:[],statusesCRM:[],cartsDelays:[],linkPayments:null,linkOrders:null}},getters:{getReferences:function(e){return e.references}},mutations:(as={},Object(re["a"])(as,Us,(function(e){})),Object(re["a"])(as,Os,(function(e,t){for(var a in t.references)Object.prototype.hasOwnProperty.call(t.references,a)&&Object.prototype.hasOwnProperty.call(e.references,a)&&(e.references[a]=t.references[a])})),Object(re["a"])(as,$s,(function(e,t){})),as),actions:{load:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Us),a.prev=2,a.next=5,Rs.references();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(Os,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s($s,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()},loadDelivery:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Us),a.prev=2,t.$console.log("Request: delivery"),a.next=6,Rs.delivery();case 6:return n=a.sent,t.$console.log("Response: ",n.data),s(Os,n.data),a.abrupt("return",n.data);case 12:return a.prev=12,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s($s,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 17:case"end":return a.stop()}}),a,null,[[2,12]])})))()},loadPayment:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Us),a.prev=2,t.$console.log("Request: payment"),a.next=6,Rs.payment();case 6:return n=a.sent,t.$console.log("Response: ",n.data),s(Os,n.data),a.abrupt("return",n.data);case 12:return a.prev=12,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s($s,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 17:case"end":return a.stop()}}),a,null,[[2,12]])})))()},loadStatus:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Us),a.prev=2,t.$console.log("Request: status"),a.next=6,Rs.status();case 6:return n=a.sent,t.$console.log("Response: ",n.data),s(Os,n.data),a.abrupt("return",n.data);case 12:return a.prev=12,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s($s,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 17:case"end":return a.stop()}}),a,null,[[2,12]])})))()}}},Ms=(a("841c"),{search:function(e){return bs.get("orders",e)},upload:function(e){return bs.post("orders",e)}}),js="UPLOAD_ORDERS",Is="UPLOAD_ORDERS_SUCCESS",Es="UPLOAD_ORDERS_ERROR",Ls="SEARCH_ORDERS",Ts="SEARCH_ORDERS_SUCCESS",Ps="SEARCH_ORDERS_ERROR",As={namespaced:!0,mutations:(ss={},Object(re["a"])(ss,js,(function(e){})),Object(re["a"])(ss,Is,(function(e,t){})),Object(re["a"])(ss,Es,(function(e,t){})),Object(re["a"])(ss,Ls,(function(e){})),Object(re["a"])(ss,Ts,(function(e,t){})),Object(re["a"])(ss,Ps,(function(e,t){})),ss),actions:{upload:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(js),s.prev=2,a.$console.log("Request: ",t),s.next=6,Ms.upload(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(Is,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(Es,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},search:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(js),s.prev=2,a.$console.log("Request: ",t),s.next=6,Ms.search(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(Is,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(Es,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()}}},Ds={count:function(){return bs.get("export")},export:function(e){return bs.post("export",e)}},Bs="EXPORT",qs="EXPORT_SUCCESS",Ns="EXPORT_ERROR",Gs="GET_COUNT",Ws="GET_COUNT_SUCCESS",Hs="GET_COUNT_ERROR",Js={namespaced:!0,mutations:(ns={},Object(re["a"])(ns,Bs,(function(e){})),Object(re["a"])(ns,qs,(function(e,t){})),Object(re["a"])(ns,Ns,(function(e,t){})),Object(re["a"])(ns,Gs,(function(e){})),Object(re["a"])(ns,Ws,(function(e,t){})),Object(re["a"])(ns,Hs,(function(e,t){})),ns),actions:{export:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(Bs),s.prev=2,a.$console.log("Request: ",t),s.next=6,Ds.export(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(qs,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(Ns,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},getCount:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Bs),a.prev=2,t.$console.log("Request: getCount"),a.next=6,Ds.count();case 6:return n=a.sent,t.$console.log("Response: ",n.data),s(qs,n.data),a.abrupt("return",n.data);case 12:return a.prev=12,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(Ns,a.t0.response.data),a.abrupt("return",null);case 17:case"end":return a.stop()}}),a,null,[[2,12]])})))()}}},Vs={get:function(){return bs.get("jobs")},reset:function(){return bs.post("jobs",{reset:!0})},run:function(e){return bs.post("jobs",{jobName:e})}},Fs="GET_JOBS",Ks="GET_JOBS_SUCCESS",Ys="GET_JOBS_ERROR",Xs="RUN_JOBS",Qs="RUN_JOBS_SUCCESS",Zs="RUN_JOBS_ERROR",en="RESET_JOBS",tn="RESET_JOBS_SUCCESS",an="RESET_JOBS_ERROR",sn={namespaced:!0,mutations:(rs={},Object(re["a"])(rs,Fs,(function(e){})),Object(re["a"])(rs,Ks,(function(e,t){})),Object(re["a"])(rs,Ys,(function(e,t){})),Object(re["a"])(rs,Xs,(function(e){})),Object(re["a"])(rs,Qs,(function(e,t){})),Object(re["a"])(rs,Zs,(function(e,t){})),Object(re["a"])(rs,en,(function(e){})),Object(re["a"])(rs,tn,(function(e,t){})),Object(re["a"])(rs,an,(function(e,t){})),rs),actions:{get:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Fs),a.prev=2,a.next=5,Vs.get();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(Ks,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(Ys,a.t0.response.data),a.abrupt("return",null);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()},run:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(Xs),s.prev=2,a.$console.log("Request: ",t),s.next=6,Vs.run(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(Qs,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(Zs,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},reset:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(en),a.prev=2,a.next=5,Vs.reset();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(tn,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(an,a.t0.response.data),a.abrupt("return",null);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()}}},nn={get:function(){return bs.get("logs")},download:function(e){return bs.download("logs",{logName:e})},downloadAll:function(){return bs.download("logs",{all:!0})}},rn="GET_LOGS",on="GET_LOGS_SUCCESS",cn="GET_LOGS_ERROR",ln="DOWNLOAD_LOGS",dn="DOWNLOAD_LOGS_SUCCESS",un="DOWNLOAD_LOGS_ERROR",pn="DOWNLOAD_ALL_LOGS",fn="DOWNLOAD_ALL_LOGS_SUCCESS",mn="DOWNLOAD_ALL_LOGS_ERROR",hn={namespaced:!0,mutations:(os={},Object(re["a"])(os,rn,(function(e){})),Object(re["a"])(os,on,(function(e,t){})),Object(re["a"])(os,cn,(function(e,t){})),Object(re["a"])(os,ln,(function(e){})),Object(re["a"])(os,dn,(function(e,t){})),Object(re["a"])(os,un,(function(e,t){})),Object(re["a"])(os,pn,(function(e){})),Object(re["a"])(os,fn,(function(e,t){})),Object(re["a"])(os,mn,(function(e,t){})),os),actions:{get:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(rn),a.prev=2,a.next=5,nn.get();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(on,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(cn,a.t0.response.data),a.abrupt("return",null);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()},download:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(ln),s.prev=2,a.$console.log("Request: ",t),s.next=6,nn.download(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(dn,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(un,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},downloadAll:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(pn),a.prev=2,a.next=5,nn.downloadAll();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(fn,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(mn,a.t0.response.data),a.abrupt("return",null);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()}}},gn={get:function(){return bs.get("catalog")},generate:function(){return bs.post("catalog",{generate:!0})},updateUrl:function(){return bs.post("catalog",{updateUrl:!0})}},bn="GET_CATALOG",vn="GET_CATALOG_SUCCESS",_n="GET_CATALOG_ERROR",yn="GENERATE_CATALOG",xn="GENERATE_CATALOG_SUCCESS",wn="GENERATE_CATALOG_ERROR",Cn="UPDATE_URL",Sn="UPDATE_URL_SUCCESS",kn="UPDATE_URL_ERROR",Rn={namespaced:!0,state:{catalog:{isCatalogConnected:null,isOutdated:null,isUrlActual:null,lastGenerated:null,lastGeneratedDiff:null,offersCount:null,productsCount:null}},getters:{getCatalog:function(e){return e.catalog}},mutations:(is={},Object(re["a"])(is,bn,(function(e){})),Object(re["a"])(is,vn,(function(e,t){for(var a in t.catalog)Object.prototype.hasOwnProperty.call(t.catalog,a)&&Object.prototype.hasOwnProperty.call(e.catalog,a)&&(e.catalog[a]=t.catalog[a])})),Object(re["a"])(is,_n,(function(e,t){})),Object(re["a"])(is,yn,(function(e){})),Object(re["a"])(is,xn,(function(e,t){})),Object(re["a"])(is,wn,(function(e,t){})),Object(re["a"])(is,Cn,(function(e){})),Object(re["a"])(is,Sn,(function(e,t){})),Object(re["a"])(is,kn,(function(e,t){})),is),actions:{load:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(bn),a.prev=2,a.next=5,gn.get();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(vn,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(_n,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()},generate:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(yn),s.prev=2,a.$console.log("Request: ",t),s.next=6,gn.generate(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(xn,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(wn,s.t0.response.data),s.abrupt("return",s.t0.response.data);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},updateUrl:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Cn),a.prev=2,a.next=5,gn.updateUrl();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(Sn,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(kn,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()}}};s["default"].use(us["a"]),us["a"].Store.prototype.$console=ms;var Un=new us["a"].Store({modules:{settings:ks,references:zs,orders:As,export:Js,jobs:sn,logs:hn,catalog:Rn}}),On=Un,$n=a("a925"),zn=a("c665"),Mn=zn.keys().reduce((function(e,t){var a=t.split(".")[1].replace("/","");return e[a]=zn(t),e}),{}),jn=localStorage.getItem("language"),In=window.$appData.locale,En="ru",Ln=jn||In||En;s["default"].use($n["a"]),$n["a"].prototype.$console=ms;var Tn=new $n["a"]({locale:Ln,fallbackLocale:En,messages:Mn});Tn.set=function(e){this.locale=e,localStorage.setItem("language",e)},Tn.get=function(){return this.locale},Tn.locales=function(){return this.availableLocales},Tn.getImage=function(e){var t="";try{t=a("7584")("./"+this.locale+"/"+e)}catch(s){this.$console.warn("Cannot find image ",e," for current locale ",this.locale);try{t=a("7584")("./"+this.fallbackLocale+"/"+e),this.$console.warn("Using fallback locale",this.fallbackLocale)}catch(s){this.$console.warn("Cannot find image ",e," for fallback locale ",this.fallbackLocale)}}return t};var Pn=Tn,An=a("5530"),Dn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiPopup",{attrs:{open:e.isOpen,type:"confirm",role:"dialog"},on:{togglePopup:function(t){!t&&e.$emit("confirm-cancel")}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.title))]},proxy:!0},{key:"default",fn:function(){return[e._v(" "+e._s(e.content)+" ")]},proxy:!0},{key:"footer",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:function(t){e.$emit("confirm-cancel"),e.close()}}},[e._v(" "+e._s(e.cancelTitle)+" ")]),a("UiButton",{attrs:{size:"sm"},on:{click:function(t){e.$emit("confirm-ok"),e.close()}}},[e._v(" "+e._s(e.okTitle)+" ")])]},proxy:!0}])})},Bn=[],qn={name:"ModalConfirm",props:{title:{type:String,default:"Подтверждение действия"},content:{type:[String,Function,Object],default:"Вы изменили данные на странице. При переходе все несохраненные данные будут потеряны"},okTitle:{type:String,default:"Закрыть без сохранения"},okState:{type:String,default:"default"},cancelTitle:{type:String,default:"Отмена"},cancelState:{type:String,default:"default"}},data:function(){return{isOpen:!0}},methods:{open:function(){this.isOpen=!0},close:function(){this.isOpen=!1}}},Nn=qn,Gn=Object(y["a"])(Nn,Dn,Bn,!1,null,null,null),Wn=Gn.exports,Hn=s["default"].extend({extends:Wn,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}}),Jn=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=new Hn({parent:e,propsData:Object(An["a"])(Object(An["a"])({},a),{},{content:t})}),n=document.createElement("div");return document.body.appendChild(n),s.$mount(n),e.__addModalToRegistry(s),new Promise((function(e){s.open(),s.$on("confirm-ok",(function(){e(!0),s.$destroy()})),s.$on("confirm-cancel",(function(){e(!1),s.$destroy()}))}))},Vn={install:function(e){e.mixin({beforeCreate:function(){var e=this;this.$modal={confirm:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Jn(e,t,a)}}},created:function(){this.__modalRegistry=[]},beforeDestroy:function(){this.__modalRegistry&&(this.__modalRegistry.forEach((function(e){return e.$destroy()})),this.__modalRegistry=[])},methods:{__addModalToRegistry:function(e){this.__modalRegistry&&this.__modalRegistry.push(e)}}})}};s["default"].config.productionTip=!1,s["default"].prototype.$console=ms,s["default"].use(r.a,{getLocale:function(){return Pn.locale}}),s["default"].use(Vn),s["default"].use(o),ms.log(window.$appData),new s["default"]({router:ds,store:On,i18n:Pn,render:function(e){return e(K)}}).$mount("#app")},"5b03":function(e,t,a){"use strict";var s=a("b9a0"),n=a.n(s);a.d(t,"default",(function(){return n.a}))},"5ff0":function(e,t,a){var s=a("93ac");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("e162c8ae",s,!0,{sourceMap:!1,shadowMode:!1})},6353:function(e,t,a){var s=a("b592");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("a51d1078",s,!0,{sourceMap:!1,shadowMode:!1})},"6a22":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{d:"M14 12a2 2 0 10-4 0 2 2 0 004 0z"}})]))}}},"6c99":function(e,t,a){e.exports=a.p+"img/ru/delivery-info-2.png"},"6ddf":function(e,t,a){"use strict";a("b84f")},"6f3a":function(e,t,a){var s=a("e8de");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("3fd25f82",s,!0,{sourceMap:!1,shadowMode:!1})},"70cc":function(e,t,a){var s=a("2db6");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("915fb32a",s,!0,{sourceMap:!1,shadowMode:!1})},7382:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.994 5a10.643 10.643 0 019.994 6.7c.016.1.016.2 0 .3a.81.81 0 01-.06.33A10.644 10.644 0 0111.994 19c-4.37.022-8.31-2.63-9.934-6.69A.81.81 0 012 12a1 1 0 01.06-.33A10.643 10.643 0 0111.994 5zm-2.998 7a3 3 0 102.998-3 3 3 0 00-2.998 3z"}})]))}}},7493:function(e,t,a){e.exports=a.p+"img/ru/where-is-search-3.png"},7584:function(e,t,a){var s={"./es/where-is-search-1.png":"c135","./ru/checking-work-2.png":"eb96","./ru/checking-work-3.png":"229f","./ru/delivery-info-1.png":"153a","./ru/delivery-info-2.png":"6c99","./ru/how-to-update-1.png":"c5ec","./ru/where-is-search-1.png":"d5f5","./ru/where-is-search-2.png":"3000","./ru/where-is-search-3.png":"7493","./ru/where-is-search-4.png":"8a1e","./ru/where-is-search-5.png":"48fa"};function n(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=r,e.exports=n,n.id="7584"},"782a":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{d:"M18.09 10.22l-7 11.42a.76.76 0 01-.64.36h-.2a.51.51 0 01-.37-.16.49.49 0 01-.13-.38l.56-6.46H6.74a.76.76 0 01-.65-.38l-.19-.33a.49.49 0 010-.51l7-11.42a.76.76 0 01.66-.36h.2a.51.51 0 01.37.16.49.49 0 01.13.38L13.69 9h3.57a.76.76 0 01.65.38l.19.33a.49.49 0 01-.01.51z"}})]))}}},"79a6":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.21 14.074a2.005 2.005 0 01-.72-1.643v-.861c-.032-.632.235-1.24.72-1.644l.8-.661c.376-.312.473-.85.23-1.273l-1.16-2.004a1 1 0 00-.86-.501.838.838 0 00-.35.07l-1 .36c-.223.088-.46.133-.7.131a1.997 1.997 0 01-1.08-.32 5.479 5.479 0 00-.74-.431 2.004 2.004 0 01-1.06-1.453l-.17-1.002a1 1 0 00-1-.842h-2.3a1 1 0 00-1 .842l-.17 1.002a2.004 2.004 0 01-1.02 1.453 5.477 5.477 0 00-.74.43c-.322.209-.697.32-1.08.321a1.887 1.887 0 01-.7-.13l-1-.36a.839.839 0 00-.35-.071 1 1 0 00-.86.501L2.76 7.992c-.241.426-.14.964.24 1.273l.8.66c.485.404.752 1.013.72 1.644v.861c.032.632-.235 1.24-.72 1.644l-.8.661c-.38.309-.481.847-.24 1.273l1.16 2.004a1 1 0 00.86.501c.12.002.24-.022.35-.07l1-.36c.223-.088.46-.133.7-.131.383 0 .758.112 1.08.32.235.163.483.307.74.431.563.29.956.828 1.06 1.453l.17 1.002a1 1 0 001 .842h2.3a1 1 0 001-.842l.17-1.002a2.004 2.004 0 011.06-1.453c.258-.124.505-.268.74-.43.322-.209.697-.32 1.08-.321.24-.002.477.043.7.13l1 .36c.11.05.23.073.35.071a1 1 0 00.86-.501l1.16-2.004c.228-.44.1-.981-.3-1.273l-.79-.66zM12 17.511A5.506 5.506 0 016.5 12 5.506 5.506 0 0112 6.489c3.038 0 5.5 2.467 5.5 5.511 0 1.462-.58 2.863-1.61 3.897A5.494 5.494 0 0112 17.51zM10 12c0-1.107.896-2.004 2-2.004 1.105 0 2 .897 2 2.004a2.002 2.002 0 01-2 2.004c-1.104 0-2-.897-2-2.004z"}})]))}}},"7b6a":function(e,t,a){var s=a("9c58");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("02604a44",s,!0,{sourceMap:!1,shadowMode:!1})},"7f90":function(e,t,a){var s=a("88d1");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("fb4597aa",s,!0,{sourceMap:!1,shadowMode:!1})},8337:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".presta-wrapper[data-v-1e13efae]{position:relative;color:#1e2248}.view-mode[data-v-1e13efae]{margin:10px 0;padding:10px 0;text-align:center;height:45px;position:sticky;top:0;background:#fff;z-index:1}.main[data-v-1e13efae]{margin:0 auto;max-width:950px;padding-bottom:64px}.main__panel[data-v-1e13efae]{height:36px;display:flex;justify-content:space-between}.main__logo[data-v-1e13efae]{height:36px;max-width:160px;margin-right:32px}.main__backward[data-v-1e13efae]{flex-direction:row-reverse}.main__icon-backward[data-v-1e13efae]{margin-right:4px}.main__body[data-v-1e13efae]{display:flex}.main__aside[data-v-1e13efae]{width:220px;margin-right:24px}.main__content[data-v-1e13efae]{flex:1}",""]),e.exports=t},"87c1":function(e,t,a){"use strict";a("d49b")},"88d1":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".table[data-v-87f78122]{width:100%;border-collapse:collapse;text-align:left}.table__head[data-v-87f78122]{background:#f4f6f8;border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.table__head-cell[data-v-87f78122]{color:#8a96a6;padding-top:12px;padding-bottom:12px;font-weight:500;font-size:12px;line-height:1.16666667}.table__head-cell[data-v-87f78122]:first-of-type{padding-left:24px}.table__cell_center[data-v-87f78122]{text-align:center}",""]),e.exports=t},"8a1e":function(e,t,a){e.exports=a.p+"img/ru/where-is-search-4.png"},"8c10":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.03 2.999a.48.48 0 01.35.151l16.467 16.46a.48.48 0 010 .7l-.53.53a.48.48 0 01-.699 0l-4.906-4.9-3.888 3.89A3.996 3.996 0 017.996 21h-.34c-1.06 0-2.077-.42-2.827-1.17l-.66-.66A4.002 4.002 0 013 16.34V16c0-1.066.424-2.088 1.18-2.84l3.866-3.87L3.15 4.38a.48.48 0 010-.7l.53-.53a.48.48 0 01.35-.151zM7.995 19a1.998 1.998 0 001.38-.59l3.917-3.88-1.21-1.2-1.998 2a.5.5 0 01-.71 0l-.7-.7a.5.5 0 010-.71l2-2-1.21-1.22-3.877 3.88a2 2 0 00-.59 1.42v.34a2 2 0 00.59 1.42l.65.65c.375.378.886.59 1.419.59h.34zM19.818 4.83l-.66-.66A3.996 3.996 0 0016.33 3h-.34a3.996 3.996 0 00-2.837 1.18l-2.628 2.63 1.468 1.42 2.629-2.64A1.998 1.998 0 0115.99 5h.34c.532 0 1.043.212 1.418.59l.65.65a2 2 0 01.59 1.42V8a2 2 0 01-.59 1.42l-2.628 2.64 1.409 1.41 2.628-2.63A4.001 4.001 0 0020.987 8v-.34c0-1.061-.42-2.08-1.17-2.83zm-5.176 3.82l.7.7a.5.5 0 010 .71l-.78.79-1.41-1.41.78-.79a.5.5 0 01.71 0z"}})]))}}},"93ac":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".export__btn-unloaded[data-v-6c9c89f7]{border-bottom-right-radius:0;border-top-right-radius:0}.export__btn-all[data-v-6c9c89f7]{padding-left:0;padding-right:0;border-bottom-left-radius:0;border-top-left-radius:0;min-width:40px}.search-order[data-v-6c9c89f7]{position:relative;background-color:#f9fafb;padding:16px 24px;border-radius:4px;text-align:center}.search-order__title[data-v-6c9c89f7]{color:#636f7f;height:40px;display:flex;justify-content:center;align-items:center}.search-order__loader[data-v-6c9c89f7]{position:relative;margin:16px auto 0}.search-order__progress[data-v-6c9c89f7]{display:flex;justify-content:space-between;align-items:center}.search-order__progress-line[data-v-6c9c89f7]{flex:1 auto}.search-order__pause[data-v-6c9c89f7]{margin-left:16px}.search-order__done-icon[data-v-6c9c89f7]{fill:#20a77f;width:40px;height:40px;display:inline-block}.search-order__done-text[data-v-6c9c89f7]{color:#20a77f}",""]),e.exports=t},"93c6":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".nav-link{text-decoration:none}",""]),e.exports=t},9706:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10A10 10 0 0012 2zm0 18a8 8 0 110-16 8 8 0 010 16zM9.39 7.697a.75.75 0 01.76.023L16 11.36a.76.76 0 010 1.28l-5.85 3.64A.75.75 0 019 15.65v-7.3a.75.75 0 01.39-.653z",fill:"currentColor"}})]))}}},"9c0e":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1.71a.49.49 0 00-.15-.36l-.2-.2a.5.5 0 00-.711 0L7.395 4.68a.51.51 0 000 .71l3.544 3.53a.5.5 0 00.71 0l.2-.2A.49.49 0 0012 8.36V6a6.003 6.003 0 016.006 6c0 .969-.237 1.923-.69 2.78a.5.5 0 00.09.59l.73.73c.111.11.266.161.42.14a.52.52 0 00.371-.24 7.993 7.993 0 00.002-7.997A8.01 8.01 0 0012 4V1.71zm.706 13.222a.5.5 0 01.355.148l3.544 3.53a.51.51 0 010 .71l-3.544 3.53a.501.501 0 01-.71 0l-.2-.2a.49.49 0 01-.151-.36V20a8.01 8.01 0 01-6.93-4.004A7.993 7.993 0 015.074 8a.52.52 0 01.37-.26.5.5 0 01.42.14l.741.74a.51.51 0 01.09.59 5.825 5.825 0 00-.7 2.79c0 3.314 2.689 6 6.006 6v-2.36a.49.49 0 01.15-.36l.2-.2a.5.5 0 01.356-.148z"}})]))}}},"9c58":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".aside-info[data-v-24b39777]{background-color:#f9fafb;padding:16px;border-radius:4px;position:relative;min-height:360px}.aside-info_warning[data-v-24b39777]{background-color:#fff9f0}.aside-info_warning .aside-info__status[data-v-24b39777]{color:#ef8e06}.aside-info_warning .aside-info__icon-status[data-v-24b39777]{fill:#ef8e06}.aside-info .aside-info__status_warning[data-v-24b39777]{color:#ef8e06}.aside-info .aside-info__icon-status_warning[data-v-24b39777]{fill:#ef8e06}.aside-info__status[data-v-24b39777]{color:#20a77f;display:flex;margin-bottom:8px}.aside-info__icon-status[data-v-24b39777]{flex:0 0 auto;fill:#22c993}.aside-info__date[data-v-24b39777]{color:#8a96a6}.aside-info__item+.aside-info__item[data-v-24b39777]{margin-top:12px;padding-top:11px;border-top:1px solid #dee2e6}",""]),e.exports=t},"9f31":function(e,t,a){"use strict";a("b4f7")},"9fb5":function(e,t,a){"use strict";a("3abd")},a935:function(e,t,a){"use strict";a("2b5d")},affc:function(e,t,a){"use strict";a("208c")},b039:function(e,t){e.exports={locale:{short:"ru",long:"Русский",ru:{short:"ru",long:"Русский"},en:{short:"en",long:"Английский"},es:{short:"es",long:"Испанский"}},close:"Закрыть",save:"Сохранить",run:"Запустить модуль",warning:"Важно",error:"Ошибка","not-selected":"Не выбрано",hint:"Где искать?",prestashop:"PrestaShop",crm:"CRM",piece:{short:"шт.",long:"штука"},menu:{settings:"Настройки модуля",advanced:"Дополнительно",debug:"Мониторинг",orders:"Работа с заказами",check:"Проверка работы"},support:{title:"Техподдержка Simla.com",mail:"support@simla.com",subject:"PrestaShop module issue",body:""},version:{status:{update:"Доступно обновление",critical:"Доступно важное обновление!"},download:"Скачать",info:"Скачайте архив и установите его в Менеджере модулей"},catalog:{connected:{title:"Каталог товаров подключен",count:{products:"товаров загружено",offers:"торговых предложений загружено"},date:{old:"Более 7 дней",day:"д.",hour:"ч.",min:"м.",passed:"прошло с момента последней загрузки"},generate:"Загрузить сейчас"},outdated:{title:"Ссылка на каталог товаров устарела",update:"Обновить сейчас"},"not-connected":{title:"Каталог товаров не подключен",notice:"Подключение произойдет автоматически. Обычно, на его создание уходит 15 минут, но может занять до 4 часов. Если спустя это время каталог не будет создан, обратитесь в техподдержку.",check:"Проверить еще раз",support:"Написать в техподдержку",info:"Что такое файл каталога?"}},settings:{"refresh-types":"Обновить типы",connection:{title:"Соединение",address:"Адрес CRM","create-key":"Cоздайте API-ключ в разделе",settings:"Настройки",integration:"Интеграция","api-access":"Ключи доступа к API","api-key":"API ключ","enter-url":"https://demo.simla.com","enter-api-key":"Введите API ключ","make-connection":"Установить соединение","address-hint-desc":"Адрес CRM доступен в адресной строке вашего браузера","api-key-hint-desc":"Вставьте данные из поля «Ключ»"},delivery:{title:"Типы доставок",desc:"Настройте соответствие способов доставки PrestaShop и CRM","add-new-type-in":"Добавить новый тип доставки в CRM можно в разделе",types:"Типы доставок","press-refresh":"После добавления нового типа доставки нажмите кнопку","learn-about":"Узнайте","important-things":"на что обратить внимание","when-creating-types":"при создании нового типа доставки",select:"Выберите тип доставки",notice:"Если в дальнейшем подключите новую службу доставки на стороне PrestaShop, не забудьте добавить ей сопоставление в настройках модуля для корректной работы, иначе заказ в CRM будет выгружен без указания доставки.",popup:{title:"Типы доставки",header:"Обратите внимание при создании нового типа доставки в CRM",countries:"В основных настройках выбраны страны, в которые осуществляется доставка данным способом",payments:"Во вкладке «Способы оплаты» отмечены нужные. Если не выбрано ни одного, данный тип доставок при оформлении заказа предлагаться не будет."}},payment:{title:"Типы оплат",desc:"Настройте соответствие способов оплаты PrestaShop и CRM","add-new-type-in":"Добавить новый тип оплаты в CRM можно в разделе",types:"Типы оплат","press-refresh":"После добавления нового типа оплаты нажмите",select:"Выберите тип оплаты",notice:{"after-setup":"После настройки модуля, проверьте доступность способов оплат для имеющихся типов доставки. Для этого перейдите в административную панель сайта",improve:"Улучшения",payment:"Оплата",settings:"Настройки",restrictions:"внизу указан блок «Ограничения перевозчика»"}},statuses:{title:"Статусы заказов",desc:"Настройте соответствие статусов заказа PrestaShop и CRM","add-new-type-in":"Добавить новый статус в CRM можно в разделе",types:"Статусы","press-refresh":"После добавления нового статуса нажмите ",refresh:"Обновить статусы",select:"Выберите статус заказа",warning:"Значения в сопоставлениях не должны повторяться",notice:"Если в процессе работы на стороне PrestaShop будет добавлен новый статус, его необходимо сопоставить здесь, в настройках модуля, иначе синхронизация заказов по новому статусу не будет совершена"}},advanced:{main:{title:"Расширенные настройки модуля",corporate:{label:"Поддержка корпоративных клиентов",desc:"Будет функционировать, если работа с корпоративными клиентами активирована в Simla.com"},"number-send":{label:"Отправка номера заказа в Simla.com",desc:"Позволяет передавать номер заказа из PrestaShop в Simla.com при выгрузке заказа"},"number-receive":{label:"Получение номера заказа из Simla.com",desc:"Позволяет передавать номер заказа из Simla.com в PrestaShop при обратной синхронизации"}},sync:{title:"Двусторонняя синхронизация",desc:"При изменении заказа или клиента, данные будут поступать не только из PrestaShop в Simla.com, но и из Simla.com в PrestaShop",enable:"Синхронизировать заказы из CRM",hint:"Включите, если хотите, чтобы в PrestaShop выгружались изменения заказов или клиентов из Simla.com",delivery:{label:"Тип доставки по умолчанию",hint:"Присваивается заказу пришедшему из CRM, если в нем указана доставка, которой не задано соответствие в настройках модуля",placeholder:"Выберите тип доставки"},payment:{label:"Тип оплаты по умолчанию",hint:"Присваивается заказу, пришедшему из CRM, если в нем указана оплата, которой не задано соответствие в настройках модуля",placeholder:"Выберите тип оплаты"}},stocks:{title:"Работа с остатками",desc:"В модуле предусмотрено списание товара в PrestaShop при выгрузке заказа из Simla.com. В случае, если какого-то из товаров в заказе будет не достаточно на складе PrestaShop, то заказ будет переведен в выбранный ниже статус в зависимости от наличия полной оплаты",enable:"Получать остатки из Simla.com",hint:"Simla.com будет в автоматическом режиме передавать PrestaShop актуальную информацию по остаткам",paid:{label:"Если заказ оплачен",hint:"Заказ будет переведен в этот статус в случае, если был оплачен и какого-то из товаров в заказе не достаточно на складе PrestaShop",placeholder:"Выберите статус для оплаченного заказа"},"not-paid":{label:"Если заказ не оплачен",hint:"Заказ будет переведен в этот статус в случае, если не был оплачен и какого-то из товаров в заказе не достаточно на складе PrestaShop",placeholder:"Выберите статус для неоплаченного заказа"},notice:"Статус обновляется как в PrestaShop, так и в Simla.com. Если в PrestaShop разрешен заказ товаров с нулевым стоком, то статус заказа не будет изменен, а товар все равно будет списан в PrestaShop."},carts:{title:"Брошенные корзины",desc:"Брошенная корзина — это корзина в интернет-магазине, в которую пользователь добавил товары, но не купил их",enable:"Выгружать брошенные корзины",hint:"Включите, если хотите, чтобы в Simla.com выгружались брошенные корзины покупателей",time:{label:"Выгружать брошенные корзины",hint:"Время, по прошествию которого корзина считается брошенной и будет выгружена в Simla.com",placeholder:"Выберите период",value:{900:"После 15 минут",1800:"После 30 минут",2700:"После 45 минут",3600:"После 1 часа"}}},collector:{title:"Сервис сбора данных",desc:{body:"Позволит отследить действия посетителей на сайте, чтобы лучше их узнать и обеспечить тесное взаимодействие системы с пользователями, которые находятся на вашем сайте",left:{title:"Подробное отслеживание",body:"Фиксируем и показываем все действия посетителя на сайте: начал сессию, добавил товар корзину и так далее"},right:{title:"Данные в реальном времени",body:"Отображаем свойства посетителей в карточке клиента: какие UTM-метки присвоились, какие именно товары только что смотрели и прочее"}},activate:{label:"Активировать",hint:"Сервис должен быть так же включен на стороне Simla.com"},notice:{copy:"Cкопируйте идентификатор в разделе",settings:"Настройки",integration:"Интеграция",collector:"Сервис сбора данных"},label:"Идентификатор",placeholder:"Вставьте ключ сайта",hint:"Скопируйте ключ от нужного магазина"},consultant:{title:"Онлайн-консультант",desc:"Чат, размещаемый на вашем сайте и предназначенный для вовлечения в продажи посетителей. Для работы, приобретите модуль онлайн-консультанта и вставьте здесь код",notice:{access:"Доступ к личному кабинету модуля находится в разделе",settings:"Настройки",integration:"Интеграция",marketplace:"Маркетплейс",consultant:"Онлайн-консультант"},label:"Код онлайн-консультанта",placeholder:"Укажите код Онлайн-консультанта",hint:"Скопируйте код в настройках модуля Онлайн-консультанта"},system:{title:"Системные настройки","web-jobs":{label:"Менеджер задач",desc:"Позволяет автоматически запускать менеджер задач в `header`. Изменяйте эту настройку только если знаете что делаете"},debug:{label:"Расширенное логирование",desc:"Позволяет получить более детальную информацию о работе модуля в файлах логов"}}},debug:{title:"Мониторинг",jobs:{title:"Менеджер задач",desc:"Задачи - фоновые процессы, обеспечивающие работу двусторонней синхронизации заказов, брошенных корзин и остатков, генерацию каталога и т.д.",refresh:"Обновить задачи","table-header":{job:"Задача","last-run":"Последний запуск",status:"Статус"},empty:"Ни одна задача еще не была запущена",run:"Запустить вручную",running:"Задача выполняется",succeeded:"Задача была выполнена",names:{RetailcrmAbandonedCartsEvent:"Синхронизация брошенных корзин",RetailcrmIcmlEvent:"Генерация файла каталога",RetailcrmIcmlUpdateUrlEvent:"Обновленние ссылки каталога",RetailcrmSyncEvent:"Обратная синхронизация",RetailcrmInventoriesEvent:"Синхронизация остатков",RetailcrmExportEvent:"Выгрузка архива заказов и клиентов",RetailcrmUpdateSinceIdEvent:"Сброс метки истории",RetailcrmClearLogsEvent:"Очистка старых файлов журналов"},notice:"Если возникли ошибки в работе менеджера задач, его можно сбросить",reset:"Сбросить"},logs:{title:"Журналы",desc:"Файлы журналов с отладочной информацией о работе модуля",refresh:"Обновить журналы","table-header":{name:"Файл",date:"Изменен",size:"Размер"},empty:"Файлы не найдены",download:"Скачать",notice:"Также можно скачать архив со всеми файлами","download-all":"Скачать все"}},orders:{title:"Работа с заказами",upload:{title:"Выгрузка заказов",desc:"В этом разделе вы сможете загрузить заказы из PrestaShop в Simla.com",advices:["Выгружайте несколько заказов единовременно, указав их через запятую без пробелов (1,2,3,4,5) или укажите диапазон (1-5)","Единовременно можно выгрузить до 10 заказов"],placeholder:"Один или несколько через запятую или диапазон",hint:"Номер ID соответствует номеру заказа в PrestaShop",btn:"Выгрузить заказы"},export:{title:"Невыгруженные заказы",desc:"Заказы, которые были созданы в CMS до подключения модуля или которые не получилось выгрузить из-за ошибки в процессе работы",advices:["После начала выгрузки не закрывайте вкладку и не уходите с этой страницы","Если процесс выгрузки прервется (например, вы покинете страницу или возникнут проблемы с соединением) его можно будет возобновить с места остановки"],searching:"Поиск невыгруженных заказов",count:{total:"Всего заказов",unloaded:"Невыгруженных заказов",customers:"Всего клиентов"},run:"Запустить выгрузку","run-desc":"Выгрузить только невыгруженные заказы","run-all":"Выгрузить всё","run-all-desc":"Выгрузить все заказы и всех клиентов, обновить метку истории",success:"Все заказы выгружены"},table:{search:{btn:"Найти",placeholder:"ID заказа в CMS"},filter:{all:"Все",succeeded:"Выгруженные",failed:"С ошибкой"},head:{date:"Дата и время",id_cms:"ID в CMS",id_crm:"ID в CRM",status:"Статус"},"not-found":"Заказы не найдены",uploaded:"Выгружен",failed:"Ошибка",upload:"Выгрузить повторно",uploading:"Выгружается"}},check:{title:"Как убедиться что модуль работает?",text:{duplicate:"Для проверки работы модуля продублируйте последний заказ в Prestashop","go-to":"Перейдите в",simla:"Simla.com",sales:"Продажи",orders:"Заказы","and-check-order":"и проверьте, появился ли заказ в списке","check-options":"Если нужно, чтобы при изменении заказа или клиента, данные поступали не только из PrestaShop в Simla.com, но и из Simla.com в PrestaShop убедитесь что в настройках модуля в разделе «Дополнительно» включена опция «Двусторонняя синхронизация»","remove-tests":"После того как вы убедились что синхронизация работает правильно тестовые заказы можно удалить в Simla.com и PrestaShop","if-has-any-questions":"Если возникли проблемы в работе модуля или недостаточно информации по работе с Simla.com","ask-support":"обратитесь в техподдержку","or-read":"или ознакомьтесь с",materials:"обучающими материалами"}},errors:{unknown:"Неизвестная ошибка",url:"Неверный адрес CRM",key:"Неверный API ключ",connect:"Не удалось проверить API ключ",access:"Требуется API ключ с доступом к одному магазину",scopes:"Разрешений API ключа недостаточно для работы модуля",version:"Выбранная версия API недоступна",carts:"Статус заказа для брошенных корзин не должен быть использован в других настройках",status:"Статусы заказа не должны повторяться в сопоставлении",delivery:"Типы доставки не должны повторяться в сопоставлении",payment:"Типы оплаты не должны повторяться в сопоставлении",collector:"Неверный или пустой идентификатор"},warnings:{delivery:"Выберите значения для всех типов доставки",status:"Выберите значения для всех статусов заказа",payment:"Выберите значения для всех типов оплаты",default:"Выберите значения для всех параметров по умолчанию"}}},b4f7:function(e,t,a){var s=a("3c28");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("4864217a",s,!0,{sourceMap:!1,shadowMode:!1})},b592:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".table__row[data-v-31004b55]{border-bottom:1px solid #dee2e6;transition:background-color .25s ease}.table__row[data-v-31004b55]:hover{background-color:#f9fafb}.table__row:hover .table__button[data-v-31004b55]{opacity:1;visibility:visible}.table__cell[data-v-31004b55]{padding:20px 8px}.table__cell[data-v-31004b55]:first-of-type{padding-left:24px;padding-right:8px}.table__status[data-v-31004b55]{display:flex;align-items:center}.table__status-text[data-v-31004b55]{border-bottom:1px dotted;text-decoration:none}.table__icon-status[data-v-31004b55]{fill:#c7cdd4;margin-right:4px;width:20px;height:20px}.table__icon-status_success[data-v-31004b55]{fill:#22c993}.table__icon-status_error[data-v-31004b55]{fill:#ff5353}.table__button[data-v-31004b55]{transition:opacity .25s ease;opacity:0;visibility:hidden}.table__button_visible[data-v-31004b55]{opacity:1;visibility:visible}.table__button-warning[data-v-31004b55]{fill:#fea530}",""]),e.exports=t},b84f:function(e,t,a){var s=a("8337");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("3d5710fa",s,!0,{sourceMap:!1,shadowMode:!1})},b9a0:function(e,t,a){var s=a("1e81");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("5fab6dbc",s,!0,{sourceMap:!1,shadowMode:!1})},bb2b:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm0 16H5V5h14v14zm-8.65-3.498a.48.48 0 01-.35-.152l-2.38-2.37a.5.5 0 010-.71l.53-.53a.48.48 0 01.7 0l1.5 1.49 4.74-4.74a.5.5 0 01.7 0l.53.53a.5.5 0 010 .71l-5.62 5.62a.48.48 0 01-.35.152z"}})]))}}},bba7:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".select-box__col[data-v-0aa3baaf]{min-width:auto}.table[data-v-0aa3baaf]{width:100%;border-collapse:collapse;text-align:left}.table__head[data-v-0aa3baaf]{background:#f4f6f8;border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.table__head-cell[data-v-0aa3baaf]{color:#8a96a6;padding-top:12px;padding-bottom:12px;font-weight:500;font-size:12px;line-height:1.16666667}.table__head-cell[data-v-0aa3baaf]:first-of-type{padding-left:24px}.table__cell_center[data-v-0aa3baaf]{text-align:center}",""]),e.exports=t},c135:function(e,t,a){e.exports=a.p+"img/es/where-is-search-1.png"},c3ee:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".supports[data-v-8750f3f4]{color:#8a96a6}",""]),e.exports=t},c5ec:function(e,t,a){e.exports=a.p+"img/ru/how-to-update-1.png"},c665:function(e,t,a){var s={"./en.yml":"26f4","./es.yml":"f7c2","./ru.yml":"b039"};function n(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=r,e.exports=n,n.id="c665"},c84e:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2A10 10 0 112 12zm8.73 3.35l5.62-5.62a.5.5 0 000-.69l-.53-.53a.5.5 0 00-.7 0l-4.74 4.74-1.5-1.49a.48.48 0 00-.7 0l-.53.53a.5.5 0 000 .71l2.38 2.35a.48.48 0 00.7 0z"}})]))}}},c8f6:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.016 11.986a3.999 3.999 0 01-4.003 3.994H6.005a3.007 3.007 0 00-2.152.849L1.85 18.826a.49.49 0 01-.35.15.5.5 0 01-.501-.5V5.995A3.999 3.999 0 015.004 2h10.009a3.999 3.999 0 014.003 3.994v5.992zM3.002 5.994v8.988a5.012 5.012 0 013.003-1h9.008a2 2 0 002.002-1.996V5.994a2 2 0 00-2.002-1.997H5.003a2 2 0 00-2.001 1.997zm10.51 3.995h1a.5.5 0 00.5-.5v-.998a.5.5 0 00-.5-.5h-1a.5.5 0 00-.501.5v.998a.5.5 0 00.5.5zm-3.003 0H9.508a.5.5 0 01-.5-.5v-.998a.5.5 0 01.5-.5h1a.5.5 0 01.501.5v.998a.5.5 0 01-.5.5zm-3.504-.5v-.998a.5.5 0 00-.5-.5h-1a.5.5 0 00-.501.5v.998a.5.5 0 00.5.5h1.001a.5.5 0 00.5-.5zm10.01 8.488a3.999 3.999 0 004.003-3.994V5.994A2 2 0 0123 7.991v14.51a.5.5 0 01-.5.499.491.491 0 01-.35-.15l-2.003-1.997a3.006 3.006 0 00-2.131-.879H7.005a2 2 0 01-2.002-1.997h12.01z"}})]))}}},ce8c:function(e,t,a){"use strict";a("4d94")},d153:function(e,t,a){var s=a("bba7");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("9c0d0a22",s,!0,{sourceMap:!1,shadowMode:!1})},d49b:function(e,t,a){var s=a("1227");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("486b9ced",s,!0,{sourceMap:!1,shadowMode:!1})},d4f7:function(e,t,a){"use strict";a("5ff0")},d5f5:function(e,t,a){e.exports=a.p+"img/ru/where-is-search-1.png"},db54:function(e,t,a){var s=a("3b25");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("7661d62b",s,!0,{sourceMap:!1,shadowMode:!1})},dc11:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 3a.48.48 0 00-.35.152l-5.79 5.79a.5.5 0 000 .71l.2.2a.49.49 0 00.36.15H9v5.5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5.5h2.58a.49.49 0 00.36-.15l.2-.2a.5.5 0 000-.71l-5.79-5.79A.48.48 0 0012 3zm7 16.5v-1a.5.5 0 00-.5-.5h-13a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h13a.5.5 0 00.5-.5z",fill:"currentColor"}})]))}}},e348:function(e,t,a){"use strict";a("6f3a")},e8de:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".additional[data-v-66d8c60c]{padding:24px 24px 24px 52px;margin-bottom:-12px;background:#f9fafb}.additional__row[data-v-66d8c60c]{margin-bottom:15px;padding-bottom:20px;border-bottom:1px solid #dee2e6}.additional__title[data-v-66d8c60c]{font-weight:400;font-size:16px;line-height:1.5}.additional__text[data-v-66d8c60c]{font-weight:400;font-size:14px;line-height:1.42857143;color:#8a96a6;margin-top:8px}",""]),e.exports=t},eb0f:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".info[data-v-1d2c6280]{display:flex}.info__col[data-v-1d2c6280]{width:264px}.info__col+.info__col[data-v-1d2c6280]{margin-left:32px}.info__icon[data-v-1d2c6280]{width:28px;height:28px;color:#6528d7}.info__icon_green[data-v-1d2c6280]{color:#22c993}.info__title[data-v-1d2c6280]{font-weight:500;font-size:18px;line-height:1.55555556}.info__text[data-v-1d2c6280]{font-weight:400;font-size:14px;line-height:1.42857143;color:#8a96a6;margin-top:8px}",""]),e.exports=t},eb96:function(e,t,a){e.exports=a.p+"img/ru/checking-work-2.png"},f042:function(e,t,a){"use strict";a("6353")},f4e3:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 3h14a2 2 0 012 2v11a2 2 0 01-2 2H3a2 2 0 01-2-2V5a2 2 0 012-2zm14 5V5H3v3h14zM3 16v-5h14v5H3zm18 2V7a2 2 0 012 2v9a4 4 0 01-4 4H7a2 2 0 01-2-2h14a2 2 0 002-2z"}})]))}}},f6ed:function(e,t,a){"use strict";a("d153")},f7c2:function(e,t){e.exports={locale:{short:"ru",long:"Ruso",ru:{short:"ru",long:"Ruso"},en:{short:"en",long:"Inglés"},es:{short:"es",long:"Español"}},close:"Cerrar",save:"Guardar",run:"Ejecutar módulo",warning:"Importante",error:"Error","not-selected":"No seleccionado",hint:"¿Dónde buscar?",prestashop:"PrestaShop",crm:"CRM",piece:{short:"cs.",long:"cosa"},menu:{settings:"Configuración del módulo",advanced:"Avanzado",debug:"Monitoreo",orders:"Trabajar con pedidos",check:"Comprobación de trabajo"},support:{title:"Soporte Técnico Simla.com",mail:"support@simla.com",subject:"PrestaShop module issue",body:""},version:{status:{update:"Actualización disponible",critical:"Actualización importante disponible!"},download:"Descargar",info:"Descargue el archivo y instalar en el Gestor de módulos"},catalog:{connected:{title:"Catálogo de productos conectado",count:{products:"mercancías cargadas",offers:"ofertas comerciales descargadas"},date:{old:"Más de 7 días",day:"d.",hour:"h.",min:"m.",passed:"pasado desde la Última carga"},generate:"Descargar ahora"},outdated:{title:"El enlace del catálogo de productos está desactualizado",update:"Actualizar ahora"},"not-connected":{title:"Catálogo de productos no conectado",notice:"La Conexión se realizará automáticamente. Por lo general, toma 15 minutos crearlo, pero puede tomar hasta 4 horas. Si después de este tiempo no se crea el catálogo, póngase en contacto con el soporte técnico.",check:"Comprobar de nuevo",support:"Escribir al soporte técnico",info:"¿Qué es un archivo de directorio?"}},settings:{"refresh-types":"Actualizar tipos",connection:{title:"Conexión",address:"Dirección CRM","create-key":"Crear una clave API en la sección",settings:"Ajustes",integration:"Integración","api-access":"Claves de acceso a la API","api-key":"Clave API","enter-url":"https://demo.simla.com","enter-api-key":"Introduzca la clave API","make-connection":"Establecer conexión","address-hint-desc":"La Dirección de CRM está disponible en la barra de direcciones de su navegador","api-key-hint-desc":"Insertar datos del campo 'Clave'"},delivery:{title:"Tipos de entrega",desc:"Configure el cumplimiento de los métodos de entrega de PrestaShop y CRM","add-new-type-in":"Puede Agregar un nuevo tipo de entrega a CRM en",types:"Tipos de entrega","press-refresh":"Después de agregar un nuevo tipo de entrega, haga clic en","learn-about":"Aprender","important-things":"qué prestar atención","when-creating-types":" al crear un nuevo tipo de entrega",select:"Seleccione el tipo de entrega",notice:"Si conecta un nuevo Servicio de entrega en el lado de PrestaShop en el futuro, no olvide agregarle una asignación en la configuración del módulo para que funcione correctamente, de lo contrario, el pedido en CRM se descargará sin especificar la entrega.",popup:{title:"Tipos de entrega",header:"Tenga en cuenta al crear un nuevo tipo de entrega en CRM",countries:"En la configuración principal, se seleccionan los países a los que se entrega este método",payments:'En la pestaña" métodos de pago " está marcado. Si no se selecciona ninguno, este tipo de entrega no se ofrecerá al realizar el pedido.'}},payment:{title:"Tipos de pago",desc:"Configure la conformidad de los métodos de pago de PrestaShop y CRM","add-new-type-in":"Puede Agregar un nuevo tipo de pago a CRM en",types:"Tipos de pago","press-refresh":"Después de agregar un nuevo tipo de pago, haga clic en",select:"Seleccione el tipo de pago",notice:{"after-setup":"Después de configurar el módulo, compruebe la disponibilidad de métodos de pago para los tipos de envío disponibles. Para hacer esto, vaya al panel de administración del sitio",improve:"Mejoras",payment:"Pago",settings:"Ajustes",restrictions:'en la parte inferior está el bloque "restricciones del transportista"'}},statuses:{title:"Estados de pedidos",desc:"Configure los Estados de pedido de PrestaShop y CRM coincidentes","add-new-type-in":"Puede Agregar un nuevo estado al CRM en",types:"Estados","press-refresh":"Después de agregar un nuevo estado, haga clic en",refresh:"Actualizar Estados",select:"Seleccione el estado del pedido",warning:"Los Valores en las asignaciones no deben repetirse",notice:"Si se agrega un nuevo estado en el lado de PrestaShop, debe asignarlo aquí en la configuración del módulo; de lo contrario, no se realizará la sincronización de pedidos con el nuevo estado"}},advanced:{main:{title:"Configuración avanzada del módulo",corporate:{label:"Soporte para clientes empresariales",desc:"Funcionará si el trabajo con & nbsp;clientes corporativos está activado en Simla.com"},"number-send":{label:"Enviar el número de pedido a Simla.com",desc:"Permite transferir el número de pedido de PrestaShop a Simla.com cuando & nbsp;descarga & nbsp;orden"},"number-receive":{label:"Obtener el número de pedido de Simla.com",desc:"Permite transferir el número de pedido desde Simla.com en PrestaShop cuando & nbsp;inversa & nbsp;sincronización"}},sync:{title:"Sincronización Bidireccional",desc:"Si cambia un pedido o un cliente, los datos no vendrán sólo de PrestaShop a & nbsp;Simla.com. pero también de Simla.com en & nbsp;PrestaShop",enable:"Sincronizar pedidos de CRM",hint:"Habilite si desea que PrestaShop descargue los cambios de pedidos o clientes de Simla.com",delivery:{label:"Tipo de entrega predeterminado",hint:"Se Asigna a un pedido que proviene de un CRM si especifica una entrega que no está configurada en la configuración del módulo",placeholder:"Seleccione el tipo de entrega"},payment:{label:"Tipo de pago predeterminado",hint:"Se Asigna a un pedido que proviene de CRM si se especifica un pago que no está configurado en la configuración del módulo",placeholder:"Seleccione el tipo de pago"}},stocks:{title:"Trabajar con residuos",desc:"El módulo proporciona la cancelación de la mercancía en & nbsp;PrestaShop al descargar el pedido desde Simla.com. en caso de que alguno de los productos en el pedido no sea suficiente en el stock de PrestaShop, el pedido se transferirá al estado seleccionado a continuación, dependiendo de la disponibilidad del pago completo",enable:"Obtener saldos de Simla.com",hint:"Simla.com transferirá automáticamente a PrestaShop información actualizada sobre los saldos",paid:{label:"Si la orden es pagada",hint:"El Pedido será transferido a este estado en caso de que se haya pagado y algunos de los productos en el pedido no sean suficientes en el stock de PrestaShop",placeholder:"Seleccione el estado para el pedido pagado"},"not-paid":{label:"Si el pedido no se paga",hint:"El Pedido se transferirá a este estado en caso de que no se haya pagado y algunos de los productos en el pedido no estén en stock PrestaShop",placeholder:"Seleccione el estado de la orden no pagada"},notice:"El Estado se actualiza tanto en PrestaShop como en Simla.com. si PrestaShop permite el pedido de productos de drenaje cero, el estado del pedido no se cambiará y el artículo se cargará a PrestaShop."},carts:{title:"Carritos Abandonadas",desc:"Un carrito de compras Abandonado es un carrito de compras en una tienda en línea en la que el usuario agregó productos, pero no los compró",enable:"Importar los carritos abandonados",hint:"Habilitar Si desea que en Simla.com se descargaron las cestas abandonadas de los compradores",time:{label:"Descargar cestas abandonadas",hint:"El Tiempo transcurrido desde el cual se considera que la canasta se ha abandonado y se descargará en Simla.com",placeholder:"Seleccionar período",value:{900:"Después de 15 minutos",1800:"Después de 30 minutos",2700:"Después de 45 minutos",3600:"Después de 1 hora"}}},collector:{title:"Servicio de recopilación de datos",desc:{body:"Permitirá realizar un seguimiento de las actividades de los visitantes en el sitio para conocerlos mejor y garantizar que el sistema interactúe estrechamente con los usuarios que se encuentran en su sitio",left:{title:"Seguimiento Detallado",body:"Fijamos y mostramos todas las acciones del visitante en el sitio: comenzó la sesión, agregó el carrito de compras y así sucesivamente"},right:{title:"Datos en tiempo real",body:"Mostramos las propiedades de los visitantes en la tarjeta del cliente: qué etiquetas UTM se asignaron, qué productos se acaban de ver, etc."}},activate:{label:"Activar",hint:"El Servicio debe estar habilitado de la misma manera en el lado Simla.com"},notice:{copy:"Copie el identificador en la sección",settings:"Ajustes",integration:"Integración",collector:" Servicio de recopilación de datos"},label:"Id",placeholder:"Inserte la clave del sitio",hint:"Copia la clave de la tienda deseada"},consultant:{title:"Consultor en Línea",desc:"Chat alojado en & nbsp;su sitio web y & nbsp;diseñado para participar en ventas de visitantes. Para el trabajo, compre un módulo de consultor en línea e inserte el código aquí",notice:{access:"El acceso al área personal del módulo se encuentra en la sección",settings:"Ajustes",integration:"Integración",marketplace:"Marketplace",consultant:"Consultor en Línea"},label:"Código de consultor en línea",placeholder:"Especifique el código del consultor en Línea",hint:"Copie el código en la configuración del módulo de consultor en Línea"},system:{title:"Preferencias del Sistema","web-jobs":{label:"Administrador de tareas",desc:"Le Permite ejecutar automáticamente el administrador de tareas en`header'. Cambie esta configuración solo si sabe lo que está haciendo."},debug:{label:"Registro Avanzado",desc:"Le Permite obtener información más detallada sobre el funcionamiento del módulo en & nbsp;archivos & nbsp;registros"}}},debug:{title:"Monitoreo",jobs:{title:"Administrador de tareas",desc:"Tareas-procesos en segundo plano que permiten la sincronización bidireccional de pedidos, cestas y residuos abandonados, generación de catálogo, etc.",refresh:"Actualizar tareas","table-header":{job:"Tarea","last-run":" Última ejecución",status:"Estado"},empty:"No se ha iniciado ninguna tarea todavía",run:"Ejecutar manualmente",running:"Tarea en curso",succeeded:"La Tarea ha sido completada",names:{RetailcrmAbandonedCartsEvent:"Sincronizar cestas abandonadas",RetailcrmIcmlEvent:"Generar archivo de directorio",RetailcrmIcmlUpdateUrlEvent:"enlaces de directorio actualizados",RetailcrmSyncEvent:"Sincronización Inversa",RetailcrmInventoriesEvent:"Sincronizar saldos",RetailcrmExportEvent:"Descarga del archivo de pedidos y clientes",RetailcrmUpdateSinceIdEvent:"Restablecer la etiqueta de historial",RetailcrmClearLogsEvent:"Borrar archivos de registro antiguos"},notice:"Si se producen errores en el administrador de tareas, puede restablecerlo",reset:"Restablecer"},logs:{title:"Revistas",desc:"Archivos de registro con información de depuración del módulo",refresh:"Actualizar registros","table-header":{name:"Archivo",date:"Cambiado",size:"Tamaño"},empty:"Archivos no encontrados",download:"Descargar",notice:" También se puede descargar un archivo con todos los archivos","download-all":"Descargar Todo"}},orders:{title:"Trabajar con pedidos",upload:{title:"Descarga de pedidos",desc:"En esta sección podrás descargar los pedidos de PrestaShop en Simla.com",advices:["Descargue varios pedidos a la vez especificándolos separados por comas < / B> sin espacios (1,2,3,4,5) o especifique < B > rango< / B >(1-5)","Puede descargar hasta 10 pedidos< / b>"],placeholder:" Uno o más separados por comas o rango",sugerencia:"El número de identificación coincide con el número de pedido en PrestaShop",btn:"Descargar pedidos"},export:{title:"Pedidos no descargados",desc:"Pedidos que se crearon en el CMS antes de conectar el módulo o que no se pudieron descargar debido a un error en el proceso",advices:["Una vez que comience la descarga, no cierre la pestaña ni salga de esta página","Si el proceso de descarga se interrumpe (por ejemplo, si abandona la página o tiene problemas con la conexión), se puede reanudar desde el punto de parada"],searching:"Buscar pedidos pendientes",count:{total:"Pedidos Totales",unloaded:"Pedidos no descargados",customers:"Total de clientes"},run:"Ejecutar descarga","run-desc":"Cargar solo pedidos no descargados","run-all":"Descargar todo","run-all-desc":"Cargar todos pedidos y todos clientes, actualizar historial etiqueta",success:" Todos los pedidos descargados"},table:{search:{btn:"Buscar",placeholder:" Id de pedido en CMS"},filter:{all:"Todos",succeeded:"Descargado",failed:"Con error"},head:{date:"Fecha y hora",id_cms:"ID en CMS",id_crm:" Id en CRM",status:"Estado"},"not-found":"Pedidos no encontrados",uploaded:"Descargado",failed:"Error",upload:"Volver a Cargar",uploading:"Descargado"}},check:{title:"¿cómo asegurarse de que el módulo funciona?",text:{duplicate:"Para comprobar el funcionamiento del módulo, duplique el último pedido en Prestashop","go-to":"Ir a",simla:"Simla.com",sales:"Ventas",orders:"Pedidos","and-check-order":" y compruebe si el pedido aparece en la lista","check-options":'Si necesita que cuando cambie un pedido o un cliente, los datos no solo provienen de PrestaShop en Simla.com, pero también de Simla.com en PrestaShop, asegúrese de que la opción "sincronización Bidireccional" esté habilitada en la configuración del módulo en "Avanzado"',"remove-tests":"Una vez que haya comprobado que la sincronización funciona correctamente, las órdenes de prueba se pueden eliminar en Simla.com y PrestaShop","if-has-any-questions":" Si hay problemas en el funcionamiento del módulo o no hay suficiente información sobre cómo trabajar con Simla.com","ask-support":"póngase en contacto con el soporte técnico","or-read":"o echa un vistazo a",materials:"material didáctico"}},errors:{unknown:"Error Desconocido",url:"Dirección del CRM incorrecta",key:"Clave API del CRM no válida",connect:"No se pudo verificar la clave API",access:"Se requiere clave API con acceso a una tienda",scopes:"Los permisos de la clave API no son suficientes para el funcionamiento del módulo",version:"La versión API Seleccionada no está disponible",carts:" El estado del pedido de las cestas abandonadas no debe usarse en otras configuraciones",status:"Los Estados de pedido no deben repetirse en la asignación",delivery:"Los Tipos de entrega no deben repetirse en la comparación",payment:"Los tipos de pago no deben repetirse en la comparación",collector:"Id no Válido o vacío"},warnings:{delivery:"Seleccione los valores para todos los tipos de entrega",status:"Seleccione los valores para todos los Estados del pedido",payment:"Seleccione valores para todos los tipos de pago",default:"Seleccione los valores para todos los valores predeterminados"}}},fa43:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2A10 10 0 112 12zm2 0a8 8 0 1016 0 8 8 0 00-16 0zm6.5-4h-1a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h1a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm3 0h1a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-1a.5.5 0 01-.5-.5v-7a.5.5 0 01.5-.5z",fill:"currentColor"}})]))}}}}); \ No newline at end of file + */(function(e){function t(t){for(var s,o,i=t[0],c=t[1],l=t[2],u=0,p=[];useparated by commas without spaces (1,2,3,4,5) or specify range (1-5)","Up to 10 orders can be uploaded at a time"],placeholder:"One or more separated by commas or a range",hint:"The ID number corresponds to the order number in PrestaShop",btn:"Upload orders"},export:{title:"Export orders",desc:"Orders that were created in the CMS before the module was connected or that could not be uploaded due to an error during operation",advices:["After the start of export, do not close the tab and do not leave this page","If the export process is interrupted (for example, you leave the page or there are problems with the connection), it can be resumed from the place of stopping"],searching:"Search for unloaded orders",count:{total:"Total orders",unloaded:"Unloaded orders",customers:"Total customers"},run:"Start export","run-desc":"Export only unloaded orders","run-all":"Export all","run-all-desc":"Export all orders and all customers, update history tag",success:"All orders have been exported"},table:{search:{btn:"Search",placeholder:"CMS order ID"},filter:{all:"All",succeeded:"Uploaded",failed:"With an error"},head:{date:"Date and time",id_cms:"ID in CMS",id_crm:"ID in CRM",status:"Status"},"not-found":"Orders not found",uploaded:"Uploaded",failed:"Error",upload:"Upload again",uploading:"Being uploaded"}},check:{title:"How do I make sure the module is working?",text:{duplicate:"To check the module's operation, duplicate the last order in Prestashop","go-to":"Go to",simla:"Simla.com",sales:"Sales",orders:"Orders","and-check-order":"and check whether the order has appeared in the list","check-options":'If you need that when changing an order or a customer, the data comes not only from PrestaShop to Simla.com , but also from Simla.com in PrestaShop, make sure that the "Two-sided" option is enabled in the module settings in the "Advanced" section syncing"',"remove-tests":"After you have verified that synchronization is working correctly, test orders can be deleted in Simla.com and PrestaShop","if-has-any-questions":"If there are problems with the module or there is not enough information on working with Simla.com ","ask-support":"contact tech support","or-read":"or check out",materials:"educational materials"}},errors:{unknown:"Unknown error",url:"Invalid CRM URL address",key:"Invalid API key",connect:"Failed to verify API key",access:"API key with one-shop access required",scopes:"API key permissions are not enough for module operation",version:"The selected API version is unavailable",carts:"The order status for abandoned baskets should not be used in other settings",status:"Order statuses should not be repeated in the comparison",delivery:"Delivery types should not be repeated in the mapping",payment:"Payment types should not be repeated in the comparison",collector:"Invalid or empty ID",currency:"The currency of the site differs from the currency of the store in CRM. For the integration to work correctly, the currencies in CRM and CMS must match"},warnings:{delivery:"Select values for all delivery types",status:"Select values for all order statuses",payment:"Select values for all payment types",default:"Select values for all default parameters"}}},"27f5":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".info-image[data-v-66d582dd]{width:100%;height:auto;box-shadow:0 8px 16px rgba(30,34,72,.16)}",""]),e.exports=t},2965:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.73 7.12l-.14-.25a2.07 2.07 0 00-.74-.73l-6.71-3.87a2 2 0 00-1-.27h-.29a2 2 0 00-1 .27L4.14 6.15a2 2 0 00-.73.73l-.14.25a2 2 0 00-.27 1v7.75a2 2 0 00.27 1l.14.25c.18.3.43.55.73.73l6.72 3.87c.302.18.648.273 1 .27h.28a2 2 0 001-.27l6.71-3.88a1.9 1.9 0 00.73-.73l.15-.25a2.05 2.05 0 00.27-1V8.12a2 2 0 00-.27-1zM11.85 4h.29L18 7.38l-2.085 1.202-5.885-3.53L11.85 4zm-3.8 2.196l5.883 3.53L12 10.84 6 7.38l2.05-1.184zM13 19.5l5.85-3.38.15-.25V9.11l-6 3.47v6.92zm-2-7L5 9v7l6 3.5v-7z"}})]))}}},"2b5d":function(e,t,a){var s=a("33cc");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("ba16b3e0",s,!0,{sourceMap:!1,shadowMode:!1})},"2db6":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,'.dot-list__item{display:flex;align-items:center;margin-bottom:4px;font-weight:400;font-size:14px;line-height:1.42857143}.dot-list__icon{width:24px;height:24px;min-width:24px;align-self:flex-start}.chain-arrow{display:inline-block;vertical-align:baseline}.chain-arrow:after{content:"\\2192";display:inline-block;vertical-align:top;line-height:18px;margin:0 4px}.select-box__row{display:flex;margin-bottom:16px}.select-box__row_head{margin-bottom:20px}.select-box__row_head .select-box__col{padding-bottom:12px;border-bottom:1px solid #dee2e6;display:flex;align-items:center;justify-content:space-between;min-height:51px}.select-box__col{width:264px}.select-box__col_name{display:flex;align-items:center}.select-box__col+.select-box__col{margin-left:32px}.select-box__title{font-weight:500;font-size:18px;line-height:1.55555556;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1;padding-right:16px}.select-box__icon{width:24px;height:24px;fill:#c7cdd4}*{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}body{background-color:#fff;color:#000}.settings-box{min-width:100%}.settings-footer{display:flex;justify-content:space-between;width:100%}.switch-content{padding-left:52px}.full-width{width:100%}.nobootstrap label{width:auto}.nobootstrap input[type=text]{box-shadow:none!important}.bootstrap span[class^=UiButton_btn__txt]{font-size:14px}',""]),e.exports=t},3e3:function(e,t,a){e.exports=a.p+"img/ru/where-is-search-2.png"},3236:function(e,t,a){var s=a("eb0f");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("654c53fb",s,!0,{sourceMap:!1,shadowMode:!1})},"33cc":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".settings-box__label[data-v-c0910eb8]{color:#8a96a6;margin-left:8px}",""]),e.exports=t},"361e":function(e,t,a){"use strict";a("0015")},"372c":function(e,t,a){"use strict";a("4aeb")},"375b":function(e,t,a){"use strict";a("19bf")},"3a3a":function(e,t,a){"use strict";a("7b6a")},"3abd":function(e,t,a){var s=a("4bb9");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("06b47fd1",s,!0,{sourceMap:!1,shadowMode:!1})},"3b25":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".checking-work-image[data-v-9f78cc46]{border-radius:4px;border:1px solid #dee2e6;box-shadow:0 8px 16px rgba(30,34,72,.16)}.chain-arrow[data-v-9f78cc46]:after{line-height:1.5}",""]),e.exports=t},"3c28":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".additional[data-v-75423ba6]{padding:24px 24px 24px 52px;margin-bottom:-12px;background:#f9fafb}.additional__row[data-v-75423ba6]{margin-bottom:15px;padding-bottom:20px;border-bottom:1px solid #dee2e6}.additional__title[data-v-75423ba6]{font-weight:400;font-size:16px;line-height:1.5}.additional__text[data-v-75423ba6]{font-weight:400;font-size:14px;line-height:1.42857143;color:#8a96a6;margin-top:8px}",""]),e.exports=t},"3c5d":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{d:"M12.025 2.8c-.02 0-.02 0 0 0-.02 0-.02 0 0 0-5.08 0-9.22 4.12-9.22 9.2 0 5.06 4.12 9.2 9.18 9.2 5.08 0 9.2-4.12 9.2-9.2.02-5.06-4.1-9.2-9.16-9.2zm.78 16.76V17.5c0-.44-.36-.8-.8-.8-.44 0-.8.36-.8.8v2.06a7.58 7.58 0 01-6.76-6.76h2.06c.44 0 .8-.36.8-.8 0-.44-.36-.8-.8-.8h-2.06a7.58 7.58 0 016.76-6.76V6.5c0 .44.36.8.8.8.44 0 .8-.36.8-.8V4.44c3.6.38 6.38 3.2 6.76 6.76h-2.06c-.44 0-.8.36-.8.8 0 .44.36.8.8.8h2.06a7.58 7.58 0 01-6.76 6.76z"}})]))}}},"46a4":function(e,t,a){"use strict";a("7f90")},"48fa":function(e,t,a){e.exports=a.p+"img/ru/where-is-search-5.png"},"4a78":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.169 2.445a1 1 0 011.386-.277l3 2A1 1 0 018.001 5v11.17A3.008 3.008 0 019.83 18H18a1 1 0 110 2H9.83A3.001 3.001 0 116 16.17V5.536L3.447 3.832a1 1 0 01-.277-1.387zM7 18h-.01a1 1 0 10.02 0H7z"}}),a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9 7a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2h-8a2 2 0 01-2-2V7zm4 0h-2v8h8V7h-2v3h-4V7z"}})]))}}},"4aeb":function(e,t,a){var s=a("27f5");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("1f27c8c8",s,!0,{sourceMap:!1,shadowMode:!1})},"4bb9":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".top-bar[data-v-659e5b4d]{justify-content:space-between;align-items:flex-end;width:100%}.top-bar[data-v-659e5b4d],.top-bar__search[data-v-659e5b4d]{display:flex}.top-bar__search-field[data-v-659e5b4d]{margin-right:8px;max-width:200px}.table[data-v-659e5b4d]{width:100%;border-collapse:collapse;border:none;text-align:left}.table-wrapper[data-v-659e5b4d]{position:relative}.table__head[data-v-659e5b4d]{background:#f4f6f8;border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.nobootstrap .table__head-cell[data-v-659e5b4d],.table__head-cell[data-v-659e5b4d]{color:#8a96a6;padding-top:12px;padding-bottom:12px;font-weight:500;font-size:12px;line-height:1.16666667}.nobootstrap .table__head-cell[data-v-659e5b4d]:first-of-type,.table__head-cell[data-v-659e5b4d]:first-of-type{padding-left:24px}.table__cell_center[data-v-659e5b4d]{text-align:center}",""]),e.exports=t},"4d94":function(e,t,a){var s=a("1691");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("0f995a82",s,!0,{sourceMap:!1,shadowMode:!1})},"4f46":function(e,t,a){"use strict";a("3236")},"53fa":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{d:"M20.5 10h-5a.5.5 0 01-.5-.5v-.29a.49.49 0 01.15-.36l1.78-1.78A6.93 6.93 0 0012 5a7 7 0 107 7.47.5.5 0 01.5-.47h1a.52.52 0 01.36.16.5.5 0 01.13.37 9 9 0 11-2.62-6.89l1.49-1.49a.49.49 0 01.35-.15h.29a.5.5 0 01.5.5v5a.5.5 0 01-.5.5z"}})]))}}},5458:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.03 2a.48.48 0 01.35.151l18.47 18.47a.479.479 0 010 .699l-.53.529a.48.48 0 01-.7 0l-.88-.879a2.001 2.001 0 01-3.69-.663c-.147-.821.231-1.647.95-2.072l-1.24-1.258H7a.76.76 0 01-.67-.33l-.22-.379a.768.768 0 010-.709l1.86-3.694a2.186 2.186 0 01-.27-.35l-3.4-5.99L2.15 3.38a.479.479 0 010-.699l.53-.529A.48.48 0 013.03 2zm6.59 10.893l-1 2.087h5.1l-2-1.997h-1.46a2.745 2.745 0 01-.64-.09zM21.5 3.998H7.71l9 8.985A2.94 2.94 0 0019 11.476l2.35-4.123A4.747 4.747 0 0022 4.997v-.5a.5.5 0 00-.5-.499zM6 19.972c0-1.103.895-1.997 2-1.997s2 .894 2 1.997a1.998 1.998 0 01-2 1.996c-1.105 0-2-.893-2-1.996z"}})]))}}},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var s=a("a026"),n=a("9fc3"),r=a.n(n),o=(a("a93e"),a("70cc"),function(e){e.component("IconCheckmark",a("c84e")),e.component("IconDelivery",a("4a78")),e.component("IconDot",a("6a22")),e.component("IconRefresh",a("53fa")),e.component("IconCreditCard",a("f4e3")),e.component("IconСheckmarkSquare",a("bb2b")),e.component("IconSettings",a("79a6")),e.component("IconCartOff",a("5458")),e.component("IconVisible",a("7382")),e.component("IconSmsChat",a("c8f6")),e.component("IconTargetLocation",a("3c5d")),e.component("IconFlash",a("782a")),e.component("IconOrder",a("2965")),e.component("IconSync",a("9c0e")),e.component("IconPauseCircle",a("fa43")),e.component("IconPlayCircle",a("9706")),e.component("IconLinkOff",a("8c10")),e.component("IconWarningOutlined",a("0f26")),e.component("IconUploadFrom",a("dc11"))}),i={background:"rgba(145,142,152,0.2)",textColor:"#1f1f1f"},c={new:{code:"new",background:"#FEA530",textColor:"#fff"},approval:{code:"approval",background:"rgba(254, 165, 48, 0.2)",textColor:"#BC6B01"},assembling:{code:"assembling",background:"rgba(101, 40, 215, 0.1)",textColor:"#4a2aa5"},delivery:{code:"delivery",background:"rgba(63,215,40,0.1)",textColor:"#2aa53e"},complete:{code:"complete",background:"rgba(30,93,26,0.5)",textColor:"#265416"},cancel:{code:"cancel",background:"rgba(215,40,40,0.2)",textColor:"#a52a2a"}},l={default:"blue",done:"green",fail:"red",warn:"yellow"},d={locale:"en",controller:{settings:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmSettings&token=1aed79d44114d65e476031ec3ec57795",payments:"http://dev.prestashop.lc/admin-dev/index.php?controller=AdminPaymentPreferences&token=af1fbb08db1b6a1246f7b80dd2e093b5",orders:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmOrders&token=5ed712457f0ba7028a2f7fad96ff5170",export:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmExport&token=1702fdc9b2e24d99dbc2145d2fd1cab8",link:"http://dev.prestashop.lc/admin-dev/index.php?controller=AdminOrders&token=f085ee727d11734a218da4ead8354298",jobs:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmJobs&token=9895685278a140c5c60bbd41e1fc6568",logs:"http://dev.prestashop.lc/admin-dev/index.php?controller=RetailcrmLogs&token=05a37fbb219890c7e1c3db741a5553c1"},main:{connection:{url:"https://demo.retailcrm.ru/",apiKey:"fffffffffffffffffffffffffff"},delivery:{setting:{2:""},cms:[{label:"Prestashop Staging",id:"2",required:!1}],crm:[{code:"self-delivery",name:"Самовывоз"},{code:"russian-post",name:"Почта России"},{code:"ems",name:"EMS Почта России"},{code:"courier-test-privet",name:"Courier"},{code:"courier",name:"Доставка курьером"},{code:"servientrega",name:"Servientrega"},{code:"tnt",name:"TNT"},{code:"servientrega",name:"Servientrega"},{code:"correos-express",name:"Correos Express"}]},payment:{setting:{ps_checkpayment:"",ps_wirepayment:""},cms:[{id:11,code:"ps_checkpayment",name:"Payments by check"},{id:30,code:"ps_wirepayment",name:"Wire payment"}],crm:[{code:"bank-card",name:"Банковская карта"},{code:"e-money",name:"Электронные деньги"},{code:"bank-transfer",name:"Банковский перевод"},{code:"credit",name:"Кредит"},{code:"cash",name:"Наличные"}]},status:{setting:{1:"assembling-complete",2:"",3:"new",4:"",5:"send-to-assembling",6:"manual",7:"offer-analog",8:"",9:"send-to-delivery",10:"no-product",11:"",12:"client-confirmed",13:"error-de-descontar-el-stock"},cms:[{label:"Awaiting bank wire payment",id:"10",required:!1},{label:"Awaiting Cash On Delivery validation",id:"13",required:!1},{label:"Awaiting check payment",id:"1",required:!1},{label:"Canceled",id:"6",required:!1},{label:"Delivered",id:"5",required:!1},{label:"On backorder (not paid)",id:"12",required:!1},{label:"On backorder (paid)",id:"9",required:!1},{label:"Payment accepted",id:"2",required:!1},{label:"Payment accepted",id:"11",required:!1},{label:"Payment error",id:"8",required:!1},{label:"Processing in progress",id:"3",required:!1},{label:"Refunded",id:"7",required:!1},{label:"Shipped",id:"4",required:!1}],crm:[{statuses:[{code:"new",name:"Новый",ordering:10},{code:"abandoned-cart",name:"Брошенная корзина",ordering:990}],code:"new",name:"Новый",ordering:10},{statuses:[{code:"manual",name:"Manual",ordering:990}],code:"manual",name:"Manual",ordering:15},{statuses:[{code:"offer-analog",name:"Предложить замену",ordering:20},{code:"upsell",name:"upsell",ordering:25},{code:"client-confirmed",name:"Согласовано с клиентом",ordering:30},{code:"prepayed",name:"Предоплата поступила",ordering:40}],code:"approval",name:"Согласование",ordering:20},{statuses:[{code:"send-to-assembling",name:"Передано в комплектацию",ordering:10},{code:"assembling",name:"Комплектуется",ordering:20},{code:"assembling-complete",name:"Укомплектован",ordering:30},{code:"reservation-error",name:"Ошибка бронирования",ordering:990},{code:"preparado",name:"preparado",ordering:990},{code:"error-de-descontar-el-stock",name:"error-de-descontar-el-stock",ordering:990}],code:"assembling",name:"Комплектация",ordering:30},{statuses:[{code:"send-to-delivery",name:"Передан в доставку",ordering:10},{code:"delivering",name:"Доставляется",ordering:20},{code:"redirect",name:"Доставка перенесена",ordering:30}],code:"delivery",name:"Доставка",ordering:40},{statuses:[{code:"complete",name:"Выполнен",ordering:10}],code:"complete",name:"Выполнен",ordering:50},{statuses:[{code:"no-call",name:"Недозвон",ordering:10},{code:"no-product",name:"Нет в наличии",ordering:20},{code:"already-buyed",name:"Купил в другом месте",ordering:30},{code:"delyvery-did-not-suit",name:"Не устроила доставка",ordering:40},{code:"prices-did-not-suit",name:"Не устроила цена",ordering:50},{code:"cancel-other",name:"Отменен",ordering:60},{code:"rehusado-recibido",name:"rehusado-recibido",ordering:990},{code:"return",name:"Returned",ordering:990}],code:"cancel",name:"Отменен",ordering:60}]}},additional:{settings:{corporate:!0,numberSend:!0,numberReceive:!1,webJobs:!0,debug:!1},history:{enabled:!0,deliveryDefault:"",paymentDefault:"",delivery:[{label:"Prestashop Staging",id:"2",required:!1}],payment:[{id:11,code:"ps_checkpayment",name:"Payments by check"},{id:30,code:"ps_wirepayment",name:"Wire payment"}]},stocks:{enabled:!1,statuses:{out_of_stock_paid:"",out_of_stock_not_paid:""}},carts:{synchronizeCartsActive:!0,synchronizedCartStatus:"",synchronizedCartDelay:"2700",delays:["900","1800","2700","3600"]},collector:{collectorActive:!1,collectorKey:""},consultant:{consultantScript:""}},catalog:{info:{productsCount:7,offersCount:22,isCatalogConnected:!0,isUrlActual:!0,siteId:"2",lastGenerated:{date:"2022-05-20 11:59:17.000000",timezone_type:3,timezone:"Europe/Moscow"},lastGeneratedDiff:{days:0,hours:0,minutes:38},isOutdated:!1},generateName:"RetailcrmIcmlEvent",updateURLName:"RetailcrmIcmlUpdateUrlEvent"},advanced:{jobs:[{success:!0,lastRun:{date:"2022-02-10 15:04:25.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmAbandonedCartsEvent",running:!1},{success:!0,lastRun:{date:"2022-05-19 13:34:41.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmClearLogsEvent",running:!1},{success:!0,lastRun:{date:"2022-05-20 11:59:18.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmIcmlEvent",running:!1},{success:!0,lastRun:{date:"2022-03-31 18:27:15.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmInventoriesEvent",running:!1},{success:!1,lastRun:{date:"2022-03-04 11:38:12.000000",timezone_type:1,timezone:"+03:00"},error:{message:"Address::dni is empty",trace:"#0 /var/www/html/modules/retailcrm/lib/RetailcrmJobManager.php(706): RetailcrmSyncEvent->execute()\\n#1 /var/www/html/modules/retailcrm/lib/RetailcrmJobManager.php(457): RetailcrmJobManager::execHere('RetailcrmSyncEv...', false, true, 1)\\n#2 /var/www/html/modules/retailcrm/lib/RetailcrmJobManager.php(268): RetailcrmJobManager::runJob('RetailcrmSyncEv...', false, true, 1)\\n#3 /var/www/html/modules/retailcrm/controllers/admin/RetailcrmJobsController.php(85): RetailcrmJobManager::execManualJob('RetailcrmSyncEv...')\\n#4 /var/www/html/modules/retailcrm/controllers/admin/RetailcrmJobsController.php(55): RetailcrmJobsController->runJob('RetailcrmSyncEv...')\\n#5 /var/www/html/modules/retailcrm/controllers/admin/RetailcrmAdminPostAbstractController.php(53): RetailcrmJobsController->postHandler()\\n#6 /var/www/html/modules/retailcrm/controllers/admin/RetailcrmAdminPostAbstractController.php(45): RetailcrmAdminPostAbstractController->getData()\\n#7 /var/www/html/classes/controller/Controller.php(281): RetailcrmAdminPostAbstractController->postProcess()\\n#8 /var/www/html/classes/Dispatcher.php(515): ControllerCore->run()\\n#9 /var/www/html/admin-dev/index.php(97): DispatcherCore->dispatch()\\n#10 {main}"},name:"RetailcrmSyncEvent",running:!1},{success:!0,lastRun:{date:"2022-03-31 18:28:21.000000",timezone_type:1,timezone:"+03:00"},error:null,name:"RetailcrmIcmlUpdateUrlEvent",running:!1}],logs:[{name:"retailcrm_web_2022_05_19.log",path:"/var/www/html/var/logs/retailcrm_web_2022_05_19.log",size:"198 284 bytes",modified:"2022-05-19 22:09:30"},{name:"retailcrm_web_2022_05_20.log",path:"/var/www/html/var/logs/retailcrm_web_2022_05_20.log",size:"4 219 bytes",modified:"2022-05-20 11:59:18"}]}};void 0===window.$appData&&(window.$appData=d,alert("Warning! You are using mock data! If you getting this message and if it is not test environment, then you should clean the cache in settings. If after all you still getting this message then you should contact our support team."));var u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"presta-wrapper",attrs:{id:"app"}},[a("main",{staticClass:"main"},[a("UiRow",{staticClass:"main__panel",attrs:{mb:"20"}},[a("a",{attrs:{href:"#"}},[a("img",{staticClass:"main__logo",attrs:{src:"https://s3-s1.retailcrm.tech/eu-central-1/retailcrm-static/branding/simla/logo/logo_horiz.svg",alt:""}})]),a("AsideLocales")],1),a("div",{staticClass:"main__body"},[e.isLoaded?[e.mode===e.modes.edit?a("aside",{staticClass:"main__aside"},[a("AsideMenu")],1):e._e(),a("article",{staticClass:"main__content"},[a("router-view")],1)]:[a("UiLoader",{attrs:{overlay:!1}})]],2)],1)])},p=[],f=a("1da1"),m=(a("96cf"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("router-link",{staticClass:"nav-link",attrs:{to:"/",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.isActive,n=t.navigate;return[a("UiMenuBtn",{attrs:{active:s},on:{click:n}},[e._v(" "+e._s(e.$t("menu.settings"))+" ")])]}}])}),a("router-link",{staticClass:"nav-link",attrs:{to:"/advanced",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.navigate,n=t.isActive;return[a("UiMenuBtn",{attrs:{active:n},on:{click:s}},[e._v(" "+e._s(e.$t("menu.advanced"))+" ")])]}}])}),a("router-link",{staticClass:"nav-link",attrs:{to:"/orders",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.navigate,n=t.isActive;return[a("UiMenuBtn",{attrs:{active:n},on:{click:s}},[e._v(" "+e._s(e.$t("menu.orders"))+" ")])]}}])}),a("router-link",{staticClass:"nav-link",attrs:{to:"/check-work",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.navigate,n=t.isActive;return[a("UiMenuBtn",{attrs:{active:n},on:{click:s}},[e._v(" "+e._s(e.$t("menu.check"))+" ")])]}}])}),a("router-link",{staticClass:"nav-link",attrs:{to:"/debug",exact:""},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.navigate,n=t.isActive;return[a("UiMenuBtn",{attrs:{active:n},on:{click:s}},[e._v(" "+e._s(e.$t("menu.debug"))+" ")])]}}])}),a("UiRow",{attrs:{mt:"m"}},[a("NewVersion")],1),a("UiRow",{attrs:{mt:"m"}},[a("CatalogInfo")],1),a("UiRow",{attrs:{mt:"m"}},[a("AsideSupports")],1),a("UiRow",{attrs:{mt:"m"}},[a("AsideLocales")],1)],1)}),h=[],g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"aside-info",class:{"aside-info_warning":e.isLoaded&&!e.catalog.isCatalogConnected}},[e.isLoaded?[e.catalog.isCatalogConnected?a("div",[a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("catalog.connected.title"))+" "),a("UiIcon",{staticClass:"aside-info__icon-status",attrs:{name:"checkmarkCircleOutlined"}})],1),a("UiText",{staticClass:"aside-info__date",attrs:{size:"tiny"}},[e._v(" "+e._s(e.lastGeneratedDate)+" "),a("span",[e._v("•")]),e._v(" "+e._s(e.lastGeneratedTime)+" ")])],1),e.catalog.productsCount&&e.catalog.offersCount?a("div",{staticClass:"aside-info__item"},[a("UiText",{attrs:{size:"paragraph",color:"gray",accent:""}},[e._v(" "+e._s(e.catalog.productsCount)+" ")]),a("UiText",{attrs:{size:"small",color:"gray"}},[e._v(" "+e._s(e.$t("catalog.connected.count.products"))+" ")]),a("UiText",{attrs:{size:"paragraph",color:"gray",accent:""}},[e._v(" "+e._s(e.catalog.offersCount)+" ")]),a("UiText",{attrs:{size:"small",color:"gray"}},[e._v(" "+e._s(e.$t("catalog.connected.count.offers"))+" ")])],1):e._e(),e.catalog.isUrlActual?a("div",{staticClass:"aside-info__item"},[a("UiText",{attrs:{size:"paragraph",color:e.catalog.isOutdated?"action":"gray",accent:""}},[e.catalog.lastGeneratedDiff.days>7?[a("span",[e._v(" "+e._s(e.$t("catalog.connected.date.old"))+" ")])]:[e.catalog.lastGeneratedDiff.days>0?a("span",[e._v(" "+e._s(e.catalog.lastGeneratedDiff.days)+" "+e._s(e.$t("catalog.connected.date.day"))+" ")]):e._e(),e.catalog.lastGeneratedDiff.hours>0?a("span",[e._v(" "+e._s(e.catalog.lastGeneratedDiff.hours)+" "+e._s(e.$t("catalog.connected.date.hour"))+" ")]):e._e(),e.catalog.lastGeneratedDiff.minutes>0?a("span",[e._v(" "+e._s(e.catalog.lastGeneratedDiff.minutes)+" "+e._s(e.$t("catalog.connected.date.min"))+" ")]):e._e()]],2),e.catalog.lastGeneratedDiff.days>0||e.catalog.lastGeneratedDiff.hours>0||e.catalog.lastGeneratedDiff.minutes>0?a("UiText",{attrs:{size:"small",color:e.catalog.isOutdated?"action":"gray"}},[e._v(" "+e._s(e.$t("catalog.connected.date.passed"))+" ")]):e._e(),a("UiRow",{attrs:{mt:"xs"}},[a("UiLink",{attrs:{size:"small","icon-offset":"4","dot-border":""},on:{click:e.generate},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconSync",{})]},proxy:!0}],null,!1,3035392805)},[e._v(" "+e._s(e.$t("catalog.connected.generate"))+" ")])],1)],1):a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status aside-info__status_warning",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("catalog.outdated.title"))+" "),a("IconWarningOutlined",{staticClass:"aside-info__icon-status aside-info__icon-status_warning"})],1),a("UiLink",{attrs:{size:"small","icon-offset":"4","dot-border":""},on:{click:e.updateURL},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconSync",{})]},proxy:!0}],null,!1,3035392805)},[e._v(" "+e._s(e.$t("catalog.outdated.update"))+" ")])],1)]):a("div",[a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("catalog.not-connected.title"))+" "),a("IconWarningOutlined",{staticClass:"aside-info__icon-status"})],1)],1),a("div",{staticClass:"aside-info__item"},[a("UiText",{attrs:{size:"small",color:"gray"}},[e._v(" "+e._s(e.$t("catalog.not-connected.notice"))+" ")]),a("UiRow",{attrs:{mt:"s"}},[a("UiButton",{staticClass:"full-width",attrs:{size:"xs"},on:{click:e.update}},[e._v(" "+e._s(e.$t("catalog.not-connected.check"))+" "),a("IconRefresh")],1)],1),a("UiRow",{attrs:{mt:"xs"}},[a("UiButton",{staticClass:"full-width",attrs:{size:"xs",type:"secondary",href:"mailto:"+e.$t("support.mail")+"?subject="+e.$t("support.subject")+"&body="+e.$t("support.body")}},[e._v(" "+e._s(e.$t("catalog.not-connected.support"))+" ")])],1),a("UiRow",{attrs:{mt:"xs"}},[a("UiButton",{staticClass:"full-width",attrs:{size:"xs",type:"tertiary"}},[e._v(" "+e._s(e.$t("catalog.not-connected.info"))+" ")])],1)],1)])]:[a("UiLoader",{attrs:{overlay:!1}})]],2)},b=[],v=(a("ac1f"),a("1276"),{name:"CatalogInfo",data:function(){return{isLoaded:!1}},computed:{catalog:function(){return this.$store.getters["catalog/getCatalog"]},lastGeneratedDate:function(){if(void 0===this.catalog.lastGenerated.date)return"";var e=this.catalog.lastGenerated.date.split(" ");return 2!==e.length?"":e[0]},lastGeneratedTime:function(){if(void 0===this.catalog.lastGenerated.date)return"";var e=this.catalog.lastGenerated.date.split(" ");return 2!==e.length?"":e[1].substr(0,5)}},created:function(){var e=this;this.$store.dispatch("catalog/load").then((function(){e.isLoaded=!0}))},methods:{generate:function(){var e=this;this.$store.dispatch("catalog/generate").then((function(){e.update()}))},updateURL:function(){var e=this;this.$store.dispatch("catalog/updateUrl").then((function(){e.update()}))},update:function(){this.$store.dispatch("catalog/load")}}}),_=v,y=(a("3a3a"),a("2877")),x=Object(y["a"])(_,g,b,!1,null,"24b39777",null),w=x.exports,C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.latestVersion.isSuccess&&!e.latestVersion.isLatest?a("div",{staticClass:"aside-info aside-info_warning",class:{"aside-info_critical":e.latestVersion.critical}},[e.latestVersion.critical?a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("version.status.critical"))+" "),a("IconWarningOutlined",{staticClass:"aside-info__icon-status"})],1)],1):a("div",{staticClass:"aside-info__item"},[a("UiText",{staticClass:"aside-info__status",attrs:{size:"body",accent:""}},[e._v(" "+e._s(e.$t("version.status.update"))+" "),a("IconWarningOutlined",{staticClass:"aside-info__icon-status"})],1)],1),a("UiRow",{attrs:{mt:"s"}},[a("UiButton",{staticClass:"full-width",attrs:{size:"xs"},on:{click:e.download}},[e._v(" "+e._s(e.$t("version.download"))+" "),a("IconUploadFrom")],1)],1),a("UiPopup",{attrs:{type:"hint"},scopedSlots:e._u([{key:"footer",fn:function(){return[e._v(" "+e._s(e.$t("version.info"))+" ")]},proxy:!0}],null,!1,90484190),model:{value:e.hintUpdate,callback:function(t){e.hintUpdate=t},expression:"hintUpdate"}},[a("img",{attrs:{src:e.$i18n.getImage("how-to-update-1.png"),alt:"picture"}})])],1):e._e()},S=[],k={name:"NewVersion",data:function(){return{hintUpdate:!1}},computed:{latestVersion:function(){return this.$store.state.settings.settings.latestVersion}},methods:{download:function(){window.location.href=this.latestVersion.url,this.hintUpdate=!0}}},R=k,U=(a("87c1"),Object(y["a"])(R,C,S,!1,null,"528a40a3",null)),O=U.exports,$=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("UiRow",{attrs:{mb:"xxs"}},[a("UiText",{staticClass:"supports",attrs:{size:"small",accent:""}},[e._v(" "+e._s(e.$t("support.title"))+" ")])],1),a("UiLink",{attrs:{size:"body",href:"mailto:"+e.$t("support.mail")+"?subject="+e.$t("support.subject")+"&body="+e.$t("support.body")}},[e._v(" "+e._s(e.$t("support.mail"))+" ")])],1)},z=[],M={name:"AsideSupports"},j=M,I=(a("375b"),Object(y["a"])(j,$,z,!1,null,"8750f3f4",null)),E=I.exports,L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",e._l(e.getLocales(),(function(t){return a("UiButton",{key:t,attrs:{disabled:e.checkLocale(t),"tooltip-text":e.$t("locale."+t+".long"),size:"xs",type:"tertiary"},on:{click:function(a){return e.toggleLocale(t)}}},[a("span",[e._v(" "+e._s(e.$t("locale."+t+".short"))+" ")])])})),1)},T=[],P={name:"AsideLocales",methods:{getLocales:function(){return this.$i18n.locales()},checkLocale:function(e){return this.$i18n.get()===e},toggleLocale:function(e){this.$i18n.set(e)}}},A=P,D=Object(y["a"])(A,L,T,!1,null,null,null),B=D.exports,q={name:"AsideMenu",components:{AsideLocales:B,NewVersion:O,CatalogInfo:w,AsideSupports:E},data:function(){return{step:0}}},N=q,G=(a("affc"),Object(y["a"])(N,m,h,!1,null,null,null)),W=G.exports,H={wizard:"wizard",edit:"edit"},J={name:"App",components:{AsideMenu:W,AsideLocales:B},data:function(){return{isLoaded:!1,mode:H.wizard}},computed:{modes:function(){return H},settings:function(){return this.$store.getters["settings/getSettings"]}},created:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("settings/load");case 2:return t.next=4,e.$store.dispatch("references/load");case 4:e.mode=e.settings.url&&e.settings.apiKey?H.edit:H.wizard,e.isLoaded=!0;case 6:case"end":return t.stop()}}),t)})))()}},V=J,F=(a("6ddf"),Object(y["a"])(V,u,p,!1,null,"1e13efae",null)),K=F.exports,Y=a("8c4f"),X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("UiCollapseGroupNext",{on:{"ui::collapse-group::expand-cancelled":e.onExpandCancelled},model:{value:e.box,callback:function(t){e.box=t},expression:"box"}},[a("ConnectionSettings",{attrs:{"is-wizard-mode":e.isWizardMode,settings:e.settings}}),a("DeliveriesTypes",{attrs:{"is-wizard-mode":e.isWizardMode,settings:e.settings,references:e.references}}),a("PaymentTypes",{attrs:{"is-wizard-mode":e.isWizardMode,settings:e.settings,references:e.references}}),a("OrderStatuses",{attrs:{"is-wizard-mode":e.isWizardMode,settings:e.settings,references:e.references}})],1)],1)},Q=[],Z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{bordered:"",color:e.status},scopedSlots:e._u([{key:"icon",fn:function(){return[e.isWizardMode&&e.status===e.statuses.done?a("IconCheckmark"):a("UiIcon",{attrs:{name:"linkIcon"}})]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("settings.connection.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{attrs:{"max-width":"383"}},[a("UiRow",{attrs:{mb:"m"}},[a("UiField",{attrs:{"area-id":"crm-url",label:e.$t("settings.connection.address")},scopedSlots:e._u([{key:"subtitle",fn:function(){return[a("UiLink",{attrs:{size:"small"},on:{click:function(t){e.hintCrmUrl=!0}}},[e._v(e._s(e.$t("hint")))])]},proxy:!0}])},[a("UiInput",{attrs:{id:"crm-url",placeholder:e.$t("settings.connection.enter-url")},on:{focus:e.addHttps,paste:e.pasteCheckHttps},model:{value:e.form.url,callback:function(t){e.$set(e.form,"url",t)},expression:"form.url"}})],1)],1),a("UiRow",{attrs:{mb:"m"}},[a("UiInfoBox",{attrs:{icon:"info-outlined"},scopedSlots:e._u([{key:"description",fn:function(){return[e._v(" "+e._s(e.$t("settings.connection.create-key"))+" "),a("b",{staticClass:"chain-arrow"},[e._v(e._s(e.$t("settings.connection.settings")))]),a("b",{staticClass:"chain-arrow"},[e._v(e._s(e.$t("settings.connection.integration")))]),e.urlValid?a("UiLink",{attrs:{href:e.urlForApiKey,size:"small",accent:"",external:""}},[e._v(" "+e._s(e.$t("settings.connection.api-access"))+" ")]):a("b",[e._v(e._s(e.$t("settings.connection.api-access")))])]},proxy:!0}])})],1),a("UiField",{attrs:{"area-id":"api-key",label:e.$t("settings.connection.api-key")},scopedSlots:e._u([{key:"subtitle",fn:function(){return[a("UiLink",{attrs:{size:"small"},on:{click:function(t){e.hintApiKey=!0}}},[e._v(e._s(e.$t("hint")))])]},proxy:!0}])},[a("UiInput",{attrs:{id:"api-key",placeholder:e.$t("settings.connection.enter-api-key")},model:{value:e.form.apiKey,callback:function(t){e.$set(e.form,"apiKey",t)},expression:"form.apiKey"}})],1)],1),a("SaveErrors",{attrs:{form:e.form,"is-loading":e.isLoading,"is-wizard-mode":e.isWizardMode},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}})]},proxy:!0},{key:"footer-content",fn:function(){return[a("div",{staticClass:"settings-footer"},[a("div",[a("UiButton",{attrs:{size:"sm",disabled:e.isLoading},on:{click:e.apply}},[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):e.isWizardMode&&""===e.url?a("span",[e._v(e._s(e.$t("settings.connection.make-connection")))]):a("span",[e._v(e._s(e.$t("save")))])],1),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")])],1),a("UiPopup",{attrs:{type:"hint"},scopedSlots:e._u([{key:"footer",fn:function(){return[e._v(" "+e._s(e.$t("settings.connection.address-hint-desc"))+" ")]},proxy:!0}]),model:{value:e.hintCrmUrl,callback:function(t){e.hintCrmUrl=t},expression:"hintCrmUrl"}},[a("img",{attrs:{src:e.$i18n.getImage("where-is-search-1.png"),alt:"picture"}})]),a("UiPopup",{attrs:{type:"hint"},scopedSlots:e._u([{key:"footer",fn:function(){return[e._v(" "+e._s(e.$t("settings.connection.api-key-hint-desc"))+" ")]},proxy:!0}]),model:{value:e.hintApiKey,callback:function(t){e.hintApiKey=t},expression:"hintApiKey"}},[a("img",{attrs:{src:e.$i18n.getImage("where-is-search-2.png"),alt:"picture"}})])],1)]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},ee=[],te=(a("466d"),a("5319"),a("2ca0"),a("a4d3"),a("e01a"),{methods:{showConfirm:function(e,t,a){this.$modal.confirm(null===a||void 0===a?void 0:a.description,null===a||void 0===a?void 0:a.props).then((function(a){a&&e?e():t&&t()}))}}}),ae={mixins:[te],props:{done:{type:Boolean,default:!1}},data:function(){return{isOpen:!1}},computed:{hasChanges:function(){return!1}},methods:{close:function(){var e=this;this.hasChanges?this.showConfirm((function(){e.reset(),e.isOpen=!1})):this.isOpen=!1},reset:function(){}}},se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiRow",[e.hasErrors?a("UiRow",{attrs:{mt:"m"}},[a("UiInfoBox",{class:e.$style["box_danger"],attrs:{icon:"info-outlined",type:"danger"},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("error"))+" ")]},proxy:!0},{key:"description",fn:function(){return e._l(e.errors,(function(t,s){return a("div",{key:s},[t?a("p",e._l(t,(function(s,n){return a("span",{key:n},[e._v(" "+e._s(e.$te(s)?e.$t(s):s)+" "),n2&&void 0!==arguments[2]?arguments[2]:null;for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=a);return e},ce=function(e){if(null===e||0===Object.keys(e).length)return!0;for(var t in e)if(null!==e[t]&&0!==e[t].length)return!1;return!0},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t===[]?e:Object.keys(e).filter((function(e){return t.indexOf(e)>-1})).reduce((function(t,a){return Object.assign(t,Object(re["a"])({},a,e[a]))}),{})},de={name:"SaveErrors",props:{form:{type:Object,default:function(){return null}},isLoading:{type:Boolean,default:!1},isWizardMode:{type:Boolean,default:!1}},data:function(){return{statuses:l}},computed:{errors:function(){return this.$store.getters["settings/getErrors"](Object.keys(this.form))},warnings:function(){return this.$store.getters["settings/getWarnings"](Object.keys(this.form))},hasErrors:function(){return!ce(this.errors)},hasWarnings:function(){return!ce(this.warnings)},getStatus:function(){return!0===this.isLoading?this.statuses.default:this.hasErrors?this.statuses.fail:this.hasWarnings?this.statuses.warn:null===this.isLoading?this.statuses.default:this.statuses.done}},watch:{getStatus:function(){this.updateStatus(this.getStatus),this.isWizardMode||this.getStatus!==this.statuses.done||setTimeout(function(){this.updateStatus(this.statuses.default)}.bind(this),3e3)}},mounted:function(){this.updateStatus(this.getStatus)},methods:{updateStatus:function(e){this.$emit("input",e),this.$emit("status-changed",e)}}},ue=de,pe=a("5b03");function fe(e){this["$style"]=pe["default"].locals||pe["default"]}var me=Object(y["a"])(ue,se,ne,!1,fe,null,null),he=me.exports,ge={name:"ConnectionSettings",components:{SaveErrors:he},mixins:[ae],props:{isWizardMode:{type:Boolean,default:!1},settings:{type:Object,required:!0}},data:function(){return{url:this.settings.url,apiKey:this.settings.apiKey,hintCrmUrl:!1,hintApiKey:!1,tooltipOptions:{placement:"top"},isLoading:null,status:l.default,statuses:l}},computed:{form:function(){return{url:this.url,apiKey:this.apiKey}},urlValid:function(){var e=/https:\/\/(.*).(retailcrm.(pro|ru|es)|simla.com)/;return null!==this.url&&null!==this.url.match(e)},urlForApiKey:function(){return null===this.url?"":this.url.replace(/~*\/+$/,"")+"/admin/api-keys"}},methods:{apply:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("settings/update",e.form);case 3:e.isLoading=!1;case 4:case"end":return t.stop()}}),t)})))()},addHttps:function(){this.url||(this.url="https://")},pasteCheckHttps:function(e){if("https://"===this.url||""===this.url){e.preventDefault();var t=e.clipboardData.getData("Text");t.startsWith("https://")?this.url=t:this.url="https://"+t}}}},be=ge,ve=Object(y["a"])(be,Z,ee,!1,null,null,null),_e=ve.exports,ye=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{color:e.status,bordered:""},on:{"ui::collapse::toggle":e.checkTypes},scopedSlots:e._u([{key:"icon",fn:function(){return[e.isWizardMode&&e.status===e.statuses.done?a("IconCheckmark"):a("IconDelivery")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("settings.delivery.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{attrs:{mt:"xxs",mb:"m"}},[a("UiText",[e._v(e._s(e.$t("settings.delivery.desc")))])],1),a("UiRow",{staticClass:"dot-list",attrs:{mb:"l"}},[a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.add-new-type-in"))+"  "),a("UiLink",{attrs:{href:e.url+"admin/delivery-types",external:"",size:"small"}},[e._v(e._s(e.$t("settings.delivery.types")))])],1),a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.press-refresh"))+"   "),a("b",[e._v(e._s(e.$t("settings.refresh-types")))])],1),a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.learn-about"))+"  "),a("UiLink",{attrs:{tag:"span",size:"small","dot-border":""},on:{click:function(t){e.infoSidebar=!0}}},[e._v(e._s(e.$t("settings.delivery.important-things")))]),e._v("  "+e._s(e.$t("settings.delivery.when-creating-types"))+" ")],1)]),a("UiRow",{staticClass:"select-box",attrs:{mb:"s"}},[a("div",{staticClass:"select-box__row select-box__row_head"},[a("div",{staticClass:"select-box__col"},[a("div",{staticClass:"select-box__title"},[e._v(e._s(e.$t("prestashop")))]),a("UiIcon",{staticClass:"select-box__icon",attrs:{name:"arrowDoublesidedHorizontal"}})],1),a("div",{staticClass:"select-box__col"},[a("div",{staticClass:"select-box__title"},[e._v(e._s(e.$t("crm")))]),a("UiButton",{attrs:{type:"tertiary",size:"sm",disabled:e.isUpdating},on:{click:e.update}},[e.isUpdating?a("UiIcon",{attrs:{name:"circleLoading"}}):a("IconRefresh"),e._v(" "+e._s(e.$t("settings.refresh-types"))+" ")],1)],1)]),e._l(e.deliveries,(function(t,s){return a("div",{key:"delivery-"+s,staticClass:"select-box__row"},[a("div",{staticClass:"select-box__col select-box__col_name"},[e._v(e._s(t.name))]),a("div",{staticClass:"select-box__col"},[a("UiSelect",{attrs:{placeholder:e.$t("settings.delivery.select"),filtered:"",clearable:""},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"delivery.value"}},e._l(e.deliveryTypes(t.value),(function(e,t){return a("UiOption",{key:"type-"+s+"-"+t,attrs:{value:e.code,label:e.name}})})),1)],1)])}))],2),a("UiRow",{attrs:{pt:"xxs"}},[a("UiInfoBox",{attrs:{icon:"info-outlined"},scopedSlots:e._u([{key:"description",fn:function(){return[e._v(" "+e._s(e.$t("settings.delivery.notice"))+" ")]},proxy:!0}])})],1),a("UiModalSidebar",{scopedSlots:e._u([{key:"head",fn:function(){return[e._v(" "+e._s(e.$t("settings.delivery.popup.title"))+" ")]},proxy:!0},{key:"default",fn:function(){return[a("div",[a("UiRow",{attrs:{mt:"xs",mb:"s",pb:"xxs"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("settings.delivery.popup.header"))+" ")])],1),a("img",{staticClass:"info-image",attrs:{src:e.$i18n.getImage("delivery-info-1.png"),alt:""}}),a("UiRow",{staticClass:"dot-list",attrs:{mt:"s",mb:"s",pb:"xs"}},[a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.popup.countries"))+" ")],1)]),a("img",{staticClass:"info-image",attrs:{src:e.$i18n.getImage("delivery-info-2.png"),alt:""}}),a("UiRow",{staticClass:"dot-list",attrs:{mt:"s"}},[a("div",{staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),e._v(" "+e._s(e.$t("settings.delivery.popup.payments"))+" ")],1)])],1)]},proxy:!0},{key:"footer",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:function(t){e.infoSidebar=!1}}},[e._v(" "+e._s(e.$t("close"))+" ")])]},proxy:!0}]),model:{value:e.infoSidebar,callback:function(t){e.infoSidebar=t},expression:"infoSidebar"}}),a("SaveErrors",{attrs:{form:e.form,"is-loading":e.isLoading,"is-wizard-mode":e.isWizardMode},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}})]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",disabled:e.isLoading},on:{click:e.apply}},[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):a("span",[e._v(e._s(e.$t("save")))])],1),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},xe=[],we=(a("d81d"),{name:"DeliveriesTypes",components:{SaveErrors:he},mixins:[ae],props:{isWizardMode:{type:Boolean,default:!1},settings:{type:Object,required:!0},references:{type:Object,required:!0}},data:function(){var e=this;return{selectValue:"",infoSidebar:!1,url:this.settings.url,deliveries:this.references.deliveryTypesCMS.map((function(t){return{name:t.label,id:t.id,value:null===e.settings.delivery||void 0===e.settings.delivery[t.id]?"":e.settings.delivery[t.id]}})),isUpdating:!1,isLoading:null,status:l.default,statuses:l}},computed:{deliveriesTypesCRM:function(){return this.references.deliveryTypesCRM},deliveriesSetting:function(){return JSON.stringify(this.deliveries.reduce((function(e,t){return e[t.id]=t.value,e}),{}))},form:function(){return{delivery:this.deliveriesSetting}}},methods:{deliveryTypes:function(e){var t=this;return this.deliveriesTypesCRM.filter((function(a){for(var s=!1,n=0;nthis.orders.count&&(e=this.orders.count);var t=this.loadStepCustomers*this.customers.exportStepSize;t>this.customers.exportCount&&(t=this.customers.exportCount);var a=e+t+(this.isDone?1:0),s=this.orders.count+this.customers.exportCount+1;this.$console.info("Processed: ",a,"Total: ",s),this.loadPercent=Math.round(100*a/s)},updatePercentUnloaded:function(){var e=this.loadStepOrders*this.orders.exportStepSize;e>this.orders.exportCount&&(e=this.orders.exportCount);var t=e+(this.isDone?1:0),a=this.orders.exportCount+1;this.$console.info("Processed: ",t,"Total: ",a),this.loadPercent=Math.round(100*t/a)},export:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isPause){t.next=2;break}return t.abrupt("return");case 2:if(!e.isDone){t.next=5;break}return setTimeout((function(){e.isDischargeComplete=!0}),250),t.abrupt("return");case 5:if(a=e.isExportAll?e.preparePayload():e.preparePayloadUnloaded(),!a){t.next=11;break}return t.next=9,e.$store.dispatch("export/export",a);case 9:s=t.sent,void 0!==s.success&&s.success||alert(s.errorMsg);case 11:return e.isExportAll?e.updatePercent():e.updatePercentUnloaded(),t.next=14,e.export();case 14:case"end":return t.stop()}}),t)})))()}}},Gt=Nt,Wt=(a("d4f7"),Object(y["a"])(Gt,Bt,qt,!1,null,"6c9c89f7",null)),Ht=Wt.exports,Jt={name:"UnloadedOrders",components:{SearchUnloadedOrder:Ht},mixins:[ae],data:function(){return{isOrdersCountLoad:!1,orders:{count:null,exportCount:null,exportStepSize:null},customers:{count:null,exportCount:null,exportStepSize:null}}},mounted:function(){this.isOrdersCountLoad||this.loadCount()},methods:{loadCount:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("export/getCount");case 2:a=t.sent,void 0!==a.success&&a.success&&void 0!==a.orders&&void 0!==a.customers||alert(a.errorMsg),e.orders=a.orders,e.customers=a.customers,e.isOrdersCountLoad=!0;case 7:case"end":return t.stop()}}),t)})))()}}},Vt=Jt,Ft=(a("a935"),Object(y["a"])(Vt,At,Dt,!1,null,"c0910eb8",null)),Kt=Ft.exports,Yt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconOrder")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("orders.upload.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{attrs:{mb:"xxs"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("orders.upload.desc"))+" ")])],1),a("UiRow",{staticClass:"dot-list",attrs:{mt:"12",mb:"28"}},e._l(e.$t("orders.upload.advices",""),(function(t){return a("div",{key:t,staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),a("div",{domProps:{innerHTML:e._s(t)}})],1)})),0),a("UiRow",{attrs:{mb:"12","max-width":"464"}},[a("UiField",{attrs:{"area-id":"order-id",label:"ID заказов"},scopedSlots:e._u([{key:"subtitle",fn:function(){return[a("UiLink",{attrs:{size:"small"},on:{click:function(t){e.hintOrderId=!0}}},[e._v(e._s(e.$t("hint")))])]},proxy:!0}])},[a("UiInput",{attrs:{id:"order-id",placeholder:e.$t("orders.upload.placeholder")},model:{value:e.ordersId,callback:function(t){e.ordersId=t},expression:"ordersId"}})],1)],1),a("UiRow",[a("UiButton",{attrs:{size:"sm"},on:{click:e.upload}},[e._v(" "+e._s(e.$t("orders.upload.btn"))+" ")])],1),a("UiPopup",{attrs:{type:"hint"},scopedSlots:e._u([{key:"footer",fn:function(){return[e._v(" "+e._s(e.$t("orders.upload.hint"))+" ")]},proxy:!0}]),model:{value:e.hintOrderId,callback:function(t){e.hintOrderId=t},expression:"hintOrderId"}},[a("img",{attrs:{src:e.$i18n.getImage("where-is-search-5.png"),alt:"picture"}})])]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},Xt=[],Qt=a("2909"),Zt=(a("d3b7"),a("25f0"),a("159b"),a("99af"),a("fb6a"),a("ddb0"),a("4e82"),{name:"WorkWithOrders",mixins:[ae],data:function(){return{hintOrderId:!1,ordersId:""}},methods:{upload:function(){this.$store.dispatch("orders/upload",{orders:this.partitionId(this.ordersId)})},partitionId:function(e){if(""===e)return[];var t=e.split(","),a=t.filter((function(e){return-1===e.toString().indexOf("-")})),s=t.filter((function(e){return-1!==e.toString().indexOf("-")})),n=[];return s.forEach((function(e){var t=e.split("-");n=[].concat(Object(Qt["a"])(n),Object(Qt["a"])(Object(Qt["a"])(Array(+t[1]+1).keys()).slice(+t[0],+t[1]+1)))})),[].concat(Object(Qt["a"])(a),Object(Qt["a"])(n)).map((function(e){return+e})).sort((function(e,t){return e-t}))}}}),ea=Zt,ta=Object(y["a"])(ea,Yt,Xt,!1,null,null,null),aa=ta.exports,sa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("UiRow",{staticClass:"top-bar",attrs:{mb:"m"}},[a("UiRow",{staticClass:"top-bar__search"},[a("UiInput",{staticClass:"top-bar__search-field",attrs:{placeholder:e.$t("orders.table.search.placeholder"),"icon-left":"search"},model:{value:e.CMSId,callback:function(t){e.CMSId=t},expression:"CMSId"}}),a("UiButton",{attrs:{type:"secondary",size:"sm"},on:{click:function(t){return e.searchByReset(e.CMSId)}}},[e._v(" "+e._s(e.$t("orders.table.search.btn"))+" ")])],1),a("UiTabs",{attrs:{type:"radiogroup",size:"sm",rubber:""},on:{changeTab:function(t){return e.searchByReset(e.CMSId)}},model:{value:e.orderStatus,callback:function(t){e.orderStatus=t},expression:"orderStatus"}},[a("UiTabsItem",{attrs:{label:e.$t("orders.table.filter.all")}}),a("UiTabsItem",{attrs:{label:e.$t("orders.table.filter.succeeded")},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconCheckmark")]},proxy:!0}])}),a("UiTabsItem",{attrs:{label:e.$t("orders.table.filter.failed"),icon:"warning"}})],1)],1),a("UiRow",{staticClass:"table-wrapper"},[e.isLoading?a("UiLoader"):e._e(),a("table",{staticClass:"table"},[a("thead",{staticClass:"table__head"},[a("tr",[a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("orders.table.head.date"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("orders.table.head.id_cms"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("orders.table.head.id_crm"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("orders.table.head.status"))+" ")]),a("th")])]),a("tbody",[e.orders.length>0?e._l(e.orders,(function(t,s){return a("OrdersRow",{key:s,attrs:{order:t,settings:e.settings,references:e.references}})})):[a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell table__cell_center",attrs:{colspan:"5"}},[e.isLoading?e._e():a("UiText",{attrs:{size:"paragraph"}},[e._v(" "+e._s(e.$t("orders.table.not-found"))+" ")])],1)])]],2)]),a("UiRow",{attrs:{mt:"s"}},[e.pagesCount>1?a("UiPagination",{attrs:{"arrow-placement":"end","pages-count":e.pagesCount},on:{currentPageChange:function(t){return e.searchBy(e.CMSId)}},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e()],1)],1)],1)},na=[],ra=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e._v(" "+e._s(e.orderDate)+", "),a("UiText",{attrs:{tag:"span",color:"gray"}},[e._v(" "+e._s(e.orderTime)+" ")])],1)],1),a("td",{staticClass:"table__cell"},[e.order.CMSId?a("UiLink",{attrs:{size:"small",href:e.orderLinkCMS,external:""}},[e._v(" "+e._s(e.order.CMSId)+" ")]):e._e()],1),a("td",{staticClass:"table__cell"},[e.order.CRMId?a("UiLink",{attrs:{size:"small",href:e.orderLinkCRM,external:""}},[e._v(" "+e._s(e.order.CRMId)+" ")]):e._e()],1),a("td",{staticClass:"table__cell"},[e.orderIsLoaded?a("UiText",{staticClass:"table__status",attrs:{size:"small"}},[a("IconCheckmark",{staticClass:"table__icon-status"}),e._v(" "+e._s(e.$t("orders.table.uploaded"))+" ")],1):a("UiText",{staticClass:"table__status",attrs:{size:"small",color:"action"}},[a("UiTooltip",{attrs:{placement:"top"},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiIcon",{staticClass:"table__icon-status table__icon-status_error",attrs:{name:"warning"}}),a("span",{staticClass:"table__status-text"},[e._v(e._s(e.$t("orders.table.failed")))])]},proxy:!0}])},[1===e.order.errors.length?a("span",[e._v(" "+e._s(e.order.errors[0])+" ")]):a("div",e._l(e.order.errors,(function(t,s){return a("div",{key:s,staticClass:"dot-list__item"},[a("IconDot",{staticClass:"dot-list__icon"}),a("div",[e._v(e._s(t))])],1)})),0)])],1)],1),a("td",[null!==e.order.CMSId?a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{staticClass:"table__button",class:{table__button_visible:e.isLoading||e.isDischargeComplete},attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.onRepeatDischarge}},[e.isDischargeComplete?[e.orderIsLoaded?a("IconCheckmark"):a("IconWarningOutlined")]:[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):a("IconUploadFrom")]],2)]},proxy:!0}],null,!1,1564882269)},[e.isDischargeComplete?[e.orderIsLoaded?a("span",[e._v(e._s(e.$t("orders.table.uploaded")))]):a("span",[e._v(e._s(e.$t("orders.table.failed")))])]:[e.isLoading?a("span",[e._v(e._s(e.$t("orders.table.uploading")))]):a("span",[e._v(e._s(e.$t("orders.table.upload")))])]],2):e._e()],1)])},oa=[],ia=(a("a15b"),{props:{order:{type:Object,default:function(){}},settings:{type:Object,required:!0},references:{type:Object,required:!0}},data:function(){return{linkCMS:this.references.linkOrders,linkCRM:this.settings.url,isLoading:!1,isDischargeComplete:!1}},computed:{orderDate:function(){return this.order.datetime.split(" ")[0]},orderTime:function(){var e=this.order.datetime.split(" ");return e.length>1?e[1].substr(0,5):""},orderLinkCMS:function(){return this.linkCMS+"&vieworder=&id_order="+this.order.CMSId},orderLinkCRM:function(){return this.linkCRM.replace(/~*\/+$/,"")+"/orders/"+this.order.CRMId+"/edit"},orderIsLoaded:function(){return void 0===this.order.errors||null===this.order.errors||0===this.order.errors.length},orderError:function(){return this.order.errors.join(", ")}},methods:{onRepeatDischarge:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("orders/upload",{orders:[e.order.CMSId]});case 3:a=t.sent,e.order.datetime=(new Date).toISOString().replace("T"," ").substr(0,19),e.order.errors=a.errors,void 0!==a.success&&!1!==a.success||void 0!==a.errors&&0!==a.errors.length||(e.order.errors=["Unknown error"]),e.isLoading=!1,e.isDischargeComplete=!0,setTimeout((function(){e.isDischargeComplete=!1}),2e3);case 10:case"end":return t.stop()}}),t)})))()}}}),ca=ia,la=(a("361e"),Object(y["a"])(ca,ra,oa,!1,null,"f096b74c",null)),da=la.exports,ua={name:"OrdersTable",components:{OrdersRow:da},data:function(){return{CMSId:"",isLoading:!1,currentPage:1,pagesCount:1,orderStatus:0,orders:[]}},computed:{settings:function(){return this.$store.getters["settings/getSettings"]},references:function(){return this.$store.getters["references/getReferences"]}},mounted:function(){this.searchBy("")},methods:{partitionId:function(e){if(""===e)return[];var t=e.split(","),a=t.filter((function(e){return-1===e.toString().indexOf("-")})),s=t.filter((function(e){return-1!==e.toString().indexOf("-")})),n=[];return s.forEach((function(e){var t=e.split("-");n=[].concat(Object(Qt["a"])(n),Object(Qt["a"])(Object(Qt["a"])(Array(+t[1]+1).keys()).slice(+t[0],+t[1]+1)))})),[].concat(Object(Qt["a"])(a),Object(Qt["a"])(n)).map((function(e){return+e})).sort((function(e,t){return e-t}))},searchBy:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.isLoading=!0,a.next=3,t.$store.dispatch("orders/search",{orders:t.partitionId(e),page:t.currentPage,filter:t.orderStatus});case 3:s=a.sent,t.orders=s.orders.map((function(e){return{datetime:e.last_uploaded,CMSId:e.id_order,CRMId:e.id_order_crm,errors:JSON.parse(e.errors)}})),t.currentPage=s.pagination.currentPage,t.pagesCount=s.pagination.totalPageCount,t.isLoading=!1;case 8:case"end":return a.stop()}}),a)})))()},searchByReset:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.pagesCount=0,t.currentPage=1,t.searchBy(e);case 3:case"end":return a.stop()}}),a)})))()}}},pa=ua,fa=(a("9fb5"),Object(y["a"])(pa,sa,na,!1,null,"659e5b4d",null)),ma=fa.exports,ha={name:"OrdersSettings",components:{UnloadedOrders:Kt,WorkWithOrders:aa,OrdersTable:ma},mixins:[ae],data:function(){return{box:""}}},ga=ha,ba=Object(y["a"])(ga,Tt,Pt,!1,null,null,null),va=ba.exports,_a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("UiCollapseGroupNext",{model:{value:e.box,callback:function(t){e.box=t},expression:"box"}},[a("AdvancedDebugSettings",{attrs:{settings:e.settings}}),a("JobManager"),a("Logs")],1)],1)},ya=[],xa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{color:e.status,bordered:""},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconSettings")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("advanced.main.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiSwitch",{attrs:{label:e.$t("advanced.system.web-jobs.label")},scopedSlots:e._u([{key:"desc",fn:function(){return[a("div",{domProps:{innerHTML:e._s(e.$t("advanced.system.web-jobs.desc"))}})]},proxy:!0}]),model:{value:e.webJobs,callback:function(t){e.webJobs=t},expression:"webJobs"}}),a("UiSwitch",{attrs:{label:e.$t("advanced.system.debug.label")},scopedSlots:e._u([{key:"desc",fn:function(){return[a("div",{domProps:{innerHTML:e._s(e.$t("advanced.system.debug.desc"))}})]},proxy:!0}]),model:{value:e.debugMode,callback:function(t){e.debugMode=t},expression:"debugMode"}}),a("SaveErrors",{attrs:{form:e.form,"is-loading":e.isLoading},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}})]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",disabled:e.isLoading},on:{click:e.apply}},[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):a("span",[e._v(e._s(e.$t("save")))])],1),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},wa=[],Ca={name:"AdvancedDebugSettings",components:{SaveErrors:he},mixins:[ae],props:{settings:{type:Object,required:!0}},data:function(){return{webJobs:this.settings.webJobs,debugMode:this.settings.debugMode,isLoading:null,status:l.default}},computed:{form:function(){return{webJobs:this.webJobs,debugMode:this.debugMode}}},methods:{apply:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("settings/update",e.form);case 3:e.isLoading=!1;case 4:case"end":return t.stop()}}),t)})))()}}},Sa=Ca,ka=(a("e348"),Object(y["a"])(Sa,xa,wa,!1,null,"66d8c60c",null)),Ra=ka.exports,Ua=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{bordered:""},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconСheckmarkSquare")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("debug.jobs.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{staticClass:"select-box__row",attrs:{mt:"xxs",mb:"m"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("debug.jobs.desc"))+" ")]),a("UiButton",{staticClass:"select-box__col",attrs:{type:"tertiary",size:"sm"},on:{click:e.update}},[a("IconRefresh"),e._v(" "+e._s(e.$t("debug.jobs.refresh"))+" ")],1)],1),a("UiRow",{attrs:{mt:"xxs",mb:"m"}},[a("table",{staticClass:"table"},[a("thead",{staticClass:"table__head"},[a("tr",[a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.jobs.table-header.job"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.jobs.table-header.last-run"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.jobs.table-header.status"))+" ")]),a("th",[a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{staticClass:"table__button",attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.update}},[a("IconRefresh")],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.jobs.refresh")))])])],1)])]),a("tbody",{staticClass:"table__body"},[e.isLoading?a("tr",[a("td",{staticClass:"table__cell table__cell_center",staticStyle:{position:"relative",height:"60px"},attrs:{colspan:"4"}},[a("UiLoader",{attrs:{overlay:!1}})],1)]):e.jobs.length>0?e._l(e.jobs,(function(e,t){return a("JobRow",{key:t,attrs:{job:e}})})):[a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell table__cell_center",attrs:{colspan:"4"}},[a("UiText",{attrs:{size:"paragraph"}},[e._v(" "+e._s(e.$t("debug.jobs.empty"))+" ")])],1)])]],2)])]),a("UiRow",{staticClass:"select-box__row",attrs:{mt:"xxs",mb:"m"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("debug.jobs.notice"))+" ")]),a("UiButton",{staticClass:"select-box__col",attrs:{type:"tertiary",size:"sm"},on:{click:e.resetJobManager}},[a("IconRefresh"),e._v(" "+e._s(e.$t("debug.jobs.reset"))+" ")],1)],1)]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"primary"},on:{click:e.resetJobManager}},[e._v(" "+e._s(e.$t("debug.jobs.reset"))+" ")]),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")]),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.update}},[e._v(" "+e._s(e.$t("debug.jobs.refresh"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},Oa=[],$a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e.$te("debug.jobs.names."+e.job.name)?a("UiTooltip",{staticStyle:{"vertical-align":"middle"},attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[e._v(" "+e._s(e.$t("debug.jobs.names."+e.job.name))+" ")]},proxy:!0}],null,!1,1826889603)},[a("span",[e._v(" "+e._s(e.job.name))])]):a("span",[e._v(" "+e._s(e.job.name))])],1)],1),a("td",{staticClass:"table__cell"},[e.hasDateTime?a("UiText",{attrs:{size:"small"}},[e._v(" "+e._s(e.getDate)+", "),a("UiText",{attrs:{tag:"span",color:"gray"}},[e._v(" "+e._s(e.getTime)+" ")])],1):e._e()],1),a("td",{staticClass:"table__cell"},[!0===e.job.success?a("UiText",{staticClass:"table__status",attrs:{size:"small"}},[a("IconCheckmark",{staticClass:"table__icon-status table__icon-status_success"})],1):!1===e.job.success?a("UiText",{staticClass:"table__status",attrs:{size:"small",color:"action"}},[a("UiTooltip",{attrs:{placement:"top",closable:!0},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiIcon",{staticClass:"table__icon-status table__icon-status_error",attrs:{name:"warning"}})]},proxy:!0}])},[a("UiText",{staticClass:"table__status",attrs:{size:"small",color:"action"}},[e._v(" "+e._s(e.job.error.message)+" ")]),a("br"),a("UiText",{attrs:{size:"tiny"}},[e._v(" Stacktrace: "),a("br"),e._v(" "+e._s(e.job.error.trace)+" ")])],1)],1):e._e()],1),a("td",[a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{directives:[{name:"show",rawName:"v-show",value:!e.isDischargeComplete,expression:"!isDischargeComplete"}],staticClass:"table__button",class:{table__button_visible:e.isLoading||e.job.running},attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.onRepeatDischarge}},[e.isLoading||e.job.running?a("UiIcon",{attrs:{name:"circleLoading"}}):a("UiIcon",{attrs:{name:"play"}})],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.jobs.run")))])]),a("UiTooltip",{attrs:{show:e.isDischargeComplete,trigger:"manual",placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{directives:[{name:"show",rawName:"v-show",value:e.isDischargeComplete,expression:"isDischargeComplete"}],staticClass:"table__button table__button_visible",attrs:{size:"sm",form:"square",type:"tertiary"}},[a("IconWarningOutlined",{staticClass:"table__button-warning"})],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.jobs.succeeded")))])])],1)])},za=[],Ma={props:{job:{type:Object,default:function(){}}},data:function(){return{isLoading:!1,isDischargeComplete:!1}},computed:{hasDateTime:function(){return null!==this.job.lastRun&&null!==this.job.lastRun.date},getDate:function(){return null===this.job.lastRun?"":this.job.lastRun.date.split(" ")[0]},getTime:function(){if(null===this.job.lastRun)return"";var e=this.job.lastRun.date.split(" ");return e.length>1?e[1].substr(0,5):""}},methods:{onRepeatDischarge:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("jobs/run",e.job.name);case 3:e.isLoading=!1,e.isDischargeComplete=!0,setTimeout((function(){e.isDischargeComplete=!1}),2e3);case 6:case"end":return t.stop()}}),t)})))()}}},ja=Ma,Ia=(a("f042"),Object(y["a"])(ja,$a,za,!1,null,"31004b55",null)),Ea=Ia.exports,La={name:"JobManager",components:{JobRow:Ea},mixins:[ae],data:function(){return{jobs:[],isLoading:!1}},created:function(){this.update()},methods:{update:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("jobs/get");case 3:a=t.sent,void 0!==a.result&&(e.jobs=a.result),e.isLoading=!1;case 6:case"end":return t.stop()}}),t)})))()},resetJobManager:function(){var e=this;this.$store.dispatch("jobs/reset").then((function(){e.update()}))}}},Ta=La,Pa=(a("f6ed"),Object(y["a"])(Ta,Ua,Oa,!1,null,"0aa3baaf",null)),Aa=Pa.exports,Da=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiCollapseBoxNext",{staticClass:"settings-box",attrs:{bordered:""},scopedSlots:e._u([{key:"icon",fn:function(){return[a("IconSmsChat")]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("debug.logs.title"))+" ")]},proxy:!0},{key:"body-content",fn:function(){return[a("UiRow",{staticClass:"select-box__row",attrs:{mt:"xxs",mb:"m"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("debug.logs.desc"))+" ")]),a("UiButton",{staticClass:"select-box__col",attrs:{type:"tertiary",size:"sm"},on:{click:e.update}},[a("IconRefresh"),e._v(" "+e._s(e.$t("debug.logs.refresh"))+" ")],1)],1),a("UiRow",{attrs:{mt:"xxs",mb:"m"}},[a("table",{staticClass:"table"},[a("thead",{staticClass:"table__head"},[a("tr",[a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.logs.table-header.name"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.logs.table-header.date"))+" ")]),a("th",{staticClass:"table__head-cell"},[e._v(" "+e._s(e.$t("debug.logs.table-header.size"))+" ")]),a("th",[a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{staticClass:"table__button",attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.update}},[a("IconRefresh")],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.logs.refresh")))])])],1)])]),a("tbody",{staticClass:"table__body"},[e.isLoading?a("tr",[a("td",{staticClass:"table__cell table__cell_center",staticStyle:{position:"relative",height:"60px"},attrs:{colspan:"4"}},[a("UiLoader",{attrs:{overlay:!1}})],1)]):e.logs.length>0?e._l(e.logs,(function(e,t){return a("LogRow",{key:t,attrs:{log:e}})})):[a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell table__cell_center",attrs:{colspan:"4"}},[a("UiText",{attrs:{size:"paragraph"}},[e._v(" "+e._s(e.$t("debug.logs.empty"))+" ")])],1)])]],2)])]),a("UiRow",{staticClass:"select-box__row",attrs:{mt:"xxs",mb:"m"}},[a("UiText",{attrs:{size:"body"}},[e._v(" "+e._s(e.$t("debug.logs.notice"))+" ")]),a("UiButton",{staticClass:"select-box__col",attrs:{type:"tertiary",size:"sm"},on:{click:e.downloadAll}},[a("IconUploadFrom"),e._v(" "+e._s(e.$t("debug.logs.download-all"))+" ")],1)],1)]},proxy:!0},{key:"footer-content",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"primary"},on:{click:e.downloadAll}},[e._v(" "+e._s(e.$t("debug.logs.download-all"))+" ")]),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.close}},[e._v(" "+e._s(e.$t("close"))+" ")]),a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:e.update}},[e._v(" "+e._s(e.$t("debug.logs.refresh"))+" ")])]},proxy:!0}]),model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}})},Ba=[],qa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",{staticClass:"table__row"},[a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e.log.running?a("UiIcon",{attrs:{name:"circleLoading"}}):e._e(),e._v(" "+e._s(e.log.name)+" ")],1)],1),a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e._v(" "+e._s(e.getDate)+", "),a("UiText",{attrs:{tag:"span",color:"gray"}},[e._v(" "+e._s(e.getTime)+" ")])],1)],1),a("td",{staticClass:"table__cell"},[a("UiText",{attrs:{size:"small"}},[e._v(" "+e._s(e.log.size)+" ")])],1),a("td",[a("UiTooltip",{attrs:{placement:"bottom","center-text":"",dark:""},scopedSlots:e._u([{key:"trigger",fn:function(){return[a("UiButton",{staticClass:"table__button",class:{table__button_visible:e.isLoading},attrs:{size:"sm",form:"square",type:"tertiary"},on:{click:e.onRepeatDischarge}},[e.isLoading?a("UiIcon",{attrs:{name:"circleLoading"}}):e.isDischargeComplete?a("UiIcon",{attrs:{name:"checkmarkCircleOutlined"}}):a("IconUploadFrom")],1)]},proxy:!0}])},[a("span",[e._v(e._s(e.$t("debug.logs.download")))])])],1)])},Na=[],Ga={props:{log:{type:Object,default:function(){}}},data:function(){return{isLoading:!1,isDischargeComplete:!1}},computed:{getDate:function(){return this.log.modified.split(" ")[0]},getTime:function(){var e=this.log.modified.split(" ");return e.length>1?e[1].substr(0,5):""}},methods:{onRepeatDischarge:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("logs/download",e.log.name);case 3:e.isLoading=!1,e.isDischargeComplete=!0,setTimeout((function(){e.isDischargeComplete=!1}),2e3);case 6:case"end":return t.stop()}}),t)})))()}}},Wa=Ga,Ha=(a("ce8c"),Object(y["a"])(Wa,qa,Na,!1,null,"59b33bea",null)),Ja=Ha.exports,Va={name:"Logs",components:{LogRow:Ja},mixins:[ae],data:function(){return{logs:[],isLoading:!1}},created:function(){this.update()},methods:{update:function(){var e=this;return Object(f["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$store.dispatch("logs/get");case 3:a=t.sent,void 0!==a.result&&(e.logs=a.result),e.isLoading=!1;case 6:case"end":return t.stop()}}),t)})))()},downloadAll:function(){this.$store.dispatch("logs/downloadAll")}}},Fa=Va,Ka=(a("46a4"),Object(y["a"])(Fa,Da,Ba,!1,null,"87f78122",null)),Ya=Ka.exports,Xa={name:"DebugSettings",components:{AdvancedDebugSettings:Ra,Logs:Ya,JobManager:Aa},mixins:[ae],data:function(){return{showUnloadedOrders:!1,box:""}},computed:{settings:function(){return this.$store.getters["settings/getSettings"]}}},Qa=Xa,Za=Object(y["a"])(Qa,_a,ya,!1,null,null,null),es=Za.exports;s["default"].use(Y["a"]);var ts,as,ss,ns,rs,os,is,cs=[{path:"/",name:"GeneralSettings",component:qe},{path:"/advanced",name:"AdvancedSettings",component:$t},{path:"/debug",name:"DebugSettings",component:es},{path:"/orders",name:"OrdersSettings",component:va},{path:"/check-work",name:"CheckingWork",component:Lt}],ls=new Y["a"]({routes:cs}),ds=ls,us=a("2f62"),ps=(a("caad"),a("2532"),function(e,t){var a={};for(var s in console)"function"===typeof console[s]&&(!t.includes(s,0)||e?a[s]=console[s].bind(window.console):a[s]=function(){});return a}),fs=ps(window.$appData.debug,["debug","trace"]),ms=fs,hs=(a("3ca3"),a("2b3d"),a("bc3a")),gs=a.n(hs),bs={routes:window.$appData.routes,get:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.routes[e],n=this.helpers.buildParams(t);return a=this.helpers.prepareConfig(a),a.params=n,gs.a.get(s,a)},post:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.routes[e],n=this.helpers.buildParams(t);return a=this.helpers.prepareConfig(a),gs.a.post(s,n,a)},download:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,a.post(e,t,{responseType:"arraybuffer"});case 2:return n=s.sent,a.helpers.downloadFileFromRequest(n),s.abrupt("return",{success:!0});case 5:case"end":return s.stop()}}),s)})))()},helpers:{buildParams:function(e){var t=new URLSearchParams;return void 0===e?t:this.appendParams(t,e)},appendParams:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(Array.isArray(t[s])?e=this.appendParams(e,t[s],s+"[]"):e.append(a+s,t[s]));return e},prepareConfig:function(e){return void 0===e&&(e={}),void 0===e.headers&&(e.headers={}),e.headers["Content-Type"]="application/x-www-form-urlencoded",e},downloadFileFromRequest:function(e){var t=e.headers["content-disposition"].split("filename=")[1].split(";")[0],a=e.headers["content-type"],s=e.data,n=URL.createObjectURL(new Blob([s],{type:a})),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},vs={settings:function(){return bs.get("settings")},update:function(e){return bs.post("settings",e)}},_s="UPDATE_SETTINGS",ys="UPDATE_SETTINGS_SUCCESS",xs="UPDATE_SETTINGS_ERROR",ws="GET_SETTINGS",Cs="GET_SETTINGS_SUCCESS",Ss="GET_SETTINGS_ERROR",ks={namespaced:!0,state:{settings:{url:null,apiKey:null,delivery:null,payment:null,status:null,enableCorporate:null,enableOrderNumberSending:null,enableOrderNumberReceiving:null,enableHistoryUploads:null,deliveryDefault:null,paymentDefault:null,enableBalancesReceiving:null,outOfStockStatus:{out_of_stock_paid:null,out_of_stock_not_paid:null},synchronizeCartsActive:null,synchronizedCartStatus:null,synchronizedCartDelay:null,collectorActive:null,collectorKey:null,consultantScript:null,webJobs:null,debugMode:null,latestVersion:null},warnings:{url:null,apiKey:null,delivery:null,payment:null,status:null,enableCorporate:null,enableOrderNumberSending:null,enableOrderNumberReceiving:null,enableHistoryUploads:null,deliveryDefault:null,paymentDefault:null,enableBalancesReceiving:null,outOfStockStatus:null,synchronizeCartsActive:null,synchronizedCartStatus:null,synchronizedCartDelay:null,collectorActive:null,collectorKey:null,consultantScript:null,webJobs:null,debugMode:null},errors:{url:null,apiKey:null,delivery:null,payment:null,status:null,enableCorporate:null,enableOrderNumberSending:null,enableOrderNumberReceiving:null,enableHistoryUploads:null,deliveryDefault:null,paymentDefault:null,enableBalancesReceiving:null,outOfStockStatus:null,synchronizeCartsActive:null,synchronizedCartStatus:null,synchronizedCartDelay:null,collectorActive:null,collectorKey:null,consultantScript:null,webJobs:null,debugMode:null}},getters:{getSettings:function(e){return e.settings},getWarnings:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return le(e.warnings,t)}},getErrors:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return le(e.errors,t)}}},mutations:(ts={},Object(re["a"])(ts,_s,(function(e,t){e.warnings=ie(e.warnings,t),e.errors=ie(e.errors,t)})),Object(re["a"])(ts,ys,(function(e,t){e.settings=oe(e.settings,t.changed),e.warnings=oe(e.warnings,t.warnings),e.errors=oe(e.errors,t.errors)})),Object(re["a"])(ts,xs,(function(e,t){})),Object(re["a"])(ts,ws,(function(e,t){e.warnings=ie(e.warnings,t),e.errors=ie(e.errors,t)})),Object(re["a"])(ts,Cs,(function(e,t){e.settings=oe(e.settings,t.settings),e.warnings=oe(e.warnings,t.warnings),e.errors=oe(e.errors,t.errors)})),Object(re["a"])(ts,Ss,(function(e,t){})),ts),actions:{update:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(_s,t),s.prev=2,a.$console.log("Request: ",t),s.next=6,vs.update(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(ys,r.data),s.abrupt("return",r.data);case 12:if(s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(xs,s.t0.response.data),void 0===s.t0.response||void 0===s.t0.response.data){s.next=18;break}return s.abrupt("return",s.t0.response.data);case 18:return s.abrupt("return",{success:!1,errorMsg:s.t0,errors:{unknown:s.t0}});case 19:case"end":return s.stop()}}),s,null,[[2,12]])})))()},load:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(ws),a.prev=2,a.next=5,vs.settings();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(Cs,n.data),a.abrupt("return",n.data);case 11:if(a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(Ss,a.t0.response.data),void 0===a.t0.response||void 0===a.t0.response.data){a.next=17;break}return a.abrupt("return",a.t0.response.data);case 17:return a.abrupt("return",{success:!1,errorMsg:a.t0,errors:{unknown:a.t0}});case 18:case"end":return a.stop()}}),a,null,[[2,11]])})))()}}},Rs={references:function(){return bs.get("references")},delivery:function(){return bs.get("references",{delivery:!0})},payment:function(){return bs.get("references",{payment:!0})},status:function(){return bs.get("references",{status:!0})}},Us="GET_REFERENCES",Os="GET_REFERENCES_SUCCESS",$s="GET_REFERENCES_ERROR",zs={namespaced:!0,state:{references:{deliveryTypesCMS:[],deliveryTypesCRM:[],paymentTypesCMS:[],paymentTypesCRM:[],statusesCMS:[],statusesCRM:[],cartsDelays:[],linkPayments:null,linkOrders:null}},getters:{getReferences:function(e){return e.references}},mutations:(as={},Object(re["a"])(as,Us,(function(e){})),Object(re["a"])(as,Os,(function(e,t){for(var a in t.references)Object.prototype.hasOwnProperty.call(t.references,a)&&Object.prototype.hasOwnProperty.call(e.references,a)&&(e.references[a]=t.references[a])})),Object(re["a"])(as,$s,(function(e,t){})),as),actions:{load:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Us),a.prev=2,a.next=5,Rs.references();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(Os,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s($s,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()},loadDelivery:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Us),a.prev=2,t.$console.log("Request: delivery"),a.next=6,Rs.delivery();case 6:return n=a.sent,t.$console.log("Response: ",n.data),s(Os,n.data),a.abrupt("return",n.data);case 12:return a.prev=12,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s($s,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 17:case"end":return a.stop()}}),a,null,[[2,12]])})))()},loadPayment:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Us),a.prev=2,t.$console.log("Request: payment"),a.next=6,Rs.payment();case 6:return n=a.sent,t.$console.log("Response: ",n.data),s(Os,n.data),a.abrupt("return",n.data);case 12:return a.prev=12,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s($s,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 17:case"end":return a.stop()}}),a,null,[[2,12]])})))()},loadStatus:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Us),a.prev=2,t.$console.log("Request: status"),a.next=6,Rs.status();case 6:return n=a.sent,t.$console.log("Response: ",n.data),s(Os,n.data),a.abrupt("return",n.data);case 12:return a.prev=12,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s($s,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 17:case"end":return a.stop()}}),a,null,[[2,12]])})))()}}},Ms=(a("841c"),{search:function(e){return bs.get("orders",e)},upload:function(e){return bs.post("orders",e)}}),js="UPLOAD_ORDERS",Is="UPLOAD_ORDERS_SUCCESS",Es="UPLOAD_ORDERS_ERROR",Ls="SEARCH_ORDERS",Ts="SEARCH_ORDERS_SUCCESS",Ps="SEARCH_ORDERS_ERROR",As={namespaced:!0,mutations:(ss={},Object(re["a"])(ss,js,(function(e){})),Object(re["a"])(ss,Is,(function(e,t){})),Object(re["a"])(ss,Es,(function(e,t){})),Object(re["a"])(ss,Ls,(function(e){})),Object(re["a"])(ss,Ts,(function(e,t){})),Object(re["a"])(ss,Ps,(function(e,t){})),ss),actions:{upload:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(js),s.prev=2,a.$console.log("Request: ",t),s.next=6,Ms.upload(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(Is,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(Es,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},search:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(js),s.prev=2,a.$console.log("Request: ",t),s.next=6,Ms.search(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(Is,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(Es,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()}}},Ds={count:function(){return bs.get("export")},export:function(e){return bs.post("export",e)}},Bs="EXPORT",qs="EXPORT_SUCCESS",Ns="EXPORT_ERROR",Gs="GET_COUNT",Ws="GET_COUNT_SUCCESS",Hs="GET_COUNT_ERROR",Js={namespaced:!0,mutations:(ns={},Object(re["a"])(ns,Bs,(function(e){})),Object(re["a"])(ns,qs,(function(e,t){})),Object(re["a"])(ns,Ns,(function(e,t){})),Object(re["a"])(ns,Gs,(function(e){})),Object(re["a"])(ns,Ws,(function(e,t){})),Object(re["a"])(ns,Hs,(function(e,t){})),ns),actions:{export:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(Bs),s.prev=2,a.$console.log("Request: ",t),s.next=6,Ds.export(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(qs,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(Ns,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},getCount:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Bs),a.prev=2,t.$console.log("Request: getCount"),a.next=6,Ds.count();case 6:return n=a.sent,t.$console.log("Response: ",n.data),s(qs,n.data),a.abrupt("return",n.data);case 12:return a.prev=12,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(Ns,a.t0.response.data),a.abrupt("return",null);case 17:case"end":return a.stop()}}),a,null,[[2,12]])})))()}}},Vs={get:function(){return bs.get("jobs")},reset:function(){return bs.post("jobs",{reset:!0})},run:function(e){return bs.post("jobs",{jobName:e})}},Fs="GET_JOBS",Ks="GET_JOBS_SUCCESS",Ys="GET_JOBS_ERROR",Xs="RUN_JOBS",Qs="RUN_JOBS_SUCCESS",Zs="RUN_JOBS_ERROR",en="RESET_JOBS",tn="RESET_JOBS_SUCCESS",an="RESET_JOBS_ERROR",sn={namespaced:!0,mutations:(rs={},Object(re["a"])(rs,Fs,(function(e){})),Object(re["a"])(rs,Ks,(function(e,t){})),Object(re["a"])(rs,Ys,(function(e,t){})),Object(re["a"])(rs,Xs,(function(e){})),Object(re["a"])(rs,Qs,(function(e,t){})),Object(re["a"])(rs,Zs,(function(e,t){})),Object(re["a"])(rs,en,(function(e){})),Object(re["a"])(rs,tn,(function(e,t){})),Object(re["a"])(rs,an,(function(e,t){})),rs),actions:{get:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Fs),a.prev=2,a.next=5,Vs.get();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(Ks,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(Ys,a.t0.response.data),a.abrupt("return",null);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()},run:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(Xs),s.prev=2,a.$console.log("Request: ",t),s.next=6,Vs.run(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(Qs,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(Zs,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},reset:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(en),a.prev=2,a.next=5,Vs.reset();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(tn,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(an,a.t0.response.data),a.abrupt("return",null);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()}}},nn={get:function(){return bs.get("logs")},download:function(e){return bs.download("logs",{logName:e})},downloadAll:function(){return bs.download("logs",{all:!0})}},rn="GET_LOGS",on="GET_LOGS_SUCCESS",cn="GET_LOGS_ERROR",ln="DOWNLOAD_LOGS",dn="DOWNLOAD_LOGS_SUCCESS",un="DOWNLOAD_LOGS_ERROR",pn="DOWNLOAD_ALL_LOGS",fn="DOWNLOAD_ALL_LOGS_SUCCESS",mn="DOWNLOAD_ALL_LOGS_ERROR",hn={namespaced:!0,mutations:(os={},Object(re["a"])(os,rn,(function(e){})),Object(re["a"])(os,on,(function(e,t){})),Object(re["a"])(os,cn,(function(e,t){})),Object(re["a"])(os,ln,(function(e){})),Object(re["a"])(os,dn,(function(e,t){})),Object(re["a"])(os,un,(function(e,t){})),Object(re["a"])(os,pn,(function(e){})),Object(re["a"])(os,fn,(function(e,t){})),Object(re["a"])(os,mn,(function(e,t){})),os),actions:{get:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(rn),a.prev=2,a.next=5,nn.get();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(on,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(cn,a.t0.response.data),a.abrupt("return",null);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()},download:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(ln),s.prev=2,a.$console.log("Request: ",t),s.next=6,nn.download(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(dn,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(un,s.t0.response.data),s.abrupt("return",null);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},downloadAll:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(pn),a.prev=2,a.next=5,nn.downloadAll();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(fn,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(mn,a.t0.response.data),a.abrupt("return",null);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()}}},gn={get:function(){return bs.get("catalog")},generate:function(){return bs.post("catalog",{generate:!0})},updateUrl:function(){return bs.post("catalog",{updateUrl:!0})}},bn="GET_CATALOG",vn="GET_CATALOG_SUCCESS",_n="GET_CATALOG_ERROR",yn="GENERATE_CATALOG",xn="GENERATE_CATALOG_SUCCESS",wn="GENERATE_CATALOG_ERROR",Cn="UPDATE_URL",Sn="UPDATE_URL_SUCCESS",kn="UPDATE_URL_ERROR",Rn={namespaced:!0,state:{catalog:{isCatalogConnected:null,isOutdated:null,isUrlActual:null,lastGenerated:null,lastGeneratedDiff:null,offersCount:null,productsCount:null}},getters:{getCatalog:function(e){return e.catalog}},mutations:(is={},Object(re["a"])(is,bn,(function(e){})),Object(re["a"])(is,vn,(function(e,t){for(var a in t.catalog)Object.prototype.hasOwnProperty.call(t.catalog,a)&&Object.prototype.hasOwnProperty.call(e.catalog,a)&&(e.catalog[a]=t.catalog[a])})),Object(re["a"])(is,_n,(function(e,t){})),Object(re["a"])(is,yn,(function(e){})),Object(re["a"])(is,xn,(function(e,t){})),Object(re["a"])(is,wn,(function(e,t){})),Object(re["a"])(is,Cn,(function(e){})),Object(re["a"])(is,Sn,(function(e,t){})),Object(re["a"])(is,kn,(function(e,t){})),is),actions:{load:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(bn),a.prev=2,a.next=5,gn.get();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(vn,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(_n,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()},generate:function(e,t){var a=this;return Object(f["a"])(regeneratorRuntime.mark((function s(){var n,r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return n=e.commit,n(yn),s.prev=2,a.$console.log("Request: ",t),s.next=6,gn.generate(t);case 6:return r=s.sent,a.$console.log("Response: ",r.data),n(xn,r.data),s.abrupt("return",r.data);case 12:return s.prev=12,s.t0=s["catch"](2),a.$console.error("Error: ",s.t0),n(wn,s.t0.response.data),s.abrupt("return",s.t0.response.data);case 17:case"end":return s.stop()}}),s,null,[[2,12]])})))()},updateUrl:function(e){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function a(){var s,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.commit,s(Cn),a.prev=2,a.next=5,gn.updateUrl();case 5:return n=a.sent,t.$console.log("Response: ",n.data),s(Sn,n.data),a.abrupt("return",n.data);case 11:return a.prev=11,a.t0=a["catch"](2),t.$console.error("Error: ",a.t0),s(kn,a.t0.response.data),a.abrupt("return",a.t0.response.data);case 16:case"end":return a.stop()}}),a,null,[[2,11]])})))()}}};s["default"].use(us["a"]),us["a"].Store.prototype.$console=ms;var Un=new us["a"].Store({modules:{settings:ks,references:zs,orders:As,export:Js,jobs:sn,logs:hn,catalog:Rn}}),On=Un,$n=a("a925"),zn=a("c665"),Mn=zn.keys().reduce((function(e,t){var a=t.split(".")[1].replace("/","");return e[a]=zn(t),e}),{}),jn=localStorage.getItem("language"),In=window.$appData.locale,En="ru",Ln=jn||In||En;s["default"].use($n["a"]),$n["a"].prototype.$console=ms;var Tn=new $n["a"]({locale:Ln,fallbackLocale:En,messages:Mn});Tn.set=function(e){this.locale=e,localStorage.setItem("language",e)},Tn.get=function(){return this.locale},Tn.locales=function(){return this.availableLocales},Tn.getImage=function(e){var t="";try{t=a("7584")("./"+this.locale+"/"+e)}catch(s){this.$console.warn("Cannot find image ",e," for current locale ",this.locale);try{t=a("7584")("./"+this.fallbackLocale+"/"+e),this.$console.warn("Using fallback locale",this.fallbackLocale)}catch(s){this.$console.warn("Cannot find image ",e," for fallback locale ",this.fallbackLocale)}}return t};var Pn=Tn,An=a("5530"),Dn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("UiPopup",{attrs:{open:e.isOpen,type:"confirm",role:"dialog"},on:{togglePopup:function(t){!t&&e.$emit("confirm-cancel")}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(e._s(e.title))]},proxy:!0},{key:"default",fn:function(){return[e._v(" "+e._s(e.content)+" ")]},proxy:!0},{key:"footer",fn:function(){return[a("UiButton",{attrs:{size:"sm",type:"secondary"},on:{click:function(t){e.$emit("confirm-cancel"),e.close()}}},[e._v(" "+e._s(e.cancelTitle)+" ")]),a("UiButton",{attrs:{size:"sm"},on:{click:function(t){e.$emit("confirm-ok"),e.close()}}},[e._v(" "+e._s(e.okTitle)+" ")])]},proxy:!0}])})},Bn=[],qn={name:"ModalConfirm",props:{title:{type:String,default:"Подтверждение действия"},content:{type:[String,Function,Object],default:"Вы изменили данные на странице. При переходе все несохраненные данные будут потеряны"},okTitle:{type:String,default:"Закрыть без сохранения"},okState:{type:String,default:"default"},cancelTitle:{type:String,default:"Отмена"},cancelState:{type:String,default:"default"}},data:function(){return{isOpen:!0}},methods:{open:function(){this.isOpen=!0},close:function(){this.isOpen=!1}}},Nn=qn,Gn=Object(y["a"])(Nn,Dn,Bn,!1,null,null,null),Wn=Gn.exports,Hn=s["default"].extend({extends:Wn,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}}),Jn=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=new Hn({parent:e,propsData:Object(An["a"])(Object(An["a"])({},a),{},{content:t})}),n=document.createElement("div");return document.body.appendChild(n),s.$mount(n),e.__addModalToRegistry(s),new Promise((function(e){s.open(),s.$on("confirm-ok",(function(){e(!0),s.$destroy()})),s.$on("confirm-cancel",(function(){e(!1),s.$destroy()}))}))},Vn={install:function(e){e.mixin({beforeCreate:function(){var e=this;this.$modal={confirm:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Jn(e,t,a)}}},created:function(){this.__modalRegistry=[]},beforeDestroy:function(){this.__modalRegistry&&(this.__modalRegistry.forEach((function(e){return e.$destroy()})),this.__modalRegistry=[])},methods:{__addModalToRegistry:function(e){this.__modalRegistry&&this.__modalRegistry.push(e)}}})}};s["default"].config.productionTip=!1,s["default"].prototype.$console=ms,s["default"].use(r.a,{getLocale:function(){return Pn.locale}}),s["default"].use(Vn),s["default"].use(o),ms.log(window.$appData),new s["default"]({router:ds,store:On,i18n:Pn,render:function(e){return e(K)}}).$mount("#app")},"5b03":function(e,t,a){"use strict";var s=a("b9a0"),n=a.n(s);a.d(t,"default",(function(){return n.a}))},"5ff0":function(e,t,a){var s=a("93ac");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("e162c8ae",s,!0,{sourceMap:!1,shadowMode:!1})},6353:function(e,t,a){var s=a("b592");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("a51d1078",s,!0,{sourceMap:!1,shadowMode:!1})},"6a22":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{d:"M14 12a2 2 0 10-4 0 2 2 0 004 0z"}})]))}}},"6c99":function(e,t,a){e.exports=a.p+"img/ru/delivery-info-2.png"},"6ddf":function(e,t,a){"use strict";a("b84f")},"6f3a":function(e,t,a){var s=a("e8de");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("3fd25f82",s,!0,{sourceMap:!1,shadowMode:!1})},"70cc":function(e,t,a){var s=a("2db6");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("915fb32a",s,!0,{sourceMap:!1,shadowMode:!1})},7382:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.994 5a10.643 10.643 0 019.994 6.7c.016.1.016.2 0 .3a.81.81 0 01-.06.33A10.644 10.644 0 0111.994 19c-4.37.022-8.31-2.63-9.934-6.69A.81.81 0 012 12a1 1 0 01.06-.33A10.643 10.643 0 0111.994 5zm-2.998 7a3 3 0 102.998-3 3 3 0 00-2.998 3z"}})]))}}},7493:function(e,t,a){e.exports=a.p+"img/ru/where-is-search-3.png"},7584:function(e,t,a){var s={"./es/where-is-search-1.png":"c135","./ru/checking-work-2.png":"eb96","./ru/checking-work-3.png":"229f","./ru/delivery-info-1.png":"153a","./ru/delivery-info-2.png":"6c99","./ru/how-to-update-1.png":"c5ec","./ru/where-is-search-1.png":"d5f5","./ru/where-is-search-2.png":"3000","./ru/where-is-search-3.png":"7493","./ru/where-is-search-4.png":"8a1e","./ru/where-is-search-5.png":"48fa"};function n(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=r,e.exports=n,n.id="7584"},"782a":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{d:"M18.09 10.22l-7 11.42a.76.76 0 01-.64.36h-.2a.51.51 0 01-.37-.16.49.49 0 01-.13-.38l.56-6.46H6.74a.76.76 0 01-.65-.38l-.19-.33a.49.49 0 010-.51l7-11.42a.76.76 0 01.66-.36h.2a.51.51 0 01.37.16.49.49 0 01.13.38L13.69 9h3.57a.76.76 0 01.65.38l.19.33a.49.49 0 01-.01.51z"}})]))}}},"79a6":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.21 14.074a2.005 2.005 0 01-.72-1.643v-.861c-.032-.632.235-1.24.72-1.644l.8-.661c.376-.312.473-.85.23-1.273l-1.16-2.004a1 1 0 00-.86-.501.838.838 0 00-.35.07l-1 .36c-.223.088-.46.133-.7.131a1.997 1.997 0 01-1.08-.32 5.479 5.479 0 00-.74-.431 2.004 2.004 0 01-1.06-1.453l-.17-1.002a1 1 0 00-1-.842h-2.3a1 1 0 00-1 .842l-.17 1.002a2.004 2.004 0 01-1.02 1.453 5.477 5.477 0 00-.74.43c-.322.209-.697.32-1.08.321a1.887 1.887 0 01-.7-.13l-1-.36a.839.839 0 00-.35-.071 1 1 0 00-.86.501L2.76 7.992c-.241.426-.14.964.24 1.273l.8.66c.485.404.752 1.013.72 1.644v.861c.032.632-.235 1.24-.72 1.644l-.8.661c-.38.309-.481.847-.24 1.273l1.16 2.004a1 1 0 00.86.501c.12.002.24-.022.35-.07l1-.36c.223-.088.46-.133.7-.131.383 0 .758.112 1.08.32.235.163.483.307.74.431.563.29.956.828 1.06 1.453l.17 1.002a1 1 0 001 .842h2.3a1 1 0 001-.842l.17-1.002a2.004 2.004 0 011.06-1.453c.258-.124.505-.268.74-.43.322-.209.697-.32 1.08-.321.24-.002.477.043.7.13l1 .36c.11.05.23.073.35.071a1 1 0 00.86-.501l1.16-2.004c.228-.44.1-.981-.3-1.273l-.79-.66zM12 17.511A5.506 5.506 0 016.5 12 5.506 5.506 0 0112 6.489c3.038 0 5.5 2.467 5.5 5.511 0 1.462-.58 2.863-1.61 3.897A5.494 5.494 0 0112 17.51zM10 12c0-1.107.896-2.004 2-2.004 1.105 0 2 .897 2 2.004a2.002 2.002 0 01-2 2.004c-1.104 0-2-.897-2-2.004z"}})]))}}},"7b6a":function(e,t,a){var s=a("9c58");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("02604a44",s,!0,{sourceMap:!1,shadowMode:!1})},"7f90":function(e,t,a){var s=a("88d1");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("fb4597aa",s,!0,{sourceMap:!1,shadowMode:!1})},8337:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".presta-wrapper[data-v-1e13efae]{position:relative;color:#1e2248}.view-mode[data-v-1e13efae]{margin:10px 0;padding:10px 0;text-align:center;height:45px;position:sticky;top:0;background:#fff;z-index:1}.main[data-v-1e13efae]{margin:0 auto;max-width:950px;padding-bottom:64px}.main__panel[data-v-1e13efae]{height:36px;display:flex;justify-content:space-between}.main__logo[data-v-1e13efae]{height:36px;max-width:160px;margin-right:32px}.main__backward[data-v-1e13efae]{flex-direction:row-reverse}.main__icon-backward[data-v-1e13efae]{margin-right:4px}.main__body[data-v-1e13efae]{display:flex}.main__aside[data-v-1e13efae]{width:220px;margin-right:24px}.main__content[data-v-1e13efae]{flex:1}",""]),e.exports=t},"87c1":function(e,t,a){"use strict";a("d49b")},"88d1":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".table[data-v-87f78122]{width:100%;border-collapse:collapse;text-align:left}.table__head[data-v-87f78122]{background:#f4f6f8;border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.table__head-cell[data-v-87f78122]{color:#8a96a6;padding-top:12px;padding-bottom:12px;font-weight:500;font-size:12px;line-height:1.16666667}.table__head-cell[data-v-87f78122]:first-of-type{padding-left:24px}.table__cell_center[data-v-87f78122]{text-align:center}",""]),e.exports=t},"8a1e":function(e,t,a){e.exports=a.p+"img/ru/where-is-search-4.png"},"8c10":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.03 2.999a.48.48 0 01.35.151l16.467 16.46a.48.48 0 010 .7l-.53.53a.48.48 0 01-.699 0l-4.906-4.9-3.888 3.89A3.996 3.996 0 017.996 21h-.34c-1.06 0-2.077-.42-2.827-1.17l-.66-.66A4.002 4.002 0 013 16.34V16c0-1.066.424-2.088 1.18-2.84l3.866-3.87L3.15 4.38a.48.48 0 010-.7l.53-.53a.48.48 0 01.35-.151zM7.995 19a1.998 1.998 0 001.38-.59l3.917-3.88-1.21-1.2-1.998 2a.5.5 0 01-.71 0l-.7-.7a.5.5 0 010-.71l2-2-1.21-1.22-3.877 3.88a2 2 0 00-.59 1.42v.34a2 2 0 00.59 1.42l.65.65c.375.378.886.59 1.419.59h.34zM19.818 4.83l-.66-.66A3.996 3.996 0 0016.33 3h-.34a3.996 3.996 0 00-2.837 1.18l-2.628 2.63 1.468 1.42 2.629-2.64A1.998 1.998 0 0115.99 5h.34c.532 0 1.043.212 1.418.59l.65.65a2 2 0 01.59 1.42V8a2 2 0 01-.59 1.42l-2.628 2.64 1.409 1.41 2.628-2.63A4.001 4.001 0 0020.987 8v-.34c0-1.061-.42-2.08-1.17-2.83zm-5.176 3.82l.7.7a.5.5 0 010 .71l-.78.79-1.41-1.41.78-.79a.5.5 0 01.71 0z"}})]))}}},"93ac":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".export__btn-unloaded[data-v-6c9c89f7]{border-bottom-right-radius:0;border-top-right-radius:0}.export__btn-all[data-v-6c9c89f7]{padding-left:0;padding-right:0;border-bottom-left-radius:0;border-top-left-radius:0;min-width:40px}.search-order[data-v-6c9c89f7]{position:relative;background-color:#f9fafb;padding:16px 24px;border-radius:4px;text-align:center}.search-order__title[data-v-6c9c89f7]{color:#636f7f;height:40px;display:flex;justify-content:center;align-items:center}.search-order__loader[data-v-6c9c89f7]{position:relative;margin:16px auto 0}.search-order__progress[data-v-6c9c89f7]{display:flex;justify-content:space-between;align-items:center}.search-order__progress-line[data-v-6c9c89f7]{flex:1 auto}.search-order__pause[data-v-6c9c89f7]{margin-left:16px}.search-order__done-icon[data-v-6c9c89f7]{fill:#20a77f;width:40px;height:40px;display:inline-block}.search-order__done-text[data-v-6c9c89f7]{color:#20a77f}",""]),e.exports=t},"93c6":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".nav-link{text-decoration:none}",""]),e.exports=t},9706:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10A10 10 0 0012 2zm0 18a8 8 0 110-16 8 8 0 010 16zM9.39 7.697a.75.75 0 01.76.023L16 11.36a.76.76 0 010 1.28l-5.85 3.64A.75.75 0 019 15.65v-7.3a.75.75 0 01.39-.653z",fill:"currentColor"}})]))}}},"9c0e":function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1.71a.49.49 0 00-.15-.36l-.2-.2a.5.5 0 00-.711 0L7.395 4.68a.51.51 0 000 .71l3.544 3.53a.5.5 0 00.71 0l.2-.2A.49.49 0 0012 8.36V6a6.003 6.003 0 016.006 6c0 .969-.237 1.923-.69 2.78a.5.5 0 00.09.59l.73.73c.111.11.266.161.42.14a.52.52 0 00.371-.24 7.993 7.993 0 00.002-7.997A8.01 8.01 0 0012 4V1.71zm.706 13.222a.5.5 0 01.355.148l3.544 3.53a.51.51 0 010 .71l-3.544 3.53a.501.501 0 01-.71 0l-.2-.2a.49.49 0 01-.151-.36V20a8.01 8.01 0 01-6.93-4.004A7.993 7.993 0 015.074 8a.52.52 0 01.37-.26.5.5 0 01.42.14l.741.74a.51.51 0 01.09.59 5.825 5.825 0 00-.7 2.79c0 3.314 2.689 6 6.006 6v-2.36a.49.49 0 01.15-.36l.2-.2a.5.5 0 01.356-.148z"}})]))}}},"9c58":function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".aside-info[data-v-24b39777]{background-color:#f9fafb;padding:16px;border-radius:4px;position:relative;min-height:360px}.aside-info_warning[data-v-24b39777]{background-color:#fff9f0}.aside-info_warning .aside-info__status[data-v-24b39777]{color:#ef8e06}.aside-info_warning .aside-info__icon-status[data-v-24b39777]{fill:#ef8e06}.aside-info .aside-info__status_warning[data-v-24b39777]{color:#ef8e06}.aside-info .aside-info__icon-status_warning[data-v-24b39777]{fill:#ef8e06}.aside-info__status[data-v-24b39777]{color:#20a77f;display:flex;margin-bottom:8px}.aside-info__icon-status[data-v-24b39777]{flex:0 0 auto;fill:#22c993}.aside-info__date[data-v-24b39777]{color:#8a96a6}.aside-info__item+.aside-info__item[data-v-24b39777]{margin-top:12px;padding-top:11px;border-top:1px solid #dee2e6}",""]),e.exports=t},"9f31":function(e,t,a){"use strict";a("b4f7")},"9fb5":function(e,t,a){"use strict";a("3abd")},a935:function(e,t,a){"use strict";a("2b5d")},affc:function(e,t,a){"use strict";a("208c")},b039:function(e,t){e.exports={locale:{short:"ru",long:"Русский",ru:{short:"ru",long:"Русский"},en:{short:"en",long:"Английский"},es:{short:"es",long:"Испанский"}},close:"Закрыть",save:"Сохранить",run:"Запустить модуль",warning:"Важно",error:"Ошибка","not-selected":"Не выбрано",hint:"Где искать?",prestashop:"PrestaShop",crm:"CRM",piece:{short:"шт.",long:"штука"},menu:{settings:"Настройки модуля",advanced:"Дополнительно",debug:"Мониторинг",orders:"Работа с заказами",check:"Проверка работы"},support:{title:"Техподдержка Simla.com",mail:"support@simla.com",subject:"PrestaShop module issue",body:""},version:{status:{update:"Доступно обновление",critical:"Доступно важное обновление!"},download:"Скачать",info:"Скачайте архив и установите его в Менеджере модулей"},catalog:{connected:{title:"Каталог товаров подключен",count:{products:"товаров загружено",offers:"торговых предложений загружено"},date:{old:"Более 7 дней",day:"д.",hour:"ч.",min:"м.",passed:"прошло с момента последней загрузки"},generate:"Загрузить сейчас"},outdated:{title:"Ссылка на каталог товаров устарела",update:"Обновить сейчас"},"not-connected":{title:"Каталог товаров не подключен",notice:"Подключение произойдет автоматически. Обычно, на его создание уходит 15 минут, но может занять до 4 часов. Если спустя это время каталог не будет создан, обратитесь в техподдержку.",check:"Проверить еще раз",support:"Написать в техподдержку",info:"Что такое файл каталога?"}},settings:{"refresh-types":"Обновить типы",connection:{title:"Соединение",address:"Адрес CRM","create-key":"Cоздайте API-ключ в разделе",settings:"Настройки",integration:"Интеграция","api-access":"Ключи доступа к API","api-key":"API ключ","enter-url":"https://demo.simla.com","enter-api-key":"Введите API ключ","make-connection":"Установить соединение","address-hint-desc":"Адрес CRM доступен в адресной строке вашего браузера","api-key-hint-desc":"Вставьте данные из поля «Ключ»"},delivery:{title:"Типы доставок",desc:"Настройте соответствие способов доставки PrestaShop и CRM","add-new-type-in":"Добавить новый тип доставки в CRM можно в разделе",types:"Типы доставок","press-refresh":"После добавления нового типа доставки нажмите кнопку","learn-about":"Узнайте","important-things":"на что обратить внимание","when-creating-types":"при создании нового типа доставки",select:"Выберите тип доставки",notice:"Если в дальнейшем подключите новую службу доставки на стороне PrestaShop, не забудьте добавить ей сопоставление в настройках модуля для корректной работы, иначе заказ в CRM будет выгружен без указания доставки.",popup:{title:"Типы доставки",header:"Обратите внимание при создании нового типа доставки в CRM",countries:"В основных настройках выбраны страны, в которые осуществляется доставка данным способом",payments:"Во вкладке «Способы оплаты» отмечены нужные. Если не выбрано ни одного, данный тип доставок при оформлении заказа предлагаться не будет."}},payment:{title:"Типы оплат",desc:"Настройте соответствие способов оплаты PrestaShop и CRM","add-new-type-in":"Добавить новый тип оплаты в CRM можно в разделе",types:"Типы оплат","press-refresh":"После добавления нового типа оплаты нажмите",select:"Выберите тип оплаты",notice:{"after-setup":"После настройки модуля, проверьте доступность способов оплат для имеющихся типов доставки. Для этого перейдите в административную панель сайта",improve:"Улучшения",payment:"Оплата",settings:"Настройки",restrictions:"внизу указан блок «Ограничения перевозчика»"}},statuses:{title:"Статусы заказов",desc:"Настройте соответствие статусов заказа PrestaShop и CRM","add-new-type-in":"Добавить новый статус в CRM можно в разделе",types:"Статусы","press-refresh":"После добавления нового статуса нажмите ",refresh:"Обновить статусы",select:"Выберите статус заказа",warning:"Значения в сопоставлениях не должны повторяться",notice:"Если в процессе работы на стороне PrestaShop будет добавлен новый статус, его необходимо сопоставить здесь, в настройках модуля, иначе синхронизация заказов по новому статусу не будет совершена"}},advanced:{main:{title:"Расширенные настройки модуля",corporate:{label:"Поддержка корпоративных клиентов",desc:"Будет функционировать, если работа с корпоративными клиентами активирована в Simla.com"},"number-send":{label:"Отправка номера заказа в Simla.com",desc:"Позволяет передавать номер заказа из PrestaShop в Simla.com при выгрузке заказа"},"number-receive":{label:"Получение номера заказа из Simla.com",desc:"Позволяет передавать номер заказа из Simla.com в PrestaShop при обратной синхронизации"}},sync:{title:"Двусторонняя синхронизация",desc:"При изменении заказа или клиента, данные будут поступать не только из PrestaShop в Simla.com, но и из Simla.com в PrestaShop",enable:"Синхронизировать заказы из CRM",hint:"Включите, если хотите, чтобы в PrestaShop выгружались изменения заказов или клиентов из Simla.com",delivery:{label:"Тип доставки по умолчанию",hint:"Присваивается заказу пришедшему из CRM, если в нем указана доставка, которой не задано соответствие в настройках модуля",placeholder:"Выберите тип доставки"},payment:{label:"Тип оплаты по умолчанию",hint:"Присваивается заказу, пришедшему из CRM, если в нем указана оплата, которой не задано соответствие в настройках модуля",placeholder:"Выберите тип оплаты"}},stocks:{title:"Работа с остатками",desc:"В модуле предусмотрено списание товара в PrestaShop при выгрузке заказа из Simla.com. В случае, если какого-то из товаров в заказе будет не достаточно на складе PrestaShop, то заказ будет переведен в выбранный ниже статус в зависимости от наличия полной оплаты",enable:"Получать остатки из Simla.com",hint:"Simla.com будет в автоматическом режиме передавать PrestaShop актуальную информацию по остаткам",paid:{label:"Если заказ оплачен",hint:"Заказ будет переведен в этот статус в случае, если был оплачен и какого-то из товаров в заказе не достаточно на складе PrestaShop",placeholder:"Выберите статус для оплаченного заказа"},"not-paid":{label:"Если заказ не оплачен",hint:"Заказ будет переведен в этот статус в случае, если не был оплачен и какого-то из товаров в заказе не достаточно на складе PrestaShop",placeholder:"Выберите статус для неоплаченного заказа"},notice:"Статус обновляется как в PrestaShop, так и в Simla.com. Если в PrestaShop разрешен заказ товаров с нулевым стоком, то статус заказа не будет изменен, а товар все равно будет списан в PrestaShop."},carts:{title:"Брошенные корзины",desc:"Брошенная корзина — это корзина в интернет-магазине, в которую пользователь добавил товары, но не купил их",enable:"Выгружать брошенные корзины",hint:"Включите, если хотите, чтобы в Simla.com выгружались брошенные корзины покупателей",time:{label:"Выгружать брошенные корзины",hint:"Время, по прошествию которого корзина считается брошенной и будет выгружена в Simla.com",placeholder:"Выберите период",value:{900:"После 15 минут",1800:"После 30 минут",2700:"После 45 минут",3600:"После 1 часа"}}},collector:{title:"Сервис сбора данных",desc:{body:"Позволит отследить действия посетителей на сайте, чтобы лучше их узнать и обеспечить тесное взаимодействие системы с пользователями, которые находятся на вашем сайте",left:{title:"Подробное отслеживание",body:"Фиксируем и показываем все действия посетителя на сайте: начал сессию, добавил товар корзину и так далее"},right:{title:"Данные в реальном времени",body:"Отображаем свойства посетителей в карточке клиента: какие UTM-метки присвоились, какие именно товары только что смотрели и прочее"}},activate:{label:"Активировать",hint:"Сервис должен быть так же включен на стороне Simla.com"},notice:{copy:"Cкопируйте идентификатор в разделе",settings:"Настройки",integration:"Интеграция",collector:"Сервис сбора данных"},label:"Идентификатор",placeholder:"Вставьте ключ сайта",hint:"Скопируйте ключ от нужного магазина"},consultant:{title:"Онлайн-консультант",desc:"Чат, размещаемый на вашем сайте и предназначенный для вовлечения в продажи посетителей. Для работы, приобретите модуль онлайн-консультанта и вставьте здесь код",notice:{access:"Доступ к личному кабинету модуля находится в разделе",settings:"Настройки",integration:"Интеграция",marketplace:"Маркетплейс",consultant:"Онлайн-консультант"},label:"Код онлайн-консультанта",placeholder:"Укажите код Онлайн-консультанта",hint:"Скопируйте код в настройках модуля Онлайн-консультанта"},system:{title:"Системные настройки","web-jobs":{label:"Менеджер задач",desc:"Позволяет автоматически запускать менеджер задач в `header`. Изменяйте эту настройку только если знаете что делаете"},debug:{label:"Расширенное логирование",desc:"Позволяет получить более детальную информацию о работе модуля в файлах логов"}}},debug:{title:"Мониторинг",jobs:{title:"Менеджер задач",desc:"Задачи - фоновые процессы, обеспечивающие работу двусторонней синхронизации заказов, брошенных корзин и остатков, генерацию каталога и т.д.",refresh:"Обновить задачи","table-header":{job:"Задача","last-run":"Последний запуск",status:"Статус"},empty:"Ни одна задача еще не была запущена",run:"Запустить вручную",running:"Задача выполняется",succeeded:"Задача была выполнена",names:{RetailcrmAbandonedCartsEvent:"Синхронизация брошенных корзин",RetailcrmIcmlEvent:"Генерация файла каталога",RetailcrmIcmlUpdateUrlEvent:"Обновленние ссылки каталога",RetailcrmSyncEvent:"Обратная синхронизация",RetailcrmInventoriesEvent:"Синхронизация остатков",RetailcrmExportEvent:"Выгрузка архива заказов и клиентов",RetailcrmUpdateSinceIdEvent:"Сброс метки истории",RetailcrmClearLogsEvent:"Очистка старых файлов журналов"},notice:"Если возникли ошибки в работе менеджера задач, его можно сбросить",reset:"Сбросить"},logs:{title:"Журналы",desc:"Файлы журналов с отладочной информацией о работе модуля",refresh:"Обновить журналы","table-header":{name:"Файл",date:"Изменен",size:"Размер"},empty:"Файлы не найдены",download:"Скачать",notice:"Также можно скачать архив со всеми файлами","download-all":"Скачать все"}},orders:{title:"Работа с заказами",upload:{title:"Выгрузка заказов",desc:"В этом разделе вы сможете загрузить заказы из PrestaShop в Simla.com",advices:["Выгружайте несколько заказов единовременно, указав их через запятую без пробелов (1,2,3,4,5) или укажите диапазон (1-5)","Единовременно можно выгрузить до 10 заказов"],placeholder:"Один или несколько через запятую или диапазон",hint:"Номер ID соответствует номеру заказа в PrestaShop",btn:"Выгрузить заказы"},export:{title:"Невыгруженные заказы",desc:"Заказы, которые были созданы в CMS до подключения модуля или которые не получилось выгрузить из-за ошибки в процессе работы",advices:["После начала выгрузки не закрывайте вкладку и не уходите с этой страницы","Если процесс выгрузки прервется (например, вы покинете страницу или возникнут проблемы с соединением) его можно будет возобновить с места остановки"],searching:"Поиск невыгруженных заказов",count:{total:"Всего заказов",unloaded:"Невыгруженных заказов",customers:"Всего клиентов"},run:"Запустить выгрузку","run-desc":"Выгрузить только невыгруженные заказы","run-all":"Выгрузить всё","run-all-desc":"Выгрузить все заказы и всех клиентов, обновить метку истории",success:"Все заказы выгружены"},table:{search:{btn:"Найти",placeholder:"ID заказа в CMS"},filter:{all:"Все",succeeded:"Выгруженные",failed:"С ошибкой"},head:{date:"Дата и время",id_cms:"ID в CMS",id_crm:"ID в CRM",status:"Статус"},"not-found":"Заказы не найдены",uploaded:"Выгружен",failed:"Ошибка",upload:"Выгрузить повторно",uploading:"Выгружается"}},check:{title:"Как убедиться что модуль работает?",text:{duplicate:"Для проверки работы модуля продублируйте последний заказ в Prestashop","go-to":"Перейдите в",simla:"Simla.com",sales:"Продажи",orders:"Заказы","and-check-order":"и проверьте, появился ли заказ в списке","check-options":"Если нужно, чтобы при изменении заказа или клиента, данные поступали не только из PrestaShop в Simla.com, но и из Simla.com в PrestaShop убедитесь что в настройках модуля в разделе «Дополнительно» включена опция «Двусторонняя синхронизация»","remove-tests":"После того как вы убедились что синхронизация работает правильно тестовые заказы можно удалить в Simla.com и PrestaShop","if-has-any-questions":"Если возникли проблемы в работе модуля или недостаточно информации по работе с Simla.com","ask-support":"обратитесь в техподдержку","or-read":"или ознакомьтесь с",materials:"обучающими материалами"}},errors:{unknown:"Неизвестная ошибка",url:"Неверный адрес CRM",key:"Неверный API ключ",connect:"Не удалось проверить API ключ",access:"Требуется API ключ с доступом к одному магазину",scopes:"Разрешений API ключа недостаточно для работы модуля",version:"Выбранная версия API недоступна",carts:"Статус заказа для брошенных корзин не должен быть использован в других настройках",status:"Статусы заказа не должны повторяться в сопоставлении",delivery:"Типы доставки не должны повторяться в сопоставлении",payment:"Типы оплаты не должны повторяться в сопоставлении",collector:"Неверный или пустой идентификатор",currency:"Валюта сайта отличается от валюты магазина в CRM. Для корректной работы интеграции, валюты в CRM и CMS должны совпадать"},warnings:{delivery:"Выберите значения для всех типов доставки",status:"Выберите значения для всех статусов заказа",payment:"Выберите значения для всех типов оплаты",default:"Выберите значения для всех параметров по умолчанию"}}},b4f7:function(e,t,a){var s=a("3c28");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("4864217a",s,!0,{sourceMap:!1,shadowMode:!1})},b592:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".table__row[data-v-31004b55]{border-bottom:1px solid #dee2e6;transition:background-color .25s ease}.table__row[data-v-31004b55]:hover{background-color:#f9fafb}.table__row:hover .table__button[data-v-31004b55]{opacity:1;visibility:visible}.table__cell[data-v-31004b55]{padding:20px 8px}.table__cell[data-v-31004b55]:first-of-type{padding-left:24px;padding-right:8px}.table__status[data-v-31004b55]{display:flex;align-items:center}.table__status-text[data-v-31004b55]{border-bottom:1px dotted;text-decoration:none}.table__icon-status[data-v-31004b55]{fill:#c7cdd4;margin-right:4px;width:20px;height:20px}.table__icon-status_success[data-v-31004b55]{fill:#22c993}.table__icon-status_error[data-v-31004b55]{fill:#ff5353}.table__button[data-v-31004b55]{transition:opacity .25s ease;opacity:0;visibility:hidden}.table__button_visible[data-v-31004b55]{opacity:1;visibility:visible}.table__button-warning[data-v-31004b55]{fill:#fea530}",""]),e.exports=t},b84f:function(e,t,a){var s=a("8337");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("3d5710fa",s,!0,{sourceMap:!1,shadowMode:!1})},b9a0:function(e,t,a){var s=a("1e81");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("5fab6dbc",s,!0,{sourceMap:!1,shadowMode:!1})},bb2b:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm0 16H5V5h14v14zm-8.65-3.498a.48.48 0 01-.35-.152l-2.38-2.37a.5.5 0 010-.71l.53-.53a.48.48 0 01.7 0l1.5 1.49 4.74-4.74a.5.5 0 01.7 0l.53.53a.5.5 0 010 .71l-5.62 5.62a.48.48 0 01-.35.152z"}})]))}}},bba7:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".select-box__col[data-v-0aa3baaf]{min-width:auto}.table[data-v-0aa3baaf]{width:100%;border-collapse:collapse;text-align:left}.table__head[data-v-0aa3baaf]{background:#f4f6f8;border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6}.table__head-cell[data-v-0aa3baaf]{color:#8a96a6;padding-top:12px;padding-bottom:12px;font-weight:500;font-size:12px;line-height:1.16666667}.table__head-cell[data-v-0aa3baaf]:first-of-type{padding-left:24px}.table__cell_center[data-v-0aa3baaf]{text-align:center}",""]),e.exports=t},c135:function(e,t,a){e.exports=a.p+"img/es/where-is-search-1.png"},c3ee:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".supports[data-v-8750f3f4]{color:#8a96a6}",""]),e.exports=t},c5ec:function(e,t,a){e.exports=a.p+"img/ru/how-to-update-1.png"},c665:function(e,t,a){var s={"./en.yml":"26f4","./es.yml":"f7c2","./ru.yml":"b039"};function n(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=r,e.exports=n,n.id="c665"},c84e:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2A10 10 0 112 12zm8.73 3.35l5.62-5.62a.5.5 0 000-.69l-.53-.53a.5.5 0 00-.7 0l-4.74 4.74-1.5-1.49a.48.48 0 00-.7 0l-.53.53a.5.5 0 000 .71l2.38 2.35a.48.48 0 00.7 0z"}})]))}}},c8f6:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.016 11.986a3.999 3.999 0 01-4.003 3.994H6.005a3.007 3.007 0 00-2.152.849L1.85 18.826a.49.49 0 01-.35.15.5.5 0 01-.501-.5V5.995A3.999 3.999 0 015.004 2h10.009a3.999 3.999 0 014.003 3.994v5.992zM3.002 5.994v8.988a5.012 5.012 0 013.003-1h9.008a2 2 0 002.002-1.996V5.994a2 2 0 00-2.002-1.997H5.003a2 2 0 00-2.001 1.997zm10.51 3.995h1a.5.5 0 00.5-.5v-.998a.5.5 0 00-.5-.5h-1a.5.5 0 00-.501.5v.998a.5.5 0 00.5.5zm-3.003 0H9.508a.5.5 0 01-.5-.5v-.998a.5.5 0 01.5-.5h1a.5.5 0 01.501.5v.998a.5.5 0 01-.5.5zm-3.504-.5v-.998a.5.5 0 00-.5-.5h-1a.5.5 0 00-.501.5v.998a.5.5 0 00.5.5h1.001a.5.5 0 00.5-.5zm10.01 8.488a3.999 3.999 0 004.003-3.994V5.994A2 2 0 0123 7.991v14.51a.5.5 0 01-.5.499.491.491 0 01-.35-.15l-2.003-1.997a3.006 3.006 0 00-2.131-.879H7.005a2 2 0 01-2.002-1.997h12.01z"}})]))}}},ce8c:function(e,t,a){"use strict";a("4d94")},d153:function(e,t,a){var s=a("bba7");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("9c0d0a22",s,!0,{sourceMap:!1,shadowMode:!1})},d49b:function(e,t,a){var s=a("1227");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("486b9ced",s,!0,{sourceMap:!1,shadowMode:!1})},d4f7:function(e,t,a){"use strict";a("5ff0")},d5f5:function(e,t,a){e.exports=a.p+"img/ru/where-is-search-1.png"},db54:function(e,t,a){var s=a("3b25");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var n=a("499e").default;n("7661d62b",s,!0,{sourceMap:!1,shadowMode:!1})},dc11:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 3a.48.48 0 00-.35.152l-5.79 5.79a.5.5 0 000 .71l.2.2a.49.49 0 00.36.15H9v5.5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5.5h2.58a.49.49 0 00.36-.15l.2-.2a.5.5 0 000-.71l-5.79-5.79A.48.48 0 0012 3zm7 16.5v-1a.5.5 0 00-.5-.5h-13a.5.5 0 00-.5.5v1a.5.5 0 00.5.5h13a.5.5 0 00.5-.5z",fill:"currentColor"}})]))}}},e348:function(e,t,a){"use strict";a("6f3a")},e8de:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".additional[data-v-66d8c60c]{padding:24px 24px 24px 52px;margin-bottom:-12px;background:#f9fafb}.additional__row[data-v-66d8c60c]{margin-bottom:15px;padding-bottom:20px;border-bottom:1px solid #dee2e6}.additional__title[data-v-66d8c60c]{font-weight:400;font-size:16px;line-height:1.5}.additional__text[data-v-66d8c60c]{font-weight:400;font-size:14px;line-height:1.42857143;color:#8a96a6;margin-top:8px}",""]),e.exports=t},eb0f:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,".info[data-v-1d2c6280]{display:flex}.info__col[data-v-1d2c6280]{width:264px}.info__col+.info__col[data-v-1d2c6280]{margin-left:32px}.info__icon[data-v-1d2c6280]{width:28px;height:28px;color:#6528d7}.info__icon_green[data-v-1d2c6280]{color:#22c993}.info__title[data-v-1d2c6280]{font-weight:500;font-size:18px;line-height:1.55555556}.info__text[data-v-1d2c6280]{font-weight:400;font-size:14px;line-height:1.42857143;color:#8a96a6;margin-top:8px}",""]),e.exports=t},eb96:function(e,t,a){e.exports=a.p+"img/ru/checking-work-2.png"},f042:function(e,t,a){"use strict";a("6353")},f4e3:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 3h14a2 2 0 012 2v11a2 2 0 01-2 2H3a2 2 0 01-2-2V5a2 2 0 012-2zm14 5V5H3v3h14zM3 16v-5h14v5H3zm18 2V7a2 2 0 012 2v9a4 4 0 01-4 4H7a2 2 0 01-2-2h14a2 2 0 002-2z"}})]))}}},f6ed:function(e,t,a){"use strict";a("d153")},f7c2:function(e,t){e.exports={locale:{short:"ru",long:"Ruso",ru:{short:"ru",long:"Ruso"},en:{short:"en",long:"Inglés"},es:{short:"es",long:"Español"}},close:"Cerrar",save:"Guardar",run:"Ejecutar módulo",warning:"Importante",error:"Error","not-selected":"No seleccionado",hint:"¿Dónde buscar?",prestashop:"PrestaShop",crm:"CRM",piece:{short:"cs.",long:"cosa"},menu:{settings:"Configuración del módulo",advanced:"Avanzado",debug:"Monitoreo",orders:"Trabajar con pedidos",check:"Comprobación de trabajo"},support:{title:"Soporte Técnico Simla.com",mail:"support@simla.com",subject:"PrestaShop module issue",body:""},version:{status:{update:"Actualización disponible",critical:"Actualización importante disponible!"},download:"Descargar",info:"Descargue el archivo y instalar en el Gestor de módulos"},catalog:{connected:{title:"Catálogo de productos conectado",count:{products:"mercancías cargadas",offers:"ofertas comerciales descargadas"},date:{old:"Más de 7 días",day:"d.",hour:"h.",min:"m.",passed:"pasado desde la Última carga"},generate:"Descargar ahora"},outdated:{title:"El enlace del catálogo de productos está desactualizado",update:"Actualizar ahora"},"not-connected":{title:"Catálogo de productos no conectado",notice:"La Conexión se realizará automáticamente. Por lo general, toma 15 minutos crearlo, pero puede tomar hasta 4 horas. Si después de este tiempo no se crea el catálogo, póngase en contacto con el soporte técnico.",check:"Comprobar de nuevo",support:"Escribir al soporte técnico",info:"¿Qué es un archivo de directorio?"}},settings:{"refresh-types":"Actualizar tipos",connection:{title:"Conexión",address:"Dirección CRM","create-key":"Crear una clave API en la sección",settings:"Ajustes",integration:"Integración","api-access":"Claves de acceso a la API","api-key":"Clave API","enter-url":"https://demo.simla.com","enter-api-key":"Introduzca la clave API","make-connection":"Establecer conexión","address-hint-desc":"La Dirección de CRM está disponible en la barra de direcciones de su navegador","api-key-hint-desc":"Insertar datos del campo 'Clave'"},delivery:{title:"Tipos de entrega",desc:"Configure el cumplimiento de los métodos de entrega de PrestaShop y CRM","add-new-type-in":"Puede Agregar un nuevo tipo de entrega a CRM en",types:"Tipos de entrega","press-refresh":"Después de agregar un nuevo tipo de entrega, haga clic en","learn-about":"Aprender","important-things":"qué prestar atención","when-creating-types":" al crear un nuevo tipo de entrega",select:"Seleccione el tipo de entrega",notice:"Si conecta un nuevo Servicio de entrega en el lado de PrestaShop en el futuro, no olvide agregarle una asignación en la configuración del módulo para que funcione correctamente, de lo contrario, el pedido en CRM se descargará sin especificar la entrega.",popup:{title:"Tipos de entrega",header:"Tenga en cuenta al crear un nuevo tipo de entrega en CRM",countries:"En la configuración principal, se seleccionan los países a los que se entrega este método",payments:'En la pestaña" métodos de pago " está marcado. Si no se selecciona ninguno, este tipo de entrega no se ofrecerá al realizar el pedido.'}},payment:{title:"Tipos de pago",desc:"Configure la conformidad de los métodos de pago de PrestaShop y CRM","add-new-type-in":"Puede Agregar un nuevo tipo de pago a CRM en",types:"Tipos de pago","press-refresh":"Después de agregar un nuevo tipo de pago, haga clic en",select:"Seleccione el tipo de pago",notice:{"after-setup":"Después de configurar el módulo, compruebe la disponibilidad de métodos de pago para los tipos de envío disponibles. Para hacer esto, vaya al panel de administración del sitio",improve:"Mejoras",payment:"Pago",settings:"Ajustes",restrictions:'en la parte inferior está el bloque "restricciones del transportista"'}},statuses:{title:"Estados de pedidos",desc:"Configure los Estados de pedido de PrestaShop y CRM coincidentes","add-new-type-in":"Puede Agregar un nuevo estado al CRM en",types:"Estados","press-refresh":"Después de agregar un nuevo estado, haga clic en",refresh:"Actualizar Estados",select:"Seleccione el estado del pedido",warning:"Los Valores en las asignaciones no deben repetirse",notice:"Si se agrega un nuevo estado en el lado de PrestaShop, debe asignarlo aquí en la configuración del módulo; de lo contrario, no se realizará la sincronización de pedidos con el nuevo estado"}},advanced:{main:{title:"Configuración avanzada del módulo",corporate:{label:"Soporte para clientes empresariales",desc:"Funcionará si el trabajo con & nbsp;clientes corporativos está activado en Simla.com"},"number-send":{label:"Enviar el número de pedido a Simla.com",desc:"Permite transferir el número de pedido de PrestaShop a Simla.com cuando & nbsp;descarga & nbsp;orden"},"number-receive":{label:"Obtener el número de pedido de Simla.com",desc:"Permite transferir el número de pedido desde Simla.com en PrestaShop cuando & nbsp;inversa & nbsp;sincronización"}},sync:{title:"Sincronización Bidireccional",desc:"Si cambia un pedido o un cliente, los datos no vendrán sólo de PrestaShop a & nbsp;Simla.com. pero también de Simla.com en & nbsp;PrestaShop",enable:"Sincronizar pedidos de CRM",hint:"Habilite si desea que PrestaShop descargue los cambios de pedidos o clientes de Simla.com",delivery:{label:"Tipo de entrega predeterminado",hint:"Se Asigna a un pedido que proviene de un CRM si especifica una entrega que no está configurada en la configuración del módulo",placeholder:"Seleccione el tipo de entrega"},payment:{label:"Tipo de pago predeterminado",hint:"Se Asigna a un pedido que proviene de CRM si se especifica un pago que no está configurado en la configuración del módulo",placeholder:"Seleccione el tipo de pago"}},stocks:{title:"Trabajar con residuos",desc:"El módulo proporciona la cancelación de la mercancía en & nbsp;PrestaShop al descargar el pedido desde Simla.com. en caso de que alguno de los productos en el pedido no sea suficiente en el stock de PrestaShop, el pedido se transferirá al estado seleccionado a continuación, dependiendo de la disponibilidad del pago completo",enable:"Obtener saldos de Simla.com",hint:"Simla.com transferirá automáticamente a PrestaShop información actualizada sobre los saldos",paid:{label:"Si la orden es pagada",hint:"El Pedido será transferido a este estado en caso de que se haya pagado y algunos de los productos en el pedido no sean suficientes en el stock de PrestaShop",placeholder:"Seleccione el estado para el pedido pagado"},"not-paid":{label:"Si el pedido no se paga",hint:"El Pedido se transferirá a este estado en caso de que no se haya pagado y algunos de los productos en el pedido no estén en stock PrestaShop",placeholder:"Seleccione el estado de la orden no pagada"},notice:"El Estado se actualiza tanto en PrestaShop como en Simla.com. si PrestaShop permite el pedido de productos de drenaje cero, el estado del pedido no se cambiará y el artículo se cargará a PrestaShop."},carts:{title:"Carritos Abandonadas",desc:"Un carrito de compras Abandonado es un carrito de compras en una tienda en línea en la que el usuario agregó productos, pero no los compró",enable:"Importar los carritos abandonados",hint:"Habilitar Si desea que en Simla.com se descargaron las cestas abandonadas de los compradores",time:{label:"Descargar cestas abandonadas",hint:"El Tiempo transcurrido desde el cual se considera que la canasta se ha abandonado y se descargará en Simla.com",placeholder:"Seleccionar período",value:{900:"Después de 15 minutos",1800:"Después de 30 minutos",2700:"Después de 45 minutos",3600:"Después de 1 hora"}}},collector:{title:"Servicio de recopilación de datos",desc:{body:"Permitirá realizar un seguimiento de las actividades de los visitantes en el sitio para conocerlos mejor y garantizar que el sistema interactúe estrechamente con los usuarios que se encuentran en su sitio",left:{title:"Seguimiento Detallado",body:"Fijamos y mostramos todas las acciones del visitante en el sitio: comenzó la sesión, agregó el carrito de compras y así sucesivamente"},right:{title:"Datos en tiempo real",body:"Mostramos las propiedades de los visitantes en la tarjeta del cliente: qué etiquetas UTM se asignaron, qué productos se acaban de ver, etc."}},activate:{label:"Activar",hint:"El Servicio debe estar habilitado de la misma manera en el lado Simla.com"},notice:{copy:"Copie el identificador en la sección",settings:"Ajustes",integration:"Integración",collector:" Servicio de recopilación de datos"},label:"Id",placeholder:"Inserte la clave del sitio",hint:"Copia la clave de la tienda deseada"},consultant:{title:"Consultor en Línea",desc:"Chat alojado en & nbsp;su sitio web y & nbsp;diseñado para participar en ventas de visitantes. Para el trabajo, compre un módulo de consultor en línea e inserte el código aquí",notice:{access:"El acceso al área personal del módulo se encuentra en la sección",settings:"Ajustes",integration:"Integración",marketplace:"Marketplace",consultant:"Consultor en Línea"},label:"Código de consultor en línea",placeholder:"Especifique el código del consultor en Línea",hint:"Copie el código en la configuración del módulo de consultor en Línea"},system:{title:"Preferencias del Sistema","web-jobs":{label:"Administrador de tareas",desc:"Le Permite ejecutar automáticamente el administrador de tareas en`header'. Cambie esta configuración solo si sabe lo que está haciendo."},debug:{label:"Registro Avanzado",desc:"Le Permite obtener información más detallada sobre el funcionamiento del módulo en & nbsp;archivos & nbsp;registros"}}},debug:{title:"Monitoreo",jobs:{title:"Administrador de tareas",desc:"Tareas-procesos en segundo plano que permiten la sincronización bidireccional de pedidos, cestas y residuos abandonados, generación de catálogo, etc.",refresh:"Actualizar tareas","table-header":{job:"Tarea","last-run":" Última ejecución",status:"Estado"},empty:"No se ha iniciado ninguna tarea todavía",run:"Ejecutar manualmente",running:"Tarea en curso",succeeded:"La Tarea ha sido completada",names:{RetailcrmAbandonedCartsEvent:"Sincronizar cestas abandonadas",RetailcrmIcmlEvent:"Generar archivo de directorio",RetailcrmIcmlUpdateUrlEvent:"enlaces de directorio actualizados",RetailcrmSyncEvent:"Sincronización Inversa",RetailcrmInventoriesEvent:"Sincronizar saldos",RetailcrmExportEvent:"Descarga del archivo de pedidos y clientes",RetailcrmUpdateSinceIdEvent:"Restablecer la etiqueta de historial",RetailcrmClearLogsEvent:"Borrar archivos de registro antiguos"},notice:"Si se producen errores en el administrador de tareas, puede restablecerlo",reset:"Restablecer"},logs:{title:"Revistas",desc:"Archivos de registro con información de depuración del módulo",refresh:"Actualizar registros","table-header":{name:"Archivo",date:"Cambiado",size:"Tamaño"},empty:"Archivos no encontrados",download:"Descargar",notice:" También se puede descargar un archivo con todos los archivos","download-all":"Descargar Todo"}},orders:{title:"Trabajar con pedidos",upload:{title:"Descarga de pedidos",desc:"En esta sección podrás descargar los pedidos de PrestaShop en Simla.com",advices:["Descargue varios pedidos a la vez especificándolos separados por comas < / B> sin espacios (1,2,3,4,5) o especifique < B > rango< / B >(1-5)","Puede descargar hasta 10 pedidos< / b>"],placeholder:" Uno o más separados por comas o rango",sugerencia:"El número de identificación coincide con el número de pedido en PrestaShop",btn:"Descargar pedidos"},export:{title:"Pedidos no descargados",desc:"Pedidos que se crearon en el CMS antes de conectar el módulo o que no se pudieron descargar debido a un error en el proceso",advices:["Una vez que comience la descarga, no cierre la pestaña ni salga de esta página","Si el proceso de descarga se interrumpe (por ejemplo, si abandona la página o tiene problemas con la conexión), se puede reanudar desde el punto de parada"],searching:"Buscar pedidos pendientes",count:{total:"Pedidos Totales",unloaded:"Pedidos no descargados",customers:"Total de clientes"},run:"Ejecutar descarga","run-desc":"Cargar solo pedidos no descargados","run-all":"Descargar todo","run-all-desc":"Cargar todos pedidos y todos clientes, actualizar historial etiqueta",success:" Todos los pedidos descargados"},table:{search:{btn:"Buscar",placeholder:" Id de pedido en CMS"},filter:{all:"Todos",succeeded:"Descargado",failed:"Con error"},head:{date:"Fecha y hora",id_cms:"ID en CMS",id_crm:" Id en CRM",status:"Estado"},"not-found":"Pedidos no encontrados",uploaded:"Descargado",failed:"Error",upload:"Volver a Cargar",uploading:"Descargado"}},check:{title:"¿cómo asegurarse de que el módulo funciona?",text:{duplicate:"Para comprobar el funcionamiento del módulo, duplique el último pedido en Prestashop","go-to":"Ir a",simla:"Simla.com",sales:"Ventas",orders:"Pedidos","and-check-order":" y compruebe si el pedido aparece en la lista","check-options":'Si necesita que cuando cambie un pedido o un cliente, los datos no solo provienen de PrestaShop en Simla.com, pero también de Simla.com en PrestaShop, asegúrese de que la opción "sincronización Bidireccional" esté habilitada en la configuración del módulo en "Avanzado"',"remove-tests":"Una vez que haya comprobado que la sincronización funciona correctamente, las órdenes de prueba se pueden eliminar en Simla.com y PrestaShop","if-has-any-questions":" Si hay problemas en el funcionamiento del módulo o no hay suficiente información sobre cómo trabajar con Simla.com","ask-support":"póngase en contacto con el soporte técnico","or-read":"o echa un vistazo a",materials:"material didáctico"}},errors:{unknown:"Error Desconocido",url:"Dirección del CRM incorrecta",key:"Clave API del CRM no válida",connect:"No se pudo verificar la clave API",access:"Se requiere clave API con acceso a una tienda",scopes:"Los permisos de la clave API no son suficientes para el funcionamiento del módulo",version:"La versión API Seleccionada no está disponible",carts:" El estado del pedido de las cestas abandonadas no debe usarse en otras configuraciones",status:"Los Estados de pedido no deben repetirse en la asignación",delivery:"Los Tipos de entrega no deben repetirse en la comparación",payment:"Los tipos de pago no deben repetirse en la comparación",collector:"Id no Válido o vacío",currency:"La moneda del sitio web es distinto a la tienda del CRM. Para el funcionamiento correcto de la integración, las monedas del CMS y CRM deben coincid"},warnings:{delivery:"Seleccione los valores para todos los tipos de entrega",status:"Seleccione los valores para todos los Estados del pedido",payment:"Seleccione valores para todos los tipos de pago",default:"Seleccione los valores para todos los valores predeterminados"}}},fa43:function(e,t,a){var s=a("ded3").default,n=a("4082").default,r=["class","staticClass","style","staticStyle","attrs"];a("99af"),e.exports={functional:!0,render:function(e,t){var a=t._c,o=(t._v,t.data),i=t.children,c=void 0===i?[]:i,l=o.class,d=o.staticClass,u=o.style,p=o.staticStyle,f=o.attrs,m=void 0===f?{}:f,h=n(o,r);return a("svg",s({class:[l,d],style:[u,p],attrs:Object.assign({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m)},h),c.concat([a("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2A10 10 0 112 12zm2 0a8 8 0 1016 0 8 8 0 00-16 0zm6.5-4h-1a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h1a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm3 0h1a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-1a.5.5 0 01-.5-.5v-7a.5.5 0 01.5-.5z",fill:"currentColor"}})]))}}}}); \ No newline at end of file