@central-design-system/components 2.25.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/CdsAccordion/index.js +2 -2
  2. package/dist/CdsAccordion/styles.css +1 -1
  3. package/dist/CdsBreadcrumbs/index.js +1 -1
  4. package/dist/CdsBreadcrumbs/styles.css +1 -1
  5. package/dist/CdsButton/index.js +1 -1
  6. package/dist/CdsButton/styles.css +1 -1
  7. package/dist/CdsCheckbox/index.js +2 -2
  8. package/dist/CdsCheckbox/styles.css +1 -1
  9. package/dist/CdsCombobox/index.js +2 -2
  10. package/dist/CdsCombobox/styles.css +1 -1
  11. package/dist/CdsContainer/index.js +2 -2
  12. package/dist/CdsContainer/styles.css +1 -1
  13. package/dist/CdsContentSwitcher/index.js +2 -2
  14. package/dist/CdsContentSwitcher/styles.css +1 -1
  15. package/dist/CdsDataTable/index.js +2 -2
  16. package/dist/CdsDataTable/styles.css +1 -1
  17. package/dist/CdsDatePicker/index.js +4 -4
  18. package/dist/CdsDatePicker/styles.css +1 -1
  19. package/dist/CdsDrawer/index.js +2 -2
  20. package/dist/CdsDrawer/styles.css +2 -2
  21. package/dist/CdsDropdown/index.js +2 -2
  22. package/dist/CdsDropdown/styles.css +1 -1
  23. package/dist/CdsEmptyState/index.js +1 -1
  24. package/dist/CdsEmptyState/styles.css +1 -1
  25. package/dist/CdsFooter/index.js +2 -2
  26. package/dist/CdsFooter/styles.css +1 -1
  27. package/dist/CdsForm/index.js +2 -2
  28. package/dist/CdsForm/styles.css +1 -1
  29. package/dist/CdsGrid/index.js +1 -1
  30. package/dist/CdsGrid/styles.css +1 -1
  31. package/dist/CdsHeader/index.js +1 -1
  32. package/dist/CdsHeader/styles.css +1 -1
  33. package/dist/CdsIcon/index.js +2 -2
  34. package/dist/CdsIcon/styles.css +1 -1
  35. package/dist/CdsImage/index.js +1 -1
  36. package/dist/CdsImage/styles.css +1 -1
  37. package/dist/CdsInput/index.js +2 -2
  38. package/dist/CdsInput/styles.css +1 -1
  39. package/dist/CdsLink/index.js +1 -1
  40. package/dist/CdsLink/styles.css +1 -1
  41. package/dist/CdsList/index.js +1 -1
  42. package/dist/CdsList/styles.css +1 -1
  43. package/dist/CdsLoading/index.js +1 -1
  44. package/dist/CdsLoading/styles.css +1 -1
  45. package/dist/CdsModal/index.js +2 -2
  46. package/dist/CdsModal/styles.css +1 -1
  47. package/dist/CdsMultiselect/index.js +2 -2
  48. package/dist/CdsMultiselect/styles.css +1 -1
  49. package/dist/CdsNotification/index.js +2 -2
  50. package/dist/CdsNotification/styles.css +1 -1
  51. package/dist/CdsOverflowMenu/index.js +2 -2
  52. package/dist/CdsOverflowMenu/styles.css +1 -1
  53. package/dist/CdsPagination/index.js +1 -1
  54. package/dist/CdsPagination/styles.css +1 -1
  55. package/dist/CdsRadioButton/index.js +2 -2
  56. package/dist/CdsRadioButton/styles.css +1 -1
  57. package/dist/CdsSearch/index.js +2 -2
  58. package/dist/CdsSearch/styles.css +1 -1
  59. package/dist/CdsSelect/index.js +2 -2
  60. package/dist/CdsSelect/styles.css +1 -1
  61. package/dist/CdsSidebar/index.js +2 -2
  62. package/dist/CdsSidebar/styles.css +1 -1
  63. package/dist/CdsSkeleton/index.js +1 -1
  64. package/dist/CdsSkeleton/styles.css +1 -1
  65. package/dist/CdsStages/index.js +1 -1
  66. package/dist/CdsStages/styles.css +1 -1
  67. package/dist/CdsStatus/index.js +2 -2
  68. package/dist/CdsStatus/styles.css +1 -1
  69. package/dist/CdsSteps/index.js +2 -2
  70. package/dist/CdsSteps/styles.css +1 -1
  71. package/dist/CdsTable/index.js +3 -3
  72. package/dist/CdsTable/styles.css +1 -1
  73. package/dist/CdsTabs/index.js +1 -1
  74. package/dist/CdsTabs/styles.css +1 -1
  75. package/dist/CdsTag/index.js +2 -2
  76. package/dist/CdsTag/styles.css +1 -1
  77. package/dist/CdsTextArea/index.js +2 -2
  78. package/dist/CdsTextArea/styles.css +1 -1
  79. package/dist/CdsTextInput/index.js +2 -2
  80. package/dist/CdsTextInput/styles.css +1 -1
  81. package/dist/CdsToggle/index.js +1 -1
  82. package/dist/CdsToggle/styles.css +1 -1
  83. package/dist/CdsTooltip/index.js +2 -2
  84. package/dist/CdsTooltip/styles.css +1 -1
  85. package/dist/CdsUploader/index.js +3 -3
  86. package/dist/CdsUploader/styles.css +1 -1
  87. package/dist/cds.css +2 -2
  88. package/dist/cds.js +2 -2
  89. package/dist/cds.min.css +2 -2
  90. package/dist/cds.min.js +2 -2
  91. package/package.json +1 -1
package/dist/cds.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * CDS v2.24.0 (https://cds.b2b-center.ru/)
2
+ * CDS v2.25.0 (https://cds.b2b-center.ru/)
3
3
  *
4
4
  * @package @central-design-system/components
5
5
  * @author Design System Team <cds@b2b-center.ru>
@@ -35,4 +35,4 @@ t.exports=function(){"use strict";var t=function(){return(t=Object.assign||funct
35
35
  * Version: 2.8.22
36
36
  * Author: LianYue
37
37
  */
38
- t.exports=function(){"use strict";var t=function(t){var e=new XMLHttpRequest;return e.open(t.method||"GET",t.url),e.responseType="json",t.headers&&Object.keys(t.headers).forEach((function(n){e.setRequestHeader(n,t.headers[n])})),e},e=function(t,e){return new Promise((function(n,i){t.onload=function(){if(t.status>=200&&t.status<300){var e;try{e=JSON.parse(t.response)}catch(n){e=t.response}n(e)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(JSON.stringify(e))}))},n=function(t,e){var n=new FormData;for(var i in e)n.append(i,e[i]);return new Promise((function(e,i){t.onload=function(){if(t.status>=200&&t.status<300){var n;try{n=JSON.parse(t.response)}catch(e){n=t.response}e(n)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(n)}))};function i(n){var i=t(n);return e(i,n.body)}var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(t,n){o(this,e),this.file=t,this.options=n,this.chunks=[],this.sessionId=null,this.chunkSize=null,this.speedInterval=null}return r(e,[{key:"createChunks",value:function(){this.chunks=[];for(var t=0,e=this.chunkSize;t<this.fileSize;)this.chunks.push({blob:this.file.file.slice(t,e),startOffset:t,active:!1,retries:this.maxRetries}),e=(t=e)+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach((function(t){t.xhr.abort(),t.active=!1})),this.stopSpeedCalc()}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var t=this;return this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),this.start(),this.promise}},{key:"start",value:function(){var t=this;i({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then((function(e){if("success"!==e.status)return t.file.response=e,t.reject("server");t.sessionId=e.data.session_id,t.chunkSize=e.data.end_offset,t.createChunks(),t.startChunking()})).catch((function(e){t.file.response=e,t.reject("server")}))}},{key:"startChunking",value:function(){for(var t=0;t<this.maxActiveChunks;t++)this.uploadNextChunk();this.startSpeedCalc()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(e){var i=this;e.progress=0,e.active=!0,this.updateFileProgress(),e.xhr=t({method:"POST",headers:this.headers,url:this.action}),e.xhr.upload.addEventListener("progress",(function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded/t.total*100))}),!1),n(e.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:e.startOffset,chunk:e.blob})).then((function(t){if(e.active=!1,"success"===t.status)e.uploaded=!0;else if(e.retries--<=0)return i.stopChunks(),i.reject("upload");i.uploadNextChunk()})).catch((function(){if(e.active=!1,e.retries--<=0)return i.stopChunks(),i.reject("upload");i.uploadNextChunk()}))}},{key:"finish",value:function(){var t=this;this.updateFileProgress(),this.stopSpeedCalc(),i({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then((function(e){if(t.file.response=e,"success"!==e.status)return t.reject("server");t.resolve(e)})).catch((function(e){t.file.response=e,t.reject("server")}))}},{key:"startSpeedCalc",value:function(){var t=this;this.file.speed=0;var e=0;this.speedInterval||(this.speedInterval=window.setInterval((function(){var n=t.progress/100*t.fileSize;t.file.speed=n-e,e=n}),1e3))}},{key:"stopSpeedCalc",value:function(){this.speedInterval&&window.clearInterval(this.speedInterval),this.speedInterval=null,this.file.speed=0}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries,10)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive,10)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var t=this,e=this.chunksUploaded.length/this.chunks.length*100,n=this.chunksUploading.reduce((function(e,n){return e+(0|n.progress)/t.chunks.length}),0);return Math.min(e+n,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter((function(t){return!t.active&&!t.uploaded}))}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter((function(t){return!!t.xhr&&!!t.active}))}},{key:"chunksUploaded",get:function(){return this.chunks.filter((function(t){return!!t.uploaded}))}}]),e}();function u(t,e,n,i,r,o,s,u,a,l){"boolean"!=typeof s&&(a=u,u=s,s=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,a(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=s?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),c)if(d.functional){var f=d.render;d.render=function(t,e){return c.call(e),f(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,c):[c]}return n}var a=u,l=void 0,c=void 0,d=void 0,f=a({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"file",name:t.$parent.name,id:t.$parent.inputId||t.$parent.name,accept:t.$parent.accept,capture:t.$parent.capture,disabled:t.$parent.disabled,webkitdirectory:t.$parent.directory&&t.$parent.features.directory,directory:t.$parent.directory&&t.$parent.features.directory,multiple:t.$parent.multiple&&t.$parent.features.html5},on:{change:t.change}})},staticRenderFns:[]},l,{methods:{change:function(t){this.$parent.addInputFile(t.target),t.target.files?(t.target.value="",t.target.files.length&&!/safari/i.test(navigator.userAgent)&&(t.target.type="",t.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}},c,!1,d,void 0,void 0),h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function v(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var m={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:s},g={components:{InputFile:f},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return m}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drop:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var t=document.createElement("input");if(t.type="file",t.multiple=!0,window.FormData&&t.files?("boolean"!=typeof t.webkitdirectory&&"boolean"!=typeof t.directory||(this.features.directory=!0),this.features.html5&&void 0!==t.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var e=0;e<this.files.length;e++){var n=this.files[e];this.maps[n.id]=n}this.$nextTick((function(){var t=this;this.$parent?(this.$parent.$forceUpdate(),this.$parent.$nextTick((function(){t.watchDrop(t.drop)}))):this.watchDrop(this.drop)}))},beforeDestroy:function(){this.destroy=!0,this.active=!1,this.watchDrop(!1)},computed:{uploaded:function(){for(var t=void 0,e=0;e<this.files.length;e++)if((t=this.files[e]).fileObject&&!t.error&&!t.success)return!1;return!0},chunkOptions:function(){return Object.assign(m,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(t){this.watchActive(t)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(t){this.watchDrop(t)},value:function(t){if(this.files!==t){this.files=t;var e=this.maps;this.maps={};for(var n=0;n<this.files.length;n++){var i=this.files[n];this.maps[i.id]=i}for(var r in this.maps){var o=this.maps[r],s=e[r];o!==s&&this.emitFile(o,s)}for(var u in e)this.maps[u]||this.emitFile(void 0,e[u])}}},methods:{clear:function(){if(this.files.length){var t=this.files;this.files=[],this.maps={},this.emitInput();for(var e=0;e<t.length;e++)this.emitFile(void 0,t[e])}return!0},get:function(t){return!!t&&("object"===(void 0===t?"undefined":p(t))?this.maps[t.id]||!1:this.maps[t]||!1)},add:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=t,i=n instanceof Array;i||(n=[n]);for(var r=[],o=0;o<n.length;o++){var s=n[o];this.features.html5&&s instanceof Blob&&(s={file:s,size:s.size,name:s.webkitRelativePath||s.relativePath||s.name||"unknown",type:s.type});var u=!1;if(!1===s.fileObject||(s.fileObject||"undefined"!=typeof Element&&s.el instanceof Element||"undefined"!=typeof Blob&&s.file instanceof Blob)&&(u=!0),u&&((s=h({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},s,{response:{},progress:"0.00",speed:0})).data=h({},this.data,s.data?s.data:{}),s.headers=h({},this.headers,s.headers?s.headers:{})),s.id||(s.id=Math.random().toString(36).substr(2)),!this.emitFilter(s,void 0)){if(this.maximum>1&&r.length+this.files.length>=this.maximum){this.$emit("max-files",s);break}if(r.push(s),1===this.maximum)break}}if(!r.length)return!1;1===this.maximum&&this.clear();var a=void 0;if(!0===e||0===e)a=r.concat(this.files);else if(e){var l;(l=a=this.files.concat([])).splice.apply(l,[e,0].concat(r))}else a=this.files.concat(r);this.files=a;for(var c=0;c<r.length;c++){var d=r[c];this.maps[d.id]=d}this.emitInput();for(var f=0;f<r.length;f++)this.emitFile(r[f],void 0);return i?r:r[0]},addInputFile:function(t){var e=[];if(t.files)for(var n=0;n<t.files.length;n++){var i=t.files[n];e.push({size:i.size,name:i.webkitRelativePath||i.relativePath||i.name,type:i.type,file:i})}else{var r=t.value.replace(/\\/g,"/").split("/");delete t.__vuex__,e.push({name:r[r.length-1],el:t})}return this.add(e)},addDataTransfer:function(t){var e=this,n=[];if(t.items&&t.items.length){for(var i=[],r=0;r<t.items.length;r++){var o=t.items[r];(o=o.getAsEntry?o.getAsEntry()||o.getAsFile():o.webkitGetAsEntry&&o.webkitGetAsEntry()||o.getAsFile())&&i.push(o)}return new Promise((function(t,r){var o=function r(o){var s=i[o];if(!s||e.maximum>0&&n.length>=e.maximum)return t(e.add(n));e.getEntry(s).then((function(t){n.push.apply(n,v(t)),r(o+1)}))};o(0)}))}if(t.files.length){for(var s=0;s<t.files.length&&(n.push(t.files[s]),!(this.maximum>0&&n.length>=this.maximum));s++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(i,r){if(t.isFile)t.file((function(t){i([{size:t.size,name:n+t.name,type:t.type,file:t}])}));else if(t.isDirectory&&e.dropDirectory){var o=[],s=t.createReader();!function r(){s.readEntries((function(s){!function u(a){return!s[a]&&0===a||e.maximum>0&&o.length>=e.maximum?i(o):s[a]?void e.getEntry(s[a],n+t.name+"/").then((function(t){o.push.apply(o,v(t)),u(a+1)})):r()}(0)}))}()}else i([])}))},replace:function(t,e){var n=this.get(t),i=this.get(e);if(!n||!i||n===i)return!1;var r=this.files.concat([]),o=r.indexOf(n),s=r.indexOf(i);return-1!==o&&-1!==s&&(r[o]=i,r[s]=n,this.files=r,this.emitInput(),!0)},remove:function(t){var e=this.get(t);if(e){if(this.emitFilter(void 0,e))return!1;var n=this.files.concat([]),i=n.indexOf(e);if(-1===i)return console.error("remove",e),!1;n.splice(i,1),this.files=n,delete this.maps[e.id],this.emitInput(),this.emitFile(void 0,e)}return e},update:function(t,e){var n=this.get(t);if(n){var i=h({},n,e);if(!n.fileObject||!n.active||i.active||i.error||i.success||(i.error="abort"),this.emitFilter(i,n))return!1;var r=this.files.concat([]),o=r.indexOf(n);return-1===o?(console.error("update",n),!1):(r.splice(o,1,i),this.files=r,delete this.maps[n.id],this.maps[i.id]=i,this.emitInput(),this.emitFile(i,n),i)}return!1},emitFilter:function(t,e){var n=!1;return this.$emit("input-filter",t,e,(function(){return n=!0})),n},emitFile:function(t,e){this.$emit("input-file",t,e),!(t&&t.fileObject&&t.active)||e&&e.active?t&&t.fileObject&&t.active||!e||!e.fileObject||!e.active||this.uploading--:(this.uploading++,this.$nextTick((function(){var e=this;setTimeout((function(){e.upload(t).then((function(){(t=e.get(t))&&t.fileObject&&e.update(t,{active:!1,success:!t.error})})).catch((function(n){e.update(t,{active:!1,success:!1,error:n.code||n.error||n.message||n})}))}),parseInt(50*Math.random()+50,10))}))),!this.active||Boolean(t)===Boolean(e)&&t.active===e.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(t){var e=this.get(t);if(!e)return Promise.reject("not_exists");if(!e.fileObject)return Promise.reject("file_object");if(e.error)return Promise.reject(e.error);if(e.success)return Promise.resolve(e);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":p(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map((function(t){return t.trim()})).filter((function(t){return t}))),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===e.name.search(n)))return Promise.reject("extension");if(this.size>0&&e.size>=0&&e.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(e,this);if(this.features.html5){if(this.shouldUseChunkUpload(e))return this.uploadChunk(e);if(e.putAction)return this.uploadPut(e);if(e.postAction)return this.uploadHtml5(e)}return e.postAction?this.uploadHtml4(e):Promise.reject("No action configured")},shouldUseChunkUpload:function(t){return this.chunkEnabled&&!!this.chunkOptions.handler&&t.size>this.chunkOptions.minSize},uploadChunk:function(t){var e=this.chunkOptions.handler;return t.chunk=new e(t,this.chunkOptions),t.chunk.upload()},uploadPut:function(t){var e=[],n=void 0;for(var i in t.data)null!=(n=t.data[i])&&e.push(encodeURIComponent(i)+"="+encodeURIComponent(n));var r=e.length?(-1===t.putAction.indexOf("?")?"?":"&")+e.join("&"):"",o=new XMLHttpRequest;return o.open("PUT",t.putAction+r),this.uploadXhr(o,t,t.file)},uploadHtml5:function(t){var e=new window.FormData,n=void 0;for(var i in t.data)(n=t.data[i])&&"object"===(void 0===n?"undefined":p(n))&&"function"!=typeof n.toString?n instanceof File?e.append(i,n,n.name):e.append(i,JSON.stringify(n)):null!=n&&e.append(i,n);e.append(this.name,t.file,t.file.filename||t.name);var r=new XMLHttpRequest;return r.open("POST",t.postAction),this.uploadXhr(r,t,e)},uploadXhr:function(t,e,n){var i=this,r=e,o=0,s=0;t.upload.onprogress=function(t){if(r=i.get(r),t.lengthComputable&&r&&r.fileObject&&r.active){var e=Math.round(Date.now()/1e3);e!==o&&(o=e,r=i.update(r,{progress:(t.loaded/t.total*100).toFixed(2),speed:t.loaded-s}),s=t.loaded)}};var u=setInterval((function(){if(!(r=i.get(r))||!r.fileObject||r.success||r.error||!r.active){u&&(clearInterval(u),u=!1);try{t.abort(),t.timeout=1}catch(t){}}}),100);return new Promise((function(e,o){var s=void 0,a=function(n){if(!s){if(s=!0,u&&(clearInterval(u),u=!1),!(r=i.get(r)))return o("not_exists");if(!r.fileObject)return o("file_object");if(r.error)return o(r.error);if(!r.active)return o("abort");if(r.success)return e(r);var a={};switch(n.type){case"timeout":case"abort":a.error=n.type;break;case"error":t.status?t.status>=500?a.error="server":t.status>=400&&(a.error="denied"):a.error="network";break;default:t.status>=500?a.error="server":t.status>=400?a.error="denied":a.progress="100.00"}if(t.responseText){var l=t.getResponseHeader("Content-Type");l&&-1!==l.indexOf("/json")?a.response=JSON.parse(t.responseText):a.response=t.responseText}return(r=i.update(r,a)).error?o(r.error):e(r)}};for(var l in t.onload=a,t.onerror=a,t.onabort=a,t.ontimeout=a,r.timeout&&(t.timeout=r.timeout),r.headers)t.setRequestHeader(l,r.headers[l]);r=i.update(r,{xhr:t}),t.send(n)}))},uploadHtml4:function(t){var e=this,n=t,i=function(t){27===t.keyCode&&t.preventDefault()},r=document.createElement("iframe");r.id="upload-iframe-"+n.id,r.name="upload-iframe-"+n.id,r.src="about:blank",r.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var o=document.createElement("form");o.action=n.postAction,o.name="upload-form-"+n.id,o.setAttribute("method","POST"),o.setAttribute("target","upload-iframe-"+n.id),o.setAttribute("enctype","multipart/form-data");var s=void 0,u=void 0;for(var a in n.data)(s=n.data[a])&&"object"===(void 0===s?"undefined":p(s))&&"function"!=typeof s.toString&&(s=JSON.stringify(s)),null!=s&&((u=document.createElement("input")).type="hidden",u.name=a,u.value=s,o.appendChild(u));o.appendChild(n.el),document.body.appendChild(r).appendChild(o);var l=function(){var t=void 0;try{r.contentWindow&&(t=r.contentWindow.document)}catch(t){}if(!t)try{t=r.contentDocument?r.contentDocument:r.document}catch(e){t=r.document}return t&&t.body?t.body.innerHTML:null};return new Promise((function(t,s){setTimeout((function(){if(!(n=e.update(n,{iframe:r})))return s("not_exists");var u=setInterval((function(){(n=e.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(u&&(clearInterval(u),u=!1),r.onabort({type:n?"abort":"not_exists"}))}),100),a=void 0,c=function(r){if(!a){if(a=!0,u&&(clearInterval(u),u=!1),document.body.removeEventListener("keydown",i),!(n=e.get(n)))return s("not_exists");if(!n.fileObject)return s("file_object");if(n.error)return s(n.error);if(!n.active)return s("abort");if(n.success)return t(n);var o=l(),c={};switch(r.type){case"abort":c.error="abort";break;case"error":n.error?c.error=n.error:c.error=null===o?"network":"denied";break;default:n.error?c.error=n.error:null===c?c.error="network":c.progress="100.00"}if(null!==o){if(o&&"{"===o.substr(0,1)&&"}"===o.substr(o.length-1,1))try{o=JSON.parse(o)}catch(t){}c.response=o}return(n=e.update(n,c)).error?s(n.error):t(n)}};r.onload=c,r.onerror=c,r.onabort=c,document.body.addEventListener("keydown",i),o.submit()}),50)})).then((function(t){return r.parentNode&&r.parentNode.removeChild(r),t})).catch((function(t){return r.parentNode&&r.parentNode.removeChild(r),t}))},watchActive:function(t){for(var e=void 0,n=0;e=this.files[n];)if(n++,e.fileObject)if(t&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;e.active||e.error||e.success||this.update(e,{active:!0})}else e.active&&this.update(e,{active:!1});0===this.uploading&&(this.active=!1)},watchDrop:function(t){var e=t;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(t){}e?"string"==typeof e?e=document.querySelector(e)||this.$root.$el.querySelector(e):!0===e&&(e=this.$parent.$el):e=!1,this.dropElement=e,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(t){if(t.preventDefault(),!this.dropActive&&t.dataTransfer){var e=t.dataTransfer;e.files&&e.files.length?this.dropActive=!0:e.types?(e.types.indexOf&&-1!==e.types.indexOf("Files")||e.types.contains&&e.types.contains("Files"))&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(t){t.preventDefault(),this.dropActive&&("HTML"===t.target.nodeName||t.target===t.explicitOriginalTarget||!t.fromElement&&(t.clientX<=0||t.clientY<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(t){t.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(t){t.preventDefault(),this.addDataTransfer(t.dataTransfer)}}},_=void 0,y=void 0,w=void 0,b=a({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.className},[t._t("default"),t._v(" "),n("label",{attrs:{for:t.inputId||t.name}}),t._v(" "),n("input-file")],2)},staticRenderFns:[]},_,g,y,!1,w,void 0,void 0);function C(t){return t&&t.default||t}return C(Object.freeze({default:b}))}()},8976:function(e){"use strict";e.exports=t}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var r={};return function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function e(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=e(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,u=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return u=t.done,t},e:function(t){a=!0,s=t},f:function(){try{u||null==i.return||i.return()}finally{if(a)throw s}}}}i.d(r,{default:function(){return ts}});i(7327),i(1539),i(8309);var o=i(8976),s=i.n(o);i(9714),i(4986),i(7042);var u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t)return"";if(t=t.toString(),0===e&&0===n)return t;var i="...";return t.substr(0,e)+i+t.substr(t.length-n)};var a=function(t,e){if(!t)return"";var n=(t=t.toString()).lastIndexOf("."),i=t.slice(n).length;if(t.length>e){var r=i+5;return u(t,e-r-3,r)}return t};s().filter("cdsShortFileName",a),s().filter("cdsTruncate",u);var l={shortFileName:a,truncate:u};function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}i(9653);var d=function(t,e,n){if(!e.hasOwnProperty(n)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i)}},f={props:{template:String,parent:Object,templateProps:{type:Object,default:function(){return{}}}},render:function(t){if(this.template){var e=this.parent||this.$parent,n=e.$data;void 0===n&&(n={});var i=e.$props;void 0===i&&(i={});var r=e.$options;void 0===r&&(r={});var o=r.components;void 0===o&&(o={});var s=r.computed;void 0===s&&(s={});var u=r.methods;void 0===u&&(u={});var a=this.$data;void 0===a&&(a={});var l=this.$props;void 0===l&&(l={});var c=this.$options;void 0===c&&(c={});var f=c.methods;void 0===f&&(f={});var h=c.computed;void 0===h&&(h={});var p=c.components;void 0===p&&(p={});var v={$data:{},$props:{},$options:{},components:{},computed:{},methods:{}};Object.keys(n).forEach((function(t){void 0===a[t]&&(v.$data[t]=n[t])})),Object.keys(i).forEach((function(t){void 0===l[t]&&(v.$props[t]=i[t])})),Object.keys(u).forEach((function(t){void 0===f[t]&&(v.methods[t]=u[t])})),Object.keys(s).forEach((function(t){void 0===h[t]&&(v.computed[t]=s[t])})),Object.keys(o).forEach((function(t){void 0===p[t]&&(v.components[t]=o[t])}));var m=Object.keys(v.methods||{}),g=Object.keys(v.$data||{}),_=Object.keys(v.$props||{}),y=Object.keys(this.templateProps),w=g.concat(_).concat(m).concat(y),b=(E=e,x={},m.forEach((function(t){return d(E,x,t)})),x),C=function(t){var e={};return t.forEach((function(t){t&&Object.getOwnPropertyNames(t).forEach((function(n){return d(t,e,n)}))})),e}([v.$data,v.$props,b,this.templateProps]);return t({template:this.template||"<div></div>",props:w,computed:v.computed,components:v.components,provide:this.$parent._provided},{props:C})}var E,x}};function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}i(3371);var v=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34}),m=Object.freeze({hover:"cds-state-hover",focus:"cds-state-focus",active:"cds-state-active",visited:"cds-state-visited",disabled:"cds-state-disabled",checked:"cds-state-checked",indeterminate:"cds-state-indeterminate",invalid:"cds-state-invalid",empty:"cds-state-empty",loading:"cds-state-loading"}),g=function(){};i(9253),i(7268);function _(t,e,n,i,r,o,s,u){var a,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=a):r&&(a=u?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(l.functional){l._injectStyles=a;var c=l.render;l.render=function(t,e){return a.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:l}}var y=_({name:"CdsLoading",props:{active:{type:Boolean,default:!0,description:"Показан/скрыт"},overlay:{type:Boolean,description:"Отображать заглушку"},small:{type:Boolean,description:"Использовать маленькую вариацию"},fixed:{type:Boolean,default:!1,description:"Загрузчик фиксирован относительно контейнера"},ariaValuetext:{type:String,default:"Загрузка",description:"Текстовое описание загрузчика"}},computed:{overlayClasses:function(){return{"cds-loading__overlay":this.overlay,"cds-loading__fixed":this.fixed}},loadingClasses:function(){return{"cds-loading":!0,"cds-loading__small":this.small,"cds-loading__fixed":this.fixed}},listeners:function(){return this.$listeners}},watch:{active:function(t){this.$emit("toggle",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.active?[t.overlay?n("div",{class:t.overlayClasses},[n("div",t._g({class:t.loadingClasses,attrs:{role:"progressbar","aria-valuetext":t.ariaValuetext}},t.listeners),[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("circle",{attrs:{cx:"12",cy:"12",r:"10.5"}})])])]):n("div",t._g({class:t.loadingClasses,attrs:{role:"progressbar","aria-valuetext":t.ariaValuetext}},t.listeners),[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("circle",{attrs:{cx:"12",cy:"12",r:"10.5"}})])])]:t._e()],2)}),[],!1,null,null,null).exports;y.install=function(t){t.component(y.name,y)},"undefined"!=typeof window&&window.Vue&&y.install(window.Vue);var w=y,b=(i(4916),i(4723),i(4603),i(8450),i(8386),i(9600),i(2222),function(t,e,n){var i=e.match(new RegExp("(".concat(t.join("|"),")")));return i||console.warn("".concat(n," должно быть одно из следующих: ").concat(t.join(", "))),i}),C=i(7159);function E(t,e){return e+(t?(0,C.upperCaseFirst)(t):"")}i(6699),i(2023);function x(t,e){return[(0,C.upperCaseFirst)((0,C.camelCase)(t)),(0,C.GL)(t)].includes(e)}i(8862);i(5306),i(4678);var A=function(t){return t.includes("rem")&&(t=t.replace("rem","")),t*parseFloat(getComputedStyle(document.documentElement).fontSize)},D={appearance:["primary","secondary","transparent"],size:["md","lg","xl"]},k=_({name:"CdsButton",components:{CdsLoading:w},props:{text:{type:String,required:!1,default:"",description:"Текст кнопки"},appearance:{type:String,required:!1,default:"primary",available:D.appearance,validator:function(t){return b(D.appearance,t,"Button.appearance")},description:"Варианты кнопки"},size:{type:String,default:"md",available:D.size,validator:function(t){return b(D.size,t,"Button.size")},description:"Размер кнопки"},iconOnly:{type:Boolean,default:!1,description:"Кнопка иконка"},iconAfter:{type:Boolean,default:!1,description:"Иконка после текста"},loading:{type:Boolean,default:!1,description:"Состояние загрузки"},disabled:{type:Boolean,description:"Заблокированное состояние кнопки"},inverse:{type:Boolean,default:!1,description:"Инверсивная кнопка"},to:{type:String,default:"",description:"Ссылка для кнопки. Включает режим ссылки"},useRouter:{type:Boolean,default:!0,description:"Используется ли vue router для ссылки"},blank:{type:Boolean,default:!1,description:"Открыть ли ссылку в новой вкладке"}},computed:{classes:function(){var t;return c(t={"cds-button":!0},"cds-button__".concat(this.appearance),!0),c(t,"cds-button__size--".concat(this.size),this.size),c(t,"cds-button__icon",this.iconOnly),c(t,"cds-button__icon-after",this.iconAfter),c(t,"cds-button__inverse",this.inverse),c(t,m.disabled,this.disabled),c(t,m.loading,this.loading),t},hasSlotData:function(){return!!this.$slots.default},events:function(){return p({},this.$listeners)},tag:function(){return this.to?this.useRouter?"router-link":"a":"button"},type:function(){return this.to?null:"button"},linkHref:function(){return this.to?this.to:null},routerTo:function(){return this.to&&this.useRouter?this.to:null},target:function(){return this.blank?"_blank":null},hasText:function(){return this.text}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,t._g({tag:"component",class:t.classes,attrs:{type:t.type,to:t.routerTo,href:t.linkHref,target:t.target,disabled:t.disabled||t.loading}},t.events),[t._t("icon"),t._v(" "),t.hasSlotData||t.hasText?n("span",{staticClass:"cds-button__text"},[t.hasText?[t._v("\n "+t._s(t.text)+"\n ")]:t._t("default")],2):t._e(),t._v(" "),t.loading?n("cds-loading",{attrs:{active:t.loading,small:""}}):t._e()],2)}),[],!1,null,null,null).exports,F=_({name:"CdsButtonSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"cds-button cds-button__skeleton",attrs:{type:"button",disabled:""}},[e("cds-skeleton",{attrs:{width:"140px",height:"32px"}})],1)}),[],!1,null,null,null).exports;k.install=function(t){t.component(k.name,k)},F.install=function(t){t.component(F.name,F)},"undefined"!=typeof window&&window.Vue&&(k.install(window.Vue),F.install(window.Vue));var S=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm.5 2v3.5H12v1H8.5V12h-1V8.499L4 8.5v-1l3.5-.001V4h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),B=S.exports,$=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m12.743 2.55.707.707L4.707 12 10 12v1H3V6h1v5.292z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),I=$.exports,O=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m12.743 13 .707-.707L4.707 3.55H10v-1H3v7h1V4.257z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),L=O.exports,T=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m1 8 5.257-5L7 3.707 3.012 7.5H15v1H3.012L7 12.293 6.257 13z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),M=T.exports,V=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zM7 3h2v6H7V3zm1 7.25a1 1 0 1 1 0 2 1 1 0 0 1 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),R=V.exports,H=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m8 1 5 5.257-.707.743L8.5 3.012V15h-1V3.012L3.707 7 3 6.257z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),z=H.exports,P=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m15 8-5.257 5L9 12.293 12.988 8.5H1v-1h11.988L9 3.707 9.743 3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),j=P.exports,N=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 13A6 6 0 1 0 8 2a6 6 0 0 0 0 12zM7.5 4h1v5.5h-1V4zm.5 6.5A.75.75 0 1 1 8 12a.75.75 0 0 1 0-1.5z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),U=N.exports,K=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11 2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h1v-.5a.5.5 0 0 1 1 0V2h4v-.5a.5.5 0 1 1 1 0V2zm-1 1H6v.5a.5.5 0 0 1-1 0V3H4a1 1 0 0 0-1 1v1h10v1H3v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-1v.5a.5.5 0 1 1-1 0V3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),q=K.exports,W=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M13.5 3.5a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h11zm0 3h-11v5h11v-5zm-5 3.5v1h-5v-1h5zm5-5.5h-11v1h11v-1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Y=W.exports,G=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M12 9H8.5v2h1v3h-3v-3h1V9H4v2h1v3H2v-3h1V8h4.5V6H6V2h4v4H8.5v2H13v3h1v3h-3v-3h1V9zm-3.5 3h-1v1h1v-1zm4.5 0h-1v1h1v-1zm-9 0H3v1h1v-1zm5-9H7v2h2V3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),J=G.exports,Z=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm2.927 4.58L7.318 9.229 5.495 7.7l-.973 1.223 2.87 2.56 4.584-4.827-1.049-1.075z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),X=Z.exports,Q=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3.707 13 3 12.293l8.743-8.742H6.45v-1h7v7h-1V4.257z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),tt=Q.exports,et=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 13A6 6 0 1 0 8 2a6 6 0 0 0 0 12zM5.188 8.176l2.147 1.916 3.916-4.124.725.688-4.583 4.827-2.87-2.56.665-.747z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),nt=et.exports,it=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3 5.743 3.707 5 8 9.513 12.293 5l.707.743L8 11z"}})])}),[],!1,null,null,null),rt=it.exports,ot=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m5 12.275.699.725L11 7.998 5.699 3 5 3.725l4.533 4.273z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),st=ot.exports,ut=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3 10.257 8 5l5 5.257-.707.743L8 6.487 3.707 11z"}})])}),[],!1,null,null,null),at=ut.exports,lt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11 3.725 10.301 3 5 8.002 10.301 13l.699-.725-4.533-4.273z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ct=lt.exports,dt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm0 2v4h4v1H7V4h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ft=dt.exports,ht=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14 2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-1.001L13 13.793a.5.5 0 0 1-.095.293l-.051.06a.5.5 0 0 1-.638.058l-.07-.058L9 11H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h12zm0 1H2v7h7.413L12 12.59 11.999 10H14V3zM9 7v1H4V7h5zm3-2v1H4V5h8z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),pt=ht.exports,vt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M4 9v5H3V9h1zm3-7v12H6V2h1zm3 2v10H9V4h1zm3 3v7h-1V7h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),mt=vt.exports,gt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14 12v2h-2v-2h2zm-5 0v2H7v-2h2zm-5 0v2H2v-2h2zm0-5v2H2V7h2zm10 0v2h-2V7h2zM9 7v2H7V7h2zM4 2v2H2V2h2zm10 0v2h-2V2h2zM9 2v2H7V2h2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),_t=gt.exports,yt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M13.75 5c.69 0 1.25.56 1.25 1.25v7.5c0 .69-.56 1.25-1.25 1.25h-7.5C5.56 15 5 14.44 5 13.75v-7.5C5 5.56 5.56 5 6.25 5h7.5zM14 6H6v8h8V6zM9.75 1c.69 0 1.25.56 1.25 1.25V4h-1V2H2v8h2v1H2.25C1.56 11 1 10.44 1 9.75v-7.5C1 1.56 1.56 1 2.25 1h7.5z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),wt=yt.exports,bt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M15 9v4H1V9h14zm-1 1H2v2h12v-2zm1-7v4H1V3h14zm-1 1H2v2h12V4z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Ct=bt.exports,Et=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M10 2H6v1h4V2zm2 2H4v10h8V4zm-2 1v8H9V5h1zM7 5v8H6V5h1zm7-2v1h-1v11H3V4H2V3h3V1h6v2h3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),xt=Et.exports,At=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11 8v5.156l2.364-2.363.707.707-3.535 3.536L7 11.5l.707-.707L10 13.086V8h1zM9 1l3 3v3h-1V5H8V2H3v12h3v1H2V1h7zm0 1.5v1.499L10.5 4 9 2.5z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Dt=At.exports,kt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M13 15H3V1h7.018L13 3.991V15zM9 2H4v12h8V5H9V2zm1 .397V4h1.597L10 2.397z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),Ft=kt.exports,St=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M1 15v-1h1V2h7v2h5v10h1v1H1zM8 3H3v11h5V3zm5 2H9v1h3v1H9v1h3v1H9v1h3v1H9v1h3v1H9v1h4V5zm-8 7v1H4v-1h1zm2 0v1H6v-1h1zm-2-2v1H4v-1h1zm2 0v1H6v-1h1zM5 8v1H4V8h1zm2 0v1H6V8h1zM5 6v1H4V6h1zm2 0v1H6V6h1zM4 4h1v1H4V4zm2 0h1v1H6V4z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Bt=St.exports,$t=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m2 12-.001 2H14v-2h1v3H1v-3h1zM8.5 1v8.156l2.364-2.363.707.707-3.535 3.536L4.5 7.5l.707-.707L7.5 9.086V1h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),It=$t.exports,Ot=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M7 11v2H5v-2h2zm4 0v2H9v-2h2zM7 7v2H5V7h2zm4 0v2H9V7h2zM7 3v2H5V3h2zm4 0v2H9V3h2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Lt=Ot.exports,Tt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M1.034 2.548a.5.5 0 0 1 .41-.492l.09-.008h2.96a.5.5 0 0 1 .392.188l.05.077.928 1.739h8.62a.5.5 0 0 1 .491.41l.008.09v9a.5.5 0 0 1-.41.492l-.09.008H1.533a.5.5 0 0 1-.491-.41l-.008-.09V2.548zm.999 10.504h11.95v-8H5.249v-.029L4.195 3.048H2.033v10.004z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),Mt=Tt.exports,Vt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M1 8c0-3.85 3.15-7 7-7s7 3.15 7 7-3.15 7-7 7-7-3.15-7-7zm11.55 3.85C13.5 10.8 14 9.4 14 8c0-3.3-2.7-6-6-6-1.4 0-2.8.5-3.85 1.45l8.4 8.4zm-8.45.75C5.2 13.5 6.6 14 8 14s2.8-.5 3.85-1.4L3.4 4.15c-2.1 2.5-1.8 6.3.7 8.45z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Rt=Vt.exports,Ht=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M7 2v1H3v10h10V9h1v4.143a.857.857 0 0 1-.857.857H2.857A.857.857 0 0 1 2 13.143V2.857C2 2.384 2.384 2 2.857 2H7zm8-1v6.116h-1.036V2.767L7.732 9 7 8.268l6.232-6.233H8.884V1H15z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),zt=Ht.exports,Pt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3 2a1 1 0 0 0-.993.883L2 13a1 1 0 0 0 .883.993l3.99.007V9.955H4.96V7.842h1.914V6.098c-.036-.914.297-1.667 1-2.256.702-.589 1.875-.743 3.52-.462v1.83l-.828.016a7.33 7.33 0 0 0-.773.09c-.12.04-.321.132-.454.3-.139.176-.19.447-.202.622l.024 1.55h2.233l-.482 2.167H9.134L9.158 14H13a1 1 0 0 0 .993-.883L14 3a1 1 0 0 0-.883-.993L3 2z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),jt=Pt.exports,Nt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h10zM3 2a1 1 0 0 0-.993.883L2 13a1 1 0 0 0 .883.993l3.99.007V9.955H4.96V7.842h1.914V6.098c-.036-.914.297-1.667 1-2.256.702-.589 1.875-.743 3.52-.462v1.83l-.828.016a7.33 7.33 0 0 0-.773.09c-.12.04-.321.132-.454.3-.139.176-.19.447-.202.622l.024 1.55h2.233l-.482 2.167H9.134L9.158 14H13a1 1 0 0 0 .993-.883L14 3a1 1 0 0 0-.883-.993L3 2z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),Ut=Nt.exports,Kt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m12.88 1.364 1.793 1.793a1 1 0 0 1 .083 1.32l-.083.094L4.207 14.96H1v-3.206L11.466 1.364c.33-.33.834-.38 1.218-.153l.101.07.095.083zM3.25 10.92 2 12.169v1.793h1.793l1.252-1.249-1.794-1.793zm10.228-7.717-8.272 8.258.546.546 8.284-8.246-.558-.558zm-1.236-1.235L3.96 10.215l.539.539 8.272-8.259-.528-.527z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),qt=Kt.exports,Wt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M5 11a2 2 0 0 1 1.937 1.5H15v1l-8.063.001a2 2 0 0 1-3.874 0L1 13.5v-1h2.063A2 2 0 0 1 5 11zm0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm6-6a2 2 0 0 1 1.937 1.5H15v1l-2.063.001a2 2 0 0 1-3.874 0L1 8.5v-1h8.063A2 2 0 0 1 11 6zm0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM5 1a2 2 0 0 1 1.937 1.5H15v1l-8.063.001a2 2 0 0 1-3.874 0L1 3.5v-1h2.063A2 2 0 0 1 5 1zm0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Yt=Wt.exports,Gt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a6.992 6.992 0 0 1 7 7 7 7 0 1 1-7-7zM4.85 11.344c-.523.168-.772.403-.95.641l-.111.158-.052.079A5.979 5.979 0 0 0 8 14c1.12 0 2.167-.307 3.064-.84l.054.049c-.677-.65-1.486-.926-2.873-1.061l-.285-.026-.148-.015-.151-.026-.168-.037-.311-.086-.265-.082-1.009-.322-.313-.09c-.355-.125-.603-.165-.745-.12zM8 2a6.034 6.034 0 0 0-1.437.173c.468.85.685 1.718.417 2.1-.28.4-.565.75-.913 1.044-.675.57-1.41.662-1.872-.104-.243-.404-.25-.798-.12-1.489l.062-.315A5.987 5.987 0 0 0 2 8c0 1.283.403 2.473 1.09 3.448l-.027.03c.309-.366.745-.705 1.31-1.012.342-.186.721-.176 1.398.006l.192.053.397.121.532.172.658.205.175.047.141.031.12.019.339.03c1.661.162 2.688.528 3.566 1.415a5.986 5.986 0 0 0 1.85-2.818l-.115-.303-.128-.304-.118-.251a4.786 4.786 0 0 0-.053-.105c-.064-.151-.109-.227-.134-.227-.019 0-.039.022-.06.066l-.175.382-.104.244-.198.485-.152.35c-.24.523-.443.787-.805.83l-.114.007-.583.01c-1.338.013-1.924-.298-2.352-1.6l-.09-.286c-.07-.21-.119-.272-.181-.286l-.033-.003h-.05l-.047.005-.09.022-.09.031-.698.279c-.677.276-1.186.41-1.774.41-.841 0-1.204-.689-.88-1.428.25-.57.543-.865 1.35-1.255l.262-.118c.282-.135.668-.375 1.042-.974.056-.109.1-.229.116-.374l.006-.114c.063-1.791.99-2.773 2.609-2.663l.183.016.427.055A5.956 5.956 0 0 0 8 2zm.5 3.388c-.021.281-.124.482-.195.6l-.056.087c-.452.723-.755 1-1.08 1.192l-.166.09-.18.09-.177.09-.213.125a5.56 5.56 0 0 0-.108.068l-.213.144c-.343.247-.61.51-.494.628.1.102.347.05.614-.041l.231-.086.326-.127.822-.331.192-.066c.199-.062.372-.095.543-.095.592 0 .99.385 1.205 1.105.241.812.403 1.029 1.04 1.066l.135.006h.273c.273 0 .435-.018.484-.053a.208.208 0 0 0 .072-.102l.052-.138.048-.108.367-.884c.418-.97.697-1.285 1.333-1.135.231.055.457.189.644.404L14 8a5.98 5.98 0 0 0-1.67-4.153l-.936-.102-.693-.084-.538-.076c-1.17-.134-1.54.208-1.663 1.803zm-2.898-2.89-.037.017c-.106.047-.21.097-.313.15v.071a4.53 4.53 0 0 1-.1.714l-.09.44c-.086.454-.086.681-.01.807l.032.047c.035.036.08.036.197-.06l.142-.131c.043-.043.09-.083.14-.12l.225-.165c.194-.148.348-.318.29-.642-.047-.262-.082-.38-.122-.466l-.15-.28a6.357 6.357 0 0 0-.204-.383z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Jt=Gt.exports,Zt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M12.002 4.793C13.935 4.793 15 6.343 15 8c0 1.657-1.065 3.274-2.998 3.274-1.127 0-2.461-.835-4.002-2.505-1.54 1.67-2.875 2.505-4.002 2.505C2.065 11.274 1 9.657 1 8s1.065-3.207 2.998-3.207c1.127 0 2.461.818 4.002 2.453 1.54-1.635 2.875-2.453 4.002-2.453zm0 1-.117.005c-.75.06-1.76.695-2.978 1.946l-.237.25.005.006-.011.012.238.258c1.215 1.279 2.224 1.93 2.97 1.998l.13.006C13.198 10.274 14 9.309 14 8c0-1.232-.718-2.126-1.842-2.201l-.156-.006zm-8.004 0C2.785 5.793 2 6.713 2 8c0 1.309.802 2.274 1.998 2.274.757 0 1.814-.65 3.1-2.004l.237-.258L7.325 8l.005-.006-.02-.022c-1.314-1.403-2.401-2.11-3.195-2.174l-.117-.005z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),Xt=Zt.exports,Qt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zM5.172 3.757 3.757 5.172l7.071 7.07 1.415-1.414-7.071-7.07z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),te=Qt.exports,ee=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm1 3.172L11.828 8 9 10.828l-.707-.707L9.914 8.5H4v-1h5.914L8.293 5.879 9 5.172z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ne=ee.exports,ie=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm1 5H7v6h2V6zm0-3H7v2h2V3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),re=ie.exports,oe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm.668 4.06V12h-.972V6.06h.972zm0-2.412v.972h-.972v-.972h.972z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),se=oe.exports,ue=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 15 3 9.743 3.707 9 7.5 12.988V1h1v11.988L12.293 9l.707.743z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ae=ue.exports,le=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m4.5 2 3 3.2-.75.8L5 4.134V14H4V4.133L2.25 6l-.75-.8 3-3.2zM12 2l-.001 9.867L13.75 10l.75.8-3 3.2-3-3.2.75-.8 1.749 1.865L11 2h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ce=le.exports,de=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3.707 2.55 3 3.257 11.743 12 6.45 12v1h7V6h-1v5.292z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),fe=de.exports,he=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M15 8a7 7 0 1 1-7-7v2a5 5 0 1 0 3.536 1.464L12.95 3.05A7 7 0 0 1 15 8z"}})])}),[],!1,null,null,null),pe=he.exports,ve=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a5 5 0 0 1 5 5c0 1.418-.89 3.16-1.975 4.824l-.369.552-.187.272-.38.536-.415.571-.409.55-.94 1.254L8 15l-.324-.436-1.142-1.517-.413-.56-.416-.58-.375-.542C4.09 9.545 3 7.57 3 6a5 5 0 0 1 5-5zm0 1a4 4 0 0 0-4 4c0 .825.42 1.955 1.22 3.329.353.606.77 1.244 1.264 1.946l.446.621.529.714.538.719 1.08-1.452.182-.25c.606-.843 1.1-1.586 1.509-2.285C11.576 7.962 12 6.83 12 6a4 4 0 0 0-4-4zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),me=ve.exports,ge=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M10 1v2H9V2H3v12h6v-1h1v2H2V1h8zm.536 3.5 3.535 3.536-3.535 3.535-.708-.707 2.365-2.365-7.157.001v-1l7.085-.001-2.293-2.292.708-.707z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,_e=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14 1v14H6v-2h1v1h6V2H7v1H6V1h8zM7.536 4.5l3.535 3.536-3.535 3.535-.708-.707 2.365-2.365-7.157.001v-1l7.085-.001-2.293-2.292.708-.707z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,ye=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M16 12v2H0v-2h16zm0-5v2H0V7h16zm0-5v2H0V2h16z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,we=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M2 12.5v-2L3 9V7c0-2.817 1.973-4.752 4.5-4.978V1h1v1.025a5 5 0 0 1 4.495 4.758L13 7v2l1 1.5v2h-3.5a2.5 2.5 0 1 1-5 0H2zm4.5 0a1.5 1.5 0 0 0 3 0h-3zM8 3a4 4 0 0 0-3.995 3.8L4 7v2.3l-1 1.467v.733h10v-.733L12 9.3V7l-.005-.2A4 4 0 0 0 8 3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,be=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M4 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ce=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ee=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m11.818 1.546 2.636 2.636a1.864 1.864 0 0 1 0 2.636l-2.636 2.636a1.864 1.864 0 0 1-2.536.093l-1.45 1.452L7 11v.831L5.83 13 5 13v.83L3.83 15H1.002L1 12l5.374-5.38a1.864 1.864 0 0 1 .172-2.438l2.636-2.636a1.864 1.864 0 0 1 2.636 0zM7.068 7.34l-5.069 5.073.002 1.585h1.414l.584-.584.002-1.414 1.414-.002.584-.584.002-1.414 1.415-.002 1.156-1.154-1.504-1.504zm2.854-5.208-.081.072-2.636 2.636a.932.932 0 0 0-.072 1.237l.072.081 2.636 2.636a.932.932 0 0 0 1.237.072l.081-.072 2.636-2.636a.932.932 0 0 0 .072-1.237l-.072-.081-2.636-2.636a.932.932 0 0 0-1.237-.072zm1.237 1.39 1.318 1.318a.466.466 0 0 1-.659.659L10.5 4.182a.466.466 0 0 1 .659-.659z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,xe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ae=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M2 8h12v1H2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,De=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M9.506 2.432a.5.5 0 0 1 .779-.333l.065.054 3.546 3.477a.5.5 0 0 1-.162.82l-.086.027-1.719.36L9.48 9.211v2.869a.501.501 0 0 1-.72.45l-.071-.043-.066-.057-1.63-1.662-2.645 2.647a.5.5 0 0 1-.275.14l-.078.007H2.992a.5.5 0 0 1-.492-.41l-.008-.09v-.982a.5.5 0 0 1 .094-.292l.05-.06L5.298 9.04l-1.66-1.691a.5.5 0 0 1 .272-.844l.086-.007h2.8l2.446-2.401.265-1.665zM5.997 9.754l-2.505 2.531v.276h.295l2.503-2.506-.122-.127-.17-.174zm4.344-6.209-.138.873a.5.5 0 0 1-.091.218l-.053.06-2.709 2.66a.5.5 0 0 1-.253.133L7 7.499l-1.815-.001 1.094 1.113.048.035.045.042.575.606 1.533 1.562V9a.5.5 0 0 1 .057-.23l.042-.068.053-.061 2.704-2.622a.5.5 0 0 1 .156-.102l.09-.028.946-.199-2.187-2.145z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,ke=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M12 2v3h2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-2v2H4v-2H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2V2h8zm-1 7.01H5.02V12H5v1h6V9.01zM14 6H2v5h2V8h8l.002.848.006.046.007.116V11H14V6zm-3-3H5v2h6V3z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,Fe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm2.404 4.576c0 .215-.014.408-.042.581a2.365 2.365 0 0 1-.329.882c-.08.126-.166.259-.259.399a7.103 7.103 0 0 1-.364.497 7.77 7.77 0 0 0-.371.504 3.08 3.08 0 0 0-.294.546c-.08.191-.119.39-.119.595v.63H7.058v-.56c0-.355.033-.663.098-.924s.191-.523.378-.784c.15-.224.296-.434.441-.63.145-.196.27-.383.378-.56.107-.177.196-.35.266-.518.07-.168.105-.336.105-.504 0-.13-.012-.268-.035-.413a1.082 1.082 0 0 0-.147-.399.888.888 0 0 0-.315-.301c-.135-.08-.315-.119-.539-.119a.984.984 0 0 0-.805.371c-.2.247-.31.576-.329.987a59.858 59.858 0 0 0-.77-.105A30.583 30.583 0 0 0 5 5.66c.037-.439.138-.824.301-1.155.163-.331.366-.609.609-.833.243-.224.523-.392.84-.504A3.049 3.049 0 0 1 7.772 3c.868 0 1.524.233 1.967.7.443.467.665 1.092.665 1.876zm-3.36 7.238V11.26h1.568v1.554H7.044z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Se=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 13A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm2.232-8.3c0 .192-.014.364-.042.516a2.238 2.238 0 0 1-.312.804c-.076.12-.162.252-.258.396a4.866 4.866 0 0 1-.3.39c-.112.132-.218.27-.318.414a2.74 2.74 0 0 0-.252.444 1.109 1.109 0 0 0-.102.456v.72h-.996v-.564c0-.288.034-.544.102-.768a2.03 2.03 0 0 1 .342-.648l.756-1.02c.208-.28.32-.564.336-.852 0-.168-.012-.338-.036-.51a1.294 1.294 0 0 0-.156-.468.922.922 0 0 0-.348-.342c-.152-.088-.352-.132-.6-.132-.184 0-.35.038-.498.114a1.14 1.14 0 0 0-.372.3c-.1.124-.178.266-.234.426-.056.16-.088.32-.096.48l-.996-.144c.048-.36.14-.674.276-.942a2.2 2.2 0 0 1 .504-.666c.2-.176.426-.306.678-.39.252-.084.518-.126.798-.126.696 0 1.224.192 1.584.576.36.384.54.896.54 1.536zM7.628 12v-1.068h1.008V12H7.628z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Be=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14.93 7A7 7 0 0 1 3 12.898V15H2v-4h4v1l-2.471.001A6 6 0 0 0 13.917 7h1.012zm-1.001-6v4h-4V4h2.47A6 6 0 0 0 2.012 9.001L1 9a7 7 0 0 1 11.93-5.898V1h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,$e=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m8.01 7.345 3.324-3.324.665.665L8.675 8.01l3.304 3.304-.665.665L8.01 8.675 4.685 12l-.665-.665L7.345 8.01 4 4.665 4.665 4 8.01 7.345z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ie=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11.992 1v1l-.117.007a1 1 0 0 0-.883.993v2l-.005.157a2.013 2.013 0 0 1-.935 1.57l-.176.103c-.498.302-.882.673-.882 1.17l.001.057c.028.469.402.822.881 1.113l.117.068c.534.303.915.868.987 1.531l.007.074.005.157v2l.007.117a1 1 0 0 0 .764.857l.112.02.117.006v1H3.997v-1l.117-.007a1 1 0 0 0 .876-.876L4.997 13v-2l.005-.157.007-.074a2.015 2.015 0 0 1 .856-1.45l.13-.08.118-.07c.43-.26.777-.573.862-.975l.018-.137L6.995 8c0-.452-.318-.8-.75-1.085l-.132-.085-.176-.103a2.005 2.005 0 0 1-.916-1.405l-.019-.165L4.997 5V3a1 1 0 0 0-.883-.993L3.997 2V1h7.995zM7.678 13.105l-1.812.606c-.038.1-.085.198-.138.29h4.533c-.053-.092-.1-.19-.138-.29l-1.813-.606a.999.999 0 0 0-.632 0zM7.994 8v.074a2 2 0 0 1-.999 1.658c-.537.312-.852.6-.956.972l-.027.127-.007.052L6 11l-.001 1.666 1.68-.56a.999.999 0 0 1 .632 0l1.68.56V11l-.006-.117-.007-.052c-.063-.434-.386-.753-.983-1.099a2 2 0 0 1-.998-1.658L7.994 8zM9.99 5H6l.006.117.007.052c.063.434.386.753.983 1.099a2 2 0 0 1 .992 1.563L7.994 8a2 2 0 0 1 1-1.732c.597-.346.92-.665.983-1.099l.007-.052L9.99 5zm.27-3H5.728c.17.294.268.636.268 1h.003l-.001 1H9.99V3h.003c0-.364.097-.706.267-1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Oe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M6.5 1a5.5 5.5 0 0 1 4.187 9.067L15 14.5l-.5.5-4.433-4.313A5.5 5.5 0 1 1 6.5 1zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Le=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 10.841a2.84 2.84 0 1 1 0-5.68 2.84 2.84 0 0 1 0 5.68zm0-.786a2.054 2.054 0 1 0 0-4.108 2.054 2.054 0 0 0 0 4.108zm4.644.463.94 1.223c.109.14.11.336.003.477-.39.517-.851.977-1.367 1.368a.393.393 0 0 1-.477-.002l-1.224-.94a5.248 5.248 0 0 1-1.015.421l-.2 1.53a.393.393 0 0 1-.336.338c-.655.091-1.278.091-1.933.001a.393.393 0 0 1-.336-.339l-.2-1.528a5.249 5.249 0 0 1-1.017-.421l-1.224.94a.393.393 0 0 1-.477.002 7.098 7.098 0 0 1-1.367-1.366.393.393 0 0 1 .002-.477l.94-1.224a5.248 5.248 0 0 1-.422-1.018l-1.53-.2a.393.393 0 0 1-.338-.336 7.086 7.086 0 0 1 0-1.932.393.393 0 0 1 .339-.336l1.529-.2c.105-.355.246-.695.422-1.019l-.94-1.223a.393.393 0 0 1-.002-.477c.39-.516.86-.983 1.367-1.366a.393.393 0 0 1 .477.002l1.224.94a5.248 5.248 0 0 1 1.017-.421l.2-1.529a.393.393 0 0 1 .336-.338 6.915 6.915 0 0 1 1.933 0 .393.393 0 0 1 .336.339l.2 1.53c.353.104.693.245 1.015.42l1.224-.94a.393.393 0 0 1 .477-.001c.516.39.976.85 1.367 1.367a.393.393 0 0 1-.002.477l-.94 1.224c.174.322.315.661.42 1.014l1.528.2c.176.023.315.16.34.336.09.658.09 1.282-.001 1.934a.393.393 0 0 1-.339.336l-1.529.2a5.248 5.248 0 0 1-.42 1.014zm-.784.27a.393.393 0 0 1-.023-.444c.244-.399.424-.832.533-1.288a.393.393 0 0 1 .332-.298l1.485-.194a6.043 6.043 0 0 0 0-1.126l-1.485-.194a.393.393 0 0 1-.332-.298c-.11-.456-.29-.89-.533-1.288a.393.393 0 0 1 .023-.445l.914-1.189a6.253 6.253 0 0 0-.796-.796l-1.188.914a.393.393 0 0 1-.445.023 4.465 4.465 0 0 0-1.289-.535.393.393 0 0 1-.298-.331l-.194-1.486a6.046 6.046 0 0 0-1.125 0l-.194 1.484a.393.393 0 0 1-.298.332c-.458.11-.892.29-1.291.535a.393.393 0 0 1-.445-.024l-1.188-.913a6.348 6.348 0 0 0-.796.795l.913 1.187c.1.13.109.307.024.446-.245.4-.426.834-.536 1.291a.393.393 0 0 1-.332.298l-1.484.195a6.317 6.317 0 0 0 0 1.124l1.484.194c.162.021.294.14.332.298.11.458.29.892.536 1.292a.393.393 0 0 1-.024.445l-.913 1.188c.239.286.507.554.796.795l1.188-.913c.129-.1.306-.109.445-.024.4.245.834.425 1.29.535.16.038.278.17.299.331l.194 1.485c.378.035.747.035 1.125 0l.194-1.486a.393.393 0 0 1 .298-.331c.457-.11.89-.291 1.289-.535a.393.393 0 0 1 .445.023l1.188.913c.289-.24.555-.507.796-.796l-.914-1.188z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Te=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m7.895 5.895.701.703-1.739 1.738-.1.105c-.894.967-1.013 2.318-.265 3.067.747.747 2.088.627 3.052-.25l.105-.101 3.494-3.493.1-.105c.894-.967 1.013-2.318.265-3.067-.46-.459-1.142-.59-1.824-.42l-.791-.792c1.16-.495 2.467-.339 3.316.51 1.127 1.128 1.035 3.06-.183 4.388l-.117.123-3.608 3.608c-1.329 1.328-3.348 1.463-4.51.3-1.127-1.127-1.035-3.06.183-4.387l.117-.123 1.804-1.804zM5.7 4.091c1.329-1.328 3.348-1.463 4.51-.3 1.127 1.127 1.035 3.06-.183 4.387l-.117.123-1.805 1.804-.702-.701 1.74-1.74.101-.105c.894-.967 1.013-2.318.265-3.067-.747-.747-2.088-.627-3.052.25l-.105.101-3.494 3.493-.1.105c-.894.967-1.013 2.318-.265 3.067.46.458 1.142.59 1.823.42l.791.792c-1.16.495-2.466.338-3.315-.51-1.127-1.128-1.035-3.06.183-4.388l.117-.123L5.7 4.091z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Me=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 2a3 3 0 0 1 3 3v2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1V5a3 3 0 0 1 3-3zm4 6H4v6h8V8zm-4 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-7a2 2 0 0 0-1.995 1.85L6 5v2h4V5a2 2 0 0 0-1.85-1.995L8 3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ve=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M12 8v5.156l2.364-2.363.707.707-3.535 3.536L8 11.5l.707-.707L11 13.086V8h1zM9.5 1a.5.5 0 0 1 .492.41L10 1.5v.502h1.002a2 2 0 0 1 1.994 1.852l.006.149v2.995h-1L12 6H1.999L2 12.026a1 1 0 0 0 .883.993l.117.007h4v1H3a2 2 0 0 1-1.995-1.85L1 12.025V4.003a2 2 0 0 1 1.85-1.995L3 2.003l1-.001V1.5a.5.5 0 0 1 .992-.09L5 1.5v.502h4V1.5a.5.5 0 0 1 .5-.5zM9 3.002H5V3.5a.5.5 0 0 1-.992.09L4 3.5v-.498H3a1 1 0 0 0-.993.884L2 4.003 1.999 5h10.002v-.997a1 1 0 0 0-.882-.993l-.117-.007L10 3.002V3.5a.5.5 0 0 1-.992.09L9 3.5v-.498z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Re=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m6.066 5.938-4.448.092-.086.008a.5.5 0 0 0-.206.89L4.87 9.616l-1.288 4.26-.018.084a.5.5 0 0 0 .782.47L8 11.89l3.653 2.542.074.043a.5.5 0 0 0 .69-.598l-1.289-4.26 3.546-2.688.064-.057a.5.5 0 0 0-.356-.841l-4.449-.092-1.46-4.202a.5.5 0 0 0-.945 0L6.066 5.938z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,He=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14.76 2.158c.2.172.276.493.224.96l-2.12 9.961c-.105.495-.293.787-.564.876-.271.09-.6.045-.984-.134l-3.723-2.746c-.517-.36-.776-.67-.776-.932 0-.261.203-.551.608-.87l4.02-4.027c.04-.116.028-.21-.033-.28-.06-.071-.176-.071-.345 0L5.37 8.72c-.239.178-.447.296-.626.354-.178.058-.399.058-.661 0l-2.513-.878C1.19 8.066 1 7.86 1 7.581c0-.28.14-.493.417-.641l12.431-4.876c.407-.11.71-.078.912.094z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,ze=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1-5 11.898V15H2v-4h4v1l-2.471.001A6 6 0 1 0 8 2V1zm0 3v4.593l2.536 2.535-.708.708L7 9.007 7.007 9H7V4h1zM1.037 7.257l.995.104a6.055 6.055 0 0 0 .03 1.496l.037.219-.984.18L1.073 9a7.1 7.1 0 0 1-.06-1.442l.024-.3zm1.525-3.674.776.63c-.29.357-.537.746-.737 1.158l-.142.314-.923-.385a7.01 7.01 0 0 1 .822-1.453l.204-.264zm3.297-2.26.305.953c-.438.14-.857.33-1.25.566l-.289.186-.563-.827c.456-.31.951-.569 1.478-.766l.32-.111z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Pe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m6.066 5.938-4.448.092-.086.008a.5.5 0 0 0-.206.89L4.87 9.616l-1.288 4.26-.018.084a.5.5 0 0 0 .782.47L8 11.89l3.653 2.542.074.043a.5.5 0 0 0 .69-.598l-1.289-4.26 3.546-2.688.064-.057a.5.5 0 0 0-.356-.841l-4.449-.092-1.46-4.202a.5.5 0 0 0-.945 0L6.066 5.938zM8 3.423l1.103 3.173.036.08a.5.5 0 0 0 .426.256L12.924 7l-2.677 2.03-.066.06a.5.5 0 0 0-.11.483l.972 3.215-2.757-1.918-.077-.044a.5.5 0 0 0-.495.044l-2.758 1.918.974-3.215.018-.087a.5.5 0 0 0-.195-.456L3.075 7l3.36-.068a.5.5 0 0 0 .462-.336L8 3.423z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,je=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M15 12v1H4v-1h11zM2 12v1H1v-1h1zm13-3v1H4V9h11zM2 9v1H1V9h1zm13-3v1H4V6h11zM2 6v1H1V6h1zm13-3v1H4V3h11zM2 3v1H1V3h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ne=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m8.036 5 3.535 3.536-.707.707L8.5 6.88v8.156h-1V6.95L5.207 9.243 4.5 8.536 8.036 5zM15 1v3h-1l.001-2H2v2H1V1h14z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ue=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11 8a3 3 0 0 1 2.445 4.738l2.176 2.176-.707.707-2.176-2.176A3 3 0 1 1 11 8zm-3.874 4c.092.356.23.692.41 1.001L4 13v-1h3.126zM2 12v1H1v-1h1zm9-3a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM7.535 9c-.179.31-.318.645-.409 1H4V9h3.535zM2 9v1H1V9h1zm13-3v1H4V6h11zM2 6v1H1V6h1zm13-3v1H4V3h11zM2 3v1H1V3h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ke=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M10.886 5.71a5.216 5.216 0 0 1-.44 1.854c.084.059.163.127.239.202l3.758 3.759a2 2 0 0 1 0 2.828l-.099.1a2 2 0 0 1-2.828 0l-3.76-3.76a2.015 2.015 0 0 1-.206-.242 5.191 5.191 0 0 1-1.84.435c-2.728.13-4.834-1.977-4.704-4.705a5.291 5.291 0 0 1 .765-2.48L4.63 6.559a1 1 0 0 0 1.32.083l.094-.083.782-.782a1 1 0 0 0 .083-1.32l-.083-.094L4.043 1.58a5.249 5.249 0 0 1 2.138-.575c2.728-.13 4.835 1.976 4.705 4.705zM6.422 2l-.193.005c-.086.004-.17.01-.256.02l-.064.008 1.665 1.668.124.142a2 2 0 0 1-.047 2.51l-.119.131-.827.824-.142.123a2 2 0 0 1-2.51-.046l-.131-.12-1.807-1.807-.052.247a4.132 4.132 0 0 0-.037.26l-.021.264c-.102 2.139 1.519 3.76 3.658 3.658.425-.02.844-.107 1.246-.255l.24-.096.738-.324.473.652.05.063.054.06 3.759 3.758a1 1 0 0 0 1.32.083l.094-.083.1-.099a1 1 0 0 0 .082-1.32l-.083-.094-3.759-3.759-.055-.051-.055-.043-.664-.472.328-.746c.21-.479.332-.985.356-1.498C9.986 3.59 8.465 2.001 6.422 2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,qe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m13.732 2.267.75.75-1.749 1.75C14.195 5.972 15 7.447 15 8c0 1-2.625 5-7 5a7.064 7.064 0 0 1-2.885-.616L3.017 14.48l-.75-.75L13.732 2.267zm-1.713 3.214-1.285 1.283a3 3 0 0 1-3.97 3.97l-.883.883A6.04 6.04 0 0 0 8 12c1.71 0 3.25-.713 4.493-1.899a7.19 7.19 0 0 0 1.192-1.47l.123-.218.093-.186.083-.186L14 8l-.036-.088-.079-.173a4.868 4.868 0 0 0-.2-.37 7.19 7.19 0 0 0-1.192-1.47 7.816 7.816 0 0 0-.474-.418zM8 3c1.123 0 2.131.264 3.009.673l-.761.76A6.047 6.047 0 0 0 8 4c-1.71 0-3.25.713-4.493 1.899a7.19 7.19 0 0 0-1.192 1.47l-.123.218-.093.186-.083.186L2 8l.036.088.079.173c.05.104.117.232.2.37a7.19 7.19 0 0 0 1.192 1.47c.185.177.377.343.575.498l-.715.715C1.842 10.094 1 8.566 1 8c0-1 2.625-5 7-5zm1.95 4.551-2.4 2.398A2 2 0 0 0 9.95 7.551zM8 5c.488 0 .95.117 1.357.324l-.765.765a2 2 0 0 0-2.503 2.503l-.765.765A3 3 0 0 1 8 5z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,We=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 7a4 4 0 0 1 3.564 2.182A2.5 2.5 0 0 1 15 11.5V15H1v-3.5a2.5 2.5 0 0 1 3.437-2.318A3.998 3.998 0 0 1 8 7zm0 1a3 3 0 0 0-3 3v3h5.999v-3.029l-.004-.147A3 3 0 0 0 8 8zm4.5 2c-.174 0-.342.03-.5.085V14h2v-2.5a1.5 1.5 0 0 0-1.5-1.5zm-9 0a1.5 1.5 0 0 0-1.493 1.356L2 11.5V14h2v-3.915A1.499 1.499 0 0 0 3.5 10zM13 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM3 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm10 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm5-4a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zm0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ye=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 3c4.375 0 7 4 7 5s-2.625 5-7 5-7-4-7-5 2.625-5 7-5zm0 1c-1.71 0-3.25.713-4.493 1.899a7.19 7.19 0 0 0-1.192 1.47l-.123.218C2.066 7.826 2 7.997 2 8l.036.088.079.173c.05.104.117.232.2.37a7.19 7.19 0 0 0 1.192 1.47C4.75 11.287 6.29 12 8 12c1.71 0 3.25-.713 4.493-1.899a7.19 7.19 0 0 0 1.192-1.47l.123-.218c.126-.239.192-.41.192-.413l-.036-.088a4.75 4.75 0 0 0-.279-.543 7.19 7.19 0 0 0-1.192-1.47C11.25 4.713 9.71 4 8 4zm0 1a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ge=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3 7a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1V1h8v1h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1a3 3 0 0 1-3 3h-.5v4H11v1H5v-1h2.5v-4H7a3 3 0 0 1-3-3H3zm8-5H5v5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V2zM4 3H3v3h1V3zm9 0h-1v3h1V3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Je=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m9.399 3.019 1.507.076c1.555.12 2.593.354 3.114.7C14.673 4.22 15 5.62 15 8s-.327 3.802-.98 4.268c-.757.4-2.05.654-3.881.758l-.669.03c-.23.009-.467.015-.713.02L8 13.08l-.757-.006c-.245-.004-.483-.01-.713-.018l-.667-.03c-1.828-.105-3.116-.358-3.863-.759-.667-.464-1-1.851-1-4.162s.345-3.748 1.036-4.31c.467-.327 1.4-.553 2.798-.678l1.606-.094L9.4 3.019zM6.452 4.025l-1.536.087-.43.042-.896.126c-.456.085-.768.184-.923.291-.36.294-.64 1.396-.665 3.251L2 8.106c0 1.811.227 2.92.49 3.262l.047.051.049.024c.555.258 1.5.446 2.81.549l1.715.08h1.78l1.43-.06c1.464-.096 2.511-.293 3.116-.571l.038-.02c.263-.269.501-1.345.523-3.146a40.66 40.66 0 0 0-.012-1.06l-.103-1.27c-.103-.77-.262-1.216-.417-1.317-.219-.145-.633-.272-1.23-.373l-.38-.057-.653-.073-1.02-.073-1.186-.042L8 4l-1.548.025zm.012 2.08L10.192 8 6.464 9.948V6.105z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,Ze=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14 8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h5zm0 1H9v5h5V9zM6 8a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h4zm0 1H2v3h4V9zm8-8a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h3zM8 1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6zm6 1h-3v4h3V2zM8 2H2v4h6V2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Xe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 9.5a3 3 0 0 0-2.986 2.705c.88.506 1.9.795 2.986.795 1.087 0 2.107-.29 2.986-.795A3 3 0 0 0 8 10.5zM8 2a6 6 0 0 0-3.878 10.579l.002-.07a4.002 4.002 0 0 1 7.755.011.172.172 0 0 1 .004.054A6 6 0 0 0 8 2zm0 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zm0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Qe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3.272 4c0 1.705.161 2.854.809 3.934.647 1.08 1.752 1.92 2.696 2.162V4h2.335v3.599c.95-.48 1.619-.937 2.006-1.371.388-.434.778-1.177 1.172-2.228h2.271c-.184 1.074-.56 2.034-1.128 2.879-.567.845-1.18 1.369-1.837 1.572 1.107.809 1.88 1.505 2.315 2.088.437.583.8 1.403 1.089 2.461h-2.418c-.588-1.176-1.076-1.94-1.464-2.29-.387-.35-1.056-.63-2.006-.843V13c-2.631-.046-4.64-.866-6.03-2.461C1.695 8.944 1 6.764 1 4h2.272z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,tn=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M5.95 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm6 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2zM2.5 2h1.285l.083.007a.5.5 0 0 1 .552.324l.023.087.268 1.599c.063-.012.122-.017.181-.017h8.877a1 1 0 0 1 .987 1.164l-.667 4a1 1 0 0 1-.986.836H5.707l.167 1h6.576a.5.5 0 0 1 .09.992l-.09.008-6.918-.007-.069.007H5.45a.503.503 0 0 1-.47-.33l-.023-.088L3.526 3H2.5a.5.5 0 1 1 0-1zm11.27 3H4.891l.718 4h7.493l.666-4z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,en=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 2a3 3 0 0 1 3 3h-1a2 2 0 0 0-1.85-1.995L8 3a2 2 0 0 0-1.995 1.85L6 5v2h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1V5a3 3 0 0 1 3-3zm4 6H4v6h8V8zm-4 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,nn=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M6 12a2 2 0 1 1-4 0h-.5a.5.5 0 0 1-.492-.41L1 11.5v-9l.008-.09L1 2.498a.5.5 0 0 1 .41-.492l.09-.008h9a.5.5 0 0 1 .492.41l.008.09V3h1.673a.5.5 0 0 1 .393.191l.05.078 1.827 3.499a.5.5 0 0 1 .05.151L15 7V11.5a.5.5 0 0 1-.41.492L14.5 12h-2a2 2 0 1 1-4 0H6zm-2-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm6.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM10 2.998H2v8.001h.268a2 2 0 0 1 3.464 0h3.036A2.004 2.004 0 0 1 10 10.064V2.998zm4 5.001h-3l.001 2.064c.525.136.966.479 1.231.937H14V8zM12.369 4H11v3h2.936l-1.567-3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,rn=[B,I,L,M,R,z,j,U,q,Y,J,X,tt,nt,rt,st,at,ct,ft,pt,mt,_t,wt,Ct,xt,Dt,Ft,Bt,It,Lt,Mt,Rt,zt,jt,Ut,qt,Yt,Jt,Xt,te,ne,re,se,ae,ce,fe,pe,me,ge,_e,ye,we,be,Ce,Ee,xe,Ae,De,ke,Fe,Se,Be,$e,Ie,Oe,Le,Te,Me,Ve,Re,He,ze,Pe,je,Ne,Ue,Ke,qe,We,Ye,Ge,Je,Ze,Xe,Qe,tn,en,nn],on=function(t){var e,i=n(rn);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.name&&t.component(r.name,r)}}catch(t){i.e(t)}finally{i.f()}};"undefined"!=typeof window&&window.Vue&&on(window.Vue);var sn={Add:B,ArrowLeftBottom:I,ArrowLeftTop:L,ArrowLeft:M,AlertFill:R,ArrowUp:z,ArrowRight:j,Alert:U,Calendar:q,CardBank:Y,Category:J,CheckFill:X,ArrowRightTop:tt,Check:nt,ChevronDown:rt,ChevronRight:st,ChevronUp:at,ChevronLeft:ct,Clock:ft,Comment:pt,Compare:mt,ChocholateMenu:_t,Copy:wt,DataCards:Ct,Delete:xt,DocDownload:Dt,Doc:Ft,Company:Bt,Download:It,Draggable:Lt,Directory:Mt,Error:Rt,External:zt,FacebookFill:jt,Facebook:Ut,Edit:qt,Filters:Yt,Globe:Jt,Infinity:Xt,ErrorFill:te,Enter:ne,InfoFill:re,Info:se,ArrowDown:ae,ArrowsVertical:ce,ArrowRightBottom:fe,Loader:pe,Location:me,Logout:ge,Login:_e,Menu:ye,Notification:we,OverflowMenuHorizontal:be,OverflowMenuVertical:Ce,Password:Ee,Plus:xe,Minus:Ae,Pin:De,Printer:ke,QuestionFill:Fe,Question:Se,Refresh:Be,Remove:$e,Sandglass:Ie,Search:Oe,Settings:Le,Link:Te,Locked:Me,SortDate:Ve,StarFill:Re,Telegram:He,Timer:ze,Star:Pe,List:je,Upload:Ne,ListSearch:Ue,Tool:Ke,VisibilityOff:qe,UserGroup:We,VisibilityOn:Ye,Winner:Ge,Youtube:Je,Workspace:Ze,UserAvatar:Xe,Vk:Qe,ShoppingCart:tn,Unlocked:en,Truck:nn},un=_({name:"CdsIcon",components:sn,inheritAttrs:!1,props:{name:{type:String,required:!1,default:"",description:"Название иконки"}},computed:{componentName:function(){return this.name&&this.name[0].toUpperCase()+this.name.slice(1)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("i",t._g(t._b({staticClass:"cds-ico"},"i",t.$attrs,!1),t.$listeners),[t._t("default"),t._v(" "),t.name?n(t.componentName,{tag:"component"}):t._e()],2)}),[],!1,null,null,null).exports;un.install=function(t){t.component(un.name,un)},"undefined"!=typeof window&&window.Vue&&un.install(window.Vue);var an=un,ln=1e6;function cn(){var t=ln.toString(36);return ln+=1,t}var dn={beforeCreate:function(){this.uuid=cn()},computed:{id:function(){return this.uuid}},methods:{getDynamicItemIdByIndex:function(t){return"".concat(this.id,"_").concat(t)},generateDynamicId:cn}},fn={computed:{preparedLabel:function(){var t=this.optional?" (".concat(this.optionalLabel,")"):"";return"".concat(this.label).concat(t)}}},hn={parentType:"",mounted:function(){this.validateParent()},updated:function(){this.validateParent()},methods:{validateParent:function(){var t,e=this.$options._componentTag,n=this.$parent.$options._componentTag,i=this.$options.parentType,r=!0;return i?(r=n===i,(r=(t=i,[t,t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})).replace(/^-/,"").replace(/([0-9]+)/g,"-$1")]).includes(n))||console.error("".concat(e,": компонент должен находиться внутри инстанса ").concat(i)),r):(console.warn("".concat(e,": validateParent не задан параметр parentType")),r)}}},pn=(i(5827),{childrenType:"",minChildrenCount:0,mounted:function(){this.validateChildren()},updated:function(){this.validateChildren()},methods:{validateChildren:function(){var t=this.$options._componentTag,e=this.$options,n=e.childrenType,i=e.minChildrenCount;if(!n&&!i)return console.warn("".concat(t,": ValidateChildren не задан не один из параметров (childrenType, minChildrenCount)")),!1;return[this._validateChildrenType(),this._validateMinChildrenCount()].reduce((function(t,e){return t&&e}),!0)},_validateChildrenType:function(){var t=this.$options._componentTag,e=this.$options.childrenType,n=!0;return e&&this.$slots.default?((n=this.$slots.default.every((function(t){return!t.componentOptions||(n=e,[n,n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})).replace(/^-/,"").replace(/([0-9]+)/g,"-$1")]).includes(t.componentOptions.tag);var n})))||console.error("".concat(t,": дочерние компоненты должны быть инстансы ").concat(e)),n):n},_validateMinChildrenCount:function(){var t=this.$options._componentTag,e=this.$options.minChildrenCount,n=!0;if(!e)return n;this.$slots.default?n=this.$slots.default.reduce((function(t,e){return e.componentOptions?++t:t}),0)>=e:n=!1;return n||console.error("".concat(t,": количество внутренних элементов минимум ").concat(e)),n}}}),vn={direction:["right","left","top","bottom"]},mn=_({name:"CdsTooltipInteractive",components:{CdsIcon:an},mixins:[dn],inheritAttrs:!1,props:{visible:{type:Boolean,default:!1,description:"Видимый или нет"},direction:{type:String,default:"right",available:vn.direction,description:"Позиционирование",validator:function(t){var e=vn.direction,n=t.match(new RegExp("(".concat(e.join("|"),")")));return n||console.warn("TooltipInteractive.direction должно быть одно из следующих: ".concat(e.join(", "))),n}}},data:function(){return{isVisible:!1,left:-99999,top:0}},computed:{classesTooltip:function(){return c({"cds-tooltip":!0},m.active,this.isVisible)},classesContent:function(){var t;return c(t={"cds-tooltip__interactive":!0},this.direction,this.direction),c(t,m.active,this.isVisible),t},events:function(){return p(p({},this.$listeners),{},{focus:this._onFocus,blur:this._onBlur,focusout:this._checkFocusOut,mousedown:this._onMouseDown})}},watch:{visible:{immediate:!0,handler:function(t){this.isVisible=t}}},mounted:function(){this.tooltipContent=document.body.appendChild(this.$refs.content),this.visible?this.show():this.hide()},beforeDestroy:function(){this._positionListen(!1),this.tooltipContent&&this.$el.appendChild(this.tooltipContent)},methods:{_positionListen:function(t){t?(window.addEventListener("scroll",this._calculatePosition),window.addEventListener("resize",this._calculatePosition)):(window.removeEventListener("scroll",this._calculatePosition),window.removeEventListener("resize",this._calculatePosition))},_calculatePosition:function(){if(this.$refs.trigger){var t=this.$refs.iconTrigger.getBoundingClientRect(),e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;"top"===this.direction||"bottom"===this.direction?(this.left=t.left+.5+(this.$refs.iconTrigger.offsetWidth-this.$refs.content.offsetWidth)/2+e,"bottom"===this.direction?this.top=t.bottom+15+n:this.top=t.top-15-this.$refs.content.offsetHeight+n):(this.top=t.top+(this.$refs.iconTrigger.offsetHeight-.5-this.$refs.content.offsetHeight)/2+n,"left"===this.direction?this.left=t.left-10-this.$refs.content.offsetWidth+e:this.left=t.right+15+e)}else this._positionListen(!1)},show:function(){var t=this;this.isVisible=!0,this._positionListen(!0),this.$nextTick((function(){t._calculatePosition()})),this.$emit("show",!0)},hide:function(){this.isVisible=!1,this._positionListen(!1),this.$emit("hide",!1)},_checkFocusOut:function(t){this.isVisible=t.relatedTarget===this.$refs.trigger||this.$refs.content&&this.$refs.content.contains(t.relatedTarget)},_onFocus:function(t){this.show(),this.$emit("focus",t)},_onBlur:function(t){this.hide(),this.$emit("blur",t)},_onMouseDown:function(t){this.show(),this.$emit("onmousedown",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"trigger",class:t.classesTooltip},[t._t("label"),t._v(" "),n("span",t._g({ref:"iconTrigger",staticClass:"cds-tooltip__trigger",attrs:{tabindex:"0",role:"button","aria-describedby":t.id}},t.events),[t._t("trigger",(function(){return[n("CdsIcon",{attrs:{name:"question"}})]}))],2),t._v(" "),n("div",{ref:"content",class:t.classesContent,style:{left:t.left+"px",top:t.top+"px"},attrs:{role:"tooltip","aria-hidden":[!t.isVisible]}},[t._t("content")],2)],2)}),[],!1,null,null,null).exports,gn=".75rem",_n={direction:["bottom","top","right","left"],align:["center","start","end"]},yn=_({name:"CdsTooltip",mixins:[dn],props:{visible:{type:Boolean,default:!1,description:"Показан/Скрыт тултип"},direction:{type:String,default:"bottom",available:_n.direction,description:"Позиционирование",validator:function(t){return b(_n.direction,t,"TooltipIcon.direction")}},align:{type:String,default:"center",available:_n.align,description:"Выравнивание",validator:function(t){return b(_n.align,t,"TooltipIcon.align")}},tip:{type:String,required:!0,description:"Текст тултипа"},disabled:{type:Boolean,default:!1,description:"Заблокировать тултип"}},data:function(){return{isVisible:!1,left:-99999,top:0}},computed:{classesTooltip:function(){return c({"cds-tooltip":!0,"cds-tooltip__trigger":!0},m.disabled,this.disabledTooltip)},classesContent:function(){var t;return c(t={"cds-tooltip__content":!0},this.direction,this.direction),c(t,this.align,this.align),c(t,m.active,this.isVisible),t},events:function(){return p(p({},this.$listeners),{},{focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseleave:this._onMouseLeave})},disabledTooltip:function(){return this.disabled||!this.tip}},watch:{visible:function(t){t?this.show():this.hide()}},mounted:function(){this.tip&&window&&document&&(this.tooltipContent=document.body.appendChild(this.$refs.content),this.visible?this.show():this.hide())},beforeDestroy:function(){this._positionListen(!1),this.tooltipContent&&this.$el.appendChild(this.tooltipContent)},methods:{_positionListen:function(t){window&&document&&(t?(window.addEventListener("scroll",this._calculatePosition),window.addEventListener("resize",this._calculatePosition)):(window.removeEventListener("scroll",this._calculatePosition),window.removeEventListener("resize",this._calculatePosition)))},_calculatePosition:function(){if(this.$refs.trigger){var t=this.$refs.trigger.getBoundingClientRect(),e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;"top"===this.direction||"bottom"===this.direction?(this.left=t.left+.5+(this.$refs.trigger.offsetWidth-this.$refs.content.offsetWidth)/2+e,"bottom"===this.direction?this.top=t.bottom+10+n:this.top=t.top-15-this.$refs.content.offsetHeight+n,"start"===this.align&&(this.left+=this.$refs.content.offsetWidth/2-A(gn)),"end"===this.align&&(this.left-=this.$refs.content.offsetWidth/2-A(gn))):(this.top=t.top+(this.$refs.trigger.offsetHeight-.5-this.$refs.content.offsetHeight)/2+n,"left"===this.direction?this.left=t.left-10-this.$refs.content.offsetWidth+e:this.left=t.right+15+e)}else this._positionListen(!1)},show:function(){var t=this;this.disabled||this.tip&&(this.isVisible=!0,this._positionListen(!0),this.$nextTick((function(){t._calculatePosition()})),this.$emit("show",!0))},hide:function(){this.disabled||(this.isVisible=!1,this._positionListen(!1),this.$emit("hide",!1))},_onFocus:function(t){this.show(),this.$emit("focus",t)},_onBlur:function(t){this.hide(),this.$emit("blur",t)},_onMouseOver:function(t){this.show(),this.$emit("mouseover",t)},_onMouseLeave:function(t){this.hide(),this.$emit("mouseleave",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",t._g({ref:"trigger",class:t.classesTooltip,attrs:{"aria-label":t.tip,tabindex:"0","aria-describedby":t.id}},t.events),[t._t("default"),t._v(" "),n("span",{ref:"content",class:t.classesContent,style:{left:t.left+"px",top:t.top+"px"},attrs:{role:"tooltip","aria-hidden":[!t.isVisible]}},[t._v("\n "+t._s(t.tip)+"\n ")])],2)}),[],!1,null,null,null).exports,wn={direction:["bottom","top"],align:["center","start","end"]},bn=_({name:"CdsTooltipDefinition",mixins:[dn],props:{visible:{type:Boolean,default:!1,description:"Показан/Скрыт тултип"},direction:{type:String,default:"bottom",available:wn.direction,description:"Позиционирование",validator:function(t){return b(wn.direction,t,"TooltipDefinition.direction")}},align:{type:String,default:"center",available:wn.align,description:"Выравнивание",validator:function(t){return b(wn.align,t,"TooltipDefinition.align")}},tip:{type:String,required:!0}},data:function(){return{isVisible:!1,top:0,left:-99999}},computed:{classesTooltip:function(){return c({"cds-tooltip":!0,"cds-tooltip__trigger":!0,"cds-tooltip__definition":!0},m.active,this.isVisible)},classesContent:function(){var t;return c(t={"cds-tooltip__content":!0},this.direction,this.direction),c(t,this.align,this.align),c(t,m.active,this.isVisible),t},events:function(){return p(p({},this.$listeners),{},{focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseleave:this._onMouseLeave})}},watch:{visible:function(t){t?this.show():this.hide()}},mounted:function(){window&&document&&(this.tooltipContent=document.body.appendChild(this.$refs.content),this.visible?this.show():this.hide())},beforeDestroy:function(){this._positionListen(!1),this.tooltipContent&&this.$el.appendChild(this.tooltipContent)},methods:{_positionListen:function(t){window&&document&&(t?(window.addEventListener("scroll",this._calculatePosition),window.addEventListener("resize",this._calculatePosition)):(window.removeEventListener("scroll",this._calculatePosition),window.removeEventListener("resize",this._calculatePosition)))},_calculatePosition:function(){if(this.$refs.trigger){var t=this.$refs.trigger.getBoundingClientRect(),e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;this.left=t.left+.5+(this.$refs.trigger.offsetWidth-this.$refs.content.offsetWidth)/2+e,"bottom"===this.direction?this.top=t.bottom+8+n:this.top=t.top-4-this.$refs.content.offsetHeight+n,"start"===this.align&&(this.left+=this.$refs.content.offsetWidth/2-A(gn)),"end"===this.align&&(this.left-=this.$refs.content.offsetWidth/2-A(gn))}else this._positionListen(!1)},show:function(){var t=this;this.isVisible=!0,this._positionListen(!0),this.$nextTick((function(){t._calculatePosition()})),this.$emit("show",!0)},hide:function(t){this.isVisible=!1,this._positionListen(!1),this.$emit("blur",t),this.$emit("hide",!1)},_onFocus:function(t){this.show(),this.$emit("focus",t)},_onBlur:function(t){this.hide(),this.$emit("blur",t)},_onMouseOver:function(t){this.show(),this.$emit("mouseover",t)},_onMouseLeave:function(t){this.hide(),this.$emit("mouseleave",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("dfn",t._g({ref:"trigger",class:t.classesTooltip,attrs:{tabindex:"0","aria-describedby":t.id}},t.events),[t._t("default"),t._v(" "),n("span",{ref:"content",class:t.classesContent,style:{left:t.left+"px",top:t.top+"px"},attrs:{role:"tooltip","aria-hidden":[!t.isVisible]}},[n("cds-button",{staticClass:"cds-tooltip__content--arrow",attrs:{"icon-only":""},on:{click:t.hide}},[n("cds-icon",{attrs:{name:"chevron-down"}})],1),t._v("\n "+t._s(t.tip)+"\n ")],1)],2)}),[],!1,null,null,null).exports;yn.install=function(t){t.component(yn.name,yn)},mn.install=function(t){t.component(mn.name,mn)},bn.install=function(t){t.component(bn.name,bn)},"undefined"!=typeof window&&window.Vue&&(yn.install(window.Vue),mn.install(window.Vue),bn.install(window.Vue));var Cn={status:["info","warning","success","error"],level:["inline","page"]},En=_({name:"CdsNotification",components:{CdsTooltip:yn,VRuntimeTemplate:f,CdsButton:k,CdsIcon:an},props:{important:{type:Boolean,default:!1,description:"Акцент"},level:{type:String,default:"inline",available:Cn.level,description:"Уровень",validator:function(t){return b(Cn.level,t,"Notification.level")}},status:{type:String,required:!1,default:"info",available:Cn.status,description:"Статус",validator:function(t){return b(Cn.status,t,"Notification.status")}},title:{type:String,default:null,description:"Заголовок"},content:{type:String,default:null,description:"Текст сообщения"},duration:{type:[String,Number],default:0,description:"Время после которого уведомление исчезает (мс)"},action:{type:String,default:null,description:"Дополнительное действие"},position:{type:String,default:"bottom-right",description:"Позиционирование уведомления (bottom-right, top-right, top-left, bottom-left, top-center, bottom-center)"},dismissButton:{type:Boolean,default:!1,description:"Действие отклонения"}},data:function(){return{isVisible:!0,isProgrammatically:!1}},computed:{styles:function(){var t;return c(t={},"cds-notification__".concat(this.status),this.status),c(t,"cds-notification__".concat(this.level),this.level),c(t,"cds-notification__important",this.important),t},currentStatusIcon:function(){return"warning"===this.status?"alert-fill":"success"===this.status?"check-fill":this.status+"-fill"},contentTemplate:function(){return'<div class="cds-notification__content">'.concat(this.content,"</div>")},hasContent:function(){return this.$slots.content||this.$scopedSlots.content},actionTemplate:function(){return'<div class="cds-notification__actions">'.concat(this.action,"</div>")},hasActions:function(){return this.$slots.actions||this.$scopedSlots.actions},role:function(){return this.dismissButton||this.action?"alertdialog":"alert"}},created:function(){this.isProgrammatically&&(this.isVisible=!1)},mounted:function(){var t=this;this.duration&&setTimeout((function(){t.hide()}),+this.duration)},methods:{_dismissNotice:function(){"page"===this.level&&this.hide(),this.$emit("destroy")},hide:function(){this.isVisible=!1}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.isVisible?n("div",{class:["cds-notification",t.styles],attrs:{role:t.role}},[n("div",{staticClass:"cds-notification__status"},[n("CdsIcon",{attrs:{name:t.currentStatusIcon}})],1),t._v(" "),n("div",{staticClass:"cds-notification__body"},[t.title?n("div",{staticClass:"cds-notification__title",domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t.content?n("VRuntimeTemplate",{attrs:{template:t.contentTemplate}}):t._e(),t._v(" "),t.hasContent?n("div",{staticClass:"cds-notification__content"},[t._t("content")],2):t._e(),t._v(" "),t.action?n("VRuntimeTemplate",{attrs:{template:t.actionTemplate}}):t._e(),t._v(" "),t.hasActions?n("div",{staticClass:"cds-notification__actions"},[t._t("actions")],2):t._e()],1),t._v(" "),n("div",{staticClass:"cds-notification__dismiss"},[t.dismissButton?n("CdsTooltip",{attrs:{tip:"Закрыть"}},[n("CdsButton",{attrs:{"icon-only":""},on:{click:function(e){return t._dismissNotice()}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"remove"}})]},proxy:!0}],null,!1,63127537)})],1):t._e()],1)]):t._e()])}),[],!1,null,null,null).exports,xn=_({name:"CdsNotificationSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"cds-notification__skeleton"},[e("cds-skeleton",{attrs:{width:"100%",height:"42px"}})],1)}),[],!1,null,null,null).exports;En.install=function(t){t.component(En.name,En)},xn.install=function(t){t.component(xn.name,xn)},"undefined"!=typeof window&&window.Vue&&(En.install(window.Vue),xn.install(window.Vue));var An=s().extend(En),Dn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new An({components:{CdsButton:k},propsData:{title:t.title,position:t.position,level:"page",duration:+t.duration,status:t.status,important:t.important,dismissButton:t.dismissButton,content:t.content,action:t.action}});e.$data.isProgrammatically=!0,"string"!=typeof t.position&&(t.position="bottom-right");var n=document.querySelector(".cds-notification-parent--".concat(t.position)),i=n||document.createElement("div");return n||(i.className="cds-notification-parent",i.classList.add("cds-notification-parent--".concat(t.position))),t.classNotification&&i.classList.add(t.classNotification),i.appendChild(e.$mount().$el),document.body.appendChild(i),s().nextTick((function(){e.$data.isVisible=!0})),e},kn=(i(1249),i(4553),_({name:"CdsAccordion",mixins:[pn],childrenType:"CdsAccordionItem",computed:{state:{get:function(){return this.$children.filter((function(t){return t.$_CdsAccordionItem})).map((function(t){return t.isOpen}))},set:function(t){var e=this.$children.filter((function(t){return t.$_CdsAccordionItem}));if(e.length>0)for(var n in e)e[n].isOpen=void 0!==t[n]&&!!t[n]}}},created:function(){var t=this;this.$on("itemChange",(function(e){return t._onChange(e)}))},methods:{_onChange:function(t){var e=this.$children.findIndex((function(e){return e.uuid===t.uuid}));this.$emit("change",{index:e,state:this.state})}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("ul",t._g({staticClass:"cds-accordion"},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports),Fn=_({name:"CdsAccordionItem",components:{CdsIcon:an},mixins:[hn,dn],parentType:"CdsAccordion",props:{title:{type:String,default:"",description:"Заголовок элемента"},content:{type:String,default:"",description:"Внутренний контент элемента"},open:{type:Boolean,default:!1,description:"Открыть элемент списка"}},data:function(){return{isOpen:!1,animation:""}},computed:{classes:function(){var t;return c(t={"cds-accordion__item":!0},m.active,this.isOpen),c(t,this.animation,this.animation),t},events:function(){return p(p({},this.$listeners),{},{click:this._onClick})}},watch:{open:{immediate:!0,handler:function(t){this.isOpen=t}}},mounted:function(){this.$_CdsAccordionItem=!0},methods:{toggle:function(t){this.animation=this.isOpen?"cds-accordion__item--collapsing":"cds-accordion__item--expanding";var e="boolean"==typeof t?!!t:!this.isOpen,n=void 0!==this.isOpen&&e!==this.isOpen;this.isOpen=e,n&&this.$parent.$emit("itemChange",this)},_onClick:function(t){this.toggle(t),this.$emit("click",t)},_onAnimationEnd:function(){this.animation=""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:t.classes,on:{animationend:t._onAnimationEnd}},[n("button",t._g({staticClass:"cds-accordion__heading",attrs:{type:"button","aria-controls":t.id,"aria-expanded":t.isOpen}},t.events),[n("span",{staticClass:"cds-accordion__title"},[t._v("\n "+t._s(t.title)+"\n "),t._t("title")],2),t._v(" "),n("CdsIcon",{staticClass:"cds-accordion__arrow",attrs:{name:"chevron-down"}})],1),t._v(" "),n("div",{staticClass:"cds-accordion__content",attrs:{id:t.id}},[t._v("\n "+t._s(t.content)+"\n "),t._t("content")],2)])}),[],!1,null,null,null).exports,Sn=_({name:"CdsAccordionSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"cds-accordion"},[n("li",{staticClass:"cds-accordion__item"},[n("button",{staticClass:"cds-accordion__heading",attrs:{type:"button",disabled:""}},[n("span",{staticClass:"cds-accordion__title"},[n("cds-skeleton",{attrs:{width:"58px",height:"12px"}})],1),t._v(" "),n("CdsIcon",{staticClass:"cds-accordion__arrow",attrs:{name:"chevron-down"}})],1)]),t._v(" "),n("li",{staticClass:"cds-accordion__item"},[n("button",{staticClass:"cds-accordion__heading",attrs:{type:"button",disabled:""}},[n("span",{staticClass:"cds-accordion__title"},[n("cds-skeleton",{attrs:{width:"40px",height:"12px"}})],1),t._v(" "),n("CdsIcon",{staticClass:"cds-accordion__arrow",attrs:{name:"chevron-down"}})],1)]),t._v(" "),n("li",{staticClass:"cds-accordion__item"},[n("button",{staticClass:"cds-accordion__heading",attrs:{type:"button",disabled:""}},[n("span",{staticClass:"cds-accordion__title"},[n("cds-skeleton",{attrs:{width:"50px",height:"12px"}})],1),t._v(" "),n("CdsIcon",{staticClass:"cds-accordion__arrow",attrs:{name:"chevron-down"}})],1)])])}),[],!1,null,null,null).exports;kn.install=function(t){t.component(kn.name,kn)},Fn.install=function(t){t.component(Fn.name,Fn)},Sn.install=function(t){t.component(Sn.name,Sn)},"undefined"!=typeof window&&window.Vue&&(kn.install(window.Vue),Fn.install(window.Vue),Sn.install(window.Vue));i(3210);var Bn=_({name:"CdsLink",props:{text:{type:String,required:!1,default:"",description:"Текст ссылки"},to:{type:[String,Object],required:!1,default:"#",description:"Url-адрес ссылки или объект в случае использования router"},blank:{type:Boolean,required:!1,default:!1,description:"Открыть ли в новой вкладке"},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированная ли"},useRouter:{type:Boolean,default:!0,description:"Используется ли vue router для ссылки"}},computed:{classes:function(){var t;return c(t={"cds-link":!0},m.visited,this.visited),c(t,m.disabled,this.disabled),t},listeners:function(){return p(p({},this.$listeners),{},{click:this._onClick})},tabIndex:function(){return this.disabled?-1:null},target:function(){return this.blank?"_blank":null},preparedTo:function(){return this.useRouter||"string"==typeof this.to?this.to:(console.warn("CdsLink: при использовании нативной ссылки, параметр to должен быть типа String"),"#")}},methods:{_onClick:function(t){this.$emit("click"),"#"===this.to&&t.preventDefault(),this.disabled&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.useRouter?n("router-link",t._g({class:t.classes,attrs:{to:t.preparedTo,tabindex:t.tabIndex}},t.listeners),[t._v("\n "+t._s(t.text)),t._t("default")],2):n("a",t._g({class:t.classes,attrs:{href:t.preparedTo,tabindex:t.tabIndex,target:t.target}},t.listeners),[t._v(t._s(t.text)),t._t("default")],2)}),[],!1,null,null,null).exports;Bn.install=function(t){t.component(Bn.name,Bn)},"undefined"!=typeof window&&window.Vue&&Bn.install(window.Vue);var $n=Bn,In=_({name:"CdsBreadcrumbsItem",component:{CdsLink:$n},props:{text:{type:String,default:"",description:"Название хлебной крошки"},to:{type:[Object,String],default:null,description:"Url-адрес ссылки или объект в случае использования router"},useRouter:{type:Boolean,default:!0,description:"Используется ли vue router для хлебной крошки"},isCurrentPage:{type:Boolean,default:!1,description:"Является ли элемент текущей страницей"}},computed:{isLink:function(){return!this.isCurrentPage&&this.to},title:function(){var t=this.text||this.$slots.default[0].text;return t?t.trim():null}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",t._g({staticClass:"cds-breadcrumbs__item",attrs:{title:t.title}},t.$listeners),[t.isLink?n("CdsLink",{attrs:{text:t.text,to:t.to,"use-router":t.useRouter}},[t._t("default")],2):[n("span",[t._v("\n "+t._s(t.text)+"\n "),t._t("default")],2)]],2)}),[],!1,null,null,null).exports,On=_({name:"CdsBreadcrumbs",components:{CdsBreadcrumbsItem:In},props:{items:{type:Array,required:!1,default:function(){return[]},description:'Список пунктов: [{text: "home", to: "/home"}, ...]'}},computed:{hasSlot:function(){return!!this.$slots.default}},methods:{_isLastItem:function(t){return this.items.length-1===t}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",t._g({staticClass:"cds-breadcrumbs"},t.$listeners),[t.hasSlot?t._t("default"):t._l(t.items,(function(e,i){return n("CdsBreadcrumbsItem",{key:i,attrs:{text:e.text,to:e.to,"use-router":e.useRouter,"is-current-page":t._isLastItem(i)}})}))],2)}),[],!1,null,null,null).exports,Ln=_({name:"CdsBreadcrumbsSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"cds-breadcrumbs"},t._l(2,(function(t){return n("li",{key:t,staticClass:"cds-breadcrumbs__item"},[n("cds-skeleton",{attrs:{width:"82px",height:"12px"}})],1)})),0)}),[],!1,null,null,null).exports;On.install=function(t){t.component(On.name,On)},In.install=function(t){t.component(In.name,In)},Ln.install=function(t){t.component(Ln.name,Ln)},"undefined"!=typeof window&&window.Vue&&(On.install(window.Vue),In.install(window.Vue),Ln.install(window.Vue));i(4747);var Tn=_({name:"CdsInput",components:{CdsIcon:an},inheritAttrs:!1,props:{placeholder:{type:String,default:"",description:"Плейсхолдер"},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированный"},invalid:{type:Boolean,default:!1,description:"Невалидный"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на инпуте"},value:{type:[String,Number],required:!1,default:"",description:"Если установили v-model компоненту, то value автоматически подставится. Иначе писать самому."},type:{type:String,required:!1,default:"text",description:"Тип инпута"},prefixClass:{type:String,required:!1,default:"",description:"Класс для префикса"},suffixClass:{type:String,required:!1,default:"",description:"Класс для суффикса"}},data:function(){return{hasMouseDown:!1,internalValue:null}},computed:{events:function(){return p(p({},this.$listeners),{},{click:this._onClick,blur:this._onBlur,input:this._onInput,focus:this._onFocus,keydown:this._onKeyDown,keyup:this._onKeyUp,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut})},classes:function(){return c({"cds-input":!0,"cds-input--wprefix":!!this.$slots.prefix,"cds-input--wsuffix":this.invalid||!!this.$slots.suffix,"cds-input--max-suffix":this.invalid&&!!this.$slots.suffix},m.disabled,this.disabled)}},watch:{value:{immediate:!0,deep:!0,handler:function(t){this.internalValue=t}}},methods:{_onBlur:function(t){this.$emit("blur",t)},_onClick:function(t){this.$emit("click",t),this.setFocus()},_onFocus:function(t){this.$emit("focus",t)},_onInput:function(t){this.internalValue=t.target.value,this.$emit("input",this.internalValue)},_onKeyDown:function(t){t.keyCode===v.enter&&this.$emit("change",t.target.value),this.$emit("keydown",t)},_onKeyUp:function(t){this.$emit("keyup",t)},_onMouseDown:function(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),this.hasMouseDown=!0,this.$emit("mousedown",t)},_onMouseUp:function(t){this.hasMouseDown&&this.focus(),this.hasMouseDown=!1,this.$emit("mouseup",t)},_onMouseOver:function(t){this.$emit("mouseover",t)},_onMouseOut:function(t){this.$emit("mouseout",t)},setFocus:function(){this.$refs.input.focus()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.classes},[t.$slots.prefix?n("span",{class:["cds-input__prefix",t.prefixClass],on:{click:function(e){return t.$emit("clickPrefix")}}},[t._t("prefix")],2):t._e(),t._v(" "),n("input",t._g(t._b({ref:"input",attrs:{type:t.type,placeholder:t.placeholder,disabled:t.disabled,autofocus:t.autofocus,"aria-invalid":t.invalid},domProps:{value:t.value}},"input",t.$attrs,!1),t.events)),t._v(" "),t.invalid||t.$slots.suffix?n("span",{class:["cds-input__suffix",t.suffixClass],on:{click:function(e){return t.$emit("clickSuffix")}}},[t.invalid?n("CdsIcon",{staticClass:"cds-input__alert-icon",attrs:{name:"alert"}}):t._e(),t._v(" "),t.$slots.suffix?t._t("suffix"):t._e()],2):t._e()])}),[],!1,null,null,null).exports,Mn=_({name:"CdsInputCounter",props:{limit:{type:Number,required:!0,description:"Максимальное кол-во символов"},count:{type:Number,required:!0,description:"Текущее кол-во символов"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"cds-input__counter"},[t._v(t._s(t.count)+"/"+t._s(t.limit))])}),[],!1,null,null,null).exports,Vn=_({name:"CdsInputDescription",props:{description:{type:String,required:!0}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"cds-input__description",domProps:{innerHTML:t._s(t.description)}})}),[],!1,null,null,null).exports,Rn=_({name:"CdsInputError",props:{text:{type:String,default:"",description:"Текст ошибки"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"cds-input__error",attrs:{role:"alert"}},[t._v("\n "+t._s(t.text)+"\n")])}),[],!1,null,null,null).exports,Hn=_({name:"CdsInputLabel",mixins:[fn],props:{label:{type:String,required:!0},id:{type:String,required:!0},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"}},computed:{preparedLabel:function(){var t=this.optional?" (".concat(this.optionalLabel,")"):"";return"".concat(this.label).concat(t)}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("label",t._g({staticClass:"cds-input__label",attrs:{for:t.id}},t.$listeners),[t._v(t._s(t.preparedLabel))])}),[],!1,null,null,null).exports,zn=_({name:"CdsInputSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-text-input"},[n("label",{staticClass:"cds-input__label"},[n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("div",{staticClass:"cds-input__description"},[n("cds-skeleton",{attrs:{width:"100px",height:"8px"}})],1),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[n("cds-skeleton",{attrs:{width:"240px",height:"32px"}})],1)])}),[],!1,null,null,null).exports;Tn.install=function(t){t.component(Tn.name,Tn)},Mn.install=function(t){t.component(Mn.name,Mn)},Vn.install=function(t){t.component(Vn.name,Vn)},Rn.install=function(t){t.component(Rn.name,Rn)},Hn.install=function(t){t.component(Hn.name,Hn)},zn.install=function(t){t.component(zn.name,zn)},"undefined"!=typeof window&&window.Vue&&(Tn.install(window.Vue),Mn.install(window.Vue),Vn.install(window.Vue),Hn.install(window.Vue),zn.install(window.Vue));var Pn=_({name:"CdsCheckboxGroup",components:{CdsInputError:Rn,CdsInputDescription:Vn},mixins:[fn],props:{label:{type:String,default:null,description:"Лейбл для группы"},description:{type:String,default:null,description:"Вспомогательное описание"},horizontal:{type:Boolean,default:!1,description:"Горизонтальное отображение"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},computed:{internalValue:function(){return this.$children.length?this.$children[0].model:""},classes:function(){return{"cds-checkbox__group":!0,"cds-checkbox__group--horizontal":this.horizontal}}},mounted:function(){var t=this;this.$children.length&&this.$children.forEach((function(e){e.$on("change",(function(){return t.$emit("change")})),e.$on("blur",(function(){return t.$emit("blur")}))}))}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[t.label?n("div",{staticClass:"cds-checkbox__group-label"},[t._v("\n "+t._s(t.preparedLabel)+"\n ")]):t._e(),t._v(" "),t.description?n("cds-input-description",{staticClass:"cds-checkbox__group-description",attrs:{description:t.description}}):t._e(),t._v(" "),t.horizontal?n("div",{staticClass:"cds-checkbox__container"},[t._t("default")],2):t._t("default"),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],2)}),[],!1,null,null,null).exports;function jn(n){return function(e){if(Array.isArray(e))return t(e)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||e(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i(561),i(2772);var Nn=_({name:"CdsCheckbox",components:{CdsInputDescription:Vn},mixins:[dn],inheritAttrs:!1,_checkboxGroup:void 0,model:{prop:"model",event:"change"},props:{label:{type:String,required:!0,description:"Текст чекбокса"},description:{type:String,default:null,description:"Вспомогательное описание"},checked:{type:Boolean,required:!1,default:!1,description:"Состояние выбран\\не выбран"},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированный"},indeterminate:{type:Boolean,required:!1,default:!1,description:"Промежуточное состояние, отображается в виде минуса"},value:{type:[Number,String,Boolean,Array],default:!1,required:!1,description:"Значение чекбокса"},model:{type:[String,Boolean,Array],default:null,required:!1,description:"Внешняя модель для чекбокса, указывается v-model"},hiddenLabel:{type:Boolean,default:!1,required:!1,description:"Отображать ли лейбл или нет"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на чекбоксе"}},data:function(){return{isChecked:this.checked,isFocused:!1,isClick:!1}},computed:{classes:function(){var t;return c(t={"cds-checkbox":!0},m.checked,this.shouldBeChecked),c(t,m.disabled,this.disabled),c(t,m.indeterminate,this.indeterminate),t},events:function(){return p(p({},this.$listeners),{},{focus:this._onFocus,blur:this._onBlur,change:this._onChange,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut})},shouldBeChecked:function(){return null!==this.model?Array.isArray(this.model)?this.model.includes(this.value):"string"==typeof this.model||!!this.model:this.isChecked},isGroup:function(){return"CdsCheckboxGroup"===this.$parent.$options.name&&(this._checkboxGroup=this.$parent,!0)},invalid:function(){return!!this.isGroup&&this._checkboxGroup.error}},watch:{checked:function(t){this.isChecked=t},indeterminate:function(t){this.$refs.input.indeterminate=t}},mounted:function(){this.isFocused=this.autofocus},methods:{change:function(t){if(this.isChecked=t,Array.isArray(this.model)){var e=jn(this.model);return this.isChecked?e.push(this.value):e.splice(e.indexOf(this.value),1),e}return this.isChecked},_onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},_onFocus:function(t){this.isFocused||(this.isFocused=!0,this.$emit("focus",t))},_onChange:function(t){var e=this.change(t.target.checked);this.$emit("change",e)},_onMouseUp:function(t){this.hasMouseDown&&this.focus(),this.hasMouseDown=!1,this.$emit("mouseup",t)},_onMouseOver:function(t){this.$emit("mouseover",t)},_onMouseOut:function(t){this.isFocused||(this.internalState=null),this.$emit("mouseout",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("input",t._g(t._b({ref:"input",staticClass:"cds-checkbox__input",attrs:{id:t.id,type:"checkbox",autofocus:t.autofocus,"aria-invalid":t.invalid,disabled:t.disabled},domProps:{checked:t.shouldBeChecked,value:t.value}},"input",t.$attrs,!1),t.events)),t._v(" "),n("label",t._g({staticClass:"cds-checkbox__label",attrs:{for:t.id}},t.events),[n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],staticClass:"cds-checkbox__label-text"},[t._v(t._s(t.label))])]),t._v(" "),!t.hiddenLabel&&t.description?n("cds-input-description",{staticClass:"cds-checkbox__description",attrs:{description:t.description}}):t._e()],1)}),[],!1,null,null,null).exports,Un=_({name:"CdsCheckboxSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-checkbox cds-state-disabled cds-checkbox__skeleton"},[n("input",{staticClass:"cds-checkbox__input",attrs:{type:"checkbox",disabled:""}}),t._v(" "),n("label",{staticClass:"cds-checkbox__label"},[n("cds-skeleton",{staticClass:"cds-checkbox__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1)])}),[],!1,null,null,null).exports;Nn.install=function(t){t.component(Nn.name,Nn)},Pn.install=function(t){t.component(Pn.name,Pn)},Un.install=function(t){t.component(Un.name,Un)},"undefined"!=typeof window&&window.Vue&&(Nn.install(window.Vue),Pn.install(window.Vue),Un.install(window.Vue));function Kn(t){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(t)}i(7941);var qn={name:"CdsCombobox",components:{CdsInput:Tn,CdsInputLabel:Hn,CdsInputDescription:Vn,CdsInputError:Rn,CdsIcon:an},mixins:[dn],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{label:{type:String,required:!0,description:"Лейбл комбобокса"},description:{type:String,default:"",description:"Описание комбобокса"},placeholder:{type:String,default:"",description:"Плейсхолдер комбобокса"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},filter:{type:Boolean,default:!0,description:"Фильтрация списка во время поиска"},highlight:{type:Boolean,default:!1,description:"Выделение элемента списка во время поиска"},value:{type:[Object,String],default:"",description:"Выбранное значение Object: { name: string, value: string | number | undefined } (поддерживает v-model)",validator:function(t){var e=["string","number","undefined"].includes(Kn(t.value));return e||console.warn("CdsCombobox.value - значение должно содержать Object: { name: string, value: string | number | undefined }"),e}},options:{type:Array,required:!0,description:"Массив отображаемых данных. Object: { name: string, value: string | number }",validator:function(t){var e=t.every((function(t){return"string"==typeof t.name&&("string"==typeof t.value||"number"==typeof t.value)}));return e||console.warn("CdsCombobox.options - все опции должны содержать Object: { name: string, value: string | number }"),e}},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},loading:{type:Boolean,default:!1,description:"Состояние загрузки"},added:{type:Boolean,default:!1,description:"Возможность добавлять свой элемент в список"},loadMore:{type:Boolean,default:!1,description:"Возможность подгружать еще данные - событие: @loadMore"},loadMoreOffset:{type:[Number,String],default:0,description:"Отступ в пикселях до инициализации события loadMore"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},data:function(){return{isActive:!1,isSelect:!1,dataOption:this.value,internalName:"",internalOption:{},addingOption:{},debounce:null,isLoadMore:!1,isLoadMoreFinish:!1}},computed:{dataOptions:function(){return this.highlight?this._highlightHandler():this._filterHandler()},clearClasses:function(){return c({"cds-combobox__clear":!0},m.active,!!this.internalName)},comboboxClasses:function(){return c({"cds-combobox":!0},m.disabled,this.disabled)},containerClasses:function(){var t;return c(t={"cds-combobox__container":!0},m.active,this.isActive),c(t,m.disabled,this.disabled),c(t,m.invalid,this.error),t},events:function(){return{click:this._onClick,focus:this._onFocus,blur:this._onBlur,keydown:this._onKeyDown,input:this._onInput}},availableAddedOption:function(){return this.added&&!!this.internalName&&!this.dataOptions.map((function(t){return t.name.toLowerCase()})).includes(this.internalName.toLowerCase())},internalValue:{get:function(){return this.dataOption},set:function(t){this.isSelect=!!t.name,this.internalName=t.name,this.dataOption.value!==t.value&&(this.dataOption=t)}}},watch:{value:function(t){this.internalValue=t},isActive:function(t){this.internalOption=t?this.internalValue:{}},loadMore:function(t){this.isLoadMore=t}},mounted:function(){this._prepareComponent()},methods:{open:function(){this.isActive||(this.isActive=!0,this.$emit("open"))},close:function(){this.isActive&&(this.isActive=!1,this.$emit("close"))},change:function(t){var e=t.name,n=t.value;this.disabled||(this.isSelect=!0,this.internalValue={name:e,value:n},this._filterHandler(),this.close(),this.$emit("change",this.internalValue))},add:function(){this.addedOption={name:this.internalName,value:this.internalName},this.internalValue=this.addedOption,this.internalName="",this._filterHandler(),this.close(),this.$emit("add",this.internalValue)},reset:function(){this.internalValue="",this.internalName=""},setFocus:function(){this.$refs.input.$refs.input.focus()},_prepareComponent:function(){this.internalValue=this.dataOption,this.isFilter=!this.isHighlight},_onClearInput:function(){this.disabled||(this.reset(),this.setFocus(),this.$emit("change",this.internalValue),this.$emit("clear"))},_onClickArrow:function(){this.isActive?this.close():this.setFocus()},_onFocus:function(t){this.open(),this.$emit("focus",t)},_onBlur:function(t){var e=t.relatedTarget||document.activeElement;if(e){if([this.$refs.combobox,this.$refs.arrow,this.$refs.close].some((function(t){return t===e})))return;if(this.dataOptions.some((function(t){return t.value===e.getAttribute("value")})))return}this.isActive&&this.close(),this.internalName=this.internalValue.name,this.isSelect=this.internalName===this.internalValue.name,this.$emit("blur",t)},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this._pressHandler),c(e,v.esc,this._closeHandler),c(e,v.up,this._navigationHandler),c(e,v.down,this._navigationHandler),e);if(this.$emit("keydown",t),n[t.keyCode])return t.preventDefault(),n[t.keyCode](t);this.isSelect=!1},_onMouseMove:function(t){this.internalOption=t,this.$emit("mousemove",t)},_onClick:function(t){this.$emit("click",t)},_onInput:function(t){this.$emit("input",t)},_closeHandler:function(){this.reset(),this.close()},_filterHandler:function(){var t=this;return this.isSelect?this.options:this.options.filter((function(e){return e.name?e.name.trim().toLowerCase().includes(t.internalName?t.internalName.trim().toLowerCase():""):e}))},_highlightHandler:function(){var t=this,e=this.options.findIndex((function(e){return e.name?e.name.trim().toLowerCase().includes(t.internalName?t.internalName.trim().toLowerCase():""):e}));return e>=0&&(this.internalOption=this.options[e],this.$nextTick((function(){t._scrollOptionsPosition(e)}))),this.options},_navigationHandler:function(t){var e=this;if(!this.isActive)return this.open(),!0;if(this.dataOptions.length){var n,i,r=t.keyCode===v.up,o=t.keyCode===v.down,s=this.dataOptions,u=s.length-1,a=this.internalOption.value,l=r?0:u;if(a&&(n=a),a&&(l=s.findIndex((function(t){return t.value===n}))),r)i=l>0?l-1:u;else{if(!o)return!1;i=l<u?l+1:0}this.internalOption=s[i],this.$nextTick((function(){e._scrollOptionsPosition(i)}))}},_pressHandler:function(){if(!Object.keys(this.internalOption).length)return this.isActive?this.close():this.open(),!0;this.change(this.internalOption)},_scrollOptionsPosition:function(t){this.$refs.options&&this.$refs.option&&(this.$refs.options.scrollTop>this.$refs.option[t].offsetTop?this.$refs.options.scrollTop=this.$refs.option[t].offsetTop:this.$refs.options.scrollTop+this.$refs.options.clientHeight<this.$refs.option[t].offsetTop+this.$refs.option[t].offsetHeight&&(this.$refs.options.scrollTop=this.$refs.option[t].offsetTop+this.$refs.option[t].offsetHeight-this.$refs.options.clientHeight))},_onScrollList:function(t){if(!this.isLoadMoreFinish&&this.loadMore&&!this.isLoadMore){var e=t.target;e.scrollTop>=e.scrollHeight-e.offsetHeight-+this.loadMoreOffset&&(this.isLoadMore=!0,this.$emit("loadMore",this.done))}},done:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isLoadMore=!1,this.isLoadMoreFinish=t}}},Wn=_(qn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.comboboxClasses},[t.label?n("CdsInputLabel",{attrs:{id:t.id,label:t.label,optional:t.optional,"optional-label":t.optionalLabel}}):t._e(),t._v(" "),t.description?n("CdsInputDescription",{staticClass:"cds-combobox__description",attrs:{description:t.description}}):t._e(),t._v(" "),n("div",t._b({ref:"combobox",class:t.containerClasses,attrs:{role:"listbox",tabindex:"-1"}},"div",t.$attrs,!1),[n("CdsInput",t._g({ref:"input",staticClass:"cds-combobox__field",attrs:{id:t.id,placeholder:t.placeholder,disabled:t.disabled,"aria-label":t.isActive?"Открыть меню":"Закрыть меню","aria-controls":t.id,"aria-owns":t.id,"aria-expanded":t.isActive,"aria-haspopup":"true",autocomplete:"off",tabindex:"0"},scopedSlots:t._u([{key:"suffix",fn:function(){return[t.loading?n("CdsLoading",{attrs:{active:t.loading,small:"",fixed:""}}):t._e(),t._v(" "),t.error?n("button",{staticClass:"cds-combobox__icon cds-combobox__alert",attrs:{type:"button"}},[n("CdsIcon",{attrs:{name:"alert"}})],1):t._e(),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.internalName,expression:"internalName"}],ref:"close",class:["cds-combobox__icon",t.clearClasses],attrs:{type:"button",title:"Очистить поле ввода"},on:{click:t._onClearInput}},[n("CdsIcon",{attrs:{name:"remove"}})],1),t._v(" "),n("button",{ref:"arrow",staticClass:"cds-combobox__icon cds-combobox__arrow",attrs:{type:"button","aria-label":t.isActive?"Открыть меню":"Закрыть меню",tabindex:"-1"},on:{click:t._onClickArrow}},[n("CdsIcon",{attrs:{name:"chevron-down"}})],1)]},proxy:!0}]),model:{value:t.internalName,callback:function(e){t.internalName=e},expression:"internalName"}},t.events)),t._v(" "),n("div",{ref:"options",staticClass:"cds-combobox__options",attrs:{role:"list"},on:{scroll:t._onScrollList}},[t._l(t.dataOptions,(function(e,i){var r;return n("div",{key:"combo-box-"+i,ref:"option",refInFor:!0,class:["cds-combobox__option",(r={},r["cds-combobox__option--highlighted"]=t.internalOption.value===e.value,r)],attrs:{value:e.value,title:e.name},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.change(e)},mousemove:function(n){return t._onMouseMove(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),t._v(" "),t.isLoadMore?n("div",{staticClass:"cds-combobox__option cds-combobox__option--load-more"},[n("cds-loading",{attrs:{small:"",active:""}})],1):t._e(),t._v(" "),t.availableAddedOption?n("div",{ref:"add",staticClass:"cds-combobox__option cds-combobox__added",attrs:{value:t.internalName},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.add.apply(null,arguments)},mousemove:function(e){return t._onMouseMove({name:t.internalName,value:t.internalName})}}},[n("span",{staticClass:"cds-combobox__added--value"},[t._v(t._s(t.internalName))]),t._v(" "),n("span",{staticClass:"cds-combobox__added--button"},[t._v("Добавить")])]):t._e()],2)],1),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null),Yn=Wn.exports,Gn=_({name:"CdsComboboxSkeleton",components:{CdsInputSkeleton:zn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Yn.install=function(t){t.component(Yn.name,Yn)},Gn.install=function(t){t.component(Gn.name,Gn)},"undefined"!=typeof window&&window.Vue&&(Yn.install(window.Vue),Gn.install(window.Vue));var Jn={type:["standard","selectable","clickable","expandable"],color:["primary","secondary"]},Zn=_({name:"CdsContainer",components:{CdsIcon:an},mixins:[dn],inheritAttrs:!1,model:{prop:"model",event:"change"},props:{model:{type:[Number,String,Boolean,Array],required:!1,default:null,description:"Внешняя модель для контейнера, v-model"},value:{type:[Number,String,Boolean,Array],required:!1,default:null,description:"Значение выбираемого контейнера"},color:{type:String,required:!1,default:"primary",available:Jn.color,description:"Фон контейнера",validator:function(t){return b(Jn.color,t,"CdsContainer.color")}},selected:{type:Boolean,required:!1,default:!1,description:"Состояние выбран\\не выбран"},expanded:{type:Boolean,required:!1,default:!1,description:"Состояние открыт \\закрыт"},expandingArrowBefore:{type:Boolean,required:!1,default:!1,description:"Шеврон до заголовка \\после"},type:{type:String,required:!1,default:"standard",available:Jn.type,description:"Тип контейнера",validator:function(t){return b(Jn.type,t,"CdsContainer.type")}},group:{type:String,required:!1,default:null,description:"Название группы для радио-кнопок"},href:{type:[String,Object],required:!1,default:null,description:"Ссылка для контейнера. Только для type=clickable"},blank:{type:Boolean,required:!1,default:!1,description:"Открыть ли в новой вкладке"},useRouter:{type:Boolean,default:!1,description:"Используется ли vue router для ссылки. Только для type=clickable"},label:{type:String,required:!0,description:"Атрибут aria-label"},tag:{type:String,required:!1,default:"div",description:"Тег контейнера"}},data:function(){return{isSelected:this.selected,isExpand:this.expanded,isActive:!1,isFocused:!1,isHovered:!1}},computed:{classes:function(){var t;return c(t={"cds-container":!0,"cds-container__expandable--extended":this.isExpand&&"expandable"===this.type},"cds-container__".concat(this.type),this.type),c(t,"cds-container--".concat(this.color),!0),c(t,m.checked,this.shouldBeSelected),c(t,m.active,this.isActive),t},expandableClasses:function(){return{"cds-container__expandable-header":!0,"cds-container__expandable-header--arrow-before":this.expandingArrowBefore}},events:function(){return p(p({},this.$listeners),{},{change:this.change,focus:this._onFocus,blur:this._onBlur,click:this._onClick,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut,keydown:this._onKeyDown})},shouldBeSelected:function(){return"selectable"===this.type&&(null!==this.model?Array.isArray(this.model)?this.model.includes(this.value):this.group?this.model===this.value:"string"==typeof this.model||!!this.model:this.isSelected)},iconName:function(){return this.shouldBeSelected?"check-fill":"check"},containerTag:function(){return"clickable"===this.type?this.useRouter?"router-link":"a":this.tag},routerLink:function(){return this.useRouter?this.href:null},tabIndex:function(){return this.href?0:null},target:function(){return this.blank?"_blank":null}},watch:{expanded:function(t){this.isExpand=t},model:function(t){"boolean"==typeof t||t.length||(this.isSelected=!1)}},created:function(){this._validateHrefProp(),this._validateSelectableContainer()},updated:function(){this._validateHrefProp(),this._validateSelectableContainer()},mounted:function(){this.isSelected=this.shouldBeSelected},methods:{change:function(t){if("selectable"!==this.type)return!1;var e;if(this.isSelected=!!this.group||t,Array.isArray(this.model)){var n=jn(this.model);this.isSelected?n.push(this.value||this.isSelected):n.splice(n.indexOf(this.value||this.isSelected),1),e=n}else e=this.group?this.value:this.isSelected;return this.$emit("change",e),e},toggleExpandableContainer:function(){this.isExpand=!this.isExpand,this.$emit("expand",this.isExpand)},_onClick:function(t){"selectable"===this.type&&(t.preventDefault(),this.change(!this.isSelected)),"clickable"===this.type&&(this.isActive=!this.isActive),this.$emit("click",t)},_onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},_onBlur:function(t){this.isFocused=!1,this.isActive=!1,this.$emit("blur",t)},_onMouseOver:function(t){this.isHovered=!0,this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,this.$emit("mouseout",t)},_onKeyDown:function(t){t.keyCode===v.enter&&"clickable"===this.type&&this._onClick(t),t.keyCode===v.space&&"selectable"===this.type&&this.isFocused&&(t.preventDefault(),this.change(!this.isSelected)),this.$emit("keydown",t)},_validateHrefProp:function(){return"clickable"!==this.type||(!!this.href||(console.error("Vue[warn]:",'CdsContainer - Missing required prop: "href"'),!1))},_validateSelectableContainer:function(){return"selectable"!==this.type||(t=!0,Array.isArray(this.model)&&(this.value||(console.error("Vue[error]:",'CdsContainer - Missing required prop: "value"'),t=!1),this.group&&(console.error("Vue[error]:","CdsContainer - при наличии group в компоненте v-model не может быть массивом"),t=!1)),this.group&&!this.model&&(console.warn("Vue[warn]: Используйте v-model для групповых контейнеров"),t=!1),this.group&&this.model&&(this.value||(console.error("Vue[error]:",'CdsContainer - Missing required prop: "value"'),t=!1)),t);var t}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return"selectable"===t.type?n(t.containerTag,t._g(t._b({tag:"component",class:t.classes,attrs:{"aria-label":t.label,tabindex:"0"}},"component",t.$attrs,!1),t.events),[n("label",{attrs:{for:t.id}},[n("input",{attrs:{id:t.id,type:t.group?"radio":"checkbox",name:t.group,title:t.label,tabindex:"-1"},domProps:{value:t.value,checked:t.shouldBeSelected}}),t._v(" "),n("CdsIcon",{staticClass:"cds-container__icon",attrs:{name:t.iconName}}),t._v(" "),t._t("default")],2)]):"expandable"===t.type?n(t.containerTag,t._g(t._b({ref:"container",tag:"component",class:t.classes,attrs:{href:t.href,to:t.routerLink,tabindex:t.tabIndex,target:t.target,"aria-label":t.label}},"component",t.$attrs,!1),t.events),[n("div",{class:t.expandableClasses},[n("div",{staticClass:"cds-container__expandable-header-content"},[t._t("header")],2),t._v(" "),n("button",{staticClass:"cds-container__expandable-header-button",on:{click:t.toggleExpandableContainer}},[n("CdsIcon",{attrs:{name:t.isExpand?"chevron-up":"chevron-down"}})],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"expandable"!==t.type||t.isExpand,expression:"type !== 'expandable' || isExpand"}]},[t._t("default")],2)]):n(t.containerTag,t._g(t._b({ref:"container",tag:"component",class:t.classes,attrs:{href:t.href,to:t.routerLink,tabindex:t.tabIndex,target:t.target,"aria-label":t.label}},"component",t.$attrs,!1),t.events),[t._t("default")],2)}),[],!1,null,null,null).exports;Zn.install=function(t){t.component(Zn.name,Zn)},"undefined"!=typeof window&&window.Vue&&Zn.install(window.Vue);var Xn=Zn,Qn=_({name:"CdsContentSwitcher",data:function(){return{count:0}},computed:{events:function(){return p(p({},this.$listeners),{},{change:this.change})},columns:function(){return"grid-template-columns: repeat(".concat(this.count,", 1fr)")}},created:function(){this.$on("select",this.change)},mounted:function(){this._initial()},methods:{_initial:function(){var t=this._getChildren();if(this.count=t.length,t.length){var e=t.findIndex((function(t){return t.selected}));-1!==e?t[e].isSelected=!0:t[0].isSelected=!0}},_getChildren:function(){return this.$children.filter((function(t){return t._$ContentSwitcherButton}))},change:function(t){var e=this._getChildren();if(e.length){var i,r=n(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.isSelected=o.id===t}}catch(t){r.e(t)}finally{r.f()}this.$emit("change",t)}}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",t._g({staticClass:"cds-content-switcher",style:t.columns,attrs:{role:"tablist"}},t.events),[t._t("default")],2)}),[],!1,null,null,null).exports,ti={tooltipAlign:["start","center","end"]},ei=_({name:"CdsContentSwitcherButton",components:{CdsTooltip:yn},props:{id:{type:[String,Number],required:!0,description:"ID кнопки для связи с переключаемым контентом"},text:{type:String,required:!1,default:"",description:"Текст кнопки переключателя (может быть в slot)"},iconAfter:{type:Boolean,default:!1,description:"Иконка после текста"},selected:{type:Boolean,default:!1,description:"Выбрать элемент"},disabled:{type:Boolean,default:!1,description:"Заблокированное состояние"},tooltip:{type:String,default:"",description:"Текст всплывающей подсказки"},tooltipAlign:{type:String,default:"center",available:ti.tooltipAlign,validator:function(t){var e=ti.tooltipAlign,n=t.match(new RegExp("".concat(e.join("|"))));return n||console.warn("CdsContentSwitcherButton.tooltipAlign должно быть одно из: ".concat(e.join(", "))),n},description:"Выравнивание подсказки"}},data:function(){return{isSelected:!1}},computed:{classes:function(){var t;return c(t={"cds-content-switcher__button":!0,"cds-content-switcher__button--icon-after":this.hasText&&this.iconAfter},m.disabled,this.disabled),c(t,m.active,this.isSelected),t},classesIcon:function(){return{"cds-content-switcher__button--icon":!0,"cds-content-switcher__button--icon-with-text":this.hasText}},events:function(){return p(p({},this.$listeners),{},{click:this._onClick})},hasText:function(){return!!this.$slots.default||!!this.text},hasTooltip:function(){return this.tooltip?"CdsTooltip":"div"},hasIcon:function(){return!!this.$slots.icon}},watch:{selected:{handler:function(t){t&&this.select()},immediate:!0}},created:function(){this._$ContentSwitcherButton=!0},methods:{_onClick:function(t){this.select(),this.$emit("click",t)},select:function(){this.$parent.$emit("select",this.id)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.hasTooltip,{tag:"component",staticClass:"cds-content-switcher__item",attrs:{tip:t.tooltip?t.tooltip:null,align:t.tooltip?t.tooltipAlign:null,tabindex:"-1"}},[n("button",t._g(t._b({class:t.classes,attrs:{role:"tab",tabindex:"0",disabled:t.disabled}},"button",t.$attrs,!1),t.events),[t.hasIcon?n("span",{class:t.classesIcon},[t._t("icon")],2):t._e(),t._v("\n "+t._s(t.text)+"\n "),t._t("default")],2)])}),[],!1,null,null,null).exports,ni=_({name:"CdsContentSwitcherSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"cds-switcher"},[e("cds-skeleton",{attrs:{width:"240px",height:"32px"}})],1)}),[],!1,null,null,null).exports;Qn.install=function(t){t.component(Qn.name,Qn)},ei.install=function(t){t.component(ei.name,ei)},ni.install=function(t){t.component(ni.name,ni)},"undefined"!=typeof window&&window.Vue&&(Qn.install(window.Vue),ei.install(window.Vue),ni.install(window.Vue));i(2526),i(1817);var ii=_({name:"CdsDataTableBody"},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("tbody",t._g({},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports,ri=_({name:"CdsDataTableRow",directives:{expandedContent:{inserted:function(t){return t.parentNode.after(t)}}},components:{CdsButton:k,CdsCheckbox:Nn,CdsIcon:an},props:{head:{type:Boolean,default:!1}},data:function(){return{hoverable:!1,selectable:!1,selected:!1,expandable:!1,expanded:!1,expandableIndentDisable:!1,multiselectable:!1,isHead:this.head,indeterminate:!1}},computed:{classes:function(){var t={};return t[m.checked]=(this.selectable||this.multiselectable)&&this.selected,t[m.active]=this.expandable&&this.expanded,t},tabIndex:function(){return this.selectable||this.hoverable?0:null},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,keydown:this._onKeyDown})},cellTag:function(){return this.isHead?"TH":"TD"}},methods:{_onClick:function(t){t.target.tagName!==this.cellTag&&"TR"!==t.target.tagName||((this.selectable||this.multiselectable)&&(this.selected=!this.selected,this.$emit("select",this.selected)),this.hoverable&&this.$emit("press",t),this.$emit("click",t))},_onKeyDown:function(t){t.target.tagName!==this.cellTag&&"TR"!==t.target.tagName||t.keyCode!==v.enter&&t.keyCode!==v.space||(t.preventDefault(),(this.selectable||this.multiselectable)&&(this.selected=!this.selected,this.$emit("select",this.selected)),this.hoverable&&this.$emit("press",t),this.$emit("keydown",t))},_toggleExpandedSlot:function(){this.expanded=!this.expanded,this.$emit("expand",this.expanded)},_multiselectChange:function(t){var e=!this.indeterminate&&t;this.selected=e,this.$refs.checkbox.$refs.input.checked=e,this.$emit("select",e)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",t._g({class:t.classes,attrs:{tabindex:t.tabIndex}},t.events),[t.multiselectable?n(t.cellTag,{tag:"component",staticClass:"selection"},[n("CdsCheckbox",{ref:"checkbox",attrs:{label:"","hidden-label":"",indeterminate:t.indeterminate},on:{change:t._multiselectChange},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1):t._e(),t._v(" "),t.expandable?n(t.cellTag,{tag:"component",staticClass:"expand"},[n("cds-button",{attrs:{"icon-only":""},on:{click:t._toggleExpandedSlot},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"chevron-down"}})]},proxy:!0}],null,!1,127842286)})],1):t._e(),t._v(" "),t._t("default"),t._v(" "),t.expandable&&!t.isHead?n("tr",{directives:[{name:"expanded-content",rawName:"v-expanded-content"}],tag:"component",class:"expandable-row"},[t.expandableIndentDisable?t._e():n("td"),t._v(" "),n("td",{attrs:{colspan:"999"}},[n("div",{staticClass:"expandable-content"},[t._t("expandableContent")],2)])]):t._e()],2)}),[],!1,null,null,null).exports,oi=_({name:"CdsTableSortLabel",components:{CdsIcon:an},props:{order:{type:String,default:"none"}},computed:{iconName:function(){return"asc"===this.order?"arrow-up":"desc"===this.order?"arrow-down":"arrows-vertical"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("CdsIcon",{staticClass:"sortable-icon",attrs:{name:t.iconName}})}),[],!1,null,null,null).exports,si=["left","right","center","null"],ui=["asc","desc","none"],ai=_({name:"CdsDataTableHeader",components:{CdsDataTableSortLabel:oi},model:{event:"sort",prop:"order"},props:{align:{type:String,default:null,validator:function(t){return b(si,t,"CdsDataTableHeader.align")}},text:{type:String,default:"",description:"Текст заголовка"},sortable:{type:Boolean,default:!1,description:"Сортировка столбцов"},order:{type:String,default:"none",description:"Вид сортировки",validator:function(t){return b(ui,t,"CdsDataTableHeader.order")}},width:{type:String,default:null,description:"Задать фиксированную ширину колонке"}},data:function(){return{internalAlign:null,internalWidth:null,nextSortOrder:{asc:"desc",desc:"none",none:"asc"}}},computed:{classes:function(){var t;return c(t={},this.internalAlign,"left"!==this.internalAlign&&null!==this.internalAlign),c(t,this.sortOrder,"none"!==this.sortOrder),t},styles:function(){return{width:this.internalWidth}},tabIndex:function(){return this.sortable?0:null},sortOrder:function(){return"asc"!==this.order&&"desc"!==this.order?"none":this.order},events:function(){return{click:this._onClick,keydown:this._onKeyDown}}},watch:{align:function(t){this.internalAlign=t},width:function(t){this.internalWidth=t}},created:function(){this.internalAlign=this.align,this.internalWidth=this.width},methods:{_onClick:function(t){this.$emit("sort",this.nextSortOrder[this.sortOrder]),this.$emit("click",t)},_onKeyDown:function(t){t.keyCode!==v.enter&&t.keyCode!==v.space||(t.preventDefault(),this.$emit("sort",this.nextSortOrder[this.sortOrder]),this.$emit("keydown",t))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("th",t._g({class:t.classes,style:t.styles,attrs:{"aria-sort":t.sortOrder,tabindex:t.tabIndex}},t.events),[t.sortable&&"right"===t.internalAlign?n("CdsDataTableSortLabel",{attrs:{order:t.sortOrder}}):t._e(),t._v("\n "+t._s(t.text)+"\n "),t._t("default"),t._v(" "),t.sortable&&"right"!==t.internalAlign?n("CdsDataTableSortLabel",{attrs:{order:t.sortOrder}}):t._e()],2)}),[],!1,null,null,null).exports,li=_({name:"CdsDataTableCell",props:{noWrap:{type:Boolean,default:!1,description:"Запретить выравнивание"},noVerticalPad:{type:Boolean,default:!1,description:"Отключить вертикальные внутренние отступы"},ellipsis:{type:Boolean,default:!1,description:"Текст колонки ограничивается одной строкой с многоточием"}},data:function(){return{align:null}},computed:{classes:function(){var t;return c(t={},this.align,"left"!==this.align&&null!==this.align),c(t,"nowrap",this.noWrap),c(t,"no-vertical-pad",this.noVerticalPad),c(t,"ellipsis",this.ellipsis),t}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("td",t._g({class:t.classes},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports,ci={align:["left","center","right","null"],rowSize:["standard","short"]},di={name:"CdsDataTable",components:{CdsDataTableBody:ii,CdsDataTableRow:ri,CdsDataTableHeader:ai,CdsDataTableCell:li},mixins:[dn],props:{title:{type:String,default:"",description:"Заголовок таблицы"},description:{type:String,default:"",description:"Описание таблицы"},columns:{type:Array,default:function(){return[]},description:"Данные шапки таблицы"},align:{type:Array,default:function(){return[]},description:"Выравнивание ячеек",available:ci.align,validator:function(t){var e=ci.align,n=t.every((function(t){return String(t).match(new RegExp("(".concat(e.join("|"),")")))}));return n||console.warn("CdsDataTableTable.align должно быть одно из следующих: ".concat(e.join(", "))),n}},colWidth:{type:Array,default:function(){return[]},description:"Ширина колонок (в пикселях или процентах)"},data:{type:Array,default:function(){return[]},description:"Данные тела таблицы"},sortable:{type:Boolean,default:!1,description:"Сортировка столбцов"},sortedCol:{type:Object,default:null,description:"Индекс сортированной колонки с видом сортировки. Object { index, order }",validator:function(t){var e=!0;if("object"===Kn(t)){"number"!=typeof t.index&&(e=!1,console.warn("CdsDataTableHeader.sortedCol должен содержать index типа number"));var n=["asc","desc","none"];"string"==typeof t.order&&t.order.match(new RegExp("(".concat(n.join("|"),")")))||(e=!1,console.warn("CdsDataTableHeader.sortedCol должен содержать order один из следующих: ".concat(n.join(", "))))}return e}},selectable:{type:Boolean,default:!1,description:"Выделение строк"},selectedRow:{type:[Number,Object],default:null,description:"[DEPRECATED] Индекс выделенной строки. (для плоских данных Number, для группированных – Object { rowIndex, bodyIndex }",validator:function(t){var e=!0;return"object"===Kn(t)&&("number"==typeof t.rowIndex&&"number"==typeof t.bodyIndex||(e=!1,console.warn("CdsDataTableHeader.selectedRow должен содержать rowIndex и bodyIndex типа number"))),e}},selectedRows:{type:[Array,Number,Object],default:null,description:"Индекс или массив индексов выделенных строк. (для плоских данных Number, для группированных – Object { rowIndex, bodyIndex }",validator:function(t){var e=!0;if("object"===Kn(t)){if(Array.isArray(t))return e;"number"==typeof t.rowIndex&&"number"==typeof t.bodyIndex||(e=!1,console.warn("CdsDataTableHeader.selectedRow должен содержать rowIndex и bodyIndex типа number"))}return e}},hoverable:{type:Boolean,default:!1,description:"Подсвечивание строк"},expandable:{type:Boolean,default:!1,description:"Раскрывающиеся строки (slot: expandedContent)"},expandableIndentDisable:{type:Boolean,default:!1,description:"Убрать внутренний отступ в расширяемой строке"},multiselectable:{type:Boolean,default:!1,description:"Выбираемые строки (checkbox)"},autoWidth:{type:Boolean,default:!1,description:"Автоширина"},horizontalScroll:{type:Boolean,default:!1,description:"Горизонтальный скролл таблицы"},borderless:{type:Boolean,default:!1,description:"Убрать границу между строками"},ellipsis:{type:Boolean,default:!1,description:"Текст ячеек ограничивается одной строкой с многоточием"},rowSize:{type:String,default:"standard",description:"Высота строк",available:ci.rowSize,validator:function(t){return b(ci.rowSize,t,"CdsDataTableTable.rowSize")}}},data:function(){return{hasHeading:!1,hasToolbar:!1,hasEmptyMessage:!1,hasData:!1,hasSlotData:!1,hasSlotHeader:!1,hasGroupData:!1,internalColumns:[],internalData:[],internalSelectedRows:null}},computed:{containerClasses:function(){return{"cds-data-table":!0,"cds-data-table__auto-width":this.autoWidth,"cds-data-table__horizontal-scroll":this.horizontalScroll}},tableClasses:function(){return c({"cds-data-table__table":!0,"cds-data-table__table--hoverable":this.hoverable,"cds-data-table__table--selectable":this.selectable,"cds-data-table__table--multiselectable":this.multiselectable,"cds-data-table__table--sortable":this.sortable,"cds-data-table__table--borderless":this.borderless,"cds-data-table__table--ellipsis":this.ellipsis,"cds-data-table__table--group":this.hasGroupData,"cds-data-table__table--expandable":this.expandable},"cds-data-table__table--".concat(this.rowSize),"standard"!==this.rowSize)},events:function(){return p(p({},this.$listeners),{},{mouseover:this._onMouseOver})}},watch:{columns:function(){this._prepareColumns()},data:function(){this._checkElements(),this.internalData=this.hasData&&!this.hasGroupData?[this.data]:this.data},selectedRow:function(){this.internalSelectedRows=this.selectedRow},internalSelectedRows:function(){this._prepareHeaderRow(),this._prepareHeaderSlots()},multiselectable:function(){var t=this;this._checkElements(),this._prepareColumns(),this._prepareInternalSelectedRows(),this.$nextTick((function(){t._prepareDataSlots(),t._prepareHeaderSlots(),t._prepareChildren()}))}},created:function(){this._validationSelectableTable()},beforeMount:function(){var t=this;this._checkElements(),this._prepareColumns(),this._prepareInternalSelectedRows(),this.internalData=this.hasData&&!this.hasGroupData?[this.data]:this.data,this.$nextTick((function(){t._prepareDataSlots(),t._prepareHeaderSlots(),t._prepareChildren()}))},beforeUpdate:function(){var t=this;this._checkElements(),this.$nextTick((function(){t._prepareDataSlots(),t._prepareHeaderSlots(),t._prepareChildren()}))},methods:{unselectRow:function(){this.onSelect(null)},_getAlign:function(t){return this.align[t]||null},_getColWidth:function(t){return this.colWidth[t]||null},_checkElements:function(){this.hasHeading=!!this.title.length||!!this.description.length,this.hasToolbar=!!this.$slots.toolbar,this.hasEmptyMessage=!!this.$slots["empty-message"],this.hasData=this.data.length,this.hasSlotData=!!this.$slots.data,this.hasSlotHeader=!!this.$slots.header,this.hasSlotData?this.hasGroupData=this.$slots.data.length>1:this.hasGroupData=this.data[0]&&Array.isArray(this.data[0][0]),this.hasData&&this.hasSlotData&&console.warn("CdsDataTable: установлено два типа данных. Необходимо использовать один (prop или slot).")},_prepareInternalSelectedRows:function(){var t=this.multiselectable?[]:null;this.internalSelectedRows=this.selectedRows?this.selectedRows:t},_prepareDataSlots:function(){var t=this;this.hasSlotData&&this.$slots.data.filter((function(t){return t.componentOptions&&t.componentInstance&&x("CdsDataTableBody",t.componentOptions.tag)})).forEach((function(e,n){e.componentOptions.children.filter((function(t){return t.componentOptions&&t.componentInstance&&x("CdsDataTableRow",t.componentOptions.tag)})).forEach((function(e,i){t.selectable&&e.componentInstance&&(e.componentInstance.selectable=!0,e.componentInstance.selected=t._isRowSelected(i,n),e.componentInstance.$off("select"),e.componentInstance.$on("select",(function(e){return t.onSelect(e,i,n)}))),t.hoverable&&e.componentInstance&&(e.componentInstance.hoverable=!0,e.componentInstance.$off("press"),e.componentInstance.$on("press",(function(){return t.onPress(i,n)}))),t.expandable&&e.componentInstance&&(e.componentInstance.expandable=t.expandable,e.componentInstance.expandableIndentDisable=t.expandableIndentDisable,e.componentInstance.$off("expand"),e.componentInstance.$on("expand",(function(){return t.onExpand(i)}))),e.componentInstance&&(e.componentInstance.multiselectable=t.multiselectable,t.multiselectable&&(e.componentInstance.selected=t._isRowsSelected(i),e.componentInstance.$off("select"),e.componentInstance.$on("select",(function(e){return t.onCheck(e,i,n)})))),e.componentOptions.children.filter((function(t){return t.componentOptions&&x("CdsDataTableCell",t.componentOptions.tag)})).forEach((function(e,n){e.componentInstance&&(e.componentInstance.align=t._getAlign(n),e.componentInstance.colWidth=t._getColWidth(n))}))}))}))},_prepareHeaderSlots:function(){var t=this;if(this.hasSlotHeader){var e=function(e){e.forEach((function(e,n){if(e.componentInstance){var i=t._getAlign(n),r=t._getColWidth(n),o=t.sortable;i&&(e.componentInstance.internalAlign=i),r&&(e.componentInstance.internalWidth=r),o&&(e.componentInstance.sortable=o)}}))},n=this.$slots.header.filter((function(t){return t.componentOptions&&t.componentInstance&&x("CdsDataTableRow",t.componentOptions.tag)}));if(n.length)n.forEach((function(n){var i=n.componentOptions.children.filter((function(t){return t.componentOptions&&t.componentInstance&&x("CdsDataTableHeader",t.componentOptions.tag)}));e(i),n.componentInstance.isHead=!0,t.expandable&&n.componentInstance&&(n.componentInstance.expandable=t.expandable,n.componentInstance.$off("expand"),n.componentInstance.$on("expand",(function(e){return t.onExpandAll(e)}))),n.componentInstance&&(n.componentInstance.multiselectable=t.multiselectable,t.multiselectable&&(n.componentInstance.indeterminate=!!t.internalSelectedRows.length,n.componentInstance.$off("select"),n.componentInstance.$on("select",(function(e){return t.onCheckAll(e)}))))}));else{var i=this.$slots.header.filter((function(t){return t.componentOptions&&x("CdsDataTableHeader",t.componentOptions.tag)}));e(i)}}},_prepareHeaderRow:function(){var t=this;this.hasData&&this.$children.forEach((function(e){var n=e.$options.propsData;(e.$options||n||Object.keys(n).includes("headerRow"))&&(e.multiselectable=t.multiselectable,e.multiselectable&&(e.indeterminate=!!t.internalSelectedRows.length,e.$off("select"),e.$on("select",(function(e){return t.onCheckAll(e)}))))}))},_prepareChildren:function(){var t=this;this.hasData&&this.$children.filter((function(t){return t.$options&&"CdsDataTableBody"===t.$options._componentTag})).forEach((function(e,n){e.$children.filter((function(t){return t.$options&&"CdsDataTableRow"===t.$options._componentTag})).forEach((function(e,i){t.selectable&&(e.selectable=t.selectable,e.selected=t._isRowSelected(i,n),e.$off("select"),e.$on("select",(function(e){return t.onSelect(e,i,n)}))),t.hoverable&&(e.hoverable=!0,e.$off("press"),e.$on("press",(function(){return t.onPress(i,n)}))),t.expandable&&(e.expandable=t.expandable,e.expandableIndentDisable=t.expandableIndentDisable,e.$off("expand"),e.$on("expand",(function(){return t.onExpand(i)}))),e.multiselectable=t.multiselectable,t.multiselectable&&(e.selected=t._isRowsSelected(i),e.$off("select"),e.$on("select",(function(e){return t.onCheck(e,i,n)}))),e.$children.filter((function(t){return t.$options&&"CdsDataTableCell"===t.$options._componentTag})).forEach((function(e,n){e.align=t._getAlign(n),e.colWidth=t._getColWidth(n)}))}))}))},_prepareColumns:function(){var t=this;this.internalColumns=this.columns.map((function(e,n){var i="none";return t.sortedCol&&t.sortedCol.order&&t.sortedCol.index===n&&(i=t.sortedCol.order),{text:e,order:i}}))},_isRowSelected:function(t,e){return!(!this.selectable||null===this.internalSelectedRows)&&(this.hasGroupData?this.internalSelectedRows.rowIndex===t&&this.internalSelectedRows.bodyIndex===e:this.internalSelectedRows===t)},_isRowsSelected:function(t){return!!this.multiselectable&&this.internalSelectedRows.includes(t)},onSort:function(t,e){if(this.sortable){var i,r=n(this.internalColumns);try{for(r.s();!(i=r.n()).done;){i.value.order="none"}}catch(t){r.e(t)}finally{r.f()}this.internalColumns[e].order=t,this.$emit("sort",{index:e,order:t})}},onSelect:function(t,e,n){if(this.selectable){var i=null;t&&(i=this.hasGroupData?{rowIndex:e,bodyIndex:n}:e),this.internalSelectedRows=i,this.internalData=Object.assign({},this.internalData),this.$emit("select",i)}},onPress:function(t,e){if(this.hoverable){var n=null;n=this.hasGroupData?{rowIndex:t,bodyIndex:e}:t,this.$emit("press",n)}},onExpand:function(t){this.expandable&&this.$emit("expand",t)},onExpandAll:function(t){var e=this;this.expandable&&(this.$slots.data.filter((function(t){return t.componentOptions&&x("CdsDataTableBody",t.componentOptions.tag)})).forEach((function(n){n.componentOptions.children.filter((function(t){return t.componentOptions&&x("CdsDataTableRow",t.componentOptions.tag)})).forEach((function(n){e.expandable&&n.componentInstance&&(n.componentInstance.expanded=t)}))})),this.$emit("expand",t))},onCheck:function(t,e,n){var i=this;this.multiselectable&&(t?this.internalSelectedRows.push(this.hasGroupData?{rowIndex:e,bodyIndex:n}:e):this.internalSelectedRows=this.internalSelectedRows.filter((function(t){return i.hasGroupData?!(t.rowIndex===e&&t.bodyIndex===n):t!==e})),this.$emit("select",this.internalSelectedRows))},onCheckAll:function(t){this.multiselectable&&(this.internalSelectedRows=[],this.hasSlotData?this._multiselectableCheckAllRowsInSlots(t):this._multiselectableCheckAllRowsInData(t),this.$emit("select",this.internalSelectedRows))},_multiselectableCheckAllRowsInData:function(t){var e=this;this.$children.filter((function(t){return t.$options&&"CdsDataTableBody"===t.$options._componentTag})).forEach((function(n){n.$children.filter((function(t){return t.$options&&"CdsDataTableRow"===t.$options._componentTag})).forEach((function(n,i){e.multiselectable&&(n.selected=t,n.indeterminate=!1,t&&e.internalSelectedRows.push(i))}))}))},_multiselectableCheckAllRowsInSlots:function(t){var e=this;this.$slots.data.filter((function(t){return t.componentOptions&&x("CdsDataTableBody",t.componentOptions.tag)})).forEach((function(n){n.componentOptions.children.filter((function(t){return t.componentOptions&&x("CdsDataTableRow",t.componentOptions.tag)})).forEach((function(n,i){e.multiselectable&&n.componentInstance&&(n.componentInstance.selected=t,n.componentInstance.indeterminate=!1,t&&e.internalSelectedRows.push(i))}))}))},_onMouseOver:function(t){var e=t.target;this.ellipsis&&["TD","TH"].includes(e.tagName)&&this._hasCellTextEllipsis(e)&&(e.title=t.target.textContent.trim()),this.$emit("mouseover",t)},_hasCellTextEllipsis:function(t){return t.scrollWidth>t.offsetWidth},_validationSelectableTable:function(){this.multiselectable&&this.selectable&&console.error("Vue[warn]:","CdsDataTable - не может быть одновременно multiselectable и selectable")}}},fi=_(di,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.containerClasses},[t.hasHeading?n("div",{staticClass:"cds-data-table__heading"},[t.title?n("h4",[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.description?n("p",[t._v("\n "+t._s(t.description)+"\n ")]):t._e()]):t._e(),t._v(" "),t.hasToolbar?n("div",{staticClass:"cds-data-table__toolbar"},[t._t("toolbar")],2):t._e(),t._v(" "),t.hasData||t.hasSlotData?n("table",t._g({class:t.tableClasses},t.events),[n("thead",[t.hasSlotHeader?t._t("header"):n("CdsDataTableRow",{attrs:{head:""}},t._l(t.internalColumns,(function(e,i){return n("CdsDataTableHeader",{key:t.getDynamicItemIdByIndex(i),attrs:{text:e.text,align:t._getAlign(i),width:t._getColWidth(i),sortable:t.sortable,order:e.order},on:{sort:function(e){return t.onSort(e,i)}}})})),1)],2),t._v(" "),t._l(t.internalData,(function(e,i){return n("CdsDataTableBody",{key:t.getDynamicItemIdByIndex(i)},t._l(e,(function(e,i){return n("CdsDataTableRow",{key:t.getDynamicItemIdByIndex(i)},t._l(e,(function(e,i){return n("CdsDataTableCell",{key:t.getDynamicItemIdByIndex(i),domProps:{innerHTML:t._s(e)}})})),1)})),1)})),t._v(" "),t._t("data")],2):t._e(),t._v(" "),t.hasData||t.hasSlotData||!t.hasEmptyMessage?t._e():n("div",{staticClass:"cds-data-table__empty-message"},[t._t("empty-message")],2)])}),[],!1,null,null,null).exports,hi=_({name:"CdsDataTableSkeleton",data:function(){return{countRow:3}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"cds-data-table__table"},[n("thead",[n("tr",[n("th",[n("cds-skeleton",{attrs:{width:"64px",height:"8px"}})],1),t._v(" "),n("th",[n("cds-skeleton",{attrs:{width:"64px",height:"8px"}})],1),t._v(" "),n("th",[n("cds-skeleton",{attrs:{width:"64px",height:"8px"}})],1)])]),t._v(" "),n("tbody",t._l(t.countRow,(function(e){return n("tr",{key:e},[n("td",[n("cds-skeleton")],1),t._v(" "),n("td",[n("cds-skeleton")],1),t._v(" "),n("td",[n("cds-skeleton")],1)])})),0)])}),[],!1,null,null,null).exports;fi.install=function(t){t.component(fi.name,fi)},ai.install=function(t){t.component(ai.name,ai)},ii.install=function(t){t.component(ii.name,ii)},ri.install=function(t){t.component(ri.name,ri)},li.install=function(t){t.component(li.name,li)},hi.install=function(t){t.component(hi.name,hi)},"undefined"!=typeof window&&window.Vue&&(fi.install(window.Vue),ai.install(window.Vue),ii.install(window.Vue),ri.install(window.Vue),li.install(window.Vue),hi.install(window.Vue));function pi(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],s=!0,u=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){u=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(u)throw r}}return o}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i(3123);var vi=i(8393),mi=i.n(vi),gi=i(8809),_i=i(3550),yi=i.n(_i),wi=i(6723),bi=i.n(wi),Ci=/(\d{0,2})?:?(\d{0,2})?/,Ei={name:"CdsTime",components:{CdsInputLabel:Hn,CdsInput:Tn},mixins:[dn],inheritAttrs:!1,props:{label:{type:String,required:!0,description:"Обязательный лейбл"},timeFormat:{type:String,required:!1,default:"hh:mm",description:"[DEPRECATED] Формат времени"},placeholder:{type:String,required:!1,default:"чч:мм",description:"Плейсхолдер"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},hiddenLabel:{type:Boolean,required:!1,default:!1,description:"Скрыть лейбл"},value:{type:[String,Number],required:!1,default:"",validator:function(t){var e=!t||""!==String(t).match(Ci)[0];return e||console.warn("Time.value должно быть формата hh:mm"),e},description:"Если установили v-model компоненту, то value автоматически подставится. Иначе писать самому."}},data:function(){return{internalValue:null}},computed:{events:function(){return p(p({},this.$listeners),{},{input:this._onInput,blur:this._onBlur})}},watch:{value:function(t){this.internalValue=this._mask(t),t!==this.internalValue&&this.$emit("input",this.internalValue)}},created:function(){this.internalValue=this.value},methods:{_onInput:function(t){this.internalValue=this._mask(t),this.$emit("input",this.internalValue)},_onBlur:function(t){this.internalValue=this._mask(t.target.value,!0),this.$emit("input",this.internalValue)},_mask:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.match(Ci);if(!n)return"";var i=n[1]||"",r=n[2]||"";return i=this._prepareHours(i),r=this._prepareMinutes(r),e&&(i||r)&&(i=this._prepareZeroNumbers(i),r=this._prepareZeroNumbers(r)),i+(""!==r?"".concat(":").concat(r):"")},_prepareZeroNumbers:function(t){for(var e="",n=0;n<2;n++)e+=t[n]||0;return e},_prepareHours:function(t){return t>23?t=23:t[0]>2&&(t="0".concat(t)),t},_prepareMinutes:function(t){return t>59?t=59:t[0]>5&&(t="0".concat(t)),t}}},xi=_(Ei,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-date-picker__time"},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{id:t.id,label:t.label}}),t._v(" "),n("CdsInput",t._g(t._b({attrs:{label:t.label,placeholder:t.placeholder,disabled:t.disabled,inputmode:"numeric",pattern:"[0-9]*",maxlength:"5"},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}},"CdsInput",t.$attrs,!1),t.events))],1)}),[],!1,null,null,null).exports,Ai={type:["simple","single","range"],locale:["ru","en"]},Di=_({name:"CdsDatePicker",components:{CdsInputDescription:Vn,CdsInputError:Rn,CdsIcon:an,CdsInput:Tn,CdsInputLabel:Hn,CdsTime:xi},mixins:[dn],model:{prop:"value",event:"change"},props:{label:{type:String,default:"",description:"Лейб над полем выбора даты"},description:{type:String,default:null,description:"Вспомогательное описание"},type:{type:String,default:"simple",available:Ai.type,description:"Тип выбора даты",validator:function(t){return b(Ai.type,t,"CdsDatePicker.type")}},dateFormat:{type:String,default:"d.m.Y",description:"Формат даты"},timeFormat:{type:String,default:"H:i",description:"Формат времени"},allowInput:{type:Boolean,default:!1,description:"Разрешает пользователю вводить дату в поле ввода"},minDate:{type:[String,Date],default:null,description:'Минимальная дата, до которой возможен выбор (включительно). Принимаются даты, обработанные .toLocaleDateString() и строки вида: "10.03.2022"'},maxDate:{type:[String,Date],default:null,description:'Максимальная дата, с которой возможен выбор (включительно). Принимаются даты, обработанные .toLocaleDateString() и строки вида: "10.03.2022"'},locale:{type:String,default:"ru",available:Ai.locale,description:"Локализация календаря",validator:function(t){return b(Ai.locale,t,"CdsDatePicker.locale")}},placeholder:{type:String,default:"дд.мм.гггг",description:"Плейсхолдер в поле ввода даты"},enableTime:{type:Boolean,default:!1,description:"Отобразить поле ввода времени"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибки"},disabled:{type:Boolean,default:!1,description:"Заблокированное поле ввода даты"},disabledDates:{type:Array,default:function(){return[]},description:"Заблокированные даты"},options:{type:Object,default:function(){return{}},description:"Все доступные опции одной конфигурацией"},value:{type:[String,Object,Date,Array],default:null,description:"Выбранное значение даты (v-model)"}},data:function(){return{internalValue:this.value,initializedIcon:!1,initializedStyles:!1,time:void 0}},computed:{isSimple:function(){return"simple"===this.type},isSingle:function(){return"single"===this.type},isRange:function(){return"range"===this.type},inputValue:function(){return this.isSimple?this.internalValue:null},dateTimeFormat:function(){return this.enableTime?"".concat(this.dateFormat," ").concat(this.timeFormat):this.dateFormat},classes:function(){return c({"cds-date-picker":!0},m.disabled,this.disabled)},wrapperClasses:function(){return c({"cds-date-picker__wrapper":!0,"cds-date-picker__single":this.isSingle,"cds-date-picker__range":this.isRange},m.invalid,this.error)},events:function(){return{click:this._onClick,input:this._onInput,keydown:this._onKeyDown,keyup:this._onKeyUp,focus:this._onFocus,blur:this._onBlur}},language:function(){return"ru"===this.locale?gi.Russian:null}},watch:{value:function(t){if(this.isRange&&!Object.keys(t).length)return this.plugin.clear(!1,!1),this.internalValue=t,void(this.$refs.toDate.$el.querySelector("input").value="");var e=this.isRange?[t.startDate,t.endDate]:t;this.plugin&&this.plugin.setDate(e,!0,this.dateTimeFormat),this.isSimple&&(this.internalValue=this._mask(t))},type:function(){this._initPlugin()},options:function(){this._initPlugin()}},mounted:function(){this._initPlugin(),this._prependInputNum()},beforeDestroy:function(){this.plugin&&this.plugin.destroy()},methods:{open:function(){this.isSimple||(this._prepareStyles(this.plugin),this.plugin.open(),this.$emit("open"))},close:function(){this.isSimple||(this.plugin.close(),this.$emit("close"))},getDate:function(){return this.isRange?{startDate:mi().parseDate(this.internalValue.startDate,this.dateTimeFormat),endDate:mi().parseDate(this.internalValue.endDate,this.dateTimeFormat)}:mi().parseDate(this.internalValue,this.dateTimeFormat)},convertToIso:function(){return this.isRange?{startDate:this.getDate().startDate.toISOString(),endDate:this.getDate().endDate.toISOString()}:this.getDate().toISOString()},convertToTimestamp:function(){return this.isRange?{startDate:this.getDate().startDate.getTime(),endDate:this.getDate().endDate.getTime()}:this.getDate().getTime()},_initPlugin:function(){if(!this.isSimple){var t=this.$refs.date.$el.querySelector("input");this.plugin=new(mi())(t,this._getOptions())}},_getOptions:function(){var t=p({dateFormat:this.dateFormat,disable:this.disabledDates,locale:this.language,allowInput:this.allowInput,minDate:this.minDate,maxDate:this.maxDate,disableMobile:!0},this.options);if(t.static=!0,t.onClose=this._onClose,t.onChange=this._onChange,t.onReady=this._onReady,t.onMonthChange=this._onMonthChange,t.onYearChange=this._onYearChange,this.internalValue&&(t.defaultDate=this.isRange?[this.getDate().startDate,this.getDate().endDate]:this.getDate(),this.enableTime)){var e=this.$refs.time.$el.querySelector("input");if(e){var n=this.isRange?this.getDate().startDate:this.getDate();this.time=mi().formatDate(n,this.timeFormat),e.value=this.time}}if(this.isRange){var i=this.$refs.toDate.$el.querySelector("input");i&&(t.plugins=[new(yi())({input:i,position:"left"})])}return t},_onClose:function(){this.isRange&&this.value&&this.$refs.date.$el.querySelector("input").blur()},_onChange:function(t,e,n){var i,r,o=this;this._prepareStyles(n);var s=pi(t,2),u=s[0],a=s[1],l=function(t){return"object"===Kn(t)||"number"==typeof t?n.formatDate(t,o.dateTimeFormat):t||""};if(this.internalValue&&(this.isRange?(i=l(this.internalValue.startDate),r=l(this.internalValue.endDate)):i=l(this.internalValue)),this.enableTime){var c=this.$refs.time.$el.querySelector("input");c&&(this.time=c.value)}if(this.isRange)i===l(u)&&r===l(a)||(this.internalValue={startDate:l(u),endDate:l(a)},this.$emit("change",this.internalValue));else{if(i===l(u))return;this.internalValue=l(u),this.$emit("change",this.internalValue)}},_onReady:function(t,e,n){this._prepareStyles(n),this._prepareIcons(),this.$emit("ready",n)},_onTimeChange:function(t){if(this.enableTime){this.time=t;var e=this.internalValue&&"object"===Kn(this.internalValue)?this.internalValue.startDate&&this.internalValue.endDate:this.internalValue;if(this.plugin&&e){var n=this.isRange?this.getDate().startDate:this.getDate(),i="".concat(mi().formatDate(n,this.dateFormat)," ").concat(this.time);this.plugin.setDate(i,!0,this.dateTimeFormat)}this.$emit("timeChange",this.time)}},_onMonthChange:function(t,e,n){this._prepareStyles(n),this.$emit("monthChange",n)},_onYearChange:function(t,e,n){this._prepareStyles(n),this.$emit("yearChange",n)},_onClick:function(t){this.$emit("click",t)},_onInput:function(t){if(this.isSimple){if(this.internalValue=this._mask(t),t!==this.internalValue)return;this.$emit("change",this.internalValue)}this.$emit("input",t)},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this.open),c(e,v.down,this.open),c(e,v.space,this.open),c(e,v.esc,this.close),e);if(this.$emit("keydown",t),n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_onFocus:function(t){this.$emit("focus",t)},_onBlur:function(t){this.$emit("blur",t)},_onKeyUp:function(t){this.$emit("keyup",t)},_prepareStyles:function(t){if(!this.initializedStyles){var e=t.calendarContainer,i="flatpickr",r={classCalendarContainer:"cds-date-picker__calendar",classInnerContainer:"inner-container",classRContainer:"rContainer",classDayContainer:"day-container",classWeekDayContainer:"week-day-container",classPrevMonth:"prev-month",classNextMonth:"next-month",classCurrentMonth:"current-month",classMonths:"months",classWeekdays:"weekdays",classWeekday:"weekday",classDays:"days",classDay:"day"};if(e){var o=e.querySelector(".".concat(i,"-innerContainer")),s=e.querySelector(".".concat(i,"-weekdaycontainer")),u=e.querySelector(".dayContainer");for(var a in e.classList.add(r.classCalendarContainer),o.classList.add(r.classInnerContainer),s.classList.add(r.classWeekDayContainer),u.classList.add(r.classDayContainer),r){var l=".".concat(i,"-").concat(r[a]),c=r[a],d=e.querySelectorAll(l);if(jn(d).length){var f,h=n(d);try{for(h.s();!(f=h.n()).done;){var p=f.value;(p||c)&&p.classList.add(c)}}catch(t){h.e(t)}finally{h.f()}}}this.initializedStyles=!0}}},_prepareIcons:function(){if(!this.initializedIcon){var t=s().extend(an);new t({propsData:{name:"chevron-left"}}).$mount(".prev-month > svg"),new t({propsData:{name:"chevron-right"}}).$mount(".next-month > svg"),this.initializedIcon=!0}},_mask:function(t){var e=this.dateFormat.replace(/[DMY]/gi,"").split("")[0];return bi().toPattern(t,"99".concat(e,"99").concat(e,"9999"))},_prependInputNum:function(){var t=this.$refs.datepicker.querySelector(".numInput");t&&(t.type="text",t.maxLength=4)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"datepicker",class:t.classes},[n("cds-input-label",{directives:[{name:"show",rawName:"v-show",value:t.label,expression:"label"}],attrs:{id:t.id+"-input-1",label:t.label}}),t._v(" "),t.description?n("cds-input-description",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",{class:t.wrapperClasses},[n("div",{staticClass:"cds-date-picker__control"},[n("CdsInput",t._g({ref:"date",class:{"cds-date-picker__range--start":"range"===t.type},attrs:{id:t.id+"-input-1",type:"text",invalid:t.error,placeholder:t.placeholder,disabled:t.disabled,value:t.inputValue,autocomplete:"off",maxlength:"10","suffix-class":"input-suffix"}},t.events),[t.error||t.isSimple?t._e():n("CdsIcon",{staticClass:"cds-date-picker__icon",attrs:{slot:"suffix",name:"calendar","aria-label":t.label},slot:"suffix"})],1)],1),t._v(" "),t.isRange?n("div",{staticClass:"cds-date-picker__control"},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:t.id+"-input-2",label:t.label}}),t._v(" "),n("CdsInput",t._g({ref:"toDate",staticClass:"cds-date-picker__range--end",attrs:{id:t.id+"-input-2",type:"text",invalid:t.error,disabled:t.disabled,placeholder:t.placeholder,autocomplete:"off",maxlength:"10","suffix-class":"input-suffix"}},t.events),[t.error||t.isSimple?t._e():n("CdsIcon",{staticClass:"cds-date-picker__icon",attrs:{slot:"suffix",name:"calendar","aria-label":t.label},slot:"suffix"})],1)],1):t._e(),t._v(" "),t.enableTime?n("CdsTime",{ref:"time",attrs:{label:"time",disabled:t.disabled,"hidden-label":!0},on:{input:t._onTimeChange}}):t._e()],1),t._v(" "),t.error?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null).exports,ki=_({name:"CdsDatePickerSkeleton",components:{CdsInputSkeleton:zn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Di.install=function(t){t.component(Di.name,Di)},ki.install=function(t){t.component(ki.name,ki)},xi.install=function(t){t.component(xi.name,xi)},"undefined"!=typeof window&&window.Vue&&(Di.install(window.Vue),ki.install(window.Vue),xi.install(window.Vue));var Fi={appearance:["primary","inverse"]},Si=_({name:"CdsDrawer",model:{prop:"active",event:"change"},props:{active:{type:Boolean,default:!1,description:"Скрыть/Показать drawer (доступна v-model)"},open:{type:Boolean,default:!1,description:"Открываемый drawer"},right:{type:Boolean,default:!1,description:"Позиционирование drawer справа"},iconOnly:{type:Boolean,default:!1,description:"Маленький drawer"},absolute:{type:Boolean,default:!1,description:"Абсолютное позиционирование drawer"},borderless:{type:Boolean,default:!1,description:"Разделение между элементами"},fixedLayout:{type:Boolean,default:!1,description:"Фиксированный header и footer в drawer"},appearance:{type:String,required:!1,default:"primary",description:"Внешний вид бокового меню: primaty, inversive",available:Fi.appearance,validator:function(t){return b(Fi.appearance,t,"CdsDrawer.appearance")}}},data:function(){return{internalActive:this.active}},computed:{classes:function(){var t;return c(t={"cds-drawer":!0,"cds-drawer--open":this.open,"cds-drawer--icon-only":this.iconOnly,"cds-drawer--right":this.right,"cds-drawer--absolute":this.absolute,"cds-drawer--borderless":this.borderless,"cds-drawer--fixed-layout":this.fixedLayout},"cds-drawer--".concat(this.appearance),!0),c(t,m.active,this.internalActive),t},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer}},watch:{active:function(t){this.internalActive=t,t?this.$emit("open"):this.$emit("close")}},mounted:function(){this._prepareItems()},updated:function(){this._prepareItems()},methods:{_prepareItems:function(){for(var t=this.$children.filter((function(t){return t.$_CdsDrawerItem})),e=0;e<t.length;e++)t[e].right=this.right}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("aside",{class:t.classes},[t.hasHeaderSlot?n("div",{staticClass:"cds-drawer__header"},[t._t("header")],2):t._e(),t._v(" "),n("nav",{staticClass:"cds-drawer__content"},[n("ul",[t._t("default")],2)]),t._v(" "),t.hasFooterSlot?n("div",{staticClass:"cds-drawer__footer"},[t._t("footer")],2):t._e()])}),[],!1,null,null,null).exports,Bi=_({name:"CdsDrawerItem",components:{CdsTooltip:yn},props:{active:{type:Boolean,default:!1,description:"Активный ли элемент"},title:{type:String,default:"",description:"Название элемента (доступен также через slot#default)"},to:{type:[String,Object],default:"",description:"Ссылка или объект для навигации через vue-router"},href:{type:String,default:"",description:"Обычная ссылка"}},data:function(){return{right:!1}},computed:{classes:function(){return c({"cds-drawer__item":!0},m.active,this.active)},tooltipDirection:function(){return this.right?"left":"right"},tooltipDisabled:function(){return!this.$parent.iconOnly}},created:function(){this.$_CdsDrawerItem=!0}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:t.classes},[t.to?[n("cds-tooltip",{attrs:{tip:t.title,align:"center",direction:t.tooltipDirection,disabled:t.tooltipDisabled,tabindex:"-1"}},[t.to?n("router-link",{staticClass:"cds-drawer__item--link",attrs:{to:t.to}},[t._t("icon"),t._v(" "),n("span",{staticClass:"cds-drawer__item--content"},[t._v("\n "+t._s(t.title)+"\n "),t._t("default")],2)],2):t._e()],1)]:t.href?[n("cds-tooltip",{attrs:{tip:t.title,align:"center",direction:t.tooltipDirection,disabled:t.tooltipDisabled,tabindex:"-1"}},[n("a",{staticClass:"cds-drawer__item--link",attrs:{href:t.href}},[t._t("icon"),t._v(" "),n("span",{staticClass:"cds-drawer__item--content"},[t._v("\n "+t._s(t.title)+"\n "),t._t("default")],2)],2)])]:t._e()],2)}),[],!1,null,null,null).exports,$i=_({name:"CdsDrawerGroup",components:{CdsAccordionItem:Fn,CdsAccordion:kn},props:{title:{type:String,required:!0},active:{type:Boolean,default:!1,description:"Открыт/Скрыт"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-drawer__group"},[n("cds-accordion",[n("cds-accordion-item",{attrs:{open:t.active},scopedSlots:t._u([{key:"title",fn:function(){return[t._t("icon"),t._v(" "),n("span",[t._v(t._s(t.title))])]},proxy:!0},{key:"content",fn:function(){return[t._t("default")]},proxy:!0}],null,!0)})],1)],1)}),[],!1,null,null,null).exports,Ii=_({name:"CdsDrawerLabel"},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"cds-drawer__label"},[t._t("default")],2)}),[],!1,null,null,null).exports;Si.install=function(t){t.component(Si.name,Si)},Bi.install=function(t){t.component(Bi.name,Bi)},$i.install=function(t){t.component($i.name,$i)},Ii.install=function(t){t.component(Ii.name,Ii)},"undefined"!=typeof window&&window.Vue&&(Si.install(window.Vue),Bi.install(window.Vue),$i.install(window.Vue),Ii.install(window.Vue));i(2707);var Oi={name:"CdsDropdown",components:{CdsIcon:an,CdsInputDescription:Vn},mixins:[dn],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{label:{type:String,default:"",description:"Лейбл"},description:{type:String,default:"",description:"Описание выпадающего списка"},placeholder:{type:String,default:"Выбрать",description:"Плейсхолдер выпадающего списка"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},value:{type:[String,Number],default:void 0,description:"Выбранное значение (также поддерживает v-model)"}},data:function(){return{isActive:!1,dataValue:this.value,isFocused:!1,isHovered:!1,internalItem:void 0}},computed:{classes:function(){return c({"cds-dropdown":!0},m.disabled,this.disabled)},controlClasses:function(){var t;return c(t={"cds-dropdown__control":!0},m.active,!this.disabled&&this.isActive),c(t,m.disabled,this.disabled),t},events:function(){return{click:this._onClick,focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut,keydown:this._onKeyDown}},internalValue:{get:function(){return this.dataValue},set:function(t){var e=this;this._getDropdownItems().forEach((function(n){var i=n.value===t;n.internalSelected=i,i&&(e.$refs.valueContent.innerHTML=n.internalContent)})),this.dataValue!==t&&(this.dataValue=t,this.$emit("change",this.dataValue))}}},watch:{value:function(t){this.internalValue=t},isActive:function(t){t||(this.internalItem=void 0)}},created:function(){var t=this;this.$on("mounted",(function(e){return t._onItemMount(e)})),this.$on("beforeDestroy",(function(e){return t._onItemBeforeDestroy(e)})),this.$on("blurItem",(function(e){return t._onBlurItem(e)}))},mounted:function(){this.internalValue=this.dataValue},methods:{open:function(){return!this.disabled&&!this.isActive&&(this.isActive=!0,this.$emit("open"),!0)},close:function(){if(!this.isActive)return!1;this.isActive=!1,this.$emit("close")},select:function(t){this.internalValue=t,this.$refs.dropdown.focus()},_onItemMount:function(t){t.internalSelected?this.internalValue=t.value:this.internalValue===t.value&&(t.internalSelected=!0,this.internalValue=t.value)},_onItemBeforeDestroy:function(t){t.value===this.internalValue&&(this.dataValue=null)},_onClick:function(t){this._isEventTargetDisabledItem(t.target)||(this.isActive?this.close():this.open(),this.$emit("click",t))},_onBlur:function(t){var e=t.relatedTarget||document.activeElement;this._isEventTargetDisabledItem(e)?this.$refs.dropdown.focus():this._getDropdownItems().map((function(t){return t.$el.firstElementChild})).includes(e)||(this.close(),this.isFocused=!1,this.$emit("blur",t))},_onBlurItem:function(t){var e=t.relatedTarget||document.activeElement;(!e||"cds-dropdown__link"!==e.className&&e.id!==this.id)&&this.close()},_onFocus:function(t){this.isFocused||(this.isFocused=!0,this.$emit("focus",t))},_onMouseOver:function(t){this.isHovered=!0,this._getDropdownItems().filter((function(e){return e.$el.firstElementChild!==t.target})).forEach((function(t){return t._onMouseOut()})),this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,this.$emit("mouseout",t)},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this._onInsertKey),c(e,v.space,this._onInsertKey),c(e,v.esc,this._onEscKey),c(e,v.up,this._itemNavigation),c(e,v.down,this._itemNavigation),e);if(n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_onInsertKey:function(t){this.isFocused&&!this.internalItem?this.isActive?this.close():this.open():(this.internalItem._onClick(t),this.close())},_onEscKey:function(){this.close(),this.$refs.dropdown.focus()},_isEventTargetDisabledItem:function(t){var e=this._getDropdownItems().filter((function(e){return[e.$el,e.$el.childNodes[0]].includes(t)}))[0];return e&&e.disabled},_itemNavigation:function(t){if(!this.isActive)return this.open(),!0;var e,n=t.keyCode===v.up,i=this._getDropdownItems(),r=this.internalItem?this.internalItem:i.filter((function(t){return t.isFocused}))[0],o=-1;r&&(e=r.value),void 0!==e&&(o=i.findIndex((function(t){return t.value===e})));var s=this._getNextFocusIndex(o,n);s<0||(this.internalItem=i[s],this.internalItem.setFocus())},_getNextFocusIndex:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._getDropdownItems(),i=n.filter((function(e,n){return n!==t&&!e.internalSelected&&!e.disabled}));return i.map((function(t){return n.indexOf(t)})).sort((function(n,i){return e?n>t?i>t?i-n:n-i:i>t?n-i:i-n:n>t?i>t?n-i:i-n:i>t?i-n:n-i}))[0]},_getDropdownItems:function(){return this.$children.filter((function(t){return t.$_CdsDropdownItem}))}}},Li=_(Oi,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[t.label?n("span",{staticClass:"cds-dropdown__label",on:{click:function(e){return t.$refs.dropdown.focus()}}},[t._v("\n "+t._s(t.label)+"\n ")]):t._e(),t._v(" "),t.description?n("CdsInputDescription",{staticClass:"cds-dropdown__description",attrs:{description:t.description}}):t._e(),t._v(" "),n("div",t._g(t._b({ref:"dropdown",class:t.controlClasses,attrs:{id:t.id,"data-value":t.internalValue,"aria-label":t.label,"aria-disabled":t.disabled,"aria-controls":"cds-dropdown__list","aria-haspopup":"true",tabindex:"0"}},"div",t.$attrs,!1),t.events),[n("div",{staticClass:"cds-dropdown__content"},[n("div",{ref:"valueContent",staticClass:"cds-dropdown__placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),n("CdsIcon",{staticClass:"cds-dropdown__icon",attrs:{name:"chevron-down"}})],1),t._v(" "),n("ul",{staticClass:"cds-dropdown__list",attrs:{"aria-hidden":!t.isActive,"aria-labelledby":t.id,role:"menu"}},[t._t("default")],2)])],1)}),[],!1,null,null,null).exports,Ti=_({name:"CdsDropdownItem",inheritAttrs:!1,props:{value:{type:[String,Number],required:!0,default:void 0,description:"Выбираемое значение"},selected:{type:Boolean,default:!1,description:"Выбранное значение"},disabled:{type:Boolean,default:!1,description:"Заблокированный"}},data:function(){return{dataSelected:this.selected,isHovered:!1,isFocused:!1}},computed:{classes:function(){var t;return c(t={"cds-dropdown__item":!0},m.active,this.dataSelected),c(t,m.hover,this.isHovered),c(t,m.focus,this.isFocused),c(t,m.disabled,this.disabled),t},events:function(){return{click:this._onClick,focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut}},internalSelected:{get:function(){return this.dataSelected},set:function(t){this.dataSelected=t}},internalContent:function(){return this.$refs.item.innerHTML},title:function(){return this.$slots.default?this.$slots.default[0].text:null}},mounted:function(){this.$_CdsDropdownItem=!0,this.$parent.$emit("mounted",this)},beforeDestroy:function(){this.$parent.$emit("beforeDestroy",this)},methods:{setFocus:function(){this.disabled||(this.$refs.item.focus(),this._onFocus())},_onClick:function(t){this.disabled||(this.$parent.select(this.value),this.$emit("click",t))},_onFocus:function(t){this.disabled||(this.isFocused=!0,t instanceof Event&&this.$emit("focus",t))},_onBlur:function(t){this.disabled||(this.isFocused=!1,t instanceof Event&&(this.$emit("blur",t),this.$parent.$emit("blurItem",t)))},_onMouseOver:function(t){this.isHovered=!0,t instanceof Event&&(this.$parent.internalItem=this),this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,t instanceof Event&&(this.$parent.internalItem=void 0),this._onBlur(),this.$emit("mouseout",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",t._b({class:t.classes},"li",t.$attrs,!1),[n("div",t._g({ref:"item",staticClass:"cds-dropdown__link",attrs:{tabindex:"-1",title:t.title,"aria-label":t.title}},t.events),[t._t("default")],2)])}),[],!1,null,null,null).exports,Mi=_({name:"CdsDropdownSkeleton",components:{CdsInputSkeleton:zn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Li.install=function(t){t.component(Li.name,Li)},Ti.install=function(t){t.component(Ti.name,Ti)},Mi.install=function(t){t.component(Mi.name,Mi)},"undefined"!=typeof window&&window.Vue&&(Li.install(window.Vue),Ti.install(window.Vue),Mi.install(window.Vue));var Vi=_({name:"CdsEmptyState",props:{title:{type:String,required:!0,description:"Заголовок"},description:{type:String,default:"",description:"Описание"},image:{type:String,default:"",description:"[Deprecated] Ссылка на изображение"}},computed:{hasImage:function(){return!!this.$slots.image}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-empty-state"},[t.image&&!t.hasImage?n("img",{staticClass:"cds-empty-state__image",attrs:{src:t.image,alt:t.title}}):t._e(),t._v(" "),t.hasImage?n("div",{staticClass:"cds-empty-state__image"},[t._t("image")],2):t._e(),t._v(" "),t.title?n("h4",{staticClass:"cds-empty-state__title"},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.description?n("span",{staticClass:"cds-empty-state__description"},[t._v(t._s(t.description))]):t._e(),t._v(" "),t._t("actions")],2)}),[],!1,null,null,null).exports,Ri=_({name:"CdsEmptyStateSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-empty-state"},[n("h4",{staticClass:"cds-empty-state__title"},[n("cds-skeleton",{attrs:{width:"110px",height:"16px"}})],1),t._v(" "),n("span",{staticClass:"cds-empty-state__description"},[n("cds-skeleton",{attrs:{width:"178px",height:"12px"}})],1),t._v(" "),n("cds-skeleton",{attrs:{width:"140px",height:"32px"}})],1)}),[],!1,null,null,null).exports;Vi.install=function(t){t.component(Vi.name,Vi)},Ri.install=function(t){t.component(Ri.name,Ri)},"undefined"!=typeof window&&window.Vue&&(Vi.install(window.Vue),Ri.install(window.Vue));var Hi={appearance:["primary","secondary","inverse"]},zi=_({name:"CdsFooter",components:{CdsAccordion:kn,CdsAccordionItem:Fn,CdsLink:$n},props:{items:{type:Array,required:!0,description:"Элементы навигации, представляет из себя объект ссылки CdsLink"},appearance:{type:String,default:"primary",description:"Внешний вид",available:Hi.appearance,validator:function(t){return b(Hi.appearance,t,"PromoFooter.appearance")}}},computed:{classes:function(){return c({"cds-footer":!0},"cds-footer--".concat(this.appearance),this.appearance)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{class:t.classes},[n("div",{staticClass:"cds-footer__additional"},[t._t("default")],2),t._v(" "),n("nav",{staticClass:"cds-footer__nav"},[t._l(t.items,(function(e,i){return n("ul",{key:e.title+i,staticClass:"cds-footer__nav--menu"},[n("h6",{staticClass:"cds-footer__nav--title"},[t._v(t._s(e.title))]),t._v(" "),n("li",[n("ul",t._l(e.links,(function(t,e){return n("li",{key:t.to+e},[n("cds-link",{attrs:{text:t.text,to:t.to,"use-router":t.useRouter,disable:t.disable,blank:t.blank}})],1)})),0)])])})),t._v(" "),n("cds-accordion",{staticClass:"cds-footer__nav--accordion"},t._l(t.items,(function(e,i){return n("cds-accordion-item",{key:e.title+i,attrs:{title:e.title},scopedSlots:t._u([{key:"content",fn:function(){return[n("ul",t._l(e.links,(function(t,e){return n("li",{key:t.to+e},[n("cds-link",{attrs:{text:t.text,to:t.to,"use-router":t.useRouter,disable:t.disable,blank:t.blank}})],1)})),0)]},proxy:!0}],null,!0)})})),1)],2),t._v(" "),n("div",{staticClass:"cds-footer__social"},[t._t("social")],2)])}),[],!1,null,null,null).exports,Pi={appearance:["primary","secondary"],align:["start","center","end","between"]},ji=_({name:"CdsFooterService",components:{CdsLink:Bn},props:{items:{type:Array,required:!0,description:"Элементы навигации, представляет из себя объект ссылки CdsLink"},appearance:{type:String,default:"primary",description:"Внешний вид",available:Pi.appearance,validator:function(t){return b(Pi.appearance,t,"Footer.appearance")}},align:{type:String,default:"start",description:"Позиционирование",available:Pi.align,validator:function(t){return b(Pi.align,t,"Footer.align")}}},computed:{classes:function(){var t;return c(t={"cds-footer-service":!0},"cds-footer-service--".concat(this.appearance),this.appearance),c(t,"cds-footer-service__align--".concat(this.align),this.align),t}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{class:t.classes},[n("nav",{staticClass:"cds-footer-service__nav"},[n("ul",t._l(t.items,(function(t,e){return n("li",{key:t.to+e,staticClass:"cds-footer-service__item"},[n("cds-link",{attrs:{to:t.to,text:t.text,"use-router":t.useRouter,blank:t.blank,disabled:t.disable}})],1)})),0)]),t._v(" "),n("div",{staticClass:"cds-footer-service__additional"},[t._t("default")],2)])}),[],!1,null,null,null).exports;zi.install=function(t){t.component(zi.name,zi)},ji.install=function(t){t.component(ji.name,ji)},"undefined"!=typeof window&&window.Vue&&(zi.install(window.Vue),ji.install(window.Vue));var Ni=_({name:"CdsForm"},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("form",t._g({staticClass:"cds-form"},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports,Ui=_({name:"CdsFormItem"},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"cds-form__item"},[t._t("default")],2)}),[],!1,null,null,null).exports,Ki=_({name:"CdsFormGroup",components:{CdsInputDescription:Vn},props:{legend:{type:String,required:!0,default:null,description:"Легенда"},description:{type:String,default:null,description:"Описание формы"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("fieldset",{staticClass:"cds-form__group"},[n("legend",[t._v(t._s(t.legend))]),t._v(" "),t.description?n("CdsInputDescription",{staticClass:"cds-form__description",attrs:{description:t.description}}):t._e(),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports;Ni.install=function(t){t.component(Ni.name,Ni)},Ui.install=function(t){t.component(Ui.name,Ui)},Ki.install=function(t){t.component(Ki.name,Ki)},"undefined"!=typeof window&&window.Vue&&(Ni.install(window.Vue),Ui.install(window.Vue),Ki.install(window.Vue));var qi=["start","end","center"],Wi=["left","right"],Yi=["xs","sm","md","lg","xl"],Gi={tag:{type:String,default:"div",description:"Тэг контейнера."},noGutters:{type:Boolean,default:!1,description:"Удаление полей со всех сторон."},noGutter:{type:String,default:null,validator:function(t){return Wi.includes(t)},description:"Удаление полей одной из сторон."},fluid:{type:Boolean,default:!1,description:"Резиновая сетка."},condensed:{type:Boolean,default:!1,description:"Конденсированная сетка."}},Ji={name:"CdsGrid",props:Gi,render:function(t){return t(this.tag,{class:c({"cds-grid":!0,"cds-grid-fluid":this.fluid,"cds-grid-condensed":this.condensed,"cds-no-gutter":this.noGutters},"cds-no-gutter-".concat(this.noGutter),this.noGutter)},this.$slots.default)}},Zi=Ji,Xi=_(Zi,undefined,undefined,!1,null,null,null).exports,Qi=_({name:"CdsRow",props:{tag:{type:String,default:"div",description:"Тэг строки."},noGutters:{type:Boolean,default:!1,description:"Удаление полей со всех сторон."},noGutter:{type:String,default:null,validator:function(t){return Wi.includes(t)},description:"Удаление полей одной из сторон."},alignV:{type:String,default:null,validator:function(t){return qi.concat(["baseline","stretch"]).includes(t)},description:"Выравнивание э2лементов по перекрёстной оси."},alignH:{type:String,default:null,validator:function(t){return qi.concat(["between","around"]).includes(t)},description:"Выравнивание элементов по главной оси."},alignContent:{type:String,default:null,validator:function(t){return qi.concat(["between","around","stretch"]).includes(t)},description:"Промежутки между flex строками по перекрёстной оси."}},render:function(t){var e;return t(this.tag,{staticClass:"cds-row",class:(e={"cds-no-gutter":this.noGutters},c(e,"cds-no-gutter-".concat(this.noGutter),this.noGutter),c(e,"cds-align-items-".concat(this.alignV),this.alignV),c(e,"cds-justify-content-".concat(this.alignH),this.alignH),c(e,"cds-align-content-".concat(this.alignContent),this.alignContent),e)},this.$slots.default)}},undefined,undefined,!1,null,null,null).exports;function tr(){return{type:[String,Number],default:null}}var er,nr,ir=(er=function(t,e,n){var i="cds-".concat(t);if(!1!==n&&null!=n)return e&&(i+="-".concat(e)),"col"!==t||""!==n&&!0!==n?(i+="-".concat(n)).toLowerCase():i.toLowerCase()},nr=Object.create(null),function(){var t=JSON.stringify(arguments);return nr[t]=nr[t]||er.apply(null,arguments)}),rr=Yi.reduce((function(t,e){return t[e]={type:[Boolean,String,Number],default:!1},t}),Object.create(null)),or=Yi.reduce((function(t,e){return t[E(e,"offset")]=tr(),t}),Object.create(null)),sr=Yi.reduce((function(t,e){return t[E(e,"order")]=tr(),t}),Object.create(null)),ur=Object.assign(Object.create(null),{col:Object.keys(rr),offset:Object.keys(or),order:Object.keys(sr)}),ar=_({name:"CdsCol",props:p(p(p(p({},rr),or),sr),{},{tag:{type:String,default:"div",description:"Тег колонки."},col:{type:Boolean,default:!1,description:"Неномерная колонка."},noGutter:{type:String,default:null,description:"Удаление отступов у колонки.",validator:function(t){return Wi.includes(t)}},cols:p(p({},tr()),{},{description:"Размер колонки."}),offset:p(p({},tr()),{},{description:"Смещение колонки."}),order:p(p({},tr()),{},{description:"Порядок колонки."}),alignSelf:{type:String,default:null,description:"Выравнивание колонки по перекрёстной оси.",validator:function(t){return qi.concat(["auto","baseline","stretch"]).includes(t)}}}),render:function(t){var e,n=[];for(var i in ur)for(var r=ur[i],o=0;o<r.length;o++){var s=ir(i,r[o].replace(i,""),this[r[o]]);s&&n.push(s)}return n.push((c(e={"cds-col":this.col||0===n.length&&!this.cols,"cds-col-auto":this.cols},"cds-col-".concat(this.cols),this.cols),c(e,"cds-offset-".concat(this.offset),this.offset),c(e,"cds-order-".concat(this.order),this.order),c(e,"cds-align-self-".concat(this.alignSelf),this.alignSelf),c(e,"cds-no-gutter-".concat(this.noGutter),this.noGutter),e)),t(this.tag,{class:n},this.$slots.default)}},undefined,undefined,!1,null,null,null).exports,lr=_({name:"CdsBlock",props:{ratio:{type:String,required:!0,description:"Фиксированный по размерам блок 1x1, 1x2, 2x1, 2x3, 3x2, 4x3, 16x9",validator:function(t){return["1x1","1x2","2x1","2x3","3x2","4x3","16x9"].includes(t)}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-aspect-ratio",class:["cds-aspect-ratio-"+t.ratio]},[n("div",{class:t.$style["cds-aspect-ratio-object"]},[t._t("default")],2)])}),[],!1,null,null,null).exports;Xi.install=function(t){t.component(Xi.name,Xi)},Qi.install=function(t){t.component(Qi.name,Qi)},ar.install=function(t){t.component(ar.name,ar)},lr.install=function(t){t.component(lr.name,lr)},"undefined"!=typeof window&&window.Vue&&(Xi.install(window.Vue),Qi.install(window.Vue),ar.install(window.Vue),lr.install(window.Vue));var cr=_({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0H16V4H0V0Z",fill:"#E5E5E5"}}),t._v(" "),n("path",{attrs:{d:"M1 1H15V4H1V1Z",fill:"white"}}),t._v(" "),n("path",{attrs:{d:"M0 8H16V12H0V8Z",fill:"#EB0000"}}),t._v(" "),n("path",{attrs:{d:"M0 4H16V8H0V4Z",fill:"#1D6EF6"}})])}),[],!1,null,null,null).exports,dr=_({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H16V12H0V0ZM1.68421 1.84615H14.3158V10.1538H1.68421V1.84615Z",fill:"#1D6EF6"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.2037 0.923065H15.1578V11.0769C15.1578 11.0769 14.7326 10.9089 14.2037 11.0769H0.842041V0.923065H14.2037Z",fill:"#1D6EF6"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.842041 0.923065V2.07691L7.13004 5.53845L7.57888 4.96153L7.13004 4.3846L7.57888 4.1363L1.74057 0.923065H0.842041ZM7.57888 4.1363L8.08415 4.3846L7.57888 4.96153L8.08415 5.53845L15.1578 2.07691V0.923065H14.1473L12.026 1.9606L7.57888 4.1363ZM7.13004 6.46153L0.842041 9.92307V11.0769H1.74057L7.57888 7.86368L7.13004 7.61537L7.57888 7.03845L7.13004 6.46153ZM7.57888 7.03845L8.08415 7.61537L7.57888 7.86368L14.1473 11.0769H15.1578V9.92307L8.08415 6.46153L7.57888 7.03845Z",fill:"white"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.72242 4.45664L0.890844 4.52494L0.831055 7.44648L6.67948 7.44833L6.69042 11.0825L9.29505 11.088L9.29842 7.48802L15.1022 7.41417L15.1258 4.48433L9.21421 4.57294L9.23695 0.97479L6.77969 0.954482L6.72074 0.943405L6.72242 4.45664Z",fill:"white"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.57888 5.53845H0.842041V6.46153H7.57888V11.0769H8.42099V6.46153H15.1578V5.53845H8.42099V0.923065H7.57888V5.53845Z",fill:"#EB0000"}})])}),[],!1,null,null,null).exports,fr={appearance:["primary","inverse","transparent"],languages:["ru","en"]},hr=_({name:"CdsHeader",components:{CdsLink:$n,En:dr,Ru:cr},props:{appearance:{type:String,required:!1,default:"primary",description:"Внешний вид шапки: primaty, inversive, transparent",available:fr.appearance,validator:function(t){return b(fr.appearance,t,"CdsHeader.appearance")}},navItems:{type:Array,required:!1,description:"Массив с элементами меню.",default:function(){return[]}},isToolbarTransparent:{type:Boolean,required:!1,description:"Прозрачность тулбара.",default:!1},languageBtn:{type:Boolean,default:!1,description:"Показать кнопку смену языка"},language:{type:String,default:"ru",description:"ВЫбранный язык при инициализации",available:fr.languages,validator:function(t){return b(fr.languages,t,"CdsHeader.languages")}}},data:function(){return{languageOpened:!1,selectedLanguage:"ru",languages:["ru","en"]}},computed:{classes:function(){return c({"cds-header__top":!0},"cds-header__top--".concat(this.appearance),this.appearance)},toolbarClasses:function(){var t;return c(t={"cds-header__toolbar":!0},"cds-header__toolbar--".concat(this.appearance),this.appearance),c(t,"cds-header__toolbar--transparent",this.isToolbarTransparent),t},isInverse:function(){return"inverse"===this.appearance},classesState:function(){return m},hasToolbar:function(){return!!this.$slots.toolbar||this.languageBtn}},created:function(){this.selectedLanguage=this.language},methods:{onTrigger:function(t){this.$emit("menu-trigger",t)},_toggleLanguage:function(){this.languageOpened=!this.languageOpened},_closeLanguage:function(){this.languageOpened=!1},changeLanguage:function(t){fr.languages.includes(t)?(this.languageOpened&&this._closeLanguage(),this.selectedLanguage=t,this.$emit("changeLanguage",t)):console.error("Ошибка в методе changeLanguage. Вы не можете выбрать этот язык, доступные языки: ".concat(fr.languages.join(", ")))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",{staticClass:"cds-header"},[n("div",{class:t.classes},[n("div",{staticClass:"cds-header__left-side"},[n("div",{staticClass:"cds-header__trigger"},[n("cds-button",{attrs:{appearance:"transparent","icon-only":"",inverse:t.isInverse},on:{click:t.onTrigger},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"menu"}})]},proxy:!0}])})],1),t._v(" "),t._t("left")],2),t._v(" "),n("div",{staticClass:"cds-header__main"},[n("div",{staticClass:"cds-header__main--top"},[t._t("default")],2),t._v(" "),n("div",{staticClass:"cds-header__main--bottom"},[n("nav",{staticClass:"cds-header__nav"},[n("ul",{staticClass:"cds-header__nav--list"},t._l(t.navItems,(function(e,i){var r;return n("li",{key:e.text+i,staticClass:"cds-header__nav--item",class:(r={},r[t.classesState.active]=e.active,r)},[n("cds-link",{attrs:{to:e.to,text:e.text,tabindex:"0","use-router":e.useRouter,disabled:e.disabled,blank:e.blank}}),t._v(" "),e.children?n("ul",{staticClass:"cds-header__nav--sub"},t._l(e.children,(function(e,i){var r;return n("li",{key:e.text+i,staticClass:"cds-header__nav--item",class:(r={},r[t.classesState.active]=e.active,r)},[n("cds-link",{attrs:{to:e.to,text:e.text,tabindex:i,"use-router":e.useRouter,disabled:e.disabled,blank:e.blank}})],1)})),0):t._e()],1)})),0)])])]),t._v(" "),n("div",{staticClass:"cds-header__right-side"},[n("div",{staticClass:"cds-header__additional"},[t._t("right")],2)])]),t._v(" "),t.hasToolbar?n("div",{class:t.toolbarClasses},[t._t("toolbar"),t._v(" "),t.languageBtn?n("div",{staticClass:"cds-header__language"},[n("CdsButton",{attrs:{role:"button","icon-only":""},on:{click:t._toggleLanguage,blur:t._closeLanguage},scopedSlots:t._u([{key:"icon",fn:function(){return[n(t.selectedLanguage,{tag:"component"})]},proxy:!0}],null,!1,2419400725)}),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.languageOpened?n("ul",{staticClass:"cds-header__language-items",attrs:{role:"menu"}},t._l(t.languages,(function(e){return n("li",{key:e,staticClass:"cds-header__language-items-item",on:{click:function(n){return t.changeLanguage(e)}}},[n(e,{tag:"component"})],1)})),0):t._e()])],1):t._e()],2):t._e()])}),[],!1,null,null,null).exports,pr=_({name:"CdsHeaderService"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",{staticClass:"cds-header-service"},[n("div",{staticClass:"cds-header-service__left-side"},[t._t("left")],2),t._v(" "),n("div",{staticClass:"cds-header-service__right-side"},[t._t("right")],2)])}),[],!1,null,null,null).exports;hr.install=function(t){t.component(hr.name,hr)},pr.install=function(t){t.component(pr.name,pr)},"undefined"!=typeof window&&window.Vue&&hr.install(window.Vue),"undefined"!=typeof window&&window.Vue&&pr.install(window.Vue);var vr=_({name:"CdsImage",props:{src:{type:String,required:!0},srcset:{type:Object,required:!1,default:function(){}},alt:{type:String,required:!0}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("picture",{staticClass:"cds-picture"},[t.srcset?n("source",{attrs:{srcset:t.srcset,type:"image/svg+xml"}}):t._e(),t._v(" "),n("img",{attrs:{src:t.src,alt:t.alt}})])}),[],!1,null,null,null).exports;vr.install=function(t){t.component(vr.name,vr)},"undefined"!=typeof window&&window.Vue&&vr.install(window.Vue);var mr=vr,gr=_({name:"CdsList",mixins:[pn],childrenType:"CdsListItem",minChildrenCount:1,props:{ordered:{type:Boolean,default:!1,description:"Активирует упорядоченный список"}},data:function(){return{isOrdered:this.ordered,isNested:!1}},computed:{listType:function(){return this.isOrdered?"ol":"ul"},classes:function(){return{"cds-list--ordered":this.isOrdered,"cds-list--unordered":!this.isOrdered,"cds-list--nested":this.isNested}}},created:function(){var t=this;this.$on("mounted",(function(e){return t._nestedList(e)}))},methods:{_nestedList:function(t){var e=this;t.$children.filter((function(t){return x("CdsList",t.$options._componentTag)})).forEach((function(t){t.isOrdered=e.isOrdered,t.isNested=!0}))}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.listType,{tag:"component",class:t.classes},[t._t("default")],2)}),[],!1,null,null,null).exports,_r=_({name:"CdsListItem",mixins:[hn],parentType:"CdsList",mounted:function(){this.$parent.$emit("mounted",this)}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("li",{staticClass:"cds-list__item"},[t._t("default")],2)}),[],!1,null,null,null).exports,yr=_({name:"CdsListSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-list--unordered cds-list__skeleton"},[n("li",{staticClass:"cds-list__item"},[n("cds-skeleton",{staticClass:"cds-checkbox__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"84px",height:"12px"}})],1),t._v(" "),n("li",{staticClass:"cds-list__item"},[n("cds-skeleton",{staticClass:"cds-checkbox__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("li",{staticClass:"cds-list__item"},[n("cds-skeleton",{staticClass:"cds-checkbox__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"76px",height:"12px"}})],1)])}),[],!1,null,null,null).exports;gr.install=function(t){t.component(gr.name,gr)},_r.install=function(t){t.component(_r.name,_r)},yr.install=function(t){t.component(yr.name,yr)},"undefined"!=typeof window&&window.Vue&&(gr.install(window.Vue),_r.install(window.Vue),yr.install(window.Vue));var wr={bind:function(t,e,n){var i=!1;t.clickOutsideEvent=function(r){var o=r.path||r.composedPath&&r.composedPath();(o?!o.includes(t):!t.contains(r.target))&&i&&n.context[e.expression](r)},t.mouseDownEvent=function(e){var n=e.path||e.composedPath&&e.composedPath();i=n?!n.includes(t):!t.contains(e.target)},document.body.addEventListener("mousedown",t.mouseDownEvent),document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent),document.body.addEventListener("mousedown",t.mouseDownEvent)}},br={size:["sm","md","lg"]},Cr=_({name:"CdsModal",components:{CdsIcon:an,CdsLoading:w,CdsButton:k},directives:{clickOutside:wr},mixins:[dn],model:{prop:"showed",event:"change"},props:{showed:{type:Boolean,default:!1,description:"Модальное окно Видно/Скрыто"},size:{type:String,required:!1,default:"md",available:br.size,description:"Размер модального окна ".concat(br.size.join(", ")),validator:function(t){return b(br.size,t,"CdsModal.size")}},header:{type:String,required:!0,description:"Заголовок модального окна"},loading:{type:Boolean,required:!1,default:!1,description:"Отображение спиннера"},preventClose:{type:Boolean,required:!1,default:!1,description:'Отключить дефолтные способы отклонения окна (click вне окна, ESC или "x")'}},data:function(){return{isLoading:this.loading,isOpened:!1,internalShowed:!1,isOpening:!1,isClosing:!1}},computed:{hideEvents:function(){return{keydown:this._clickForHide,click:this._clickForHide}},headerId:function(){return this.generateDynamicId()},classes:function(){return c({"cds-modal":!0},"cds-modal--".concat(this.size),!0)},overlayClasses:function(){return{"cds-modal__overlay":!0,opening:this.isOpening,closing:this.isClosing}},hasFooter:function(){return this.$slots.footer}},watch:{showed:function(t,e){t!==e&&this[t?"show":"hide"]()}},mounted:function(){this.showed&&this.$nextTick(this.show)},beforeDestroy:function(){this.internalShowed&&(this.hide(),this.isLoading=!1,this.isOpened=!1)},methods:{show:function(){this.internalShowed||(this.$emit("show"),this.$emit("change",!0),this.internalShowed=!0,document&&window&&(document.body.style.overflow="hidden"))},hide:function(){var t=this;this.internalShowed&&(this.isClosing=!0,this.$nextTick((function(){t.$emit("hide"),t.$emit("change",!1),t.internalShowed=!1,document&&window&&document.body.style.removeProperty("overflow")})))},_enterAnimation:function(){this.isOpening=!0},_afterEnterAnimation:function(){this.isOpened=!0,this.$el.focus()},_afterLeaveAnimation:function(){this.isOpened=!1,this.isClosing=!1,this.isOpening=!1},_clickForHide:function(t){!this.preventClose&&this.isOpened&&(t.keyCode!==v.space&&"click"!==t.type||(this.hide(),this.isOpened=!1))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{on:{enter:t._enterAnimation,"after-enter":t._afterEnterAnimation,"after-leave":t._afterLeaveAnimation}},[t.internalShowed?n("div",{key:t.id,class:t.overlayClasses,attrs:{id:t.id,role:"dialog","aria-modal":"true","aria-describedby":t.headerId,tabindex:"-1"}},[n("section",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t._clickForHide,expression:"_clickForHide"}],class:t.classes},[t.preventClose?t._e():n("CdsButton",t._g({staticClass:"cds-modal__dismiss",attrs:{"icon-only":"","aria-label":"close modal"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"remove"}})]},proxy:!0}],null,!1,63127537)},t.hideEvents)),t._v(" "),n("header",{staticClass:"cds-modal__header",attrs:{id:t.headerId}},[t._v("\n "+t._s(t.header)+"\n ")]),t._v(" "),n("div",{class:["cds-modal__body",{"cds-modal__body--has-footer":t.hasFooter}]},[t._t("body")],2),t._v(" "),n("footer",{staticClass:"cds-modal__footer"},[t._t("footer")],2),t._v(" "),t.loading?n("CdsLoading",{staticClass:"cds-modal__loader",attrs:{active:t.isLoading,overlay:""}}):t._e()],1)]):t._e()])}),[],!1,null,null,null).exports;Cr.install=function(t){t.component(Cr.name,Cr)},"undefined"!=typeof window&&window.Vue&&Cr.install(window.Vue);var Er=Cr,xr=(i(189),i(8783),i(3948),i(1038),i(7601),_({name:"CdsMultiselect",components:{CdsInputLabel:Hn,CdsInputDescription:Vn,CdsInputError:Rn,CdsCheckbox:Nn,CdsIcon:un},mixins:[dn],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{label:{type:String,default:"",description:"Лейбл мульти-селекта"},placeholder:{type:String,required:!0,description:"Плейсхолдер мульти-селекта"},description:{type:String,default:"",description:"Описание мульти-селекта"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},filterable:{type:Boolean,default:!1,description:"Поиск и фильтрация выпадающего списка"},value:{type:Array,default:function(){return[]},description:"Выбранные значения (поддерживает v-model)",validator:function(t){var e=t.every((function(t){return"string"==typeof t||"number"==typeof t}));return e||console.warn("CdsMultiselect.value - значение должно содержать массив"),e}},options:{type:Array,required:!0,description:"Отображаемые данные в выпадающем списке [{ name: string, value: string|number, children: [] }]",validator:function(t){var e=t.every((function(t){return"string"==typeof t.name&&("string"==typeof t.value||"number"==typeof t.value)}));return e||console.warn("CdsMultiselect.options - значение должно содержать массив [{ name: string, value: string|number, children: [] }]"),e}},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"},selectAllBtn:{type:Boolean,default:!1,description:"Кнопка выбрать все"}},data:function(){return{isOpen:!1,internalOptions:null,internalValue:[],highlightedValue:null,dataFilter:"",baseFontSize:16}},computed:{events:function(){return p(p({},this.$listeners),{},{input:this._onInput,keydown:this._onKeyDown,click:this._onClick,change:this._onChange})},containerClasses:function(){return c({"cds-multiselect__container":!0},m.disabled,this.disabled)},multiselectClasses:function(){var t;return c(t={"cds-multiselect":!0},m.active,this.isOpen),c(t,m.checked,this.internalValue.length),c(t,m.disabled,this.disabled),t},fieldClasses:function(){return c({"cds-multiselect__field":!0,"cds-wsuffix":!0,"cds-wprefix":this.internalValue.length},m.invalid,this.error)},clearClasses:function(){return c({"cds-multiselect__icon":!0,"cds-multiselect__clear":!0},m.active,this.filter.length)},arrowClasses:function(){return{"cds-multiselect__icon":!0,"cds-multiselect__arrow":!0}},errorClasses:function(){return{"cds-multiselect__icon":!0,"cds-multiselect__alert":!0}},styles:function(){return{paddingLeft:this.calculatedRem}},calculatedRem:function(){var t=this.internalValue.length?String(this.internalValue.length).length:0,e=this.baseFontSize/2;return(e*t+(t>0?5*e:this.baseFontSize))/this.baseFontSize+"rem"},filter:{get:function(){return this.dataFilter},set:function(t){this.dataFilter=t||"",this.$emit("filter",t)}},isAllSelected:function(){return this.internalValue.length===this.allValues.length},indeterminate:function(){return!!this.internalValue.length&&this.internalValue.length!==this.allValues.length},allValues:function(){var t=[];return this.options.forEach((function(e){var n;null!==(n=e.children)&&void 0!==n&&n.length?e.children.forEach((function(e){return t.push(e.value)})):t.push(e.value)})),t}},watch:{value:function(t){this.internalValue=jn(new Set([].concat(jn(this.internalValue),jn(t))))},options:function(){this._updateOptions()}},created:function(){this._updateOptions(),this._prependDataValue()},mounted:function(){this.highlightedValue=this.value.length?this.value[0]:this.internalValue.length?this.internalOptions[0].value:null},methods:{open:function(){this.isOpen||(this.isOpen=!0,this._updateOptions(),this.$emit("open"))},close:function(){this.isOpen&&(this.isOpen=!1,this.$emit("close"))},clear:function(){this.filter="",this.$emit("clear")},reset:function(){this.internalValue=[],this.$emit("reset")},setFocus:function(){(this.filterable?this.$refs.input:this.$refs.control).focus()},_selectAll:function(){if(!this.isAllSelected||this.indeterminate)return this.internalValue=Array.from(new Set(this.internalValue.concat(this.allValues))),void this.$emit("selectAll",!0);this._onClearValues(),this.$emit("selectAll",!1)},_updateOptions:function(){var t=this,e=this.filter.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(e,"i");this.internalOptions=this.options.filter((function(t){return n.test(t.name)})).slice(0),this.internalOptions.length&&this.internalValue.forEach((function(e){var n=t.internalOptions.findIndex((function(t){return t.value===e}));t.internalOptions.splice(0,0,t.internalOptions.splice(n,1)[0])}))},_onInput:function(){this.open(),this._updateOptions()},_onClick:function(t){var e=this;this.disabled?t.preventDefault():(this.isOpen?(this.setFocus(),this.$nextTick((function(){e.filterable||e.close()}))):(this.open(),this.setFocus()),this.$emit("click",t))},_onChange:function(t){this.filterable||this.$emit("change",t)},_onFocusOut:function(t){var e=t.relatedTarget||document.activeElement;this.$el.contains(e)||this.$refs.tag.contains(t.target)||this.close()},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this._pressHandler),c(e,v.space,this._pressHandler),c(e,v.esc,this._closeHandler),c(e,v.up,this._navigationHandler),c(e,v.down,this._navigationHandler),e);this.$emit("keydown",t),n[t.keyCode]&&n[t.keyCode](t)},_pressHandler:function(t){if(this.filterable&&t.keyCode===v.space)return!0;t.preventDefault(),this.isOpen?this._onItemChange(this.highlightedValue):this.open()},_closeHandler:function(t){t.preventDefault(),this.close(),this.setFocus()},_navigationHandler:function(t){var e=this;if(t.preventDefault(),!this.isOpen)return this.open(),!0;if(this.internalOptions.length){var n,i=t.keyCode===v.up,r=t.keyCode===v.down,o=this.internalOptions.findIndex((function(t){return t.value===e.highlightedValue}));if(i)n=o<=0?this.internalOptions.length-1:o-1;else{if(!r)return!1;n=o>=this.internalOptions.length-1?0:o+1}this.highlightedValue=this.internalOptions[n].value,this.$nextTick((function(){e._scrollOptionsPosition(n)}))}},_onClickArrow:function(t){this.disabled||(this.isOpen?this.close():this.open(),this.$emit("click",t))},_onClearFilter:function(){this.disabled||(this.clear(),this.setFocus(),this._updateOptions())},_onClearValues:function(){this.disabled||(this.reset(),this.setFocus(),this.$emit("change",this.internalValue))},_onItemChange:function(t){var e=this.internalValue.findIndex((function(e){return t===e}));e>-1?this.internalValue.splice(e,1):this.internalValue.push(t),this.filter="",this.setFocus(),this.$emit("change",this.internalValue)},_onMousemove:function(t){this.highlightedValue=t},_onClickToLabel:function(){this.filterable||(this.$refs.control.focus(),this.open())},_optionClasses:function(t){return{"cds-multiselect__option":!0,"cds-multiselect__select-all":"selectAll"===t,"cds-highlighted":this.highlightedValue===t}},_scrollOptionsPosition:function(t){var e=this.$refs.options,n=this.$refs.option;e&&n&&(e.scrollTop>n[t].offsetTop?e.scrollTop=n[t].offsetTop:e.scrollTop+e.clientHeight<n[t].offsetTop+n[t].offsetHeight&&(e.scrollTop=n[t].offsetTop+n[t].offsetHeight-e.clientHeight))},_prependDataValue:function(){var t=this;this.value.length&&(this.internalValue=this.value.filter((function(e){var n="number"==typeof e?e:e.trim();return t.internalOptions.some((function(t){return t.value===n}))})))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.containerClasses,on:{focusout:t._onFocusOut}},[t.label?n("CdsInputLabel",{attrs:{id:t.id,label:t.label,optional:t.optional,"optional-label":t.optionalLabel},on:{click:t._onClickToLabel}}):t._e(),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",t._b({ref:"select",class:t.multiselectClasses,attrs:{role:"listbox",tabindex:"-1"}},"div",t.$attrs,!1),[n("div",{class:t.fieldClasses},[n("span",{staticClass:"cds-multiselect__field--prefix"},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.internalValue.length,expression:"internalValue.length"}],ref:"tag",staticClass:"cds-multiselect__tag",attrs:{type:"button"},on:{click:t._onClearValues}},[n("span",{staticClass:"cds-multiselect__text"},[t._v(t._s(t.internalValue.length))]),t._v(" "),n("CdsIcon",{attrs:{name:"remove"}})],1)]),t._v(" "),t.filterable?n("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.filter,expression:"filter"}],ref:"input",staticClass:"cds-multiselect__control",style:t.styles,attrs:{id:t.id,type:"text",placeholder:t.placeholder,disabled:t.disabled,"aria-label":t.label,"aria-expanded":t.isOpen,"aria-owns":t.id,"aria-controls":t.id,autocomplete:"off","aria-haspopup":"true",tabindex:"0"},domProps:{value:t.filter},on:{input:function(e){e.target.composing||(t.filter=e.target.value)}}},t.events)):n("div",t._g({ref:"control",staticClass:"cds-multiselect__control",style:t.styles,attrs:{role:"button",tabindex:"0"}},t.events),[n("span",{staticClass:"cds-multiselect__placeholder"},[t._v(t._s(t.placeholder))])]),t._v(" "),n("span",{staticClass:"cds-multiselect__field--suffix"},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.error,expression:"error"}],class:t.errorClasses,attrs:{type:"button",tabindex:"-1"}},[n("CdsIcon",{attrs:{name:"alert"}})],1),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.filter.length,expression:"filter.length"}],class:t.clearClasses,attrs:{type:"button",title:"Очистить поле ввода"},on:{click:t._onClearFilter}},[n("CdsIcon",{attrs:{name:"remove"}})],1),t._v(" "),n("button",{class:t.arrowClasses,attrs:{type:"button",tabindex:"-1"},on:{click:t._onClickArrow}},[n("CdsIcon",{attrs:{name:"chevron-down"}})],1)])]),t._v(" "),n("div",{ref:"options",staticClass:"cds-multiselect__options",attrs:{role:"list"}},[t.selectAllBtn?n("div",{class:t._optionClasses("selectAll"),on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t._selectAll.apply(null,arguments)},mousemove:function(e){return t._onMousemove("selectAll")},mousedown:function(t){t.preventDefault()}}},[n("CdsCheckbox",{staticClass:"cds-multiselect__checkbox",attrs:{indeterminate:t.indeterminate,label:"Выбрать все",tabindex:"-1"},model:{value:t.isAllSelected,callback:function(e){t.isAllSelected=e},expression:"isAllSelected"}})],1):t._e(),t._v(" "),t._l(t.internalOptions,(function(e,i){return[e.children?[n("div",{key:e.value+"-"+i,staticClass:"cds-multiselect__group"},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),t._l(e.children,(function(e,i){return n("div",{key:e.value+"-"+i,ref:"option",refInFor:!0,class:t._optionClasses(e.value),on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t._onItemChange(e.value)},mousemove:function(n){return t._onMousemove(e.value)},mousedown:function(t){t.preventDefault()}}},[n("CdsCheckbox",{staticClass:"cds-multiselect__checkbox",attrs:{label:e.name,value:e.value,tabindex:"-1"},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}})],1)}))]:n("div",{key:e.value+"-"+i,ref:"option",refInFor:!0,class:t._optionClasses(e.value),on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t._onItemChange(e.value)},mousemove:function(n){return t._onMousemove(e.value)},mousedown:function(t){t.preventDefault()}}},[n("CdsCheckbox",{staticClass:"cds-multiselect__checkbox",attrs:{label:e.name,value:e.value,tabindex:"-1"},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}})],1)]}))],2),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)],1)}),[],!1,null,null,null)),Ar=xr.exports,Dr=_({name:"CdsMultiselectSkeleton",components:{CdsInputSkeleton:zn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Ar.install=function(t){t.component(Ar.name,Ar)},Dr.install=function(t){t.component(Dr.name,Dr)},"undefined"!=typeof window&&window.Vue&&(Ar.install(window.Vue),Dr.install(window.Vue));var kr=_({name:"CdsOverflowMenu",childrenType:"CdsOverflowMenuItem",components:{CdsButton:k,CdsTooltip:yn},mixins:[dn,pn],props:{flip:{type:Boolean,default:!1,description:"Обратное направление открытого меню"},up:{type:Boolean,default:!1,description:"Открывать меню вверх"},icon:{type:String,default:"overflowMenuVertical",description:"Иконка меню действий"},tooltip:{type:String,required:!0,description:"Всплывающее название меню"},tooltipDirection:{type:String,default:"right",description:"Позиционирование всплывающего названия меню"},tooltipAlign:{type:String,default:"center",description:"Выравнивание всплывающего названия меню"}},data:function(){return{isActive:!1,isFocused:!1,isHovered:!1}},computed:{classes:function(){var t;return c(t={"cds-overflow-menu":!0,"cds-overflow-menu--flip":this.flip,"cds-overflow-menu--up":this.up},m.active,this.isActive),c(t,m.focus,this.isFocused),t},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut,keydown:this._onKeyDown,focus:this._onFocus,blur:this._onBlur})},internalTooltipDirection:function(){return this.flip&&"right"===this.tooltipDirection?"left":this.tooltipDirection}},created:function(){this.$on("select",this._onSelect),this.$on("close",this.close),this.$on("blur",this._onItemBlur),this.$on("navigation",this._onNavigation)},methods:{open:function(){var t=this;if(this.isActive)return!1;this.isActive=!0,this.$nextTick((function(){t.doFocus()})),this.$emit("open")},close:function(){var t=this;if(!this.isActive)return!1;this.isActive=!1,this.$nextTick((function(){t.doFocus()})),this.$emit("close")},doFocus:function(){if(this.isActive)this.getMenuItems()[0].setFocus();else{var t=this.$refs.trigger;if(!t)return;t.$el.focus()}},getMenuItems:function(){return this.$children.filter((function(t){return"cdsOverflowMenuItem"===(0,C.camelCase)(t.$options._componentTag)}))},_onSelect:function(t){this.close(),this.$emit("selected",t)},_onClick:function(t){this.isActive?this.close():this.open(),this.$emit("click",t)},_onMouseOver:function(t){this.isHovered=!0,this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,this.$emit("mouseout",t)},_onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},_onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},_onItemBlur:function(t){var e=t.relatedTarget||document.activeElement;this.getMenuItems().map((function(t){return t.$el.firstElementChild})).includes(e)||e!==this.$refs.trigger.$el&&this.close()},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this.isActive?this.close:this.open),c(e,v.space,this.isActive?this.close:this.open),c(e,v.esc,this.close),c(e,v.up,this._onNavigation),c(e,v.down,this._onNavigation),e);if(this.$emit("keydown",t),n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_onNavigation:function(t){if(!this.isActive)return this.open(),!0;var e,n=t.keyCode===v.up,i=t.keyCode===v.down,r=this.getMenuItems(),o=r.length-1,s=r.findIndex((function(t){return t.isFocused}));if(n)r[e=s>0?s-1:o].disabled&&(e=e>0?e-1:o);else{if(!i)return!1;r[e=s<o?s+1:0].disabled&&(e=e<o?e+1:0)}r[e].setFocus()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("CdsTooltip",{attrs:{tip:t.tooltip,direction:t.internalTooltipDirection,align:t.tooltipAlign,tabindex:"-1"}},[n("CdsButton",t._g(t._b({ref:"trigger",staticClass:"cds-overflow-menu__trigger",attrs:{id:t.id,role:"button","icon-only":"","aria-label":t.tooltip,"aria-expanded":t.isActive,"aria-controls":t.id,"aria-haspopup":"true"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:t.icon}})]},proxy:!0}])},"CdsButton",t.$attrs,!1),t.events))],1),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.isActive?n("ul",{ref:"items",staticClass:"cds-overflow-menu__items",attrs:{"aria-labelledby":t.id,role:"menu"}},[t._t("default")],2):t._e()])],1)}),[],!1,null,null,null).exports,Fr=_({name:"CdsOverflowMenuItem",components:{CdsButton:k,CdsLink:$n},inheritAttrs:!1,props:{selected:{type:Boolean,default:!1,description:"Выбранные элемент меню"},disabled:{type:Boolean,default:!1,description:"Заблокированный элемент меню"},to:{type:[String,Object],default:void 0,description:"Url-адресс ссылки или объект router для элемента меню"},blank:{type:Boolean,default:!1,description:"Если есть ссылка (prop.to), открывать ли в новой вкладе"}},data:function(){return{isFocused:!1,isHovered:!1}},computed:{component:function(){return this.to?"CdsLink":"CdsButton"},classes:function(){var t;return c(t={"cds-overflow-menu__option":!0,"cds-overflow-menu__button":!this.isLink,"cds-overflow-menu__link":this.isLink},m.active,this.selected),c(t,m.disabled,this.disabled),t},title:function(){return this.$slots.default?this.$slots.default[0].text.trim():null},target:function(){return this.blank?"_blank":null},tabindex:function(){return this.disabled?-1:null},isLink:function(){return this.to?this.to:null},isRouter:function(){return this.to?"object"===Kn(this.to):null}},methods:{setFocus:function(){var t=this.$refs.item;if(t){var e=t.$el;e&&e.focus()}},_onClick:function(t){this.disabled||this.$parent.$emit("select",t)},_onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},_onBlur:function(t){this.isFocused=!1,this.$parent.$emit("blur",t)},_onMouseOver:function(t){this.isHovered=!0,this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,this.$emit("mouseover",t)},_onKeyDown:function(t){var e,n=(c(e={},v.esc,this._onEscKey),c(e,v.up,this._onNavigation),c(e,v.down,this._onNavigation),e);if(n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_onEscKey:function(t){this.$parent.$emit("close",t)},_onNavigation:function(t){this.$parent.$emit("navigation",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",[n(t.component,t._g(t._b({ref:"item",tag:"component",class:t.classes,attrs:{role:"menuitem",to:t.isLink,target:t.target,tabindex:t.tabindex,disabled:t.disabled,"aria-disabled":t.disabled,"use-router":t.isRouter,title:t.title,"aria-label":t.title},nativeOn:{click:function(e){return t._onClick.apply(null,arguments)},keydown:function(e){return t._onKeyDown.apply(null,arguments)},blur:function(e){return t._onBlur.apply(null,arguments)},focus:function(e){return t._onFocus.apply(null,arguments)},mouseover:function(e){return t._onMouseOver.apply(null,arguments)},mouseout:function(e){return t._onMouseOut.apply(null,arguments)},mouseleave:function(e){return t._onMouseOut.apply(null,arguments)}}},"component",t.$attrs,!1),t.$listeners),[n("span",{staticClass:"cds-overflow-menu__text"},[t._t("default")],2)])],1)}),[],!1,null,null,null),Sr=Fr.exports;kr.install=function(t){t.component(kr.name,kr)},Sr.install=function(t){t.component(Sr.name,Sr)},"undefined"!=typeof window&&window.Vue&&(kr.install(window.Vue),Sr.install(window.Vue));var Br=_({name:"CdsPagination",components:{CdsButton:k},model:{prop:"current",event:"change"},props:{count:{type:Number,default:0,required:!0,description:"Общее количество элементов",validator:function(t){var e=t>=0;return e||console.warn("CdsPagination.count значение не может быть меньше нуля"),e}},perPage:{type:Number,default:0,required:!0,description:"Количество элементов отображаемых на одной странице",validator:function(t){var e=t>=0;return e||console.warn("CdsPagination. значение не может быть меньше нуля"),e}},current:{type:Number,default:0,description:"Текущая выбранная страница (поддерживает v-model)",validator:function(t){var e=t>=0;return e||console.warn("CdsPagination.current значение не может быть меньше нуля"),e}},preventInitialChange:{type:Boolean,default:!1,description:"Компонент не будет инициировать первоначальное событие change"}},data:function(){return{currentPage:this.current,limit:10,resize:!1,preventChange:!1}},computed:{countPage:function(){return this.count/this.perPage},visible:function(){return this.countPage>1},pages:function(){for(var t=[],e=0;e<this.countPage;){var n;e++,t.push({count:e,style:(n={},c(n,m.active,this.currentPage===e),c(n,"cds-pagination__page",!0),n)})}return t},visiblePages:function(){var t=this;return this.countPage>this.limit?this.pages.filter((function(e){return e.count<=t.limit-2})):this.pages},hiddenPages:function(){var t=this;return this.countPage>this.limit?this.pages.filter((function(e){return e.count>t.limit-2&&e.count!==t.lastPage})):[]},lastPage:function(){return this.pages.length},lastPageStyle:function(){return c({"cds-pagination__page":!0,"cds-pagination__page--last":!0},m.active,this.currentPage===this.lastPage)},disabledNext:function(){return this.currentPage===this.lastPage},disabledPrev:function(){return 1===this.currentPage},isMorePage:function(){return this.hiddenPages.length},isSelectPage:function(){return this.hiddenPages.map((function(t){return t.count})).includes(this.currentPage)},selectClasses:function(){var t;return t=this.currentPage>=100?"s":this.currentPage>=10?"m":"l",["cds-pagination__select","cds-pagination__select--padding-".concat(t)]},internalValue:{get:function(){return this.currentPage},set:function(t){this.currentPage=this._preparePageValue(t),this.preventChange?this.preventChange=!1:this.$emit("change",t)}}},watch:{current:function(t){this.internalValue!==t&&(this.internalValue=t)}},beforeMount:function(){this.preventChange=this.preventInitialChange},mounted:function(){var t=this;this.internalValue=this.currentPage,this.$nextTick((function(){window.outerWidth<=320&&(t.resize=!0,t.limit=8),window.addEventListener("resize",t._onResize)}))},beforeDestroy:function(){window.removeEventListener("resize",this._onResize)},methods:{next:function(){if(!this.disabledNext)return this.internalValue++,this.$emit("next",this.internalValue),this.internalValue},prev:function(){if(!this.disabledPrev)return this.internalValue--,this.$emit("prev",this.internalValue),this.internalValue},goPage:function(t){this.internalValue=t},_preparePageValue:function(t){return 0===t?t+1:t},_onResize:function(t){t.target.outerWidth<=320&&(this.resize||(this.resize=!0,this.limit=8,this.$emit("resize",t))),t.target.outerWidth>320&&10!==this.limit&&(this.resize=!1,this.limit=10,this.$emit("resize",t))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("nav",{staticClass:"cds-pagination",attrs:{role:"navigation","aria-label":"Навигация по страницам"}},[n("ul",{staticClass:"cds-pagination__list"},[t.isMorePage?n("li",[n("CdsButton",{staticClass:"cds-pagination__arrow",attrs:{appearance:"transparent","icon-only":"",disabled:t.disabledPrev,"aria-disabled":t.disabledPrev},on:{click:t.prev},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"chevron-left"}})]},proxy:!0}],null,!1,1304797194)})],1):t._e(),t._v(" "),t._l(t.visiblePages,(function(e){return n("li",{key:e.count},[n("CdsButton",{class:e.style,attrs:{"icon-only":""},on:{click:function(){return t.goPage(e.count)}},scopedSlots:t._u([{key:"icon",fn:function(){return[t._v("\n "+t._s(e.count)+"\n ")]},proxy:!0}],null,!0)})],1)})),t._v(" "),t.isMorePage?n("li",{staticClass:"cds-pagination__more"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.currentPage,expression:"currentPage"}],class:t.selectClasses,attrs:{id:""},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentPage=e.target.multiple?n:n[0]},function(e){return t.goPage(+e.target.value)}]}},[n("option",{attrs:{value:"",hidden:""}}),t._v(" "),t._l(t.hiddenPages,(function(e){return n("option",{key:e.count,domProps:{value:e.count}},[t._v("\n "+t._s(e.count)+"\n ")])}))],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isSelectPage,expression:"!isSelectPage"}],staticClass:"cds-pagination__select--icon"},[n("CdsIcon",{attrs:{name:"overflow-menu-horizontal"}})],1)]):t._e(),t._v(" "),t.isMorePage?n("li",[n("CdsButton",{class:t.lastPageStyle,attrs:{"icon-only":""},on:{click:function(){return t.goPage(t.lastPage)}},scopedSlots:t._u([{key:"icon",fn:function(){return[t._v("\n "+t._s(t.lastPage)+"\n ")]},proxy:!0}],null,!1,2021188994)})],1):t._e(),t._v(" "),t.isMorePage?n("li",[n("CdsButton",{staticClass:"cds-pagination__arrow",attrs:{appearance:"transparent","icon-only":"",disabled:t.disabledNext,"aria-disabled":t.disabledNext},on:{click:t.next},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"chevron-right"}})]},proxy:!0}],null,!1,2354191345)})],1):t._e()],2)]):t._e()}),[],!1,null,null,null).exports,$r=_({name:"CdsPaginationSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"cds-pagination"},[n("ul",{staticClass:"cds-pagination__list"},[n("li",[n("cds-button",{staticClass:"cds-pagination__arrow",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{nam:"chevron-left"}})]},proxy:!0}])})],1),t._v(" "),t._l(5,(function(e){return n("li",{key:e},[n("cds-button",{staticClass:"cds-pagination__page",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-skeleton",{attrs:{width:"12px",height:"12px"}})]},proxy:!0}],null,!0)})],1)})),t._v(" "),n("li",{staticClass:"cds-pagination__more"},[n("cds-button",{staticClass:"cds-pagination__page",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"OverflowMenuHorizontal"}})]},proxy:!0}])})],1),t._v(" "),n("li",[n("cds-button",{staticClass:"cds-pagination__page",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-skeleton",{attrs:{width:"12px",height:"12px"}})]},proxy:!0}])})],1),t._v(" "),n("li",[n("cds-button",{staticClass:"cds-pagination__arrow",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"chevron-right"}})]},proxy:!0}])})],1)],2)])}),[],!1,null,null,null).exports;Br.install=function(t){t.component(Br.name,Br)},$r.install=function(t){t.component($r.name,$r)},"undefined"!=typeof window&&window.Vue&&(Br.install(window.Vue),$r.install(window.Vue));var Ir="CdsRadioButton",Or=_({name:Ir,components:{CdsInputError:Rn,CdsInputDescription:Vn},mixins:[dn,fn],model:{prop:"model",event:"change"},props:{label:{type:String,default:null,description:"Лейбл для группы"},description:{type:String,default:null,description:"Описание для группы"},horizontal:{type:Boolean,default:!1,description:"Горизонтальное отображение"},options:{type:Array,default:function(){return[]},description:"Список опций. Минимальное количество 2. Возможные свойства опции: value, label, description, disabled, checked",validator:function(t){var e=!0;return t.length<2&&(console.warn("".concat(Ir,".options: минимальное длина свойства options 2.")),e=!1),e}},model:{type:[String,Boolean,Number],default:null,description:"Внешняя модель для группы, указывается v-model"},disabledAll:{type:Boolean,default:!1,description:"Дизейбл всех радиокнопок"},name:{type:String,default:null,description:"Нативное имя модели (если необходимо)"},autofocus:{type:[Boolean],default:!1,description:"Активировать фокус на группе"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},computed:{classes:function(){return{"cds-radio-button":!0,"cds-radio-button--horizontal":this.horizontal}},nameAttr:function(){return this.name?this.name:this.id}},methods:{change:function(t,e){this.$emit("change",e.value)},_getItemClasses:function(t){return c({},m.disabled,this.disabledAll||t.disabled)},_isItemChecked:function(t){return null===this.model?t.checked:this.model===t.value},_hasItemAutofocus:function(t){return this.autofocus&&0===t},_inputListeners:function(t){var e=this;return p(p({},this.$listeners),{},{change:function(){return e.$emit("change",t.value)},blur:function(){return e.$emit("blur")}})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[t.label?n("div",{staticClass:"cds-radio-button__label"},[t._v(t._s(t.preparedLabel))]):t._e(),t._v(" "),t.description?n("cds-input-description",{staticClass:"cds-radio-button__description",attrs:{description:t.description}}):t._e(),t._v(" "),t.options.length?n("div",{staticClass:"cds-radio-button__container"},t._l(t.options,(function(e,i){return n("div",{key:t.getDynamicItemIdByIndex(i),class:["cds-radio-button__item",t._getItemClasses(e)]},[n("input",t._g({attrs:{id:t.getDynamicItemIdByIndex(i),type:"radio",autofocus:t._hasItemAutofocus(i),name:t.nameAttr,"aria-invalid":t.error,disabled:t.disabledAll||e.disabled},domProps:{checked:t._isItemChecked(e),value:e.value}},t._inputListeners(e))),t._v(" "),n("label",{staticClass:"cds-radio-button__label-radio",attrs:{for:t.getDynamicItemIdByIndex(i)}},[t._v(t._s(e.label))]),t._v(" "),e.description?n("cds-input-description",{staticClass:"cds-radio-button__description-radio",attrs:{description:e.description}}):t._e()],1)})),0):t._e(),t._v(" "),t.error?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null).exports,Lr=_({name:"CdsRadioButtonSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-radio-button__item cds-state-disabled cds-radio-button__skeleton"},[n("input",{staticClass:"cds-checkbox__input",attrs:{type:"radio",disabled:""}}),t._v(" "),n("label",{staticClass:"cds-radio-button__label-radio"},[n("cds-skeleton",{staticClass:"cds-radio-button__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1)])}),[],!1,null,null,null).exports;Or.install=function(t){t.component(Or.name,Or)},Lr.install=function(t){t.component(Lr.name,Lr)},"undefined"!=typeof window&&window.Vue&&(Or.install(window.Vue),Lr.install(window.Vue));i(4765);var Tr=_({name:"CdsSearch",components:{CdsInput:Tn,CdsIcon:an,CdsLoading:w},mixins:[dn],inheritAttrs:!1,props:{label:{type:String,required:!1,default:"",description:"Label поиска"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на поиске"},placeholder:{type:String,default:"Найти",description:"Плейсхолдер"},value:{type:[String,Number],required:!1,default:"",description:"Внешняя модель для поиска, v-model"},clearAriaLabel:{type:String,default:"Очистить поле поиска",description:"Aria Label для кнопки очистить"},limit:{type:[String,Number],default:3,description:"Необходимое кол-во символов для поиска"},delay:{type:[String,Number],default:500,description:"Дебаунс для поиска, ms"},loading:{type:Boolean,default:!1,description:"Состояние загрузки"},dropdown:{type:Boolean,default:!1,description:"Активирует выпадающей список для результатов поиска"},results:{type:Array,default:function(){return[]},description:"Массив найденных элементов для выдающего списка { id: number|string, title: string, ... }"}},data:function(){return{internalValue:null,searching:null,debounce:null,isOpen:!1,isFocused:this.autofocus}},computed:{events:function(){return p(p({},this.$listeners),{},{click:this._click,input:this._input,keydown:this._onKeyDown,focus:this._onFocus,blur:this._onBlur})},classes:function(){return c({"cds-search":!0},m.active,this.showDropdown)},clearClasses:function(){return c({"cds-search__clear":!0},m.active,!!this.internalValue)},hasSlot:function(){return!!this.$slots.results},hasResults:function(){return!!this.dropdown&&!!this.results.length},showDropdown:function(){return!!this.dropdown&&(this.isOpen&&!!this.internalValue)}},watch:{immediate:!0,handler:function(t){this.internalValue=t}},mounted:function(){this.internalValue=this.value},methods:{clear:function(){this.internalValue="",this.$emit("input",this.internalValue),this.$emit("clear",this.internalValue)},_selectItem:function(t){this.internalValue=t.title,this.isOpen=!1,this.$emit("selectItem",t)},_click:function(t){this.dropdown&&(this.isOpen=!0),this.$emit("click",t)},_input:function(t){var e=this;this.internalValue=t,this.$emit("input",this.internalValue),this.internalValue.length>=+this.limit&&(clearTimeout(this.debounce),this.debounce=setTimeout((function(){e.$emit("search",e.internalValue)}),+this.delay))},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this._pressHandler),c(e,v.esc,this._closeHandler),e);if(t.keyCode===v.backspace&&this.internalValue.length<2&&this.$emit("search",""),this.$emit("keydown",t),n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_pressHandler:function(){this.internalValue.length&&(this.searching=this.internalValue)},_closeHandler:function(t){t.target.blur(),this.isFocused=!1,this.dropdown&&(this.isOpen=!1)},_onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},_onBlur:function(t){var e=t.relatedTarget||document.activeElement;e&&[this.$refs.container,this.$refs.search,this.$refs.dropdown].some((function(t){return t===e}))||(this.isOpen=!1,this.isFocused=!1,this.$emit("blur",t))},setFocus:function(){this.$refs.search.$el.querySelector("input").focus()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",class:t.classes,attrs:{tabindex:"-1"}},[n("label",{attrs:{for:t.id}},[t._v(t._s(t.label))]),t._v(" "),n("CdsInput",t._g(t._b({ref:"search",attrs:{id:t.id,autofocus:t.autofocus,placeholder:t.placeholder,role:"search",autocomplete:"off",tabindex:"0"},scopedSlots:t._u([{key:"prefix",fn:function(){return[n("CdsIcon",{ref:"close",staticClass:"cds-search__icon",attrs:{name:"search"},on:{click:t.setFocus}})]},proxy:!0},{key:"suffix",fn:function(){return[n("CdsLoading",{attrs:{active:t.loading,small:"",fixed:""}}),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.internalValue,expression:"internalValue"}],ref:"clear",class:t.clearClasses,attrs:{title:t.clearAriaLabel,"aria-label":t.clearAriaLabel,type:"button"},on:{click:t.clear}},[n("CdsIcon",{staticClass:"cds-search__clear-icon",attrs:{name:"remove"}})],1)]},proxy:!0}]),model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}},"CdsInput",t.$attrs,!1),t.events)),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.showDropdown?n("div",{ref:"dropdown",staticClass:"cds-search__dropdown",attrs:{"aria-hidden":!t.isOpen,role:"list"}},[t.hasSlot?t._t("results"):[t.hasResults?n("ul",t._l(t.results,(function(e){return n("li",{key:e.id,staticClass:"cds-search__dropdown-item",attrs:{tabindex:"0"},domProps:{innerHTML:t._s(e.title)},on:{click:function(n){return t._selectItem(e)},keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t._selectItem(e)}}})})),0):t._t("empty")]],2):t._e()])],1)}),[],!1,null,null,null).exports,Mr=_({name:"CdsSearchSkeleton"},(function(){var t=this.$createElement;return(this._self._c||t)("cds-skeleton",{staticClass:"cds-search__skeleton",attrs:{width:"240px",height:"32px"}})}),[],!1,null,null,null).exports;Tr.install=function(t){t.component(Tr.name,Tr)},Mr.install=function(t){t.component(Mr.name,Mr)},"undefined"!=typeof window&&window.Vue&&(Tr.install(window.Vue),Mr.install(window.Vue));var Vr=_({name:"CdsSelect",components:{CdsInputLabel:Hn,CdsInputDescription:Vn,CdsInputError:Rn,CdsIcon:an},mixins:[dn],inheritAttrs:!1,props:{label:{type:String,required:!0,description:"Лейбл компонента, выводится сверху"},isHiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"},placeholder:{type:String,required:!1,default:"Не выбрано",description:"Плейсхолдер отображается по умолчанию при пустом value"},description:{type:[String,Boolean],default:!1,description:"Доп текст"},options:{type:Array,required:!0,description:"Варианты значений.\nПростая опция { text: {String}, title: {String}, value: {String|Number}}\nГруппа опций { label: {String}, options: {Array}}"},value:{type:[String,Number],required:!1,default:"",description:"Если установили v-model компоненту, то value автоматически подставится. Иначе писать самому."},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированный селект"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на селекте"},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},data:function(){return{isClick:!1,isActive:!1,internalValue:""}},computed:{classes:function(){var t;return c(t={"cds-select":!0},m.active,this.isActive),c(t,m.invalid,this.error),c(t,m.disabled,this.disabled),c(t,m.empty,""===this.internalValue),t},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,blur:this._onBlur,change:this._onChange,input:this._onInput})}},watch:{value:function(t){this._setValue(t)}},mounted:function(){this._setValue(this.value)},methods:{_setValue:function(t){this.internalValue=t},_onBlur:function(t){this.isActive=!1,this.$emit("blur",t)},_onClick:function(t){this.disabled||(this.isActive=!0,this.$emit("click",t))},_onInput:function(t){this.$emit("input",t.target.value)},_onChange:function(t){this.isActive=!1;var e=t.target.value;e!==this.internalValue&&(this._setValue(e),this.$emit("change",e)),this.$emit("change",t)},_isGroup:function(t){return Array.isArray(t.options)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!t.isHiddenLabel,expression:"!isHiddenLabel"}],attrs:{id:t.id,label:t.label,"optional-label":t.optionalLabel,optional:t.optional}}),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",{staticClass:"cds-select__control"},[n("div",{staticClass:"cds-select__button"},[t.error?n("CdsIcon",{staticClass:"cds-select__alert-icon",attrs:{name:"alert"}}):t._e(),t._v(" "),n("CdsIcon",{attrs:{name:"chevron-down"}})],1),t._v(" "),n("select",t._g(t._b({ref:"select",attrs:{id:t.id,disabled:t.disabled,"aria-invalid":t.error,autofocus:t.autofocus},domProps:{value:t.internalValue},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t._onClick.apply(null,arguments)}}},"select",t.$attrs,!1),t.events),[n("option",{attrs:{value:"",disabled:"",hidden:"",selected:""}},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t._l(t.options,(function(e,i){return[t._isGroup(e)?n("optgroup",{key:i,attrs:{label:e.label}},t._l(e.options,(function(e,i){return n("option",{key:i,attrs:{title:e.title},domProps:{value:e.value,selected:e.value===t.internalValue}},[t._v("\n "+t._s(e.text)+"\n ")])})),0):n("option",{key:i,attrs:{title:e.title},domProps:{value:e.value,selected:e.value===t.internalValue}},[t._v("\n "+t._s(e.text)+"\n ")])]}))],2)]),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null),Rr=Vr.exports,Hr=_({name:"CdsSelectSkeleton",components:{CdsInputSkeleton:zn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Rr.install=function(t){t.component(Rr.name,Rr)},Hr.install=function(t){t.component(Hr.name,Hr)},"undefined"!=typeof window&&window.Vue&&(Rr.install(window.Vue),Hr.install(window.Vue));var zr=_({name:"CdsSkeleton",props:{maxWidth:{type:Number,required:!1,default:100,description:"Максимальная ширина"},minWidth:{type:Number,required:!1,default:80,description:"Минимальная ширина"},height:{type:String,required:!1,default:"1rem",description:"Высота"},width:{type:String,required:!1,default:"100%",description:"Ширина"},randomWidth:{type:Boolean,default:!1,description:"Рандомная ширина строки"}},computed:{styles:function(){return{height:this.height,width:this.computedWidth}},computedWidth:function(){return this.randomWidth?"".concat(Math.floor(Math.random()*(this.maxWidth-this.minWidth)+this.minWidth),"%"):this.width}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"cds-skeleton",style:t.styles})}),[],!1,null,null,null).exports;zr.install=function(t){t.component(zr.name,zr)},"undefined"!=typeof window&&window.Vue&&zr.install(window.Vue);var Pr=zr,jr=_({name:"CdsStages",props:{current:{type:[Number,String],default:0,description:"Текущий этап"},stages:{type:Array,required:!0,description:"Этапы",validator:function(t){var e=t.every((function(t){return"string"==typeof t}));return e||console.warn("CdsStages.stages - значение должно содержать массивом строк"),e}},errors:{type:Array,default:function(){return[]},description:"Этапы с ошибками (массив чисел)"},error:{type:Boolean,default:!1,description:"Состояние ошибки"}},data:function(){return{stateClasses:m}},computed:{innerStyle:function(){return"grid-template-columns: repeat(".concat(this.stages.length,", 1fr);")}},methods:{_isCurrent:function(t){return+this.current===t+1},_isSuccess:function(t){return+this.current>t+1},_isErrors:function(t){return this.errors.includes(t+1)},_isError:function(t){return this._isCurrent(t)&&this.error},_getItemClasses:function(t){var e;return["cds-stages__item",(e={},c(e,this.stateClasses.active,this._isCurrent(t)),c(e,this.stateClasses.checked,this._isSuccess(t)),c(e,this.stateClasses.invalid,this._isErrors(t)),c(e,this.stateClasses.invalid,this._isError(t)),e)]}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",t._g({staticClass:"cds-stages",style:t.innerStyle},t.$listeners),t._l(t.stages,(function(e,i){return n("li",{key:i,class:t._getItemClasses(i)},[0!==i?n("svg",{staticClass:"cds-stages__arrow cds-stages__arrow--before",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 32",width:"11",height:"32"}},[!t._isCurrent(i)||t._isErrors(i)||t._isError(i)?n("path",{attrs:{d:"M12 0v1H1.618l7.5 15-7.5 15H12v1H0l8-16L0 0z"}}):n("path",{attrs:{"fill-rule":"evenodd",d:"M12 0v2H3.235l7.001 14-7.001 14H12v2H0l8-16L0 0z"}})]):t._e(),t._v(" "),n("span",[t._v(t._s(e))]),t._v(" "),i!==t.stages.length-1?n("svg",{staticClass:"cds-stages__arrow cds-stages__arrow--after",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 32",width:"11",height:"32"}},[!t._isCurrent(i)||t._isErrors(i)||t._isError(i)?n("path",{attrs:{d:"M1 0l8 16-8 16H0v-1h.383l7.499-15-7.5-15H0V0z"}}):n("path",{attrs:{"fill-rule":"evenodd",d:"M2.5 0l8 16-8 16h-2v-2h.765l7-14L1.264 2H.5V0z"}})]):t._e()])})),0)}),[],!1,null,null,null).exports,Nr=_({name:"CdsStagesSkeleton"},(function(){var t=this.$createElement;return(this._self._c||t)("cds-skeleton",{attrs:{width:"100%",height:"32px"}})}),[],!1,null,null,null).exports;jr.install=function(t){t.component(jr.name,jr)},Nr.install=function(t){t.component(Nr.name,Nr)},"undefined"!=typeof window&&window.Vue&&(jr.install(window.Vue),Nr.install(window.Vue));var Ur={variant:["primary","secondary"],status:["info","warning","success","error","progress"],tooltipDirection:["right","left","top","bottom"],tooltipAlign:["start","center","end"]},Kr=_({name:"CdsStatus",components:{CdsTooltip:yn},props:{text:{type:String,required:!0,description:"Текст статуса"},variant:{type:String,required:!1,default:"primary",available:Ur.variant,description:"Варианты статуса",validator:function(t){return b(Ur.variant,t,"CdsStatus.variant")}},status:{type:String,required:!1,default:"info",available:Ur.status,description:"Статус",validator:function(t){return b(Ur.status,t,"CdsStatus.status")}},tooltip:{type:String,required:!0,default:"",description:"Всплывающая подсказка для статуса"},tooltipDirection:{type:String,required:!1,default:"right",available:Ur.tooltipDirection,description:"Позиционирование всплывающей подсказки",validator:function(t){return b(Ur.tooltipDirection,t,"CdsStatus.tooltipDirection")}},tooltipAlign:{type:String,required:!1,default:"center",available:Ur.tooltipAlign,description:"Выравнивание всплывающей подсказки",validator:function(t){return b(Ur.tooltipAlign,t,"CdsStatus.tooltipAlign")}}},computed:{classes:function(){return c({"cds-status":!0},"cds-status__".concat(this.variant,"--").concat(this.status),!0)},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut})}},methods:{_onClick:function(t){this.$emit("click",t)},_onMouseOver:function(t){this.$emit("mouseover",t)},_onMouseOut:function(t){this.$emit("mouseout",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CdsTooltip",{staticClass:"cds-status__tooltip",attrs:{tip:t.tooltip,direction:t.tooltipDirection,align:t.tooltipAlign}},[n("span",t._g({class:t.classes},t.events),[n("span",{staticClass:"cds-status__text"},[t._v(t._s(t.text))])])])}),[],!1,null,null,null).exports,qr=_({name:"CdsStatusSkeleton"},(function(){var t=this.$createElement;return(this._self._c||t)("cds-skeleton",{attrs:{width:"62px",height:"16px"}})}),[],!1,null,null,null).exports;Kr.install=function(t){t.component(Kr.name,Kr)},qr.install=function(t){t.component(qr.name,qr)},"undefined"!=typeof window&&window.Vue&&(Kr.install(window.Vue),qr.install(window.Vue));i(2420);var Wr=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8 1a7 7 0 110 14A7 7 0 018 1zm0 .933a6.067 6.067 0 100 12.134A6.067 6.067 0 008 1.933zM8 4a4 4 0 110 8 4 4 0 010-8z"}})])}),[],!1,null,null,null).exports,Yr=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8 1a7 7 0 110 14A7 7 0 018 1zm0 1a6 6 0 100 12A6 6 0 008 2z"}})])}),[],!1,null,null,null).exports,Gr=["incomplete","current","complete"],Jr=_({name:"CdsStepsItem",parentType:"CdsSteps",components:{CdsIcon:an,CdsTooltip:yn,currentIcon:Wr,completeIcon:nt,incompleteIcon:Yr,errorIcon:Rt},mixins:[hn],props:{label:{type:String,required:!0,description:"Заголовок шага"},description:{type:String,default:"",description:"Описание шага"},error:{type:Boolean,default:!1,description:"Шаг с ошибкой"},disabled:{type:Boolean,default:!1,description:"Заблокированный шаг"}},data:function(){return{state:-1,complete:!1,last:!1,vertical:!1,fullWidth:!1,tooltipVisible:!1,tooltipReverse:!1}},computed:{internalState:{get:function(){return this.state},set:function(t){this.state=Math.sign(t)}},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,keydown:this._onKeyDown,focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseleave:this._onMouseLeave})},classes:function(){var t;return c(t={"cds-step":!0,"cds-step--full-width":this.fullWidth,"cds-step--tooltip-reverse":this.tooltipReverse,"cds-step--vertical":this.vertical},"cds-step--".concat(this.getState),this.getState),c(t,m.disabled,this.disabled),c(t,m.invalid,this.hasError),t},icon:function(){return this.hasError?"errorIcon":"".concat(this.getState,"Icon")},getState:function(){return Gr[this.state+1]},isIncomplete:function(){return-1===this.state},isComplete:function(){return 1===this.state},isCurrent:function(){return 0===this.state},isFinish:function(){return this.last&&this.isComplete},hasError:function(){return!!this.error&&!(this.isIncomplete||this.isCurrent)},tooltipAlign:function(){return this.tooltipReverse?"end":"start"},tooltipDirection:function(){return this.vertical&&this.tooltipReverse?"left":"top"}},mounted:function(){this.$_CdsStepsItem=!0,this.$parent.$emit("mounted")},methods:{select:function(){this.$parent.$emit("select",this)},focusNext:function(){var t=this.$el.nextElementSibling;t&&t.focus()},focusPrev:function(){var t=this.$el.previousElementSibling;t&&t.focus()},focusFirst:function(){var t=this.$el.parentElement.firstElementChild;t&&t.focus()},focusLast:function(){var t=this.$el.parentElement.lastElementChild;t&&t.focus()},_onClick:function(t){this.disabled||(this.select(),this.$emit("click",t))},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this.select),c(e,v.space,this.select),c(e,v.left,this.focusPrev),c(e,v.right,this.focusNext),c(e,v.home,this.focusFirst),c(e,v.end,this.focusLast),e);if(n[t.keyCode])return t.preventDefault(),n[t.keyCode](t);this.$emit("keydown",t)},_onFocus:function(t){this.tooltipVisible=!0,this.$emit("focus",t)},_onBlur:function(t){this.tooltipVisible=!1,this.$emit("blur",t)},_onMouseOver:function(t){this.tooltipVisible=!0,this.$emit("mouseover",t)},_onMouseLeave:function(t){this.tooltipVisible=!1,this.$emit("mouseleave",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",t._g({class:t.classes,attrs:{tabindex:"0","aria-label":t.label,"aria-disabled":t.disabled}},t.events),[n("div",{staticClass:"cds-step__status"},[t.fullWidth?n("CdsIcon",{staticClass:"cds-step__icon"},[n(t.icon,{tag:"component"})],1):n("CdsTooltip",{staticClass:"cds-step__tooltip",attrs:{visible:t.tooltipVisible,tip:t.label,direction:t.tooltipDirection,align:t.tooltipAlign,tabindex:"-1"}},[n("CdsIcon",{staticClass:"cds-step__icon"},[n(t.icon,{tag:"component"})],1)],1),t._v(" "),t.last?t._e():n("span",{staticClass:"cds-step__indicator"})],1),t._v(" "),n("div",{staticClass:"cds-step__content"},[n("p",{staticClass:"cds-step__label"},[t._v("\n "+t._s(t.label)+"\n ")]),t._v(" "),n("p",{staticClass:"cds-step__description"},[t._v("\n "+t._s(t.description)+"\n ")])])])}),[],!1,null,null,null).exports,Zr=_({name:"CdsSteps",childrenType:"CdsStepsItem",components:{CdsStepsItem:Jr},mixins:[pn],model:{prop:"current",event:"change"},props:{current:{type:[Number,String],default:0,description:"Текущий шаг (поддерживает v-model)"},steps:{type:Array,default:function(){return[]},description:"Массив объектов { label, description, error, disabled }. Также (поддерживает через slot)"},vertical:{type:Boolean,default:!1,description:"Вертикальное представление шагов"},fullWidth:{type:Boolean,default:!1,description:"Шаги на всю ширину"},tooltipReverse:{type:Boolean,default:!1,description:"Перевернуть тултип"}},data:function(){return{internalSteps:[],internalCurrent:this.current}},computed:{classes:function(){return{"cds-steps":!0,"cds-steps--vertical":this.vertical,"cds-steps--full-width":this.fullWidth}},stepsCount:function(){return this.steps.length?this.steps.length:this.internalSteps.length}},watch:{current:function(t){this.internalCurrent=t},internalCurrent:function(){this._process(),this._completed()}},created:function(){this.$on("mounted",this._process),this.$on("select",this._onSelect)},mounted:function(){this._completed()},beforeDestroy:function(){this.$off("mounted"),this.$off("select")},methods:{_prepareStep:function(t){this.internalSteps[t].fullWidth=this.fullWidth,this.internalSteps[t].vertical=this.vertical,this.internalSteps[t].tooltipReverse=this.tooltipReverse,this.internalSteps[t].interactive=!0,this.internalSteps[t].complete=+this.internalCurrent>t,this.internalSteps[t].last=this.internalSteps.length-1===t},_process:function(){this.internalSteps=this.$children.filter((function(t){return t.$_CdsStepsItem}));for(var t=-1,e=0;e<this.internalSteps.length;e++)this._prepareStep(e),!this.internalSteps[e].complete&&t<0?(t=e,this.internalSteps[e].internalState=0):this.internalSteps[e].internalState=t<0?1:-1},_onSelect:function(t){this.internalCurrent=this.internalSteps.findIndex((function(e){return e._uid===t._uid})),this.$emit("change",this.internalCurrent)},_completed:function(){this.internalCurrent>=this.stepsCount&&this.$emit("completed",this.internalCurrent)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",t._g({class:t.classes},t.$listeners),[t._t("default",(function(){return t._l(t.steps,(function(t,e){return n("CdsStepsItem",{key:"step:"+e,attrs:{label:t.label,description:t.description,error:t.error,disabled:t.disabled}})}))}))],2)}),[],!1,null,null,null).exports,Xr=_({name:"CdsStepsSkeleton",props:{vertical:{type:Boolean,default:!1,description:"Вертикальное представление шагов"}},computed:{classes:function(){return{"cds-steps":!0,"cds-steps--vertical":this.vertical,"cds-steps--full-width":this.fullWidth}},classesItems:function(){return{"cds-step":!0,"cds-step--full-width":this.fullWidth,"cds-step--vertical":this.vertical}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{class:t.classes},t._l(3,(function(e){return n("li",{key:e,class:t.classesItems},[n("div",{staticClass:"cds-step__status"},[n("cds-skeleton",{staticStyle:{"border-radius":"100%"},attrs:{width:"16px",height:"16px"}})],1),t._v(" "),n("div",{staticClass:"cds-step__content"},[n("p",{staticClass:"cds-step__label"},[n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("p",{staticClass:"cds-step__description"},[n("cds-skeleton",{attrs:{width:"100px",height:"8px"}})],1)])])})),0)}),[],!1,null,null,null).exports;Zr.install=function(t){t.component(Zr.name,Zr)},Jr.install=function(t){t.component(Jr.name,Jr)},Xr.install=function(t){t.component(Xr.name,Xr)},"undefined"!=typeof window&&window.Vue&&(Zr.install(window.Vue),Jr.install(window.Vue),Xr.install(window.Vue));i(1058),i(9826);var Qr=_({name:"CdsTableCell",props:{isHead:{type:Boolean,default:!1}},computed:{cellTag:function(){return this.isHead?"TH":"TD"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.cellTag,t._g({tag:"component"},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports,to=i(8020),eo=(i(9720),function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(n)===n){if(!0===e(n))return n;for(var i=0,r=Object.entries(n);i<r.length;i++){var o=pi(r[i],2),s=(o[0],o[1]),u=t(e,s);if(void 0!==u)return u}}}),no={name:"CdsTableRow",inject:["table"],components:{CdsCheckbox:Nn,CdsButton:k,CdsIcon:an},props:{isHead:{type:Boolean,default:!1},isLeftColumn:{type:Boolean,default:!1},rowKey:{type:[Number,String],default:0},selectable:{type:Boolean,default:!1},multiselectable:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},expandable:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},isSelectChildRows:{type:Boolean,default:!1},disabledCheckboxes:{type:Boolean,default:!1}},data:function(){return{focus:!1,hover:!1,internalExpanded:!1,indeterminate:!1,internalSelected:this.selected,childKeys:[]}},computed:{classes:function(){var t={};return t["cds-table__table--select"]=(this.selectable||this.multiselectable)&&this.internalSelected||this.indeterminate,t["cds-table__table--hover"]=this.hover,t["cds-table__table--focus"]=this.focus,t},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,keydown:this._onKeyDown,mouseenter:this._onMouseEnter,mouseleave:this._onMouseLeave})},cellTag:function(){return this.isHead?"TH":"TD"},row:function(){return this._findRowByKey(this.rowKey)},hasChild:function(){var t,e;return!(null===(t=this.row)||void 0===t||null===(e=t.children)||void 0===e||!e.length)}},watch:{"table.selectedRowKeys":function(t){if(this.hasChild&&this.isSelectChildRows&&!this.isHead){if(!(0,to.intersection)(this.childKeys,t).length)return t.includes(this.rowKey)?(this.setSelected(!1),void this.setIndeterminate(!0)):(this.setSelected(!1),void this.setIndeterminate(!1));if(t.includes(this.rowKey)||this.table.selectedRowKeys.push(this.rowKey),(0,to.difference)(this.childKeys,t).length)return this.setSelected(!1),void this.setIndeterminate(!0);this.setIndeterminate(!1),this.setSelected(!0)}}},mounted:function(){this.table.selectedRowKeys.includes(this.rowKey)&&this.setSelected(!0),this.internalExpanded=this.expanded,this.internalExpanded&&(this._toggleExpandedSlot(),this.table.expandedTreeRowKeys.push(this.rowKey)),this.hasChild&&this._findChildKeys(this.row)},methods:{_onClick:function(t){var e=this,n=!1,i=t.path||t.composedPath();if(!i||!i.length||(i.forEach((function(t){t.tagName!==e.cellTag&&"TR"!==t.tagName||(n=!0)})),n&&!this.isHead)){var r=this._findRowByKey(this.rowKey);(this.selectable||this.multiselectable)&&this._onSelect(),this.hoverable&&(this.table.currentFocusRowKey=this.rowKey),this.$emit("click",r)}},_onKeyDown:function(t){t.target.tagName!==this.cellTag&&"TR"!==t.target.tagName||t.keyCode!==v.enter&&t.keyCode!==v.space||this.isHead||(t.preventDefault(),(this.selectable||this.multiselectable)&&this._onSelect(),this.hoverable&&(this.table.currentFocusRowKey=this.rowKey),this.$emit("keydown",t))},_toggleExpandedSlot:function(){if(this.isHead)this.$emit("expandAll");else{var t=this.table.expandedRowKeys.indexOf(this.rowKey);t>-1?this.table.expandedRowKeys.splice(t,1):this.table.expandedRowKeys.push(this.rowKey)}},_onMouseEnter:function(){this.isHead||(this.hoverable&&(this.table.currentHoverRowKey=this.rowKey),this.$emit("mouseEnter",this.rowKey))},_onMouseLeave:function(){this.isHead||(this.table.currentHoverRowKey=null,this.$emit("mouseLeave",this.rowKey))},_onChangeCheckbox:function(){this.isHead?(this.$emit("selectAll"),this.table.currentFocusRowKey=null):this._onSelect()},_onSelect:function(){if(!this.isHead&&!this.disabledCheckboxes){if(this.$emit("select",this.row),!this.multiselectable)return this.table.selectedRowKeys.splice(0,1),void this.table.selectedRowKeys.push(this.rowKey);var t=this.table.selectedRowKeys.indexOf(this.rowKey);t>-1?(this.table.selectedRowKeys.splice(t,1),this.isSelectChildRows&&this._selectRowChild(this.row)):(this.isSelectChildRows&&this._selectRowChild(this.row,!0),this.table.selectedRowKeys.push(this.rowKey))}},_findRowByKey:function(t){return eo((function(e){return e.key===t}),this.$parent.dataSource)},_findChildKeys:function(t){var e,n=this;null!==(e=t.children)&&void 0!==e&&e.length&&t.children.forEach((function(t){n.childKeys.push(t.key),n._findChildKeys(t)}))},_selectRowChild:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null!=t&&t.children&&t.children.forEach((function(t){if(n)return e.table.selectedRowKeys.push(t.key),void e._selectRowChild(t,!0);if(e.table.selectedRowKeys.includes(t.key)){var i=e.table.selectedRowKeys.indexOf(t.key);e.table.selectedRowKeys.splice(i,1),e._selectRowChild(t)}}))},setSelected:function(t){this.internalSelected=t},setHovered:function(t){this.hover=t},setFocus:function(t){this.focus=t},setIndeterminate:function(t){this.indeterminate=t},setExpanded:function(t){this.internalExpanded=t}}},io=_(no,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",t._g({class:t.classes},t.events),[t.multiselectable?n(t.cellTag,{tag:"component",staticClass:"selection"},[n("cds-checkbox",{attrs:{label:"","hidden-label":"",disabled:t.disabledCheckboxes,indeterminate:t.indeterminate},on:{click:function(t){t.stopPropagation()},change:t._onChangeCheckbox},model:{value:t.internalSelected,callback:function(e){t.internalSelected=e},expression:"internalSelected"}})],1):t._e(),t._v(" "),t.expandable?n(t.cellTag,{tag:"component",staticClass:"expand"},[n("cds-button",{attrs:{"icon-only":""},on:{click:function(e){return e.stopPropagation(),t._toggleExpandedSlot.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:t.internalExpanded?"chevron-down":"chevron-up"}})]},proxy:!0}],null,!1,3183986376)})],1):t._e(),t._v(" "),t._t("default")],2)}),[],!1,null,null,null),ro=io.exports,oo=_({name:"CdsTableSortLabel",components:{CdsIcon:an},props:{order:{type:String,default:"none"}},computed:{iconName:function(){return"asc"===this.order?"arrow-up":"desc"===this.order?"arrow-down":"arrows-vertical"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("cds-icon",{staticClass:"sortable-icon",attrs:{name:t.iconName}})}),[],!1,null,null,null).exports,so={name:"CdsTableHeader",inject:["table"],props:{columns:{type:Array,default:function(){return[]},description:"Массив колонок"},multiselectable:{type:Boolean,default:!1,description:"Множественный выбор"},expandable:{type:Boolean,default:!1,description:"Возможность раскрывать вложенный контент"},disabledCheckboxes:{type:Boolean,default:!1},treeKey:{type:String,default:""},isLeftFixedHeader:{type:Boolean,default:!1},isScrollButtons:{type:Boolean,default:!1},fixHeader:{type:Boolean,default:!1}},data:function(){return{nextSortOrder:{asc:"desc",desc:"none",none:"asc"},customRenders:{}}},computed:{filteredColumns:function(){return this.columns.filter((function(t){return!t.attrs||!t.attrs.hasOwnProperty("colspan")||t.attrs.colspan>0}))}},watch:{"table.isIndeterminate":function(t){this.$refs.row.setIndeterminate(t)},"table.isAllChecked":function(t){this.$refs.row.setSelected(t)},"table.isAllExpanded":function(t){this.$refs.row.setExpanded(t)}},created:function(){this.customRenders=this.$parent.$scopedSlots},methods:{_onClick:function(t){var e=this.columns[t];e.hasOwnProperty("sortable")&&e.hasOwnProperty("onSort")&&(e.onSort(t,this.nextSortOrder[e.order]),this.$emit("sort",t,this.nextSortOrder[e.order]))},_onKeyDown:function(t,e){e.keyCode!==v.enter&&e.keyCode!==v.space||(e.preventDefault(),this._onClick(t))}},render:function(t){for(var e=this,n=[],i=function(i){var r=e.filteredColumns[i],o=[],s={},u="head-".concat(r.key),a=t(oo,{attrs:{order:r.order}}),l={};if(r.classes&&("string"==typeof r.classes?l[r.classes]=!0:l=p({},r.classes)),e.isLeftFixedHeader&&e.isScrollButtons&&e.fixHeader&&(s.paddingTop="80.5px",s.paddingBottom="24.5px"),e.customRenders.hasOwnProperty(u))o.push(e.customRenders[u]({record:r,key:r.key}));else if(r.hasOwnProperty("columnCustomRender"))if("function"==typeof r.columnCustomRender){var c=r.columnCustomRender({record:r,key:r.key,h:t});o.push([c.content])}else"string"==typeof r.columnCustomRender&&e.customRenders.hasOwnProperty(r.columnCustomRender)?o.push(e.customRenders[r.columnCustomRender]({record:r,key:r.key})):o.push(r.title);else o.push(r.title);r.align&&(s.textAlign=r.align),r.sortable&&("right"===r.align&&o.unshift(a),"left"===r.align&&o.push(a)),n.push(t(Qr,{key:"c_".concat(i),class:p(p({},l),{},{asc:"asc"===r.order,desc:"desc"===r.order}),attrs:p({isHead:!0,ariaSort:r.order},r.attrs||{}),style:s,on:{click:function(){return e._onClick(i)},keydown:function(t){return e._onKeyDown(i,t)}}},o))},r=0;r<this.filteredColumns.length;r++)i(r);return t("thead",[t(ro,{ref:"row",attrs:{multiselectable:this.multiselectable,expandable:this.expandable,disabledCheckboxes:this.disabledCheckboxes,isHead:!0},on:{selectAll:function(){return e.$emit("selectAll")},expandAll:function(){return e.$emit("expandAll")}}},n)])}},uo=_({name:"CdsTableExpandedRow",data:function(){return{expanded:!1}},methods:{setExpanded:function(t){this.expanded=t}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.expanded?n("tr",{staticClass:"expandable-row"},[n("td",{staticClass:"expandable-row__sub"}),t._v(" "),n("td",{staticClass:"expandable-row__sub",attrs:{colspan:"999"}},[t._t("default")],2)]):t._e()}),[],!1,null,null,null).exports,ao=function(){},lo={name:"CdsTableBody",inject:["rowSelection","table","tableName"],components:{CdsIcon:an},props:{columns:{type:Array,default:function(){return[]}},dataSource:{type:Array,default:function(){return[]}},rowProps:{type:Object,default:function(){}}},data:function(){return{prevSelectedRowKeys:[],prevExpendedRowKeys:[],prevExpendedTreeRowKeys:[],customRenders:{},isIgnoreExpandable:!1}},watch:{dataSource:function(){var t=this;this.$nextTick((function(){if(t.table.expandedRowKeys.length){var e,i=n(t.table.expandedRowKeys);try{for(i.s();!(e=i.n()).done;){var r=e.value,o=t.getRowByKey(r),s=t.getRowByKey("expanded_".concat(r));o&&o.setExpanded(!0),s&&s.setExpanded(!0)}}catch(t){i.e(t)}finally{i.f()}}}))},"table.selectedRowKeys":function(t){if(this.prevSelectedRowKeys.length){var e,i=n(this.prevSelectedRowKeys.filter((function(e){return!t.includes(e)})));try{for(i.s();!(e=i.n()).done;){var r=e.value,o=this.getRowByKey(r);o&&o.setSelected(!1)}}catch(t){i.e(t)}finally{i.f()}}this.prevSelectedRowKeys=jn(t);var s,u=n(t);try{for(u.s();!(s=u.n()).done;){var a=s.value,l=this.getRowByKey(a);l&&l.setSelected(!0)}}catch(t){u.e(t)}finally{u.f()}},"table.expandedRowKeys":function(t){if(this.prevExpendedRowKeys.length){var e,i=n(this.prevExpendedRowKeys.filter((function(e){return!t.includes(e)})));try{for(i.s();!(e=i.n()).done;){var r=e.value,o=this.getRowByKey(r),s=this.getRowByKey("expanded_".concat(r));o&&o.setExpanded(!1),s&&s.setExpanded(!1)}}catch(t){i.e(t)}finally{i.f()}}this.prevExpendedRowKeys=jn(t);var u,a=n(t);try{for(a.s();!(u=a.n()).done;){var l=u.value,c=this.getRowByKey(l),d=this.getRowByKey("expanded_".concat(l));c&&c.setExpanded(!0),d&&d.setExpanded(!0)}}catch(t){a.e(t)}finally{a.f()}},"table.currentHoverRowKey":function(t,e){var n=this.getRowByKey(t),i=this.getRowByKey(e);n&&n.setHovered(!0),i&&i.setHovered(!1)},"table.currentFocusRowKey":function(t,e){var n=this.getRowByKey(t),i=this.getRowByKey(e);n&&n.setFocus(!0),i&&i.setFocus(!1)}},created:function(){this.customRenders=this.$parent.$scopedSlots},methods:{toggleLeaf:function(t){var e=this.table.expandedTreeRowKeys.indexOf(t);-1!==e?this.table.expandedTreeRowKeys.splice(e,1):this.table.expandedTreeRowKeys.push(t)},getRowByKey:function(t){var e="row_".concat(t);return null!==t&&this.$refs.hasOwnProperty(e)?this.$refs[e]:null},renderColumns:function(t,e){for(var n=this,i=[],r=0,o=0;o<this.columns.length;o++)if(r>0)r--;else{var s=this.columns[o],u=s.key,a=u===this.table.treeKey,l={},c={},d={"tree-leaf":a};s.classes&&("string"==typeof s.classes?d[s.classes]=!0:d=p(p({},d),s.classes));var f=t[u];if(this.customRenders.hasOwnProperty(u))f=this.customRenders[u]({record:t,key:u});else if(s.hasOwnProperty("customRender")){if("function"==typeof s.customRender){var h=s.customRender({record:t,key:u,h:e});f=[h.content],l=h.attrs||{}}else"string"==typeof s.customRender&&(f=this.customRenders[s.customRender]({record:t,key:u}));l.hasOwnProperty("colspan")&&l.colspan>0&&(r=l.colspan-1)}if(s.hasOwnProperty("width")&&(c.width=s.width+"px",c.minWidth=s.width+"px"),s.hasOwnProperty("align")&&(c.textAlign=s.align),a)if(t.hasOwnProperty("children")&&t.children.length)f=[e("div",{class:"tree-action"},[e("cds-icon",{props:{name:this.table.expandedTreeRowKeys.includes(t.key)?"ChevronDown":"ChevronRight"},on:{click:function(e){e.stopPropagation(),n.toggleLeaf(t.key)}}}),e("div",{class:"tree-action-content"},f)])];else d["tree-leaf--last"]=!0;i.push(e(Qr,{key:"id_".concat(this.genId,"_r_").concat(t.key,"_c_").concat(o),props:{index:o},class:d,attrs:l,style:c},f))}return i},renderRows:function(t,e,n){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=0;r<e.length;r++){var o,s=e[r],u=this.renderColumns(s,t,i);n.push(t(ro,{key:"id_".concat(this.genId,"_r_").concat(s.key,"_level-").concat(i),ref:"row_".concat(s.key),attrs:{"data-row-key":s.key},class:(o={},c(o,"level-".concat(i),i),c(o,"tree-open",i||this.table.expandedTreeRowKeys.includes(s.key)),o),props:p({rowKey:s.key,level:i,expanded:s.expanded},this.rowProps),on:{click:this.rowSelection.onClick||ao,select:this.rowSelection.onSelect||ao}},u)),s.hasOwnProperty("children")&&this.table.expandedTreeRowKeys.includes(s.key)&&(this.renderRows(t,s.children,n,++i),this.isIgnoreExpandable=!0,i=i>1?i-1:0),!this.isIgnoreExpandable&&this.customRenders.hasOwnProperty("expandedRowRender")&&n.push(t(uo,{key:"id_".concat(this.genId,"_r_").concat(s.key,"_level-").concat(i,"-expanded"),ref:"row_expanded_".concat(s.key)},this.customRenders.expandedRowRender(s)))}return n}},render:function(t){var e=[];return this.renderRows(t,this.dataSource,e),t("tbody",e)}};function co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fo(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ho(t,e,n){return e&&fo(t.prototype,e),n&&fo(t,n),t}var po,vo=function(){function t(e){co(this,t),this.columns=e,this._cached={}}return ho(t,[{key:"isAnyColumnsFixed",value:function(){var t=this;return this._cache("isAnyColumnsFixed",(function(){return t.columns.some((function(t){return!!t.fixed}))}))}},{key:"isAnyColumnsLeftFixed",value:function(){var t=this;return this._cache("isAnyColumnsLeftFixed",(function(){return t.columns.some((function(t){return"left"===t.fixed||!0===t.fixed}))}))}},{key:"isAnyColumnsRightFixed",value:function(){var t=this;return this._cache("isAnyColumnsRightFixed",(function(){return t.columns.some((function(t){return"right"===t.fixed}))}))}},{key:"leftColumns",value:function(){var t=this;return this._cache("leftColumns",(function(){return t.groupedColumns().filter((function(t){return"left"===t.fixed||!0===t.fixed}))}))}},{key:"rightColumns",value:function(){var t=this;return this._cache("rightColumns",(function(){return t.groupedColumns().filter((function(t){return"right"===t.fixed}))}))}},{key:"leafColumns",value:function(){var t=this;return this._cache("leafColumns",(function(){return t._leafColumns(t.columns)}))}},{key:"leftLeafColumns",value:function(){var t=this;return this._cache("leftLeafColumns",(function(){return t._leafColumns(t.leftColumns())}))}},{key:"rightLeafColumns",value:function(){var t=this;return this._cache("rightLeafColumns",(function(){return t._leafColumns(t.rightColumns())}))}},{key:"groupedColumns",value:function(){var t=this;return this._cache("groupedColumns",(function(){return function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];r[n]=r[n]||[];var o=[],s=function(t){var e=r.length-n;t&&!t.children&&e>1&&(!t.rowSpan||t.rowSpan<e)&&(t.rowSpan=e)};return e.forEach((function(u,a){var l=p({},u);r[n].push(l),i.colSpan=i.colSpan||0,l.children&&l.children.length>0?(l.children=t(l.children,n+1,l,r),i.colSpan+=l.colSpan):i.colSpan+=1;for(var c=0;c<r[n].length-1;c+=1)s(r[n][c]);a+1===e.length&&s(l),o.push(l)})),o}(t.columns)}))}},{key:"reset",value:function(t){this.columns=t,this._cached={}}},{key:"_cache",value:function(t,e){return t in this._cached||(this._cached[t]=e()),this._cached[t]}},{key:"_leafColumns",value:function(t){var e=this,n=[];return t.forEach((function(t){t.children?n.push.apply(n,jn(e._leafColumns(t.children))):n.push(t)})),n}}]),t}(),mo={rowSize:["standard","short"]};function go(t){return isNaN(parseInt(t))?t:t+"px"}var _o={name:"CdsTable",directives:{clickOutside:wr},provide:function(){return{table:this.table,tableName:this.name,rowSelection:this.rowSelection,isAllChecked:this.isAllChecked,isIndeterminate:this.isIndeterminate}},props:{name:{type:String,required:!0,description:"Название таблицы (техническое)"},title:{type:String,default:"",description:"Заголовок таблицы"},description:{type:String,default:"",description:"Описание таблицы"},hoverable:{type:Boolean,default:!1,description:"Подсвечивание строк"},selectable:{type:Boolean,default:!1,description:"Выделение строк"},multiselectable:{type:Boolean,default:!1,description:"Выбираемые строки (checkbox)"},columns:{type:Array,default:function(){return[]},description:"Данные шапки таблицы"},dataSource:{type:Array,default:function(){return[]},description:"Данные тела таблицы"},autoWidth:{type:Boolean,default:!1,description:"Автоширина"},borderless:{type:Boolean,default:!1,description:"Убрать границу между строками"},ellipsis:{type:Boolean,default:!1,description:"Текст ячеек ограничивается одной строкой с многоточием"},editable:{type:Boolean,default:!1,description:"Убрать отступы сверху и снизу ячейки. Для редактируемой таблицы"},sortable:{type:Boolean,default:!1,description:"Сортировка столбцов"},fixHeader:{type:Boolean,default:!1,description:"Зафиксировать шапку таблицы"},hideHeader:{type:Boolean,default:!1,description:"Скрыть шапку таблицы"},alwaysShowHeader:{type:Boolean,default:!1,description:"Отображать шапку при пустой таблице"},isSelectChildRows:{type:Boolean,default:!1,description:"Выделение строки с дочерними строками"},treeKey:{type:String,default:null,description:"У какой колонки будет значек + для раскрытия уровня"},defaultOverflow:{type:Boolean,default:!1,description:"Overflow таблицы по-умолчанию. (Необходим в случае возникновения проблем в всплывающими или выпадающими элементами в таблице)"},isScrollButtons:{type:Boolean,default:!1,description:"Кноки для скролла таблицы"},scrollStep:{type:Number,default:50,description:"Шаг скролла при активных кнопках скролла"},disabledCheckboxes:{type:Boolean,default:!1,description:"Заблокировать все checkbox"},selectedRows:{type:Array,default:function(){return[]},description:"Выбранные строки при инициализации"},expandedRows:{type:Array,default:function(){return[]},description:"Раскрытые строки при инициализации"},rowSize:{type:String,default:"standard",description:"Высота строк",available:mo.rowSize,validator:function(t){var e=mo.rowSize,n=e.includes(t);return n||console.error("CdsTable.rowSize должно быть одно из следующих: ".concat(e.join(", "))),n}},rowSelection:{type:Object,description:"Объект с колбеками которые вызываются при действиях со строкой",default:function(){return{onClick:g,onExpand:g,onSelect:g,onSelectAll:g}}}},data:function(){return{table:{currentHoverRowKey:null,currentFocusRowKey:null,selectedRowKeys:[],expandedRowKeys:[],expandedTreeRowKeys:[],columnsBodyRowsParams:[],columnsHeadRowsParams:[],isAllChecked:!1,isAllExpanded:!1,isIndeterminate:!1,marginLeftColumnNumber:0,treeKey:this.treeKey},internalColumns:[],isHeaderSticky:!1,isHorizontalScrollable:!1,expandable:!1,headerOffset:0,scrollEndNum:0,isShowFixedLeftColumns:!1,cacheDataKeys:[]}},watch:{"table.selectedRowKeys":function(t){if(this.table.isAllChecked=t.length===this.cacheDataKeys.length,this.table.isIndeterminate=!this.table.isAllChecked&&t.length>0,this.table.isAllChecked&&this.rowSelection.onSelectAll){var e=this._findRowsByKeys(t);this.rowSelection.onSelectAll(e)}},"table.expandedRowKeys":function(t){if(this.rowSelection.onExpand){var e=this._findRowsByKeys(t);this.rowSelection.onExpand(e)}this.table.isAllExpanded=t.length===this.cacheDataKeys.length},"table.expandedTreeRowKeys":function(){this.$nextTick((function(){this._syncRightShadow()}))},columns:function(t){this.internalColumns=this._prepareColumns(t)}},computed:{tableClasses:function(){return c({"cds-table__table":!0,"cds-table__table--empty":this._isEmptyTable(),"cds-table__table--borderless":this.borderless,"cds-table__table--ellipsis":this.ellipsis,"cds-table__table--editable":this.editable,"cds-table__table--selectable":this.selectable||this.multiselectable,"cds-table__table--sortable":this.sortable,"cds-table__table--expandable":this.expandable,"cds-table__table--hide-header":this.hideHeader},"cds-table__table--".concat(this.rowSize),"standard"!==this.rowSize)}},created:function(){this.internalColumns=this._prepareColumns(this.columns)},mounted:function(){var t,e,n,i,r=this;(this.expandable=null!==this._getSlot("expandedRowRender"),this.cacheDataKeys=this._getAllDataKeys(),this.expandedRows.length&&(this.table.expandedRowKeys=this.expandedRows,this.table.expandedTreeRowKeys=this.expandedRows),this.selectedRows.length&&(this.table.selectedRowKeys=this.selectedRows),this.isScrollButtons)&&(null===(t=this.$refs.leftButton)||void 0===t||t.$el.addEventListener("click",(function(t){return r._scrollClick(t,!0)})),null===(e=this.$refs.rightButton)||void 0===e||e.$el.addEventListener("click",(function(t){return r._scrollClick(t)})),this.fixHeader&&(null===(n=this.$refs.fixLeftButton)||void 0===n||n.$el.addEventListener("click",(function(t){return r._scrollClick(t,!0)})),null===(i=this.$refs.fixRightButton)||void 0===i||i.$el.addEventListener("click",(function(t){return r._scrollClick(t)}))));this._isEmptyTable()||this.syncTables()},destroyed:function(){var t,e,n=this;(window.removeEventListener("scroll",this._onVerticalScroll),window.removeEventListener("scroll",this._onHorizontalScroll),this.isScrollButtons)&&(null===(t=this.$refs.leftButton)||void 0===t||t.$el.addEventListener("click",(function(t){return n._scrollClick(t,!0)})),null===(e=this.$refs.rightButton)||void 0===e||e.$el.addEventListener("click",(function(t){return n._scrollClick(t)})));this.fixHeader&&window.removeEventListener("resize",this.syncTables)},beforeUpdate:function(){var t=this;this.cacheDataKeys=this._getAllDataKeys(),this.$nextTick((function(){t._isEmptyTable()||t.syncTables()}))},render:function(t){var e=(po=new vo(this.internalColumns)).leafColumns(),n=po.leftColumns(),i=[],r=[];if(this._isEmptyTable()){var o=this._getSlot("empty")?this._getSlot("empty")():"empty table";return this.alwaysShowHeader&&this.columns.length?(r.push(t("div",{class:"cds-table__scroll",ref:"table"},[t("table",{key:"".concat(this.name,"_base"),class:this.tableClasses},[this._renderHead(e,t),t("div",{class:"cds-table__table--empty-container"},o)])])),t("div",{class:"cds-table"},r)):t("div",o)}return this._getSlot("header")&&i.push(this._getSlot("header")()),this.isScrollButtons&&i.push(t("div",{class:"cds-table__scroll-buttons",ref:"scrollButtons"},[t(k,{props:{iconOnly:!0,appearance:"secondary"},ref:"leftButton"},[t(an,{slot:"icon",props:{name:"chevronLeft"}})]),t(k,{props:{iconOnly:!0,appearance:"secondary"},ref:"rightButton"},[t(an,{slot:"icon",props:{name:"chevronRight"}})])])),po.isAnyColumnsLeftFixed()&&r.push(t("div",{class:"cds-table__fixed-left",style:{display:this.isShowFixedLeftColumns?"block":"none"},ref:"fixedLeftWrapper"},[t("table",{key:"".concat(this.name,"_left_header"),class:[this.tableClasses,"cds-table__fixed-left-header",{"cds-table__fixed-left-header--fixed":this.isHeaderSticky}],ref:"leftHeader"},[this._renderHead(n,t,!0)]),t("table",{key:"".concat(this.name,"_left_body"),class:[this.tableClasses,"cds-table__fixed-left-column"],ref:"leftTable"},[this._renderHead(n,t),this._renderBody(n,t,!0)])])),this.fixHeader&&(this.isScrollButtons?r.push(t("div",{class:"cds-table__fixed-header",ref:"fixedHeader"},[t("div",{class:"cds-table__scroll-buttons",ref:"scrollButtons"},[t(k,{props:{iconOnly:!0,appearance:"secondary"},ref:"fixLeftButton"},[t(an,{slot:"icon",props:{name:"chevronLeft"}})]),t(k,{props:{iconOnly:!0,appearance:"secondary"},ref:"fixRightButton"},[t(an,{slot:"icon",props:{name:"chevronRight"}})])]),t("table",{key:"".concat(this.name,"_header"),class:this.tableClasses,ref:"fixedHeaderTable"},[this._renderHead(e,t)])])):r.push(t("div",{class:"cds-table__fixed-header",ref:"fixedHeader"},[t("table",{key:"".concat(this.name,"_header"),class:this.tableClasses,ref:"fixedHeaderTable"},[this._renderHead(e,t)])]))),r.push(t("div",{class:"cds-table__scroll",ref:"table"},[t("table",{key:"".concat(this.name,"_base"),class:this.tableClasses},[this._renderHead(e,t),this._renderBody(e,t)]),t("div",{class:"cds-table__right-shadow",ref:"rightShadow"},"")])),i.push(t("div",{class:{"cds-table":!0,"cds-table__default-overflow":this.defaultOverflow}},r)),this._getSlot("footer")&&i.push(this._getSlot("footer")()),t("div",{class:"cds-table-wrap",directives:[{name:"click-outside",expression:"_onClickOutside"}]},i)},methods:{setSelected:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){e.table.selectedRowKeys.includes(t)||e.table.selectedRowKeys.push(t)})):"string"==typeof t||"number"==typeof t?this.table.selectedRowKeys.includes(t)||this.table.selectedRowKeys.push(t):console.error("Метод removeSelected может принимать только: string[], number[], string, number")},removeSelected:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){e.table.selectedRowKeys.includes(t)&&(e.table.selectedRowKeys=e.table.selectedRowKeys.filter((function(e){return e!==t})))})):"string"==typeof t||"number"==typeof t?this.table.selectedRowKeys.includes(t)&&(this.table.selectedRowKeys=this.table.selectedRowKeys.filter((function(e){return e!==t}))):console.error("Метод removeSelected может принимать только: string[], number[], string, number")},setExpanded:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){e.table.expandedRowKeys.includes(t)&&e.table.expandedTreeRowKeys.includes(t)||(e.table.expandedRowKeys.push(t),e.table.expandedTreeRowKeys.push(t))})):"string"==typeof t||"number"==typeof t?this.table.expandedRowKeys.includes(t)&&this.table.expandedTreeRowKeys.includes(t)||(this.table.expandedRowKeys.push(t),this.table.expandedTreeRowKeys.push(t)):console.error("Метод setExpanded может принимать только: string[], number[], string, number")},removeExpanded:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){(e.table.expandedRowKeys.includes(t)||e.table.expandedTreeRowKeys.includes(t))&&(e.table.expandedRowKeys=e.table.expandedRowKeys.filter((function(e){return e!==t})),e.table.expandedTreeRowKeys=e.table.expandedTreeRowKeys.filter((function(e){return e!==t})))})):"string"==typeof t||"number"==typeof t?(this.table.expandedRowKeys.includes(t)||this.table.expandedTreeRowKeys.includes(t))&&(this.table.expandedRowKeys=this.table.expandedRowKeys.filter((function(e){return e!==t})),this.table.expandedTreeRowKeys=this.table.expandedTreeRowKeys.filter((function(e){return e!==t}))):console.error("Метод removeExpanded может принимать только: string[], number[], string, number")},_scrollClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?this.$refs.table.scrollLeft-=this.scrollStep:this.$refs.table.scrollLeft+=this.scrollStep},_isEmptyTable:function(){return 0===this.dataSource.length},_getSlot:function(t){return this.$scopedSlots&&this.$scopedSlots.hasOwnProperty(t)?this.$scopedSlots[t]:null},_prepareColumns:function(t){var e=this;return t.map((function(t){return t.hasOwnProperty("defaultSortOrder")||e.$set(t,"order","none"),t.hasOwnProperty("align")?e.$set(t,"align",t.align):e.$set(t,"align","left"),t.hasOwnProperty("sortable")||e.$set(t,"sortable",!1),t}))},_getAllDataKeys:function(){var t=[];return function e(n){for(var i=0;i<n.length;i++){var r=n[i];r.hasOwnProperty("key")&&(t.push(r.key),r.hasOwnProperty("children")&&e(r.children))}}(this.dataSource),t},_onSelectAll:function(){this.table.isAllChecked?(this.table.selectedRowKeys.splice(0,this.table.selectedRowKeys.length),this.rowSelection.onUnselectAll&&this.rowSelection.onUnselectAll()):this.$set(this.table,"selectedRowKeys",jn(this.cacheDataKeys))},_onExpandAll:function(){this.table.isAllExpanded?this.table.expandedRowKeys.splice(0,this.table.expandedRowKeys.length):this.$set(this.table,"expandedRowKeys",jn(this.cacheDataKeys))},_onSort:function(t,e){var n=this,i=this.internalColumns[t];this.internalColumns.forEach((function(t){return n.$set(t,"order","none")})),i.order=e},_renderHead:function(t,e,n){return e(so,{props:{columns:t,multiselectable:this.multiselectable,expandable:this.expandable,disabledCheckboxes:this.disabledCheckboxes,treeKey:this.treeKey,isLeftFixedHeader:n,isScrollButtons:this.isScrollButtons,fixHeader:this.isHeaderSticky},on:{selectAll:this._onSelectAll,expandAll:this._onExpandAll,sort:this._onSort}})},_renderBody:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e(lo,{props:{columns:t,dataSource:this.dataSource,rowProps:{selectable:this.selectable,multiselectable:this.multiselectable,disabledCheckboxes:this.disabledCheckboxes,expandable:this.expandable,hoverable:this.hoverable,isSelectChildRows:this.isSelectChildRows,isLeftColumn:n}}})},_getRowsParams:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"td";return[].map.call(t,(function(t){var n={height:t.getBoundingClientRect().height,tdsWidth:[]};return[].map.call(t.querySelectorAll(e+":not(.selection)"),(function(t){n.tdsWidth.push(t.getBoundingClientRect().width)})),n}))},_syncHeadTable:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.querySelectorAll("thead tr")||[],r=0;[].map.call(i,(function(t,n){var i=e.table.columnsHeadRowsParams[n];t.style.height=go(i.height),[].map.call(t.querySelectorAll("th:not(.selection)"),(function(t,e){"auto"!==i.tdsWidth[e]&&(t.style.minWidth=go(i.tdsWidth[e]),t.style.width=go(i.tdsWidth[e]),r+=i.tdsWidth[e])}))})),n&&(t.style.width=go(r))},_syncBodyTable:function(t){var e=this,n=t.querySelectorAll("tbody tr")||[];[].map.call(n,(function(t,n){var i=e.table.columnsBodyRowsParams[n];t.style.height=go(i.height)}))},_syncRightShadow:function(){this.$refs.rightShadow.style.height=go(this.$refs.table.offsetHeight)},syncTables:function(){var t=this.$refs.table.querySelectorAll("tbody tr")||[],e=this.$refs.table.querySelectorAll("thead tr")||[],n=this._getRowsParams(e,"th"),i=this._getRowsParams(t);this.$set(this.table,"columnsHeadRowsParams",n),this.$set(this.table,"columnsBodyRowsParams",i),this.fixHeader&&(this._syncHeadTable(this.$refs.fixedHeader.querySelector("table"),!1),this.$refs.fixedHeader.style.width=go(this.$refs.table.clientWidth)),po.isAnyColumnsLeftFixed()&&(this._syncHeadTable(this.$refs.leftHeader),this._syncHeadTable(this.$refs.leftTable),this._syncBodyTable(this.$refs.leftTable),this.table.marginLeftColumnNumber=po.leftColumns().length,this.expandable&&this.table.marginLeftColumnNumber++),this.multiselectable&&this.table.marginLeftColumnNumber++,this.headerOffset=function(t){var e=0,n=0;do{e+=t.offsetTop||0,n+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:n}}(this.$refs.table.querySelector("thead")),this.isHorizontalScrollable=this.$refs.table.scrollWidth>this.$refs.table.clientWidth,this.scrollEndNum=this.$refs.table.scrollWidth-this.$refs.table.clientWidth,this.isHorizontalScrollable&&this._syncRightShadow(),this.fixHeader&&(window.addEventListener("scroll",this._onVerticalScroll),window.addEventListener("resize",this.syncTables)),this.isHorizontalScrollable&&(this._onHorizontalScroll(),this.$refs.table.addEventListener("scroll",this._onHorizontalScroll))},_onVerticalScroll:function(){var t=document.documentElement.scrollTop||document.body.scrollTop,e=this.$refs.table.getBoundingClientRect(),n=this.$refs.table.scrollLeft;t>this.headerOffset.top&&e.top+e.height-this.table.columnsHeadRowsParams[0].height-20>0?(this.isHeaderSticky=!0,this.$refs.fixedHeaderTable.style.left=go(-n),this.$refs.fixedHeader.style.display="block"):(this.isHeaderSticky=!1,this.$refs.fixedHeader.style.display="none")},_onHorizontalScroll:function(){var t=this.$refs.table.scrollLeft;this.isHeaderSticky&&(this.$refs.fixedHeaderTable.style.left=go(-t)),this.isShowFixedLeftColumns=t>0,t===this.scrollEndNum?this.$refs.rightShadow.style.display="none":this.$refs.rightShadow.style.display="block"},_onClickOutside:function(){null!==this.table.currentFocusRowKey&&(this.table.currentFocusRowKey=null)},_findRowsByKeys:function(t){var e,i=this,r=[],o=n(t);try{var s=function(){var t=e.value,n=i.dataSource.find((function(e){return e.key===t}));r.push(n)};for(o.s();!(e=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}return r}}},yo=_({name:"CdsTableFooter"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{staticClass:"cds-table__footer"},[n("div",[t._t("pagination")],2),t._v(" "),n("div",{staticClass:"cds-table__footer--summary"},[n("span",[t._t("summary")],2)]),t._v(" "),n("div",{staticClass:"cds-table__footer--view"},[t._t("view")],2)])}),[],!1,null,null,null).exports;_o.install=function(t){t.component(_o.name,_o)},yo.install=function(t){t.component(yo.name,yo)},"undefined"!=typeof window&&window.Vue&&(_o.install(window.Vue),yo.install(window.Vue));i(285),i(1637);var wo=new(function(){function t(){co(this,t)}return ho(t,[{key:"get",value:function(t){var e=JSON.parse(localStorage.getItem(t));return e?new Date(e.expires)<new Date?(localStorage.removeItem(t),null):e.value:null}},{key:"set",value:function(t,e,n){var i=(new Date).getTime(),r=new Date(i+6e4*n);localStorage.setItem(t,JSON.stringify({value:e,expires:r}))}}]),t}()),bo="requestTabs",Co=new(s()),Eo=["sm","md","lg","xlg","max"],xo=_({name:"CdsTabs",props:{tabsId:{type:String,required:!1,default:null,description:"ID табов"},activeTab:{type:String,default:null,description:"ID активного таба"},cacheLifetime:{type:Number,default:0,description:"Срок хранения выбранных табов localStorage (минуты)"},useGetParam:{type:Boolean,default:!1,description:"Использовать ли get параметр url"},getParamName:{type:String,default:"tab-id",description:"Имя get параметра используемого табами"},breakpoint:{type:String,default:"md",description:"Breakpoint для отображения inline-навигации (sm|md|lg|xlg|max)",validator:function(t){return b(Eo,t,"CdsTabs.breakpoint")}},preventInitialChange:{type:Boolean,default:!1,description:"Компонент не будет инициировать первоначальное событие changed"},isSecondary:{type:Boolean,default:!1,description:"Табы второго уровня"}},data:function(){return{tabs:[],activeTabId:null,preventChange:!1}},computed:{classes:function(){return c({"cds-tabs":!0,"cds-tabs--secondary":this.isSecondary},"cds-tabs__breakpoint-".concat(this.breakpoint),!0)},storageKey:function(){return"cds-tabs.cache.".concat(window.location.host).concat(window.location.pathname)}},watch:{tabs:function(){if(this.useGetParam){var t=this._findTab(this._getTabIdFromParams());if(t)return void this.selectTab(t)}if(this.cacheLifetime>0){var e=wo.get(this.storageKey),n=this._findTab(e);if(n)return void this.selectTab(n)}if(this.activeTab){var i=this._findTab(this.activeTab);if(i)return void this.selectTab(i)}this.tabs.length&&this.selectTab(this._findTab(this.tabs[0].computedId))}},beforeMount:function(){this.preventChange=this.preventInitialChange},mounted:function(){var t=this;this.tabs=this._getTabsFromSlots(),this.tabs.length||Co.$on(bo,(function(e){e.tabsId===t.tabsId&&t.tabs.push(e)}))},methods:{_getTabsFromSlots:function(){return this.$slots.default?this.$slots.default.filter((function(t){return t.tag&&["CdsTabsItem","cds-tabs-item"].includes(t.componentOptions.tag)})).map((function(t){return t.componentInstance})):[]},_findTab:function(t){return this.tabs.find((function(e){return e.computedId===t}))},_getTabIdFromParams:function(){var t=window.location.href;return new URL(t).searchParams.get(this.getParamName)},_getLinkClasses:function(t){var e;return c(e={},m.active,t.isActive),c(e,m.disabled,t.isDisabled),e},selectTab:function(t,e){if(e&&e.preventDefault(),t)if(t.isDisabled){if(!e)return;e.preventDefault()}else this.tabs.forEach((function(e){e.isActive=e.computedId===t.computedId})),this.preventChange?this.preventChange=!1:this.$emit("changed",{tab:t}),this.activeTabId=t.computedId,wo.set(this.storageKey,t.computedId,this.cacheLifetime),this.useGetParam&&window.history.pushState(null,null,"?".concat(this.getParamName,"=").concat(t.computedId).concat(window.location.hash))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("ul",{staticClass:"cds-tabs__menu"},t._l(t.tabs,(function(e,i){return n("li",{key:i,staticClass:"cds-tabs__item"},[n("a",{class:t._getLinkClasses(e),attrs:{"aria-controls":e.computedId,href:e.computedId,"aria-selected":e.isActive,role:"tab"},on:{click:function(n){t.selectTab(t._findTab(e.computedId),n)}}},[t._v("\n "+t._s(e.header)+"\n ")])])})),0),t._v(" "),n("CdsDropdown",{staticClass:"cds-tabs__dropdown",model:{value:t.activeTabId,callback:function(e){t.activeTabId=e},expression:"activeTabId"}},t._l(t.tabs,(function(e,i){return n("CdsDropdownItem",{key:i,attrs:{value:e.computedId,disabled:e.isDisabled},on:{click:function(n){t.selectTab(t._findTab(e.computedId),n)}}},[t._v("\n "+t._s(e.header)+"\n ")])})),1),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports;function Ao(t,e,n,i,r,o,s){try{var u=t[o](s),a=u.value}catch(t){return void n(t)}u.done?e(a):Promise.resolve(a).then(i,r)}i(5666);var Do={name:"CdsTabsItem",props:{name:{type:String,required:!0,description:"Название таба"},prefix:{type:String,default:"",required:!1,description:"Префикс названия таба"},suffix:{type:String,default:"",required:!1,description:"Суффикс названия таба"},isDisabled:{type:Boolean,default:!1,description:"Заблокированный таб"},tabsId:{type:String,default:"",description:"ID cds-tabs к которым необходимо привязать данный таб (Необходимо только в случае, если табы находяться вне контейнера cds-tabs)"},targetId:{type:[String],required:!1,default:void 0,description:"ID таба"},tag:{type:String,default:"section",description:"Тег оборачивающийся табом"}},data:function(){return{isActive:!1}},computed:{header:function(){return this.prefix+this.name+this.suffix},computedId:function(){return this.targetId?this.targetId:this.name.toLowerCase().replace(/ /g,"-")}},mounted:function(){var t=this;return function(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){Ao(o,i,r,s,u,"next",t)}function u(t){Ao(o,i,r,s,u,"throw",t)}s(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$nextTick();case 2:t.tabsId&&Co.$emit(bo,t);case 3:case"end":return e.stop()}}),e)})))()}},ko=_(Do,(function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.tag,{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],tag:"component",attrs:{id:t.computedId,"aria-hidden":!t.isActive,role:"tabpanel"}},[t._t("default")],2)}),[],!1,null,null,null).exports,Fo=_({name:"CdsTabsSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-tabs cds-tabs__breakpoint-md"},[n("ul",{staticClass:"cds-tabs__menu",staticStyle:{display:"flex"}},[n("li",{staticClass:"cds-tabs__item"},[n("span",{staticClass:"cds-tabs__item--skeleton"},[n("cds-skeleton",{attrs:{width:"56px",height:"12px"}})],1)]),t._v(" "),n("li",{staticClass:"cds-tabs__item"},[n("span",{staticClass:"cds-tabs__item--skeleton"},[n("cds-skeleton",{attrs:{width:"38px",height:"12px"}})],1)]),t._v(" "),n("li",{staticClass:"cds-tabs__item"},[n("span",{staticClass:"cds-tabs__item--skeleton"},[n("cds-skeleton",{attrs:{width:"56px",height:"12px"}})],1)])])])}),[],!1,null,null,null).exports;xo.install=function(t){t.component(xo.name,xo)},ko.install=function(t){t.component(ko.name,ko)},Fo.install=function(t){t.component(Fo.name,Fo)},"undefined"!=typeof window&&window.Vue&&(xo.install(window.Vue),ko.install(window.Vue),Fo.install(window.Vue));var So={size:["sm","md"],color:["yellow","green","light-blue","blue","deep-purple","purple","pink"]},Bo=_({name:"CdsTag",components:{CdsIcon:an},props:{title:{type:String,required:!0,description:"Текст тэга"},href:{type:String,default:"",description:"Ссылка для тэга"},removable:{type:Boolean,default:!1,description:"Удаляемые тэг"},disabled:{type:Boolean,default:!1,description:"Заблокированный тэг"},size:{type:String,default:"sm",available:So.size,validator:function(t){return b(So.size,t,"Tag.size")},description:"Размер тэга"},color:{type:String,default:null,validator:function(t){return b(So.color,t,"Tag.color")},description:"Цвет тега"}},computed:{classes:function(){var t;return c(t={"cds-tag":!0,"cds-tag--removable":this.removable,"cds-tag--interactive":this.hasLink},"cds-tag__size--".concat(this.size),this.size),c(t,"cds-tag__color--".concat(this.color),this.color),c(t,m.disabled,this.disabled),t},hasLink:function(){return!!this.href},link:function(){return this.hasLink?this.href:null},htmlTag:function(){return this.hasLink?"a":"span"}},methods:{remove:function(t){this.disabled||this.$emit("remove",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.htmlTag,t._g({tag:"component",class:t.classes,attrs:{href:t.link,tabindex:"0",title:t.title,"aria-label":t.title}},t.$listeners),[n("span",{staticClass:"cds-tag__title",attrs:{tabindex:"-1"}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.removable?n("button",{staticClass:"cds-tag__close",attrs:{type:"button",disabled:t.disabled},on:{click:function(e){return e.preventDefault(),t.remove.apply(null,arguments)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.remove.apply(null,arguments))}}},[t.removable?n("CdsIcon",{staticClass:"cds-tag__icon",attrs:{name:"remove"}}):t._e()],1):t._e()])}),[],!1,null,null,null),$o=Bo.exports,Io=_({name:"CdsTagSkeleton"},(function(){var t=this.$createElement;return(this._self._c||t)("cds-skeleton",{staticClass:"cds-tag__skeleton",attrs:{width:"52px",height:"16px"}})}),[],!1,null,null,null).exports;$o.install=function(t){t.component($o.name,$o)},Io.install=function(t){t.component(Io.name,Io)},"undefined"!=typeof window&&window.Vue&&($o.install(window.Vue),Io.install(window.Vue));var Oo=_({name:"CdsTextArea",components:{CdsInputLabel:Hn,CdsInputDescription:Vn,CdsInputError:Rn,CdsInputCounter:Mn,CdsIcon:an},mixins:[dn],inheritAttrs:!1,props:{label:{type:String,required:!0,description:"Лейбл компонента"},placeholder:{type:String,required:!0,description:"Обязательный плейсхолдер"},description:{type:[String,Boolean],default:!1,description:"Описание"},hiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},autofocus:{type:Boolean,default:!1,description:"Активировать фокус на textarea"},limit:{type:Number,default:null,description:"Максимальное кол-во символов"},value:{type:[String],default:null,description:"Внешняя модель для текстового поля, указывается v-model"},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},computed:{classes:function(){var t;return c(t={"cds-text-area":!0},m.invalid,this.error),c(t,m.disabled,this.disabled),t},count:function(){return this.value?this.value.length:0},inputListeners:function(){var t=this;return p(p({},this.$listeners),{},{input:function(e){return t.$emit("input",e.target.value)},blur:function(e){return t.$emit("blur",e.target.value)}})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{id:t.id,label:t.label,"optional-label":t.optionalLabel,optional:t.optional}}),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",{staticClass:"cds-text-area__field"},[t.limit&&!t.disabled?n("CdsInputCounter",{attrs:{count:t.count,limit:t.limit}}):t._e(),t._v(" "),n("textarea",t._g(t._b({ref:"input",attrs:{id:t.id,placeholder:t.placeholder,disabled:t.disabled,autofocus:t.autofocus,maxlength:t.limit,"aria-invalid":t.error},domProps:{value:t.value}},"textarea",t.$attrs,!1),t.inputListeners)),t._v(" "),t.error?n("CdsIcon",{staticClass:"cds-text-area__alert-icon",attrs:{name:"alert"}}):t._e()],1),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null).exports,Lo=_({name:"CdsTextAreaSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-text-input"},[n("label",{staticClass:"cds-input__label"},[n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("div",{staticClass:"cds-input__description"},[n("cds-skeleton",{attrs:{width:"100px",height:"8px"}})],1),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[n("cds-skeleton",{attrs:{width:"240px",height:"108px"}})],1)])}),[],!1,null,null,null).exports;Oo.install=function(t){t.component(Oo.name,Oo)},Lo.install=function(t){t.component(Lo.name,Lo)},"undefined"!=typeof window&&window.Vue&&(Oo.install(window.Vue),Lo.install(window.Vue));var To=_({name:"CdsTextInput",components:{CdsInputLabel:Hn,CdsInputDescription:Vn,CdsInput:Tn,CdsInputCounter:Mn,CdsInputError:Rn,CdsIcon:an},mixins:[dn],inheritAttrs:!1,props:{label:{type:String,required:!0,description:"Лейбл компонента"},placeholder:{type:String,default:"",description:"Плейсхолдер"},description:{type:[String,Boolean],default:!1,description:"Описание"},password:{type:Boolean,default:!1,description:"Поле для ввода пароля"},hiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированный"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на инпуте"},limit:{type:Number,default:null,description:"Максимальное кол-во символов"},value:{type:[String,Number],required:!1,default:"",description:"Если установили v-model компоненту, то value автоматически подставится. Иначе писать самому"},prefixClass:{type:String,required:!1,default:"",description:"Класс для префикса"},suffixClass:{type:String,required:!1,default:"",description:"Класс для суффикса"},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},data:function(){return{internalValue:null,isPasswordVisible:!1}},computed:{classes:function(){var t;return c(t={"cds-text-input":!0},m.invalid,this.error),c(t,m.disabled,this.disabled),t},events:function(){return p(p({},this.$listeners),{},{input:this._input,blur:this._onBlur,keydown:this._onKeyDown})},count:function(){return this.internalValue?this.internalValue.length:0},type:function(){return this.password&&!this.isPasswordVisible?"password":"text"},passwordIcon:function(){return this.isPasswordVisible?"visibility-off":"visibility-on"}},watch:{value:{immediate:!0,deep:!0,handler:function(t){this.internalValue=t}}},methods:{_input:function(t){this.internalValue=t,this.$emit("input",t)},_onBlur:function(t){this.internalValue=t.target.value,this.$emit("blur",this.internalValue)},_onKeyDown:function(t){t.keyCode===v.enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},togglePasswordVisibility:function(){this.isPasswordVisible=!this.isPasswordVisible},setFocus:function(){this.$refs.input.setFocus()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{id:t.id,label:t.label,"optional-label":t.optionalLabel,optional:t.optional}}),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[t.limit&&!t.disabled?n("CdsInputCounter",{attrs:{count:t.count,limit:t.limit}}):t._e(),t._v(" "),n("CdsInput",t._g(t._b({ref:"input",attrs:{id:t.id,value:t.value,label:t.label,type:t.type,placeholder:t.placeholder,autofocus:t.autofocus,disabled:t.disabled,invalid:t.error,maxlength:t.limit,"prefix-class":t.prefixClass,"suffix-class":t.suffixClass},scopedSlots:t._u([t.password?{key:"suffix",fn:function(){return[n("button",{staticClass:"cds-text-input__password-button",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.togglePasswordVisibility.apply(null,arguments)}}},[n("CdsIcon",{staticClass:"cds-text-input__password-icon",attrs:{name:t.passwordIcon}})],1)]},proxy:!0}:null],null,!0)},"CdsInput",t.$attrs,!1),t.events))],1),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null),Mo=To.exports,Vo=_({name:"CdsTextInputSkeleton",components:{CdsInputSkeleton:zn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Mo.install=function(t){t.component(Mo.name,Mo)},Vo.install=function(t){t.component(Vo.name,Vo)},"undefined"!=typeof window&&window.Vue&&(Mo.install(window.Vue),Vo.install(window.Vue));var Ro=_({name:"CdsToggle",mixins:[dn],inheritAttrs:!1,model:{prop:"model",event:"change"},props:{label:{type:String,required:!0,description:"Лейбл переключателя"},textOn:{type:String,default:"",description:"Описание включенного состояния"},textOff:{type:String,default:"",description:"Описание выключенного состояния"},checked:{type:Boolean,default:!1,description:"Состояние включен\\выключен"},value:{type:[String,Number,Boolean],default:!1,description:"Значение переключателя"},model:{type:[String,Number,Boolean],default:null,description:"Внешняя модель v-model"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},hiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"}},data:function(){return{isChecked:this.checked}},computed:{events:function(){return p(p({},this.$listeners),{},{change:this._onChange,keydown:this._onKeyDown})},classes:function(){var t;return c(t={"cds-toggle":!0,"cds-toggle--with-label":!this.hiddenLabel},m.checked,this.shouldBeChecked),c(t,m.disabled,this.disabled),t},shouldBeChecked:function(){return null!==this.model?"string"==typeof this.model||!!this.model:this.isChecked}},watch:{checked:function(t){this.isChecked=t}},methods:{change:function(t){return this.isChecked=t,this.isChecked},_onChange:function(t){var e=this.change(t.target.checked);this.$emit("change",e)},_onKeyDown:function(t){t.keyCode===v.enter&&(t.preventDefault(),this.change(!this.isChecked)),this.$emit("keydown",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("input",t._g(t._b({ref:"input",staticClass:"cds-toggle__input",attrs:{id:t.id,type:"checkbox",disabled:t.disabled,"aria-checked":""+t.shouldBeChecked,"aria-label":t.label},domProps:{value:t.value,checked:t.shouldBeChecked}},"input",t.$attrs,!1),t.events)),t._v(" "),n("label",t._g({staticClass:"cds-toggle__label",attrs:{for:t.id}},t.events),[n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{"aria-hidden":""+t.hiddenLabel}},[t._v(t._s(t.label))]),t._v(" "),n("span",{staticClass:"cds-toggle__switch"},[n("span",{staticClass:"cds-toggle__off"},[t._v(t._s(t.textOff))]),t._v(" "),n("span",{staticClass:"cds-toggle__on"},[t._v(t._s(t.textOn))])])])])}),[],!1,null,null,null).exports,Ho=_({name:"CdsToggleSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"cds-toggle"},[e("cds-skeleton",{staticStyle:{"border-radius":"12px"},attrs:{width:"44px",height:"24px"}})],1)}),[],!1,null,null,null).exports;Ro.install=function(t){t.component(Ro.name,Ro)},Ho.install=function(t){t.component(Ho.name,Ro)},"undefined"!=typeof window&&window.Vue&&(Ro.install(window.Vue),Ho.install(window.Vue));var zo=i(5976),Po=i.n(zo),jo=i(3096),No=i.n(jo),Uo={name:"CdsFile",components:{CdsIcon:un,CdsLoading:w,CdsTooltip:yn,CdsButton:k},props:{file:{type:Object,required:!0,description:"Объект файла который загрузили"},downloadUrl:{type:String,default:null,description:"Url для загрузки скаченных файлов"}},data:function(){return{check:!1}},computed:{tag:function(){return this.downloadUrl&&this.check?"cds-link":"span"},internalDownloadUrl:function(){return"".concat(this.downloadUrl,"/").concat(this.file.name)},iconName:function(){return this.file.error?"alert":this.check?"check":"loader"},iconClasses:function(){return c({},"cds-uploader__icon--".concat(this.iconName),this.iconName)},tooltipText:function(){return this.file.error?this.file.error:this.check?"Загружено":"Загрузка"}},watch:{"file.success":{handler:function(t){this.check=t},immediate:!0}}},Ko=_(Uo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-uploader__wrapper"},[n("cds-tooltip",{staticClass:"cds-uploader__status",attrs:{align:"start",tip:t.tooltipText}},[n("cds-icon",{class:t.iconClasses,attrs:{name:t.iconName}})],1),t._v(" "),n(t.tag,{tag:"component",staticClass:"cds-uploader__filename",attrs:{text:t.file.name,to:t.internalDownloadUrl,download:"","use-router":!1}},[t._v("\n "+t._s("span"===t.tag?t.file.name:"")+"\n ")]),t._v(" "),n("cds-tooltip",{attrs:{tip:"Удалить файл"}},[n("cds-button",{attrs:{appearance:"transparent","icon-only":""},on:{click:function(e){return e.preventDefault(),t.$emit("remove")},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$emit("remove"))},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.$emit("remove"))}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"remove","arial-label":"Remove file"}})]},proxy:!0}])})],1)],1)}),[],!1,null,null,null).exports,qo={name:"CdsFile",components:{CdsIcon:un,CdsLoading:w},props:{file:{type:Object,required:!0,description:"Объект файла который загрузили"},removed:{type:Boolean,description:"Можно ли удалить файл"}},data:function(){return{check:!1}},computed:{isShowRemoveIcon:function(){return(this.file.success||this.file.error)&&!this.check&&this.removed}},watch:{"file.success":function(t){var e=this;t&&(this.check=!0,setTimeout((function(){e.check=!1}),800))}}},Wo=_(qo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-uploader-old__wrapper"},[n("div",{class:["cds-uploader-old__file",{"cds-uploader-old__error":t.file.error}],attrs:{title:t.file.name}},[(t.file.active||t.file.progress<100)&&!t.file.error?n("div",{staticClass:"cds-uploader-old__progress",style:{width:t.file.progress+"%"}}):t._e(),t._v(" "),n("div",{staticClass:"cds-uploader-old__name"},[t._v("\n "+t._s(t.file.name)+"\n ")]),t._v(" "),t.isShowRemoveIcon?n("CdsIcon",{attrs:{name:"remove","arial-label":"Remove file"},on:{click:function(e){return e.preventDefault(),t.$emit("remove")},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$emit("remove"))},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.$emit("remove"))}}}):t._e(),t._v(" "),t.check?n("CdsIcon",{staticClass:"cds-uploader-old__success--icon",attrs:{name:"check"}}):t._e(),t._v(" "),t.file.error?n("CdsIcon",{staticClass:"cds-uploader-old__error--icon",attrs:{name:"alert"}}):t._e(),t._v(" "),(t.file.active||t.file.progress<100)&&!t.isShowRemoveIcon?n("CdsLoading",{staticClass:"cds-uploader-old__loading",attrs:{small:!0}}):t._e()],1),t._v(" "),t.file.error?n("div",{staticClass:"cds-uploader-old__error--text"},[t._v("\n "+t._s(t.file.error)+"\n ")]):t._e()])}),[],!1,null,null,null).exports,Yo=_({name:"CdsUploader",components:{FileUpload:Po(),CdsButton:k,CdsInputLabel:Hn,CdsInputDescription:Vn,CdsFile:Ko,CdsFileOld:Wo},mixins:[dn],model:{prop:"model",event:"change"},props:{label:{type:String,default:null,description:"Лейбл аплоадера"},description:{type:String,default:null,description:"Описание аплоадера, в нем может быть и указаны типа файлов и т.п."},buttonText:{type:String,default:"Загрузить файл",description:"Текст в кнопке"},uploadUrl:{type:String,required:!0,description:"Url для загрузки файлов POST методом"},putAction:{type:String,default:"",description:"Url для загрузки файлов PUT методом"},deleteUrl:{type:String,default:null,description:"Url для удаление файлов POST методом"},downloadUrl:{type:String,default:null,description:"Url для скачивания загруженных файлов. Активирует новый внешний вид"},headers:{type:Object,default:function(){},description:"Заголовки"},allowedTypes:{type:Array,default:function(){return["jpeg","jpg","png","doc","docs","zip"]},description:"Доступные форматы для загрузки файлов"},name:{type:String,default:null,description:"Нативное имя модели (если необходимо)"},multiple:{type:Boolean,default:!0,description:"Возможность загружать несколько файлов разом"},size:{type:Number,default:0,description:"Максимальный размер загрузки файла - в КБ"},timeout:{type:Number,default:0,description:"Ограничение времени загрузки в мс."},maximum:{type:Number,default:100,description:"Максимальное кол-во файлов"},model:{type:Array,default:function(){return[]},description:"Внешняя модель для группы, указывается v-model"},disabled:{type:Boolean,default:!1,description:"Заблокированный загрузчик"},allowDuplicate:{type:Boolean,default:!1,description:"Разрешить загружать файлы которые уже есть в моделе"},requestData:{type:Object,default:function(){return{}},description:"Дополнительные данные для передачи на сервер, например токен."},onUploadResponse:{type:Function,default:null,description:"Callback для обработки кастомного ответа с сервера, чтобы получить оттуда file_id и т.п"},inputFilter:{type:Function,default:null,description:"Дополнительная внешняя фильтрация файла"},error:{type:Boolean,default:!1,description:"Активирует слот error, для клиентских ошибок"}},data:function(){return{files:[]}},computed:{nameAttr:function(){return this.name?this.name:this.id},classes:function(){return c({},m.disabled,this.disabled)},accept:function(){return this.allowedTypes.map((function(t){return"."+t})).join()},fileComponent:function(){return this.downloadUrl?"CdsFile":"CdsFileOld"}},watch:{model:function(t){if(t.length){var e=t.map((function(t){return t.file?No()(t.file):""})),n=this.files.map((function(t){return t.file?No()(t.file):""}));e.every((function(t,e){return t===n[e]}))||(this.files=t)}else this.files=t}},mounted:function(){var t=this;this.files=this.model,this.files.map((function(t){return t.isPreloaded=!0})),this.$watch((function(){return t.$refs.upload.uploaded}),(function(e){e&&(t._triggerChangeModel(),t.$emit("allUploaded"))}))},methods:{inputFile:function(t,e){t&&!e&&this.$emit("add",t),t&&e&&(t.isPreloaded=!1,t.error&&t.error!==e.error&&this.$emit("error",t.error),t.success!==e.success&&this.$emit("done",t)),Boolean(t)===Boolean(e)&&e.error===t.error||this.$refs.upload.active||(this.$refs.upload.active=!0)},_internalInputFilter:function(t,e,n){var i=this;if(this.disabled)return n();if(!this.allowDuplicate&&-1!==this.files.findIndex((function(e){return function(e){var n=!!t&&i._isDuplicate(e,t),r=!0===e.success;return n&&r}(e)})))return this.$emit("duplicate",t),n();if(t&&!e){if(!new RegExp(".(".concat(this.allowedTypes.join("|"),")$"),"i").test(t.name))return this.$emit("notAllowed",t),n();if(this.files.length===this.maximum)return this.$emit("maxFiles",t),n()}if(t){if(this.size&&t.size>1e3*this.size)return this.$emit("maxSize",t),n();if(t.blob=this._createFileBlob(t),!t.blob)return n()}this.inputFilter&&this.inputFilter(t,e,n)},remove:function(t){var e=this,n=this._prepareOriginFileForModel(t);delete n.progress,delete n.success,delete n.error,delete n.active;var i=function(t){var i=e.files.findIndex((function(t){return e._isDuplicate(t,n)}));t.isPreloaded?e.files.splice(i,1):e.$refs.upload.remove(t),e._triggerChangeModel()};if(this.$emit("removing"),!this.deleteUrl)return i(t),void this.$emit("remove",n);fetch(this.deleteUrl,{method:"POST",mode:"cors",headers:this.headers,body:JSON.stringify(n)}).then((function(t){if(t.ok)return t.text();throw new Error(t.statusText)})).then((function(r){i(t),e.$emit("remove",n)})).catch((function(n){t.success=!1,t.error=n,e.$emit("error",n)}))},openBrowseFile:function(){this.$refs.upload.$el.querySelector("input").click()},_createFileBlob:function(t){if(!("object"===Kn(t.file)&&"File"===t.file.constructor.name))return"";var e=window.URL||window.webkitURL;return e&&e.createObjectURL?e.createObjectURL(t.file):""},_prepareOriginFileForModel:function(t){if(t.isPreloaded)return t;if(!t.hasOwnProperty("fileObject")&&t.success)return t;var e={id:t.id,name:t.name,success:t.success,error:t.error,progress:t.progress,active:t.active},n=this.onUploadResponse?this.onUploadResponse(t.response):t.response;return Object.assign(e,n)},_isDuplicate:function(t,e){return t.name===e.name},_triggerChangeModel:function(){this.$emit("change",this.files.map(this._prepareOriginFileForModel))},_onMaxFiles:function(t){this.$emit("maxFiles",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["cds-uploader",t.classes]},[t.label?n("CdsInputLabel",{attrs:{id:t.id,label:t.label}}):t._e(),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("FileUpload",{ref:"upload",staticClass:"cds-uploader__upload",attrs:{"post-action":t.uploadUrl,"put-action":t.putAction,accept:t.accept,extensions:t.allowedTypes,headers:t.headers,multiple:t.multiple,name:t.nameAttr,size:1024*t.size,timeout:t.timeout,data:t.requestData,maximum:t.maximum},on:{"input-file":t.inputFile,"input-filter":t._internalInputFilter,"max-files":t._onMaxFiles},model:{value:t.files,callback:function(e){t.files=e},expression:"files"}},[t._t("default",(function(){return[n("CdsButton",{attrs:{appearance:"secondary",disabled:t.disabled,text:t.buttonText},on:{click:t.openBrowseFile}})]}),{openBrowseFile:t.openBrowseFile})],2),t._v(" "),t.files.length?n("div",{staticClass:"cds-uploader__container"},t._l(t.files,(function(e,i){return n(t.fileComponent,{key:t.getDynamicItemIdByIndex(i),tag:"component",staticClass:"cds-uploader__file-item",attrs:{"download-url":t.downloadUrl,file:t._prepareOriginFileForModel(e),removed:!t.disabled},on:{remove:function(n){return t.remove(e)}}})})),1):t._e(),t._v(" "),t.error?n("div",{staticClass:"cds-uploader__error--slot"},[t._t("error")],2):t._e()],1)}),[],!1,null,null,null).exports,Go=_({name:"CdsUploaderSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-text-input cds-uploader__skeleton"},[n("label",{staticClass:"cds-input__label"},[n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("div",{staticClass:"cds-input__description"},[n("cds-skeleton",{attrs:{width:"232px",height:"8px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"95px",height:"8px"}})],1),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[n("cds-skeleton",{attrs:{width:"140px",height:"32px"}})],1),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[n("cds-skeleton",{attrs:{width:"240px",height:"32px"}})],1)])}),[],!1,null,null,null).exports;Yo.install=function(t){t.component(Yo.name,Yo)},Go.install=function(t){t.component(Go.name,Go)},"undefined"!=typeof window&&window.Vue&&(Yo.install(window.Vue),Go.install(window.Vue));var Jo={size:["sm","md","lg","3xl"]},Zo=_({name:"CdsSidebar",components:{CdsButton:k,CdsIcon:an},directives:{clickOutside:wr},model:{prop:"showed",event:"change"},props:{title:{type:String,required:!0,description:"Заголовок сайдбара"},size:{type:String,required:!1,default:"md",available:Jo.size,description:"Размер боковой панели ".concat(Jo.size.join(", ")),validator:function(t){return b(Jo.size,t,"CdsSidebar.size")}},showed:{type:Boolean,default:!1,description:"Боковая панель Видно/Скрыто"},visible:{type:Boolean,default:!1,description:"Видимость боковой панели при инициализации"},id:{type:[String,Number],default:"",description:"Id сайдбара"}},data:function(){return{isVisible:!1,internalShowed:!1}},computed:{hasToolbar:function(){return!!this.$slots.toolbar||!!this.$scopedSlots.toolbar},hasFooter:function(){return!!this.$slots.footer||!!this.$scopedSlots.footer},classes:function(){return c({"cds-sidebar":!0,"cds-sidebar--opening":this.isVisible},"cds-sidebar--".concat(this.size),!0)}},watch:{showed:function(t,e){t!==e&&this[t?"show":"hide"]()},isVisible:function(t){var e=this;t||setTimeout((function(){e.internalShowed=!1}),100)}},mounted:function(){this.visible&&this.$nextTick(this.show)},beforeDestroy:function(){this.isVisible&&this.hide()},methods:{show:function(){var t=this;this.isVisible||(this.$emit("show"),this.$emit("change",!0),this.internalShowed=!0,setTimeout((function(){t.isVisible=!0}),10))},hide:function(){this.isVisible&&(this.$emit("hide"),this.$emit("change",!1),this.isVisible=!1)},_onClickOutside:function(){this.isVisible&&this.$emit("clickOutside")}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.internalShowed?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t._onClickOutside,expression:"_onClickOutside"}],key:t.id,class:t.classes,attrs:{id:t.id}},[n("div",{staticClass:"cds-sidebar__header"},[n("h5",{staticClass:"cds-sidebar__header--title"},[t._v(t._s(t.title))]),t._v(" "),n("CdsButton",{attrs:{appearance:"transparent","icon-only":"",size:"md",name:"close"},on:{click:t.hide},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"Remove"}})]},proxy:!0}],null,!1,1932794641)})],1),t._v(" "),t.hasToolbar?n("div",{staticClass:"cds-sidebar__toolbar"},[t._t("toolbar")],2):t._e(),t._v(" "),n("div",{staticClass:"cds-sidebar__content"},[t._t("content")],2),t._v(" "),t.hasFooter?n("div",{staticClass:"cds-sidebar__footer"},[t._t("footer")],2):t._e()]):t._e()}),[],!1,null,null,null).exports;Zo.install=function(t){t.component(Zo.name,Zo)},"undefined"!=typeof window&&window.Vue&&Zo.install(window.Vue);var Xo=[kn,Fn,Sn,On,In,Ln,k,F,Pn,Nn,Un,Yn,Gn,Xn,Qn,ei,ni,fi,ai,ii,ri,li,hi,Di,xi,ki,Si,Bi,$i,Ii,Li,Ti,Mi,Vi,Ri,zi,ji,Ni,Ui,Ki,Xi,Qi,ar,lr,hr,pr,an,mr,$n,gr,_r,yr,w,Er,Ar,Dr,En,xn,kr,Sr,Br,$r,Or,Lr,Tr,Mr,Rr,Zo,Hr,Pr,jr,Nr,Kr,qr,Zr,Jr,Xr,_o,yo,xo,ko,Fo,$o,Io,Oo,Lo,Mo,Vo,Ro,Ho,mn,yn,bn,Yo,Go],Qo=function(t){var e,i=n(Xo);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.name&&t.component(r.name,r)}}catch(t){i.e(t)}finally{i.f()}for(var o in l)t.filter("cds"+o,l[o]);!function(t){t.prototype.$cds={notification:Dn}}(t)};"undefined"!=typeof window&&window.Vue&&Qo(window.Vue);var ts=Qo}(),r=r.default}()}));
38
+ t.exports=function(){"use strict";var t=function(t){var e=new XMLHttpRequest;return e.open(t.method||"GET",t.url),e.responseType="json",t.headers&&Object.keys(t.headers).forEach((function(n){e.setRequestHeader(n,t.headers[n])})),e},e=function(t,e){return new Promise((function(n,i){t.onload=function(){if(t.status>=200&&t.status<300){var e;try{e=JSON.parse(t.response)}catch(n){e=t.response}n(e)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(JSON.stringify(e))}))},n=function(t,e){var n=new FormData;for(var i in e)n.append(i,e[i]);return new Promise((function(e,i){t.onload=function(){if(t.status>=200&&t.status<300){var n;try{n=JSON.parse(t.response)}catch(e){n=t.response}e(n)}else i(t.response)},t.onerror=function(){return i(t.response)},t.send(n)}))};function i(n){var i=t(n);return e(i,n.body)}var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(t,n){o(this,e),this.file=t,this.options=n,this.chunks=[],this.sessionId=null,this.chunkSize=null,this.speedInterval=null}return r(e,[{key:"createChunks",value:function(){this.chunks=[];for(var t=0,e=this.chunkSize;t<this.fileSize;)this.chunks.push({blob:this.file.file.slice(t,e),startOffset:t,active:!1,retries:this.maxRetries}),e=(t=e)+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach((function(t){t.xhr.abort(),t.active=!1})),this.stopSpeedCalc()}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var t=this;return this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),this.start(),this.promise}},{key:"start",value:function(){var t=this;i({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then((function(e){if("success"!==e.status)return t.file.response=e,t.reject("server");t.sessionId=e.data.session_id,t.chunkSize=e.data.end_offset,t.createChunks(),t.startChunking()})).catch((function(e){t.file.response=e,t.reject("server")}))}},{key:"startChunking",value:function(){for(var t=0;t<this.maxActiveChunks;t++)this.uploadNextChunk();this.startSpeedCalc()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(e){var i=this;e.progress=0,e.active=!0,this.updateFileProgress(),e.xhr=t({method:"POST",headers:this.headers,url:this.action}),e.xhr.upload.addEventListener("progress",(function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded/t.total*100))}),!1),n(e.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:e.startOffset,chunk:e.blob})).then((function(t){if(e.active=!1,"success"===t.status)e.uploaded=!0;else if(e.retries--<=0)return i.stopChunks(),i.reject("upload");i.uploadNextChunk()})).catch((function(){if(e.active=!1,e.retries--<=0)return i.stopChunks(),i.reject("upload");i.uploadNextChunk()}))}},{key:"finish",value:function(){var t=this;this.updateFileProgress(),this.stopSpeedCalc(),i({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then((function(e){if(t.file.response=e,"success"!==e.status)return t.reject("server");t.resolve(e)})).catch((function(e){t.file.response=e,t.reject("server")}))}},{key:"startSpeedCalc",value:function(){var t=this;this.file.speed=0;var e=0;this.speedInterval||(this.speedInterval=window.setInterval((function(){var n=t.progress/100*t.fileSize;t.file.speed=n-e,e=n}),1e3))}},{key:"stopSpeedCalc",value:function(){this.speedInterval&&window.clearInterval(this.speedInterval),this.speedInterval=null,this.file.speed=0}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries,10)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive,10)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var t=this,e=this.chunksUploaded.length/this.chunks.length*100,n=this.chunksUploading.reduce((function(e,n){return e+(0|n.progress)/t.chunks.length}),0);return Math.min(e+n,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter((function(t){return!t.active&&!t.uploaded}))}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter((function(t){return!!t.xhr&&!!t.active}))}},{key:"chunksUploaded",get:function(){return this.chunks.filter((function(t){return!!t.uploaded}))}}]),e}();function u(t,e,n,i,r,o,s,u,a,l){"boolean"!=typeof s&&(a=u,u=s,s=!1);var c,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,a(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=c):e&&(c=s?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),c)if(d.functional){var f=d.render;d.render=function(t,e){return c.call(e),f(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,c):[c]}return n}var a=u,l=void 0,c=void 0,d=void 0,f=a({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"file",name:t.$parent.name,id:t.$parent.inputId||t.$parent.name,accept:t.$parent.accept,capture:t.$parent.capture,disabled:t.$parent.disabled,webkitdirectory:t.$parent.directory&&t.$parent.features.directory,directory:t.$parent.directory&&t.$parent.features.directory,multiple:t.$parent.multiple&&t.$parent.features.html5},on:{change:t.change}})},staticRenderFns:[]},l,{methods:{change:function(t){this.$parent.addInputFile(t.target),t.target.files?(t.target.value="",t.target.files.length&&!/safari/i.test(navigator.userAgent)&&(t.target.type="",t.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}},c,!1,d,void 0,void 0),h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function v(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var m={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:s},g={components:{InputFile:f},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return m}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drop:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var t=document.createElement("input");if(t.type="file",t.multiple=!0,window.FormData&&t.files?("boolean"!=typeof t.webkitdirectory&&"boolean"!=typeof t.directory||(this.features.directory=!0),this.features.html5&&void 0!==t.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var e=0;e<this.files.length;e++){var n=this.files[e];this.maps[n.id]=n}this.$nextTick((function(){var t=this;this.$parent?(this.$parent.$forceUpdate(),this.$parent.$nextTick((function(){t.watchDrop(t.drop)}))):this.watchDrop(this.drop)}))},beforeDestroy:function(){this.destroy=!0,this.active=!1,this.watchDrop(!1)},computed:{uploaded:function(){for(var t=void 0,e=0;e<this.files.length;e++)if((t=this.files[e]).fileObject&&!t.error&&!t.success)return!1;return!0},chunkOptions:function(){return Object.assign(m,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(t){this.watchActive(t)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(t){this.watchDrop(t)},value:function(t){if(this.files!==t){this.files=t;var e=this.maps;this.maps={};for(var n=0;n<this.files.length;n++){var i=this.files[n];this.maps[i.id]=i}for(var r in this.maps){var o=this.maps[r],s=e[r];o!==s&&this.emitFile(o,s)}for(var u in e)this.maps[u]||this.emitFile(void 0,e[u])}}},methods:{clear:function(){if(this.files.length){var t=this.files;this.files=[],this.maps={},this.emitInput();for(var e=0;e<t.length;e++)this.emitFile(void 0,t[e])}return!0},get:function(t){return!!t&&("object"===(void 0===t?"undefined":p(t))?this.maps[t.id]||!1:this.maps[t]||!1)},add:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=t,i=n instanceof Array;i||(n=[n]);for(var r=[],o=0;o<n.length;o++){var s=n[o];this.features.html5&&s instanceof Blob&&(s={file:s,size:s.size,name:s.webkitRelativePath||s.relativePath||s.name||"unknown",type:s.type});var u=!1;if(!1===s.fileObject||(s.fileObject||"undefined"!=typeof Element&&s.el instanceof Element||"undefined"!=typeof Blob&&s.file instanceof Blob)&&(u=!0),u&&((s=h({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},s,{response:{},progress:"0.00",speed:0})).data=h({},this.data,s.data?s.data:{}),s.headers=h({},this.headers,s.headers?s.headers:{})),s.id||(s.id=Math.random().toString(36).substr(2)),!this.emitFilter(s,void 0)){if(this.maximum>1&&r.length+this.files.length>=this.maximum){this.$emit("max-files",s);break}if(r.push(s),1===this.maximum)break}}if(!r.length)return!1;1===this.maximum&&this.clear();var a=void 0;if(!0===e||0===e)a=r.concat(this.files);else if(e){var l;(l=a=this.files.concat([])).splice.apply(l,[e,0].concat(r))}else a=this.files.concat(r);this.files=a;for(var c=0;c<r.length;c++){var d=r[c];this.maps[d.id]=d}this.emitInput();for(var f=0;f<r.length;f++)this.emitFile(r[f],void 0);return i?r:r[0]},addInputFile:function(t){var e=[];if(t.files)for(var n=0;n<t.files.length;n++){var i=t.files[n];e.push({size:i.size,name:i.webkitRelativePath||i.relativePath||i.name,type:i.type,file:i})}else{var r=t.value.replace(/\\/g,"/").split("/");delete t.__vuex__,e.push({name:r[r.length-1],el:t})}return this.add(e)},addDataTransfer:function(t){var e=this,n=[];if(t.items&&t.items.length){for(var i=[],r=0;r<t.items.length;r++){var o=t.items[r];(o=o.getAsEntry?o.getAsEntry()||o.getAsFile():o.webkitGetAsEntry&&o.webkitGetAsEntry()||o.getAsFile())&&i.push(o)}return new Promise((function(t,r){var o=function r(o){var s=i[o];if(!s||e.maximum>0&&n.length>=e.maximum)return t(e.add(n));e.getEntry(s).then((function(t){n.push.apply(n,v(t)),r(o+1)}))};o(0)}))}if(t.files.length){for(var s=0;s<t.files.length&&(n.push(t.files[s]),!(this.maximum>0&&n.length>=this.maximum));s++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(i,r){if(t.isFile)t.file((function(t){i([{size:t.size,name:n+t.name,type:t.type,file:t}])}));else if(t.isDirectory&&e.dropDirectory){var o=[],s=t.createReader();!function r(){s.readEntries((function(s){!function u(a){return!s[a]&&0===a||e.maximum>0&&o.length>=e.maximum?i(o):s[a]?void e.getEntry(s[a],n+t.name+"/").then((function(t){o.push.apply(o,v(t)),u(a+1)})):r()}(0)}))}()}else i([])}))},replace:function(t,e){var n=this.get(t),i=this.get(e);if(!n||!i||n===i)return!1;var r=this.files.concat([]),o=r.indexOf(n),s=r.indexOf(i);return-1!==o&&-1!==s&&(r[o]=i,r[s]=n,this.files=r,this.emitInput(),!0)},remove:function(t){var e=this.get(t);if(e){if(this.emitFilter(void 0,e))return!1;var n=this.files.concat([]),i=n.indexOf(e);if(-1===i)return console.error("remove",e),!1;n.splice(i,1),this.files=n,delete this.maps[e.id],this.emitInput(),this.emitFile(void 0,e)}return e},update:function(t,e){var n=this.get(t);if(n){var i=h({},n,e);if(!n.fileObject||!n.active||i.active||i.error||i.success||(i.error="abort"),this.emitFilter(i,n))return!1;var r=this.files.concat([]),o=r.indexOf(n);return-1===o?(console.error("update",n),!1):(r.splice(o,1,i),this.files=r,delete this.maps[n.id],this.maps[i.id]=i,this.emitInput(),this.emitFile(i,n),i)}return!1},emitFilter:function(t,e){var n=!1;return this.$emit("input-filter",t,e,(function(){return n=!0})),n},emitFile:function(t,e){this.$emit("input-file",t,e),!(t&&t.fileObject&&t.active)||e&&e.active?t&&t.fileObject&&t.active||!e||!e.fileObject||!e.active||this.uploading--:(this.uploading++,this.$nextTick((function(){var e=this;setTimeout((function(){e.upload(t).then((function(){(t=e.get(t))&&t.fileObject&&e.update(t,{active:!1,success:!t.error})})).catch((function(n){e.update(t,{active:!1,success:!1,error:n.code||n.error||n.message||n})}))}),parseInt(50*Math.random()+50,10))}))),!this.active||Boolean(t)===Boolean(e)&&t.active===e.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(t){var e=this.get(t);if(!e)return Promise.reject("not_exists");if(!e.fileObject)return Promise.reject("file_object");if(e.error)return Promise.reject(e.error);if(e.success)return Promise.resolve(e);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":p(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map((function(t){return t.trim()})).filter((function(t){return t}))),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===e.name.search(n)))return Promise.reject("extension");if(this.size>0&&e.size>=0&&e.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(e,this);if(this.features.html5){if(this.shouldUseChunkUpload(e))return this.uploadChunk(e);if(e.putAction)return this.uploadPut(e);if(e.postAction)return this.uploadHtml5(e)}return e.postAction?this.uploadHtml4(e):Promise.reject("No action configured")},shouldUseChunkUpload:function(t){return this.chunkEnabled&&!!this.chunkOptions.handler&&t.size>this.chunkOptions.minSize},uploadChunk:function(t){var e=this.chunkOptions.handler;return t.chunk=new e(t,this.chunkOptions),t.chunk.upload()},uploadPut:function(t){var e=[],n=void 0;for(var i in t.data)null!=(n=t.data[i])&&e.push(encodeURIComponent(i)+"="+encodeURIComponent(n));var r=e.length?(-1===t.putAction.indexOf("?")?"?":"&")+e.join("&"):"",o=new XMLHttpRequest;return o.open("PUT",t.putAction+r),this.uploadXhr(o,t,t.file)},uploadHtml5:function(t){var e=new window.FormData,n=void 0;for(var i in t.data)(n=t.data[i])&&"object"===(void 0===n?"undefined":p(n))&&"function"!=typeof n.toString?n instanceof File?e.append(i,n,n.name):e.append(i,JSON.stringify(n)):null!=n&&e.append(i,n);e.append(this.name,t.file,t.file.filename||t.name);var r=new XMLHttpRequest;return r.open("POST",t.postAction),this.uploadXhr(r,t,e)},uploadXhr:function(t,e,n){var i=this,r=e,o=0,s=0;t.upload.onprogress=function(t){if(r=i.get(r),t.lengthComputable&&r&&r.fileObject&&r.active){var e=Math.round(Date.now()/1e3);e!==o&&(o=e,r=i.update(r,{progress:(t.loaded/t.total*100).toFixed(2),speed:t.loaded-s}),s=t.loaded)}};var u=setInterval((function(){if(!(r=i.get(r))||!r.fileObject||r.success||r.error||!r.active){u&&(clearInterval(u),u=!1);try{t.abort(),t.timeout=1}catch(t){}}}),100);return new Promise((function(e,o){var s=void 0,a=function(n){if(!s){if(s=!0,u&&(clearInterval(u),u=!1),!(r=i.get(r)))return o("not_exists");if(!r.fileObject)return o("file_object");if(r.error)return o(r.error);if(!r.active)return o("abort");if(r.success)return e(r);var a={};switch(n.type){case"timeout":case"abort":a.error=n.type;break;case"error":t.status?t.status>=500?a.error="server":t.status>=400&&(a.error="denied"):a.error="network";break;default:t.status>=500?a.error="server":t.status>=400?a.error="denied":a.progress="100.00"}if(t.responseText){var l=t.getResponseHeader("Content-Type");l&&-1!==l.indexOf("/json")?a.response=JSON.parse(t.responseText):a.response=t.responseText}return(r=i.update(r,a)).error?o(r.error):e(r)}};for(var l in t.onload=a,t.onerror=a,t.onabort=a,t.ontimeout=a,r.timeout&&(t.timeout=r.timeout),r.headers)t.setRequestHeader(l,r.headers[l]);r=i.update(r,{xhr:t}),t.send(n)}))},uploadHtml4:function(t){var e=this,n=t,i=function(t){27===t.keyCode&&t.preventDefault()},r=document.createElement("iframe");r.id="upload-iframe-"+n.id,r.name="upload-iframe-"+n.id,r.src="about:blank",r.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var o=document.createElement("form");o.action=n.postAction,o.name="upload-form-"+n.id,o.setAttribute("method","POST"),o.setAttribute("target","upload-iframe-"+n.id),o.setAttribute("enctype","multipart/form-data");var s=void 0,u=void 0;for(var a in n.data)(s=n.data[a])&&"object"===(void 0===s?"undefined":p(s))&&"function"!=typeof s.toString&&(s=JSON.stringify(s)),null!=s&&((u=document.createElement("input")).type="hidden",u.name=a,u.value=s,o.appendChild(u));o.appendChild(n.el),document.body.appendChild(r).appendChild(o);var l=function(){var t=void 0;try{r.contentWindow&&(t=r.contentWindow.document)}catch(t){}if(!t)try{t=r.contentDocument?r.contentDocument:r.document}catch(e){t=r.document}return t&&t.body?t.body.innerHTML:null};return new Promise((function(t,s){setTimeout((function(){if(!(n=e.update(n,{iframe:r})))return s("not_exists");var u=setInterval((function(){(n=e.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(u&&(clearInterval(u),u=!1),r.onabort({type:n?"abort":"not_exists"}))}),100),a=void 0,c=function(r){if(!a){if(a=!0,u&&(clearInterval(u),u=!1),document.body.removeEventListener("keydown",i),!(n=e.get(n)))return s("not_exists");if(!n.fileObject)return s("file_object");if(n.error)return s(n.error);if(!n.active)return s("abort");if(n.success)return t(n);var o=l(),c={};switch(r.type){case"abort":c.error="abort";break;case"error":n.error?c.error=n.error:c.error=null===o?"network":"denied";break;default:n.error?c.error=n.error:null===c?c.error="network":c.progress="100.00"}if(null!==o){if(o&&"{"===o.substr(0,1)&&"}"===o.substr(o.length-1,1))try{o=JSON.parse(o)}catch(t){}c.response=o}return(n=e.update(n,c)).error?s(n.error):t(n)}};r.onload=c,r.onerror=c,r.onabort=c,document.body.addEventListener("keydown",i),o.submit()}),50)})).then((function(t){return r.parentNode&&r.parentNode.removeChild(r),t})).catch((function(t){return r.parentNode&&r.parentNode.removeChild(r),t}))},watchActive:function(t){for(var e=void 0,n=0;e=this.files[n];)if(n++,e.fileObject)if(t&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;e.active||e.error||e.success||this.update(e,{active:!0})}else e.active&&this.update(e,{active:!1});0===this.uploading&&(this.active=!1)},watchDrop:function(t){var e=t;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(t){}e?"string"==typeof e?e=document.querySelector(e)||this.$root.$el.querySelector(e):!0===e&&(e=this.$parent.$el):e=!1,this.dropElement=e,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(t){if(t.preventDefault(),!this.dropActive&&t.dataTransfer){var e=t.dataTransfer;e.files&&e.files.length?this.dropActive=!0:e.types?(e.types.indexOf&&-1!==e.types.indexOf("Files")||e.types.contains&&e.types.contains("Files"))&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(t){t.preventDefault(),this.dropActive&&("HTML"===t.target.nodeName||t.target===t.explicitOriginalTarget||!t.fromElement&&(t.clientX<=0||t.clientY<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(t){t.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(t){t.preventDefault(),this.addDataTransfer(t.dataTransfer)}}},_=void 0,y=void 0,w=void 0,b=a({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.className},[t._t("default"),t._v(" "),n("label",{attrs:{for:t.inputId||t.name}}),t._v(" "),n("input-file")],2)},staticRenderFns:[]},_,g,y,!1,w,void 0,void 0);function C(t){return t&&t.default||t}return C(Object.freeze({default:b}))}()},8976:function(e){"use strict";e.exports=t}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var r={};return function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function e(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=e(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,u=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return u=t.done,t},e:function(t){a=!0,s=t},f:function(){try{u||null==i.return||i.return()}finally{if(a)throw s}}}}i.d(r,{default:function(){return ns}});i(7327),i(1539),i(8309);var o=i(8976),s=i.n(o);i(9714),i(4986),i(7042);var u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t)return"";if(t=t.toString(),0===e&&0===n)return t;var i="...";return t.substr(0,e)+i+t.substr(t.length-n)};var a=function(t,e){if(!t)return"";var n=(t=t.toString()).lastIndexOf("."),i=t.slice(n).length;if(t.length>e){var r=i+5;return u(t,e-r-3,r)}return t};s().filter("cdsShortFileName",a),s().filter("cdsTruncate",u);var l={shortFileName:a,truncate:u};function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}i(9653);var d=function(t,e,n){if(!e.hasOwnProperty(n)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i)}},f={props:{template:String,parent:Object,templateProps:{type:Object,default:function(){return{}}}},render:function(t){if(this.template){var e=this.parent||this.$parent,n=e.$data;void 0===n&&(n={});var i=e.$props;void 0===i&&(i={});var r=e.$options;void 0===r&&(r={});var o=r.components;void 0===o&&(o={});var s=r.computed;void 0===s&&(s={});var u=r.methods;void 0===u&&(u={});var a=this.$data;void 0===a&&(a={});var l=this.$props;void 0===l&&(l={});var c=this.$options;void 0===c&&(c={});var f=c.methods;void 0===f&&(f={});var h=c.computed;void 0===h&&(h={});var p=c.components;void 0===p&&(p={});var v={$data:{},$props:{},$options:{},components:{},computed:{},methods:{}};Object.keys(n).forEach((function(t){void 0===a[t]&&(v.$data[t]=n[t])})),Object.keys(i).forEach((function(t){void 0===l[t]&&(v.$props[t]=i[t])})),Object.keys(u).forEach((function(t){void 0===f[t]&&(v.methods[t]=u[t])})),Object.keys(s).forEach((function(t){void 0===h[t]&&(v.computed[t]=s[t])})),Object.keys(o).forEach((function(t){void 0===p[t]&&(v.components[t]=o[t])}));var m=Object.keys(v.methods||{}),g=Object.keys(v.$data||{}),_=Object.keys(v.$props||{}),y=Object.keys(this.templateProps),w=g.concat(_).concat(m).concat(y),b=(E=e,x={},m.forEach((function(t){return d(E,x,t)})),x),C=function(t){var e={};return t.forEach((function(t){t&&Object.getOwnPropertyNames(t).forEach((function(n){return d(t,e,n)}))})),e}([v.$data,v.$props,b,this.templateProps]);return t({template:this.template||"<div></div>",props:w,computed:v.computed,components:v.components,provide:this.$parent._provided},{props:C})}var E,x}};function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}i(3371);var v=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34}),m=Object.freeze({hover:"cds-state-hover",focus:"cds-state-focus",active:"cds-state-active",visited:"cds-state-visited",disabled:"cds-state-disabled",checked:"cds-state-checked",indeterminate:"cds-state-indeterminate",invalid:"cds-state-invalid",empty:"cds-state-empty",loading:"cds-state-loading"}),g=function(){};i(9253),i(7268);function _(t,e,n,i,r,o,s,u){var a,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=a):r&&(a=u?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(l.functional){l._injectStyles=a;var c=l.render;l.render=function(t,e){return a.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:l}}var y=_({name:"CdsLoading",props:{active:{type:Boolean,default:!0,description:"Показан/скрыт"},overlay:{type:Boolean,description:"Отображать заглушку"},small:{type:Boolean,description:"Использовать маленькую вариацию"},fixed:{type:Boolean,default:!1,description:"Загрузчик фиксирован относительно контейнера"},ariaValuetext:{type:String,default:"Загрузка",description:"Текстовое описание загрузчика"}},computed:{overlayClasses:function(){return{"cds-loading__overlay":this.overlay,"cds-loading__fixed":this.fixed}},loadingClasses:function(){return{"cds-loading":!0,"cds-loading__small":this.small,"cds-loading__fixed":this.fixed}},listeners:function(){return this.$listeners}},watch:{active:function(t){this.$emit("toggle",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.active?[t.overlay?n("div",{class:t.overlayClasses},[n("div",t._g({class:t.loadingClasses,attrs:{role:"progressbar","aria-valuetext":t.ariaValuetext}},t.listeners),[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("circle",{attrs:{cx:"12",cy:"12",r:"10.5"}})])])]):n("div",t._g({class:t.loadingClasses,attrs:{role:"progressbar","aria-valuetext":t.ariaValuetext}},t.listeners),[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("circle",{attrs:{cx:"12",cy:"12",r:"10.5"}})])])]:t._e()],2)}),[],!1,null,null,null).exports;y.install=function(t){t.component(y.name,y)},"undefined"!=typeof window&&window.Vue&&y.install(window.Vue);var w=y,b=(i(4916),i(4723),i(4603),i(8450),i(8386),i(9600),i(2222),function(t,e,n){var i=e.match(new RegExp("(".concat(t.join("|"),")")));return i||console.warn("".concat(n," должно быть одно из следующих: ").concat(t.join(", "))),i}),C=i(7159);function E(t,e){return e+(t?(0,C.upperCaseFirst)(t):"")}i(6699),i(2023);function x(t,e){return[(0,C.upperCaseFirst)((0,C.camelCase)(t)),(0,C.GL)(t)].includes(e)}i(8862);i(5306),i(4678);var A=function(t){return t.includes("rem")&&(t=t.replace("rem","")),t*parseFloat(getComputedStyle(document.documentElement).fontSize)},D={appearance:["primary","secondary","transparent"],size:["md","lg","xl"]},k=_({name:"CdsButton",components:{CdsLoading:w},props:{text:{type:String,required:!1,default:"",description:"Текст кнопки"},appearance:{type:String,required:!1,default:"primary",available:D.appearance,validator:function(t){return b(D.appearance,t,"Button.appearance")},description:"Варианты кнопки"},size:{type:String,default:"md",available:D.size,validator:function(t){return b(D.size,t,"Button.size")},description:"Размер кнопки"},iconOnly:{type:Boolean,default:!1,description:"Кнопка иконка"},iconAfter:{type:Boolean,default:!1,description:"Иконка после текста"},loading:{type:Boolean,default:!1,description:"Состояние загрузки"},disabled:{type:Boolean,description:"Заблокированное состояние кнопки"},inverse:{type:Boolean,default:!1,description:"Инверсивная кнопка"},to:{type:String,default:"",description:"Ссылка для кнопки. Включает режим ссылки"},useRouter:{type:Boolean,default:!0,description:"Используется ли vue router для ссылки"},blank:{type:Boolean,default:!1,description:"Открыть ли ссылку в новой вкладке"}},computed:{classes:function(){var t;return c(t={"cds-button":!0},"cds-button__".concat(this.appearance),!0),c(t,"cds-button__size--".concat(this.size),this.size),c(t,"cds-button__icon",this.iconOnly),c(t,"cds-button__icon-after",this.iconAfter),c(t,"cds-button__inverse",this.inverse),c(t,m.disabled,this.disabled),c(t,m.loading,this.loading),t},hasSlotData:function(){return!!this.$slots.default},events:function(){return p({},this.$listeners)},tag:function(){return this.to?this.useRouter?"router-link":"a":"button"},type:function(){return this.to?null:"button"},linkHref:function(){return this.to?this.to:null},routerTo:function(){return this.to&&this.useRouter?this.to:null},target:function(){return this.blank?"_blank":null},hasText:function(){return this.text}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,t._g({tag:"component",class:t.classes,attrs:{type:t.type,to:t.routerTo,href:t.linkHref,target:t.target,disabled:t.disabled||t.loading}},t.events),[t._t("icon"),t._v(" "),t.hasSlotData||t.hasText?n("span",{staticClass:"cds-button__text"},[t.hasText?[t._v("\n "+t._s(t.text)+"\n ")]:t._t("default")],2):t._e(),t._v(" "),t.loading?n("cds-loading",{attrs:{active:t.loading,small:""}}):t._e()],2)}),[],!1,null,null,null).exports,F=_({name:"CdsButtonSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"cds-button cds-button__skeleton",attrs:{type:"button",disabled:""}},[e("cds-skeleton",{attrs:{width:"140px",height:"32px"}})],1)}),[],!1,null,null,null).exports;k.install=function(t){t.component(k.name,k)},F.install=function(t){t.component(F.name,F)},"undefined"!=typeof window&&window.Vue&&(k.install(window.Vue),F.install(window.Vue));var S=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 13A6 6 0 1 0 8 2a6 6 0 0 0 0 12zM7.5 4h1v5.5h-1V4zm.5 6.5A.75.75 0 1 1 8 12a.75.75 0 0 1 0-1.5z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),B=S.exports,$=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm.5 2v3.5H12v1H8.5V12h-1V8.499L4 8.5v-1l3.5-.001V4h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),I=$.exports,O=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 15 3 9.743 3.707 9 7.5 12.988V1h1v11.988L12.293 9l.707.743z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),L=O.exports,T=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zM7 3h2v6H7V3zm1 7.25a1 1 0 1 1 0 2 1 1 0 0 1 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),M=T.exports,V=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m12.743 2.55.707.707L4.707 12 10 12v1H3V6h1v5.292z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),R=V.exports,H=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m12.743 13 .707-.707L4.707 3.55H10v-1H3v7h1V4.257z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),z=H.exports,P=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m1 8 5.257-5L7 3.707 3.012 7.5H15v1H3.012L7 12.293 6.257 13z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),j=P.exports,N=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3.707 2.55 3 3.257 11.743 12 6.45 12v1h7V6h-1v5.292z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),U=N.exports,K=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m15 8-5.257 5L9 12.293 12.988 8.5H1v-1h11.988L9 3.707 9.743 3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),q=K.exports,W=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m8 1 5 5.257-.707.743L8.5 3.012V15h-1V3.012L3.707 7 3 6.257z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Y=W.exports,G=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3.707 13 3 12.293l8.743-8.742H6.45v-1h7v7h-1V4.257z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),J=G.exports,Z=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m4.5 2 3 3.2-.75.8L5 4.134V14H4V4.133L2.25 6l-.75-.8 3-3.2zM12 2l-.001 9.867L13.75 10l.75.8-3 3.2-3-3.2.75-.8 1.749 1.865L11 2h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),X=Z.exports,Q=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11 2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h1v-.5a.5.5 0 0 1 1 0V2h4v-.5a.5.5 0 1 1 1 0V2zm-1 1H6v.5a.5.5 0 0 1-1 0V3H4a1 1 0 0 0-1 1v1h10v1H3v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-1v.5a.5.5 0 1 1-1 0V3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),tt=Q.exports,et=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M12 9H8.5v2h1v3h-3v-3h1V9H4v2h1v3H2v-3h1V8h4.5V6H6V2h4v4H8.5v2H13v3h1v3h-3v-3h1V9zm-3.5 3h-1v1h1v-1zm4.5 0h-1v1h1v-1zm-9 0H3v1h1v-1zm5-9H7v2h2V3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),nt=et.exports,it=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M13.5 3.5a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h11zm0 3h-11v5h11v-5zm-5 3.5v1h-5v-1h5zm5-5.5h-11v1h11v-1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),rt=it.exports,ot=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 13A6 6 0 1 0 8 2a6 6 0 0 0 0 12zM5.188 8.176l2.147 1.916 3.916-4.124.725.688-4.583 4.827-2.87-2.56.665-.747z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),st=ot.exports,ut=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3 5.743 3.707 5 8 9.513 12.293 5l.707.743L8 11z"}})])}),[],!1,null,null,null),at=ut.exports,lt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11 3.725 10.301 3 5 8.002 10.301 13l.699-.725-4.533-4.273z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ct=lt.exports,dt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3 10.257 8 5l5 5.257-.707.743L8 6.487 3.707 11z"}})])}),[],!1,null,null,null),ft=dt.exports,ht=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14 12v2h-2v-2h2zm-5 0v2H7v-2h2zm-5 0v2H2v-2h2zm0-5v2H2V7h2zm10 0v2h-2V7h2zM9 7v2H7V7h2zM4 2v2H2V2h2zm10 0v2h-2V2h2zM9 2v2H7V2h2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),pt=ht.exports,vt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm0 2v4h4v1H7V4h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),mt=vt.exports,gt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14 2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-1.001L13 13.793a.5.5 0 0 1-.095.293l-.051.06a.5.5 0 0 1-.638.058l-.07-.058L9 11H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h12zm0 1H2v7h7.413L12 12.59 11.999 10H14V3zM9 7v1H4V7h5zm3-2v1H4V5h8z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),_t=gt.exports,yt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M1 15v-1h1V2h7v2h5v10h1v1H1zM8 3H3v11h5V3zm5 2H9v1h3v1H9v1h3v1H9v1h3v1H9v1h3v1H9v1h4V5zm-8 7v1H4v-1h1zm2 0v1H6v-1h1zm-2-2v1H4v-1h1zm2 0v1H6v-1h1zM5 8v1H4V8h1zm2 0v1H6V8h1zM5 6v1H4V6h1zm2 0v1H6V6h1zM4 4h1v1H4V4zm2 0h1v1H6V4z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),wt=yt.exports,bt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M4 9v5H3V9h1zm3-7v12H6V2h1zm3 2v10H9V4h1zm3 3v7h-1V7h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Ct=bt.exports,Et=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M13.75 5c.69 0 1.25.56 1.25 1.25v7.5c0 .69-.56 1.25-1.25 1.25h-7.5C5.56 15 5 14.44 5 13.75v-7.5C5 5.56 5.56 5 6.25 5h7.5zM14 6H6v8h8V6zM9.75 1c.69 0 1.25.56 1.25 1.25V4h-1V2H2v8h2v1H2.25C1.56 11 1 10.44 1 9.75v-7.5C1 1.56 1.56 1 2.25 1h7.5z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),xt=Et.exports,At=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M15 9v4H1V9h14zm-1 1H2v2h12v-2zm1-7v4H1V3h14zm-1 1H2v2h12V4z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Dt=At.exports,kt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M10 2H6v1h4V2zm2 2H4v10h8V4zm-2 1v8H9V5h1zM7 5v8H6V5h1zm7-2v1h-1v11H3V4H2V3h3V1h6v2h3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Ft=kt.exports,St=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M1.034 2.548a.5.5 0 0 1 .41-.492l.09-.008h2.96a.5.5 0 0 1 .392.188l.05.077.928 1.739h8.62a.5.5 0 0 1 .491.41l.008.09v9a.5.5 0 0 1-.41.492l-.09.008H1.533a.5.5 0 0 1-.491-.41l-.008-.09V2.548zm.999 10.504h11.95v-8H5.249v-.029L4.195 3.048H2.033v10.004z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),Bt=St.exports,$t=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11 8v5.156l2.364-2.363.707.707-3.535 3.536L7 11.5l.707-.707L10 13.086V8h1zM9 1l3 3v3h-1V5H8V2H3v12h3v1H2V1h7zm0 1.5v1.499L10.5 4 9 2.5z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),It=$t.exports,Ot=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M13 15H3V1h7.018L13 3.991V15zM9 2H4v12h8V5H9V2zm1 .397V4h1.597L10 2.397z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),Lt=Ot.exports,Tt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m2 12-.001 2H14v-2h1v3H1v-3h1zM8.5 1v8.156l2.364-2.363.707.707-3.535 3.536L4.5 7.5l.707-.707L7.5 9.086V1h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Mt=Tt.exports,Vt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm1 3.172L11.828 8 9 10.828l-.707-.707L9.914 8.5H4v-1h5.914L8.293 5.879 9 5.172z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Rt=Vt.exports,Ht=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m12.88 1.364 1.793 1.793a1 1 0 0 1 .083 1.32l-.083.094L4.207 14.96H1v-3.206L11.466 1.364c.33-.33.834-.38 1.218-.153l.101.07.095.083zM3.25 10.92 2 12.169v1.793h1.793l1.252-1.249-1.794-1.793zm10.228-7.717-8.272 8.258.546.546 8.284-8.246-.558-.558zm-1.236-1.235L3.96 10.215l.539.539 8.272-8.259-.528-.527z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),zt=Ht.exports,Pt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zM5.172 3.757 3.757 5.172l7.071 7.07 1.415-1.414-7.071-7.07z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),jt=Pt.exports,Nt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M1 8c0-3.85 3.15-7 7-7s7 3.15 7 7-3.15 7-7 7-7-3.15-7-7zm11.55 3.85C13.5 10.8 14 9.4 14 8c0-3.3-2.7-6-6-6-1.4 0-2.8.5-3.85 1.45l8.4 8.4zm-8.45.75C5.2 13.5 6.6 14 8 14s2.8-.5 3.85-1.4L3.4 4.15c-2.1 2.5-1.8 6.3.7 8.45z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),Ut=Nt.exports,Kt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M7 2v1H3v10h10V9h1v4.143a.857.857 0 0 1-.857.857H2.857A.857.857 0 0 1 2 13.143V2.857C2 2.384 2.384 2 2.857 2H7zm8-1v6.116h-1.036V2.767L7.732 9 7 8.268l6.232-6.233H8.884V1H15z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),qt=Kt.exports,Wt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3 2a1 1 0 0 0-.993.883L2 13a1 1 0 0 0 .883.993l3.99.007V9.955H4.96V7.842h1.914V6.098c-.036-.914.297-1.667 1-2.256.702-.589 1.875-.743 3.52-.462v1.83l-.828.016a7.33 7.33 0 0 0-.773.09c-.12.04-.321.132-.454.3-.139.176-.19.447-.202.622l.024 1.55h2.233l-.482 2.167H9.134L9.158 14H13a1 1 0 0 0 .993-.883L14 3a1 1 0 0 0-.883-.993L3 2z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),Yt=Wt.exports,Gt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h10zM3 2a1 1 0 0 0-.993.883L2 13a1 1 0 0 0 .883.993l3.99.007V9.955H4.96V7.842h1.914V6.098c-.036-.914.297-1.667 1-2.256.702-.589 1.875-.743 3.52-.462v1.83l-.828.016a7.33 7.33 0 0 0-.773.09c-.12.04-.321.132-.454.3-.139.176-.19.447-.202.622l.024 1.55h2.233l-.482 2.167H9.134L9.158 14H13a1 1 0 0 0 .993-.883L14 3a1 1 0 0 0-.883-.993L3 2z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),Jt=Gt.exports,Zt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{"fill-rule":"nonzero",d:"m13.5 2-1.865 3.5L13.5 9h-10v5h-1V2z"}})])}),[],!1,null,null,null),Xt=Zt.exports,Qt=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M5 11a2 2 0 0 1 1.937 1.5H15v1l-8.063.001a2 2 0 0 1-3.874 0L1 13.5v-1h2.063A2 2 0 0 1 5 11zm0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm6-6a2 2 0 0 1 1.937 1.5H15v1l-2.063.001a2 2 0 0 1-3.874 0L1 8.5v-1h8.063A2 2 0 0 1 11 6zm0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM5 1a2 2 0 0 1 1.937 1.5H15v1l-8.063.001a2 2 0 0 1-3.874 0L1 3.5v-1h2.063A2 2 0 0 1 5 1zm0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),te=Qt.exports,ee=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a6.992 6.992 0 0 1 7 7 7 7 0 1 1-7-7zM4.85 11.344c-.523.168-.772.403-.95.641l-.111.158-.052.079A5.979 5.979 0 0 0 8 14c1.12 0 2.167-.307 3.064-.84l.054.049c-.677-.65-1.486-.926-2.873-1.061l-.285-.026-.148-.015-.151-.026-.168-.037-.311-.086-.265-.082-1.009-.322-.313-.09c-.355-.125-.603-.165-.745-.12zM8 2a6.034 6.034 0 0 0-1.437.173c.468.85.685 1.718.417 2.1-.28.4-.565.75-.913 1.044-.675.57-1.41.662-1.872-.104-.243-.404-.25-.798-.12-1.489l.062-.315A5.987 5.987 0 0 0 2 8c0 1.283.403 2.473 1.09 3.448l-.027.03c.309-.366.745-.705 1.31-1.012.342-.186.721-.176 1.398.006l.192.053.397.121.532.172.658.205.175.047.141.031.12.019.339.03c1.661.162 2.688.528 3.566 1.415a5.986 5.986 0 0 0 1.85-2.818l-.115-.303-.128-.304-.118-.251a4.786 4.786 0 0 0-.053-.105c-.064-.151-.109-.227-.134-.227-.019 0-.039.022-.06.066l-.175.382-.104.244-.198.485-.152.35c-.24.523-.443.787-.805.83l-.114.007-.583.01c-1.338.013-1.924-.298-2.352-1.6l-.09-.286c-.07-.21-.119-.272-.181-.286l-.033-.003h-.05l-.047.005-.09.022-.09.031-.698.279c-.677.276-1.186.41-1.774.41-.841 0-1.204-.689-.88-1.428.25-.57.543-.865 1.35-1.255l.262-.118c.282-.135.668-.375 1.042-.974.056-.109.1-.229.116-.374l.006-.114c.063-1.791.99-2.773 2.609-2.663l.183.016.427.055A5.956 5.956 0 0 0 8 2zm.5 3.388c-.021.281-.124.482-.195.6l-.056.087c-.452.723-.755 1-1.08 1.192l-.166.09-.18.09-.177.09-.213.125a5.56 5.56 0 0 0-.108.068l-.213.144c-.343.247-.61.51-.494.628.1.102.347.05.614-.041l.231-.086.326-.127.822-.331.192-.066c.199-.062.372-.095.543-.095.592 0 .99.385 1.205 1.105.241.812.403 1.029 1.04 1.066l.135.006h.273c.273 0 .435-.018.484-.053a.208.208 0 0 0 .072-.102l.052-.138.048-.108.367-.884c.418-.97.697-1.285 1.333-1.135.231.055.457.189.644.404L14 8a5.98 5.98 0 0 0-1.67-4.153l-.936-.102-.693-.084-.538-.076c-1.17-.134-1.54.208-1.663 1.803zm-2.898-2.89-.037.017c-.106.047-.21.097-.313.15v.071a4.53 4.53 0 0 1-.1.714l-.09.44c-.086.454-.086.681-.01.807l.032.047c.035.036.08.036.197-.06l.142-.131c.043-.043.09-.083.14-.12l.225-.165c.194-.148.348-.318.29-.642-.047-.262-.082-.38-.122-.466l-.15-.28a6.357 6.357 0 0 0-.204-.383z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ne=ee.exports,ie=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm1 5H7v6h2V6zm0-3H7v2h2V3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),re=ie.exports,oe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M12.002 4.793C13.935 4.793 15 6.343 15 8c0 1.657-1.065 3.274-2.998 3.274-1.127 0-2.461-.835-4.002-2.505-1.54 1.67-2.875 2.505-4.002 2.505C2.065 11.274 1 9.657 1 8s1.065-3.207 2.998-3.207c1.127 0 2.461.818 4.002 2.453 1.54-1.635 2.875-2.453 4.002-2.453zm0 1-.117.005c-.75.06-1.76.695-2.978 1.946l-.237.25.005.006-.011.012.238.258c1.215 1.279 2.224 1.93 2.97 1.998l.13.006C13.198 10.274 14 9.309 14 8c0-1.232-.718-2.126-1.842-2.201l-.156-.006zm-8.004 0C2.785 5.793 2 6.713 2 8c0 1.309.802 2.274 1.998 2.274.757 0 1.814-.65 3.1-2.004l.237-.258L7.325 8l.005-.006-.02-.022c-1.314-1.403-2.401-2.11-3.195-2.174l-.117-.005z","fill-rule":"nonzero"}})])}),[],!1,null,null,null),se=oe.exports,ue=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm.668 4.06V12h-.972V6.06h.972zm0-2.412v.972h-.972v-.972h.972z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ae=ue.exports,le=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m7.895 5.895.701.703-1.739 1.738-.1.105c-.894.967-1.013 2.318-.265 3.067.747.747 2.088.627 3.052-.25l.105-.101 3.494-3.493.1-.105c.894-.967 1.013-2.318.265-3.067-.46-.459-1.142-.59-1.824-.42l-.791-.792c1.16-.495 2.467-.339 3.316.51 1.127 1.128 1.035 3.06-.183 4.388l-.117.123-3.608 3.608c-1.329 1.328-3.348 1.463-4.51.3-1.127-1.127-1.035-3.06.183-4.387l.117-.123 1.804-1.804zM5.7 4.091c1.329-1.328 3.348-1.463 4.51-.3 1.127 1.127 1.035 3.06-.183 4.387l-.117.123-1.805 1.804-.702-.701 1.74-1.74.101-.105c.894-.967 1.013-2.318.265-3.067-.747-.747-2.088-.627-3.052.25l-.105.101-3.494 3.493-.1.105c-.894.967-1.013 2.318-.265 3.067.46.458 1.142.59 1.823.42l.791.792c-1.16.495-2.466.338-3.315-.51-1.127-1.128-1.035-3.06.183-4.388l.117-.123L5.7 4.091z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),ce=le.exports,de=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11 8a3 3 0 0 1 2.445 4.738l2.176 2.176-.707.707-2.176-2.176A3 3 0 1 1 11 8zm-3.874 4c.092.356.23.692.41 1.001L4 13v-1h3.126zM2 12v1H1v-1h1zm9-3a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM7.535 9c-.179.31-.318.645-.409 1H4V9h3.535zM2 9v1H1V9h1zm13-3v1H4V6h11zM2 6v1H1V6h1zm13-3v1H4V3h11zM2 3v1H1V3h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),fe=de.exports,he=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm2.927 4.58L7.318 9.229 5.495 7.7l-.973 1.223 2.87 2.56 4.584-4.827-1.049-1.075z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),pe=he.exports,ve=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M15 12v1H4v-1h11zM2 12v1H1v-1h1zm13-3v1H4V9h11zM2 9v1H1V9h1zm13-3v1H4V6h11zM2 6v1H1V6h1zm13-3v1H4V3h11zM2 3v1H1V3h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null),me=ve.exports,ge=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M15 8a7 7 0 1 1-7-7v2a5 5 0 1 0 3.536 1.464L12.95 3.05A7 7 0 0 1 15 8z"}})])}),[],!1,null,null,null),_e=ge.exports,ye=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 2a3 3 0 0 1 3 3v2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1V5a3 3 0 0 1 3-3zm4 6H4v6h8V8zm-4 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-7a2 2 0 0 0-1.995 1.85L6 5v2h4V5a2 2 0 0 0-1.85-1.995L8 3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,we=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m5 12.275.699.725L11 7.998 5.699 3 5 3.725l4.533 4.273z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,be=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M7 11v2H5v-2h2zm4 0v2H9v-2h2zM7 7v2H5V7h2zm4 0v2H9V7h2zM7 3v2H5V3h2zm4 0v2H9V3h2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ce=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M16 12v2H0v-2h16zm0-5v2H0V7h16zm0-5v2H0V2h16z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ee=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M2 8h12v1H2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,xe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M4 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ae=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M2 12.5v-2L3 9V7c0-2.817 1.973-4.752 4.5-4.978V1h1v1.025a5 5 0 0 1 4.495 4.758L13 7v2l1 1.5v2h-3.5a2.5 2.5 0 1 1-5 0H2zm4.5 0a1.5 1.5 0 0 0 3 0h-3zM8 3a4 4 0 0 0-3.995 3.8L4 7v2.3l-1 1.467v.733h10v-.733L12 9.3V7l-.005-.2A4 4 0 0 0 8 3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,De=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,ke=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a5 5 0 0 1 5 5c0 1.418-.89 3.16-1.975 4.824l-.369.552-.187.272-.38.536-.415.571-.409.55-.94 1.254L8 15l-.324-.436-1.142-1.517-.413-.56-.416-.58-.375-.542C4.09 9.545 3 7.57 3 6a5 5 0 0 1 5-5zm0 1a4 4 0 0 0-4 4c0 .825.42 1.955 1.22 3.329.353.606.77 1.244 1.264 1.946l.446.621.529.714.538.719 1.08-1.452.182-.25c.606-.843 1.1-1.586 1.509-2.285C11.576 7.962 12 6.83 12 6a4 4 0 0 0-4-4zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Fe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m11.818 1.546 2.636 2.636a1.864 1.864 0 0 1 0 2.636l-2.636 2.636a1.864 1.864 0 0 1-2.536.093l-1.45 1.452L7 11v.831L5.83 13 5 13v.83L3.83 15H1.002L1 12l5.374-5.38a1.864 1.864 0 0 1 .172-2.438l2.636-2.636a1.864 1.864 0 0 1 2.636 0zM7.068 7.34l-5.069 5.073.002 1.585h1.414l.584-.584.002-1.414 1.414-.002.584-.584.002-1.414 1.415-.002 1.156-1.154-1.504-1.504zm2.854-5.208-.081.072-2.636 2.636a.932.932 0 0 0-.072 1.237l.072.081 2.636 2.636a.932.932 0 0 0 1.237.072l.081-.072 2.636-2.636a.932.932 0 0 0 .072-1.237l-.072-.081-2.636-2.636a.932.932 0 0 0-1.237-.072zm1.237 1.39 1.318 1.318a.466.466 0 0 1-.659.659L10.5 4.182a.466.466 0 0 1 .659-.659z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Se=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M9.506 2.432a.5.5 0 0 1 .779-.333l.065.054 3.546 3.477a.5.5 0 0 1-.162.82l-.086.027-1.719.36L9.48 9.211v2.869a.501.501 0 0 1-.72.45l-.071-.043-.066-.057-1.63-1.662-2.645 2.647a.5.5 0 0 1-.275.14l-.078.007H2.992a.5.5 0 0 1-.492-.41l-.008-.09v-.982a.5.5 0 0 1 .094-.292l.05-.06L5.298 9.04l-1.66-1.691a.5.5 0 0 1 .272-.844l.086-.007h2.8l2.446-2.401.265-1.665zM5.997 9.754l-2.505 2.531v.276h.295l2.503-2.506-.122-.127-.17-.174zm4.344-6.209-.138.873a.5.5 0 0 1-.091.218l-.053.06-2.709 2.66a.5.5 0 0 1-.253.133L7 7.499l-1.815-.001 1.094 1.113.048.035.045.042.575.606 1.533 1.562V9a.5.5 0 0 1 .057-.23l.042-.068.053-.061 2.704-2.622a.5.5 0 0 1 .156-.102l.09-.028.946-.199-2.187-2.145z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,Be=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M10 1v2H9V2H3v12h6v-1h1v2H2V1h8zm.536 3.5 3.535 3.536-3.535 3.535-.708-.707 2.365-2.365-7.157.001v-1l7.085-.001-2.293-2.292.708-.707z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,$e=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14.93 7A7 7 0 0 1 3 12.898V15H2v-4h4v1l-2.471.001A6 6 0 0 0 13.917 7h1.012zm-1.001-6v4h-4V4h2.47A6 6 0 0 0 2.012 9.001L1 9a7 7 0 0 1 11.93-5.898V1h1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ie=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14 1v14H6v-2h1v1h6V2H7v1H6V1h8zM7.536 4.5l3.535 3.536-3.535 3.535-.708-.707 2.365-2.365-7.157.001v-1l7.085-.001-2.293-2.292.708-.707z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Oe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m8.01 7.345 3.324-3.324.665.665L8.675 8.01l3.304 3.304-.665.665L8.01 8.675 4.685 12l-.665-.665L7.345 8.01 4 4.665 4.665 4 8.01 7.345z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Le=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Te=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M5.95 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm6 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2zM2.5 2h1.285l.083.007a.5.5 0 0 1 .552.324l.023.087.268 1.599c.063-.012.122-.017.181-.017h8.877a1 1 0 0 1 .987 1.164l-.667 4a1 1 0 0 1-.986.836H5.707l.167 1h6.576a.5.5 0 0 1 .09.992l-.09.008-6.918-.007-.069.007H5.45a.503.503 0 0 1-.47-.33l-.023-.088L3.526 3H2.5a.5.5 0 1 1 0-1zm11.27 3H4.891l.718 4h7.493l.666-4z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Me=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M12 8v5.156l2.364-2.363.707.707-3.535 3.536L8 11.5l.707-.707L11 13.086V8h1zM9.5 1a.5.5 0 0 1 .492.41L10 1.5v.502h1.002a2 2 0 0 1 1.994 1.852l.006.149v2.995h-1L12 6H1.999L2 12.026a1 1 0 0 0 .883.993l.117.007h4v1H3a2 2 0 0 1-1.995-1.85L1 12.025V4.003a2 2 0 0 1 1.85-1.995L3 2.003l1-.001V1.5a.5.5 0 0 1 .992-.09L5 1.5v.502h4V1.5a.5.5 0 0 1 .5-.5zM9 3.002H5V3.5a.5.5 0 0 1-.992.09L4 3.5v-.498H3a1 1 0 0 0-.993.884L2 4.003 1.999 5h10.002v-.997a1 1 0 0 0-.882-.993l-.117-.007L10 3.002V3.5a.5.5 0 0 1-.992.09L9 3.5v-.498z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ve=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m6.066 5.938-4.448.092-.086.008a.5.5 0 0 0-.206.89L4.87 9.616l-1.288 4.26-.018.084a.5.5 0 0 0 .782.47L8 11.89l3.653 2.542.074.043a.5.5 0 0 0 .69-.598l-1.289-4.26 3.546-2.688.064-.057a.5.5 0 0 0-.356-.841l-4.449-.092-1.46-4.202a.5.5 0 0 0-.945 0L6.066 5.938zM8 3.423l1.103 3.173.036.08a.5.5 0 0 0 .426.256L12.924 7l-2.677 2.03-.066.06a.5.5 0 0 0-.11.483l.972 3.215-2.757-1.918-.077-.044a.5.5 0 0 0-.495.044l-2.758 1.918.974-3.215.018-.087a.5.5 0 0 0-.195-.456L3.075 7l3.36-.068a.5.5 0 0 0 .462-.336L8 3.423z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,Re=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M12 2v3h2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-2v2H4v-2H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2V2h8zm-1 7.01H5.02V12H5v1h6V9.01zM14 6H2v5h2V8h8l.002.848.006.046.007.116V11H14V6zm-3-3H5v2h6V3z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,He=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14.76 2.158c.2.172.276.493.224.96l-2.12 9.961c-.105.495-.293.787-.564.876-.271.09-.6.045-.984-.134l-3.723-2.746c-.517-.36-.776-.67-.776-.932 0-.261.203-.551.608-.87l4.02-4.027c.04-.116.028-.21-.033-.28-.06-.071-.176-.071-.345 0L5.37 8.72c-.239.178-.447.296-.626.354-.178.058-.399.058-.661 0l-2.513-.878C1.19 8.066 1 7.86 1 7.581c0-.28.14-.493.417-.641l12.431-4.876c.407-.11.71-.078.912.094z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,ze=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1-5 11.898V15H2v-4h4v1l-2.471.001A6 6 0 1 0 8 2V1zm0 3v4.593l2.536 2.535-.708.708L7 9.007 7.007 9H7V4h1zM1.037 7.257l.995.104a6.055 6.055 0 0 0 .03 1.496l.037.219-.984.18L1.073 9a7.1 7.1 0 0 1-.06-1.442l.024-.3zm1.525-3.674.776.63c-.29.357-.537.746-.737 1.158l-.142.314-.923-.385a7.01 7.01 0 0 1 .822-1.453l.204-.264zm3.297-2.26.305.953c-.438.14-.857.33-1.25.566l-.289.186-.563-.827c.456-.31.951-.569 1.478-.766l.32-.111z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Pe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M11.992 1v1l-.117.007a1 1 0 0 0-.883.993v2l-.005.157a2.013 2.013 0 0 1-.935 1.57l-.176.103c-.498.302-.882.673-.882 1.17l.001.057c.028.469.402.822.881 1.113l.117.068c.534.303.915.868.987 1.531l.007.074.005.157v2l.007.117a1 1 0 0 0 .764.857l.112.02.117.006v1H3.997v-1l.117-.007a1 1 0 0 0 .876-.876L4.997 13v-2l.005-.157.007-.074a2.015 2.015 0 0 1 .856-1.45l.13-.08.118-.07c.43-.26.777-.573.862-.975l.018-.137L6.995 8c0-.452-.318-.8-.75-1.085l-.132-.085-.176-.103a2.005 2.005 0 0 1-.916-1.405l-.019-.165L4.997 5V3a1 1 0 0 0-.883-.993L3.997 2V1h7.995zM7.678 13.105l-1.812.606c-.038.1-.085.198-.138.29h4.533c-.053-.092-.1-.19-.138-.29l-1.813-.606a.999.999 0 0 0-.632 0zM7.994 8v.074a2 2 0 0 1-.999 1.658c-.537.312-.852.6-.956.972l-.027.127-.007.052L6 11l-.001 1.666 1.68-.56a.999.999 0 0 1 .632 0l1.68.56V11l-.006-.117-.007-.052c-.063-.434-.386-.753-.983-1.099a2 2 0 0 1-.998-1.658L7.994 8zM9.99 5H6l.006.117.007.052c.063.434.386.753.983 1.099a2 2 0 0 1 .992 1.563L7.994 8a2 2 0 0 1 1-1.732c.597-.346.92-.665.983-1.099l.007-.052L9.99 5zm.27-3H5.728c.17.294.268.636.268 1h.003l-.001 1H9.99V3h.003c0-.364.097-.706.267-1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,je=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M10.886 5.71a5.216 5.216 0 0 1-.44 1.854c.084.059.163.127.239.202l3.758 3.759a2 2 0 0 1 0 2.828l-.099.1a2 2 0 0 1-2.828 0l-3.76-3.76a2.015 2.015 0 0 1-.206-.242 5.191 5.191 0 0 1-1.84.435c-2.728.13-4.834-1.977-4.704-4.705a5.291 5.291 0 0 1 .765-2.48L4.63 6.559a1 1 0 0 0 1.32.083l.094-.083.782-.782a1 1 0 0 0 .083-1.32l-.083-.094L4.043 1.58a5.249 5.249 0 0 1 2.138-.575c2.728-.13 4.835 1.976 4.705 4.705zM6.422 2l-.193.005c-.086.004-.17.01-.256.02l-.064.008 1.665 1.668.124.142a2 2 0 0 1-.047 2.51l-.119.131-.827.824-.142.123a2 2 0 0 1-2.51-.046l-.131-.12-1.807-1.807-.052.247a4.132 4.132 0 0 0-.037.26l-.021.264c-.102 2.139 1.519 3.76 3.658 3.658.425-.02.844-.107 1.246-.255l.24-.096.738-.324.473.652.05.063.054.06 3.759 3.758a1 1 0 0 0 1.32.083l.094-.083.1-.099a1 1 0 0 0 .082-1.32l-.083-.094-3.759-3.759-.055-.051-.055-.043-.664-.472.328-.746c.21-.479.332-.985.356-1.498C9.986 3.59 8.465 2.001 6.422 2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ne=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M6 12a2 2 0 1 1-4 0h-.5a.5.5 0 0 1-.492-.41L1 11.5v-9l.008-.09L1 2.498a.5.5 0 0 1 .41-.492l.09-.008h9a.5.5 0 0 1 .492.41l.008.09V3h1.673a.5.5 0 0 1 .393.191l.05.078 1.827 3.499a.5.5 0 0 1 .05.151L15 7V11.5a.5.5 0 0 1-.41.492L14.5 12h-2a2 2 0 1 1-4 0H6zm-2-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm6.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM10 2.998H2v8.001h.268a2 2 0 0 1 3.464 0h3.036A2.004 2.004 0 0 1 10 10.064V2.998zm4 5.001h-3l.001 2.064c.525.136.966.479 1.231.937H14V8zM12.369 4H11v3h2.936l-1.567-3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ue=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 2a3 3 0 0 1 3 3h-1a2 2 0 0 0-1.85-1.995L8 3a2 2 0 0 0-1.995 1.85L6 5v2h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h1V5a3 3 0 0 1 3-3zm4 6H4v6h8V8zm-4 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ke=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m6.066 5.938-4.448.092-.086.008a.5.5 0 0 0-.206.89L4.87 9.616l-1.288 4.26-.018.084a.5.5 0 0 0 .782.47L8 11.89l3.653 2.542.074.043a.5.5 0 0 0 .69-.598l-1.289-4.26 3.546-2.688.064-.057a.5.5 0 0 0-.356-.841l-4.449-.092-1.46-4.202a.5.5 0 0 0-.945 0L6.066 5.938z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,qe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 10.841a2.84 2.84 0 1 1 0-5.68 2.84 2.84 0 0 1 0 5.68zm0-.786a2.054 2.054 0 1 0 0-4.108 2.054 2.054 0 0 0 0 4.108zm4.644.463.94 1.223c.109.14.11.336.003.477-.39.517-.851.977-1.367 1.368a.393.393 0 0 1-.477-.002l-1.224-.94a5.248 5.248 0 0 1-1.015.421l-.2 1.53a.393.393 0 0 1-.336.338c-.655.091-1.278.091-1.933.001a.393.393 0 0 1-.336-.339l-.2-1.528a5.249 5.249 0 0 1-1.017-.421l-1.224.94a.393.393 0 0 1-.477.002 7.098 7.098 0 0 1-1.367-1.366.393.393 0 0 1 .002-.477l.94-1.224a5.248 5.248 0 0 1-.422-1.018l-1.53-.2a.393.393 0 0 1-.338-.336 7.086 7.086 0 0 1 0-1.932.393.393 0 0 1 .339-.336l1.529-.2c.105-.355.246-.695.422-1.019l-.94-1.223a.393.393 0 0 1-.002-.477c.39-.516.86-.983 1.367-1.366a.393.393 0 0 1 .477.002l1.224.94a5.248 5.248 0 0 1 1.017-.421l.2-1.529a.393.393 0 0 1 .336-.338 6.915 6.915 0 0 1 1.933 0 .393.393 0 0 1 .336.339l.2 1.53c.353.104.693.245 1.015.42l1.224-.94a.393.393 0 0 1 .477-.001c.516.39.976.85 1.367 1.367a.393.393 0 0 1-.002.477l-.94 1.224c.174.322.315.661.42 1.014l1.528.2c.176.023.315.16.34.336.09.658.09 1.282-.001 1.934a.393.393 0 0 1-.339.336l-1.529.2a5.248 5.248 0 0 1-.42 1.014zm-.784.27a.393.393 0 0 1-.023-.444c.244-.399.424-.832.533-1.288a.393.393 0 0 1 .332-.298l1.485-.194a6.043 6.043 0 0 0 0-1.126l-1.485-.194a.393.393 0 0 1-.332-.298c-.11-.456-.29-.89-.533-1.288a.393.393 0 0 1 .023-.445l.914-1.189a6.253 6.253 0 0 0-.796-.796l-1.188.914a.393.393 0 0 1-.445.023 4.465 4.465 0 0 0-1.289-.535.393.393 0 0 1-.298-.331l-.194-1.486a6.046 6.046 0 0 0-1.125 0l-.194 1.484a.393.393 0 0 1-.298.332c-.458.11-.892.29-1.291.535a.393.393 0 0 1-.445-.024l-1.188-.913a6.348 6.348 0 0 0-.796.795l.913 1.187c.1.13.109.307.024.446-.245.4-.426.834-.536 1.291a.393.393 0 0 1-.332.298l-1.484.195a6.317 6.317 0 0 0 0 1.124l1.484.194c.162.021.294.14.332.298.11.458.29.892.536 1.292a.393.393 0 0 1-.024.445l-.913 1.188c.239.286.507.554.796.795l1.188-.913c.129-.1.306-.109.445-.024.4.245.834.425 1.29.535.16.038.278.17.299.331l.194 1.485c.378.035.747.035 1.125 0l.194-1.486a.393.393 0 0 1 .298-.331c.457-.11.89-.291 1.289-.535a.393.393 0 0 1 .445.023l1.188.913c.289-.24.555-.507.796-.796l-.914-1.188z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,We=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m13.732 2.267.75.75-1.749 1.75C14.195 5.972 15 7.447 15 8c0 1-2.625 5-7 5a7.064 7.064 0 0 1-2.885-.616L3.017 14.48l-.75-.75L13.732 2.267zm-1.713 3.214-1.285 1.283a3 3 0 0 1-3.97 3.97l-.883.883A6.04 6.04 0 0 0 8 12c1.71 0 3.25-.713 4.493-1.899a7.19 7.19 0 0 0 1.192-1.47l.123-.218.093-.186.083-.186L14 8l-.036-.088-.079-.173a4.868 4.868 0 0 0-.2-.37 7.19 7.19 0 0 0-1.192-1.47 7.816 7.816 0 0 0-.474-.418zM8 3c1.123 0 2.131.264 3.009.673l-.761.76A6.047 6.047 0 0 0 8 4c-1.71 0-3.25.713-4.493 1.899a7.19 7.19 0 0 0-1.192 1.47l-.123.218-.093.186-.083.186L2 8l.036.088.079.173c.05.104.117.232.2.37a7.19 7.19 0 0 0 1.192 1.47c.185.177.377.343.575.498l-.715.715C1.842 10.094 1 8.566 1 8c0-1 2.625-5 7-5zm1.95 4.551-2.4 2.398A2 2 0 0 0 9.95 7.551zM8 5c.488 0 .95.117 1.357.324l-.765.765a2 2 0 0 0-2.503 2.503l-.765.765A3 3 0 0 1 8 5z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ye=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m8.036 5 3.535 3.536-.707.707L8.5 6.88v8.156h-1V6.95L5.207 9.243 4.5 8.536 8.036 5zM15 1v3h-1l.001-2H2v2H1V1h14z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ge=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3.272 4c0 1.705.161 2.854.809 3.934.647 1.08 1.752 1.92 2.696 2.162V4h2.335v3.599c.95-.48 1.619-.937 2.006-1.371.388-.434.778-1.177 1.172-2.228h2.271c-.184 1.074-.56 2.034-1.128 2.879-.567.845-1.18 1.369-1.837 1.572 1.107.809 1.88 1.505 2.315 2.088.437.583.8 1.403 1.089 2.461h-2.418c-.588-1.176-1.076-1.94-1.464-2.29-.387-.35-1.056-.63-2.006-.843V13c-2.631-.046-4.64-.866-6.03-2.461C1.695 8.944 1 6.764 1 4h2.272z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,Je=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 7a4 4 0 0 1 3.564 2.182A2.5 2.5 0 0 1 15 11.5V15H1v-3.5a2.5 2.5 0 0 1 3.437-2.318A3.998 3.998 0 0 1 8 7zm0 1a3 3 0 0 0-3 3v3h5.999v-3.029l-.004-.147A3 3 0 0 0 8 8zm4.5 2c-.174 0-.342.03-.5.085V14h2v-2.5a1.5 1.5 0 0 0-1.5-1.5zm-9 0a1.5 1.5 0 0 0-1.493 1.356L2 11.5V14h2v-3.915A1.499 1.499 0 0 0 3.5 10zM13 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM3 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm10 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm5-4a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zm0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Ze=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 9.5a3 3 0 0 0-2.986 2.705c.88.506 1.9.795 2.986.795 1.087 0 2.107-.29 2.986-.795A3 3 0 0 0 8 10.5zM8 2a6 6 0 0 0-3.878 10.579l.002-.07a4.002 4.002 0 0 1 7.755.011.172.172 0 0 1 .004.054A6 6 0 0 0 8 2zm0 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zm0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Xe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 3c4.375 0 7 4 7 5s-2.625 5-7 5-7-4-7-5 2.625-5 7-5zm0 1c-1.71 0-3.25.713-4.493 1.899a7.19 7.19 0 0 0-1.192 1.47l-.123.218C2.066 7.826 2 7.997 2 8l.036.088.079.173c.05.104.117.232.2.37a7.19 7.19 0 0 0 1.192 1.47C4.75 11.287 6.29 12 8 12c1.71 0 3.25-.713 4.493-1.899a7.19 7.19 0 0 0 1.192-1.47l.123-.218c.126-.239.192-.41.192-.413l-.036-.088a4.75 4.75 0 0 0-.279-.543 7.19 7.19 0 0 0-1.192-1.47C11.25 4.713 9.71 4 8 4zm0 1a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,Qe=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 13A6 6 0 1 0 8 2a6 6 0 0 0 0 12zm2.232-8.3c0 .192-.014.364-.042.516a2.238 2.238 0 0 1-.312.804c-.076.12-.162.252-.258.396a4.866 4.866 0 0 1-.3.39c-.112.132-.218.27-.318.414a2.74 2.74 0 0 0-.252.444 1.109 1.109 0 0 0-.102.456v.72h-.996v-.564c0-.288.034-.544.102-.768a2.03 2.03 0 0 1 .342-.648l.756-1.02c.208-.28.32-.564.336-.852 0-.168-.012-.338-.036-.51a1.294 1.294 0 0 0-.156-.468.922.922 0 0 0-.348-.342c-.152-.088-.352-.132-.6-.132-.184 0-.35.038-.498.114a1.14 1.14 0 0 0-.372.3c-.1.124-.178.266-.234.426-.056.16-.088.32-.096.48l-.996-.144c.048-.36.14-.674.276-.942a2.2 2.2 0 0 1 .504-.666c.2-.176.426-.306.678-.39.252-.084.518-.126.798-.126.696 0 1.224.192 1.584.576.36.384.54.896.54 1.536zM7.628 12v-1.068h1.008V12H7.628z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,tn=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M6.5 1a5.5 5.5 0 0 1 4.187 9.067L15 14.5l-.5.5-4.433-4.313A5.5 5.5 0 1 1 6.5 1zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,en=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M14 8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h5zm0 1H9v5h5V9zM6 8a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h4zm0 1H2v3h4V9zm8-8a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h3zM8 1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6zm6 1h-3v4h3V2zM8 2H2v4h6V2z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,nn=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"m9.399 3.019 1.507.076c1.555.12 2.593.354 3.114.7C14.673 4.22 15 5.62 15 8s-.327 3.802-.98 4.268c-.757.4-2.05.654-3.881.758l-.669.03c-.23.009-.467.015-.713.02L8 13.08l-.757-.006c-.245-.004-.483-.01-.713-.018l-.667-.03c-1.828-.105-3.116-.358-3.863-.759-.667-.464-1-1.851-1-4.162s.345-3.748 1.036-4.31c.467-.327 1.4-.553 2.798-.678l1.606-.094L9.4 3.019zM6.452 4.025l-1.536.087-.43.042-.896.126c-.456.085-.768.184-.923.291-.36.294-.64 1.396-.665 3.251L2 8.106c0 1.811.227 2.92.49 3.262l.047.051.049.024c.555.258 1.5.446 2.81.549l1.715.08h1.78l1.43-.06c1.464-.096 2.511-.293 3.116-.571l.038-.02c.263-.269.501-1.345.523-3.146a40.66 40.66 0 0 0-.012-1.06l-.103-1.27c-.103-.77-.262-1.216-.417-1.317-.219-.145-.633-.272-1.23-.373l-.38-.057-.653-.073-1.02-.073-1.186-.042L8 4l-1.548.025zm.012 2.08L10.192 8 6.464 9.948V6.105z","fill-rule":"nonzero"}})])}),[],!1,null,null,null).exports,rn=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm2.404 4.576c0 .215-.014.408-.042.581a2.365 2.365 0 0 1-.329.882c-.08.126-.166.259-.259.399a7.103 7.103 0 0 1-.364.497 7.77 7.77 0 0 0-.371.504 3.08 3.08 0 0 0-.294.546c-.08.191-.119.39-.119.595v.63H7.058v-.56c0-.355.033-.663.098-.924s.191-.523.378-.784c.15-.224.296-.434.441-.63.145-.196.27-.383.378-.56.107-.177.196-.35.266-.518.07-.168.105-.336.105-.504 0-.13-.012-.268-.035-.413a1.082 1.082 0 0 0-.147-.399.888.888 0 0 0-.315-.301c-.135-.08-.315-.119-.539-.119a.984.984 0 0 0-.805.371c-.2.247-.31.576-.329.987a59.858 59.858 0 0 0-.77-.105A30.583 30.583 0 0 0 5 5.66c.037-.439.138-.824.301-1.155.163-.331.366-.609.609-.833.243-.224.523-.392.84-.504A3.049 3.049 0 0 1 7.772 3c.868 0 1.524.233 1.967.7.443.467.665 1.092.665 1.876zm-3.36 7.238V11.26h1.568v1.554H7.044z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,on=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M3 7a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1V1h8v1h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1a3 3 0 0 1-3 3h-.5v4H11v1H5v-1h2.5v-4H7a3 3 0 0 1-3-3H3zm8-5H5v5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2V2zM4 3H3v3h1V3zm9 0h-1v3h1V3z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports,sn=[B,I,L,M,R,z,j,U,q,Y,J,X,tt,nt,rt,st,at,ct,ft,pt,mt,_t,wt,Ct,xt,Dt,Ft,Bt,It,Lt,Mt,Rt,zt,jt,Ut,qt,Yt,Jt,Xt,te,ne,re,se,ae,ce,fe,pe,me,_e,ye,we,be,Ce,Ee,xe,Ae,De,ke,Fe,Se,Be,$e,Ie,Oe,Le,Te,Me,Ve,Re,He,ze,Pe,je,Ne,Ue,Ke,qe,We,Ye,Ge,Je,Ze,Xe,Qe,tn,en,nn,rn,on],un=function(t){var e,i=n(sn);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.name&&t.component(r.name,r)}}catch(t){i.e(t)}finally{i.f()}};"undefined"!=typeof window&&window.Vue&&un(window.Vue);var an={Alert:B,Add:I,ArrowDown:L,AlertFill:M,ArrowLeftBottom:R,ArrowLeftTop:z,ArrowLeft:j,ArrowRightBottom:U,ArrowRight:q,ArrowUp:Y,ArrowRightTop:J,ArrowsVertical:X,Calendar:tt,Category:nt,CardBank:rt,Check:st,ChevronDown:at,ChevronLeft:ct,ChevronUp:ft,ChocholateMenu:pt,Clock:mt,Comment:_t,Company:wt,Compare:Ct,Copy:xt,DataCards:Dt,Delete:Ft,Directory:Bt,DocDownload:It,Doc:Lt,Download:Mt,Enter:Rt,Edit:zt,ErrorFill:jt,Error:Ut,External:qt,FacebookFill:Yt,Facebook:Jt,Flag:Xt,Filters:te,Globe:ne,InfoFill:re,Infinity:se,Info:ae,Link:ce,ListSearch:fe,CheckFill:pe,List:me,Loader:_e,Locked:ye,ChevronRight:we,Draggable:be,Menu:Ce,Minus:Ee,OverflowMenuHorizontal:xe,Notification:Ae,OverflowMenuVertical:De,Location:ke,Password:Fe,Pin:Se,Logout:Be,Refresh:$e,Login:Ie,Remove:Oe,Plus:Le,ShoppingCart:Te,SortDate:Me,Star:Ve,Printer:Re,Telegram:He,Timer:ze,Sandglass:Pe,Tool:je,Truck:Ne,Unlocked:Ue,StarFill:Ke,Settings:qe,VisibilityOff:We,Upload:Ye,Vk:Ge,UserGroup:Je,UserAvatar:Ze,VisibilityOn:Xe,Question:Qe,Search:tn,Workspace:en,Youtube:nn,QuestionFill:rn,Winner:on},ln=_({name:"CdsIcon",components:an,inheritAttrs:!1,props:{name:{type:String,required:!1,default:"",description:"Название иконки"}},computed:{componentName:function(){return this.name&&this.name[0].toUpperCase()+this.name.slice(1)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("i",t._g(t._b({staticClass:"cds-ico"},"i",t.$attrs,!1),t.$listeners),[t._t("default"),t._v(" "),t.name?n(t.componentName,{tag:"component"}):t._e()],2)}),[],!1,null,null,null).exports;ln.install=function(t){t.component(ln.name,ln)},"undefined"!=typeof window&&window.Vue&&ln.install(window.Vue);var cn=ln,dn=1e6;function fn(){var t=dn.toString(36);return dn+=1,t}var hn={beforeCreate:function(){this.uuid=fn()},computed:{id:function(){return this.uuid}},methods:{getDynamicItemIdByIndex:function(t){return"".concat(this.id,"_").concat(t)},generateDynamicId:fn}},pn={computed:{preparedLabel:function(){var t=this.optional?" (".concat(this.optionalLabel,")"):"";return"".concat(this.label).concat(t)}}},vn={parentType:"",mounted:function(){this.validateParent()},updated:function(){this.validateParent()},methods:{validateParent:function(){var t,e=this.$options._componentTag,n=this.$parent.$options._componentTag,i=this.$options.parentType,r=!0;return i?(r=n===i,(r=(t=i,[t,t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})).replace(/^-/,"").replace(/([0-9]+)/g,"-$1")]).includes(n))||console.error("".concat(e,": компонент должен находиться внутри инстанса ").concat(i)),r):(console.warn("".concat(e,": validateParent не задан параметр parentType")),r)}}},mn=(i(5827),{childrenType:"",minChildrenCount:0,mounted:function(){this.validateChildren()},updated:function(){this.validateChildren()},methods:{validateChildren:function(){var t=this.$options._componentTag,e=this.$options,n=e.childrenType,i=e.minChildrenCount;if(!n&&!i)return console.warn("".concat(t,": ValidateChildren не задан не один из параметров (childrenType, minChildrenCount)")),!1;return[this._validateChildrenType(),this._validateMinChildrenCount()].reduce((function(t,e){return t&&e}),!0)},_validateChildrenType:function(){var t=this.$options._componentTag,e=this.$options.childrenType,n=!0;return e&&this.$slots.default?((n=this.$slots.default.every((function(t){return!t.componentOptions||(n=e,[n,n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})).replace(/^-/,"").replace(/([0-9]+)/g,"-$1")]).includes(t.componentOptions.tag);var n})))||console.error("".concat(t,": дочерние компоненты должны быть инстансы ").concat(e)),n):n},_validateMinChildrenCount:function(){var t=this.$options._componentTag,e=this.$options.minChildrenCount,n=!0;if(!e)return n;this.$slots.default?n=this.$slots.default.reduce((function(t,e){return e.componentOptions?++t:t}),0)>=e:n=!1;return n||console.error("".concat(t,": количество внутренних элементов минимум ").concat(e)),n}}}),gn={direction:["right","left","top","bottom"]},_n=_({name:"CdsTooltipInteractive",components:{CdsIcon:cn},mixins:[hn],inheritAttrs:!1,props:{visible:{type:Boolean,default:!1,description:"Видимый или нет"},direction:{type:String,default:"right",available:gn.direction,description:"Позиционирование",validator:function(t){var e=gn.direction,n=t.match(new RegExp("(".concat(e.join("|"),")")));return n||console.warn("TooltipInteractive.direction должно быть одно из следующих: ".concat(e.join(", "))),n}}},data:function(){return{isVisible:!1,left:-99999,top:0}},computed:{classesTooltip:function(){return c({"cds-tooltip":!0},m.active,this.isVisible)},classesContent:function(){var t;return c(t={"cds-tooltip__interactive":!0},this.direction,this.direction),c(t,m.active,this.isVisible),t},events:function(){return p(p({},this.$listeners),{},{focus:this._onFocus,blur:this._onBlur,focusout:this._checkFocusOut,mousedown:this._onMouseDown})}},watch:{visible:{immediate:!0,handler:function(t){this.isVisible=t}}},mounted:function(){this.tooltipContent=document.body.appendChild(this.$refs.content),this.visible?this.show():this.hide()},beforeDestroy:function(){this._positionListen(!1),this.tooltipContent&&this.$el.appendChild(this.tooltipContent)},methods:{_positionListen:function(t){t?(window.addEventListener("scroll",this._calculatePosition),window.addEventListener("resize",this._calculatePosition)):(window.removeEventListener("scroll",this._calculatePosition),window.removeEventListener("resize",this._calculatePosition))},_calculatePosition:function(){if(this.$refs.trigger){var t=this.$refs.iconTrigger.getBoundingClientRect(),e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;"top"===this.direction||"bottom"===this.direction?(this.left=t.left+.5+(this.$refs.iconTrigger.offsetWidth-this.$refs.content.offsetWidth)/2+e,"bottom"===this.direction?this.top=t.bottom+15+n:this.top=t.top-15-this.$refs.content.offsetHeight+n):(this.top=t.top+(this.$refs.iconTrigger.offsetHeight-.5-this.$refs.content.offsetHeight)/2+n,"left"===this.direction?this.left=t.left-10-this.$refs.content.offsetWidth+e:this.left=t.right+15+e)}else this._positionListen(!1)},show:function(){var t=this;this.isVisible=!0,this._positionListen(!0),this.$nextTick((function(){t._calculatePosition()})),this.$emit("show",!0)},hide:function(){this.isVisible=!1,this._positionListen(!1),this.$emit("hide",!1)},_checkFocusOut:function(t){this.isVisible=t.relatedTarget===this.$refs.trigger||this.$refs.content&&this.$refs.content.contains(t.relatedTarget)},_onFocus:function(t){this.show(),this.$emit("focus",t)},_onBlur:function(t){this.hide(),this.$emit("blur",t)},_onMouseDown:function(t){this.show(),this.$emit("onmousedown",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"trigger",class:t.classesTooltip},[t._t("label"),t._v(" "),n("span",t._g({ref:"iconTrigger",staticClass:"cds-tooltip__trigger",attrs:{tabindex:"0",role:"button","aria-describedby":t.id}},t.events),[t._t("trigger",(function(){return[n("CdsIcon",{attrs:{name:"question"}})]}))],2),t._v(" "),n("div",{ref:"content",class:t.classesContent,style:{left:t.left+"px",top:t.top+"px"},attrs:{role:"tooltip","aria-hidden":[!t.isVisible]}},[t._t("content")],2)],2)}),[],!1,null,null,null).exports,yn=".75rem",wn={direction:["bottom","top","right","left"],align:["center","start","end"]},bn=_({name:"CdsTooltip",mixins:[hn],props:{visible:{type:Boolean,default:!1,description:"Показан/Скрыт тултип"},direction:{type:String,default:"bottom",available:wn.direction,description:"Позиционирование",validator:function(t){return b(wn.direction,t,"TooltipIcon.direction")}},align:{type:String,default:"center",available:wn.align,description:"Выравнивание",validator:function(t){return b(wn.align,t,"TooltipIcon.align")}},tip:{type:String,required:!0,description:"Текст тултипа"},disabled:{type:Boolean,default:!1,description:"Заблокировать тултип"}},data:function(){return{isVisible:!1,left:-99999,top:0}},computed:{classesTooltip:function(){return c({"cds-tooltip":!0,"cds-tooltip__trigger":!0},m.disabled,this.disabledTooltip)},classesContent:function(){var t;return c(t={"cds-tooltip__content":!0},this.direction,this.direction),c(t,this.align,this.align),c(t,m.active,this.isVisible),t},events:function(){return p(p({},this.$listeners),{},{focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseleave:this._onMouseLeave})},disabledTooltip:function(){return this.disabled||!this.tip}},watch:{visible:function(t){t?this.show():this.hide()}},mounted:function(){this.tip&&window&&document&&(this.tooltipContent=document.body.appendChild(this.$refs.content),this.visible?this.show():this.hide())},beforeDestroy:function(){this._positionListen(!1),this.tooltipContent&&this.$el.appendChild(this.tooltipContent)},methods:{_positionListen:function(t){window&&document&&(t?(window.addEventListener("scroll",this._calculatePosition),window.addEventListener("resize",this._calculatePosition)):(window.removeEventListener("scroll",this._calculatePosition),window.removeEventListener("resize",this._calculatePosition)))},_calculatePosition:function(){if(this.$refs.trigger){var t=this.$refs.trigger.getBoundingClientRect(),e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;"top"===this.direction||"bottom"===this.direction?(this.left=t.left+.5+(this.$refs.trigger.offsetWidth-this.$refs.content.offsetWidth)/2+e,"bottom"===this.direction?this.top=t.bottom+10+n:this.top=t.top-15-this.$refs.content.offsetHeight+n,"start"===this.align&&(this.left+=this.$refs.content.offsetWidth/2-A(yn)),"end"===this.align&&(this.left-=this.$refs.content.offsetWidth/2-A(yn))):(this.top=t.top+(this.$refs.trigger.offsetHeight-.5-this.$refs.content.offsetHeight)/2+n,"left"===this.direction?this.left=t.left-10-this.$refs.content.offsetWidth+e:this.left=t.right+15+e)}else this._positionListen(!1)},show:function(){var t=this;this.disabled||this.tip&&(this.isVisible=!0,this._positionListen(!0),this.$nextTick((function(){t._calculatePosition()})),this.$emit("show",!0))},hide:function(){this.disabled||(this.isVisible=!1,this._positionListen(!1),this.$emit("hide",!1))},_onFocus:function(t){this.show(),this.$emit("focus",t)},_onBlur:function(t){this.hide(),this.$emit("blur",t)},_onMouseOver:function(t){this.show(),this.$emit("mouseover",t)},_onMouseLeave:function(t){this.hide(),this.$emit("mouseleave",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",t._g({ref:"trigger",class:t.classesTooltip,attrs:{"aria-label":t.tip,tabindex:"0","aria-describedby":t.id}},t.events),[t._t("default"),t._v(" "),n("span",{ref:"content",class:t.classesContent,style:{left:t.left+"px",top:t.top+"px"},attrs:{role:"tooltip","aria-hidden":[!t.isVisible]}},[t._v("\n "+t._s(t.tip)+"\n ")])],2)}),[],!1,null,null,null).exports,Cn={direction:["bottom","top"],align:["center","start","end"]},En=_({name:"CdsTooltipDefinition",mixins:[hn],props:{visible:{type:Boolean,default:!1,description:"Показан/Скрыт тултип"},direction:{type:String,default:"bottom",available:Cn.direction,description:"Позиционирование",validator:function(t){return b(Cn.direction,t,"TooltipDefinition.direction")}},align:{type:String,default:"center",available:Cn.align,description:"Выравнивание",validator:function(t){return b(Cn.align,t,"TooltipDefinition.align")}},tip:{type:String,required:!0}},data:function(){return{isVisible:!1,top:0,left:-99999}},computed:{classesTooltip:function(){return c({"cds-tooltip":!0,"cds-tooltip__trigger":!0,"cds-tooltip__definition":!0},m.active,this.isVisible)},classesContent:function(){var t;return c(t={"cds-tooltip__content":!0},this.direction,this.direction),c(t,this.align,this.align),c(t,m.active,this.isVisible),t},events:function(){return p(p({},this.$listeners),{},{focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseleave:this._onMouseLeave})}},watch:{visible:function(t){t?this.show():this.hide()}},mounted:function(){window&&document&&(this.tooltipContent=document.body.appendChild(this.$refs.content),this.visible?this.show():this.hide())},beforeDestroy:function(){this._positionListen(!1),this.tooltipContent&&this.$el.appendChild(this.tooltipContent)},methods:{_positionListen:function(t){window&&document&&(t?(window.addEventListener("scroll",this._calculatePosition),window.addEventListener("resize",this._calculatePosition)):(window.removeEventListener("scroll",this._calculatePosition),window.removeEventListener("resize",this._calculatePosition)))},_calculatePosition:function(){if(this.$refs.trigger){var t=this.$refs.trigger.getBoundingClientRect(),e=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;this.left=t.left+.5+(this.$refs.trigger.offsetWidth-this.$refs.content.offsetWidth)/2+e,"bottom"===this.direction?this.top=t.bottom+8+n:this.top=t.top-4-this.$refs.content.offsetHeight+n,"start"===this.align&&(this.left+=this.$refs.content.offsetWidth/2-A(yn)),"end"===this.align&&(this.left-=this.$refs.content.offsetWidth/2-A(yn))}else this._positionListen(!1)},show:function(){var t=this;this.isVisible=!0,this._positionListen(!0),this.$nextTick((function(){t._calculatePosition()})),this.$emit("show",!0)},hide:function(t){this.isVisible=!1,this._positionListen(!1),this.$emit("blur",t),this.$emit("hide",!1)},_onFocus:function(t){this.show(),this.$emit("focus",t)},_onBlur:function(t){this.hide(),this.$emit("blur",t)},_onMouseOver:function(t){this.show(),this.$emit("mouseover",t)},_onMouseLeave:function(t){this.hide(),this.$emit("mouseleave",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("dfn",t._g({ref:"trigger",class:t.classesTooltip,attrs:{tabindex:"0","aria-describedby":t.id}},t.events),[t._t("default"),t._v(" "),n("span",{ref:"content",class:t.classesContent,style:{left:t.left+"px",top:t.top+"px"},attrs:{role:"tooltip","aria-hidden":[!t.isVisible]}},[n("cds-button",{staticClass:"cds-tooltip__content--arrow",attrs:{"icon-only":""},on:{click:t.hide}},[n("cds-icon",{attrs:{name:"chevron-down"}})],1),t._v("\n "+t._s(t.tip)+"\n ")],1)],2)}),[],!1,null,null,null).exports;bn.install=function(t){t.component(bn.name,bn)},_n.install=function(t){t.component(_n.name,_n)},En.install=function(t){t.component(En.name,En)},"undefined"!=typeof window&&window.Vue&&(bn.install(window.Vue),_n.install(window.Vue),En.install(window.Vue));var xn={status:["info","warning","success","error"],level:["inline","page"]},An=_({name:"CdsNotification",components:{CdsTooltip:bn,VRuntimeTemplate:f,CdsButton:k,CdsIcon:cn},props:{important:{type:Boolean,default:!1,description:"Акцент"},level:{type:String,default:"inline",available:xn.level,description:"Уровень",validator:function(t){return b(xn.level,t,"Notification.level")}},status:{type:String,required:!1,default:"info",available:xn.status,description:"Статус",validator:function(t){return b(xn.status,t,"Notification.status")}},title:{type:String,default:null,description:"Заголовок"},content:{type:String,default:null,description:"Текст сообщения"},duration:{type:[String,Number],default:0,description:"Время после которого уведомление исчезает (мс)"},action:{type:String,default:null,description:"Дополнительное действие"},position:{type:String,default:"bottom-right",description:"Позиционирование уведомления (bottom-right, top-right, top-left, bottom-left, top-center, bottom-center)"},dismissButton:{type:Boolean,default:!1,description:"Действие отклонения"}},data:function(){return{isVisible:!0,isProgrammatically:!1}},computed:{styles:function(){var t;return c(t={},"cds-notification__".concat(this.status),this.status),c(t,"cds-notification__".concat(this.level),this.level),c(t,"cds-notification__important",this.important),t},currentStatusIcon:function(){return"warning"===this.status?"alert-fill":"success"===this.status?"check-fill":this.status+"-fill"},contentTemplate:function(){return'<div class="cds-notification__content">'.concat(this.content,"</div>")},hasContent:function(){return this.$slots.content||this.$scopedSlots.content},actionTemplate:function(){return'<div class="cds-notification__actions">'.concat(this.action,"</div>")},hasActions:function(){return this.$slots.actions||this.$scopedSlots.actions},role:function(){return this.dismissButton||this.action?"alertdialog":"alert"}},created:function(){this.isProgrammatically&&(this.isVisible=!1)},mounted:function(){var t=this;this.duration&&setTimeout((function(){t.hide()}),+this.duration)},methods:{_dismissNotice:function(){"page"===this.level&&this.hide(),this.$emit("destroy")},hide:function(){var t;document&&window&&(null===(t=document.querySelector(".cds-notification-parent"))||void 0===t||t.remove()),this.isVisible=!1}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.isVisible?n("div",{class:["cds-notification",t.styles],attrs:{role:t.role}},[n("div",{staticClass:"cds-notification__status"},[n("CdsIcon",{attrs:{name:t.currentStatusIcon}})],1),t._v(" "),n("div",{staticClass:"cds-notification__body"},[t.title?n("div",{staticClass:"cds-notification__title",domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t.content?n("VRuntimeTemplate",{attrs:{template:t.contentTemplate}}):t._e(),t._v(" "),t.hasContent?n("div",{staticClass:"cds-notification__content"},[t._t("content")],2):t._e(),t._v(" "),t.action?n("VRuntimeTemplate",{attrs:{template:t.actionTemplate}}):t._e(),t._v(" "),t.hasActions?n("div",{staticClass:"cds-notification__actions"},[t._t("actions")],2):t._e()],1),t._v(" "),n("div",{staticClass:"cds-notification__dismiss"},[t.dismissButton?n("CdsTooltip",{attrs:{tip:"Закрыть"}},[n("CdsButton",{attrs:{"icon-only":""},on:{click:function(e){return t._dismissNotice()}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"remove"}})]},proxy:!0}],null,!1,63127537)})],1):t._e()],1)]):t._e()])}),[],!1,null,null,null).exports,Dn=_({name:"CdsNotificationSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"cds-notification__skeleton"},[e("cds-skeleton",{attrs:{width:"100%",height:"42px"}})],1)}),[],!1,null,null,null).exports;An.install=function(t){t.component(An.name,An)},Dn.install=function(t){t.component(Dn.name,Dn)},"undefined"!=typeof window&&window.Vue&&(An.install(window.Vue),Dn.install(window.Vue));var kn=s().extend(An),Fn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new kn({components:{CdsButton:k},propsData:{title:t.title,position:t.position,level:"page",duration:+t.duration,status:t.status,important:t.important,dismissButton:t.dismissButton,content:t.content,action:t.action}});e.$data.isProgrammatically=!0,"string"!=typeof t.position&&(t.position="bottom-right");var n=document.querySelector(".cds-notification-parent--".concat(t.position)),i=n||document.createElement("div");return n||(i.className="cds-notification-parent",i.classList.add("cds-notification-parent--".concat(t.position))),t.classNotification&&i.classList.add(t.classNotification),i.appendChild(e.$mount().$el),document.body.appendChild(i),s().nextTick((function(){e.$data.isVisible=!0})),e},Sn=(i(1249),i(4553),_({name:"CdsAccordion",mixins:[mn],childrenType:"CdsAccordionItem",computed:{state:{get:function(){return this.$children.filter((function(t){return t.$_CdsAccordionItem})).map((function(t){return t.isOpen}))},set:function(t){var e=this.$children.filter((function(t){return t.$_CdsAccordionItem}));if(e.length>0)for(var n in e)e[n].isOpen=void 0!==t[n]&&!!t[n]}}},created:function(){var t=this;this.$on("itemChange",(function(e){return t._onChange(e)}))},methods:{_onChange:function(t){var e=this.$children.findIndex((function(e){return e.uuid===t.uuid}));this.$emit("change",{index:e,state:this.state})}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("ul",t._g({staticClass:"cds-accordion"},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports),Bn=_({name:"CdsAccordionItem",components:{CdsIcon:cn},mixins:[vn,hn],parentType:"CdsAccordion",props:{title:{type:String,default:"",description:"Заголовок элемента"},content:{type:String,default:"",description:"Внутренний контент элемента"},open:{type:Boolean,default:!1,description:"Открыть элемент списка"}},data:function(){return{isOpen:!1,animation:""}},computed:{classes:function(){var t;return c(t={"cds-accordion__item":!0},m.active,this.isOpen),c(t,this.animation,this.animation),t},events:function(){return p(p({},this.$listeners),{},{click:this._onClick})}},watch:{open:{immediate:!0,handler:function(t){this.isOpen=t}}},mounted:function(){this.$_CdsAccordionItem=!0},methods:{toggle:function(t){this.animation=this.isOpen?"cds-accordion__item--collapsing":"cds-accordion__item--expanding";var e="boolean"==typeof t?!!t:!this.isOpen,n=void 0!==this.isOpen&&e!==this.isOpen;this.isOpen=e,n&&this.$parent.$emit("itemChange",this)},_onClick:function(t){this.toggle(t),this.$emit("click",t)},_onAnimationEnd:function(){this.animation=""}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:t.classes,on:{animationend:t._onAnimationEnd}},[n("button",t._g({staticClass:"cds-accordion__heading",attrs:{type:"button","aria-controls":t.id,"aria-expanded":t.isOpen}},t.events),[n("span",{staticClass:"cds-accordion__title"},[t._v("\n "+t._s(t.title)+"\n "),t._t("title")],2),t._v(" "),n("CdsIcon",{staticClass:"cds-accordion__arrow",attrs:{name:"chevron-down"}})],1),t._v(" "),n("div",{staticClass:"cds-accordion__content",attrs:{id:t.id}},[t._v("\n "+t._s(t.content)+"\n "),t._t("content")],2)])}),[],!1,null,null,null).exports,$n=_({name:"CdsAccordionSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"cds-accordion"},[n("li",{staticClass:"cds-accordion__item"},[n("button",{staticClass:"cds-accordion__heading",attrs:{type:"button",disabled:""}},[n("span",{staticClass:"cds-accordion__title"},[n("cds-skeleton",{attrs:{width:"58px",height:"12px"}})],1),t._v(" "),n("CdsIcon",{staticClass:"cds-accordion__arrow",attrs:{name:"chevron-down"}})],1)]),t._v(" "),n("li",{staticClass:"cds-accordion__item"},[n("button",{staticClass:"cds-accordion__heading",attrs:{type:"button",disabled:""}},[n("span",{staticClass:"cds-accordion__title"},[n("cds-skeleton",{attrs:{width:"40px",height:"12px"}})],1),t._v(" "),n("CdsIcon",{staticClass:"cds-accordion__arrow",attrs:{name:"chevron-down"}})],1)]),t._v(" "),n("li",{staticClass:"cds-accordion__item"},[n("button",{staticClass:"cds-accordion__heading",attrs:{type:"button",disabled:""}},[n("span",{staticClass:"cds-accordion__title"},[n("cds-skeleton",{attrs:{width:"50px",height:"12px"}})],1),t._v(" "),n("CdsIcon",{staticClass:"cds-accordion__arrow",attrs:{name:"chevron-down"}})],1)])])}),[],!1,null,null,null).exports;Sn.install=function(t){t.component(Sn.name,Sn)},Bn.install=function(t){t.component(Bn.name,Bn)},$n.install=function(t){t.component($n.name,$n)},"undefined"!=typeof window&&window.Vue&&(Sn.install(window.Vue),Bn.install(window.Vue),$n.install(window.Vue));i(3210);var In=_({name:"CdsLink",props:{text:{type:String,required:!1,default:"",description:"Текст ссылки"},to:{type:[String,Object],required:!1,default:"#",description:"Url-адрес ссылки или объект в случае использования router"},blank:{type:Boolean,required:!1,default:!1,description:"Открыть ли в новой вкладке"},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированная ли"},useRouter:{type:Boolean,default:!0,description:"Используется ли vue router для ссылки"}},computed:{classes:function(){var t;return c(t={"cds-link":!0},m.visited,this.visited),c(t,m.disabled,this.disabled),t},listeners:function(){return p(p({},this.$listeners),{},{click:this._onClick})},tabIndex:function(){return this.disabled?-1:null},target:function(){return this.blank?"_blank":null},preparedTo:function(){return this.useRouter||"string"==typeof this.to?this.to:(console.warn("CdsLink: при использовании нативной ссылки, параметр to должен быть типа String"),"#")}},methods:{_onClick:function(t){this.$emit("click"),"#"===this.to&&t.preventDefault(),this.disabled&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.useRouter?n("router-link",t._g({class:t.classes,attrs:{to:t.preparedTo,tabindex:t.tabIndex}},t.listeners),[t._v("\n "+t._s(t.text)),t._t("default")],2):n("a",t._g({class:t.classes,attrs:{href:t.preparedTo,tabindex:t.tabIndex,target:t.target}},t.listeners),[t._v(t._s(t.text)),t._t("default")],2)}),[],!1,null,null,null).exports;In.install=function(t){t.component(In.name,In)},"undefined"!=typeof window&&window.Vue&&In.install(window.Vue);var On=In,Ln=_({name:"CdsBreadcrumbsItem",component:{CdsLink:On},props:{text:{type:String,default:"",description:"Название хлебной крошки"},to:{type:[Object,String],default:null,description:"Url-адрес ссылки или объект в случае использования router"},useRouter:{type:Boolean,default:!0,description:"Используется ли vue router для хлебной крошки"},isCurrentPage:{type:Boolean,default:!1,description:"Является ли элемент текущей страницей"}},computed:{isLink:function(){return!this.isCurrentPage&&this.to},title:function(){var t=this.text||this.$slots.default[0].text;return t?t.trim():null}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",t._g({staticClass:"cds-breadcrumbs__item",attrs:{title:t.title}},t.$listeners),[t.isLink?n("CdsLink",{attrs:{text:t.text,to:t.to,"use-router":t.useRouter}},[t._t("default")],2):[n("span",[t._v("\n "+t._s(t.text)+"\n "),t._t("default")],2)]],2)}),[],!1,null,null,null).exports,Tn=_({name:"CdsBreadcrumbs",components:{CdsBreadcrumbsItem:Ln},props:{items:{type:Array,required:!1,default:function(){return[]},description:'Список пунктов: [{text: "home", to: "/home"}, ...]'}},computed:{hasSlot:function(){return!!this.$slots.default}},methods:{_isLastItem:function(t){return this.items.length-1===t}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",t._g({staticClass:"cds-breadcrumbs"},t.$listeners),[t.hasSlot?t._t("default"):t._l(t.items,(function(e,i){return n("CdsBreadcrumbsItem",{key:i,attrs:{text:e.text,to:e.to,"use-router":e.useRouter,"is-current-page":t._isLastItem(i)}})}))],2)}),[],!1,null,null,null).exports,Mn=_({name:"CdsBreadcrumbsSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"cds-breadcrumbs"},t._l(2,(function(t){return n("li",{key:t,staticClass:"cds-breadcrumbs__item"},[n("cds-skeleton",{attrs:{width:"82px",height:"12px"}})],1)})),0)}),[],!1,null,null,null).exports;Tn.install=function(t){t.component(Tn.name,Tn)},Ln.install=function(t){t.component(Ln.name,Ln)},Mn.install=function(t){t.component(Mn.name,Mn)},"undefined"!=typeof window&&window.Vue&&(Tn.install(window.Vue),Ln.install(window.Vue),Mn.install(window.Vue));i(4747);var Vn=_({name:"CdsInput",components:{CdsIcon:cn},inheritAttrs:!1,props:{placeholder:{type:String,default:"",description:"Плейсхолдер"},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированный"},invalid:{type:Boolean,default:!1,description:"Невалидный"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на инпуте"},value:{type:[String,Number],required:!1,default:"",description:"Если установили v-model компоненту, то value автоматически подставится. Иначе писать самому."},type:{type:String,required:!1,default:"text",description:"Тип инпута"},prefixClass:{type:String,required:!1,default:"",description:"Класс для префикса"},suffixClass:{type:String,required:!1,default:"",description:"Класс для суффикса"}},data:function(){return{hasMouseDown:!1,internalValue:null}},computed:{events:function(){return p(p({},this.$listeners),{},{click:this._onClick,blur:this._onBlur,input:this._onInput,focus:this._onFocus,keydown:this._onKeyDown,keyup:this._onKeyUp,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut})},classes:function(){return c({"cds-input":!0,"cds-input--wprefix":!!this.$slots.prefix,"cds-input--wsuffix":this.invalid||!!this.$slots.suffix,"cds-input--max-suffix":this.invalid&&!!this.$slots.suffix},m.disabled,this.disabled)}},watch:{value:{immediate:!0,deep:!0,handler:function(t){this.internalValue=t}}},methods:{_onBlur:function(t){this.$emit("blur",t)},_onClick:function(t){this.$emit("click",t),this.setFocus()},_onFocus:function(t){this.$emit("focus",t)},_onInput:function(t){this.internalValue=t.target.value,this.$emit("input",this.internalValue)},_onKeyDown:function(t){t.keyCode===v.enter&&this.$emit("change",t.target.value),this.$emit("keydown",t)},_onKeyUp:function(t){this.$emit("keyup",t)},_onMouseDown:function(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),this.hasMouseDown=!0,this.$emit("mousedown",t)},_onMouseUp:function(t){this.hasMouseDown&&this.focus(),this.hasMouseDown=!1,this.$emit("mouseup",t)},_onMouseOver:function(t){this.$emit("mouseover",t)},_onMouseOut:function(t){this.$emit("mouseout",t)},setFocus:function(){this.$refs.input.focus()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.classes},[t.$slots.prefix?n("span",{class:["cds-input__prefix",t.prefixClass],on:{click:function(e){return t.$emit("clickPrefix")}}},[t._t("prefix")],2):t._e(),t._v(" "),n("input",t._g(t._b({ref:"input",attrs:{type:t.type,placeholder:t.placeholder,disabled:t.disabled,autofocus:t.autofocus,"aria-invalid":t.invalid},domProps:{value:t.value}},"input",t.$attrs,!1),t.events)),t._v(" "),t.invalid||t.$slots.suffix?n("span",{class:["cds-input__suffix",t.suffixClass],on:{click:function(e){return t.$emit("clickSuffix")}}},[t.invalid?n("CdsIcon",{staticClass:"cds-input__alert-icon",attrs:{name:"alert"}}):t._e(),t._v(" "),t.$slots.suffix?t._t("suffix"):t._e()],2):t._e()])}),[],!1,null,null,null).exports,Rn=_({name:"CdsInputCounter",props:{limit:{type:Number,required:!0,description:"Максимальное кол-во символов"},count:{type:Number,required:!0,description:"Текущее кол-во символов"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"cds-input__counter"},[t._v(t._s(t.count)+"/"+t._s(t.limit))])}),[],!1,null,null,null).exports,Hn=_({name:"CdsInputDescription",props:{description:{type:String,required:!0}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"cds-input__description",domProps:{innerHTML:t._s(t.description)}})}),[],!1,null,null,null).exports,zn=_({name:"CdsInputError",props:{text:{type:String,default:"",description:"Текст ошибки"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"cds-input__error",attrs:{role:"alert"}},[t._v("\n "+t._s(t.text)+"\n")])}),[],!1,null,null,null).exports,Pn=_({name:"CdsInputLabel",mixins:[pn],props:{label:{type:String,required:!0},id:{type:String,required:!0},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"}},computed:{preparedLabel:function(){var t=this.optional?" (".concat(this.optionalLabel,")"):"";return"".concat(this.label).concat(t)}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("label",t._g({staticClass:"cds-input__label",attrs:{for:t.id}},t.$listeners),[t._v(t._s(t.preparedLabel))])}),[],!1,null,null,null).exports,jn=_({name:"CdsInputSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-text-input"},[n("label",{staticClass:"cds-input__label"},[n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("div",{staticClass:"cds-input__description"},[n("cds-skeleton",{attrs:{width:"100px",height:"8px"}})],1),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[n("cds-skeleton",{attrs:{width:"240px",height:"32px"}})],1)])}),[],!1,null,null,null).exports;Vn.install=function(t){t.component(Vn.name,Vn)},Rn.install=function(t){t.component(Rn.name,Rn)},Hn.install=function(t){t.component(Hn.name,Hn)},zn.install=function(t){t.component(zn.name,zn)},Pn.install=function(t){t.component(Pn.name,Pn)},jn.install=function(t){t.component(jn.name,jn)},"undefined"!=typeof window&&window.Vue&&(Vn.install(window.Vue),Rn.install(window.Vue),Hn.install(window.Vue),Pn.install(window.Vue),jn.install(window.Vue));var Nn=_({name:"CdsCheckboxGroup",components:{CdsInputError:zn,CdsInputDescription:Hn},mixins:[pn],props:{label:{type:String,default:null,description:"Лейбл для группы"},description:{type:String,default:null,description:"Вспомогательное описание"},horizontal:{type:Boolean,default:!1,description:"Горизонтальное отображение"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},computed:{internalValue:function(){return this.$children.length?this.$children[0].model:""},classes:function(){return{"cds-checkbox__group":!0,"cds-checkbox__group--horizontal":this.horizontal}}},mounted:function(){var t=this;this.$children.length&&this.$children.forEach((function(e){e.$on("change",(function(){return t.$emit("change")})),e.$on("blur",(function(){return t.$emit("blur")}))}))}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[t.label?n("div",{staticClass:"cds-checkbox__group-label"},[t._v("\n "+t._s(t.preparedLabel)+"\n ")]):t._e(),t._v(" "),t.description?n("cds-input-description",{staticClass:"cds-checkbox__group-description",attrs:{description:t.description}}):t._e(),t._v(" "),t.horizontal?n("div",{staticClass:"cds-checkbox__container"},[t._t("default")],2):t._t("default"),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],2)}),[],!1,null,null,null).exports;function Un(n){return function(e){if(Array.isArray(e))return t(e)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||e(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i(561),i(2772);var Kn=_({name:"CdsCheckbox",components:{CdsInputDescription:Hn},mixins:[hn],inheritAttrs:!1,_checkboxGroup:void 0,model:{prop:"model",event:"change"},props:{label:{type:String,required:!0,description:"Текст чекбокса"},description:{type:String,default:null,description:"Вспомогательное описание"},checked:{type:Boolean,required:!1,default:!1,description:"Состояние выбран\\не выбран"},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированный"},indeterminate:{type:Boolean,required:!1,default:!1,description:"Промежуточное состояние, отображается в виде минуса"},value:{type:[Number,String,Boolean,Array],default:!1,required:!1,description:"Значение чекбокса"},model:{type:[String,Boolean,Array],default:null,required:!1,description:"Внешняя модель для чекбокса, указывается v-model"},hiddenLabel:{type:Boolean,default:!1,required:!1,description:"Отображать ли лейбл или нет"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на чекбоксе"}},data:function(){return{isChecked:this.checked,isFocused:!1,isClick:!1}},computed:{classes:function(){var t;return c(t={"cds-checkbox":!0},m.checked,this.shouldBeChecked),c(t,m.disabled,this.disabled),c(t,m.indeterminate,this.indeterminate),t},events:function(){return p(p({},this.$listeners),{},{focus:this._onFocus,blur:this._onBlur,change:this._onChange,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut})},shouldBeChecked:function(){return null!==this.model?Array.isArray(this.model)?this.model.includes(this.value):"string"==typeof this.model||!!this.model:this.isChecked},isGroup:function(){return"CdsCheckboxGroup"===this.$parent.$options.name&&(this._checkboxGroup=this.$parent,!0)},invalid:function(){return!!this.isGroup&&this._checkboxGroup.error}},watch:{checked:function(t){this.isChecked=t},indeterminate:function(t){this.$refs.input.indeterminate=t}},mounted:function(){this.isFocused=this.autofocus},methods:{change:function(t){if(this.isChecked=t,Array.isArray(this.model)){var e=Un(this.model);return this.isChecked?e.push(this.value):e.splice(e.indexOf(this.value),1),e}return this.isChecked},_onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},_onFocus:function(t){this.isFocused||(this.isFocused=!0,this.$emit("focus",t))},_onChange:function(t){var e=this.change(t.target.checked);this.$emit("change",e)},_onMouseUp:function(t){this.hasMouseDown&&this.focus(),this.hasMouseDown=!1,this.$emit("mouseup",t)},_onMouseOver:function(t){this.$emit("mouseover",t)},_onMouseOut:function(t){this.isFocused||(this.internalState=null),this.$emit("mouseout",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("input",t._g(t._b({ref:"input",staticClass:"cds-checkbox__input",attrs:{id:t.id,type:"checkbox",autofocus:t.autofocus,"aria-invalid":t.invalid,disabled:t.disabled},domProps:{checked:t.shouldBeChecked,value:t.value}},"input",t.$attrs,!1),t.events)),t._v(" "),n("label",t._g({staticClass:"cds-checkbox__label",attrs:{for:t.id}},t.events),[n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],staticClass:"cds-checkbox__label-text"},[t._v(t._s(t.label))])]),t._v(" "),!t.hiddenLabel&&t.description?n("cds-input-description",{staticClass:"cds-checkbox__description",attrs:{description:t.description}}):t._e()],1)}),[],!1,null,null,null).exports,qn=_({name:"CdsCheckboxSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-checkbox cds-state-disabled cds-checkbox__skeleton"},[n("input",{staticClass:"cds-checkbox__input",attrs:{type:"checkbox",disabled:""}}),t._v(" "),n("label",{staticClass:"cds-checkbox__label"},[n("cds-skeleton",{staticClass:"cds-checkbox__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1)])}),[],!1,null,null,null).exports;Kn.install=function(t){t.component(Kn.name,Kn)},Nn.install=function(t){t.component(Nn.name,Nn)},qn.install=function(t){t.component(qn.name,qn)},"undefined"!=typeof window&&window.Vue&&(Kn.install(window.Vue),Nn.install(window.Vue),qn.install(window.Vue));function Wn(t){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(t)}i(7941);var Yn={name:"CdsCombobox",components:{CdsInput:Vn,CdsInputLabel:Pn,CdsInputDescription:Hn,CdsInputError:zn,CdsIcon:cn},mixins:[hn],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{label:{type:String,required:!0,description:"Лейбл комбобокса"},description:{type:String,default:"",description:"Описание комбобокса"},placeholder:{type:String,default:"",description:"Плейсхолдер комбобокса"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},filter:{type:Boolean,default:!0,description:"Фильтрация списка во время поиска"},highlight:{type:Boolean,default:!1,description:"Выделение элемента списка во время поиска"},value:{type:[Object,String],default:"",description:"Выбранное значение Object: { name: string, value: string | number | undefined } (поддерживает v-model)",validator:function(t){var e=["string","number","undefined"].includes(Wn(t.value));return e||console.warn("CdsCombobox.value - значение должно содержать Object: { name: string, value: string | number | undefined }"),e}},options:{type:Array,required:!0,description:"Массив отображаемых данных. Object: { name: string, value: string | number }",validator:function(t){var e=t.every((function(t){return"string"==typeof t.name&&("string"==typeof t.value||"number"==typeof t.value)}));return e||console.warn("CdsCombobox.options - все опции должны содержать Object: { name: string, value: string | number }"),e}},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},loading:{type:Boolean,default:!1,description:"Состояние загрузки"},added:{type:Boolean,default:!1,description:"Возможность добавлять свой элемент в список"},loadMore:{type:Boolean,default:!1,description:"Возможность подгружать еще данные - событие: @loadMore"},loadMoreOffset:{type:[Number,String],default:0,description:"Отступ в пикселях до инициализации события loadMore"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},data:function(){return{isActive:!1,isSelect:!1,dataOption:this.value,internalName:"",internalOption:{},addingOption:{},debounce:null,isLoadMore:!1,isLoadMoreFinish:!1}},computed:{dataOptions:function(){return this.highlight?this._highlightHandler():this._filterHandler()},clearClasses:function(){return c({"cds-combobox__clear":!0},m.active,!!this.internalName)},comboboxClasses:function(){return c({"cds-combobox":!0},m.disabled,this.disabled)},containerClasses:function(){var t;return c(t={"cds-combobox__container":!0},m.active,this.isActive),c(t,m.disabled,this.disabled),c(t,m.invalid,this.error),t},events:function(){return{click:this._onClick,focus:this._onFocus,blur:this._onBlur,keydown:this._onKeyDown,input:this._onInput}},availableAddedOption:function(){return this.added&&!!this.internalName&&!this.dataOptions.map((function(t){return t.name.toLowerCase()})).includes(this.internalName.toLowerCase())},internalValue:{get:function(){return this.dataOption},set:function(t){this.isSelect=!!t.name,this.internalName=t.name,this.dataOption.value!==t.value&&(this.dataOption=t)}}},watch:{value:function(t){this.internalValue=t},isActive:function(t){this.internalOption=t?this.internalValue:{}},loadMore:function(t){this.isLoadMore=t}},mounted:function(){this._prepareComponent()},methods:{open:function(){this.isActive||(this.isActive=!0,this.$emit("open"))},close:function(){this.isActive&&(this.isActive=!1,this.$emit("close"))},change:function(t){var e=t.name,n=t.value;this.disabled||(this.isSelect=!0,this.internalValue={name:e,value:n},this._filterHandler(),this.close(),this.$emit("change",this.internalValue))},add:function(){this.addedOption={name:this.internalName,value:this.internalName},this.internalValue=this.addedOption,this.internalName="",this._filterHandler(),this.close(),this.$emit("add",this.internalValue)},reset:function(){this.internalValue="",this.internalName=""},setFocus:function(){this.$refs.input.$refs.input.focus()},_prepareComponent:function(){this.internalValue=this.dataOption,this.isFilter=!this.isHighlight},_onClearInput:function(){this.disabled||(this.reset(),this.setFocus(),this.$emit("change",this.internalValue),this.$emit("clear"))},_onClickArrow:function(){this.isActive?this.close():this.setFocus()},_onFocus:function(t){this.open(),this.$emit("focus",t)},_onBlur:function(t){var e=t.relatedTarget||document.activeElement;if(e){if([this.$refs.combobox,this.$refs.arrow,this.$refs.close].some((function(t){return t===e})))return;if(this.dataOptions.some((function(t){return t.value===e.getAttribute("value")})))return}this.isActive&&this.close(),this.internalName=this.internalValue.name,this.isSelect=this.internalName===this.internalValue.name,this.$emit("blur",t)},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this._pressHandler),c(e,v.esc,this._closeHandler),c(e,v.up,this._navigationHandler),c(e,v.down,this._navigationHandler),e);if(this.$emit("keydown",t),n[t.keyCode])return t.preventDefault(),n[t.keyCode](t);this.isSelect=!1},_onMouseMove:function(t){this.internalOption=t,this.$emit("mousemove",t)},_onClick:function(t){this.$emit("click",t)},_onInput:function(t){this.$emit("input",t)},_closeHandler:function(){this.reset(),this.close()},_filterHandler:function(){var t=this;return this.isSelect?this.options:this.options.filter((function(e){return e.name?e.name.trim().toLowerCase().includes(t.internalName?t.internalName.trim().toLowerCase():""):e}))},_highlightHandler:function(){var t=this,e=this.options.findIndex((function(e){return e.name?e.name.trim().toLowerCase().includes(t.internalName?t.internalName.trim().toLowerCase():""):e}));return e>=0&&(this.internalOption=this.options[e],this.$nextTick((function(){t._scrollOptionsPosition(e)}))),this.options},_navigationHandler:function(t){var e=this;if(!this.isActive)return this.open(),!0;if(this.dataOptions.length){var n,i,r=t.keyCode===v.up,o=t.keyCode===v.down,s=this.dataOptions,u=s.length-1,a=this.internalOption.value,l=r?0:u;if(a&&(n=a),a&&(l=s.findIndex((function(t){return t.value===n}))),r)i=l>0?l-1:u;else{if(!o)return!1;i=l<u?l+1:0}this.internalOption=s[i],this.$nextTick((function(){e._scrollOptionsPosition(i)}))}},_pressHandler:function(){if(!Object.keys(this.internalOption).length)return this.isActive?this.close():this.open(),!0;this.change(this.internalOption)},_scrollOptionsPosition:function(t){this.$refs.options&&this.$refs.option&&(this.$refs.options.scrollTop>this.$refs.option[t].offsetTop?this.$refs.options.scrollTop=this.$refs.option[t].offsetTop:this.$refs.options.scrollTop+this.$refs.options.clientHeight<this.$refs.option[t].offsetTop+this.$refs.option[t].offsetHeight&&(this.$refs.options.scrollTop=this.$refs.option[t].offsetTop+this.$refs.option[t].offsetHeight-this.$refs.options.clientHeight))},_onScrollList:function(t){if(!this.isLoadMoreFinish&&this.loadMore&&!this.isLoadMore){var e=t.target;e.scrollTop>=e.scrollHeight-e.offsetHeight-+this.loadMoreOffset&&(this.isLoadMore=!0,this.$emit("loadMore",this.done))}},done:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isLoadMore=!1,this.isLoadMoreFinish=t}}},Gn=_(Yn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.comboboxClasses},[t.label?n("CdsInputLabel",{attrs:{id:t.id,label:t.label,optional:t.optional,"optional-label":t.optionalLabel}}):t._e(),t._v(" "),t.description?n("CdsInputDescription",{staticClass:"cds-combobox__description",attrs:{description:t.description}}):t._e(),t._v(" "),n("div",t._b({ref:"combobox",class:t.containerClasses,attrs:{role:"listbox",tabindex:"-1"}},"div",t.$attrs,!1),[n("CdsInput",t._g({ref:"input",staticClass:"cds-combobox__field",attrs:{id:t.id,placeholder:t.placeholder,disabled:t.disabled,"aria-label":t.isActive?"Открыть меню":"Закрыть меню","aria-controls":t.id,"aria-owns":t.id,"aria-expanded":t.isActive,"aria-haspopup":"true",autocomplete:"off",tabindex:"0"},scopedSlots:t._u([{key:"suffix",fn:function(){return[t.loading?n("CdsLoading",{attrs:{active:t.loading,small:"",fixed:""}}):t._e(),t._v(" "),t.error?n("button",{staticClass:"cds-combobox__icon cds-combobox__alert",attrs:{type:"button"}},[n("CdsIcon",{attrs:{name:"alert"}})],1):t._e(),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.internalName,expression:"internalName"}],ref:"close",class:["cds-combobox__icon",t.clearClasses],attrs:{type:"button",title:"Очистить поле ввода"},on:{click:t._onClearInput}},[n("CdsIcon",{attrs:{name:"remove"}})],1),t._v(" "),n("button",{ref:"arrow",staticClass:"cds-combobox__icon cds-combobox__arrow",attrs:{type:"button","aria-label":t.isActive?"Открыть меню":"Закрыть меню",tabindex:"-1"},on:{click:t._onClickArrow}},[n("CdsIcon",{attrs:{name:"chevron-down"}})],1)]},proxy:!0}]),model:{value:t.internalName,callback:function(e){t.internalName=e},expression:"internalName"}},t.events)),t._v(" "),n("div",{ref:"options",staticClass:"cds-combobox__options",attrs:{role:"list"},on:{scroll:t._onScrollList}},[t._l(t.dataOptions,(function(e,i){var r;return n("div",{key:"combo-box-"+i,ref:"option",refInFor:!0,class:["cds-combobox__option",(r={},r["cds-combobox__option--highlighted"]=t.internalOption.value===e.value,r)],attrs:{value:e.value,title:e.name},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.change(e)},mousemove:function(n){return t._onMouseMove(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),t._v(" "),t.isLoadMore?n("div",{staticClass:"cds-combobox__option cds-combobox__option--load-more"},[n("cds-loading",{attrs:{small:"",active:""}})],1):t._e(),t._v(" "),t.availableAddedOption?n("div",{ref:"add",staticClass:"cds-combobox__option cds-combobox__added",attrs:{value:t.internalName},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.add.apply(null,arguments)},mousemove:function(e){return t._onMouseMove({name:t.internalName,value:t.internalName})}}},[n("span",{staticClass:"cds-combobox__added--value"},[t._v(t._s(t.internalName))]),t._v(" "),n("span",{staticClass:"cds-combobox__added--button"},[t._v("Добавить")])]):t._e()],2)],1),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null),Jn=Gn.exports,Zn=_({name:"CdsComboboxSkeleton",components:{CdsInputSkeleton:jn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Jn.install=function(t){t.component(Jn.name,Jn)},Zn.install=function(t){t.component(Zn.name,Zn)},"undefined"!=typeof window&&window.Vue&&(Jn.install(window.Vue),Zn.install(window.Vue));var Xn={type:["standard","selectable","clickable","expandable"],color:["primary","secondary"]},Qn=_({name:"CdsContainer",components:{CdsIcon:cn},mixins:[hn],inheritAttrs:!1,model:{prop:"model",event:"change"},props:{model:{type:[Number,String,Boolean,Array],required:!1,default:null,description:"Внешняя модель для контейнера, v-model"},value:{type:[Number,String,Boolean,Array],required:!1,default:null,description:"Значение выбираемого контейнера"},color:{type:String,required:!1,default:"primary",available:Xn.color,description:"Фон контейнера",validator:function(t){return b(Xn.color,t,"CdsContainer.color")}},selected:{type:Boolean,required:!1,default:!1,description:"Состояние выбран\\не выбран"},expanded:{type:Boolean,required:!1,default:!1,description:"Состояние открыт \\закрыт"},expandingArrowBefore:{type:Boolean,required:!1,default:!1,description:"Шеврон до заголовка \\после"},type:{type:String,required:!1,default:"standard",available:Xn.type,description:"Тип контейнера",validator:function(t){return b(Xn.type,t,"CdsContainer.type")}},group:{type:String,required:!1,default:null,description:"Название группы для радио-кнопок"},href:{type:[String,Object],required:!1,default:null,description:"Ссылка для контейнера. Только для type=clickable"},blank:{type:Boolean,required:!1,default:!1,description:"Открыть ли в новой вкладке"},useRouter:{type:Boolean,default:!1,description:"Используется ли vue router для ссылки. Только для type=clickable"},label:{type:String,required:!0,description:"Атрибут aria-label"},tag:{type:String,required:!1,default:"div",description:"Тег контейнера"}},data:function(){return{isSelected:this.selected,isExpand:this.expanded,isActive:!1,isFocused:!1,isHovered:!1}},computed:{classes:function(){var t;return c(t={"cds-container":!0,"cds-container__expandable--extended":this.isExpand&&"expandable"===this.type},"cds-container__".concat(this.type),this.type),c(t,"cds-container--".concat(this.color),!0),c(t,m.checked,this.shouldBeSelected),c(t,m.active,this.isActive),t},expandableClasses:function(){return{"cds-container__expandable-header":!0,"cds-container__expandable-header--arrow-before":this.expandingArrowBefore}},events:function(){return p(p({},this.$listeners),{},{change:this.change,focus:this._onFocus,blur:this._onBlur,click:this._onClick,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut,keydown:this._onKeyDown})},shouldBeSelected:function(){return"selectable"===this.type&&(null!==this.model?Array.isArray(this.model)?this.model.includes(this.value):this.group?this.model===this.value:"string"==typeof this.model||!!this.model:this.isSelected)},iconName:function(){return this.shouldBeSelected?"check-fill":"check"},containerTag:function(){return"clickable"===this.type?this.useRouter?"router-link":"a":this.tag},routerLink:function(){return this.useRouter?this.href:null},tabIndex:function(){return this.href?0:null},target:function(){return this.blank?"_blank":null}},watch:{expanded:function(t){this.isExpand=t},model:function(t){"boolean"==typeof t||t.length||(this.isSelected=!1)}},created:function(){this._validateHrefProp(),this._validateSelectableContainer()},updated:function(){this._validateHrefProp(),this._validateSelectableContainer()},mounted:function(){this.isSelected=this.shouldBeSelected},methods:{change:function(t){if("selectable"!==this.type)return!1;var e;if(this.isSelected=!!this.group||t,Array.isArray(this.model)){var n=Un(this.model);this.isSelected?n.push(this.value||this.isSelected):n.splice(n.indexOf(this.value||this.isSelected),1),e=n}else e=this.group?this.value:this.isSelected;return this.$emit("change",e),e},toggleExpandableContainer:function(){this.isExpand=!this.isExpand,this.$emit("expand",this.isExpand)},_onClick:function(t){"selectable"===this.type&&(t.preventDefault(),this.change(!this.isSelected)),"clickable"===this.type&&(this.isActive=!this.isActive),this.$emit("click",t)},_onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},_onBlur:function(t){this.isFocused=!1,this.isActive=!1,this.$emit("blur",t)},_onMouseOver:function(t){this.isHovered=!0,this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,this.$emit("mouseout",t)},_onKeyDown:function(t){t.keyCode===v.enter&&"clickable"===this.type&&this._onClick(t),t.keyCode===v.space&&"selectable"===this.type&&this.isFocused&&(t.preventDefault(),this.change(!this.isSelected)),this.$emit("keydown",t)},_validateHrefProp:function(){return"clickable"!==this.type||(!!this.href||(console.error("Vue[warn]:",'CdsContainer - Missing required prop: "href"'),!1))},_validateSelectableContainer:function(){return"selectable"!==this.type||(t=!0,Array.isArray(this.model)&&(this.value||(console.error("Vue[error]:",'CdsContainer - Missing required prop: "value"'),t=!1),this.group&&(console.error("Vue[error]:","CdsContainer - при наличии group в компоненте v-model не может быть массивом"),t=!1)),this.group&&!this.model&&(console.warn("Vue[warn]: Используйте v-model для групповых контейнеров"),t=!1),this.group&&this.model&&(this.value||(console.error("Vue[error]:",'CdsContainer - Missing required prop: "value"'),t=!1)),t);var t}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return"selectable"===t.type?n(t.containerTag,t._g(t._b({tag:"component",class:t.classes,attrs:{"aria-label":t.label,tabindex:"0"}},"component",t.$attrs,!1),t.events),[n("label",{attrs:{for:t.id}},[n("input",{attrs:{id:t.id,type:t.group?"radio":"checkbox",name:t.group,title:t.label,tabindex:"-1"},domProps:{value:t.value,checked:t.shouldBeSelected}}),t._v(" "),n("CdsIcon",{staticClass:"cds-container__icon",attrs:{name:t.iconName}}),t._v(" "),t._t("default")],2)]):"expandable"===t.type?n(t.containerTag,t._g(t._b({ref:"container",tag:"component",class:t.classes,attrs:{href:t.href,to:t.routerLink,tabindex:t.tabIndex,target:t.target,"aria-label":t.label}},"component",t.$attrs,!1),t.events),[n("div",{class:t.expandableClasses},[n("div",{staticClass:"cds-container__expandable-header-content"},[t._t("header")],2),t._v(" "),n("button",{staticClass:"cds-container__expandable-header-button",on:{click:t.toggleExpandableContainer}},[n("CdsIcon",{attrs:{name:t.isExpand?"chevron-up":"chevron-down"}})],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"expandable"!==t.type||t.isExpand,expression:"type !== 'expandable' || isExpand"}]},[t._t("default")],2)]):n(t.containerTag,t._g(t._b({ref:"container",tag:"component",class:t.classes,attrs:{href:t.href,to:t.routerLink,tabindex:t.tabIndex,target:t.target,"aria-label":t.label}},"component",t.$attrs,!1),t.events),[t._t("default")],2)}),[],!1,null,null,null).exports;Qn.install=function(t){t.component(Qn.name,Qn)},"undefined"!=typeof window&&window.Vue&&Qn.install(window.Vue);var ti=Qn,ei=_({name:"CdsContentSwitcher",data:function(){return{count:0}},computed:{events:function(){return p(p({},this.$listeners),{},{change:this.change})},columns:function(){return"grid-template-columns: repeat(".concat(this.count,", 1fr)")}},created:function(){this.$on("select",this.change)},mounted:function(){this._initial()},methods:{_initial:function(){var t=this._getChildren();if(this.count=t.length,t.length){var e=t.findIndex((function(t){return t.selected}));-1!==e?t[e].isSelected=!0:t[0].isSelected=!0}},_getChildren:function(){return this.$children.filter((function(t){return t._$ContentSwitcherButton}))},change:function(t){var e=this._getChildren();if(e.length){var i,r=n(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.isSelected=o.id===t}}catch(t){r.e(t)}finally{r.f()}this.$emit("change",t)}}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",t._g({staticClass:"cds-content-switcher",style:t.columns,attrs:{role:"tablist"}},t.events),[t._t("default")],2)}),[],!1,null,null,null).exports,ni={tooltipAlign:["start","center","end"]},ii=_({name:"CdsContentSwitcherButton",components:{CdsTooltip:bn},props:{id:{type:[String,Number],required:!0,description:"ID кнопки для связи с переключаемым контентом"},text:{type:String,required:!1,default:"",description:"Текст кнопки переключателя (может быть в slot)"},iconAfter:{type:Boolean,default:!1,description:"Иконка после текста"},selected:{type:Boolean,default:!1,description:"Выбрать элемент"},disabled:{type:Boolean,default:!1,description:"Заблокированное состояние"},tooltip:{type:String,default:"",description:"Текст всплывающей подсказки"},tooltipAlign:{type:String,default:"center",available:ni.tooltipAlign,validator:function(t){var e=ni.tooltipAlign,n=t.match(new RegExp("".concat(e.join("|"))));return n||console.warn("CdsContentSwitcherButton.tooltipAlign должно быть одно из: ".concat(e.join(", "))),n},description:"Выравнивание подсказки"}},data:function(){return{isSelected:!1}},computed:{classes:function(){var t;return c(t={"cds-content-switcher__button":!0,"cds-content-switcher__button--icon-after":this.hasText&&this.iconAfter},m.disabled,this.disabled),c(t,m.active,this.isSelected),t},classesIcon:function(){return{"cds-content-switcher__button--icon":!0,"cds-content-switcher__button--icon-with-text":this.hasText}},events:function(){return p(p({},this.$listeners),{},{click:this._onClick})},hasText:function(){return!!this.$slots.default||!!this.text},hasTooltip:function(){return this.tooltip?"CdsTooltip":"div"},hasIcon:function(){return!!this.$slots.icon}},watch:{selected:{handler:function(t){t&&this.select()},immediate:!0}},created:function(){this._$ContentSwitcherButton=!0},methods:{_onClick:function(t){this.select(),this.$emit("click",t)},select:function(){this.$parent.$emit("select",this.id)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.hasTooltip,{tag:"component",staticClass:"cds-content-switcher__item",attrs:{tip:t.tooltip?t.tooltip:null,align:t.tooltip?t.tooltipAlign:null,tabindex:"-1"}},[n("button",t._g(t._b({class:t.classes,attrs:{role:"tab",tabindex:"0",disabled:t.disabled}},"button",t.$attrs,!1),t.events),[t.hasIcon?n("span",{class:t.classesIcon},[t._t("icon")],2):t._e(),t._v("\n "+t._s(t.text)+"\n "),t._t("default")],2)])}),[],!1,null,null,null).exports,ri=_({name:"CdsContentSwitcherSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"cds-switcher"},[e("cds-skeleton",{attrs:{width:"240px",height:"32px"}})],1)}),[],!1,null,null,null).exports;ei.install=function(t){t.component(ei.name,ei)},ii.install=function(t){t.component(ii.name,ii)},ri.install=function(t){t.component(ri.name,ri)},"undefined"!=typeof window&&window.Vue&&(ei.install(window.Vue),ii.install(window.Vue),ri.install(window.Vue));i(2526),i(1817);var oi=_({name:"CdsDataTableBody"},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("tbody",t._g({},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports,si=_({name:"CdsDataTableRow",directives:{expandedContent:{inserted:function(t){return t.parentNode.after(t)}}},components:{CdsButton:k,CdsCheckbox:Kn,CdsIcon:cn},props:{head:{type:Boolean,default:!1}},data:function(){return{hoverable:!1,selectable:!1,selected:!1,expandable:!1,expanded:!1,expandableIndentDisable:!1,multiselectable:!1,isHead:this.head,indeterminate:!1}},computed:{classes:function(){var t={};return t[m.checked]=(this.selectable||this.multiselectable)&&this.selected,t[m.active]=this.expandable&&this.expanded,t},tabIndex:function(){return this.selectable||this.hoverable?0:null},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,keydown:this._onKeyDown})},cellTag:function(){return this.isHead?"TH":"TD"}},methods:{_onClick:function(t){t.target.tagName!==this.cellTag&&"TR"!==t.target.tagName||((this.selectable||this.multiselectable)&&(this.selected=!this.selected,this.$emit("select",this.selected)),this.hoverable&&this.$emit("press",t),this.$emit("click",t))},_onKeyDown:function(t){t.target.tagName!==this.cellTag&&"TR"!==t.target.tagName||t.keyCode!==v.enter&&t.keyCode!==v.space||(t.preventDefault(),(this.selectable||this.multiselectable)&&(this.selected=!this.selected,this.$emit("select",this.selected)),this.hoverable&&this.$emit("press",t),this.$emit("keydown",t))},_toggleExpandedSlot:function(){this.expanded=!this.expanded,this.$emit("expand",this.expanded)},_multiselectChange:function(t){var e=!this.indeterminate&&t;this.selected=e,this.$refs.checkbox.$refs.input.checked=e,this.$emit("select",e)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",t._g({class:t.classes,attrs:{tabindex:t.tabIndex}},t.events),[t.multiselectable?n(t.cellTag,{tag:"component",staticClass:"selection"},[n("CdsCheckbox",{ref:"checkbox",attrs:{label:"","hidden-label":"",indeterminate:t.indeterminate},on:{change:t._multiselectChange},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}})],1):t._e(),t._v(" "),t.expandable?n(t.cellTag,{tag:"component",staticClass:"expand"},[n("cds-button",{attrs:{"icon-only":""},on:{click:t._toggleExpandedSlot},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"chevron-down"}})]},proxy:!0}],null,!1,127842286)})],1):t._e(),t._v(" "),t._t("default"),t._v(" "),t.expandable&&!t.isHead?n("tr",{directives:[{name:"expanded-content",rawName:"v-expanded-content"}],tag:"component",class:"expandable-row"},[t.expandableIndentDisable?t._e():n("td"),t._v(" "),n("td",{attrs:{colspan:"999"}},[n("div",{staticClass:"expandable-content"},[t._t("expandableContent")],2)])]):t._e()],2)}),[],!1,null,null,null).exports,ui=_({name:"CdsTableSortLabel",components:{CdsIcon:cn},props:{order:{type:String,default:"none"}},computed:{iconName:function(){return"asc"===this.order?"arrow-up":"desc"===this.order?"arrow-down":"arrows-vertical"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("CdsIcon",{staticClass:"sortable-icon",attrs:{name:t.iconName}})}),[],!1,null,null,null).exports,ai=["left","right","center","null"],li=["asc","desc","none"],ci=_({name:"CdsDataTableHeader",components:{CdsDataTableSortLabel:ui},model:{event:"sort",prop:"order"},props:{align:{type:String,default:null,validator:function(t){return b(ai,t,"CdsDataTableHeader.align")}},text:{type:String,default:"",description:"Текст заголовка"},sortable:{type:Boolean,default:!1,description:"Сортировка столбцов"},order:{type:String,default:"none",description:"Вид сортировки",validator:function(t){return b(li,t,"CdsDataTableHeader.order")}},width:{type:String,default:null,description:"Задать фиксированную ширину колонке"}},data:function(){return{internalAlign:null,internalWidth:null,nextSortOrder:{asc:"desc",desc:"none",none:"asc"}}},computed:{classes:function(){var t;return c(t={},this.internalAlign,"left"!==this.internalAlign&&null!==this.internalAlign),c(t,this.sortOrder,"none"!==this.sortOrder),t},styles:function(){return{width:this.internalWidth}},tabIndex:function(){return this.sortable?0:null},sortOrder:function(){return"asc"!==this.order&&"desc"!==this.order?"none":this.order},events:function(){return{click:this._onClick,keydown:this._onKeyDown}}},watch:{align:function(t){this.internalAlign=t},width:function(t){this.internalWidth=t}},created:function(){this.internalAlign=this.align,this.internalWidth=this.width},methods:{_onClick:function(t){this.$emit("sort",this.nextSortOrder[this.sortOrder]),this.$emit("click",t)},_onKeyDown:function(t){t.keyCode!==v.enter&&t.keyCode!==v.space||(t.preventDefault(),this.$emit("sort",this.nextSortOrder[this.sortOrder]),this.$emit("keydown",t))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("th",t._g({class:t.classes,style:t.styles,attrs:{"aria-sort":t.sortOrder,tabindex:t.tabIndex}},t.events),[t.sortable&&"right"===t.internalAlign?n("CdsDataTableSortLabel",{attrs:{order:t.sortOrder}}):t._e(),t._v("\n "+t._s(t.text)+"\n "),t._t("default"),t._v(" "),t.sortable&&"right"!==t.internalAlign?n("CdsDataTableSortLabel",{attrs:{order:t.sortOrder}}):t._e()],2)}),[],!1,null,null,null).exports,di=_({name:"CdsDataTableCell",props:{noWrap:{type:Boolean,default:!1,description:"Запретить выравнивание"},noVerticalPad:{type:Boolean,default:!1,description:"Отключить вертикальные внутренние отступы"},ellipsis:{type:Boolean,default:!1,description:"Текст колонки ограничивается одной строкой с многоточием"}},data:function(){return{align:null}},computed:{classes:function(){var t;return c(t={},this.align,"left"!==this.align&&null!==this.align),c(t,"nowrap",this.noWrap),c(t,"no-vertical-pad",this.noVerticalPad),c(t,"ellipsis",this.ellipsis),t}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("td",t._g({class:t.classes},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports,fi={align:["left","center","right","null"],rowSize:["standard","short"]},hi={name:"CdsDataTable",components:{CdsDataTableBody:oi,CdsDataTableRow:si,CdsDataTableHeader:ci,CdsDataTableCell:di},mixins:[hn],props:{title:{type:String,default:"",description:"Заголовок таблицы"},description:{type:String,default:"",description:"Описание таблицы"},columns:{type:Array,default:function(){return[]},description:"Данные шапки таблицы"},align:{type:Array,default:function(){return[]},description:"Выравнивание ячеек",available:fi.align,validator:function(t){var e=fi.align,n=t.every((function(t){return String(t).match(new RegExp("(".concat(e.join("|"),")")))}));return n||console.warn("CdsDataTableTable.align должно быть одно из следующих: ".concat(e.join(", "))),n}},colWidth:{type:Array,default:function(){return[]},description:"Ширина колонок (в пикселях или процентах)"},data:{type:Array,default:function(){return[]},description:"Данные тела таблицы"},sortable:{type:Boolean,default:!1,description:"Сортировка столбцов"},sortedCol:{type:Object,default:null,description:"Индекс сортированной колонки с видом сортировки. Object { index, order }",validator:function(t){var e=!0;if("object"===Wn(t)){"number"!=typeof t.index&&(e=!1,console.warn("CdsDataTableHeader.sortedCol должен содержать index типа number"));var n=["asc","desc","none"];"string"==typeof t.order&&t.order.match(new RegExp("(".concat(n.join("|"),")")))||(e=!1,console.warn("CdsDataTableHeader.sortedCol должен содержать order один из следующих: ".concat(n.join(", "))))}return e}},selectable:{type:Boolean,default:!1,description:"Выделение строк"},selectedRow:{type:[Number,Object],default:null,description:"[DEPRECATED] Индекс выделенной строки. (для плоских данных Number, для группированных – Object { rowIndex, bodyIndex }",validator:function(t){var e=!0;return"object"===Wn(t)&&("number"==typeof t.rowIndex&&"number"==typeof t.bodyIndex||(e=!1,console.warn("CdsDataTableHeader.selectedRow должен содержать rowIndex и bodyIndex типа number"))),e}},selectedRows:{type:[Array,Number,Object],default:null,description:"Индекс или массив индексов выделенных строк. (для плоских данных Number, для группированных – Object { rowIndex, bodyIndex }",validator:function(t){var e=!0;if("object"===Wn(t)){if(Array.isArray(t))return e;"number"==typeof t.rowIndex&&"number"==typeof t.bodyIndex||(e=!1,console.warn("CdsDataTableHeader.selectedRow должен содержать rowIndex и bodyIndex типа number"))}return e}},hoverable:{type:Boolean,default:!1,description:"Подсвечивание строк"},expandable:{type:Boolean,default:!1,description:"Раскрывающиеся строки (slot: expandedContent)"},expandableIndentDisable:{type:Boolean,default:!1,description:"Убрать внутренний отступ в расширяемой строке"},multiselectable:{type:Boolean,default:!1,description:"Выбираемые строки (checkbox)"},autoWidth:{type:Boolean,default:!1,description:"Автоширина"},horizontalScroll:{type:Boolean,default:!1,description:"Горизонтальный скролл таблицы"},borderless:{type:Boolean,default:!1,description:"Убрать границу между строками"},ellipsis:{type:Boolean,default:!1,description:"Текст ячеек ограничивается одной строкой с многоточием"},rowSize:{type:String,default:"standard",description:"Высота строк",available:fi.rowSize,validator:function(t){return b(fi.rowSize,t,"CdsDataTableTable.rowSize")}}},data:function(){return{hasHeading:!1,hasToolbar:!1,hasEmptyMessage:!1,hasData:!1,hasSlotData:!1,hasSlotHeader:!1,hasGroupData:!1,internalColumns:[],internalData:[],internalSelectedRows:null}},computed:{containerClasses:function(){return{"cds-data-table":!0,"cds-data-table__auto-width":this.autoWidth,"cds-data-table__horizontal-scroll":this.horizontalScroll}},tableClasses:function(){return c({"cds-data-table__table":!0,"cds-data-table__table--hoverable":this.hoverable,"cds-data-table__table--selectable":this.selectable,"cds-data-table__table--multiselectable":this.multiselectable,"cds-data-table__table--sortable":this.sortable,"cds-data-table__table--borderless":this.borderless,"cds-data-table__table--ellipsis":this.ellipsis,"cds-data-table__table--group":this.hasGroupData,"cds-data-table__table--expandable":this.expandable},"cds-data-table__table--".concat(this.rowSize),"standard"!==this.rowSize)},events:function(){return p(p({},this.$listeners),{},{mouseover:this._onMouseOver})}},watch:{columns:function(){this._prepareColumns()},data:function(){this._checkElements(),this.internalData=this.hasData&&!this.hasGroupData?[this.data]:this.data},selectedRow:function(){this.internalSelectedRows=this.selectedRow},internalSelectedRows:function(){this._prepareHeaderRow(),this._prepareHeaderSlots()},multiselectable:function(){var t=this;this._checkElements(),this._prepareColumns(),this._prepareInternalSelectedRows(),this.$nextTick((function(){t._prepareDataSlots(),t._prepareHeaderSlots(),t._prepareChildren()}))}},created:function(){this._validationSelectableTable()},beforeMount:function(){var t=this;this._checkElements(),this._prepareColumns(),this._prepareInternalSelectedRows(),this.internalData=this.hasData&&!this.hasGroupData?[this.data]:this.data,this.$nextTick((function(){t._prepareDataSlots(),t._prepareHeaderSlots(),t._prepareChildren()}))},beforeUpdate:function(){var t=this;this._checkElements(),this.$nextTick((function(){t._prepareDataSlots(),t._prepareHeaderSlots(),t._prepareChildren()}))},methods:{unselectRow:function(){this.onSelect(null)},_getAlign:function(t){return this.align[t]||null},_getColWidth:function(t){return this.colWidth[t]||null},_checkElements:function(){this.hasHeading=!!this.title.length||!!this.description.length,this.hasToolbar=!!this.$slots.toolbar,this.hasEmptyMessage=!!this.$slots["empty-message"],this.hasData=this.data.length,this.hasSlotData=!!this.$slots.data,this.hasSlotHeader=!!this.$slots.header,this.hasSlotData?this.hasGroupData=this.$slots.data.length>1:this.hasGroupData=this.data[0]&&Array.isArray(this.data[0][0]),this.hasData&&this.hasSlotData&&console.warn("CdsDataTable: установлено два типа данных. Необходимо использовать один (prop или slot).")},_prepareInternalSelectedRows:function(){var t=this.multiselectable?[]:null;this.internalSelectedRows=this.selectedRows?this.selectedRows:t},_prepareDataSlots:function(){var t=this;this.hasSlotData&&this.$slots.data.filter((function(t){return t.componentOptions&&t.componentInstance&&x("CdsDataTableBody",t.componentOptions.tag)})).forEach((function(e,n){e.componentOptions.children.filter((function(t){return t.componentOptions&&t.componentInstance&&x("CdsDataTableRow",t.componentOptions.tag)})).forEach((function(e,i){t.selectable&&e.componentInstance&&(e.componentInstance.selectable=!0,e.componentInstance.selected=t._isRowSelected(i,n),e.componentInstance.$off("select"),e.componentInstance.$on("select",(function(e){return t.onSelect(e,i,n)}))),t.hoverable&&e.componentInstance&&(e.componentInstance.hoverable=!0,e.componentInstance.$off("press"),e.componentInstance.$on("press",(function(){return t.onPress(i,n)}))),t.expandable&&e.componentInstance&&(e.componentInstance.expandable=t.expandable,e.componentInstance.expandableIndentDisable=t.expandableIndentDisable,e.componentInstance.$off("expand"),e.componentInstance.$on("expand",(function(){return t.onExpand(i)}))),e.componentInstance&&(e.componentInstance.multiselectable=t.multiselectable,t.multiselectable&&(e.componentInstance.selected=t._isRowsSelected(i),e.componentInstance.$off("select"),e.componentInstance.$on("select",(function(e){return t.onCheck(e,i,n)})))),e.componentOptions.children.filter((function(t){return t.componentOptions&&x("CdsDataTableCell",t.componentOptions.tag)})).forEach((function(e,n){e.componentInstance&&(e.componentInstance.align=t._getAlign(n),e.componentInstance.colWidth=t._getColWidth(n))}))}))}))},_prepareHeaderSlots:function(){var t=this;if(this.hasSlotHeader){var e=function(e){e.forEach((function(e,n){if(e.componentInstance){var i=t._getAlign(n),r=t._getColWidth(n),o=t.sortable;i&&(e.componentInstance.internalAlign=i),r&&(e.componentInstance.internalWidth=r),o&&(e.componentInstance.sortable=o)}}))},n=this.$slots.header.filter((function(t){return t.componentOptions&&t.componentInstance&&x("CdsDataTableRow",t.componentOptions.tag)}));if(n.length)n.forEach((function(n){var i=n.componentOptions.children.filter((function(t){return t.componentOptions&&t.componentInstance&&x("CdsDataTableHeader",t.componentOptions.tag)}));e(i),n.componentInstance.isHead=!0,t.expandable&&n.componentInstance&&(n.componentInstance.expandable=t.expandable,n.componentInstance.$off("expand"),n.componentInstance.$on("expand",(function(e){return t.onExpandAll(e)}))),n.componentInstance&&(n.componentInstance.multiselectable=t.multiselectable,t.multiselectable&&(n.componentInstance.indeterminate=!!t.internalSelectedRows.length,n.componentInstance.$off("select"),n.componentInstance.$on("select",(function(e){return t.onCheckAll(e)}))))}));else{var i=this.$slots.header.filter((function(t){return t.componentOptions&&x("CdsDataTableHeader",t.componentOptions.tag)}));e(i)}}},_prepareHeaderRow:function(){var t=this;this.hasData&&this.$children.forEach((function(e){var n=e.$options.propsData;(e.$options||n||Object.keys(n).includes("headerRow"))&&(e.multiselectable=t.multiselectable,e.multiselectable&&(e.indeterminate=!!t.internalSelectedRows.length,e.$off("select"),e.$on("select",(function(e){return t.onCheckAll(e)}))))}))},_prepareChildren:function(){var t=this;this.hasData&&this.$children.filter((function(t){return t.$options&&"CdsDataTableBody"===t.$options._componentTag})).forEach((function(e,n){e.$children.filter((function(t){return t.$options&&"CdsDataTableRow"===t.$options._componentTag})).forEach((function(e,i){t.selectable&&(e.selectable=t.selectable,e.selected=t._isRowSelected(i,n),e.$off("select"),e.$on("select",(function(e){return t.onSelect(e,i,n)}))),t.hoverable&&(e.hoverable=!0,e.$off("press"),e.$on("press",(function(){return t.onPress(i,n)}))),t.expandable&&(e.expandable=t.expandable,e.expandableIndentDisable=t.expandableIndentDisable,e.$off("expand"),e.$on("expand",(function(){return t.onExpand(i)}))),e.multiselectable=t.multiselectable,t.multiselectable&&(e.selected=t._isRowsSelected(i),e.$off("select"),e.$on("select",(function(e){return t.onCheck(e,i,n)}))),e.$children.filter((function(t){return t.$options&&"CdsDataTableCell"===t.$options._componentTag})).forEach((function(e,n){e.align=t._getAlign(n),e.colWidth=t._getColWidth(n)}))}))}))},_prepareColumns:function(){var t=this;this.internalColumns=this.columns.map((function(e,n){var i="none";return t.sortedCol&&t.sortedCol.order&&t.sortedCol.index===n&&(i=t.sortedCol.order),{text:e,order:i}}))},_isRowSelected:function(t,e){return!(!this.selectable||null===this.internalSelectedRows)&&(this.hasGroupData?this.internalSelectedRows.rowIndex===t&&this.internalSelectedRows.bodyIndex===e:this.internalSelectedRows===t)},_isRowsSelected:function(t){return!!this.multiselectable&&this.internalSelectedRows.includes(t)},onSort:function(t,e){if(this.sortable){var i,r=n(this.internalColumns);try{for(r.s();!(i=r.n()).done;){i.value.order="none"}}catch(t){r.e(t)}finally{r.f()}this.internalColumns[e].order=t,this.$emit("sort",{index:e,order:t})}},onSelect:function(t,e,n){if(this.selectable){var i=null;t&&(i=this.hasGroupData?{rowIndex:e,bodyIndex:n}:e),this.internalSelectedRows=i,this.internalData=Object.assign({},this.internalData),this.$emit("select",i)}},onPress:function(t,e){if(this.hoverable){var n=null;n=this.hasGroupData?{rowIndex:t,bodyIndex:e}:t,this.$emit("press",n)}},onExpand:function(t){this.expandable&&this.$emit("expand",t)},onExpandAll:function(t){var e=this;this.expandable&&(this.$slots.data.filter((function(t){return t.componentOptions&&x("CdsDataTableBody",t.componentOptions.tag)})).forEach((function(n){n.componentOptions.children.filter((function(t){return t.componentOptions&&x("CdsDataTableRow",t.componentOptions.tag)})).forEach((function(n){e.expandable&&n.componentInstance&&(n.componentInstance.expanded=t)}))})),this.$emit("expand",t))},onCheck:function(t,e,n){var i=this;this.multiselectable&&(t?this.internalSelectedRows.push(this.hasGroupData?{rowIndex:e,bodyIndex:n}:e):this.internalSelectedRows=this.internalSelectedRows.filter((function(t){return i.hasGroupData?!(t.rowIndex===e&&t.bodyIndex===n):t!==e})),this.$emit("select",this.internalSelectedRows))},onCheckAll:function(t){this.multiselectable&&(this.internalSelectedRows=[],this.hasSlotData?this._multiselectableCheckAllRowsInSlots(t):this._multiselectableCheckAllRowsInData(t),this.$emit("select",this.internalSelectedRows))},_multiselectableCheckAllRowsInData:function(t){var e=this;this.$children.filter((function(t){return t.$options&&"CdsDataTableBody"===t.$options._componentTag})).forEach((function(n){n.$children.filter((function(t){return t.$options&&"CdsDataTableRow"===t.$options._componentTag})).forEach((function(n,i){e.multiselectable&&(n.selected=t,n.indeterminate=!1,t&&e.internalSelectedRows.push(i))}))}))},_multiselectableCheckAllRowsInSlots:function(t){var e=this;this.$slots.data.filter((function(t){return t.componentOptions&&x("CdsDataTableBody",t.componentOptions.tag)})).forEach((function(n){n.componentOptions.children.filter((function(t){return t.componentOptions&&x("CdsDataTableRow",t.componentOptions.tag)})).forEach((function(n,i){e.multiselectable&&n.componentInstance&&(n.componentInstance.selected=t,n.componentInstance.indeterminate=!1,t&&e.internalSelectedRows.push(i))}))}))},_onMouseOver:function(t){var e=t.target;this.ellipsis&&["TD","TH"].includes(e.tagName)&&this._hasCellTextEllipsis(e)&&(e.title=t.target.textContent.trim()),this.$emit("mouseover",t)},_hasCellTextEllipsis:function(t){return t.scrollWidth>t.offsetWidth},_validationSelectableTable:function(){this.multiselectable&&this.selectable&&console.error("Vue[warn]:","CdsDataTable - не может быть одновременно multiselectable и selectable")}}},pi=_(hi,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.containerClasses},[t.hasHeading?n("div",{staticClass:"cds-data-table__heading"},[t.title?n("h4",[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.description?n("p",[t._v("\n "+t._s(t.description)+"\n ")]):t._e()]):t._e(),t._v(" "),t.hasToolbar?n("div",{staticClass:"cds-data-table__toolbar"},[t._t("toolbar")],2):t._e(),t._v(" "),t.hasData||t.hasSlotData?n("table",t._g({class:t.tableClasses},t.events),[n("thead",[t.hasSlotHeader?t._t("header"):n("CdsDataTableRow",{attrs:{head:""}},t._l(t.internalColumns,(function(e,i){return n("CdsDataTableHeader",{key:t.getDynamicItemIdByIndex(i),attrs:{text:e.text,align:t._getAlign(i),width:t._getColWidth(i),sortable:t.sortable,order:e.order},on:{sort:function(e){return t.onSort(e,i)}}})})),1)],2),t._v(" "),t._l(t.internalData,(function(e,i){return n("CdsDataTableBody",{key:t.getDynamicItemIdByIndex(i)},t._l(e,(function(e,i){return n("CdsDataTableRow",{key:t.getDynamicItemIdByIndex(i)},t._l(e,(function(e,i){return n("CdsDataTableCell",{key:t.getDynamicItemIdByIndex(i),domProps:{innerHTML:t._s(e)}})})),1)})),1)})),t._v(" "),t._t("data")],2):t._e(),t._v(" "),t.hasData||t.hasSlotData||!t.hasEmptyMessage?t._e():n("div",{staticClass:"cds-data-table__empty-message"},[t._t("empty-message")],2)])}),[],!1,null,null,null).exports,vi=_({name:"CdsDataTableSkeleton",data:function(){return{countRow:3}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"cds-data-table__table"},[n("thead",[n("tr",[n("th",[n("cds-skeleton",{attrs:{width:"64px",height:"8px"}})],1),t._v(" "),n("th",[n("cds-skeleton",{attrs:{width:"64px",height:"8px"}})],1),t._v(" "),n("th",[n("cds-skeleton",{attrs:{width:"64px",height:"8px"}})],1)])]),t._v(" "),n("tbody",t._l(t.countRow,(function(e){return n("tr",{key:e},[n("td",[n("cds-skeleton")],1),t._v(" "),n("td",[n("cds-skeleton")],1),t._v(" "),n("td",[n("cds-skeleton")],1)])})),0)])}),[],!1,null,null,null).exports;pi.install=function(t){t.component(pi.name,pi)},ci.install=function(t){t.component(ci.name,ci)},oi.install=function(t){t.component(oi.name,oi)},si.install=function(t){t.component(si.name,si)},di.install=function(t){t.component(di.name,di)},vi.install=function(t){t.component(vi.name,vi)},"undefined"!=typeof window&&window.Vue&&(pi.install(window.Vue),ci.install(window.Vue),oi.install(window.Vue),si.install(window.Vue),di.install(window.Vue),vi.install(window.Vue));function mi(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],s=!0,u=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){u=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(u)throw r}}return o}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i(3123);var gi=i(8393),_i=i.n(gi),yi=i(8809),wi=i(3550),bi=i.n(wi),Ci=i(6723),Ei=i.n(Ci),xi=/(\d{0,2})?:?(\d{0,2})?/,Ai={name:"CdsTime",components:{CdsInputLabel:Pn,CdsInput:Vn},mixins:[hn],inheritAttrs:!1,props:{label:{type:String,required:!0,description:"Обязательный лейбл"},timeFormat:{type:String,required:!1,default:"hh:mm",description:"[DEPRECATED] Формат времени"},placeholder:{type:String,required:!1,default:"чч:мм",description:"Плейсхолдер"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},hiddenLabel:{type:Boolean,required:!1,default:!1,description:"Скрыть лейбл"},value:{type:[String,Number],required:!1,default:"",validator:function(t){var e=!t||""!==String(t).match(xi)[0];return e||console.warn("Time.value должно быть формата hh:mm"),e},description:"Если установили v-model компоненту, то value автоматически подставится. Иначе писать самому."}},data:function(){return{internalValue:null}},computed:{events:function(){return p(p({},this.$listeners),{},{input:this._onInput,blur:this._onBlur})}},watch:{value:function(t){this.internalValue=this._mask(t),t!==this.internalValue&&this.$emit("input",this.internalValue)}},created:function(){this.internalValue=this.value},methods:{_onInput:function(t){this.internalValue=this._mask(t),this.$emit("input",this.internalValue)},_onBlur:function(t){this.internalValue=this._mask(t.target.value,!0),this.$emit("input",this.internalValue)},_mask:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.match(xi);if(!n)return"";var i=n[1]||"",r=n[2]||"";return i=this._prepareHours(i),r=this._prepareMinutes(r),e&&(i||r)&&(i=this._prepareZeroNumbers(i),r=this._prepareZeroNumbers(r)),i+(""!==r?"".concat(":").concat(r):"")},_prepareZeroNumbers:function(t){for(var e="",n=0;n<2;n++)e+=t[n]||0;return e},_prepareHours:function(t){return t>23?t=23:t[0]>2&&(t="0".concat(t)),t},_prepareMinutes:function(t){return t>59?t=59:t[0]>5&&(t="0".concat(t)),t}}},Di=_(Ai,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-date-picker__time"},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{id:t.id,label:t.label}}),t._v(" "),n("CdsInput",t._g(t._b({attrs:{label:t.label,placeholder:t.placeholder,disabled:t.disabled,inputmode:"numeric",pattern:"[0-9]*",maxlength:"5"},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}},"CdsInput",t.$attrs,!1),t.events))],1)}),[],!1,null,null,null).exports,ki={type:["simple","single","range"],locale:["ru","en"]},Fi=_({name:"CdsDatePicker",components:{CdsInputDescription:Hn,CdsInputError:zn,CdsIcon:cn,CdsInput:Vn,CdsInputLabel:Pn,CdsTime:Di},mixins:[hn],model:{prop:"value",event:"change"},props:{label:{type:String,default:"",description:"Лейб над полем выбора даты"},description:{type:String,default:null,description:"Вспомогательное описание"},type:{type:String,default:"simple",available:ki.type,description:"Тип выбора даты",validator:function(t){return b(ki.type,t,"CdsDatePicker.type")}},dateFormat:{type:String,default:"d.m.Y",description:"Формат даты"},timeFormat:{type:String,default:"H:i",description:"Формат времени"},allowInput:{type:Boolean,default:!1,description:"Разрешает пользователю вводить дату в поле ввода"},minDate:{type:[String,Date],default:null,description:'Минимальная дата, до которой возможен выбор (включительно). Принимаются даты, обработанные .toLocaleDateString() и строки вида: "10.03.2022"'},maxDate:{type:[String,Date],default:null,description:'Максимальная дата, с которой возможен выбор (включительно). Принимаются даты, обработанные .toLocaleDateString() и строки вида: "10.03.2022"'},locale:{type:String,default:"ru",available:ki.locale,description:"Локализация календаря",validator:function(t){return b(ki.locale,t,"CdsDatePicker.locale")}},placeholder:{type:String,default:"дд.мм.гггг",description:"Плейсхолдер в поле ввода даты"},enableTime:{type:Boolean,default:!1,description:"Отобразить поле ввода времени"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибки"},disabled:{type:Boolean,default:!1,description:"Заблокированное поле ввода даты"},disabledDates:{type:Array,default:function(){return[]},description:"Заблокированные даты"},options:{type:Object,default:function(){return{}},description:"Все доступные опции одной конфигурацией"},value:{type:[String,Object,Date,Array],default:null,description:"Выбранное значение даты (v-model)"}},data:function(){return{internalValue:this.value,initializedIcon:!1,initializedStyles:!1,time:void 0}},computed:{isSimple:function(){return"simple"===this.type},isSingle:function(){return"single"===this.type},isRange:function(){return"range"===this.type},inputValue:function(){return this.isSimple?this.internalValue:null},dateTimeFormat:function(){return this.enableTime?"".concat(this.dateFormat," ").concat(this.timeFormat):this.dateFormat},classes:function(){return c({"cds-date-picker":!0},m.disabled,this.disabled)},wrapperClasses:function(){return c({"cds-date-picker__wrapper":!0,"cds-date-picker__single":this.isSingle,"cds-date-picker__range":this.isRange},m.invalid,this.error)},events:function(){return{click:this._onClick,input:this._onInput,keydown:this._onKeyDown,keyup:this._onKeyUp,focus:this._onFocus,blur:this._onBlur}},language:function(){return"ru"===this.locale?yi.Russian:null}},watch:{value:function(t){if(this.isRange&&!Object.keys(t).length)return this.plugin.clear(!1,!1),this.internalValue=t,void(this.$refs.toDate.$el.querySelector("input").value="");var e=this.isRange?[t.startDate,t.endDate]:t;this.plugin&&this.plugin.setDate(e,!0,this.dateTimeFormat),this.isSimple&&(this.internalValue=this._mask(t))},type:function(){this._initPlugin()},options:function(){this._initPlugin()}},mounted:function(){this._initPlugin(),this._prependInputNum()},beforeDestroy:function(){this.plugin&&this.plugin.destroy()},methods:{open:function(){this.isSimple||(this._prepareStyles(this.plugin),this.plugin.open(),this.$emit("open"))},close:function(){this.isSimple||(this.plugin.close(),this.$emit("close"))},getDate:function(){return this.isRange?{startDate:_i().parseDate(this.internalValue.startDate,this.dateTimeFormat),endDate:_i().parseDate(this.internalValue.endDate,this.dateTimeFormat)}:_i().parseDate(this.internalValue,this.dateTimeFormat)},convertToIso:function(){return this.isRange?{startDate:this.getDate().startDate.toISOString(),endDate:this.getDate().endDate.toISOString()}:this.getDate().toISOString()},convertToTimestamp:function(){return this.isRange?{startDate:this.getDate().startDate.getTime(),endDate:this.getDate().endDate.getTime()}:this.getDate().getTime()},_initPlugin:function(){if(!this.isSimple){var t=this.$refs.date.$el.querySelector("input");this.plugin=new(_i())(t,this._getOptions())}},_getOptions:function(){var t=p({dateFormat:this.dateFormat,disable:this.disabledDates,locale:this.language,allowInput:this.allowInput,minDate:this.minDate,maxDate:this.maxDate,disableMobile:!0},this.options);if(t.static=!0,t.onClose=this._onClose,t.onChange=this._onChange,t.onReady=this._onReady,t.onMonthChange=this._onMonthChange,t.onYearChange=this._onYearChange,this.internalValue&&(t.defaultDate=this.isRange?[this.getDate().startDate,this.getDate().endDate]:this.getDate(),this.enableTime)){var e=this.$refs.time.$el.querySelector("input");if(e){var n=this.isRange?this.getDate().startDate:this.getDate();this.time=_i().formatDate(n,this.timeFormat),e.value=this.time}}if(this.isRange){var i=this.$refs.toDate.$el.querySelector("input");i&&(t.plugins=[new(bi())({input:i,position:"left"})])}return t},_onClose:function(){this.isRange&&this.value&&this.$refs.date.$el.querySelector("input").blur()},_onChange:function(t,e,n){var i,r,o=this;this._prepareStyles(n);var s=mi(t,2),u=s[0],a=s[1],l=function(t){return"object"===Wn(t)||"number"==typeof t?n.formatDate(t,o.dateTimeFormat):t||""};if(this.internalValue&&(this.isRange?(i=l(this.internalValue.startDate),r=l(this.internalValue.endDate)):i=l(this.internalValue)),this.enableTime){var c=this.$refs.time.$el.querySelector("input");c&&(this.time=c.value)}if(this.isRange)i===l(u)&&r===l(a)||(this.internalValue={startDate:l(u),endDate:l(a)},this.$emit("change",this.internalValue));else{if(i===l(u))return;this.internalValue=l(u),this.$emit("change",this.internalValue)}},_onReady:function(t,e,n){this._prepareStyles(n),this._prepareIcons(),this.$emit("ready",n)},_onTimeChange:function(t){if(this.enableTime){this.time=t;var e=this.internalValue&&"object"===Wn(this.internalValue)?this.internalValue.startDate&&this.internalValue.endDate:this.internalValue;if(this.plugin&&e){var n=this.isRange?this.getDate().startDate:this.getDate(),i="".concat(_i().formatDate(n,this.dateFormat)," ").concat(this.time);this.plugin.setDate(i,!0,this.dateTimeFormat)}this.$emit("timeChange",this.time)}},_onMonthChange:function(t,e,n){this._prepareStyles(n),this.$emit("monthChange",n)},_onYearChange:function(t,e,n){this._prepareStyles(n),this.$emit("yearChange",n)},_onClick:function(t){this.$emit("click",t)},_onInput:function(t){if(this.isSimple){if(this.internalValue=this._mask(t),t!==this.internalValue)return;this.$emit("change",this.internalValue)}this.$emit("input",t)},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this.open),c(e,v.down,this.open),c(e,v.space,this.open),c(e,v.esc,this.close),e);if(this.$emit("keydown",t),n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_onFocus:function(t){this.$emit("focus",t)},_onBlur:function(t){this.$emit("blur",t)},_onKeyUp:function(t){this.$emit("keyup",t)},_prepareStyles:function(t){if(!this.initializedStyles){var e=t.calendarContainer,i="flatpickr",r={classCalendarContainer:"cds-date-picker__calendar",classInnerContainer:"inner-container",classRContainer:"rContainer",classDayContainer:"day-container",classWeekDayContainer:"week-day-container",classPrevMonth:"prev-month",classNextMonth:"next-month",classCurrentMonth:"current-month",classMonths:"months",classWeekdays:"weekdays",classWeekday:"weekday",classDays:"days",classDay:"day"};if(e){var o=e.querySelector(".".concat(i,"-innerContainer")),s=e.querySelector(".".concat(i,"-weekdaycontainer")),u=e.querySelector(".dayContainer");for(var a in e.classList.add(r.classCalendarContainer),o.classList.add(r.classInnerContainer),s.classList.add(r.classWeekDayContainer),u.classList.add(r.classDayContainer),r){var l=".".concat(i,"-").concat(r[a]),c=r[a],d=e.querySelectorAll(l);if(Un(d).length){var f,h=n(d);try{for(h.s();!(f=h.n()).done;){var p=f.value;(p||c)&&p.classList.add(c)}}catch(t){h.e(t)}finally{h.f()}}}this.initializedStyles=!0}}},_prepareIcons:function(){if(!this.initializedIcon){var t=s().extend(cn);new t({propsData:{name:"chevron-left"}}).$mount(".prev-month > svg"),new t({propsData:{name:"chevron-right"}}).$mount(".next-month > svg"),this.initializedIcon=!0}},_mask:function(t){var e=this.dateFormat.replace(/[DMY]/gi,"").split("")[0];return Ei().toPattern(t,"99".concat(e,"99").concat(e,"9999"))},_prependInputNum:function(){var t=this.$refs.datepicker.querySelector(".numInput");t&&(t.type="text",t.maxLength=4)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"datepicker",class:t.classes},[n("cds-input-label",{directives:[{name:"show",rawName:"v-show",value:t.label,expression:"label"}],attrs:{id:t.id+"-input-1",label:t.label}}),t._v(" "),t.description?n("cds-input-description",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",{class:t.wrapperClasses},[n("div",{staticClass:"cds-date-picker__control"},[n("CdsInput",t._g({ref:"date",class:{"cds-date-picker__range--start":"range"===t.type},attrs:{id:t.id+"-input-1",type:"text",invalid:t.error,placeholder:t.placeholder,disabled:t.disabled,value:t.inputValue,autocomplete:"off",maxlength:"10","suffix-class":"input-suffix"}},t.events),[t.error||t.isSimple?t._e():n("CdsIcon",{staticClass:"cds-date-picker__icon",attrs:{slot:"suffix",name:"calendar","aria-label":t.label},slot:"suffix"})],1)],1),t._v(" "),t.isRange?n("div",{staticClass:"cds-date-picker__control"},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:t.id+"-input-2",label:t.label}}),t._v(" "),n("CdsInput",t._g({ref:"toDate",staticClass:"cds-date-picker__range--end",attrs:{id:t.id+"-input-2",type:"text",invalid:t.error,disabled:t.disabled,placeholder:t.placeholder,autocomplete:"off",maxlength:"10","suffix-class":"input-suffix"}},t.events),[t.error||t.isSimple?t._e():n("CdsIcon",{staticClass:"cds-date-picker__icon",attrs:{slot:"suffix",name:"calendar","aria-label":t.label},slot:"suffix"})],1)],1):t._e(),t._v(" "),t.enableTime?n("CdsTime",{ref:"time",attrs:{label:"time",disabled:t.disabled,"hidden-label":!0},on:{input:t._onTimeChange}}):t._e()],1),t._v(" "),t.error?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null).exports,Si=_({name:"CdsDatePickerSkeleton",components:{CdsInputSkeleton:jn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Fi.install=function(t){t.component(Fi.name,Fi)},Si.install=function(t){t.component(Si.name,Si)},Di.install=function(t){t.component(Di.name,Di)},"undefined"!=typeof window&&window.Vue&&(Fi.install(window.Vue),Si.install(window.Vue),Di.install(window.Vue));var Bi={appearance:["primary","inverse"]},$i=_({name:"CdsDrawer",model:{prop:"active",event:"change"},props:{active:{type:Boolean,default:!1,description:"Скрыть/Показать drawer (доступна v-model)"},open:{type:Boolean,default:!1,description:"Открываемый drawer"},right:{type:Boolean,default:!1,description:"Позиционирование drawer справа"},iconOnly:{type:Boolean,default:!1,description:"Маленький drawer"},absolute:{type:Boolean,default:!1,description:"Абсолютное позиционирование drawer"},borderless:{type:Boolean,default:!1,description:"Разделение между элементами"},fixedLayout:{type:Boolean,default:!1,description:"Фиксированный header и footer в drawer"},appearance:{type:String,required:!1,default:"primary",description:"Внешний вид бокового меню: primaty, inversive",available:Bi.appearance,validator:function(t){return b(Bi.appearance,t,"CdsDrawer.appearance")}}},data:function(){return{internalActive:this.active}},computed:{classes:function(){var t;return c(t={"cds-drawer":!0,"cds-drawer--open":this.open,"cds-drawer--icon-only":this.iconOnly,"cds-drawer--right":this.right,"cds-drawer--absolute":this.absolute,"cds-drawer--borderless":this.borderless,"cds-drawer--fixed-layout":this.fixedLayout},"cds-drawer--".concat(this.appearance),!0),c(t,m.active,this.internalActive),t},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer}},watch:{active:function(t){this.internalActive=t,t?this.$emit("open"):this.$emit("close")}},mounted:function(){this._prepareItems()},updated:function(){this._prepareItems()},methods:{_prepareItems:function(){for(var t=this.$children.filter((function(t){return t.$_CdsDrawerItem})),e=0;e<t.length;e++)t[e].right=this.right}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("aside",{class:t.classes},[t.hasHeaderSlot?n("div",{staticClass:"cds-drawer__header"},[t._t("header")],2):t._e(),t._v(" "),n("nav",{staticClass:"cds-drawer__content"},[n("ul",[t._t("default")],2)]),t._v(" "),t.hasFooterSlot?n("div",{staticClass:"cds-drawer__footer"},[t._t("footer")],2):t._e()])}),[],!1,null,null,null).exports,Ii=_({name:"CdsDrawerItem",components:{CdsTooltip:bn},props:{active:{type:Boolean,default:!1,description:"Активный ли элемент"},title:{type:String,default:"",description:"Название элемента (доступен также через slot#default)"},to:{type:[String,Object],default:"",description:"Ссылка или объект для навигации через vue-router"},href:{type:String,default:"",description:"Обычная ссылка"}},data:function(){return{right:!1}},computed:{classes:function(){return c({"cds-drawer__item":!0},m.active,this.active)},tooltipDirection:function(){return this.right?"left":"right"},tooltipDisabled:function(){return!this.$parent.iconOnly}},created:function(){this.$_CdsDrawerItem=!0}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:t.classes},[t.to?[n("cds-tooltip",{attrs:{tip:t.title,align:"center",direction:t.tooltipDirection,disabled:t.tooltipDisabled,tabindex:"-1"}},[t.to?n("router-link",{staticClass:"cds-drawer__item--link",attrs:{to:t.to}},[t._t("icon"),t._v(" "),n("span",{staticClass:"cds-drawer__item--content"},[t._v("\n "+t._s(t.title)+"\n "),t._t("default")],2)],2):t._e()],1)]:t.href?[n("cds-tooltip",{attrs:{tip:t.title,align:"center",direction:t.tooltipDirection,disabled:t.tooltipDisabled,tabindex:"-1"}},[n("a",{staticClass:"cds-drawer__item--link",attrs:{href:t.href}},[t._t("icon"),t._v(" "),n("span",{staticClass:"cds-drawer__item--content"},[t._v("\n "+t._s(t.title)+"\n "),t._t("default")],2)],2)])]:t._e()],2)}),[],!1,null,null,null).exports,Oi=_({name:"CdsDrawerGroup",components:{CdsAccordionItem:Bn,CdsAccordion:Sn},props:{title:{type:String,required:!0},active:{type:Boolean,default:!1,description:"Открыт/Скрыт"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-drawer__group"},[n("cds-accordion",[n("cds-accordion-item",{attrs:{open:t.active},scopedSlots:t._u([{key:"title",fn:function(){return[t._t("icon"),t._v(" "),n("span",[t._v(t._s(t.title))])]},proxy:!0},{key:"content",fn:function(){return[t._t("default")]},proxy:!0}],null,!0)})],1)],1)}),[],!1,null,null,null).exports,Li=_({name:"CdsDrawerLabel"},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"cds-drawer__label"},[t._t("default")],2)}),[],!1,null,null,null).exports;$i.install=function(t){t.component($i.name,$i)},Ii.install=function(t){t.component(Ii.name,Ii)},Oi.install=function(t){t.component(Oi.name,Oi)},Li.install=function(t){t.component(Li.name,Li)},"undefined"!=typeof window&&window.Vue&&($i.install(window.Vue),Ii.install(window.Vue),Oi.install(window.Vue),Li.install(window.Vue));i(2707);var Ti={name:"CdsDropdown",components:{CdsIcon:cn,CdsInputDescription:Hn},mixins:[hn],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{label:{type:String,default:"",description:"Лейбл"},description:{type:String,default:"",description:"Описание выпадающего списка"},placeholder:{type:String,default:"Выбрать",description:"Плейсхолдер выпадающего списка"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},value:{type:[String,Number],default:void 0,description:"Выбранное значение (также поддерживает v-model)"}},data:function(){return{isActive:!1,dataValue:this.value,isFocused:!1,isHovered:!1,internalItem:void 0}},computed:{classes:function(){return c({"cds-dropdown":!0},m.disabled,this.disabled)},controlClasses:function(){var t;return c(t={"cds-dropdown__control":!0},m.active,!this.disabled&&this.isActive),c(t,m.disabled,this.disabled),t},events:function(){return{click:this._onClick,focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut,keydown:this._onKeyDown}},internalValue:{get:function(){return this.dataValue},set:function(t){var e=this;this._getDropdownItems().forEach((function(n){var i=n.value===t;n.internalSelected=i,i&&(e.$refs.valueContent.innerHTML=n.internalContent)})),this.dataValue!==t&&(this.dataValue=t,this.$emit("change",this.dataValue))}}},watch:{value:function(t){this.internalValue=t},isActive:function(t){t||(this.internalItem=void 0)}},created:function(){var t=this;this.$on("mounted",(function(e){return t._onItemMount(e)})),this.$on("beforeDestroy",(function(e){return t._onItemBeforeDestroy(e)})),this.$on("blurItem",(function(e){return t._onBlurItem(e)}))},mounted:function(){this.internalValue=this.dataValue},methods:{open:function(){return!this.disabled&&!this.isActive&&(this.isActive=!0,this.$emit("open"),!0)},close:function(){if(!this.isActive)return!1;this.isActive=!1,this.$emit("close")},select:function(t){this.internalValue=t,this.$refs.dropdown.focus()},_onItemMount:function(t){t.internalSelected?this.internalValue=t.value:this.internalValue===t.value&&(t.internalSelected=!0,this.internalValue=t.value)},_onItemBeforeDestroy:function(t){t.value===this.internalValue&&(this.dataValue=null)},_onClick:function(t){this._isEventTargetDisabledItem(t.target)||(this.isActive?this.close():this.open(),this.$emit("click",t))},_onBlur:function(t){var e=t.relatedTarget||document.activeElement;this._isEventTargetDisabledItem(e)?this.$refs.dropdown.focus():this._getDropdownItems().map((function(t){return t.$el.firstElementChild})).includes(e)||(this.close(),this.isFocused=!1,this.$emit("blur",t))},_onBlurItem:function(t){var e=t.relatedTarget||document.activeElement;(!e||"cds-dropdown__link"!==e.className&&e.id!==this.id)&&this.close()},_onFocus:function(t){this.isFocused||(this.isFocused=!0,this.$emit("focus",t))},_onMouseOver:function(t){this.isHovered=!0,this._getDropdownItems().filter((function(e){return e.$el.firstElementChild!==t.target})).forEach((function(t){return t._onMouseOut()})),this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,this.$emit("mouseout",t)},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this._onInsertKey),c(e,v.space,this._onInsertKey),c(e,v.esc,this._onEscKey),c(e,v.up,this._itemNavigation),c(e,v.down,this._itemNavigation),e);if(n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_onInsertKey:function(t){this.isFocused&&!this.internalItem?this.isActive?this.close():this.open():(this.internalItem._onClick(t),this.close())},_onEscKey:function(){this.close(),this.$refs.dropdown.focus()},_isEventTargetDisabledItem:function(t){var e=this._getDropdownItems().filter((function(e){return[e.$el,e.$el.childNodes[0]].includes(t)}))[0];return e&&e.disabled},_itemNavigation:function(t){if(!this.isActive)return this.open(),!0;var e,n=t.keyCode===v.up,i=this._getDropdownItems(),r=this.internalItem?this.internalItem:i.filter((function(t){return t.isFocused}))[0],o=-1;r&&(e=r.value),void 0!==e&&(o=i.findIndex((function(t){return t.value===e})));var s=this._getNextFocusIndex(o,n);s<0||(this.internalItem=i[s],this.internalItem.setFocus())},_getNextFocusIndex:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._getDropdownItems(),i=n.filter((function(e,n){return n!==t&&!e.internalSelected&&!e.disabled}));return i.map((function(t){return n.indexOf(t)})).sort((function(n,i){return e?n>t?i>t?i-n:n-i:i>t?n-i:i-n:n>t?i>t?n-i:i-n:i>t?i-n:n-i}))[0]},_getDropdownItems:function(){return this.$children.filter((function(t){return t.$_CdsDropdownItem}))}}},Mi=_(Ti,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[t.label?n("span",{staticClass:"cds-dropdown__label",on:{click:function(e){return t.$refs.dropdown.focus()}}},[t._v("\n "+t._s(t.label)+"\n ")]):t._e(),t._v(" "),t.description?n("CdsInputDescription",{staticClass:"cds-dropdown__description",attrs:{description:t.description}}):t._e(),t._v(" "),n("div",t._g(t._b({ref:"dropdown",class:t.controlClasses,attrs:{id:t.id,"data-value":t.internalValue,"aria-label":t.label,"aria-disabled":t.disabled,"aria-controls":"cds-dropdown__list","aria-haspopup":"true",tabindex:"0"}},"div",t.$attrs,!1),t.events),[n("div",{staticClass:"cds-dropdown__content"},[n("div",{ref:"valueContent",staticClass:"cds-dropdown__placeholder"},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),n("CdsIcon",{staticClass:"cds-dropdown__icon",attrs:{name:"chevron-down"}})],1),t._v(" "),n("ul",{staticClass:"cds-dropdown__list",attrs:{"aria-hidden":!t.isActive,"aria-labelledby":t.id,role:"menu"}},[t._t("default")],2)])],1)}),[],!1,null,null,null).exports,Vi=_({name:"CdsDropdownItem",inheritAttrs:!1,props:{value:{type:[String,Number],required:!0,default:void 0,description:"Выбираемое значение"},selected:{type:Boolean,default:!1,description:"Выбранное значение"},disabled:{type:Boolean,default:!1,description:"Заблокированный"}},data:function(){return{dataSelected:this.selected,isHovered:!1,isFocused:!1}},computed:{classes:function(){var t;return c(t={"cds-dropdown__item":!0},m.active,this.dataSelected),c(t,m.hover,this.isHovered),c(t,m.focus,this.isFocused),c(t,m.disabled,this.disabled),t},events:function(){return{click:this._onClick,focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut}},internalSelected:{get:function(){return this.dataSelected},set:function(t){this.dataSelected=t}},internalContent:function(){return this.$refs.item.innerHTML},title:function(){return this.$slots.default?this.$slots.default[0].text:null}},mounted:function(){this.$_CdsDropdownItem=!0,this.$parent.$emit("mounted",this)},beforeDestroy:function(){this.$parent.$emit("beforeDestroy",this)},methods:{setFocus:function(){this.disabled||(this.$refs.item.focus(),this._onFocus())},_onClick:function(t){this.disabled||(this.$parent.select(this.value),this.$emit("click",t))},_onFocus:function(t){this.disabled||(this.isFocused=!0,t instanceof Event&&this.$emit("focus",t))},_onBlur:function(t){this.disabled||(this.isFocused=!1,t instanceof Event&&(this.$emit("blur",t),this.$parent.$emit("blurItem",t)))},_onMouseOver:function(t){this.isHovered=!0,t instanceof Event&&(this.$parent.internalItem=this),this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,t instanceof Event&&(this.$parent.internalItem=void 0),this._onBlur(),this.$emit("mouseout",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",t._b({class:t.classes},"li",t.$attrs,!1),[n("div",t._g({ref:"item",staticClass:"cds-dropdown__link",attrs:{tabindex:"-1",title:t.title,"aria-label":t.title}},t.events),[t._t("default")],2)])}),[],!1,null,null,null).exports,Ri=_({name:"CdsDropdownSkeleton",components:{CdsInputSkeleton:jn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Mi.install=function(t){t.component(Mi.name,Mi)},Vi.install=function(t){t.component(Vi.name,Vi)},Ri.install=function(t){t.component(Ri.name,Ri)},"undefined"!=typeof window&&window.Vue&&(Mi.install(window.Vue),Vi.install(window.Vue),Ri.install(window.Vue));var Hi=_({name:"CdsEmptyState",props:{title:{type:String,required:!0,description:"Заголовок"},description:{type:String,default:"",description:"Описание"},image:{type:String,default:"",description:"[Deprecated] Ссылка на изображение"}},computed:{hasImage:function(){return!!this.$slots.image}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-empty-state"},[t.image&&!t.hasImage?n("img",{staticClass:"cds-empty-state__image",attrs:{src:t.image,alt:t.title}}):t._e(),t._v(" "),t.hasImage?n("div",{staticClass:"cds-empty-state__image"},[t._t("image")],2):t._e(),t._v(" "),t.title?n("h4",{staticClass:"cds-empty-state__title"},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.description?n("span",{staticClass:"cds-empty-state__description"},[t._v(t._s(t.description))]):t._e(),t._v(" "),t._t("actions")],2)}),[],!1,null,null,null).exports,zi=_({name:"CdsEmptyStateSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-empty-state"},[n("h4",{staticClass:"cds-empty-state__title"},[n("cds-skeleton",{attrs:{width:"110px",height:"16px"}})],1),t._v(" "),n("span",{staticClass:"cds-empty-state__description"},[n("cds-skeleton",{attrs:{width:"178px",height:"12px"}})],1),t._v(" "),n("cds-skeleton",{attrs:{width:"140px",height:"32px"}})],1)}),[],!1,null,null,null).exports;Hi.install=function(t){t.component(Hi.name,Hi)},zi.install=function(t){t.component(zi.name,zi)},"undefined"!=typeof window&&window.Vue&&(Hi.install(window.Vue),zi.install(window.Vue));var Pi={appearance:["primary","secondary","inverse"]},ji=_({name:"CdsFooter",components:{CdsAccordion:Sn,CdsAccordionItem:Bn,CdsLink:On},props:{items:{type:Array,required:!0,description:"Элементы навигации, представляет из себя объект ссылки CdsLink"},appearance:{type:String,default:"primary",description:"Внешний вид",available:Pi.appearance,validator:function(t){return b(Pi.appearance,t,"PromoFooter.appearance")}}},computed:{classes:function(){return c({"cds-footer":!0},"cds-footer--".concat(this.appearance),this.appearance)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{class:t.classes},[n("div",{staticClass:"cds-footer__additional"},[t._t("default")],2),t._v(" "),n("nav",{staticClass:"cds-footer__nav"},[t._l(t.items,(function(e,i){return n("ul",{key:e.title+i,staticClass:"cds-footer__nav--menu"},[n("h6",{staticClass:"cds-footer__nav--title"},[t._v(t._s(e.title))]),t._v(" "),n("li",[n("ul",t._l(e.links,(function(t,e){return n("li",{key:t.to+e},[n("cds-link",{attrs:{text:t.text,to:t.to,"use-router":t.useRouter,disable:t.disable,blank:t.blank}})],1)})),0)])])})),t._v(" "),n("cds-accordion",{staticClass:"cds-footer__nav--accordion"},t._l(t.items,(function(e,i){return n("cds-accordion-item",{key:e.title+i,attrs:{title:e.title},scopedSlots:t._u([{key:"content",fn:function(){return[n("ul",t._l(e.links,(function(t,e){return n("li",{key:t.to+e},[n("cds-link",{attrs:{text:t.text,to:t.to,"use-router":t.useRouter,disable:t.disable,blank:t.blank}})],1)})),0)]},proxy:!0}],null,!0)})})),1)],2),t._v(" "),n("div",{staticClass:"cds-footer__social"},[t._t("social")],2)])}),[],!1,null,null,null).exports,Ni={appearance:["primary","secondary"],align:["start","center","end","between"]},Ui=_({name:"CdsFooterService",components:{CdsLink:In},props:{items:{type:Array,required:!0,description:"Элементы навигации, представляет из себя объект ссылки CdsLink"},appearance:{type:String,default:"primary",description:"Внешний вид",available:Ni.appearance,validator:function(t){return b(Ni.appearance,t,"Footer.appearance")}},align:{type:String,default:"start",description:"Позиционирование",available:Ni.align,validator:function(t){return b(Ni.align,t,"Footer.align")}}},computed:{classes:function(){var t;return c(t={"cds-footer-service":!0},"cds-footer-service--".concat(this.appearance),this.appearance),c(t,"cds-footer-service__align--".concat(this.align),this.align),t}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{class:t.classes},[n("nav",{staticClass:"cds-footer-service__nav"},[n("ul",t._l(t.items,(function(t,e){return n("li",{key:t.to+e,staticClass:"cds-footer-service__item"},[n("cds-link",{attrs:{to:t.to,text:t.text,"use-router":t.useRouter,blank:t.blank,disabled:t.disable}})],1)})),0)]),t._v(" "),n("div",{staticClass:"cds-footer-service__additional"},[t._t("default")],2)])}),[],!1,null,null,null).exports;ji.install=function(t){t.component(ji.name,ji)},Ui.install=function(t){t.component(Ui.name,Ui)},"undefined"!=typeof window&&window.Vue&&(ji.install(window.Vue),Ui.install(window.Vue));var Ki=_({name:"CdsForm"},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("form",t._g({staticClass:"cds-form"},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports,qi=_({name:"CdsFormItem"},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"cds-form__item"},[t._t("default")],2)}),[],!1,null,null,null).exports,Wi=_({name:"CdsFormGroup",components:{CdsInputDescription:Hn},props:{legend:{type:String,required:!0,default:null,description:"Легенда"},description:{type:String,default:null,description:"Описание формы"}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("fieldset",{staticClass:"cds-form__group"},[n("legend",[t._v(t._s(t.legend))]),t._v(" "),t.description?n("CdsInputDescription",{staticClass:"cds-form__description",attrs:{description:t.description}}):t._e(),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports;Ki.install=function(t){t.component(Ki.name,Ki)},qi.install=function(t){t.component(qi.name,qi)},Wi.install=function(t){t.component(Wi.name,Wi)},"undefined"!=typeof window&&window.Vue&&(Ki.install(window.Vue),qi.install(window.Vue),Wi.install(window.Vue));var Yi=["start","end","center"],Gi=["left","right"],Ji=["xs","sm","md","lg","xl"],Zi={tag:{type:String,default:"div",description:"Тэг контейнера."},noGutters:{type:Boolean,default:!1,description:"Удаление полей со всех сторон."},noGutter:{type:String,default:null,validator:function(t){return Gi.includes(t)},description:"Удаление полей одной из сторон."},fluid:{type:Boolean,default:!1,description:"Резиновая сетка."},condensed:{type:Boolean,default:!1,description:"Конденсированная сетка."}},Xi={name:"CdsGrid",props:Zi,render:function(t){return t(this.tag,{class:c({"cds-grid":!0,"cds-grid-fluid":this.fluid,"cds-grid-condensed":this.condensed,"cds-no-gutter":this.noGutters},"cds-no-gutter-".concat(this.noGutter),this.noGutter)},this.$slots.default)}},Qi=Xi,tr=_(Qi,undefined,undefined,!1,null,null,null).exports,er=_({name:"CdsRow",props:{tag:{type:String,default:"div",description:"Тэг строки."},noGutters:{type:Boolean,default:!1,description:"Удаление полей со всех сторон."},noGutter:{type:String,default:null,validator:function(t){return Gi.includes(t)},description:"Удаление полей одной из сторон."},alignV:{type:String,default:null,validator:function(t){return Yi.concat(["baseline","stretch"]).includes(t)},description:"Выравнивание э2лементов по перекрёстной оси."},alignH:{type:String,default:null,validator:function(t){return Yi.concat(["between","around"]).includes(t)},description:"Выравнивание элементов по главной оси."},alignContent:{type:String,default:null,validator:function(t){return Yi.concat(["between","around","stretch"]).includes(t)},description:"Промежутки между flex строками по перекрёстной оси."}},render:function(t){var e;return t(this.tag,{staticClass:"cds-row",class:(e={"cds-no-gutter":this.noGutters},c(e,"cds-no-gutter-".concat(this.noGutter),this.noGutter),c(e,"cds-align-items-".concat(this.alignV),this.alignV),c(e,"cds-justify-content-".concat(this.alignH),this.alignH),c(e,"cds-align-content-".concat(this.alignContent),this.alignContent),e)},this.$slots.default)}},undefined,undefined,!1,null,null,null).exports;function nr(){return{type:[String,Number],default:null}}var ir,rr,or=(ir=function(t,e,n){var i="cds-".concat(t);if(!1!==n&&null!=n)return e&&(i+="-".concat(e)),"col"!==t||""!==n&&!0!==n?(i+="-".concat(n)).toLowerCase():i.toLowerCase()},rr=Object.create(null),function(){var t=JSON.stringify(arguments);return rr[t]=rr[t]||ir.apply(null,arguments)}),sr=Ji.reduce((function(t,e){return t[e]={type:[Boolean,String,Number],default:!1},t}),Object.create(null)),ur=Ji.reduce((function(t,e){return t[E(e,"offset")]=nr(),t}),Object.create(null)),ar=Ji.reduce((function(t,e){return t[E(e,"order")]=nr(),t}),Object.create(null)),lr=Object.assign(Object.create(null),{col:Object.keys(sr),offset:Object.keys(ur),order:Object.keys(ar)}),cr=_({name:"CdsCol",props:p(p(p(p({},sr),ur),ar),{},{tag:{type:String,default:"div",description:"Тег колонки."},col:{type:Boolean,default:!1,description:"Неномерная колонка."},noGutter:{type:String,default:null,description:"Удаление отступов у колонки.",validator:function(t){return Gi.includes(t)}},cols:p(p({},nr()),{},{description:"Размер колонки."}),offset:p(p({},nr()),{},{description:"Смещение колонки."}),order:p(p({},nr()),{},{description:"Порядок колонки."}),alignSelf:{type:String,default:null,description:"Выравнивание колонки по перекрёстной оси.",validator:function(t){return Yi.concat(["auto","baseline","stretch"]).includes(t)}}}),render:function(t){var e,n=[];for(var i in lr)for(var r=lr[i],o=0;o<r.length;o++){var s=or(i,r[o].replace(i,""),this[r[o]]);s&&n.push(s)}return n.push((c(e={"cds-col":this.col||0===n.length&&!this.cols,"cds-col-auto":this.cols},"cds-col-".concat(this.cols),this.cols),c(e,"cds-offset-".concat(this.offset),this.offset),c(e,"cds-order-".concat(this.order),this.order),c(e,"cds-align-self-".concat(this.alignSelf),this.alignSelf),c(e,"cds-no-gutter-".concat(this.noGutter),this.noGutter),e)),t(this.tag,{class:n},this.$slots.default)}},undefined,undefined,!1,null,null,null).exports,dr=_({name:"CdsBlock",props:{ratio:{type:String,required:!0,description:"Фиксированный по размерам блок 1x1, 1x2, 2x1, 2x3, 3x2, 4x3, 16x9",validator:function(t){return["1x1","1x2","2x1","2x3","3x2","4x3","16x9"].includes(t)}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-aspect-ratio",class:["cds-aspect-ratio-"+t.ratio]},[n("div",{class:t.$style["cds-aspect-ratio-object"]},[t._t("default")],2)])}),[],!1,null,null,null).exports;tr.install=function(t){t.component(tr.name,tr)},er.install=function(t){t.component(er.name,er)},cr.install=function(t){t.component(cr.name,cr)},dr.install=function(t){t.component(dr.name,dr)},"undefined"!=typeof window&&window.Vue&&(tr.install(window.Vue),er.install(window.Vue),cr.install(window.Vue),dr.install(window.Vue));var fr=_({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0H16V4H0V0Z",fill:"#E5E5E5"}}),t._v(" "),n("path",{attrs:{d:"M1 1H15V4H1V1Z",fill:"white"}}),t._v(" "),n("path",{attrs:{d:"M0 8H16V12H0V8Z",fill:"#EB0000"}}),t._v(" "),n("path",{attrs:{d:"M0 4H16V8H0V4Z",fill:"#1D6EF6"}})])}),[],!1,null,null,null).exports,hr=_({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H16V12H0V0ZM1.68421 1.84615H14.3158V10.1538H1.68421V1.84615Z",fill:"#1D6EF6"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.2037 0.923065H15.1578V11.0769C15.1578 11.0769 14.7326 10.9089 14.2037 11.0769H0.842041V0.923065H14.2037Z",fill:"#1D6EF6"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.842041 0.923065V2.07691L7.13004 5.53845L7.57888 4.96153L7.13004 4.3846L7.57888 4.1363L1.74057 0.923065H0.842041ZM7.57888 4.1363L8.08415 4.3846L7.57888 4.96153L8.08415 5.53845L15.1578 2.07691V0.923065H14.1473L12.026 1.9606L7.57888 4.1363ZM7.13004 6.46153L0.842041 9.92307V11.0769H1.74057L7.57888 7.86368L7.13004 7.61537L7.57888 7.03845L7.13004 6.46153ZM7.57888 7.03845L8.08415 7.61537L7.57888 7.86368L14.1473 11.0769H15.1578V9.92307L8.08415 6.46153L7.57888 7.03845Z",fill:"white"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.72242 4.45664L0.890844 4.52494L0.831055 7.44648L6.67948 7.44833L6.69042 11.0825L9.29505 11.088L9.29842 7.48802L15.1022 7.41417L15.1258 4.48433L9.21421 4.57294L9.23695 0.97479L6.77969 0.954482L6.72074 0.943405L6.72242 4.45664Z",fill:"white"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.57888 5.53845H0.842041V6.46153H7.57888V11.0769H8.42099V6.46153H15.1578V5.53845H8.42099V0.923065H7.57888V5.53845Z",fill:"#EB0000"}})])}),[],!1,null,null,null).exports,pr={appearance:["primary","inverse","transparent"],languages:["ru","en"]},vr=_({name:"CdsHeader",components:{CdsLink:On,En:hr,Ru:fr},props:{appearance:{type:String,required:!1,default:"primary",description:"Внешний вид шапки: primaty, inversive, transparent",available:pr.appearance,validator:function(t){return b(pr.appearance,t,"CdsHeader.appearance")}},navItems:{type:Array,required:!1,description:"Массив с элементами меню.",default:function(){return[]}},isToolbarTransparent:{type:Boolean,required:!1,description:"Прозрачность тулбара.",default:!1},languageBtn:{type:Boolean,default:!1,description:"Показать кнопку смену языка"},language:{type:String,default:"ru",description:"ВЫбранный язык при инициализации",available:pr.languages,validator:function(t){return b(pr.languages,t,"CdsHeader.languages")}}},data:function(){return{languageOpened:!1,selectedLanguage:"ru",languages:["ru","en"]}},computed:{classes:function(){return c({"cds-header__top":!0},"cds-header__top--".concat(this.appearance),this.appearance)},toolbarClasses:function(){var t;return c(t={"cds-header__toolbar":!0},"cds-header__toolbar--".concat(this.appearance),this.appearance),c(t,"cds-header__toolbar--transparent",this.isToolbarTransparent),t},isInverse:function(){return"inverse"===this.appearance},classesState:function(){return m},hasToolbar:function(){return!!this.$slots.toolbar||this.languageBtn}},created:function(){this.selectedLanguage=this.language},methods:{onTrigger:function(t){this.$emit("menu-trigger",t)},_toggleLanguage:function(){this.languageOpened=!this.languageOpened},_closeLanguage:function(){this.languageOpened=!1},changeLanguage:function(t){pr.languages.includes(t)?(this.languageOpened&&this._closeLanguage(),this.selectedLanguage=t,this.$emit("changeLanguage",t)):console.error("Ошибка в методе changeLanguage. Вы не можете выбрать этот язык, доступные языки: ".concat(pr.languages.join(", ")))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",{staticClass:"cds-header"},[n("div",{class:t.classes},[n("div",{staticClass:"cds-header__left-side"},[n("div",{staticClass:"cds-header__trigger"},[n("cds-button",{attrs:{appearance:"transparent","icon-only":"",inverse:t.isInverse},on:{click:t.onTrigger},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"menu"}})]},proxy:!0}])})],1),t._v(" "),t._t("left")],2),t._v(" "),n("div",{staticClass:"cds-header__main"},[n("div",{staticClass:"cds-header__main--top"},[t._t("default")],2),t._v(" "),n("div",{staticClass:"cds-header__main--bottom"},[n("nav",{staticClass:"cds-header__nav"},[n("ul",{staticClass:"cds-header__nav--list"},t._l(t.navItems,(function(e,i){var r;return n("li",{key:e.text+i,staticClass:"cds-header__nav--item",class:(r={},r[t.classesState.active]=e.active,r)},[n("cds-link",{attrs:{to:e.to,text:e.text,tabindex:"0","use-router":e.useRouter,disabled:e.disabled,blank:e.blank}}),t._v(" "),e.children?n("ul",{staticClass:"cds-header__nav--sub"},t._l(e.children,(function(e,i){var r;return n("li",{key:e.text+i,staticClass:"cds-header__nav--item",class:(r={},r[t.classesState.active]=e.active,r)},[n("cds-link",{attrs:{to:e.to,text:e.text,tabindex:i,"use-router":e.useRouter,disabled:e.disabled,blank:e.blank}})],1)})),0):t._e()],1)})),0)])])]),t._v(" "),n("div",{staticClass:"cds-header__right-side"},[n("div",{staticClass:"cds-header__additional"},[t._t("right")],2)])]),t._v(" "),t.hasToolbar?n("div",{class:t.toolbarClasses},[t._t("toolbar"),t._v(" "),t.languageBtn?n("div",{staticClass:"cds-header__language"},[n("CdsButton",{attrs:{role:"button","icon-only":""},on:{click:t._toggleLanguage,blur:t._closeLanguage},scopedSlots:t._u([{key:"icon",fn:function(){return[n(t.selectedLanguage,{tag:"component"})]},proxy:!0}],null,!1,2419400725)}),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.languageOpened?n("ul",{staticClass:"cds-header__language-items",attrs:{role:"menu"}},t._l(t.languages,(function(e){return n("li",{key:e,staticClass:"cds-header__language-items-item",on:{click:function(n){return t.changeLanguage(e)}}},[n(e,{tag:"component"})],1)})),0):t._e()])],1):t._e()],2):t._e()])}),[],!1,null,null,null).exports,mr=_({name:"CdsHeaderService"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",{staticClass:"cds-header-service"},[n("div",{staticClass:"cds-header-service__left-side"},[t._t("left")],2),t._v(" "),n("div",{staticClass:"cds-header-service__right-side"},[t._t("right")],2)])}),[],!1,null,null,null).exports;vr.install=function(t){t.component(vr.name,vr)},mr.install=function(t){t.component(mr.name,mr)},"undefined"!=typeof window&&window.Vue&&vr.install(window.Vue),"undefined"!=typeof window&&window.Vue&&mr.install(window.Vue);var gr=_({name:"CdsImage",props:{src:{type:String,required:!0},srcset:{type:Object,required:!1,default:function(){}},alt:{type:String,required:!0}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("picture",{staticClass:"cds-picture"},[t.srcset?n("source",{attrs:{srcset:t.srcset,type:"image/svg+xml"}}):t._e(),t._v(" "),n("img",{attrs:{src:t.src,alt:t.alt}})])}),[],!1,null,null,null).exports;gr.install=function(t){t.component(gr.name,gr)},"undefined"!=typeof window&&window.Vue&&gr.install(window.Vue);var _r=gr,yr=_({name:"CdsList",mixins:[mn],childrenType:"CdsListItem",minChildrenCount:1,props:{ordered:{type:Boolean,default:!1,description:"Активирует упорядоченный список"}},data:function(){return{isOrdered:this.ordered,isNested:!1}},computed:{listType:function(){return this.isOrdered?"ol":"ul"},classes:function(){return{"cds-list--ordered":this.isOrdered,"cds-list--unordered":!this.isOrdered,"cds-list--nested":this.isNested}}},created:function(){var t=this;this.$on("mounted",(function(e){return t._nestedList(e)}))},methods:{_nestedList:function(t){var e=this;t.$children.filter((function(t){return x("CdsList",t.$options._componentTag)})).forEach((function(t){t.isOrdered=e.isOrdered,t.isNested=!0}))}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.listType,{tag:"component",class:t.classes},[t._t("default")],2)}),[],!1,null,null,null).exports,wr=_({name:"CdsListItem",mixins:[vn],parentType:"CdsList",mounted:function(){this.$parent.$emit("mounted",this)}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("li",{staticClass:"cds-list__item"},[t._t("default")],2)}),[],!1,null,null,null).exports,br=_({name:"CdsListSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-list--unordered cds-list__skeleton"},[n("li",{staticClass:"cds-list__item"},[n("cds-skeleton",{staticClass:"cds-checkbox__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"84px",height:"12px"}})],1),t._v(" "),n("li",{staticClass:"cds-list__item"},[n("cds-skeleton",{staticClass:"cds-checkbox__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("li",{staticClass:"cds-list__item"},[n("cds-skeleton",{staticClass:"cds-checkbox__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"76px",height:"12px"}})],1)])}),[],!1,null,null,null).exports;yr.install=function(t){t.component(yr.name,yr)},wr.install=function(t){t.component(wr.name,wr)},br.install=function(t){t.component(br.name,br)},"undefined"!=typeof window&&window.Vue&&(yr.install(window.Vue),wr.install(window.Vue),br.install(window.Vue));var Cr={bind:function(t,e,n){var i=!1;t.clickOutsideEvent=function(r){var o=r.path||r.composedPath&&r.composedPath();(o?!o.includes(t):!t.contains(r.target))&&i&&n.context[e.expression](r)},t.mouseDownEvent=function(e){var n=e.path||e.composedPath&&e.composedPath();i=n?!n.includes(t):!t.contains(e.target)},document.body.addEventListener("mousedown",t.mouseDownEvent),document.body.addEventListener("click",t.clickOutsideEvent)},unbind:function(t){document.body.removeEventListener("click",t.clickOutsideEvent),document.body.addEventListener("mousedown",t.mouseDownEvent)}},Er={size:["sm","md","lg"]},xr=_({name:"CdsModal",components:{CdsIcon:cn,CdsLoading:w,CdsButton:k},directives:{clickOutside:Cr},mixins:[hn],model:{prop:"showed",event:"change"},props:{showed:{type:Boolean,default:!1,description:"Модальное окно Видно/Скрыто"},size:{type:String,required:!1,default:"md",available:Er.size,description:"Размер модального окна ".concat(Er.size.join(", ")),validator:function(t){return b(Er.size,t,"CdsModal.size")}},header:{type:String,required:!0,description:"Заголовок модального окна"},loading:{type:Boolean,required:!1,default:!1,description:"Отображение спиннера"},preventClose:{type:Boolean,required:!1,default:!1,description:'Отключить дефолтные способы отклонения окна (click вне окна, ESC или "x")'}},data:function(){return{isLoading:this.loading,isOpened:!1,internalShowed:!1,isOpening:!1,isClosing:!1}},computed:{hideEvents:function(){return{keydown:this._clickForHide,click:this._clickForHide}},headerId:function(){return this.generateDynamicId()},classes:function(){return c({"cds-modal":!0},"cds-modal--".concat(this.size),!0)},overlayClasses:function(){return{"cds-modal__overlay":!0,opening:this.isOpening,closing:this.isClosing}},hasFooter:function(){return this.$slots.footer}},watch:{showed:function(t,e){t!==e&&this[t?"show":"hide"]()}},mounted:function(){this.showed&&this.$nextTick(this.show)},beforeDestroy:function(){this.internalShowed&&(this.hide(),this.isLoading=!1,this.isOpened=!1)},methods:{show:function(){this.internalShowed||(this.$emit("show"),this.$emit("change",!0),this.internalShowed=!0,document&&window&&(document.body.style.overflow="hidden"))},hide:function(){var t=this;this.internalShowed&&(this.isClosing=!0,this.$nextTick((function(){t.$emit("hide"),t.$emit("change",!1),t.internalShowed=!1,document&&window&&document.body.style.removeProperty("overflow")})))},_enterAnimation:function(){this.isOpening=!0},_afterEnterAnimation:function(){this.isOpened=!0,this.$el.focus()},_afterLeaveAnimation:function(){this.isOpened=!1,this.isClosing=!1,this.isOpening=!1},_clickForHide:function(t){!this.preventClose&&this.isOpened&&(t.keyCode!==v.space&&"click"!==t.type||(this.hide(),this.isOpened=!1))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{on:{enter:t._enterAnimation,"after-enter":t._afterEnterAnimation,"after-leave":t._afterLeaveAnimation}},[t.internalShowed?n("div",{key:t.id,class:t.overlayClasses,attrs:{id:t.id,role:"dialog","aria-modal":"true","aria-describedby":t.headerId,tabindex:"-1"}},[n("section",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t._clickForHide,expression:"_clickForHide"}],class:t.classes},[t.preventClose?t._e():n("CdsButton",t._g({staticClass:"cds-modal__dismiss",attrs:{"icon-only":"","aria-label":"close modal"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"remove"}})]},proxy:!0}],null,!1,63127537)},t.hideEvents)),t._v(" "),n("header",{staticClass:"cds-modal__header",attrs:{id:t.headerId}},[t._v("\n "+t._s(t.header)+"\n ")]),t._v(" "),n("div",{class:["cds-modal__body",{"cds-modal__body--has-footer":t.hasFooter}]},[t._t("body")],2),t._v(" "),n("footer",{staticClass:"cds-modal__footer"},[t._t("footer")],2),t._v(" "),t.loading?n("CdsLoading",{staticClass:"cds-modal__loader",attrs:{active:t.isLoading,overlay:""}}):t._e()],1)]):t._e()])}),[],!1,null,null,null).exports;xr.install=function(t){t.component(xr.name,xr)},"undefined"!=typeof window&&window.Vue&&xr.install(window.Vue);var Ar=xr,Dr=(i(189),i(8783),i(3948),i(1038),i(7601),_({name:"CdsMultiselect",components:{CdsInputLabel:Pn,CdsInputDescription:Hn,CdsInputError:zn,CdsCheckbox:Kn,CdsIcon:ln},mixins:[hn],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{label:{type:String,default:"",description:"Лейбл мульти-селекта"},placeholder:{type:String,required:!0,description:"Плейсхолдер мульти-селекта"},description:{type:String,default:"",description:"Описание мульти-селекта"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},filterable:{type:Boolean,default:!1,description:"Поиск и фильтрация выпадающего списка"},value:{type:Array,default:function(){return[]},description:"Выбранные значения (поддерживает v-model)",validator:function(t){var e=t.every((function(t){return"string"==typeof t||"number"==typeof t}));return e||console.warn("CdsMultiselect.value - значение должно содержать массив"),e}},options:{type:Array,required:!0,description:"Отображаемые данные в выпадающем списке [{ name: string, value: string|number, children: [] }]",validator:function(t){var e=t.every((function(t){return"string"==typeof t.name&&("string"==typeof t.value||"number"==typeof t.value)}));return e||console.warn("CdsMultiselect.options - значение должно содержать массив [{ name: string, value: string|number, children: [] }]"),e}},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"},selectAllBtn:{type:Boolean,default:!1,description:"Кнопка выбрать все"}},data:function(){return{isOpen:!1,internalOptions:null,internalValue:[],highlightedValue:null,dataFilter:"",baseFontSize:16}},computed:{events:function(){return p(p({},this.$listeners),{},{input:this._onInput,keydown:this._onKeyDown,click:this._onClick,change:this._onChange})},containerClasses:function(){return c({"cds-multiselect__container":!0},m.disabled,this.disabled)},multiselectClasses:function(){var t;return c(t={"cds-multiselect":!0},m.active,this.isOpen),c(t,m.checked,this.internalValue.length),c(t,m.disabled,this.disabled),t},fieldClasses:function(){return c({"cds-multiselect__field":!0,"cds-wsuffix":!0,"cds-wprefix":this.internalValue.length},m.invalid,this.error)},clearClasses:function(){return c({"cds-multiselect__icon":!0,"cds-multiselect__clear":!0},m.active,this.filter.length)},arrowClasses:function(){return{"cds-multiselect__icon":!0,"cds-multiselect__arrow":!0}},errorClasses:function(){return{"cds-multiselect__icon":!0,"cds-multiselect__alert":!0}},styles:function(){return{paddingLeft:this.calculatedRem}},calculatedRem:function(){var t=this.internalValue.length?String(this.internalValue.length).length:0,e=this.baseFontSize/2;return(e*t+(t>0?5*e:this.baseFontSize))/this.baseFontSize+"rem"},filter:{get:function(){return this.dataFilter},set:function(t){this.dataFilter=t||"",this.$emit("filter",t)}},isAllSelected:function(){return this.internalValue.length===this.allValues.length},indeterminate:function(){return!!this.internalValue.length&&this.internalValue.length!==this.allValues.length},allValues:function(){var t=[];return this.options.forEach((function(e){var n;null!==(n=e.children)&&void 0!==n&&n.length?e.children.forEach((function(e){return t.push(e.value)})):t.push(e.value)})),t}},watch:{value:function(t){this.internalValue=Un(new Set([].concat(Un(this.internalValue),Un(t))))},options:function(){this._updateOptions()}},created:function(){this._updateOptions(),this._prependDataValue()},mounted:function(){this.highlightedValue=this.value.length?this.value[0]:this.internalValue.length?this.internalOptions[0].value:null},methods:{open:function(){this.isOpen||(this.isOpen=!0,this._updateOptions(),this.$emit("open"))},close:function(){this.isOpen&&(this.isOpen=!1,this.$emit("close"))},clear:function(){this.filter="",this.$emit("clear")},reset:function(){this.internalValue=[],this.$emit("reset")},setFocus:function(){(this.filterable?this.$refs.input:this.$refs.control).focus()},_selectAll:function(){if(!this.isAllSelected||this.indeterminate)return this.internalValue=Array.from(new Set(this.internalValue.concat(this.allValues))),void this.$emit("selectAll",!0);this._onClearValues(),this.$emit("selectAll",!1)},_updateOptions:function(){var t=this,e=this.filter.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(e,"i");this.internalOptions=this.options.filter((function(t){return n.test(t.name)})).slice(0),this.internalOptions.length&&this.internalValue.forEach((function(e){var n=t.internalOptions.findIndex((function(t){return t.value===e}));t.internalOptions.splice(0,0,t.internalOptions.splice(n,1)[0])}))},_onInput:function(){this.open(),this._updateOptions()},_onClick:function(t){var e=this;this.disabled?t.preventDefault():(this.isOpen?(this.setFocus(),this.$nextTick((function(){e.filterable||e.close()}))):(this.open(),this.setFocus()),this.$emit("click",t))},_onChange:function(t){this.filterable||this.$emit("change",t)},_onFocusOut:function(t){var e=t.relatedTarget||document.activeElement;this.$el.contains(e)||this.$refs.tag.contains(t.target)||this.close()},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this._pressHandler),c(e,v.space,this._pressHandler),c(e,v.esc,this._closeHandler),c(e,v.up,this._navigationHandler),c(e,v.down,this._navigationHandler),e);this.$emit("keydown",t),n[t.keyCode]&&n[t.keyCode](t)},_pressHandler:function(t){if(this.filterable&&t.keyCode===v.space)return!0;t.preventDefault(),this.isOpen?this._onItemChange(this.highlightedValue):this.open()},_closeHandler:function(t){t.preventDefault(),this.close(),this.setFocus()},_navigationHandler:function(t){var e=this;if(t.preventDefault(),!this.isOpen)return this.open(),!0;if(this.internalOptions.length){var n,i=t.keyCode===v.up,r=t.keyCode===v.down,o=this.internalOptions.findIndex((function(t){return t.value===e.highlightedValue}));if(i)n=o<=0?this.internalOptions.length-1:o-1;else{if(!r)return!1;n=o>=this.internalOptions.length-1?0:o+1}this.highlightedValue=this.internalOptions[n].value,this.$nextTick((function(){e._scrollOptionsPosition(n)}))}},_onClickArrow:function(t){this.disabled||(this.isOpen?this.close():this.open(),this.$emit("click",t))},_onClearFilter:function(){this.disabled||(this.clear(),this.setFocus(),this._updateOptions())},_onClearValues:function(){this.disabled||(this.reset(),this.setFocus(),this.$emit("change",this.internalValue))},_onItemChange:function(t){var e=this.internalValue.findIndex((function(e){return t===e}));e>-1?this.internalValue.splice(e,1):this.internalValue.push(t),this.filter="",this.setFocus(),this.$emit("change",this.internalValue)},_onMousemove:function(t){this.highlightedValue=t},_onClickToLabel:function(){this.filterable||(this.$refs.control.focus(),this.open())},_optionClasses:function(t){return{"cds-multiselect__option":!0,"cds-multiselect__select-all":"selectAll"===t,"cds-highlighted":this.highlightedValue===t}},_scrollOptionsPosition:function(t){var e=this.$refs.options,n=this.$refs.option;e&&n&&(e.scrollTop>n[t].offsetTop?e.scrollTop=n[t].offsetTop:e.scrollTop+e.clientHeight<n[t].offsetTop+n[t].offsetHeight&&(e.scrollTop=n[t].offsetTop+n[t].offsetHeight-e.clientHeight))},_prependDataValue:function(){var t=this;this.value.length&&(this.internalValue=this.value.filter((function(e){var n="number"==typeof e?e:e.trim();return t.internalOptions.some((function(t){return t.value===n}))})))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.containerClasses,on:{focusout:t._onFocusOut}},[t.label?n("CdsInputLabel",{attrs:{id:t.id,label:t.label,optional:t.optional,"optional-label":t.optionalLabel},on:{click:t._onClickToLabel}}):t._e(),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",t._b({ref:"select",class:t.multiselectClasses,attrs:{role:"listbox",tabindex:"-1"}},"div",t.$attrs,!1),[n("div",{class:t.fieldClasses},[n("span",{staticClass:"cds-multiselect__field--prefix"},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.internalValue.length,expression:"internalValue.length"}],ref:"tag",staticClass:"cds-multiselect__tag",attrs:{type:"button"},on:{click:t._onClearValues}},[n("span",{staticClass:"cds-multiselect__text"},[t._v(t._s(t.internalValue.length))]),t._v(" "),n("CdsIcon",{attrs:{name:"remove"}})],1)]),t._v(" "),t.filterable?n("input",t._g({directives:[{name:"model",rawName:"v-model",value:t.filter,expression:"filter"}],ref:"input",staticClass:"cds-multiselect__control",style:t.styles,attrs:{id:t.id,type:"text",placeholder:t.placeholder,disabled:t.disabled,"aria-label":t.label,"aria-expanded":t.isOpen,"aria-owns":t.id,"aria-controls":t.id,autocomplete:"off","aria-haspopup":"true",tabindex:"0"},domProps:{value:t.filter},on:{input:function(e){e.target.composing||(t.filter=e.target.value)}}},t.events)):n("div",t._g({ref:"control",staticClass:"cds-multiselect__control",style:t.styles,attrs:{role:"button",tabindex:"0"}},t.events),[n("span",{staticClass:"cds-multiselect__placeholder"},[t._v(t._s(t.placeholder))])]),t._v(" "),n("span",{staticClass:"cds-multiselect__field--suffix"},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.error,expression:"error"}],class:t.errorClasses,attrs:{type:"button",tabindex:"-1"}},[n("CdsIcon",{attrs:{name:"alert"}})],1),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.filter.length,expression:"filter.length"}],class:t.clearClasses,attrs:{type:"button",title:"Очистить поле ввода"},on:{click:t._onClearFilter}},[n("CdsIcon",{attrs:{name:"remove"}})],1),t._v(" "),n("button",{class:t.arrowClasses,attrs:{type:"button",tabindex:"-1"},on:{click:t._onClickArrow}},[n("CdsIcon",{attrs:{name:"chevron-down"}})],1)])]),t._v(" "),n("div",{ref:"options",staticClass:"cds-multiselect__options",attrs:{role:"list"}},[t.selectAllBtn?n("div",{class:t._optionClasses("selectAll"),on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t._selectAll.apply(null,arguments)},mousemove:function(e){return t._onMousemove("selectAll")},mousedown:function(t){t.preventDefault()}}},[n("CdsCheckbox",{staticClass:"cds-multiselect__checkbox",attrs:{indeterminate:t.indeterminate,label:"Выбрать все",tabindex:"-1"},model:{value:t.isAllSelected,callback:function(e){t.isAllSelected=e},expression:"isAllSelected"}})],1):t._e(),t._v(" "),t._l(t.internalOptions,(function(e,i){return[e.children?[n("div",{key:e.value+"-"+i,staticClass:"cds-multiselect__group"},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),t._l(e.children,(function(e,i){return n("div",{key:e.value+"-"+i,ref:"option",refInFor:!0,class:t._optionClasses(e.value),on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t._onItemChange(e.value)},mousemove:function(n){return t._onMousemove(e.value)},mousedown:function(t){t.preventDefault()}}},[n("CdsCheckbox",{staticClass:"cds-multiselect__checkbox",attrs:{label:e.name,value:e.value,tabindex:"-1"},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}})],1)}))]:n("div",{key:e.value+"-"+i,ref:"option",refInFor:!0,class:t._optionClasses(e.value),on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t._onItemChange(e.value)},mousemove:function(n){return t._onMousemove(e.value)},mousedown:function(t){t.preventDefault()}}},[n("CdsCheckbox",{staticClass:"cds-multiselect__checkbox",attrs:{label:e.name,value:e.value,tabindex:"-1"},model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}})],1)]}))],2),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)],1)}),[],!1,null,null,null)),kr=Dr.exports,Fr=_({name:"CdsMultiselectSkeleton",components:{CdsInputSkeleton:jn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;kr.install=function(t){t.component(kr.name,kr)},Fr.install=function(t){t.component(Fr.name,Fr)},"undefined"!=typeof window&&window.Vue&&(kr.install(window.Vue),Fr.install(window.Vue));var Sr=_({name:"CdsOverflowMenu",childrenType:"CdsOverflowMenuItem",components:{CdsButton:k,CdsTooltip:bn},mixins:[hn,mn],props:{flip:{type:Boolean,default:!1,description:"Обратное направление открытого меню"},up:{type:Boolean,default:!1,description:"Открывать меню вверх"},icon:{type:String,default:"overflowMenuVertical",description:"Иконка меню действий"},tooltip:{type:String,required:!0,description:"Всплывающее название меню"},tooltipDirection:{type:String,default:"right",description:"Позиционирование всплывающего названия меню"},tooltipAlign:{type:String,default:"center",description:"Выравнивание всплывающего названия меню"}},data:function(){return{isActive:!1,isFocused:!1,isHovered:!1}},computed:{classes:function(){var t;return c(t={"cds-overflow-menu":!0,"cds-overflow-menu--flip":this.flip,"cds-overflow-menu--up":this.up},m.active,this.isActive),c(t,m.focus,this.isFocused),t},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut,keydown:this._onKeyDown,focus:this._onFocus,blur:this._onBlur})},internalTooltipDirection:function(){return this.flip&&"right"===this.tooltipDirection?"left":this.tooltipDirection}},created:function(){this.$on("select",this._onSelect),this.$on("close",this.close),this.$on("blur",this._onItemBlur),this.$on("navigation",this._onNavigation)},methods:{open:function(){var t=this;if(this.isActive)return!1;this.isActive=!0,this.$nextTick((function(){t.doFocus()})),this.$emit("open")},close:function(){var t=this;if(!this.isActive)return!1;this.isActive=!1,this.$nextTick((function(){t.doFocus()})),this.$emit("close")},doFocus:function(){if(this.isActive)this.getMenuItems()[0].setFocus();else{var t=this.$refs.trigger;if(!t)return;t.$el.focus()}},getMenuItems:function(){return this.$children.filter((function(t){return"cdsOverflowMenuItem"===(0,C.camelCase)(t.$options._componentTag)}))},_onSelect:function(t){this.close(),this.$emit("selected",t)},_onClick:function(t){this.isActive?this.close():this.open(),this.$emit("click",t)},_onMouseOver:function(t){this.isHovered=!0,this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,this.$emit("mouseout",t)},_onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},_onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},_onItemBlur:function(t){var e=t.relatedTarget||document.activeElement;this.getMenuItems().map((function(t){return t.$el.firstElementChild})).includes(e)||e!==this.$refs.trigger.$el&&this.close()},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this.isActive?this.close:this.open),c(e,v.space,this.isActive?this.close:this.open),c(e,v.esc,this.close),c(e,v.up,this._onNavigation),c(e,v.down,this._onNavigation),e);if(this.$emit("keydown",t),n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_onNavigation:function(t){if(!this.isActive)return this.open(),!0;var e,n=t.keyCode===v.up,i=t.keyCode===v.down,r=this.getMenuItems(),o=r.length-1,s=r.findIndex((function(t){return t.isFocused}));if(n)r[e=s>0?s-1:o].disabled&&(e=e>0?e-1:o);else{if(!i)return!1;r[e=s<o?s+1:0].disabled&&(e=e<o?e+1:0)}r[e].setFocus()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("CdsTooltip",{attrs:{tip:t.tooltip,direction:t.internalTooltipDirection,align:t.tooltipAlign,tabindex:"-1"}},[n("CdsButton",t._g(t._b({ref:"trigger",staticClass:"cds-overflow-menu__trigger",attrs:{id:t.id,role:"button","icon-only":"","aria-label":t.tooltip,"aria-expanded":t.isActive,"aria-controls":t.id,"aria-haspopup":"true"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:t.icon}})]},proxy:!0}])},"CdsButton",t.$attrs,!1),t.events))],1),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.isActive?n("ul",{ref:"items",staticClass:"cds-overflow-menu__items",attrs:{"aria-labelledby":t.id,role:"menu"}},[t._t("default")],2):t._e()])],1)}),[],!1,null,null,null).exports,Br=_({name:"CdsOverflowMenuItem",components:{CdsButton:k,CdsLink:On},inheritAttrs:!1,props:{selected:{type:Boolean,default:!1,description:"Выбранные элемент меню"},disabled:{type:Boolean,default:!1,description:"Заблокированный элемент меню"},to:{type:[String,Object],default:void 0,description:"Url-адресс ссылки или объект router для элемента меню"},blank:{type:Boolean,default:!1,description:"Если есть ссылка (prop.to), открывать ли в новой вкладе"}},data:function(){return{isFocused:!1,isHovered:!1}},computed:{component:function(){return this.to?"CdsLink":"CdsButton"},classes:function(){var t;return c(t={"cds-overflow-menu__option":!0,"cds-overflow-menu__button":!this.isLink,"cds-overflow-menu__link":this.isLink},m.active,this.selected),c(t,m.disabled,this.disabled),t},title:function(){return this.$slots.default?this.$slots.default[0].text.trim():null},target:function(){return this.blank?"_blank":null},tabindex:function(){return this.disabled?-1:null},isLink:function(){return this.to?this.to:null},isRouter:function(){return this.to?"object"===Wn(this.to):null}},methods:{setFocus:function(){var t=this.$refs.item;if(t){var e=t.$el;e&&e.focus()}},_onClick:function(t){this.disabled||this.$parent.$emit("select",t)},_onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},_onBlur:function(t){this.isFocused=!1,this.$parent.$emit("blur",t)},_onMouseOver:function(t){this.isHovered=!0,this.$emit("mouseover",t)},_onMouseOut:function(t){this.isHovered=!1,this.$emit("mouseover",t)},_onKeyDown:function(t){var e,n=(c(e={},v.esc,this._onEscKey),c(e,v.up,this._onNavigation),c(e,v.down,this._onNavigation),e);if(n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_onEscKey:function(t){this.$parent.$emit("close",t)},_onNavigation:function(t){this.$parent.$emit("navigation",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",[n(t.component,t._g(t._b({ref:"item",tag:"component",class:t.classes,attrs:{role:"menuitem",to:t.isLink,target:t.target,tabindex:t.tabindex,disabled:t.disabled,"aria-disabled":t.disabled,"use-router":t.isRouter,title:t.title,"aria-label":t.title},nativeOn:{click:function(e){return t._onClick.apply(null,arguments)},keydown:function(e){return t._onKeyDown.apply(null,arguments)},blur:function(e){return t._onBlur.apply(null,arguments)},focus:function(e){return t._onFocus.apply(null,arguments)},mouseover:function(e){return t._onMouseOver.apply(null,arguments)},mouseout:function(e){return t._onMouseOut.apply(null,arguments)},mouseleave:function(e){return t._onMouseOut.apply(null,arguments)}}},"component",t.$attrs,!1),t.$listeners),[n("span",{staticClass:"cds-overflow-menu__text"},[t._t("default")],2)])],1)}),[],!1,null,null,null),$r=Br.exports;Sr.install=function(t){t.component(Sr.name,Sr)},$r.install=function(t){t.component($r.name,$r)},"undefined"!=typeof window&&window.Vue&&(Sr.install(window.Vue),$r.install(window.Vue));var Ir=_({name:"CdsPagination",components:{CdsButton:k},model:{prop:"current",event:"change"},props:{count:{type:Number,default:0,required:!0,description:"Общее количество элементов",validator:function(t){var e=t>=0;return e||console.warn("CdsPagination.count значение не может быть меньше нуля"),e}},perPage:{type:Number,default:0,required:!0,description:"Количество элементов отображаемых на одной странице",validator:function(t){var e=t>=0;return e||console.warn("CdsPagination. значение не может быть меньше нуля"),e}},current:{type:Number,default:0,description:"Текущая выбранная страница (поддерживает v-model)",validator:function(t){var e=t>=0;return e||console.warn("CdsPagination.current значение не может быть меньше нуля"),e}},preventInitialChange:{type:Boolean,default:!1,description:"Компонент не будет инициировать первоначальное событие change"}},data:function(){return{currentPage:this.current,limit:10,resize:!1,preventChange:!1}},computed:{countPage:function(){return this.count/this.perPage},visible:function(){return this.countPage>1},pages:function(){for(var t=[],e=0;e<this.countPage;){var n;e++,t.push({count:e,style:(n={},c(n,m.active,this.currentPage===e),c(n,"cds-pagination__page",!0),n)})}return t},visiblePages:function(){var t=this;return this.countPage>this.limit?this.pages.filter((function(e){return e.count<=t.limit-2})):this.pages},hiddenPages:function(){var t=this;return this.countPage>this.limit?this.pages.filter((function(e){return e.count>t.limit-2&&e.count!==t.lastPage})):[]},lastPage:function(){return this.pages.length},lastPageStyle:function(){return c({"cds-pagination__page":!0,"cds-pagination__page--last":!0},m.active,this.currentPage===this.lastPage)},disabledNext:function(){return this.currentPage===this.lastPage},disabledPrev:function(){return 1===this.currentPage},isMorePage:function(){return this.hiddenPages.length},isSelectPage:function(){return this.hiddenPages.map((function(t){return t.count})).includes(this.currentPage)},selectClasses:function(){var t;return t=this.currentPage>=100?"s":this.currentPage>=10?"m":"l",["cds-pagination__select","cds-pagination__select--padding-".concat(t)]},internalValue:{get:function(){return this.currentPage},set:function(t){this.currentPage=this._preparePageValue(t),this.preventChange?this.preventChange=!1:this.$emit("change",t)}}},watch:{current:function(t){this.internalValue!==t&&(this.internalValue=t)}},beforeMount:function(){this.preventChange=this.preventInitialChange},mounted:function(){var t=this;this.internalValue=this.currentPage,this.$nextTick((function(){window.outerWidth<=320&&(t.resize=!0,t.limit=8),window.addEventListener("resize",t._onResize)}))},beforeDestroy:function(){window.removeEventListener("resize",this._onResize)},methods:{next:function(){if(!this.disabledNext)return this.internalValue++,this.$emit("next",this.internalValue),this.internalValue},prev:function(){if(!this.disabledPrev)return this.internalValue--,this.$emit("prev",this.internalValue),this.internalValue},goPage:function(t){this.internalValue=t},_preparePageValue:function(t){return 0===t?t+1:t},_onResize:function(t){t.target.outerWidth<=320&&(this.resize||(this.resize=!0,this.limit=8,this.$emit("resize",t))),t.target.outerWidth>320&&10!==this.limit&&(this.resize=!1,this.limit=10,this.$emit("resize",t))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("nav",{staticClass:"cds-pagination",attrs:{role:"navigation","aria-label":"Навигация по страницам"}},[n("ul",{staticClass:"cds-pagination__list"},[t.isMorePage?n("li",[n("CdsButton",{staticClass:"cds-pagination__arrow",attrs:{appearance:"transparent","icon-only":"",disabled:t.disabledPrev,"aria-disabled":t.disabledPrev},on:{click:t.prev},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"chevron-left"}})]},proxy:!0}],null,!1,1304797194)})],1):t._e(),t._v(" "),t._l(t.visiblePages,(function(e){return n("li",{key:e.count},[n("CdsButton",{class:e.style,attrs:{"icon-only":""},on:{click:function(){return t.goPage(e.count)}},scopedSlots:t._u([{key:"icon",fn:function(){return[t._v("\n "+t._s(e.count)+"\n ")]},proxy:!0}],null,!0)})],1)})),t._v(" "),t.isMorePage?n("li",{staticClass:"cds-pagination__more"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.currentPage,expression:"currentPage"}],class:t.selectClasses,attrs:{id:""},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentPage=e.target.multiple?n:n[0]},function(e){return t.goPage(+e.target.value)}]}},[n("option",{attrs:{value:"",hidden:""}}),t._v(" "),t._l(t.hiddenPages,(function(e){return n("option",{key:e.count,domProps:{value:e.count}},[t._v("\n "+t._s(e.count)+"\n ")])}))],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isSelectPage,expression:"!isSelectPage"}],staticClass:"cds-pagination__select--icon"},[n("CdsIcon",{attrs:{name:"overflow-menu-horizontal"}})],1)]):t._e(),t._v(" "),t.isMorePage?n("li",[n("CdsButton",{class:t.lastPageStyle,attrs:{"icon-only":""},on:{click:function(){return t.goPage(t.lastPage)}},scopedSlots:t._u([{key:"icon",fn:function(){return[t._v("\n "+t._s(t.lastPage)+"\n ")]},proxy:!0}],null,!1,2021188994)})],1):t._e(),t._v(" "),t.isMorePage?n("li",[n("CdsButton",{staticClass:"cds-pagination__arrow",attrs:{appearance:"transparent","icon-only":"",disabled:t.disabledNext,"aria-disabled":t.disabledNext},on:{click:t.next},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"chevron-right"}})]},proxy:!0}],null,!1,2354191345)})],1):t._e()],2)]):t._e()}),[],!1,null,null,null).exports,Or=_({name:"CdsPaginationSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"cds-pagination"},[n("ul",{staticClass:"cds-pagination__list"},[n("li",[n("cds-button",{staticClass:"cds-pagination__arrow",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{nam:"chevron-left"}})]},proxy:!0}])})],1),t._v(" "),t._l(5,(function(e){return n("li",{key:e},[n("cds-button",{staticClass:"cds-pagination__page",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-skeleton",{attrs:{width:"12px",height:"12px"}})]},proxy:!0}],null,!0)})],1)})),t._v(" "),n("li",{staticClass:"cds-pagination__more"},[n("cds-button",{staticClass:"cds-pagination__page",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"OverflowMenuHorizontal"}})]},proxy:!0}])})],1),t._v(" "),n("li",[n("cds-button",{staticClass:"cds-pagination__page",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-skeleton",{attrs:{width:"12px",height:"12px"}})]},proxy:!0}])})],1),t._v(" "),n("li",[n("cds-button",{staticClass:"cds-pagination__arrow",attrs:{"icon-only":"",disabled:""},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"chevron-right"}})]},proxy:!0}])})],1)],2)])}),[],!1,null,null,null).exports;Ir.install=function(t){t.component(Ir.name,Ir)},Or.install=function(t){t.component(Or.name,Or)},"undefined"!=typeof window&&window.Vue&&(Ir.install(window.Vue),Or.install(window.Vue));var Lr="CdsRadioButton",Tr=_({name:Lr,components:{CdsInputError:zn,CdsInputDescription:Hn},mixins:[hn,pn],model:{prop:"model",event:"change"},props:{label:{type:String,default:null,description:"Лейбл для группы"},description:{type:String,default:null,description:"Описание для группы"},horizontal:{type:Boolean,default:!1,description:"Горизонтальное отображение"},options:{type:Array,default:function(){return[]},description:"Список опций. Минимальное количество 2. Возможные свойства опции: value, label, description, disabled, checked",validator:function(t){var e=!0;return t.length<2&&(console.warn("".concat(Lr,".options: минимальное длина свойства options 2.")),e=!1),e}},model:{type:[String,Boolean,Number],default:null,description:"Внешняя модель для группы, указывается v-model"},disabledAll:{type:Boolean,default:!1,description:"Дизейбл всех радиокнопок"},name:{type:String,default:null,description:"Нативное имя модели (если необходимо)"},autofocus:{type:[Boolean],default:!1,description:"Активировать фокус на группе"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},computed:{classes:function(){return{"cds-radio-button":!0,"cds-radio-button--horizontal":this.horizontal}},nameAttr:function(){return this.name?this.name:this.id}},methods:{change:function(t,e){this.$emit("change",e.value)},_getItemClasses:function(t){return c({},m.disabled,this.disabledAll||t.disabled)},_isItemChecked:function(t){return null===this.model?t.checked:this.model===t.value},_hasItemAutofocus:function(t){return this.autofocus&&0===t},_inputListeners:function(t){var e=this;return p(p({},this.$listeners),{},{change:function(){return e.$emit("change",t.value)},blur:function(){return e.$emit("blur")}})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[t.label?n("div",{staticClass:"cds-radio-button__label"},[t._v(t._s(t.preparedLabel))]):t._e(),t._v(" "),t.description?n("cds-input-description",{staticClass:"cds-radio-button__description",attrs:{description:t.description}}):t._e(),t._v(" "),t.options.length?n("div",{staticClass:"cds-radio-button__container"},t._l(t.options,(function(e,i){return n("div",{key:t.getDynamicItemIdByIndex(i),class:["cds-radio-button__item",t._getItemClasses(e)]},[n("input",t._g({attrs:{id:t.getDynamicItemIdByIndex(i),type:"radio",autofocus:t._hasItemAutofocus(i),name:t.nameAttr,"aria-invalid":t.error,disabled:t.disabledAll||e.disabled},domProps:{checked:t._isItemChecked(e),value:e.value}},t._inputListeners(e))),t._v(" "),n("label",{staticClass:"cds-radio-button__label-radio",attrs:{for:t.getDynamicItemIdByIndex(i)}},[t._v(t._s(e.label))]),t._v(" "),e.description?n("cds-input-description",{staticClass:"cds-radio-button__description-radio",attrs:{description:e.description}}):t._e()],1)})),0):t._e(),t._v(" "),t.error?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null).exports,Mr=_({name:"CdsRadioButtonSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-radio-button__item cds-state-disabled cds-radio-button__skeleton"},[n("input",{staticClass:"cds-checkbox__input",attrs:{type:"radio",disabled:""}}),t._v(" "),n("label",{staticClass:"cds-radio-button__label-radio"},[n("cds-skeleton",{staticClass:"cds-radio-button__input--skeleton",attrs:{width:"12px",height:"12px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1)])}),[],!1,null,null,null).exports;Tr.install=function(t){t.component(Tr.name,Tr)},Mr.install=function(t){t.component(Mr.name,Mr)},"undefined"!=typeof window&&window.Vue&&(Tr.install(window.Vue),Mr.install(window.Vue));i(4765);var Vr=_({name:"CdsSearch",components:{CdsInput:Vn,CdsIcon:cn,CdsLoading:w},mixins:[hn],inheritAttrs:!1,props:{label:{type:String,required:!1,default:"",description:"Label поиска"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на поиске"},placeholder:{type:String,default:"Найти",description:"Плейсхолдер"},value:{type:[String,Number],required:!1,default:"",description:"Внешняя модель для поиска, v-model"},clearAriaLabel:{type:String,default:"Очистить поле поиска",description:"Aria Label для кнопки очистить"},limit:{type:[String,Number],default:3,description:"Необходимое кол-во символов для поиска"},delay:{type:[String,Number],default:500,description:"Дебаунс для поиска, ms"},loading:{type:Boolean,default:!1,description:"Состояние загрузки"},dropdown:{type:Boolean,default:!1,description:"Активирует выпадающей список для результатов поиска"},results:{type:Array,default:function(){return[]},description:"Массив найденных элементов для выдающего списка { id: number|string, title: string, ... }"}},data:function(){return{internalValue:null,searching:null,debounce:null,isOpen:!1,isFocused:this.autofocus}},computed:{events:function(){return p(p({},this.$listeners),{},{click:this._click,input:this._input,keydown:this._onKeyDown,focus:this._onFocus,blur:this._onBlur})},classes:function(){return c({"cds-search":!0},m.active,this.showDropdown)},clearClasses:function(){return c({"cds-search__clear":!0},m.active,!!this.internalValue)},hasSlot:function(){return!!this.$slots.results},hasResults:function(){return!!this.dropdown&&!!this.results.length},showDropdown:function(){return!!this.dropdown&&(this.isOpen&&!!this.internalValue)}},watch:{immediate:!0,handler:function(t){this.internalValue=t}},mounted:function(){this.internalValue=this.value},methods:{clear:function(){this.internalValue="",this.$emit("input",this.internalValue),this.$emit("clear",this.internalValue)},_selectItem:function(t){this.internalValue=t.title,this.isOpen=!1,this.$emit("selectItem",t)},_click:function(t){this.dropdown&&(this.isOpen=!0),this.$emit("click",t)},_input:function(t){var e=this;this.internalValue=t,this.$emit("input",this.internalValue),this.internalValue.length>=+this.limit&&(clearTimeout(this.debounce),this.debounce=setTimeout((function(){e.$emit("search",e.internalValue)}),+this.delay))},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this._pressHandler),c(e,v.esc,this._closeHandler),e);if(t.keyCode===v.backspace&&this.internalValue.length<2&&this.$emit("search",""),this.$emit("keydown",t),n[t.keyCode])return t.preventDefault(),n[t.keyCode](t)},_pressHandler:function(){this.internalValue.length&&(this.searching=this.internalValue)},_closeHandler:function(t){t.target.blur(),this.isFocused=!1,this.dropdown&&(this.isOpen=!1)},_onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},_onBlur:function(t){var e=t.relatedTarget||document.activeElement;e&&[this.$refs.container,this.$refs.search,this.$refs.dropdown].some((function(t){return t===e}))||(this.isOpen=!1,this.isFocused=!1,this.$emit("blur",t))},setFocus:function(){this.$refs.search.$el.querySelector("input").focus()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",class:t.classes,attrs:{tabindex:"-1"}},[n("label",{attrs:{for:t.id}},[t._v(t._s(t.label))]),t._v(" "),n("CdsInput",t._g(t._b({ref:"search",attrs:{id:t.id,autofocus:t.autofocus,placeholder:t.placeholder,role:"search",autocomplete:"off",tabindex:"0"},scopedSlots:t._u([{key:"prefix",fn:function(){return[n("CdsIcon",{ref:"close",staticClass:"cds-search__icon",attrs:{name:"search"},on:{click:t.setFocus}})]},proxy:!0},{key:"suffix",fn:function(){return[n("CdsLoading",{attrs:{active:t.loading,small:"",fixed:""}}),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.internalValue,expression:"internalValue"}],ref:"clear",class:t.clearClasses,attrs:{title:t.clearAriaLabel,"aria-label":t.clearAriaLabel,type:"button"},on:{click:t.clear}},[n("CdsIcon",{staticClass:"cds-search__clear-icon",attrs:{name:"remove"}})],1)]},proxy:!0}]),model:{value:t.internalValue,callback:function(e){t.internalValue=e},expression:"internalValue"}},"CdsInput",t.$attrs,!1),t.events)),t._v(" "),n("transition",{attrs:{name:"fade"}},[t.showDropdown?n("div",{ref:"dropdown",staticClass:"cds-search__dropdown",attrs:{"aria-hidden":!t.isOpen,role:"list"}},[t.hasSlot?t._t("results"):[t.hasResults?n("ul",t._l(t.results,(function(e){return n("li",{key:e.id,staticClass:"cds-search__dropdown-item",attrs:{tabindex:"0"},domProps:{innerHTML:t._s(e.title)},on:{click:function(n){return t._selectItem(e)},keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t._selectItem(e)}}})})),0):t._t("empty")]],2):t._e()])],1)}),[],!1,null,null,null).exports,Rr=_({name:"CdsSearchSkeleton"},(function(){var t=this.$createElement;return(this._self._c||t)("cds-skeleton",{staticClass:"cds-search__skeleton",attrs:{width:"240px",height:"32px"}})}),[],!1,null,null,null).exports;Vr.install=function(t){t.component(Vr.name,Vr)},Rr.install=function(t){t.component(Rr.name,Rr)},"undefined"!=typeof window&&window.Vue&&(Vr.install(window.Vue),Rr.install(window.Vue));var Hr=_({name:"CdsSelect",components:{CdsInputLabel:Pn,CdsInputDescription:Hn,CdsInputError:zn,CdsIcon:cn},mixins:[hn],inheritAttrs:!1,props:{label:{type:String,required:!0,description:"Лейбл компонента, выводится сверху"},isHiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"},placeholder:{type:String,required:!1,default:"Не выбрано",description:"Плейсхолдер отображается по умолчанию при пустом value"},description:{type:[String,Boolean],default:!1,description:"Доп текст"},options:{type:Array,required:!0,description:"Варианты значений.\nПростая опция { text: {String}, title: {String}, value: {String|Number}}\nГруппа опций { label: {String}, options: {Array}}"},value:{type:[String,Number],required:!1,default:"",description:"Если установили v-model компоненту, то value автоматически подставится. Иначе писать самому."},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированный селект"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на селекте"},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},data:function(){return{isClick:!1,isActive:!1,internalValue:""}},computed:{classes:function(){var t;return c(t={"cds-select":!0},m.active,this.isActive),c(t,m.invalid,this.error),c(t,m.disabled,this.disabled),c(t,m.empty,""===this.internalValue),t},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,blur:this._onBlur,change:this._onChange,input:this._onInput})}},watch:{value:function(t){this._setValue(t)}},mounted:function(){this._setValue(this.value)},methods:{_setValue:function(t){this.internalValue=t},_onBlur:function(t){this.isActive=!1,this.$emit("blur",t)},_onClick:function(t){this.disabled||(this.isActive=!0,this.$emit("click",t))},_onInput:function(t){this.$emit("input",t.target.value)},_onChange:function(t){this.isActive=!1;var e=t.target.value;e!==this.internalValue&&(this._setValue(e),this.$emit("change",e)),this.$emit("change",t)},_isGroup:function(t){return Array.isArray(t.options)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!t.isHiddenLabel,expression:"!isHiddenLabel"}],attrs:{id:t.id,label:t.label,"optional-label":t.optionalLabel,optional:t.optional}}),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",{staticClass:"cds-select__control"},[n("div",{staticClass:"cds-select__button"},[t.error?n("CdsIcon",{staticClass:"cds-select__alert-icon",attrs:{name:"alert"}}):t._e(),t._v(" "),n("CdsIcon",{attrs:{name:"chevron-down"}})],1),t._v(" "),n("select",t._g(t._b({ref:"select",attrs:{id:t.id,disabled:t.disabled,"aria-invalid":t.error,autofocus:t.autofocus},domProps:{value:t.internalValue},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t._onClick.apply(null,arguments)}}},"select",t.$attrs,!1),t.events),[n("option",{attrs:{value:"",disabled:"",hidden:"",selected:""}},[t._v("\n "+t._s(t.placeholder)+"\n ")]),t._v(" "),t._l(t.options,(function(e,i){return[t._isGroup(e)?n("optgroup",{key:i,attrs:{label:e.label}},t._l(e.options,(function(e,i){return n("option",{key:i,attrs:{title:e.title},domProps:{value:e.value,selected:e.value===t.internalValue}},[t._v("\n "+t._s(e.text)+"\n ")])})),0):n("option",{key:i,attrs:{title:e.title},domProps:{value:e.value,selected:e.value===t.internalValue}},[t._v("\n "+t._s(e.text)+"\n ")])]}))],2)]),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null),zr=Hr.exports,Pr=_({name:"CdsSelectSkeleton",components:{CdsInputSkeleton:jn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;zr.install=function(t){t.component(zr.name,zr)},Pr.install=function(t){t.component(Pr.name,Pr)},"undefined"!=typeof window&&window.Vue&&(zr.install(window.Vue),Pr.install(window.Vue));var jr=_({name:"CdsSkeleton",props:{maxWidth:{type:Number,required:!1,default:100,description:"Максимальная ширина"},minWidth:{type:Number,required:!1,default:80,description:"Минимальная ширина"},height:{type:String,required:!1,default:"1rem",description:"Высота"},width:{type:String,required:!1,default:"100%",description:"Ширина"},randomWidth:{type:Boolean,default:!1,description:"Рандомная ширина строки"}},computed:{styles:function(){return{height:this.height,width:this.computedWidth}},computedWidth:function(){return this.randomWidth?"".concat(Math.floor(Math.random()*(this.maxWidth-this.minWidth)+this.minWidth),"%"):this.width}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"cds-skeleton",style:t.styles})}),[],!1,null,null,null).exports;jr.install=function(t){t.component(jr.name,jr)},"undefined"!=typeof window&&window.Vue&&jr.install(window.Vue);var Nr=jr,Ur=_({name:"CdsStages",props:{current:{type:[Number,String],default:0,description:"Текущий этап"},stages:{type:Array,required:!0,description:"Этапы",validator:function(t){var e=t.every((function(t){return"string"==typeof t}));return e||console.warn("CdsStages.stages - значение должно содержать массивом строк"),e}},errors:{type:Array,default:function(){return[]},description:"Этапы с ошибками (массив чисел)"},error:{type:Boolean,default:!1,description:"Состояние ошибки"}},data:function(){return{stateClasses:m}},computed:{innerStyle:function(){return"grid-template-columns: repeat(".concat(this.stages.length,", 1fr);")}},methods:{_isCurrent:function(t){return+this.current===t+1},_isSuccess:function(t){return+this.current>t+1},_isErrors:function(t){return this.errors.includes(t+1)},_isError:function(t){return this._isCurrent(t)&&this.error},_getItemClasses:function(t){var e;return["cds-stages__item",(e={},c(e,this.stateClasses.active,this._isCurrent(t)),c(e,this.stateClasses.checked,this._isSuccess(t)),c(e,this.stateClasses.invalid,this._isErrors(t)),c(e,this.stateClasses.invalid,this._isError(t)),e)]}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",t._g({staticClass:"cds-stages",style:t.innerStyle},t.$listeners),t._l(t.stages,(function(e,i){return n("li",{key:i,class:t._getItemClasses(i)},[0!==i?n("svg",{staticClass:"cds-stages__arrow cds-stages__arrow--before",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 32",width:"11",height:"32"}},[!t._isCurrent(i)||t._isErrors(i)||t._isError(i)?n("path",{attrs:{d:"M12 0v1H1.618l7.5 15-7.5 15H12v1H0l8-16L0 0z"}}):n("path",{attrs:{"fill-rule":"evenodd",d:"M12 0v2H3.235l7.001 14-7.001 14H12v2H0l8-16L0 0z"}})]):t._e(),t._v(" "),n("span",[t._v(t._s(e))]),t._v(" "),i!==t.stages.length-1?n("svg",{staticClass:"cds-stages__arrow cds-stages__arrow--after",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 32",width:"11",height:"32"}},[!t._isCurrent(i)||t._isErrors(i)||t._isError(i)?n("path",{attrs:{d:"M1 0l8 16-8 16H0v-1h.383l7.499-15-7.5-15H0V0z"}}):n("path",{attrs:{"fill-rule":"evenodd",d:"M2.5 0l8 16-8 16h-2v-2h.765l7-14L1.264 2H.5V0z"}})]):t._e()])})),0)}),[],!1,null,null,null).exports,Kr=_({name:"CdsStagesSkeleton"},(function(){var t=this.$createElement;return(this._self._c||t)("cds-skeleton",{attrs:{width:"100%",height:"32px"}})}),[],!1,null,null,null).exports;Ur.install=function(t){t.component(Ur.name,Ur)},Kr.install=function(t){t.component(Kr.name,Kr)},"undefined"!=typeof window&&window.Vue&&(Ur.install(window.Vue),Kr.install(window.Vue));var qr={variant:["primary","secondary"],status:["info","warning","success","error","progress"],tooltipDirection:["right","left","top","bottom"],tooltipAlign:["start","center","end"]},Wr=_({name:"CdsStatus",components:{CdsTooltip:bn},props:{text:{type:String,required:!0,description:"Текст статуса"},variant:{type:String,required:!1,default:"primary",available:qr.variant,description:"Варианты статуса",validator:function(t){return b(qr.variant,t,"CdsStatus.variant")}},status:{type:String,required:!1,default:"info",available:qr.status,description:"Статус",validator:function(t){return b(qr.status,t,"CdsStatus.status")}},tooltip:{type:String,required:!0,default:"",description:"Всплывающая подсказка для статуса"},tooltipDirection:{type:String,required:!1,default:"right",available:qr.tooltipDirection,description:"Позиционирование всплывающей подсказки",validator:function(t){return b(qr.tooltipDirection,t,"CdsStatus.tooltipDirection")}},tooltipAlign:{type:String,required:!1,default:"center",available:qr.tooltipAlign,description:"Выравнивание всплывающей подсказки",validator:function(t){return b(qr.tooltipAlign,t,"CdsStatus.tooltipAlign")}}},computed:{classes:function(){return c({"cds-status":!0},"cds-status__".concat(this.variant,"--").concat(this.status),!0)},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,mouseover:this._onMouseOver,mouseout:this._onMouseOut,mouseleave:this._onMouseOut})}},methods:{_onClick:function(t){this.$emit("click",t)},_onMouseOver:function(t){this.$emit("mouseover",t)},_onMouseOut:function(t){this.$emit("mouseout",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CdsTooltip",{staticClass:"cds-status__tooltip",attrs:{tip:t.tooltip,direction:t.tooltipDirection,align:t.tooltipAlign}},[n("span",t._g({class:t.classes},t.events),[n("span",{staticClass:"cds-status__text"},[t._v(t._s(t.text))])])])}),[],!1,null,null,null).exports,Yr=_({name:"CdsStatusSkeleton"},(function(){var t=this.$createElement;return(this._self._c||t)("cds-skeleton",{attrs:{width:"62px",height:"16px"}})}),[],!1,null,null,null).exports;Wr.install=function(t){t.component(Wr.name,Wr)},Yr.install=function(t){t.component(Yr.name,Yr)},"undefined"!=typeof window&&window.Vue&&(Wr.install(window.Vue),Yr.install(window.Vue));i(2420);var Gr=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8 1a7 7 0 110 14A7 7 0 018 1zm0 .933a6.067 6.067 0 100 12.134A6.067 6.067 0 008 1.933zM8 4a4 4 0 110 8 4 4 0 010-8z"}})])}),[],!1,null,null,null).exports,Jr=_({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8 1a7 7 0 110 14A7 7 0 018 1zm0 1a6 6 0 100 12A6 6 0 008 2z"}})])}),[],!1,null,null,null).exports,Zr=["incomplete","current","complete"],Xr=_({name:"CdsStepsItem",parentType:"CdsSteps",components:{CdsIcon:cn,CdsTooltip:bn,currentIcon:Gr,completeIcon:st,incompleteIcon:Jr,errorIcon:Ut},mixins:[vn],props:{label:{type:String,required:!0,description:"Заголовок шага"},description:{type:String,default:"",description:"Описание шага"},error:{type:Boolean,default:!1,description:"Шаг с ошибкой"},disabled:{type:Boolean,default:!1,description:"Заблокированный шаг"}},data:function(){return{state:-1,complete:!1,last:!1,vertical:!1,fullWidth:!1,tooltipVisible:!1,tooltipReverse:!1}},computed:{internalState:{get:function(){return this.state},set:function(t){this.state=Math.sign(t)}},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,keydown:this._onKeyDown,focus:this._onFocus,blur:this._onBlur,mouseover:this._onMouseOver,mouseleave:this._onMouseLeave})},classes:function(){var t;return c(t={"cds-step":!0,"cds-step--full-width":this.fullWidth,"cds-step--tooltip-reverse":this.tooltipReverse,"cds-step--vertical":this.vertical},"cds-step--".concat(this.getState),this.getState),c(t,m.disabled,this.disabled),c(t,m.invalid,this.hasError),t},icon:function(){return this.hasError?"errorIcon":"".concat(this.getState,"Icon")},getState:function(){return Zr[this.state+1]},isIncomplete:function(){return-1===this.state},isComplete:function(){return 1===this.state},isCurrent:function(){return 0===this.state},isFinish:function(){return this.last&&this.isComplete},hasError:function(){return!!this.error&&!(this.isIncomplete||this.isCurrent)},tooltipAlign:function(){return this.tooltipReverse?"end":"start"},tooltipDirection:function(){return this.vertical&&this.tooltipReverse?"left":"top"}},mounted:function(){this.$_CdsStepsItem=!0,this.$parent.$emit("mounted")},methods:{select:function(){this.$parent.$emit("select",this)},focusNext:function(){var t=this.$el.nextElementSibling;t&&t.focus()},focusPrev:function(){var t=this.$el.previousElementSibling;t&&t.focus()},focusFirst:function(){var t=this.$el.parentElement.firstElementChild;t&&t.focus()},focusLast:function(){var t=this.$el.parentElement.lastElementChild;t&&t.focus()},_onClick:function(t){this.disabled||(this.select(),this.$emit("click",t))},_onKeyDown:function(t){var e,n=(c(e={},v.enter,this.select),c(e,v.space,this.select),c(e,v.left,this.focusPrev),c(e,v.right,this.focusNext),c(e,v.home,this.focusFirst),c(e,v.end,this.focusLast),e);if(n[t.keyCode])return t.preventDefault(),n[t.keyCode](t);this.$emit("keydown",t)},_onFocus:function(t){this.tooltipVisible=!0,this.$emit("focus",t)},_onBlur:function(t){this.tooltipVisible=!1,this.$emit("blur",t)},_onMouseOver:function(t){this.tooltipVisible=!0,this.$emit("mouseover",t)},_onMouseLeave:function(t){this.tooltipVisible=!1,this.$emit("mouseleave",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",t._g({class:t.classes,attrs:{tabindex:"0","aria-label":t.label,"aria-disabled":t.disabled}},t.events),[n("div",{staticClass:"cds-step__status"},[t.fullWidth?n("CdsIcon",{staticClass:"cds-step__icon"},[n(t.icon,{tag:"component"})],1):n("CdsTooltip",{staticClass:"cds-step__tooltip",attrs:{visible:t.tooltipVisible,tip:t.label,direction:t.tooltipDirection,align:t.tooltipAlign,tabindex:"-1"}},[n("CdsIcon",{staticClass:"cds-step__icon"},[n(t.icon,{tag:"component"})],1)],1),t._v(" "),t.last?t._e():n("span",{staticClass:"cds-step__indicator"})],1),t._v(" "),n("div",{staticClass:"cds-step__content"},[n("p",{staticClass:"cds-step__label"},[t._v("\n "+t._s(t.label)+"\n ")]),t._v(" "),n("p",{staticClass:"cds-step__description"},[t._v("\n "+t._s(t.description)+"\n ")])])])}),[],!1,null,null,null).exports,Qr=_({name:"CdsSteps",childrenType:"CdsStepsItem",components:{CdsStepsItem:Xr},mixins:[mn],model:{prop:"current",event:"change"},props:{current:{type:[Number,String],default:0,description:"Текущий шаг (поддерживает v-model)"},steps:{type:Array,default:function(){return[]},description:"Массив объектов { label, description, error, disabled }. Также (поддерживает через slot)"},vertical:{type:Boolean,default:!1,description:"Вертикальное представление шагов"},fullWidth:{type:Boolean,default:!1,description:"Шаги на всю ширину"},tooltipReverse:{type:Boolean,default:!1,description:"Перевернуть тултип"}},data:function(){return{internalSteps:[],internalCurrent:this.current}},computed:{classes:function(){return{"cds-steps":!0,"cds-steps--vertical":this.vertical,"cds-steps--full-width":this.fullWidth}},stepsCount:function(){return this.steps.length?this.steps.length:this.internalSteps.length}},watch:{current:function(t){this.internalCurrent=t},internalCurrent:function(){this._process(),this._completed()}},created:function(){this.$on("mounted",this._process),this.$on("select",this._onSelect)},mounted:function(){this._completed()},beforeDestroy:function(){this.$off("mounted"),this.$off("select")},methods:{_prepareStep:function(t){this.internalSteps[t].fullWidth=this.fullWidth,this.internalSteps[t].vertical=this.vertical,this.internalSteps[t].tooltipReverse=this.tooltipReverse,this.internalSteps[t].interactive=!0,this.internalSteps[t].complete=+this.internalCurrent>t,this.internalSteps[t].last=this.internalSteps.length-1===t},_process:function(){this.internalSteps=this.$children.filter((function(t){return t.$_CdsStepsItem}));for(var t=-1,e=0;e<this.internalSteps.length;e++)this._prepareStep(e),!this.internalSteps[e].complete&&t<0?(t=e,this.internalSteps[e].internalState=0):this.internalSteps[e].internalState=t<0?1:-1},_onSelect:function(t){this.internalCurrent=this.internalSteps.findIndex((function(e){return e._uid===t._uid})),this.$emit("change",this.internalCurrent)},_completed:function(){this.internalCurrent>=this.stepsCount&&this.$emit("completed",this.internalCurrent)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",t._g({class:t.classes},t.$listeners),[t._t("default",(function(){return t._l(t.steps,(function(t,e){return n("CdsStepsItem",{key:"step:"+e,attrs:{label:t.label,description:t.description,error:t.error,disabled:t.disabled}})}))}))],2)}),[],!1,null,null,null).exports,to=_({name:"CdsStepsSkeleton",props:{vertical:{type:Boolean,default:!1,description:"Вертикальное представление шагов"}},computed:{classes:function(){return{"cds-steps":!0,"cds-steps--vertical":this.vertical,"cds-steps--full-width":this.fullWidth}},classesItems:function(){return{"cds-step":!0,"cds-step--full-width":this.fullWidth,"cds-step--vertical":this.vertical}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{class:t.classes},t._l(3,(function(e){return n("li",{key:e,class:t.classesItems},[n("div",{staticClass:"cds-step__status"},[n("cds-skeleton",{staticStyle:{"border-radius":"100%"},attrs:{width:"16px",height:"16px"}})],1),t._v(" "),n("div",{staticClass:"cds-step__content"},[n("p",{staticClass:"cds-step__label"},[n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("p",{staticClass:"cds-step__description"},[n("cds-skeleton",{attrs:{width:"100px",height:"8px"}})],1)])])})),0)}),[],!1,null,null,null).exports;Qr.install=function(t){t.component(Qr.name,Qr)},Xr.install=function(t){t.component(Xr.name,Xr)},to.install=function(t){t.component(to.name,to)},"undefined"!=typeof window&&window.Vue&&(Qr.install(window.Vue),Xr.install(window.Vue),to.install(window.Vue));i(1058),i(9826);var eo=_({name:"CdsTableCell",props:{isHead:{type:Boolean,default:!1}},computed:{cellTag:function(){return this.isHead?"TH":"TD"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.cellTag,t._g({tag:"component"},t.$listeners),[t._t("default")],2)}),[],!1,null,null,null).exports,no=i(8020),io=(i(9720),function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(n)===n){if(!0===e(n))return n;for(var i=0,r=Object.entries(n);i<r.length;i++){var o=mi(r[i],2),s=(o[0],o[1]),u=t(e,s);if(void 0!==u)return u}}}),ro={name:"CdsTableRow",inject:["table"],components:{CdsCheckbox:Kn,CdsButton:k,CdsIcon:cn},props:{isHead:{type:Boolean,default:!1},isLeftColumn:{type:Boolean,default:!1},rowKey:{type:[Number,String],default:0},selectable:{type:Boolean,default:!1},multiselectable:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},expandable:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},isSelectChildRows:{type:Boolean,default:!1},disabledCheckboxes:{type:Boolean,default:!1}},data:function(){return{focus:!1,hover:!1,internalExpanded:!1,indeterminate:!1,internalSelected:this.selected,childKeys:[]}},computed:{classes:function(){var t={};return t["cds-table__table--select"]=(this.selectable||this.multiselectable)&&this.internalSelected||this.indeterminate,t["cds-table__table--hover"]=this.hover,t["cds-table__table--focus"]=this.focus,t},events:function(){return p(p({},this.$listeners),{},{click:this._onClick,keydown:this._onKeyDown,mouseenter:this._onMouseEnter,mouseleave:this._onMouseLeave})},cellTag:function(){return this.isHead?"TH":"TD"},row:function(){return this._findRowByKey(this.rowKey)},hasChild:function(){var t,e;return!(null===(t=this.row)||void 0===t||null===(e=t.children)||void 0===e||!e.length)}},watch:{"table.selectedRowKeys":function(t){if(this.hasChild&&this.isSelectChildRows&&!this.isHead){if(!(0,no.intersection)(this.childKeys,t).length)return t.includes(this.rowKey)?(this.setSelected(!1),void this.setIndeterminate(!0)):(this.setSelected(!1),void this.setIndeterminate(!1));if(t.includes(this.rowKey)||this.table.selectedRowKeys.push(this.rowKey),(0,no.difference)(this.childKeys,t).length)return this.setSelected(!1),void this.setIndeterminate(!0);this.setIndeterminate(!1),this.setSelected(!0)}}},mounted:function(){this.table.selectedRowKeys.includes(this.rowKey)&&this.setSelected(!0),this.internalExpanded=this.expanded,this.internalExpanded&&(this._toggleExpandedSlot(),this.table.expandedTreeRowKeys.push(this.rowKey)),this.hasChild&&this._findChildKeys(this.row)},methods:{_onClick:function(t){var e=this,n=!1,i=t.path||t.composedPath();if(!i||!i.length||(i.forEach((function(t){t.tagName!==e.cellTag&&"TR"!==t.tagName||(n=!0)})),n&&!this.isHead)){var r=this._findRowByKey(this.rowKey);(this.selectable||this.multiselectable)&&this._onSelect(),this.hoverable&&(this.table.currentFocusRowKey=this.rowKey),this.$emit("click",r)}},_onKeyDown:function(t){t.target.tagName!==this.cellTag&&"TR"!==t.target.tagName||t.keyCode!==v.enter&&t.keyCode!==v.space||this.isHead||(t.preventDefault(),(this.selectable||this.multiselectable)&&this._onSelect(),this.hoverable&&(this.table.currentFocusRowKey=this.rowKey),this.$emit("keydown",t))},_toggleExpandedSlot:function(){if(this.isHead)this.$emit("expandAll");else{var t=this.table.expandedRowKeys.indexOf(this.rowKey);t>-1?this.table.expandedRowKeys.splice(t,1):this.table.expandedRowKeys.push(this.rowKey)}},_onMouseEnter:function(){this.isHead||(this.hoverable&&(this.table.currentHoverRowKey=this.rowKey),this.$emit("mouseEnter",this.rowKey))},_onMouseLeave:function(){this.isHead||(this.table.currentHoverRowKey=null,this.$emit("mouseLeave",this.rowKey))},_onChangeCheckbox:function(){this.isHead?(this.$emit("selectAll"),this.table.currentFocusRowKey=null):this._onSelect()},_onSelect:function(){if(!this.isHead&&!this.disabledCheckboxes){if(this.$emit("select",this.row),!this.multiselectable)return this.table.selectedRowKeys.splice(0,1),void this.table.selectedRowKeys.push(this.rowKey);var t=this.table.selectedRowKeys.indexOf(this.rowKey);t>-1?(this.table.selectedRowKeys.splice(t,1),this.isSelectChildRows&&this._selectRowChild(this.row)):(this.isSelectChildRows&&this._selectRowChild(this.row,!0),this.table.selectedRowKeys.push(this.rowKey))}},_findRowByKey:function(t){return io((function(e){return e.key===t}),this.$parent.dataSource)},_findChildKeys:function(t){var e,n=this;null!==(e=t.children)&&void 0!==e&&e.length&&t.children.forEach((function(t){n.childKeys.push(t.key),n._findChildKeys(t)}))},_selectRowChild:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null!=t&&t.children&&t.children.forEach((function(t){if(n)return e.table.selectedRowKeys.push(t.key),void e._selectRowChild(t,!0);if(e.table.selectedRowKeys.includes(t.key)){var i=e.table.selectedRowKeys.indexOf(t.key);e.table.selectedRowKeys.splice(i,1),e._selectRowChild(t)}}))},setSelected:function(t){this.internalSelected=t},setHovered:function(t){this.hover=t},setFocus:function(t){this.focus=t},setIndeterminate:function(t){this.indeterminate=t},setExpanded:function(t){this.internalExpanded=t}}},oo=_(ro,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",t._g({class:t.classes},t.events),[t.multiselectable?n(t.cellTag,{tag:"component",staticClass:"selection"},[n("cds-checkbox",{attrs:{label:"","hidden-label":"",disabled:t.disabledCheckboxes,indeterminate:t.indeterminate},on:{click:function(t){t.stopPropagation()},change:t._onChangeCheckbox},model:{value:t.internalSelected,callback:function(e){t.internalSelected=e},expression:"internalSelected"}})],1):t._e(),t._v(" "),t.expandable?n(t.cellTag,{tag:"component",staticClass:"expand"},[n("cds-button",{attrs:{"icon-only":""},on:{click:function(e){return e.stopPropagation(),t._toggleExpandedSlot.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:t.internalExpanded?"chevron-down":"chevron-up"}})]},proxy:!0}],null,!1,3183986376)})],1):t._e(),t._v(" "),t._t("default")],2)}),[],!1,null,null,null),so=oo.exports,uo=_({name:"CdsTableSortLabel",components:{CdsIcon:cn},props:{order:{type:String,default:"none"}},computed:{iconName:function(){return"asc"===this.order?"arrow-up":"desc"===this.order?"arrow-down":"arrows-vertical"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("cds-icon",{staticClass:"sortable-icon",attrs:{name:t.iconName}})}),[],!1,null,null,null).exports,ao={name:"CdsTableHeader",inject:["table"],props:{columns:{type:Array,default:function(){return[]},description:"Массив колонок"},multiselectable:{type:Boolean,default:!1,description:"Множественный выбор"},expandable:{type:Boolean,default:!1,description:"Возможность раскрывать вложенный контент"},disabledCheckboxes:{type:Boolean,default:!1},treeKey:{type:String,default:""},isLeftFixedHeader:{type:Boolean,default:!1},isScrollButtons:{type:Boolean,default:!1},fixHeader:{type:Boolean,default:!1}},data:function(){return{nextSortOrder:{asc:"desc",desc:"none",none:"asc"},customRenders:{}}},computed:{filteredColumns:function(){return this.columns.filter((function(t){return!t.attrs||!t.attrs.hasOwnProperty("colspan")||t.attrs.colspan>0}))}},watch:{"table.isIndeterminate":function(t){this.$refs.row.setIndeterminate(t)},"table.isAllChecked":function(t){this.$refs.row.setSelected(t)},"table.isAllExpanded":function(t){this.$refs.row.setExpanded(t)}},created:function(){this.customRenders=this.$parent.$scopedSlots},methods:{_onClick:function(t){var e=this.columns[t];e.hasOwnProperty("sortable")&&e.hasOwnProperty("onSort")&&(e.onSort(t,this.nextSortOrder[e.order]),this.$emit("sort",t,this.nextSortOrder[e.order]))},_onKeyDown:function(t,e){e.keyCode!==v.enter&&e.keyCode!==v.space||(e.preventDefault(),this._onClick(t))}},render:function(t){for(var e=this,n=[],i=function(i){var r=e.filteredColumns[i],o=[],s={},u="head-".concat(r.key),a=t(uo,{attrs:{order:r.order}}),l={};if(r.classes&&("string"==typeof r.classes?l[r.classes]=!0:l=p({},r.classes)),e.isLeftFixedHeader&&e.isScrollButtons&&e.fixHeader&&(s.paddingTop="80.5px",s.paddingBottom="24.5px"),e.customRenders.hasOwnProperty(u))o.push(e.customRenders[u]({record:r,key:r.key}));else if(r.hasOwnProperty("columnCustomRender"))if("function"==typeof r.columnCustomRender){var c=r.columnCustomRender({record:r,key:r.key,h:t});o.push([c.content])}else"string"==typeof r.columnCustomRender&&e.customRenders.hasOwnProperty(r.columnCustomRender)?o.push(e.customRenders[r.columnCustomRender]({record:r,key:r.key})):o.push(r.title);else o.push(r.title);r.align&&(s.textAlign=r.align),r.sortable&&("right"===r.align&&o.unshift(a),"left"===r.align&&o.push(a)),n.push(t(eo,{key:"c_".concat(i),class:p(p({},l),{},{asc:"asc"===r.order,desc:"desc"===r.order}),attrs:p({isHead:!0,ariaSort:r.order},r.attrs||{}),style:s,on:{click:function(){return e._onClick(i)},keydown:function(t){return e._onKeyDown(i,t)}}},o))},r=0;r<this.filteredColumns.length;r++)i(r);return t("thead",[t(so,{ref:"row",attrs:{multiselectable:this.multiselectable,expandable:this.expandable,disabledCheckboxes:this.disabledCheckboxes,isHead:!0},on:{selectAll:function(){return e.$emit("selectAll")},expandAll:function(){return e.$emit("expandAll")}}},n)])}},lo=_({name:"CdsTableExpandedRow",data:function(){return{expanded:!1}},methods:{setExpanded:function(t){this.expanded=t}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.expanded?n("tr",{staticClass:"expandable-row"},[n("td",{staticClass:"expandable-row__sub"}),t._v(" "),n("td",{staticClass:"expandable-row__sub",attrs:{colspan:"999"}},[t._t("default")],2)]):t._e()}),[],!1,null,null,null).exports,co=function(){},fo={name:"CdsTableBody",inject:["rowSelection","table","tableName"],components:{CdsIcon:cn},props:{columns:{type:Array,default:function(){return[]}},dataSource:{type:Array,default:function(){return[]}},rowProps:{type:Object,default:function(){}}},data:function(){return{prevSelectedRowKeys:[],prevExpendedRowKeys:[],prevExpendedTreeRowKeys:[],customRenders:{},isIgnoreExpandable:!1}},watch:{dataSource:function(){var t=this;this.$nextTick((function(){if(t.table.expandedRowKeys.length){var e,i=n(t.table.expandedRowKeys);try{for(i.s();!(e=i.n()).done;){var r=e.value,o=t.getRowByKey(r),s=t.getRowByKey("expanded_".concat(r));o&&o.setExpanded(!0),s&&s.setExpanded(!0)}}catch(t){i.e(t)}finally{i.f()}}}))},"table.selectedRowKeys":function(t){if(this.prevSelectedRowKeys.length){var e,i=n(this.prevSelectedRowKeys.filter((function(e){return!t.includes(e)})));try{for(i.s();!(e=i.n()).done;){var r=e.value,o=this.getRowByKey(r);o&&o.setSelected(!1)}}catch(t){i.e(t)}finally{i.f()}}this.prevSelectedRowKeys=Un(t);var s,u=n(t);try{for(u.s();!(s=u.n()).done;){var a=s.value,l=this.getRowByKey(a);l&&l.setSelected(!0)}}catch(t){u.e(t)}finally{u.f()}},"table.expandedRowKeys":function(t){if(this.prevExpendedRowKeys.length){var e,i=n(this.prevExpendedRowKeys.filter((function(e){return!t.includes(e)})));try{for(i.s();!(e=i.n()).done;){var r=e.value,o=this.getRowByKey(r),s=this.getRowByKey("expanded_".concat(r));o&&o.setExpanded(!1),s&&s.setExpanded(!1)}}catch(t){i.e(t)}finally{i.f()}}this.prevExpendedRowKeys=Un(t);var u,a=n(t);try{for(a.s();!(u=a.n()).done;){var l=u.value,c=this.getRowByKey(l),d=this.getRowByKey("expanded_".concat(l));c&&c.setExpanded(!0),d&&d.setExpanded(!0)}}catch(t){a.e(t)}finally{a.f()}},"table.currentHoverRowKey":function(t,e){var n=this.getRowByKey(t),i=this.getRowByKey(e);n&&n.setHovered(!0),i&&i.setHovered(!1)},"table.currentFocusRowKey":function(t,e){var n=this.getRowByKey(t),i=this.getRowByKey(e);n&&n.setFocus(!0),i&&i.setFocus(!1)}},created:function(){this.customRenders=this.$parent.$scopedSlots},methods:{toggleLeaf:function(t){var e=this.table.expandedTreeRowKeys.indexOf(t);-1!==e?this.table.expandedTreeRowKeys.splice(e,1):this.table.expandedTreeRowKeys.push(t)},getRowByKey:function(t){var e="row_".concat(t);return null!==t&&this.$refs.hasOwnProperty(e)?this.$refs[e]:null},renderColumns:function(t,e){for(var n=this,i=[],r=0,o=0;o<this.columns.length;o++)if(r>0)r--;else{var s=this.columns[o],u=s.key,a=u===this.table.treeKey,l={},c={},d={"tree-leaf":a};s.classes&&("string"==typeof s.classes?d[s.classes]=!0:d=p(p({},d),s.classes));var f=t[u];if(this.customRenders.hasOwnProperty(u))f=this.customRenders[u]({record:t,key:u});else if(s.hasOwnProperty("customRender")){if("function"==typeof s.customRender){var h=s.customRender({record:t,key:u,h:e});f=[h.content],l=h.attrs||{}}else"string"==typeof s.customRender&&(f=this.customRenders[s.customRender]({record:t,key:u}));l.hasOwnProperty("colspan")&&l.colspan>0&&(r=l.colspan-1)}if(s.hasOwnProperty("width")&&(c.width=s.width+"px",c.minWidth=s.width+"px"),s.hasOwnProperty("align")&&(c.textAlign=s.align),a)if(t.hasOwnProperty("children")&&t.children.length)f=[e("div",{class:"tree-action"},[e("cds-icon",{props:{name:this.table.expandedTreeRowKeys.includes(t.key)?"ChevronDown":"ChevronRight"},on:{click:function(e){e.stopPropagation(),n.toggleLeaf(t.key)}}}),e("div",{class:"tree-action-content"},f)])];else d["tree-leaf--last"]=!0;i.push(e(eo,{key:"id_".concat(this.genId,"_r_").concat(t.key,"_c_").concat(o),props:{index:o},class:d,attrs:l,style:c},f))}return i},renderRows:function(t,e,n){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=0;r<e.length;r++){var o,s=e[r],u=this.renderColumns(s,t,i);n.push(t(so,{key:"id_".concat(this.genId,"_r_").concat(s.key,"_level-").concat(i),ref:"row_".concat(s.key),attrs:{"data-row-key":s.key},class:(o={},c(o,"level-".concat(i),i),c(o,"tree-open",i||this.table.expandedTreeRowKeys.includes(s.key)),o),props:p({rowKey:s.key,level:i,expanded:s.expanded},this.rowProps),on:{click:this.rowSelection.onClick||co,select:this.rowSelection.onSelect||co}},u)),s.hasOwnProperty("children")&&this.table.expandedTreeRowKeys.includes(s.key)&&(this.renderRows(t,s.children,n,++i),this.isIgnoreExpandable=!0,i=i>1?i-1:0),!this.isIgnoreExpandable&&this.customRenders.hasOwnProperty("expandedRowRender")&&n.push(t(lo,{key:"id_".concat(this.genId,"_r_").concat(s.key,"_level-").concat(i,"-expanded"),ref:"row_expanded_".concat(s.key)},this.customRenders.expandedRowRender(s)))}return n}},render:function(t){var e=[];return this.renderRows(t,this.dataSource,e),t("tbody",e)}};function ho(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function po(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function vo(t,e,n){return e&&po(t.prototype,e),n&&po(t,n),t}var mo,go=function(){function t(e){ho(this,t),this.columns=e,this._cached={}}return vo(t,[{key:"isAnyColumnsFixed",value:function(){var t=this;return this._cache("isAnyColumnsFixed",(function(){return t.columns.some((function(t){return!!t.fixed}))}))}},{key:"isAnyColumnsLeftFixed",value:function(){var t=this;return this._cache("isAnyColumnsLeftFixed",(function(){return t.columns.some((function(t){return"left"===t.fixed||!0===t.fixed}))}))}},{key:"isAnyColumnsRightFixed",value:function(){var t=this;return this._cache("isAnyColumnsRightFixed",(function(){return t.columns.some((function(t){return"right"===t.fixed}))}))}},{key:"leftColumns",value:function(){var t=this;return this._cache("leftColumns",(function(){return t.groupedColumns().filter((function(t){return"left"===t.fixed||!0===t.fixed}))}))}},{key:"rightColumns",value:function(){var t=this;return this._cache("rightColumns",(function(){return t.groupedColumns().filter((function(t){return"right"===t.fixed}))}))}},{key:"leafColumns",value:function(){var t=this;return this._cache("leafColumns",(function(){return t._leafColumns(t.columns)}))}},{key:"leftLeafColumns",value:function(){var t=this;return this._cache("leftLeafColumns",(function(){return t._leafColumns(t.leftColumns())}))}},{key:"rightLeafColumns",value:function(){var t=this;return this._cache("rightLeafColumns",(function(){return t._leafColumns(t.rightColumns())}))}},{key:"groupedColumns",value:function(){var t=this;return this._cache("groupedColumns",(function(){return function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];r[n]=r[n]||[];var o=[],s=function(t){var e=r.length-n;t&&!t.children&&e>1&&(!t.rowSpan||t.rowSpan<e)&&(t.rowSpan=e)};return e.forEach((function(u,a){var l=p({},u);r[n].push(l),i.colSpan=i.colSpan||0,l.children&&l.children.length>0?(l.children=t(l.children,n+1,l,r),i.colSpan+=l.colSpan):i.colSpan+=1;for(var c=0;c<r[n].length-1;c+=1)s(r[n][c]);a+1===e.length&&s(l),o.push(l)})),o}(t.columns)}))}},{key:"reset",value:function(t){this.columns=t,this._cached={}}},{key:"_cache",value:function(t,e){return t in this._cached||(this._cached[t]=e()),this._cached[t]}},{key:"_leafColumns",value:function(t){var e=this,n=[];return t.forEach((function(t){t.children?n.push.apply(n,Un(e._leafColumns(t.children))):n.push(t)})),n}}]),t}(),_o={rowSize:["standard","short"]};function yo(t){return isNaN(parseInt(t))?t:t+"px"}var wo={name:"CdsTable",directives:{clickOutside:Cr},provide:function(){return{table:this.table,tableName:this.name,rowSelection:this.rowSelection,isAllChecked:this.isAllChecked,isIndeterminate:this.isIndeterminate}},props:{name:{type:String,required:!0,description:"Название таблицы (техническое)"},title:{type:String,default:"",description:"Заголовок таблицы"},description:{type:String,default:"",description:"Описание таблицы"},hoverable:{type:Boolean,default:!1,description:"Подсвечивание строк"},selectable:{type:Boolean,default:!1,description:"Выделение строк"},multiselectable:{type:Boolean,default:!1,description:"Выбираемые строки (checkbox)"},columns:{type:Array,default:function(){return[]},description:"Данные шапки таблицы"},dataSource:{type:Array,default:function(){return[]},description:"Данные тела таблицы"},autoWidth:{type:Boolean,default:!1,description:"Автоширина"},borderless:{type:Boolean,default:!1,description:"Убрать границу между строками"},ellipsis:{type:Boolean,default:!1,description:"Текст ячеек ограничивается одной строкой с многоточием"},editable:{type:Boolean,default:!1,description:"Убрать отступы сверху и снизу ячейки. Для редактируемой таблицы"},sortable:{type:Boolean,default:!1,description:"Сортировка столбцов"},fixHeader:{type:Boolean,default:!1,description:"Зафиксировать шапку таблицы"},hideHeader:{type:Boolean,default:!1,description:"Скрыть шапку таблицы"},alwaysShowHeader:{type:Boolean,default:!1,description:"Отображать шапку при пустой таблице"},isSelectChildRows:{type:Boolean,default:!1,description:"Выделение строки с дочерними строками"},treeKey:{type:String,default:null,description:"У какой колонки будет значек + для раскрытия уровня"},defaultOverflow:{type:Boolean,default:!1,description:"Overflow таблицы по-умолчанию. (Необходим в случае возникновения проблем в всплывающими или выпадающими элементами в таблице)"},isScrollButtons:{type:Boolean,default:!1,description:"Кноки для скролла таблицы"},scrollStep:{type:Number,default:50,description:"Шаг скролла при активных кнопках скролла"},disabledCheckboxes:{type:Boolean,default:!1,description:"Заблокировать все checkbox"},selectedRows:{type:Array,default:function(){return[]},description:"Выбранные строки при инициализации"},expandedRows:{type:Array,default:function(){return[]},description:"Раскрытые строки при инициализации"},rowSize:{type:String,default:"standard",description:"Высота строк",available:_o.rowSize,validator:function(t){var e=_o.rowSize,n=e.includes(t);return n||console.error("CdsTable.rowSize должно быть одно из следующих: ".concat(e.join(", "))),n}},rowSelection:{type:Object,description:"Объект с колбеками которые вызываются при действиях со строкой",default:function(){return{onClick:g,onExpand:g,onSelect:g,onSelectAll:g}}}},data:function(){return{table:{currentHoverRowKey:null,currentFocusRowKey:null,selectedRowKeys:[],expandedRowKeys:[],expandedTreeRowKeys:[],columnsBodyRowsParams:[],columnsHeadRowsParams:[],isAllChecked:!1,isAllExpanded:!1,isIndeterminate:!1,marginLeftColumnNumber:0,treeKey:this.treeKey},internalColumns:[],isHeaderSticky:!1,isHorizontalScrollable:!1,expandable:!1,headerOffset:0,scrollEndNum:0,isShowFixedLeftColumns:!1,cacheDataKeys:[]}},watch:{"table.selectedRowKeys":function(t){if(this.table.isAllChecked=t.length===this.cacheDataKeys.length,this.table.isIndeterminate=!this.table.isAllChecked&&t.length>0,this.table.isAllChecked&&this.rowSelection.onSelectAll){var e=this._findRowsByKeys(t);this.rowSelection.onSelectAll(e)}},"table.expandedRowKeys":function(t){if(this.rowSelection.onExpand){var e=this._findRowsByKeys(t);this.rowSelection.onExpand(e)}this.table.isAllExpanded=t.length===this.cacheDataKeys.length},"table.expandedTreeRowKeys":function(){this.$nextTick((function(){this._syncRightShadow()}))},columns:function(t){this.internalColumns=this._prepareColumns(t)}},computed:{tableClasses:function(){return c({"cds-table__table":!0,"cds-table__table--empty":this._isEmptyTable(),"cds-table__table--borderless":this.borderless,"cds-table__table--ellipsis":this.ellipsis,"cds-table__table--editable":this.editable,"cds-table__table--selectable":this.selectable||this.multiselectable,"cds-table__table--sortable":this.sortable,"cds-table__table--expandable":this.expandable,"cds-table__table--hide-header":this.hideHeader},"cds-table__table--".concat(this.rowSize),"standard"!==this.rowSize)}},created:function(){this.internalColumns=this._prepareColumns(this.columns)},mounted:function(){var t,e,n,i,r=this;(this.expandable=null!==this._getSlot("expandedRowRender"),this.cacheDataKeys=this._getAllDataKeys(),this.expandedRows.length&&(this.table.expandedRowKeys=this.expandedRows,this.table.expandedTreeRowKeys=this.expandedRows),this.selectedRows.length&&(this.table.selectedRowKeys=this.selectedRows),this.isScrollButtons)&&(null===(t=this.$refs.leftButton)||void 0===t||t.$el.addEventListener("click",(function(t){return r._scrollClick(t,!0)})),null===(e=this.$refs.rightButton)||void 0===e||e.$el.addEventListener("click",(function(t){return r._scrollClick(t)})),this.fixHeader&&(null===(n=this.$refs.fixLeftButton)||void 0===n||n.$el.addEventListener("click",(function(t){return r._scrollClick(t,!0)})),null===(i=this.$refs.fixRightButton)||void 0===i||i.$el.addEventListener("click",(function(t){return r._scrollClick(t)}))));this._isEmptyTable()||this.syncTables()},destroyed:function(){var t,e,n=this;(window.removeEventListener("scroll",this._onVerticalScroll),window.removeEventListener("scroll",this._onHorizontalScroll),this.isScrollButtons)&&(null===(t=this.$refs.leftButton)||void 0===t||t.$el.addEventListener("click",(function(t){return n._scrollClick(t,!0)})),null===(e=this.$refs.rightButton)||void 0===e||e.$el.addEventListener("click",(function(t){return n._scrollClick(t)})));this.fixHeader&&window.removeEventListener("resize",this.syncTables)},beforeUpdate:function(){var t=this;this.cacheDataKeys=this._getAllDataKeys(),this.$nextTick((function(){t._isEmptyTable()||t.syncTables()}))},render:function(t){var e=(mo=new go(this.internalColumns)).leafColumns(),n=mo.leftColumns(),i=[],r=[];if(this._isEmptyTable()){var o=this._getSlot("empty")?this._getSlot("empty")():"empty table";return this.alwaysShowHeader&&this.columns.length?(r.push(t("div",{class:"cds-table__scroll",ref:"table"},[t("table",{key:"".concat(this.name,"_base"),class:this.tableClasses},[this._renderHead(e,t),t("div",{class:"cds-table__table--empty-container"},o)])])),t("div",{class:"cds-table"},r)):t("div",o)}return this._getSlot("header")&&i.push(this._getSlot("header")()),this.isScrollButtons&&i.push(t("div",{class:"cds-table__scroll-buttons",ref:"scrollButtons"},[t(k,{props:{iconOnly:!0,appearance:"secondary"},ref:"leftButton"},[t(cn,{slot:"icon",props:{name:"chevronLeft"}})]),t(k,{props:{iconOnly:!0,appearance:"secondary"},ref:"rightButton"},[t(cn,{slot:"icon",props:{name:"chevronRight"}})])])),mo.isAnyColumnsLeftFixed()&&r.push(t("div",{class:"cds-table__fixed-left",style:{display:this.isShowFixedLeftColumns?"block":"none"},ref:"fixedLeftWrapper"},[t("table",{key:"".concat(this.name,"_left_header"),class:[this.tableClasses,"cds-table__fixed-left-header",{"cds-table__fixed-left-header--fixed":this.isHeaderSticky}],ref:"leftHeader"},[this._renderHead(n,t,!0)]),t("table",{key:"".concat(this.name,"_left_body"),class:[this.tableClasses,"cds-table__fixed-left-column"],ref:"leftTable"},[this._renderHead(n,t),this._renderBody(n,t,!0)])])),this.fixHeader&&(this.isScrollButtons?r.push(t("div",{class:"cds-table__fixed-header",ref:"fixedHeader"},[t("div",{class:"cds-table__scroll-buttons",ref:"scrollButtons"},[t(k,{props:{iconOnly:!0,appearance:"secondary"},ref:"fixLeftButton"},[t(cn,{slot:"icon",props:{name:"chevronLeft"}})]),t(k,{props:{iconOnly:!0,appearance:"secondary"},ref:"fixRightButton"},[t(cn,{slot:"icon",props:{name:"chevronRight"}})])]),t("table",{key:"".concat(this.name,"_header"),class:this.tableClasses,ref:"fixedHeaderTable"},[this._renderHead(e,t)])])):r.push(t("div",{class:"cds-table__fixed-header",ref:"fixedHeader"},[t("table",{key:"".concat(this.name,"_header"),class:this.tableClasses,ref:"fixedHeaderTable"},[this._renderHead(e,t)])]))),r.push(t("div",{class:"cds-table__scroll",ref:"table"},[t("table",{key:"".concat(this.name,"_base"),class:this.tableClasses},[this._renderHead(e,t),this._renderBody(e,t)]),t("div",{class:"cds-table__right-shadow",ref:"rightShadow"},"")])),i.push(t("div",{class:{"cds-table":!0,"cds-table__default-overflow":this.defaultOverflow}},r)),this._getSlot("footer")&&i.push(this._getSlot("footer")()),t("div",{class:"cds-table-wrap",directives:[{name:"click-outside",expression:"_onClickOutside"}]},i)},methods:{setSelected:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){e.table.selectedRowKeys.includes(t)||e.table.selectedRowKeys.push(t)})):"string"==typeof t||"number"==typeof t?this.table.selectedRowKeys.includes(t)||this.table.selectedRowKeys.push(t):console.error("Метод removeSelected может принимать только: string[], number[], string, number")},removeSelected:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){e.table.selectedRowKeys.includes(t)&&(e.table.selectedRowKeys=e.table.selectedRowKeys.filter((function(e){return e!==t})))})):"string"==typeof t||"number"==typeof t?this.table.selectedRowKeys.includes(t)&&(this.table.selectedRowKeys=this.table.selectedRowKeys.filter((function(e){return e!==t}))):console.error("Метод removeSelected может принимать только: string[], number[], string, number")},setExpanded:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){e.table.expandedRowKeys.includes(t)&&e.table.expandedTreeRowKeys.includes(t)||(e.table.expandedRowKeys.push(t),e.table.expandedTreeRowKeys.push(t))})):"string"==typeof t||"number"==typeof t?this.table.expandedRowKeys.includes(t)&&this.table.expandedTreeRowKeys.includes(t)||(this.table.expandedRowKeys.push(t),this.table.expandedTreeRowKeys.push(t)):console.error("Метод setExpanded может принимать только: string[], number[], string, number")},removeExpanded:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){(e.table.expandedRowKeys.includes(t)||e.table.expandedTreeRowKeys.includes(t))&&(e.table.expandedRowKeys=e.table.expandedRowKeys.filter((function(e){return e!==t})),e.table.expandedTreeRowKeys=e.table.expandedTreeRowKeys.filter((function(e){return e!==t})))})):"string"==typeof t||"number"==typeof t?(this.table.expandedRowKeys.includes(t)||this.table.expandedTreeRowKeys.includes(t))&&(this.table.expandedRowKeys=this.table.expandedRowKeys.filter((function(e){return e!==t})),this.table.expandedTreeRowKeys=this.table.expandedTreeRowKeys.filter((function(e){return e!==t}))):console.error("Метод removeExpanded может принимать только: string[], number[], string, number")},_scrollClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?this.$refs.table.scrollLeft-=this.scrollStep:this.$refs.table.scrollLeft+=this.scrollStep},_isEmptyTable:function(){return 0===this.dataSource.length},_getSlot:function(t){return this.$scopedSlots&&this.$scopedSlots.hasOwnProperty(t)?this.$scopedSlots[t]:null},_prepareColumns:function(t){var e=this;return t.map((function(t){return t.hasOwnProperty("defaultSortOrder")||e.$set(t,"order","none"),t.hasOwnProperty("align")?e.$set(t,"align",t.align):e.$set(t,"align","left"),t.hasOwnProperty("sortable")||e.$set(t,"sortable",!1),t}))},_getAllDataKeys:function(){var t=[];return function e(n){for(var i=0;i<n.length;i++){var r=n[i];r.hasOwnProperty("key")&&(t.push(r.key),r.hasOwnProperty("children")&&e(r.children))}}(this.dataSource),t},_onSelectAll:function(){this.table.isAllChecked?(this.table.selectedRowKeys.splice(0,this.table.selectedRowKeys.length),this.rowSelection.onUnselectAll&&this.rowSelection.onUnselectAll()):this.$set(this.table,"selectedRowKeys",Un(this.cacheDataKeys))},_onExpandAll:function(){this.table.isAllExpanded?this.table.expandedRowKeys.splice(0,this.table.expandedRowKeys.length):this.$set(this.table,"expandedRowKeys",Un(this.cacheDataKeys))},_onSort:function(t,e){var n=this,i=this.internalColumns[t];this.internalColumns.forEach((function(t){return n.$set(t,"order","none")})),i.order=e},_renderHead:function(t,e,n){return e(ao,{props:{columns:t,multiselectable:this.multiselectable,expandable:this.expandable,disabledCheckboxes:this.disabledCheckboxes,treeKey:this.treeKey,isLeftFixedHeader:n,isScrollButtons:this.isScrollButtons,fixHeader:this.isHeaderSticky},on:{selectAll:this._onSelectAll,expandAll:this._onExpandAll,sort:this._onSort}})},_renderBody:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e(fo,{props:{columns:t,dataSource:this.dataSource,rowProps:{selectable:this.selectable,multiselectable:this.multiselectable,disabledCheckboxes:this.disabledCheckboxes,expandable:this.expandable,hoverable:this.hoverable,isSelectChildRows:this.isSelectChildRows,isLeftColumn:n}}})},_getRowsParams:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"td";return[].map.call(t,(function(t){var n={height:t.getBoundingClientRect().height,tdsWidth:[]};return[].map.call(t.querySelectorAll(e+":not(.selection)"),(function(t){n.tdsWidth.push(t.getBoundingClientRect().width)})),n}))},_syncHeadTable:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.querySelectorAll("thead tr")||[],r=0;[].map.call(i,(function(t,n){var i=e.table.columnsHeadRowsParams[n];t.style.height=yo(i.height),[].map.call(t.querySelectorAll("th:not(.selection)"),(function(t,e){"auto"!==i.tdsWidth[e]&&(t.style.minWidth=yo(i.tdsWidth[e]),t.style.width=yo(i.tdsWidth[e]),r+=i.tdsWidth[e])}))})),n&&(t.style.width=yo(r))},_syncBodyTable:function(t){var e=this,n=t.querySelectorAll("tbody tr")||[];[].map.call(n,(function(t,n){var i=e.table.columnsBodyRowsParams[n];t.style.height=yo(i.height)}))},_syncRightShadow:function(){this.$refs.rightShadow.style.height=yo(this.$refs.table.offsetHeight)},syncTables:function(){var t=this.$refs.table.querySelectorAll("tbody tr")||[],e=this.$refs.table.querySelectorAll("thead tr")||[],n=this._getRowsParams(e,"th"),i=this._getRowsParams(t);this.$set(this.table,"columnsHeadRowsParams",n),this.$set(this.table,"columnsBodyRowsParams",i),this.fixHeader&&(this._syncHeadTable(this.$refs.fixedHeader.querySelector("table"),!1),this.$refs.fixedHeader.style.width=yo(this.$refs.table.clientWidth)),mo.isAnyColumnsLeftFixed()&&(this._syncHeadTable(this.$refs.leftHeader),this._syncHeadTable(this.$refs.leftTable),this._syncBodyTable(this.$refs.leftTable),this.table.marginLeftColumnNumber=mo.leftColumns().length,this.expandable&&this.table.marginLeftColumnNumber++),this.multiselectable&&this.table.marginLeftColumnNumber++,this.headerOffset=function(t){var e=0,n=0;do{e+=t.offsetTop||0,n+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:n}}(this.$refs.table.querySelector("thead")),this.isHorizontalScrollable=this.$refs.table.scrollWidth>this.$refs.table.clientWidth,this.scrollEndNum=this.$refs.table.scrollWidth-this.$refs.table.clientWidth,this.isHorizontalScrollable&&this._syncRightShadow(),this.fixHeader&&(window.addEventListener("scroll",this._onVerticalScroll),window.addEventListener("resize",this.syncTables)),this.isHorizontalScrollable&&(this._onHorizontalScroll(),this.$refs.table.addEventListener("scroll",this._onHorizontalScroll))},_onVerticalScroll:function(){var t=document.documentElement.scrollTop||document.body.scrollTop,e=this.$refs.table.getBoundingClientRect(),n=this.$refs.table.scrollLeft;t>this.headerOffset.top&&e.top+e.height-this.table.columnsHeadRowsParams[0].height-20>0?(this.isHeaderSticky=!0,this.$refs.fixedHeaderTable.style.left=yo(-n),this.$refs.fixedHeader.style.display="block"):(this.isHeaderSticky=!1,this.$refs.fixedHeader.style.display="none")},_onHorizontalScroll:function(){var t=this.$refs.table.scrollLeft;this.isHeaderSticky&&(this.$refs.fixedHeaderTable.style.left=yo(-t)),this.isShowFixedLeftColumns=t>0,t===this.scrollEndNum?this.$refs.rightShadow.style.display="none":this.$refs.rightShadow.style.display="block"},_onClickOutside:function(){null!==this.table.currentFocusRowKey&&(this.table.currentFocusRowKey=null)},_findRowsByKeys:function(t){var e,i=this,r=[],o=n(t);try{var s=function(){var t=e.value,n=i.dataSource.find((function(e){return e.key===t}));r.push(n)};for(o.s();!(e=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}return r}}},bo=_({name:"CdsTableFooter"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",{staticClass:"cds-table__footer"},[n("div",[t._t("pagination")],2),t._v(" "),n("div",{staticClass:"cds-table__footer--summary"},[n("span",[t._t("summary")],2)]),t._v(" "),n("div",{staticClass:"cds-table__footer--view"},[t._t("view")],2)])}),[],!1,null,null,null).exports;wo.install=function(t){t.component(wo.name,wo)},bo.install=function(t){t.component(bo.name,bo)},"undefined"!=typeof window&&window.Vue&&(wo.install(window.Vue),bo.install(window.Vue));i(285),i(1637);var Co=new(function(){function t(){ho(this,t)}return vo(t,[{key:"get",value:function(t){var e=JSON.parse(localStorage.getItem(t));return e?new Date(e.expires)<new Date?(localStorage.removeItem(t),null):e.value:null}},{key:"set",value:function(t,e,n){var i=(new Date).getTime(),r=new Date(i+6e4*n);localStorage.setItem(t,JSON.stringify({value:e,expires:r}))}}]),t}()),Eo="requestTabs",xo=new(s()),Ao=["sm","md","lg","xlg","max"],Do=_({name:"CdsTabs",props:{tabsId:{type:String,required:!1,default:null,description:"ID табов"},activeTab:{type:String,default:null,description:"ID активного таба"},cacheLifetime:{type:Number,default:0,description:"Срок хранения выбранных табов localStorage (минуты)"},useGetParam:{type:Boolean,default:!1,description:"Использовать ли get параметр url"},getParamName:{type:String,default:"tab-id",description:"Имя get параметра используемого табами"},breakpoint:{type:String,default:"md",description:"Breakpoint для отображения inline-навигации (sm|md|lg|xlg|max)",validator:function(t){return b(Ao,t,"CdsTabs.breakpoint")}},preventInitialChange:{type:Boolean,default:!1,description:"Компонент не будет инициировать первоначальное событие changed"},isSecondary:{type:Boolean,default:!1,description:"Табы второго уровня"}},data:function(){return{tabs:[],activeTabId:null,preventChange:!1}},computed:{classes:function(){return c({"cds-tabs":!0,"cds-tabs--secondary":this.isSecondary},"cds-tabs__breakpoint-".concat(this.breakpoint),!0)},storageKey:function(){return"cds-tabs.cache.".concat(window.location.host).concat(window.location.pathname)}},watch:{tabs:function(){if(this.useGetParam){var t=this._findTab(this._getTabIdFromParams());if(t)return void this.selectTab(t)}if(this.cacheLifetime>0){var e=Co.get(this.storageKey),n=this._findTab(e);if(n)return void this.selectTab(n)}if(this.activeTab){var i=this._findTab(this.activeTab);if(i)return void this.selectTab(i)}this.tabs.length&&this.selectTab(this._findTab(this.tabs[0].computedId))}},beforeMount:function(){this.preventChange=this.preventInitialChange},mounted:function(){var t=this;this.tabs=this._getTabsFromSlots(),this.tabs.length||xo.$on(Eo,(function(e){e.tabsId===t.tabsId&&t.tabs.push(e)}))},methods:{_getTabsFromSlots:function(){return this.$slots.default?this.$slots.default.filter((function(t){return t.tag&&["CdsTabsItem","cds-tabs-item"].includes(t.componentOptions.tag)})).map((function(t){return t.componentInstance})):[]},_findTab:function(t){return this.tabs.find((function(e){return e.computedId===t}))},_getTabIdFromParams:function(){var t=window.location.href;return new URL(t).searchParams.get(this.getParamName)},_getLinkClasses:function(t){var e;return c(e={},m.active,t.isActive),c(e,m.disabled,t.isDisabled),e},selectTab:function(t,e){if(e&&e.preventDefault(),t)if(t.isDisabled){if(!e)return;e.preventDefault()}else this.tabs.forEach((function(e){e.isActive=e.computedId===t.computedId})),this.preventChange?this.preventChange=!1:this.$emit("changed",{tab:t}),this.activeTabId=t.computedId,Co.set(this.storageKey,t.computedId,this.cacheLifetime),this.useGetParam&&window.history.pushState(null,null,"?".concat(this.getParamName,"=").concat(t.computedId).concat(window.location.hash))}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("ul",{staticClass:"cds-tabs__menu"},t._l(t.tabs,(function(e,i){return n("li",{key:i,staticClass:"cds-tabs__item"},[n("a",{class:t._getLinkClasses(e),attrs:{"aria-controls":e.computedId,href:e.computedId,"aria-selected":e.isActive,role:"tab"},on:{click:function(n){t.selectTab(t._findTab(e.computedId),n)}}},[t._v("\n "+t._s(e.header)+"\n ")])])})),0),t._v(" "),n("CdsDropdown",{staticClass:"cds-tabs__dropdown",model:{value:t.activeTabId,callback:function(e){t.activeTabId=e},expression:"activeTabId"}},t._l(t.tabs,(function(e,i){return n("CdsDropdownItem",{key:i,attrs:{value:e.computedId,disabled:e.isDisabled},on:{click:function(n){t.selectTab(t._findTab(e.computedId),n)}}},[t._v("\n "+t._s(e.header)+"\n ")])})),1),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports;function ko(t,e,n,i,r,o,s){try{var u=t[o](s),a=u.value}catch(t){return void n(t)}u.done?e(a):Promise.resolve(a).then(i,r)}i(5666);var Fo={name:"CdsTabsItem",props:{name:{type:String,required:!0,description:"Название таба"},prefix:{type:String,default:"",required:!1,description:"Префикс названия таба"},suffix:{type:String,default:"",required:!1,description:"Суффикс названия таба"},isDisabled:{type:Boolean,default:!1,description:"Заблокированный таб"},tabsId:{type:String,default:"",description:"ID cds-tabs к которым необходимо привязать данный таб (Необходимо только в случае, если табы находяться вне контейнера cds-tabs)"},targetId:{type:[String],required:!1,default:void 0,description:"ID таба"},tag:{type:String,default:"section",description:"Тег оборачивающийся табом"}},data:function(){return{isActive:!1}},computed:{header:function(){return this.prefix+this.name+this.suffix},computedId:function(){return this.targetId?this.targetId:this.name.toLowerCase().replace(/ /g,"-")}},mounted:function(){var t=this;return function(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){ko(o,i,r,s,u,"next",t)}function u(t){ko(o,i,r,s,u,"throw",t)}s(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$nextTick();case 2:t.tabsId&&xo.$emit(Eo,t);case 3:case"end":return e.stop()}}),e)})))()}},So=_(Fo,(function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.tag,{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],tag:"component",attrs:{id:t.computedId,"aria-hidden":!t.isActive,role:"tabpanel"}},[t._t("default")],2)}),[],!1,null,null,null).exports,Bo=_({name:"CdsTabsSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-tabs cds-tabs__breakpoint-md"},[n("ul",{staticClass:"cds-tabs__menu",staticStyle:{display:"flex"}},[n("li",{staticClass:"cds-tabs__item"},[n("span",{staticClass:"cds-tabs__item--skeleton"},[n("cds-skeleton",{attrs:{width:"56px",height:"12px"}})],1)]),t._v(" "),n("li",{staticClass:"cds-tabs__item"},[n("span",{staticClass:"cds-tabs__item--skeleton"},[n("cds-skeleton",{attrs:{width:"38px",height:"12px"}})],1)]),t._v(" "),n("li",{staticClass:"cds-tabs__item"},[n("span",{staticClass:"cds-tabs__item--skeleton"},[n("cds-skeleton",{attrs:{width:"56px",height:"12px"}})],1)])])])}),[],!1,null,null,null).exports;Do.install=function(t){t.component(Do.name,Do)},So.install=function(t){t.component(So.name,So)},Bo.install=function(t){t.component(Bo.name,Bo)},"undefined"!=typeof window&&window.Vue&&(Do.install(window.Vue),So.install(window.Vue),Bo.install(window.Vue));var $o={size:["sm","md"],color:["yellow","green","light-blue","blue","deep-purple","purple","pink"]},Io=_({name:"CdsTag",components:{CdsIcon:cn},props:{title:{type:String,required:!0,description:"Текст тэга"},href:{type:String,default:"",description:"Ссылка для тэга"},removable:{type:Boolean,default:!1,description:"Удаляемые тэг"},disabled:{type:Boolean,default:!1,description:"Заблокированный тэг"},size:{type:String,default:"sm",available:$o.size,validator:function(t){return b($o.size,t,"Tag.size")},description:"Размер тэга"},color:{type:String,default:null,validator:function(t){return b($o.color,t,"Tag.color")},description:"Цвет тега"}},computed:{classes:function(){var t;return c(t={"cds-tag":!0,"cds-tag--removable":this.removable,"cds-tag--interactive":this.hasLink},"cds-tag__size--".concat(this.size),this.size),c(t,"cds-tag__color--".concat(this.color),this.color),c(t,m.disabled,this.disabled),t},hasLink:function(){return!!this.href},link:function(){return this.hasLink?this.href:null},htmlTag:function(){return this.hasLink?"a":"span"}},methods:{remove:function(t){this.disabled||this.$emit("remove",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.htmlTag,t._g({tag:"component",class:t.classes,attrs:{href:t.link,tabindex:"0",title:t.title,"aria-label":t.title}},t.$listeners),[n("span",{staticClass:"cds-tag__title",attrs:{tabindex:"-1"}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.removable?n("button",{staticClass:"cds-tag__close",attrs:{type:"button",disabled:t.disabled},on:{click:function(e){return e.preventDefault(),t.remove.apply(null,arguments)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.remove.apply(null,arguments))}}},[t.removable?n("CdsIcon",{staticClass:"cds-tag__icon",attrs:{name:"remove"}}):t._e()],1):t._e()])}),[],!1,null,null,null),Oo=Io.exports,Lo=_({name:"CdsTagSkeleton"},(function(){var t=this.$createElement;return(this._self._c||t)("cds-skeleton",{staticClass:"cds-tag__skeleton",attrs:{width:"52px",height:"16px"}})}),[],!1,null,null,null).exports;Oo.install=function(t){t.component(Oo.name,Oo)},Lo.install=function(t){t.component(Lo.name,Lo)},"undefined"!=typeof window&&window.Vue&&(Oo.install(window.Vue),Lo.install(window.Vue));var To=_({name:"CdsTextArea",components:{CdsInputLabel:Pn,CdsInputDescription:Hn,CdsInputError:zn,CdsInputCounter:Rn,CdsIcon:cn},mixins:[hn],inheritAttrs:!1,props:{label:{type:String,required:!0,description:"Лейбл компонента"},placeholder:{type:String,required:!0,description:"Обязательный плейсхолдер"},description:{type:[String,Boolean],default:!1,description:"Описание"},hiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},autofocus:{type:Boolean,default:!1,description:"Активировать фокус на textarea"},limit:{type:Number,default:null,description:"Максимальное кол-во символов"},value:{type:[String],default:null,description:"Внешняя модель для текстового поля, указывается v-model"},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},computed:{classes:function(){var t;return c(t={"cds-text-area":!0},m.invalid,this.error),c(t,m.disabled,this.disabled),t},count:function(){return this.value?this.value.length:0},inputListeners:function(){var t=this;return p(p({},this.$listeners),{},{input:function(e){return t.$emit("input",e.target.value)},blur:function(e){return t.$emit("blur",e.target.value)}})}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{id:t.id,label:t.label,"optional-label":t.optionalLabel,optional:t.optional}}),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",{staticClass:"cds-text-area__field"},[t.limit&&!t.disabled?n("CdsInputCounter",{attrs:{count:t.count,limit:t.limit}}):t._e(),t._v(" "),n("textarea",t._g(t._b({ref:"input",attrs:{id:t.id,placeholder:t.placeholder,disabled:t.disabled,autofocus:t.autofocus,maxlength:t.limit,"aria-invalid":t.error},domProps:{value:t.value}},"textarea",t.$attrs,!1),t.inputListeners)),t._v(" "),t.error?n("CdsIcon",{staticClass:"cds-text-area__alert-icon",attrs:{name:"alert"}}):t._e()],1),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null).exports,Mo=_({name:"CdsTextAreaSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-text-input"},[n("label",{staticClass:"cds-input__label"},[n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("div",{staticClass:"cds-input__description"},[n("cds-skeleton",{attrs:{width:"100px",height:"8px"}})],1),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[n("cds-skeleton",{attrs:{width:"240px",height:"108px"}})],1)])}),[],!1,null,null,null).exports;To.install=function(t){t.component(To.name,To)},Mo.install=function(t){t.component(Mo.name,Mo)},"undefined"!=typeof window&&window.Vue&&(To.install(window.Vue),Mo.install(window.Vue));var Vo=_({name:"CdsTextInput",components:{CdsInputLabel:Pn,CdsInputDescription:Hn,CdsInput:Vn,CdsInputCounter:Rn,CdsInputError:zn,CdsIcon:cn},mixins:[hn],inheritAttrs:!1,props:{label:{type:String,required:!0,description:"Лейбл компонента"},placeholder:{type:String,default:"",description:"Плейсхолдер"},description:{type:[String,Boolean],default:!1,description:"Описание"},password:{type:Boolean,default:!1,description:"Поле для ввода пароля"},hiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"},disabled:{type:Boolean,required:!1,default:!1,description:"Заблокированный"},autofocus:{type:Boolean,required:!1,default:!1,description:"Активировать фокус на инпуте"},limit:{type:Number,default:null,description:"Максимальное кол-во символов"},value:{type:[String,Number],required:!1,default:"",description:"Если установили v-model компоненту, то value автоматически подставится. Иначе писать самому"},prefixClass:{type:String,required:!1,default:"",description:"Класс для префикса"},suffixClass:{type:String,required:!1,default:"",description:"Класс для суффикса"},optional:{type:Boolean,default:!1,description:"Является ли поле опциональным"},optionalLabel:{type:String,default:"необязательно",description:"Текст для поля если оно является опциональным"},error:{type:Boolean,default:!1,description:"Ошибка"},errorMessage:{type:String,default:null,description:"Сообщение об ошибке"}},data:function(){return{internalValue:null,isPasswordVisible:!1}},computed:{classes:function(){var t;return c(t={"cds-text-input":!0},m.invalid,this.error),c(t,m.disabled,this.disabled),t},events:function(){return p(p({},this.$listeners),{},{input:this._input,blur:this._onBlur,keydown:this._onKeyDown})},count:function(){return this.internalValue?this.internalValue.length:0},type:function(){return this.password&&!this.isPasswordVisible?"password":"text"},passwordIcon:function(){return this.isPasswordVisible?"visibility-off":"visibility-on"}},watch:{value:{immediate:!0,deep:!0,handler:function(t){this.internalValue=t}}},methods:{_input:function(t){this.internalValue=t,this.$emit("input",t)},_onBlur:function(t){this.internalValue=t.target.value,this.$emit("blur",this.internalValue)},_onKeyDown:function(t){t.keyCode===v.enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},togglePasswordVisibility:function(){this.isPasswordVisible=!this.isPasswordVisible},setFocus:function(){this.$refs.input.setFocus()}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("CdsInputLabel",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{id:t.id,label:t.label,"optional-label":t.optionalLabel,optional:t.optional}}),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[t.limit&&!t.disabled?n("CdsInputCounter",{attrs:{count:t.count,limit:t.limit}}):t._e(),t._v(" "),n("CdsInput",t._g(t._b({ref:"input",attrs:{id:t.id,value:t.value,label:t.label,type:t.type,placeholder:t.placeholder,autofocus:t.autofocus,disabled:t.disabled,invalid:t.error,maxlength:t.limit,"prefix-class":t.prefixClass,"suffix-class":t.suffixClass},scopedSlots:t._u([t.password?{key:"suffix",fn:function(){return[n("button",{staticClass:"cds-text-input__password-button",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.togglePasswordVisibility.apply(null,arguments)}}},[n("CdsIcon",{staticClass:"cds-text-input__password-icon",attrs:{name:t.passwordIcon}})],1)]},proxy:!0}:null],null,!0)},"CdsInput",t.$attrs,!1),t.events))],1),t._v(" "),t.error&&t.errorMessage?n("CdsInputError",{attrs:{text:t.errorMessage}}):t._e()],1)}),[],!1,null,null,null),Ro=Vo.exports,Ho=_({name:"CdsTextInputSkeleton",components:{CdsInputSkeleton:jn}},(function(){var t=this.$createElement;return(this._self._c||t)("cds-input-skeleton")}),[],!1,null,null,null).exports;Ro.install=function(t){t.component(Ro.name,Ro)},Ho.install=function(t){t.component(Ho.name,Ho)},"undefined"!=typeof window&&window.Vue&&(Ro.install(window.Vue),Ho.install(window.Vue));var zo=_({name:"CdsToggle",mixins:[hn],inheritAttrs:!1,model:{prop:"model",event:"change"},props:{label:{type:String,required:!0,description:"Лейбл переключателя"},textOn:{type:String,default:"",description:"Описание включенного состояния"},textOff:{type:String,default:"",description:"Описание выключенного состояния"},checked:{type:Boolean,default:!1,description:"Состояние включен\\выключен"},value:{type:[String,Number,Boolean],default:!1,description:"Значение переключателя"},model:{type:[String,Number,Boolean],default:null,description:"Внешняя модель v-model"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},hiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"}},data:function(){return{isChecked:this.checked}},computed:{events:function(){return p(p({},this.$listeners),{},{change:this._onChange,keydown:this._onKeyDown})},classes:function(){var t;return c(t={"cds-toggle":!0,"cds-toggle--with-label":!this.hiddenLabel},m.checked,this.shouldBeChecked),c(t,m.disabled,this.disabled),t},shouldBeChecked:function(){return null!==this.model?"string"==typeof this.model||!!this.model:this.isChecked}},watch:{checked:function(t){this.isChecked=t}},methods:{change:function(t){return this.isChecked=t,this.isChecked},_onChange:function(t){var e=this.change(t.target.checked);this.$emit("change",e)},_onKeyDown:function(t){t.keyCode===v.enter&&(t.preventDefault(),this.change(!this.isChecked)),this.$emit("keydown",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("input",t._g(t._b({ref:"input",staticClass:"cds-toggle__input",attrs:{id:t.id,type:"checkbox",disabled:t.disabled,"aria-checked":""+t.shouldBeChecked,"aria-label":t.label},domProps:{value:t.value,checked:t.shouldBeChecked}},"input",t.$attrs,!1),t.events)),t._v(" "),n("label",t._g({staticClass:"cds-toggle__label",attrs:{for:t.id}},t.events),[n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{"aria-hidden":""+t.hiddenLabel}},[t._v(t._s(t.label))]),t._v(" "),n("span",{staticClass:"cds-toggle__switch"},[n("span",{staticClass:"cds-toggle__off"},[t._v(t._s(t.textOff))]),t._v(" "),n("span",{staticClass:"cds-toggle__on"},[t._v(t._s(t.textOn))])])])])}),[],!1,null,null,null).exports,Po=_({name:"CdsToggleSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"cds-toggle"},[e("cds-skeleton",{staticStyle:{"border-radius":"12px"},attrs:{width:"44px",height:"24px"}})],1)}),[],!1,null,null,null).exports;zo.install=function(t){t.component(zo.name,zo)},Po.install=function(t){t.component(Po.name,zo)},"undefined"!=typeof window&&window.Vue&&(zo.install(window.Vue),Po.install(window.Vue));var jo=i(5976),No=i.n(jo),Uo=i(3096),Ko=i.n(Uo),qo={name:"CdsFile",components:{CdsIcon:ln,CdsLoading:w,CdsTooltip:bn,CdsButton:k},props:{file:{type:Object,required:!0,description:"Объект файла который загрузили"},downloadUrl:{type:String,default:null,description:"Url для загрузки скаченных файлов"}},data:function(){return{check:!1}},computed:{tag:function(){return this.downloadUrl&&this.check?"cds-link":"span"},internalDownloadUrl:function(){return"".concat(this.downloadUrl,"/").concat(this.file.name)},iconName:function(){return this.file.error?"alert":this.check?"check":"loader"},iconClasses:function(){return c({},"cds-uploader__icon--".concat(this.iconName),this.iconName)},tooltipText:function(){return this.file.error?this.file.error:this.check?"Загружено":"Загрузка"}},watch:{"file.success":{handler:function(t){this.check=t},immediate:!0}}},Wo=_(qo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-uploader__wrapper"},[n("cds-tooltip",{staticClass:"cds-uploader__status",attrs:{align:"start",tip:t.tooltipText}},[n("cds-icon",{class:t.iconClasses,attrs:{name:t.iconName}})],1),t._v(" "),n(t.tag,{tag:"component",staticClass:"cds-uploader__filename",attrs:{text:t.file.name,to:t.internalDownloadUrl,download:"","use-router":!1}},[t._v("\n "+t._s("span"===t.tag?t.file.name:"")+"\n ")]),t._v(" "),n("cds-tooltip",{attrs:{tip:"Удалить файл"}},[n("cds-button",{attrs:{appearance:"transparent","icon-only":""},on:{click:function(e){return e.preventDefault(),t.$emit("remove")},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$emit("remove"))},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.$emit("remove"))}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("cds-icon",{attrs:{name:"remove","arial-label":"Remove file"}})]},proxy:!0}])})],1)],1)}),[],!1,null,null,null).exports,Yo={name:"CdsFile",components:{CdsIcon:ln,CdsLoading:w},props:{file:{type:Object,required:!0,description:"Объект файла который загрузили"},removed:{type:Boolean,description:"Можно ли удалить файл"}},data:function(){return{check:!1}},computed:{isShowRemoveIcon:function(){return(this.file.success||this.file.error)&&!this.check&&this.removed}},watch:{"file.success":function(t){var e=this;t&&(this.check=!0,setTimeout((function(){e.check=!1}),800))}}},Go=_(Yo,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-uploader-old__wrapper"},[n("div",{class:["cds-uploader-old__file",{"cds-uploader-old__error":t.file.error}],attrs:{title:t.file.name}},[(t.file.active||t.file.progress<100)&&!t.file.error?n("div",{staticClass:"cds-uploader-old__progress",style:{width:t.file.progress+"%"}}):t._e(),t._v(" "),n("div",{staticClass:"cds-uploader-old__name"},[t._v("\n "+t._s(t.file.name)+"\n ")]),t._v(" "),t.isShowRemoveIcon?n("CdsIcon",{attrs:{name:"remove","arial-label":"Remove file"},on:{click:function(e){return e.preventDefault(),t.$emit("remove")},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.$emit("remove"))},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.$emit("remove"))}}}):t._e(),t._v(" "),t.check?n("CdsIcon",{staticClass:"cds-uploader-old__success--icon",attrs:{name:"check"}}):t._e(),t._v(" "),t.file.error?n("CdsIcon",{staticClass:"cds-uploader-old__error--icon",attrs:{name:"alert"}}):t._e(),t._v(" "),(t.file.active||t.file.progress<100)&&!t.isShowRemoveIcon?n("CdsLoading",{staticClass:"cds-uploader-old__loading",attrs:{small:!0}}):t._e()],1),t._v(" "),t.file.error?n("div",{staticClass:"cds-uploader-old__error--text"},[t._v("\n "+t._s(t.file.error)+"\n ")]):t._e()])}),[],!1,null,null,null).exports,Jo=_({name:"CdsUploader",components:{FileUpload:No(),CdsButton:k,CdsInputLabel:Pn,CdsInputDescription:Hn,CdsFile:Wo,CdsFileOld:Go},mixins:[hn],model:{prop:"model",event:"change"},props:{label:{type:String,default:null,description:"Лейбл аплоадера"},description:{type:String,default:null,description:"Описание аплоадера, в нем может быть и указаны типа файлов и т.п."},buttonText:{type:String,default:"Загрузить файл",description:"Текст в кнопке"},uploadUrl:{type:String,required:!0,description:"Url для загрузки файлов POST методом"},putAction:{type:String,default:"",description:"Url для загрузки файлов PUT методом"},deleteUrl:{type:String,default:null,description:"Url для удаление файлов POST методом"},downloadUrl:{type:String,default:null,description:"Url для скачивания загруженных файлов. Активирует новый внешний вид"},headers:{type:Object,default:function(){},description:"Заголовки"},allowedTypes:{type:Array,default:function(){return["jpeg","jpg","png","doc","docs","zip"]},description:"Доступные форматы для загрузки файлов"},name:{type:String,default:null,description:"Нативное имя модели (если необходимо)"},multiple:{type:Boolean,default:!0,description:"Возможность загружать несколько файлов разом"},size:{type:Number,default:0,description:"Максимальный размер загрузки файла - в КБ"},timeout:{type:Number,default:0,description:"Ограничение времени загрузки в мс."},maximum:{type:Number,default:100,description:"Максимальное кол-во файлов"},model:{type:Array,default:function(){return[]},description:"Внешняя модель для группы, указывается v-model"},disabled:{type:Boolean,default:!1,description:"Заблокированный загрузчик"},allowDuplicate:{type:Boolean,default:!1,description:"Разрешить загружать файлы которые уже есть в моделе"},requestData:{type:Object,default:function(){return{}},description:"Дополнительные данные для передачи на сервер, например токен."},onUploadResponse:{type:Function,default:null,description:"Callback для обработки кастомного ответа с сервера, чтобы получить оттуда file_id и т.п"},inputFilter:{type:Function,default:null,description:"Дополнительная внешняя фильтрация файла"},error:{type:Boolean,default:!1,description:"Активирует слот error, для клиентских ошибок"}},data:function(){return{files:[]}},computed:{nameAttr:function(){return this.name?this.name:this.id},classes:function(){return c({},m.disabled,this.disabled)},accept:function(){return this.allowedTypes.map((function(t){return"."+t})).join()},fileComponent:function(){return this.downloadUrl?"CdsFile":"CdsFileOld"}},watch:{model:function(t){if(t.length){var e=t.map((function(t){return t.file?Ko()(t.file):""})),n=this.files.map((function(t){return t.file?Ko()(t.file):""}));e.every((function(t,e){return t===n[e]}))||(this.files=t)}else this.files=t}},mounted:function(){var t=this;this.files=this.model,this.files.map((function(t){return t.isPreloaded=!0})),this.$watch((function(){return t.$refs.upload.uploaded}),(function(e){e&&(t._triggerChangeModel(),t.$emit("allUploaded"))}))},methods:{inputFile:function(t,e){t&&!e&&this.$emit("add",t),t&&e&&(t.isPreloaded=!1,t.error&&t.error!==e.error&&this.$emit("error",t.error),t.success!==e.success&&this.$emit("done",t)),Boolean(t)===Boolean(e)&&e.error===t.error||this.$refs.upload.active||(this.$refs.upload.active=!0)},_internalInputFilter:function(t,e,n){var i=this;if(this.disabled)return n();if(!this.allowDuplicate&&-1!==this.files.findIndex((function(e){return function(e){var n=!!t&&i._isDuplicate(e,t),r=!0===e.success;return n&&r}(e)})))return this.$emit("duplicate",t),n();if(t&&!e){if(!new RegExp(".(".concat(this.allowedTypes.join("|"),")$"),"i").test(t.name))return this.$emit("notAllowed",t),n();if(this.files.length===this.maximum)return this.$emit("maxFiles",t),n()}if(t){if(this.size&&t.size>1e3*this.size)return this.$emit("maxSize",t),n();if(t.blob=this._createFileBlob(t),!t.blob)return n()}this.inputFilter&&this.inputFilter(t,e,n)},remove:function(t){var e=this,n=this._prepareOriginFileForModel(t);delete n.progress,delete n.success,delete n.error,delete n.active;var i=function(t){var i=e.files.findIndex((function(t){return e._isDuplicate(t,n)}));t.isPreloaded?e.files.splice(i,1):e.$refs.upload.remove(t),e._triggerChangeModel()};if(this.$emit("removing"),!this.deleteUrl)return i(t),void this.$emit("remove",n);fetch(this.deleteUrl,{method:"POST",mode:"cors",headers:this.headers,body:JSON.stringify(n)}).then((function(t){if(t.ok)return t.text();throw new Error(t.statusText)})).then((function(r){i(t),e.$emit("remove",n)})).catch((function(n){t.success=!1,t.error=n,e.$emit("error",n)}))},openBrowseFile:function(){this.$refs.upload.$el.querySelector("input").click()},_createFileBlob:function(t){if(!("object"===Wn(t.file)&&"File"===t.file.constructor.name))return"";var e=window.URL||window.webkitURL;return e&&e.createObjectURL?e.createObjectURL(t.file):""},_prepareOriginFileForModel:function(t){if(t.isPreloaded)return t;if(!t.hasOwnProperty("fileObject")&&t.success)return t;var e={id:t.id,name:t.name,success:t.success,error:t.error,progress:t.progress,active:t.active},n=this.onUploadResponse?this.onUploadResponse(t.response):t.response;return Object.assign(e,n)},_isDuplicate:function(t,e){return t.name===e.name},_triggerChangeModel:function(){this.$emit("change",this.files.map(this._prepareOriginFileForModel))},_onMaxFiles:function(t){this.$emit("maxFiles",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["cds-uploader",t.classes]},[t.label?n("CdsInputLabel",{attrs:{id:t.id,label:t.label}}):t._e(),t._v(" "),t.description?n("CdsInputDescription",{attrs:{description:t.description}}):t._e(),t._v(" "),n("FileUpload",{ref:"upload",staticClass:"cds-uploader__upload",attrs:{"post-action":t.uploadUrl,"put-action":t.putAction,accept:t.accept,extensions:t.allowedTypes,headers:t.headers,multiple:t.multiple,name:t.nameAttr,size:1024*t.size,timeout:t.timeout,data:t.requestData,maximum:t.maximum},on:{"input-file":t.inputFile,"input-filter":t._internalInputFilter,"max-files":t._onMaxFiles},model:{value:t.files,callback:function(e){t.files=e},expression:"files"}},[t._t("default",(function(){return[n("CdsButton",{attrs:{appearance:"secondary",disabled:t.disabled,text:t.buttonText},on:{click:t.openBrowseFile}})]}),{openBrowseFile:t.openBrowseFile})],2),t._v(" "),t.files.length?n("div",{staticClass:"cds-uploader__container"},t._l(t.files,(function(e,i){return n(t.fileComponent,{key:t.getDynamicItemIdByIndex(i),tag:"component",staticClass:"cds-uploader__file-item",attrs:{"download-url":t.downloadUrl,file:t._prepareOriginFileForModel(e),removed:!t.disabled},on:{remove:function(n){return t.remove(e)}}})})),1):t._e(),t._v(" "),t.error?n("div",{staticClass:"cds-uploader__error--slot"},[t._t("error")],2):t._e()],1)}),[],!1,null,null,null).exports,Zo=_({name:"CdsUploaderSkeleton"},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cds-text-input cds-uploader__skeleton"},[n("label",{staticClass:"cds-input__label"},[n("cds-skeleton",{attrs:{width:"64px",height:"12px"}})],1),t._v(" "),n("div",{staticClass:"cds-input__description"},[n("cds-skeleton",{attrs:{width:"232px",height:"8px"}}),t._v(" "),n("cds-skeleton",{attrs:{width:"95px",height:"8px"}})],1),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[n("cds-skeleton",{attrs:{width:"140px",height:"32px"}})],1),t._v(" "),n("div",{staticClass:"cds-text-input__field"},[n("cds-skeleton",{attrs:{width:"240px",height:"32px"}})],1)])}),[],!1,null,null,null).exports;Jo.install=function(t){t.component(Jo.name,Jo)},Zo.install=function(t){t.component(Zo.name,Zo)},"undefined"!=typeof window&&window.Vue&&(Jo.install(window.Vue),Zo.install(window.Vue));var Xo={size:["sm","md","lg","3xl"]},Qo=_({name:"CdsSidebar",components:{CdsButton:k,CdsIcon:cn},directives:{clickOutside:Cr},model:{prop:"showed",event:"change"},props:{title:{type:String,required:!0,description:"Заголовок сайдбара"},size:{type:String,required:!1,default:"md",available:Xo.size,description:"Размер боковой панели ".concat(Xo.size.join(", ")),validator:function(t){return b(Xo.size,t,"CdsSidebar.size")}},showed:{type:Boolean,default:!1,description:"Боковая панель Видно/Скрыто"},visible:{type:Boolean,default:!1,description:"Видимость боковой панели при инициализации"},id:{type:[String,Number],default:"",description:"Id сайдбара"}},data:function(){return{isVisible:!1,internalShowed:!1}},computed:{hasToolbar:function(){return!!this.$slots.toolbar||!!this.$scopedSlots.toolbar},hasFooter:function(){return!!this.$slots.footer||!!this.$scopedSlots.footer},classes:function(){return c({"cds-sidebar":!0,"cds-sidebar--opening":this.isVisible},"cds-sidebar--".concat(this.size),!0)}},watch:{showed:function(t,e){t!==e&&this[t?"show":"hide"]()},isVisible:function(t){var e=this;t||setTimeout((function(){e.internalShowed=!1}),100)}},mounted:function(){this.visible&&this.$nextTick(this.show)},beforeDestroy:function(){this.isVisible&&this.hide()},methods:{show:function(){var t=this;this.isVisible||(this.$emit("show"),this.$emit("change",!0),this.internalShowed=!0,setTimeout((function(){t.isVisible=!0}),10))},hide:function(){this.isVisible&&(this.$emit("hide"),this.$emit("change",!1),this.isVisible=!1)},_onClickOutside:function(){this.isVisible&&this.$emit("clickOutside")}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.internalShowed?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t._onClickOutside,expression:"_onClickOutside"}],key:t.id,class:t.classes,attrs:{id:t.id}},[n("div",{staticClass:"cds-sidebar__header"},[n("h5",{staticClass:"cds-sidebar__header--title"},[t._v(t._s(t.title))]),t._v(" "),n("CdsButton",{attrs:{appearance:"transparent","icon-only":"",size:"md",name:"close"},on:{click:t.hide},scopedSlots:t._u([{key:"icon",fn:function(){return[n("CdsIcon",{attrs:{name:"Remove"}})]},proxy:!0}],null,!1,1932794641)})],1),t._v(" "),t.hasToolbar?n("div",{staticClass:"cds-sidebar__toolbar"},[t._t("toolbar")],2):t._e(),t._v(" "),n("div",{staticClass:"cds-sidebar__content"},[t._t("content")],2),t._v(" "),t.hasFooter?n("div",{staticClass:"cds-sidebar__footer"},[t._t("footer")],2):t._e()]):t._e()}),[],!1,null,null,null).exports;Qo.install=function(t){t.component(Qo.name,Qo)},"undefined"!=typeof window&&window.Vue&&Qo.install(window.Vue);var ts=[Sn,Bn,$n,Tn,Ln,Mn,k,F,Nn,Kn,qn,Jn,Zn,ti,ei,ii,ri,pi,ci,oi,si,di,vi,Fi,Di,Si,$i,Ii,Oi,Li,Mi,Vi,Ri,Hi,zi,ji,Ui,Ki,qi,Wi,tr,er,cr,dr,vr,mr,cn,_r,On,yr,wr,br,w,Ar,kr,Fr,An,Dn,Sr,$r,Ir,Or,Tr,Mr,Vr,Rr,zr,Qo,Pr,Nr,Ur,Kr,Wr,Yr,Qr,Xr,to,wo,bo,Do,So,Bo,Oo,Lo,To,Mo,Ro,Ho,zo,Po,_n,bn,En,Jo,Zo],es=function(t){var e,i=n(ts);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.name&&t.component(r.name,r)}}catch(t){i.e(t)}finally{i.f()}for(var o in l)t.filter("cds"+o,l[o]);!function(t){t.prototype.$cds={notification:Fn}}(t)};"undefined"!=typeof window&&window.Vue&&es(window.Vue);var ns=es}(),r=r.default}()}));