bkui-vue 0.0.1-beta.32 → 0.0.1-beta.35
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.
- package/dist/bkui-vue.cjs.js +129 -2
- package/dist/bkui-vue.esm.js +126 -3
- package/dist/bkui-vue.umd.js +129 -2
- package/dist/style.css +1 -0
- package/lib/alert/alert.js +1 -0
- package/lib/animate-number/animate-number.js +1 -0
- package/lib/backtop/backtop.js +1 -0
- package/lib/badge/badge.js +1 -0
- package/lib/breadcrumb/breadcrumb.js +1 -0
- package/lib/button/button.js +1 -0
- package/lib/card/card.js +1 -0
- package/lib/checkbox/checkbox.js +1 -0
- package/lib/code-diff/code-diff.js +1 -0
- package/lib/collapse/collapse.js +1 -0
- package/lib/components.d.ts +2 -0
- package/lib/date-picker/date-picker.js +1 -0
- package/lib/dialog/dialog.js +1 -0
- package/lib/directives/directives.js +2 -0
- package/lib/directives/directives.js.LICENSE.txt +14 -0
- package/lib/divider/divider.js +1 -0
- package/lib/dropdown/dropdown.js +1 -0
- package/lib/exception/exception.js +1 -0
- package/lib/fixed-navbar/fixed-navbar.js +1 -0
- package/lib/form/form.js +1 -0
- package/lib/icon/angle-double-down-line.js +1 -15
- package/lib/icon/angle-double-left-line.js +1 -15
- package/lib/icon/angle-double-left.js +1 -15
- package/lib/icon/angle-double-right-line.js +1 -15
- package/lib/icon/angle-double-right.js +1 -15
- package/lib/icon/angle-double-up-line.js +1 -15
- package/lib/icon/angle-down-fill.js +1 -15
- package/lib/icon/angle-down-line.js +1 -15
- package/lib/icon/angle-down.js +1 -15
- package/lib/icon/angle-left.js +1 -15
- package/lib/icon/angle-right.js +1 -15
- package/lib/icon/angle-up-fill.js +1 -15
- package/lib/icon/angle-up.js +1 -15
- package/lib/icon/arrows-left.js +1 -15
- package/lib/icon/arrows-right.js +1 -15
- package/lib/icon/bk.js +1 -15
- package/lib/icon/circle.js +1 -15
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- package/lib/icon/done.js +1 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- package/lib/icon/ellipsis.js +1 -15
- package/lib/icon/error.js +1 -15
- package/lib/icon/eye.js +1 -15
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/help.js +1 -15
- package/lib/icon/icon.js +1 -15
- package/lib/icon/info-line.js +1 -15
- package/lib/icon/info.js +1 -15
- package/lib/icon/left-shape.js +1 -15
- package/lib/icon/play-shape.js +1 -15
- package/lib/icon/plus.js +1 -15
- package/lib/icon/qq.js +1 -15
- package/lib/icon/right-shape.js +1 -15
- package/lib/icon/search.js +1 -15
- package/lib/icon/share.js +1 -15
- package/lib/icon/spinner.js +1 -15
- package/lib/icon/success.js +1 -15
- package/lib/icon/switcher-loading.js +1 -15
- package/lib/icon/text-file.js +1 -15
- package/lib/icon/tree-application-shape.js +1 -15
- package/lib/icon/unvisible.js +1 -15
- package/lib/icon/up-shape.js +1 -15
- package/lib/icon/warn.js +1 -15
- package/lib/icon/weixin.js +1 -15
- package/lib/input/input.js +1 -0
- package/lib/link/link.js +1 -0
- package/lib/loading/loading.css +1 -0
- package/lib/loading/loading.js +1 -0
- package/lib/loading/loading.less +1 -0
- package/lib/loading/loading.variable.css +1 -0
- package/lib/menu/menu.js +1 -0
- package/lib/message/message.js +1 -0
- package/lib/modal/modal.js +1 -0
- package/lib/navigation/navigation.js +1 -0
- package/lib/notify/notify.js +1 -0
- package/lib/pagination/pagination.js +1 -0
- package/lib/popover/popover.js +1 -0
- package/lib/process/process.js +1 -0
- package/lib/progress/progress.js +1 -0
- package/lib/radio/radio.js +1 -0
- package/lib/rate/rate.js +1 -0
- package/lib/resize-layout/resize-layout.js +1 -0
- package/lib/select/select.js +1 -0
- package/lib/shared/shared.js +1 -0
- package/lib/sideslider/sideslider.js +1 -0
- package/lib/slider/slider.js +1 -0
- package/lib/steps/steps.js +1 -0
- package/lib/swiper/swiper.js +1 -0
- package/lib/switcher/switcher.js +1 -0
- package/lib/tab/tab.js +1 -0
- package/lib/table/index.d.ts +29 -5
- package/lib/table/render.d.ts +2 -3
- package/lib/table/table.d.ts +8 -2
- package/lib/table/table.js +1 -0
- package/lib/tag/tag.js +1 -0
- package/lib/tag-input/tag-input.js +1 -0
- package/lib/timeline/timeline.js +1 -0
- package/lib/transfer/transfer.js +1 -0
- package/lib/tree/index.d.ts +15 -7
- package/lib/tree/tree.d.ts +6 -16
- package/lib/tree/tree.js +1 -0
- package/lib/virtual-render/virtual-render.js +1 -0
- package/package.json +10 -16
- package/lib/alert/index.js +0 -1
- package/lib/animate-number/index.js +0 -1
- package/lib/backtop/index.js +0 -10
- package/lib/badge/index.js +0 -1
- package/lib/breadcrumb/index.js +0 -1
- package/lib/button/index.js +0 -1
- package/lib/card/index.js +0 -1
- package/lib/checkbox/index.js +0 -1
- package/lib/code-diff/index.js +0 -1
- package/lib/collapse/index.js +0 -1
- package/lib/date-picker/index.js +0 -1
- package/lib/dialog/index.js +0 -1
- package/lib/directives/index.js +0 -15
- package/lib/divider/index.js +0 -1
- package/lib/dropdown/index.js +0 -1
- package/lib/exception/index.js +0 -1
- package/lib/fixed-navbar/index.js +0 -1
- package/lib/form/index.js +0 -1
- package/lib/icon/index.js +0 -15
- package/lib/input/index.js +0 -15
- package/lib/link/index.js +0 -1
- package/lib/loading/index.js +0 -1
- package/lib/menu/index.js +0 -1
- package/lib/message/index.js +0 -1
- package/lib/modal/index.js +0 -1
- package/lib/navigation/index.js +0 -1
- package/lib/notify/index.js +0 -1
- package/lib/pagination/index.js +0 -1
- package/lib/popover/index.js +0 -1
- package/lib/process/index.js +0 -15
- package/lib/progress/index.js +0 -1
- package/lib/radio/index.js +0 -1
- package/lib/rate/index.js +0 -1
- package/lib/resize-layout/index.js +0 -1
- package/lib/select/index.js +0 -15
- package/lib/shared/index.js +0 -1
- package/lib/sideslider/index.js +0 -1
- package/lib/slider/index.js +0 -15
- package/lib/steps/index.js +0 -15
- package/lib/styles/index.js +0 -1
- package/lib/swiper/index.js +0 -1
- package/lib/switcher/index.js +0 -1
- package/lib/tab/index.js +0 -1
- package/lib/table/index.js +0 -10
- package/lib/tag/index.js +0 -1
- package/lib/tag-input/index.js +0 -1
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +0 -1
- package/lib/tree/index.js +0 -1
- package/lib/virtual-render/index.js +0 -10
package/lib/code-diff/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("../shared"),require("vue"),require("vue-types")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","vue-types"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e["vue-types"])}(this,(function(e,n,t,i){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o={exports:{}},a={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var s={exports:{}};!function(e){e.exports=function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==t.return||t.return()}finally{if(s)throw r}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var l={exports:{}},u={exports:{}};!function(e){e.exports=function(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i},e.exports.__esModule=!0,e.exports.default=e.exports}(u),function(e){var n=u.exports;e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);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)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var c={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(c),function(e){var n=a.exports,t=s.exports,i=l.exports,r=c.exports;e.exports=function(e,o){return n(e)||t(e,o)||i(e,o)||r()},e.exports.__esModule=!0,e.exports.default=e.exports}(o);var f=r(o.exports);function d(){}function p(e,n,t,i,r){for(var o=0,a=n.length,s=0,l=0;o<a;o++){var u=n[o];if(u.removed){if(u.value=e.join(i.slice(l,l+u.count)),l+=u.count,o&&n[o-1].added){var c=n[o-1];n[o-1]=n[o],n[o]=c}}else{if(!u.added&&r){var f=t.slice(s,s+u.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),u.value=e.join(f)}else u.value=e.join(t.slice(s,s+u.count));s+=u.count,u.added||(l+=u.count)}}var d=n[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(n[a-2].value+=d.value,n.pop()),n}function h(e){return{newPos:e.newPos,components:e.components.slice(0)}}d.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var r=this;function o(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,s=e.length,l=1,u=a+s,c=[{newPos:-1,components:[]}],f=this.extractCommon(c[0],n,e,0);if(c[0].newPos+1>=a&&f+1>=s)return o([{value:this.join(n),count:n.length}]);function d(){for(var t=-1*l;t<=l;t+=2){var i=void 0,u=c[t-1],f=c[t+1],d=(f?f.newPos:0)-t;u&&(c[t-1]=void 0);var b=u&&u.newPos+1<a,g=f&&0<=d&&d<s;if(b||g){if(!b||g&&u.newPos<f.newPos?(i=h(f),r.pushComponent(i.components,void 0,!0)):((i=u).newPos++,r.pushComponent(i.components,!0,void 0)),d=r.extractCommon(i,n,e,t),i.newPos+1>=a&&d+1>=s)return o(p(r,i.components,n,e,r.useLongestToken));c[t]=i}else c[t]=void 0}l++}if(i)!function e(){setTimeout((function(){if(l>u)return i();d()||e()}),0)}();else for(;l<=u;){var b=d();if(b)return b}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,o=t.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(n[a+1],t[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var b=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,g=/\S/,v=new d;v.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!g.test(e)&&!g.test(n)},v.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&b.test(n[t])&&b.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var m=new d;function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function w(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return x(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return x(e,n)}(e)||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.")}()}function x(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}m.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n},(new d).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new d).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var N=Object.prototype.toString,C=new d;function T(e,n,t,i,r){var o,a;for(n=n||[],t=t||[],i&&(e=i(r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===N.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=T(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===y(e)&&null!==e){n.push(e),a={},t.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=T(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}C.useLongestToken=!0,C.tokenize=m.tokenize,C.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(T(e,null,null,r),r," ")},C.equals=function(e,n){return d.prototype.equals.call(C,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var S,E=new d;function L(e,n,t,i,r,o,a){a||(a={}),void 0===a.context&&(a.context=4);var s=function(e,n,t){return m.diff(e,n,t)}(t,i,a);function l(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var u=[],c=0,f=0,d=[],p=1,h=1,b=function(e){var n=s[e],r=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=r,n.added||n.removed){var o;if(!c){var b=s[e-1];c=p,f=h,b&&(d=a.context>0?l(b.lines.slice(-a.context)):[],c-=d.length,f-=d.length)}(o=d).push.apply(o,w(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?h+=r.length:p+=r.length}else{if(c)if(r.length<=2*a.context&&e<s.length-2){var g;(g=d).push.apply(g,w(l(r)))}else{var v,m=Math.min(r.length,a.context);(v=d).push.apply(v,w(l(r.slice(0,m))));var y={oldStart:c,oldLines:p-c+m,newStart:f,newLines:h-f+m,lines:d};if(e>=s.length-2&&r.length<=a.context){var x=/\n$/.test(t),N=/\n$/.test(i),C=0==r.length&&d.length>y.oldLines;!x&&C&&t.length>0&&d.splice(y.oldLines,0,"\"),(x||C)&&N||d.push("\")}u.push(y),c=0,f=0,d=[]}p+=r.length,h+=r.length}},g=0;g<s.length;g++)b(g);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:o,hunks:u}}function k(e,n,t,i,r,o){return function(e,n,t,i,r,o,a){return function(e){var n=[];e.oldFileName==e.newFileName&&n.push("Index: "+e.oldFileName),n.push("==================================================================="),n.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),n.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var t=0;t<e.hunks.length;t++){var i=e.hunks[t];0===i.oldLines&&(i.oldStart-=1),0===i.newLines&&(i.newStart-=1),n.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@"),n.push.apply(n,i.lines)}return n.join("\n")+"\n"}(L(e,n,t,i,r,o,a))}(e,e,n,t,i,r,o)}E.tokenize=function(e){return e.slice()},E.join=E.removeEmpty=function(e){return e},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(S||(S={}));var H=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function I(e){return e?e.replace(/\\/g,"/"):e}var j=function(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))};function O(e,n){var t=e.split(".");return t.length>1?t[t.length-1]:n}function A(e,n){return n.reduce((function(n,t){return n||e.startsWith(t)}),!1)}var M=["a/","b/","i/","w/","c/","o/"];function P(e,n,t){var i=void 0!==t?j(j([],M,!0),[t],!1):M,r=((n?new RegExp("^"+(n.replace(H,"\\$&")+' "?(.+?)"?$')):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],o=void 0===r?"":r,a=i.find((function(e){return 0===o.indexOf(e)}));return(a?o.slice(a.length):o).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function z(e,n){void 0===n&&(n={});var t=[],i=null,r=null,o=null,a=null,s=null,l=null,u=null,c="--- ",f="+++ ",d="@@",p=/^old mode (\d{6})/,h=/^new mode (\d{6})/,b=/^deleted file mode (\d{6})/,g=/^new file mode (\d{6})/,v=/^copy from "?(.+)"?/,m=/^copy to "?(.+)"?/,y=/^rename from "?(.+)"?/,w=/^rename to "?(.+)"?/,x=/^similarity index (\d+)%/,N=/^dissimilarity index (\d+)%/,C=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,E=/^GIT binary patch/,L=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,k=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,H=/^new file mode (\d{6})/,I=/^deleted file mode (\d{6}),(\d{6})/,j=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function M(){null!==r&&null!==i&&(i.blocks.push(r),r=null)}function z(){null!==i&&(i.oldName||null===l||(i.oldName=l),i.newName||null===u||(i.newName=u),i.newName&&(t.push(i),i=null)),l=null,u=null}function F(){M(),z(),i={blocks:[],deletedLines:0,addedLines:0}}function D(e){var n;M(),null!==i&&((n=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,o=parseInt(n[1],10),s=parseInt(n[2],10)):(n=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,o=parseInt(n[1],10),a=parseInt(n[2],10),s=parseInt(n[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),o=0,s=0,i.isCombined=!1)),r={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return j.forEach((function(e,a){if(e&&!e.startsWith("*")){var M,z=j[a-1],W=j[a+1],_=j[a+2];if(e.startsWith("diff")){F();if((M=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=P(M[1],void 0,n.dstPrefix),u=P(M[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if((!i||!i.isGitDiff&&i&&e.startsWith(c)&&W.startsWith(f)&&_.startsWith(d))&&F(),!(null==i?void 0:i.isTooBig)){if(i&&("number"==typeof n.diffMaxChanges&&i.addedLines+i.deletedLines>n.diffMaxChanges||"number"==typeof n.diffMaxLineLength&&e.length>n.diffMaxLineLength))return i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],r=null,void D("function"==typeof n.diffTooBigMessage?n.diffTooBigMessage(t.length):"Diff too big to be displayed");if(e.startsWith(c)&&W.startsWith(f)||e.startsWith(f)&&z.startsWith(c)){if(i&&!i.oldName&&e.startsWith("--- ")&&(M=function(e,n){return P(e,"---",n)}(e,n.srcPrefix)))return i.oldName=M,void(i.language=O(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(M=function(e,n){return P(e,"+++",n)}(e,n.dstPrefix)))return i.newName=M,void(i.language=O(i.newName,i.language))}if(i&&(e.startsWith(d)||i.isGitDiff&&i.oldName&&i.newName&&!r))D(e);else if(r&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==r&&null!==o&&null!==s){var n={content:e},t=i.isCombined?["+ "," +","++"]:["+"],a=i.isCombined?["- "," -","--"]:["-"];A(e,t)?(i.addedLines++,n.type=S.INSERT,n.oldNumber=void 0,n.newNumber=s++):A(e,a)?(i.deletedLines++,n.type=S.DELETE,n.oldNumber=o++,n.newNumber=void 0):(n.type=S.CONTEXT,n.oldNumber=o++,n.newNumber=s++),r.lines.push(n)}}(e);else{var R=!function(e,n){for(var t=n;t<j.length-3;){if(e.startsWith("diff"))return!1;if(j[t].startsWith(c)&&j[t+1].startsWith(f)&&j[t+2].startsWith(d))return!0;t++}return!1}(e,a);if(null===i)throw new Error("Where is my file !!!");(M=p.exec(e))?i.oldMode=M[1]:(M=h.exec(e))?i.newMode=M[1]:(M=b.exec(e))?(i.deletedFileMode=M[1],i.isDeleted=!0):(M=g.exec(e))?(i.newFileMode=M[1],i.isNew=!0):(M=v.exec(e))?(R&&(i.oldName=M[1]),i.isCopy=!0):(M=m.exec(e))?(R&&(i.newName=M[1]),i.isCopy=!0):(M=y.exec(e))?(R&&(i.oldName=M[1]),i.isRename=!0):(M=w.exec(e))?(R&&(i.newName=M[1]),i.isRename=!0):(M=T.exec(e))?(i.isBinary=!0,i.oldName=P(M[1],void 0,n.srcPrefix),i.newName=P(M[2],void 0,n.dstPrefix),D("Binary file")):E.test(e)?(i.isBinary=!0,D(e)):(M=x.exec(e))?i.unchangedPercentage=parseInt(M[1],10):(M=N.exec(e))?i.changedPercentage=parseInt(M[1],10):(M=C.exec(e))?(i.checksumBefore=M[1],i.checksumAfter=M[2],M[3]&&(i.mode=M[3])):(M=L.exec(e))?(i.checksumBefore=[M[2],M[3]],i.checksumAfter=M[1]):(M=k.exec(e))?(i.oldMode=[M[2],M[3]],i.newMode=M[1]):(M=H.exec(e))?(i.newFileMode=M[1],i.isNew=!0):(M=I.exec(e))&&(i.deletedFileMode=M[1],i.isDeleted=!0)}}}})),M(),z(),t}function F(){}function D(e,n,t,i,r){for(var o=0,a=n.length,s=0,l=0;o<a;o++){var u=n[o];if(u.removed){if(u.value=e.join(i.slice(l,l+u.count)),l+=u.count,o&&n[o-1].added){var c=n[o-1];n[o-1]=n[o],n[o]=c}}else{if(!u.added&&r){var f=t.slice(s,s+u.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),u.value=e.join(f)}else u.value=e.join(t.slice(s,s+u.count));s+=u.count,u.added||(l+=u.count)}}var d=n[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(n[a-2].value+=d.value,n.pop()),n}function W(e){return{newPos:e.newPos,components:e.components.slice(0)}}F.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var r=this;function o(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,s=e.length,l=1,u=a+s,c=[{newPos:-1,components:[]}],f=this.extractCommon(c[0],n,e,0);if(c[0].newPos+1>=a&&f+1>=s)return o([{value:this.join(n),count:n.length}]);function d(){for(var t=-1*l;t<=l;t+=2){var i=void 0,u=c[t-1],f=c[t+1],d=(f?f.newPos:0)-t;u&&(c[t-1]=void 0);var p=u&&u.newPos+1<a,h=f&&0<=d&&d<s;if(p||h){if(!p||h&&u.newPos<f.newPos?(i=W(f),r.pushComponent(i.components,void 0,!0)):((i=u).newPos++,r.pushComponent(i.components,!0,void 0)),d=r.extractCommon(i,n,e,t),i.newPos+1>=a&&d+1>=s)return o(D(r,i.components,n,e,r.useLongestToken));c[t]=i}else c[t]=void 0}l++}if(i)!function e(){setTimeout((function(){if(l>u)return i();d()||e()}),0)}();else for(;l<=u;){var p=d();if(p)return p}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,o=t.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(n[a+1],t[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var _=new F;var R=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,B=/\S/,U=new F;U.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!B.test(e)&&!B.test(n)},U.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&R.test(n[t])&&R.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var $=new F;function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}$.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n},(new F).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new F).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var q=Object.prototype.toString,G=new F;function X(e,n,t,i,r){var o,a;for(n=n||[],t=t||[],i&&(e=i(r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===q.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=X(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===V(e)&&null!==e){n.push(e),a={},t.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=X(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}G.useLongestToken=!0,G.tokenize=$.tokenize,G.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(X(e,null,null,r),r," ")},G.equals=function(e,n){return F.prototype.equals.call(G,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var J=new F;function K(e){return function(n,t){var i=e(n).trim(),r=e(t).trim();return function(e,n){if(0===e.length)return n.length;if(0===n.length)return e.length;var t,i,r=[];for(t=0;t<=n.length;t++)r[t]=[t];for(i=0;i<=e.length;i++)r[0][i]=i;for(t=1;t<=n.length;t++)for(i=1;i<=e.length;i++)n.charAt(t-1)===e.charAt(i-1)?r[t][i]=r[t-1][i-1]:r[t][i]=Math.min(r[t-1][i-1]+1,Math.min(r[t][i-1]+1,r[t-1][i]+1));return r[n.length][e.length]}(i,r)/(i.length+r.length)}}function Z(e){return function n(t,i,r,o){void 0===r&&(r=0),void 0===o&&(o=new Map);var a=function(n,t,i){void 0===i&&(i=new Map);for(var r,o=1/0,a=0;a<n.length;++a)for(var s=0;s<t.length;++s){var l=JSON.stringify([n[a],t[s]]),u=void 0;i.has(l)&&(u=i.get(l))||(u=e(n[a],t[s]),i.set(l,u)),u<o&&(r={indexA:a,indexB:s,score:o=u})}return r}(t,i,o);if(!a||t.length+i.length<3)return[[t,i]];var s=t.slice(0,a.indexA),l=i.slice(0,a.indexB),u=[t[a.indexA]],c=[i[a.indexB]],f=a.indexA+1,d=a.indexB+1,p=t.slice(f),h=i.slice(d),b=n(s,l,r+1,o),g=n(u,c,r+1,o),v=n(p,h,r+1,o),m=g;return(a.indexA>0||a.indexB>0)&&(m=b.concat(m)),(t.length>f||i.length>d)&&(m=m.concat(v)),m}}J.tokenize=function(e){return e.slice()},J.join=J.removeEmpty=function(e){return e};var Q=function(){return Q=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},Q.apply(this,arguments)},Y={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},ee={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word"},ne="/",te=K((function(e){return e.value})),ie=Z(te);function re(e){return-1!==e.indexOf("dev/null")}function oe(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function ae(e){switch(e){case S.CONTEXT:return Y.CONTEXT;case S.INSERT:return Y.INSERTS;case S.DELETE:return Y.DELETES}}function se(e){return e.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function le(e,n,t){void 0===t&&(t=!0);var i=function(e){return e?2:1}(n);return{prefix:e.substring(0,i),content:t?se(e.substring(i)):e.substring(i)}}function ue(e){var n=I(e.oldName),t=I(e.newName);if(n===t||re(n)||re(t))return re(t)?n:t;for(var i=[],r=[],o=n.split(ne),a=t.split(ne),s=0,l=o.length-1,u=a.length-1;s<l&&s<u&&o[s]===a[s];)i.push(a[s]),s+=1;for(;l>s&&u>s&&o[l]===a[u];)r.unshift(a[u]),l-=1,u-=1;var c=i.join(ne),f=r.join(ne),d=o.slice(s,l+1).join(ne),p=a.slice(s,u+1).join(ne);return c.length&&f.length?c+ne+"{"+d+" → "+p+"}"+ne+f:c.length?c+ne+"{"+d+" → "+p+"}":f.length?"{"+d+" → "+p+"}"+ne+f:n+" → "+t}function ce(e){return"d2h-"+function(e){var n,t,i=0;for(n=0,t=e.length;n<t;n++)i=(i<<5)-i+e.charCodeAt(n),i|=0;return i}(ue(e)).toString().slice(-6)}function fe(e){var n="file-changed";return e.isRename||e.isCopy?n="file-renamed":e.isNew?n="file-added":e.isDeleted?n="file-deleted":e.newName!==e.oldName&&(n="file-renamed"),n}function de(e,n,t,i){void 0===i&&(i={});var r=Q(Q({},ee),i),o=r.matching,a=r.maxLineLengthHighlight,s=r.matchWordsThreshold,l=r.diffStyle,u=le(e,t,!1),c=le(n,t,!1);if(u.content.length>a||c.content.length>a)return{oldLine:{prefix:u.prefix,content:se(u.content)},newLine:{prefix:c.prefix,content:se(c.content)}};var f,d,p,h="char"===l?(f=u.content,d=c.content,_.diff(f,d,p)):function(e,n,t){return U.diff(e,n,t)}(u.content,c.content),b=[];if("word"===l&&"words"===o){var g=h.filter((function(e){return e.removed})),v=h.filter((function(e){return e.added}));ie(v,g).forEach((function(e){1===e[0].length&&1===e[1].length&&(te(e[0][0],e[1][0])<s&&(b.push(e[0][0]),b.push(e[1][0])))}))}var m,y=h.reduce((function(e,n){var t=n.added?"ins":n.removed?"del":null,i=b.indexOf(n)>-1?' class="d2h-change"':"",r=se(n.value);return null!==t?e+"<"+t+i+">"+r+"</"+t+">":""+e+r}),"");return{oldLine:{prefix:u.prefix,content:(m=y,m.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:c.prefix,content:oe(y)}}}var pe="file-summary";var he=function(){return he=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},he.apply(this,arguments)},be=he(he({},ee),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),ge="generic",ve="line-by-line",me=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=he(he({},be),n)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(ge,"wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template(ve,"file-diff"),i=this.hoganUtils.template(ge,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",fe(e));return t.render({file:e,fileHtmlId:ce(e),diffs:n,filePath:i.render({fileDiffName:ue(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(ge,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Y})},e.prototype.generateFileHtml=function(e){var n=this,t=Z(K((function(n){return le(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r=n.hoganUtils.render(ge,"block-header",{CSSLineClass:Y,blockHeader:e.isTooBig?i.header:se(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return n.applyLineGroupping(i).forEach((function(i){var o=i[0],a=i[1],s=i[2];if(a.length&&s.length&&!o.length)n.applyRematchMatching(a,s,t).map((function(t){var i=t[0],o=t[1],a=n.processChangedLines(e.isCombined,i,o),s=a.left,l=a.right;r+=s,r+=l}));else if(o.length)o.forEach((function(t){var i=le(t.content,e.isCombined),o=i.prefix,a=i.content;r+=n.generateSingleLineHtml({type:Y.CONTEXT,prefix:o,content:a,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(a.length||s.length){var l=n.processChangedLines(e.isCombined,a,s),u=l.left,c=l.right;r+=u,r+=c}else console.error("Unknown state reached while processing groups of lines",o,a,s)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==S.INSERT&&i.length||o.type===S.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===S.CONTEXT?n.push([[o],[],[]]):o.type===S.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===S.INSERT&&t.length>0?i.push(o):o.type===S.DELETE&&t.push(o)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.processChangedLines=function(e,n,t){for(var i={right:"",left:""},r=Math.max(n.length,t.length),o=0;o<r;o++){var a=n[o],s=t[o],l=void 0!==a&&void 0!==s?de(a.content,s.content,e,this.config):void 0,u=void 0!==a&&void 0!==a.oldNumber?he(he({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:Y.DELETE_CHANGES}:he(he({},le(a.content,e)),{type:ae(a.type)})),{oldNumber:a.oldNumber,newNumber:a.newNumber}):void 0,c=void 0!==s&&void 0!==s.newNumber?he(he({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:Y.INSERT_CHANGES}:he(he({},le(s.content,e)),{type:ae(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,f=this.generateLineHtml(u,c),d=f.left,p=f.right;i.left+=d,i.right+=p}return i},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(n)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var n=this.hoganUtils.render(ve,"numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render(ge,"line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?" ":e.prefix,content:e.content,lineNumber:n})},e}(),ye=function(){return ye=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},ye.apply(this,arguments)},we=ye(ye({},ee),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),xe="generic",Ne=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=ye(ye({},we),n)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(xe,"wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template(xe,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",fe(e));return t.render({file:e,fileHtmlId:ce(e),diffs:n,filePath:i.render({fileDiffName:ue(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(xe,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Y})}},e.prototype.generateFileHtml=function(e){var n=this,t=Z(K((function(n){return le(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:n.makeHeaderHtml(i.header,e),right:n.makeHeaderHtml("")};return n.applyLineGroupping(i).forEach((function(i){var o=i[0],a=i[1],s=i[2];if(a.length&&s.length&&!o.length)n.applyRematchMatching(a,s,t).map((function(t){var i=t[0],o=t[1],a=n.processChangedLines(e.isCombined,i,o),s=a.left,l=a.right;r.left+=s,r.right+=l}));else if(o.length)o.forEach((function(t){var i=le(t.content,e.isCombined),o=i.prefix,a=i.content,s=n.generateLineHtml({type:Y.CONTEXT,prefix:o,content:a,number:t.oldNumber},{type:Y.CONTEXT,prefix:o,content:a,number:t.newNumber}),l=s.left,u=s.right;r.left+=l,r.right+=u}));else if(a.length||s.length){var l=n.processChangedLines(e.isCombined,a,s),u=l.left,c=l.right;r.left+=u,r.right+=c}else console.error("Unknown state reached while processing groups of lines",o,a,s)})),r})).reduce((function(e,n){return{left:e.left+n.left,right:e.right+n.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==S.INSERT&&i.length||o.type===S.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===S.CONTEXT?n.push([[o],[],[]]):o.type===S.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===S.INSERT&&t.length>0?i.push(o):o.type===S.DELETE&&t.push(o)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.makeHeaderHtml=function(e,n){return this.hoganUtils.render(xe,"block-header",{CSSLineClass:Y,blockHeader:(null==n?void 0:n.isTooBig)?e:se(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,n,t){for(var i={right:"",left:""},r=Math.max(n.length,t.length),o=0;o<r;o++){var a=n[o],s=t[o],l=void 0!==a&&void 0!==s?de(a.content,s.content,e,this.config):void 0,u=void 0!==a&&void 0!==a.oldNumber?ye(ye({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:Y.DELETE_CHANGES}:ye(ye({},le(a.content,e)),{type:ae(a.type)})),{number:a.oldNumber}):void 0,c=void 0!==s&&void 0!==s.newNumber?ye(ye({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:Y.INSERT_CHANGES}:ye(ye({},le(s.content,e)),{type:ae(s.type)})),{number:s.newNumber}):void 0,f=this.generateLineHtml(u,c),d=f.left,p=f.right;i.left+=d,i.right+=p}return i},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(n)}},e.prototype.generateSingleHtml=function(e){var n="d2h-code-side-linenumber",t="d2h-code-side-line";return this.hoganUtils.render(xe,"line",{type:(null==e?void 0:e.type)||Y.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?n:n+" d2h-code-side-emptyplaceholder",contentClass:void 0!==e?t:t+" d2h-code-side-emptyplaceholder",prefix:" "===(null==e?void 0:e.prefix)?" ":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}(),Ce={};!function(e){!function(e){var n=/\S/,t=/\"/g,i=/\n/g,r=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function u(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,n,t){if(n.charAt(t)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(n.charAt(t+i)!=e.charAt(i))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(t,i){var r=t.length,o=0,a=null,s=null,f="",d=[],p=!1,h=0,b=0,g="{{",v="}}";function m(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function y(t,i){if(m(),t&&function(){for(var t=!0,i=b;i<d.length;i++)if(!(t=e.tags[d[i].tag]<e.tags._v||"_t"==d[i].tag&&null===d[i].text.match(n)))return!1;return t}())for(var r,o=b;o<d.length;o++)d[o].text&&((r=d[o+1])&&">"==r.tag&&(r.indent=d[o].text.toString()),d.splice(o,1));else i||d.push({tag:"\n"});p=!1,b=d.length}function w(e,n){var t="="+v,i=e.indexOf(t,n),r=u(e.substring(e.indexOf("=",n)+1,i)).split(" ");return g=r[0],v=r[r.length-1],i+t.length-1}for(i&&(i=i.split(" "),g=i[0],v=i[1]),h=0;h<r;h++)0==o?c(g,t,h)?(--h,m(),o=1):"\n"==t.charAt(h)?y(p):f+=t.charAt(h):1==o?(h+=g.length-1,"="==(a=(s=e.tags[t.charAt(h+1)])?t.charAt(h+1):"_v")?(h=w(t,h),o=0):(s&&h++,o=2),p=h):c(v,t,h)?(d.push({tag:a,n:u(f),otag:g,ctag:v,i:"/"==a?p-g.length:h+v.length}),f="",h+=v.length-1,o=0,"{"==a&&("}}"==v?h++:l(d[d.length-1]))):f+=t.charAt(h);return y(p,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(n,t,i,r){var o,a=[],s=null,l=null;for(o=i[i.length-1];n.length>0;){if(l=n.shift(),o&&"<"==o.tag&&!(l.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||p(l,r))i.push(l),l.nodes=d(n,l.tag,i,r);else{if("/"==l.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+l.n);if(s=i.pop(),l.n!=s.n&&!h(l.n,s.n,r))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==n.length||"\n"==n[0].tag)}a.push(l)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return a}function p(e,n){for(var t=0,i=n.length;t<i;t++)if(n[t].o==e.n)return e.tag="#",!0}function h(e,n,t){for(var i=0,r=t.length;i<r;i++)if(t[i].c==e&&t[i].o==n)return!0}function b(e){var n=[];for(var t in e.partials)n.push('"'+v(t)+'":{name:"'+v(e.partials[t].name)+'", '+b(e.partials[t])+"}");return"partials: {"+n.join(",")+"}, subs: "+function(e){var n=[];for(var t in e)n.push('"'+v(t)+'": function(c,p,t,i) {'+e[t]+"}");return"{ "+n.join(",")+" }"}(e.subs)}e.stringify=function(n,t,i){return"{code: function (c,p,i) { "+e.wrapMain(n.code)+" },"+b(n)+"}"};var g=0;function v(e){return e.replace(o,"\\\\").replace(t,'\\"').replace(i,"\\n").replace(r,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function m(e){return~e.indexOf(".")?"d":"f"}function y(e,n){var t="<"+(n.prefix||"")+e.n+g++;return n.partials[t]={name:e.n,partials:{}},n.code+='t.b(t.rp("'+v(t)+'",c,p,"'+(e.indent||"")+'"));',t}function w(e,n){n.code+="t.b(t.t(t."+m(e.n)+'("'+v(e.n)+'",c,p,0)));'}function x(e){return"t.b("+e+");"}e.generate=function(n,t,i){g=0;var r={code:"",subs:{},partials:{}};return e.walk(n,r),i.asString?this.stringify(r,t,i):this.makeTemplate(r,t,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,n,t){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,n,this,t)},e.makePartials=function(e){var n,t={subs:{},partials:e.partials,name:e.name};for(n in t.partials)t.partials[n]=this.makePartials(t.partials[n]);for(n in e.subs)t.subs[n]=new Function("c","p","t","i",e.subs[n]);return t},e.codegen={"#":function(n,t){t.code+="if(t.s(t."+m(n.n)+'("'+v(n.n)+'",c,p,1),c,p,0,'+n.i+","+n.end+',"'+n.otag+" "+n.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(n.nodes,t),t.code+="});c.pop();}"},"^":function(n,t){t.code+="if(!t.s(t."+m(n.n)+'("'+v(n.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(n.nodes,t),t.code+="};"},">":y,"<":function(n,t){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(n.nodes,i);var r=t.partials[y(n,t)];r.subs=i.subs,r.partials=i.partials},$:function(n,t){var i={subs:{},code:"",partials:t.partials,prefix:n.n};e.walk(n.nodes,i),t.subs[n.n]=i.code,t.inPartial||(t.code+='t.sub("'+v(n.n)+'",c,p,i);')},"\n":function(e,n){n.code+=x('"\\n"'+(e.last?"":" + i"))},_v:function(e,n){n.code+="t.b(t.v(t."+m(e.n)+'("'+v(e.n)+'",c,p,0)));'},_t:function(e,n){n.code+=x('"'+v(e.text)+'"')},"{":w,"&":w},e.walk=function(n,t){for(var i,r=0,o=n.length;r<o;r++)(i=e.codegen[n[r].tag])&&i(n[r],t);return t},e.parse=function(e,n,t){return d(e,0,[],(t=t||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,n){return[e,!!n.asString,!!n.disableLambda,n.delimiters,!!n.modelGet].join("||")},e.compile=function(n,t){t=t||{};var i=e.cacheKey(n,t),r=this.cache[i];if(r){var o=r.partials;for(var a in o)delete o[a].instance;return r}return r=this.generate(this.parse(this.scan(n,t.delimiters),n,t),n,t),this.cache[i]=r}}(e)}(Ce);var Te={};!function(e){!function(e){function n(e,n,t){var i;return n&&"object"==typeof n&&(void 0!==n[e]?i=n[e]:t&&n.get&&"function"==typeof n.get&&(i=n.get(e))),i}e.Template=function(e,n,t,i){e=e||{},this.r=e.code||this.r,this.c=t,this.options=i||{},this.text=n||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,n,t){return""},v:function(e){return e=l(e),s.test(e)?e.replace(t,"&").replace(i,"<").replace(r,">").replace(o,"'").replace(a,"""):e},t:l,render:function(e,n,t){return this.ri([e],n||{},t)},ri:function(e,n,t){return this.r(e,n,t)},ep:function(e,n){var t=this.partials[e],i=n[t.name];if(t.instance&&t.base==i)return t.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,t.subs){for(key in n.stackText||(n.stackText={}),t.subs)n.stackText[key]||(n.stackText[key]=void 0!==this.activeSub&&n.stackText[this.activeSub]?n.stackText[this.activeSub]:this.text);i=function(e,n,t,i,r,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var u=new a;for(l in u.subs=new s,u.subsText={},u.buf="",i=i||{},u.stackSubs=i,u.subsText=o,n)i[l]||(i[l]=n[l]);for(l in i)u.subs[l]=i[l];for(l in r=r||{},u.stackPartials=r,t)r[l]||(r[l]=t[l]);for(l in r)u.partials[l]=r[l];return u}(i,t.subs,t.partials,this.stackSubs,this.stackPartials,n.stackText)}return this.partials[e].instance=i,i},rp:function(e,n,t,i){var r=this.ep(e,t);return r?r.ri(n,t,i):""},rs:function(e,n,t){var i=e[e.length-1];if(u(i))for(var r=0;r<i.length;r++)e.push(i[r]),t(e,n,this),e.pop();else t(e,n,this)},s:function(e,n,t,i,r,o,a){var s;return(!u(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,n,t,i,r,o,a)),s=!!e,!i&&s&&n&&n.push("object"==typeof e?e:n[n.length-1]),s)},d:function(e,t,i,r){var o,a=e.split("."),s=this.f(a[0],t,i,r),l=this.options.modelGet,c=null;if("."===e&&u(t[t.length-2]))s=t[t.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=n(a[f],s,l))?(c=s,s=o):s="";return!(r&&!s)&&(r||"function"!=typeof s||(t.push(c),s=this.mv(s,t,i),t.pop()),s)},f:function(e,t,i,r){for(var o=!1,a=!1,s=this.options.modelGet,l=t.length-1;l>=0;l--)if(void 0!==(o=n(e,t[l],s))){a=!0;break}return a?(r||"function"!=typeof o||(o=this.mv(o,t,i)),o):!r&&""},ls:function(e,n,t,i,r){var o=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(l(e.call(n,i)),n,t)),this.options.delimiters=o,!1},ct:function(e,n,t){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(n,t)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,n,t,i,r,o,a){var s,l=n[n.length-1],u=e.call(l);return"function"==typeof u?!!i||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,l,t,s.substring(r,o),a)):u},mv:function(e,n,t){var i=n[n.length-1],r=e.call(i);return"function"==typeof r?this.ct(l(r.call(i)),i,t):r},sub:function(e,n,t,i){var r=this.subs[e];r&&(this.activeSub=e,r(n,t,this,i),this.activeSub=!1)}};var t=/&/g,i=/</g,r=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(e)}(Te);var Se=Ce;Se.Template=Te.Template,Se.template=Se.Template;var Ee=Se,Le={};Le["file-summary-line"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+t),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,n,0))),i.b("</a>"),i.b("\n"+t),i.b(' <span class="d2h-file-stats">'),i.b("\n"+t),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),Le["file-summary-wrapper"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+t),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+t),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,n,0))),i.b(")</span>"),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <ol class="d2h-file-list">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("files",e,n,0))),i.b("\n"+t),i.b(" </ol>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["generic-block-header"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('"></td>'),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b(i.t(i.f("blockHeader",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),Le["generic-empty-diff"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" File without changes"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),Le["generic-file-path"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(i.rp("<fileTag1",e,n," ")),i.b("</span>"),i.b("\n"+t),i.b('<label class="d2h-file-collapse">'),i.b("\n"+t),i.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),i.b("\n"+t),i.b(" Viewed"),i.b("\n"+t),i.b("</label>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),Le["generic-line"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("lineNumber",e,n,0))),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b("\n"+t),i.s(i.f("prefix",e,n,1),e,n,0,162,238,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("prefix",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix"> </span>'),i.b("\n"+t)),i.s(i.f("content",e,n,1),e,n,0,371,445,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("content",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+t)),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),Le["generic-wrapper"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("content",e,n,0))),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["icon-file-added"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),i.b("\n"+t),i.b(' width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["icon-file-changed"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["icon-file-deleted"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["icon-file-renamed"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["icon-file"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+t),i.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["line-by-line-file-diff"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("diffs",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["line-by-line-numbers"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,n,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["side-by-side-file-diff"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-files-diff">'),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.left",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.right",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["tag-file-added"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),Le["tag-file-changed"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),Le["tag-file-deleted"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),Le["tag-file-renamed"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}});var ke=function(){return ke=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},ke.apply(this,arguments)},He=function(){function e(e){var n=e.compiledTemplates,t=void 0===n?{}:n,i=e.rawTemplates,r=void 0===i?{}:i,o=Object.entries(r).reduce((function(e,n){var t,i=n[0],r=n[1],o=Ee.compile(r,{asString:!1});return ke(ke({},e),((t={})[i]=o,t))}),{});this.preCompiledTemplates=ke(ke(ke({},Le),t),o)}return e.compile=function(e){return Ee.compile(e,{asString:!1})},e.prototype.render=function(e,n,t,i,r){var o=this.templateKey(e,n);try{return this.preCompiledTemplates[o].render(t,i,r)}catch(e){throw new Error("Could not find template to render '"+o+"'")}},e.prototype.template=function(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]},e.prototype.templateKey=function(e,n){return e+"-"+n},e}(),Ie=function(){return Ie=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},Ie.apply(this,arguments)},je=Ie(Ie(Ie({},be),we),{outputFormat:"line-by-line",drawFileList:!0});function Oe(e,n){void 0===n&&(n={});var t=Ie(Ie({},je),n),i="string"==typeof e?z(e,t):e,r=new He(t),o=t.drawFileList?function(e,n){var t=e.map((function(e){return n.render(pe,"line",{fileHtmlId:ce(e),oldName:e.oldName,newName:e.newName,fileName:ue(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:n.template("icon",fe(e))})})).join("\n");return n.render(pe,"wrapper",{filesNumber:e.length,files:t})}(i,r):"";return o+("side-by-side"===t.outputFormat?new Ne(r,t).render(i):new me(r,t).render(i))}var Ae=n.stringEnum([].concat(["side-by-side","line-by-line"])),Me=n.stringEnum([].concat(["dark","light"])),Pe={oldContent:i.string().def(""),newContent:i.string().def(""),diffFormat:i.string().def(Ae["line-by-line"]),diffContext:i.number(),theme:i.string().def("light"),language:i.string().def("javascript"),hljs:n.PropTypes.any.isRequired};var ze=t.defineComponent({name:"BkCodeDiff",props:Pe,emits:[],setup:function(e){var i=t.ref(null),r=t.ref(""),o=t.computed((function(){return n.classes({dark:e.theme===Me.dark},"hljs bk-code-diff")}));function a(n,o){var a,s,l=k("",e.oldContent,e.newContent,"","",{context:n});r.value=(a=Oe(l,{drawFileList:!1,matching:"lines",outputFormat:e.diffFormat}),s=o,a.replace(/d2h-code-line-ctn/g,(function(e){return"".concat(e," lang-").concat(s)}))),t.nextTick((function(){i.value&&i.value.querySelectorAll(".lang-".concat(e.language)).forEach((function(n){e.hljs.highlightElement(n)}))}))}return t.onMounted((function(){a(e.diffContext,e.language)})),t.watch((function(){return[e.diffContext,e.language]}),(function(e){var n=f(e,2);a(n[0],n[1])})),function(){return t.createVNode("div",{ref:i,class:o.value,innerHTML:r.value},null)}}}),Fe=n.withInstall(ze);e.default=Fe,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/collapse/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("../shared"),require("vue"),require("../icon/")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../icon/"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e._)}(this,(function(e,n,t,o){"use strict";var i=t.defineComponent({name:"Collapse",props:{list:n.PropTypes.arrayOf(n.PropTypes.any).def([]),idFiled:n.PropTypes.string.def("$index"),titleField:n.PropTypes.string.def("name"),contentField:n.PropTypes.string.def("content"),activeIndex:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.number).def([]),n.PropTypes.number.def(-1)]),activeName:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.string).def([]),n.PropTypes.string.def("")]),accordion:n.PropTypes.bool.def(!0)},setup:function(e,n){var i=n.slots,r=t.ref(null);t.watch((function(){return[e.activeName,e.activeIndex]}),(function(){r.value=null}));var l=t.computed((function(){return(e.list||[]).map((function(e,n){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?{$index:n,name:e}:Object.assign({$index:n},e)}))})),a=t.computed((function(){var n;return null!==r.value?r.value.map((function(e){return e.$index})):null!==e.activeName&&void 0!==e.activeName&&""!==e.activeName?u(e.activeName).map((function(n){return l.value.findIndex((function(t){return t[e.idFiled]===n}))})):u(null!==(n=e.activeIndex)&&void 0!==n?n:0)})),u=function n(t){return Array.isArray(t)?e.accordion?n(t[0]):t:"string"==typeof t||"number"==typeof t?[t]:[]},c=function(e){return a.value.some((function(n){return n===e.$index}))},d=function(){return l.value.map((function(n){var l,a,u,d;return t.createVNode("div",{class:"bk-collapse-item"},[t.createVNode("div",{class:"bk-collapse-header",onClick:function(){return function(n){if(null===r.value)r.value=[n];else if(e.accordion)r.value=[n];else{var t=r.value.findIndex((function(e){return e.$index===n.$index}));t>=0?r.value.splice(t,1):r.value.push(n)}}(n)}},[t.createVNode("span",{class:"bk-collapse-title"},[null!==(a=null===(l=i.default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:n[e.titleField]]),c(n)?t.createVNode(o.AngleDown,{class:"bk-collapse-icon"},null):t.createVNode(o.AngleRight,{class:"bk-collapse-icon"},null)]),t.createVNode("div",{class:"bk-collapse-content ".concat(c(n)?"active":"")},[null!==(d=null===(u=i.content)||void 0===u?void 0:u.call(i,n))&&void 0!==d?d:n[e.contentField]])])}))};return function(){return t.createVNode("div",{class:"bk-collapse-wrapper"},[d()])}}}),r=n.withInstall(i);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/date-picker/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue"),require("../directives"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../directives","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e.Directives,e["@bkui-vue/icon/icons"])}(this,(function(e,t,n,r,a){"use strict";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i={exports:{}},l={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var u={exports:{}};!function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var c={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(c);var d={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=l.exports,n=u.exports,r=c.exports,a=d.exports;e.exports=function(e,o){return t(e)||n(e,o)||r(e,o)||a()},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var f=o(i.exports),h={exports:{}},p={exports:{}};!function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(p);var m={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(m);var g={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(g),function(e){var t=p.exports,n=m.exports,r=c.exports,a=g.exports;e.exports=function(e){return t(e)||n(e)||r(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports}(h);var y=o(h.exports),v={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v);var b=o(v.exports),w={placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0)||(console.error("placement property is not valid: '".concat(e,"'")),!1)}},className:{type:String},extPopoverCls:{type:String},appendToBody:{type:Boolean},triggerRef:{type:Object},onClick:Function},D=n.defineComponent({props:w,emits:["changeVisible"],setup:function(e,r){var a=r.emit,o=Object.create(null),i=n.ref(null);n.onMounted((function(){u()})),n.onBeforeUnmount((function(){l()}));var l=function(){if(o&&0!==Object.keys(o).length){var e=o;e.isShow&&e.hide(),e.destroy(),o=null,a("changeVisible",!1)}},u=function(){o&&0!==Object.keys(o).length?n.nextTick((function(){o.update()})):n.nextTick((function(){o=new t.BKPopover(e.triggerRef,i.value,{placement:e.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})}))},c=n.computed((function(){var n={};return e.appendToBody&&(n["z-index"]=1060+t.bkZIndexManager.getModalNextIndex()),n})),s=n.reactive({styles:c});return Object.assign(Object.assign({},n.toRefs(s)),{refContentRef:i,updateDropdown:u,destoryDropdown:l})},render:function(){var e,t,r;return n.createVNode("div",{ref:"refContentRef",class:["bk-date-picker-dropdown",this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[null!==(r=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==r?r:""])}}),k={exports:{}};!function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(k);var M=o(k.exports),x=864e5;function S(e,t){return new Date(e,t+1,0).getDate()}function T(e,t,n){return 0===t&&n>50?e-1:11===t&&n<10?e+1:e}function C(e,t,n,r){t>11&&(t=0,e++);var a=new Date(e,t,n);r&&a.setDate(a.getDate()+4-(a.getDay()||7));var o=r?a.getFullYear():e,i=new Date(o,0,1),l=1+Math.round((a-i)/x);r||(l+=i.getDay());var u=Math.ceil(l/7);if(!r){var c=new Date(e,t,n),s=new Date(e+1,0,1),d=s.getDay();c.getTime()>=s.getTime()-x*d&&(u=1)}return u}function P(e,t,n){for(var r,a,o,i=this.lang||"en",l=this.onlyDays,u=void 0===this.weekStart?1:this.weekStart,c=1===u,s=[],d=u-(new Date(e,t,1).getDay()||(c?7:0)),f=C(e,t,1,c),h=S(e,t),p=S(e,t-1),m=T(e,t,f),g={month:t,year:e,daysInMonth:h},y=0;y<7;y++){o=d;for(var v=0;v<8;v++){y>0&&v>0&&d++,d>h||d<1?(a=d>h?d-h:p+d,r=d>h?t+1:t-1):(a=d,r=t);var b=o!==d&&y>0,w={desc:b?a:f,week:f,type:0===v?"weekLabel":0===y?"dayLabel":d<1?"prevMonth":d>h?"nextMonth":"monthDay",format:c?"ISO 8601":"US",date:!!b&&new Date(Date.UTC(e,r,a)),year:m,index:s.length};n&&("function"==typeof n?w=n.call(g,w,i):n.forEach((function(e){w=e.call(g,w,i)}))),l&&b?s.push(w):l||s.push(w)}y>0&&(f=C(e,r,a+1,c)),m=T(e,t,f)}return g.cells=s,g}var V={weekPlaceholder:"",columnNames:{en:{0:"w",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",7:"sunday"},sv:{0:"v",1:"måndag",2:"tisdag",3:"onsdag",4:"torsdag",5:"fredag",6:"lördag",7:"söndag"},pt:{0:"s",1:"segunda",2:"terça",3:"quarta",4:"quinta",5:"sexta",6:"sábado",7:"domingo"}},monthNames:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],pt:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},classes:{dayLabel:"day-of-week",weekLabel:"week-number",prevMonth:"inactive",nextMonth:"inactive",monthDay:"day-in-month"}};function N(e,t){for(var n in e)t[n]?null==(r=e[n])||r.constructor!==Array&&r.constructor!==Object||N(e[n],t[n]):t[n]=e[n];var r}function O(e,t){var n=[V.classes[e.type]];return e.class?e.class=("string"==typeof e.class?[e.class]:e.class).concat(n):e.class=n,e.type.indexOf("Label")>0&&(0==e.index&&V.weekPlaceholder?e.desc=V.weekPlaceholder:e.index<8?e.desc=V.columnNames[t][e.index]:e.index%8==0&&(e.desc=e.week)),e.date&&(e.monthName=V.monthNames[t][e.date.getMonth()]),this.monthName||(this.monthName=V.monthNames[t][this.month]),this.labels||(this.labels={monthNames:V.monthNames[t],columnNames:V.columnNames[t],classes:V.classes}),e}O.setLabels=function(e){N(e,V)};var F=function(e){return P.bind(e)};function L(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function H(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function U(e){H(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Y(e,t){H(2,arguments);var n=U(e).getTime(),r=L(t);return new Date(n+r)}function A(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function j(e){return H(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function R(e){if(H(1,arguments),!j(e)&&"number"!=typeof e)return!1;var t=U(e);return!isNaN(Number(t))}var B={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},z=function(e,t,n){var r,a=B[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function W(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var E={date:W({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:W({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:W({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},I=function(e,t,n,r){return q[e]};function _(e){return function(t,n){var r,a=n||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=a.width?String(a.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var l=e.defaultWidth,u=a.width?String(a.width):e.defaultWidth;r=e.values[u]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var J={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:_({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:_({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:_({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:_({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:_({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Q(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i,l=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?X(u,(function(e){return e.test(l)})):G(u,(function(e){return e.test(l)}));i=e.valueCallback?e.valueCallback(c):c,i=n.valueCallback?n.valueCallback(i):i;var s=t.slice(l.length);return{value:i,rest:s}}}function G(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function X(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var Z,$={ordinalNumber:(Z={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Z.matchPattern);if(!n)return null;var r=n[0],a=e.match(Z.parsePattern);if(!a)return null;var o=Z.valueCallback?Z.valueCallback(a[0]):a[0];o=t.valueCallback?t.valueCallback(o):o;var i=e.slice(r.length);return{value:o,rest:i}}),era:Q({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Q({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Q({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Q({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},K={code:"en-US",formatDistance:z,formatLong:E,formatRelative:I,localize:J,match:$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ee(e,t){H(2,arguments);var n=L(t);return Y(e,-n)}var te=864e5;function ne(e){H(1,arguments);var t=1,n=U(e),r=n.getUTCDay(),a=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function re(e){H(1,arguments);var t=U(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=ne(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var i=ne(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function ae(e){H(1,arguments);var t=re(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ne(n);return r}var oe=6048e5;function ie(e,t){H(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.weekStartsOn,o=null==a?0:L(a),i=null==n.weekStartsOn?o:L(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=U(e),u=l.getUTCDay(),c=(u<i?7:0)+u-i;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}function le(e,t){H(1,arguments);var n=U(e),r=n.getUTCFullYear(),a=t||{},o=a.locale,i=o&&o.options&&o.options.firstWeekContainsDate,l=null==i?1:L(i),u=null==a.firstWeekContainsDate?l:L(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var s=ie(c,t),d=new Date(0);d.setUTCFullYear(r,0,u),d.setUTCHours(0,0,0,0);var f=ie(d,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function ue(e,t){H(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.firstWeekContainsDate,o=null==a?1:L(a),i=null==n.firstWeekContainsDate?o:L(n.firstWeekContainsDate),l=le(e,t),u=new Date(0);u.setUTCFullYear(l,0,i),u.setUTCHours(0,0,0,0);var c=ie(u,t);return c}var ce=6048e5;function se(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var de={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return se("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):se(n+1,2)},d:function(e,t){return se(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return se(e.getUTCHours()%12||12,t.length)},H:function(e,t){return se(e.getUTCHours(),t.length)},m:function(e,t){return se(e.getUTCMinutes(),t.length)},s:function(e,t){return se(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return se(Math.floor(r*Math.pow(10,n-3)),t.length)}},fe=de,he="midnight",pe="noon",me="morning",ge="afternoon",ye="evening",ve="night",be={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return fe.y(e,t)},Y:function(e,t,n,r){var a=le(e,r),o=a>0?a:1-a;return"YY"===t?se(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):se(o,t.length)},R:function(e,t){return se(re(e),t.length)},u:function(e,t){return se(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return se(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return se(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return fe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return se(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=function(e,t){H(1,arguments);var n=U(e),r=ie(n,t).getTime()-ue(n,t).getTime();return Math.round(r/ce)+1}(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):se(a,t.length)},I:function(e,t,n){var r=function(e){H(1,arguments);var t=U(e),n=ne(t).getTime()-ae(t).getTime();return Math.round(n/oe)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):se(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):fe.d(e,t)},D:function(e,t,n){var r=function(e){H(1,arguments);var t=U(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),a=n-r;return Math.floor(a/te)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):se(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return se(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return se(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return se(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?pe:0===a?he:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?ye:a>=12?ge:a>=4?me:ve,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return fe.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):fe.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):se(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):se(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):fe.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):fe.s(e,t)},S:function(e,t){return fe.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return De(a);case"XXXX":case"XX":return ke(a);default:return ke(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return De(a);case"xxxx":case"xx":return ke(a);default:return ke(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+we(a,":");default:return"GMT"+ke(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+we(a,":");default:return"GMT"+ke(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return se(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return se((r._originalDate||e).getTime(),t.length)}};function we(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(0===o)return n+String(a);var i=t||"";return n+String(a)+i+se(o,2)}function De(e,t){return e%60==0?(e>0?"-":"+")+se(Math.abs(e)/60,2):ke(e,t)}function ke(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+se(Math.floor(a/60),2)+n+se(a%60,2)}var Me=be;function xe(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Se(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var Te={p:Se,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return xe(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",xe(a,t)).replace("{{time}}",Se(o,t))}},Ce=Te,Pe=["D","DD"],Ve=["YY","YYYY"];function Ne(e){return-1!==Pe.indexOf(e)}function Oe(e){return-1!==Ve.indexOf(e)}function Fe(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var Le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,He=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ue=/^'([^]*?)'?$/,Ye=/''/g,Ae=/[a-zA-Z]/;function je(e){return e.match(Ue)[1].replace(Ye,"'")}var Re={},Be=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ze=/\d\d?/,We=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ee=function(){};function qe(e,t){for(var n=[],r=0,a=e.length;r<a;r++)n.push(e[r].substr(0,t));return n}function Ie(e){return function(t,n,r){var a=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~a&&(t.month=a)}}function _e(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);n.length<t;)n="0".concat(n);return n}var Je=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Qe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ge=qe(Qe,3),Xe=qe(Je,3);Re.i18n={dayNamesShort:Xe,dayNames:Je,monthNamesShort:Ge,monthNames:Qe,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var Ze={D:function(e){return e.getDay()},DD:function(e){return _e(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return _e(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return _e(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return String(e.getFullYear()).substr(2)},yyyy:function(e){return e.getFullYear()},h:function(e){return e.getHours()%12||12},hh:function(e){return _e(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return _e(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return _e(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return _e(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return _e(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return _e(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+_e(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},$e={d:[ze,function(e,t){e.day=t}],M:[ze,function(e,t){e.month=t-1}],yy:[ze,function(e,t){var n=new Date,r=+"".concat(n.getFullYear()).substr(0,2);e.year="".concat(t>68?r-1:r).concat(t)}],h:[ze,function(e,t){e.hour=t}],m:[ze,function(e,t){e.minute=t}],s:[ze,function(e,t){e.second=t}],yyyy:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],D:[ze,Ee],ddd:[We,Ee],MMM:[We,Ie("monthNamesShort")],MMMM:[We,Ie("monthNames")],a:[We,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,function(e,t){var n,r="".concat(t).match(/([\\+\\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};$e.DD=$e.D,$e.dddd=$e.ddd,$e.Do=$e.dd=$e.d,$e.mm=$e.m,$e.hh=$e.H=$e.HH=$e.h,$e.MM=$e.M,$e.ss=$e.s,$e.A=$e.a,Re.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Re.format=function(e,t,n){var r=n||Re.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");return(t=Re.masks[t]||t||Re.masks.default).replace(Be,(function(t){return t in Ze?Ze[t](e,r):t.slice(1,t.length-1)}))},Re.parse=function(e,t,n){var r=n||Re.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=Re.masks[t]||t,e.length>1e3)return!1;var a=!0,o={};if(t.replace(Be,(function(t){if($e[t]){var n=$e[t],i=e.search(n[0]);~i?e.replace(n[0],(function(t){return n[1](o,t,r),e=e.substr(i+t.length),t})):a=!1}return $e[t]?"":t.slice(1,t.length-1)})),!a)return!1;var i,l=new Date;return!0===o.isPm&&null!==o.hour&&12!=+o.hour?o.hour=+o.hour+12:!1===o.isPm&&12==+o.hour&&(o.hour=0),null!==o.timezoneOffset&&void 0!==o.timezoneOffset?(o.minute=+(o.minute||0)-+o.timezoneOffset,i=new Date(Date.UTC(o.year||l.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0))):i=new Date(o.year||l.getFullYear(),o.month||0,o.day||1,o.hour||0,o.minute||0,o.second||0,o.millisecond||0),i};var Ke=" - ",et=function(e,t){var n=U(new Date(e));return!n||isNaN(n.getTime())?"":function(e,t,n){H(2,arguments);var r=String(t),a=n||{},o=a.locale||K,i=o.options&&o.options.firstWeekContainsDate,l=null==i?1:L(i),u=null==a.firstWeekContainsDate?l:L(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,s=null==c?0:L(c),d=null==a.weekStartsOn?s:L(a.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=U(e);if(!R(f))throw new RangeError("Invalid time value");var h=A(f),p=ee(f,h),m={firstWeekContainsDate:u,weekStartsOn:d,locale:o,_originalDate:f};return r.match(He).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ce[t])(e,o.formatLong,m):e})).join("").match(Le).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return je(n);var i=Me[r];if(i)return!a.useAdditionalWeekYearTokens&&Oe(n)&&Fe(n,t,e),!a.useAdditionalDayOfYearTokens&&Ne(n)&&Fe(n,t,e),i(p,n,o.localize,m);if(r.match(Ae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(n,t||"yyyy-MM-dd")},tt=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return et(n,t)+Ke+et(r,t)}else if(!Array.isArray(e)&&e instanceof Date)return et(e,t);return""},nt=function(e,t){var n=Array.isArray(e)?e:e.split(Ke);if(2===n.length){var r=n[0],a=n[1];return[r instanceof Date?r:Re.parse(r,t||"yyyy-MM-dd"),a instanceof Date?a:Re.parse(a,t||"yyyy-MM-dd")]}return[]},rt={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},datetime:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},daterange:{formatter:tt,parser:nt},datetimerange:{formatter:tt,parser:nt},timerange:{formatter:tt,parser:nt},time:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},month:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},year:{formatter:function(e,t){return et(e,t)},parser:function(e,t){return Re.parse(e,t||"yyyy-MM-dd")}},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return et(e,t)})).join(",")},parser:function(e,t){return("string"==typeof e?e.split(","):e).map((function(e){if(e instanceof Date)return e;var n=e;return"string"==typeof e?n=e.trim():"number"==typeof e||e||(n=""),Re.parse(n,t||"yyyy-MM-dd")}))}},number:{formatter:function(e){return e?"".concat(e):""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}}},at=function(e){return e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0]},ot={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},it=function(e,t,n,r){var a=t.includes("range"),o=(rt[t]||rt.default).parser,i=r||ot[t],l=rt.multiple.parser,u=e;if(!e||"time"!==t||e instanceof Date)if(n&&e)u=l(e,i);else if(a)if(e)if("string"==typeof e)u=o(e,i);else if("timerange"===t)u=o(e,i).map((function(e){return e||""}));else{var c=f(e,2),s=c[0],d=c[1];s instanceof Date&&d instanceof Date?u=e.map((function(e){return new Date(e)})):"string"==typeof s&&"string"==typeof d?u=o(e.join(Ke),i):s&&d||(u=[null,null])}else u=[null,null];else"string"==typeof e&&0!==t.indexOf("time")&&(u=o(e,i)||null);else u=o(e,i);return a||n?u||[]:[u]},lt=function(e,t,n,r){var a=ot[t];return n?(0,rt.multiple.formatter)(e,r||a):(0,(rt[t]||rt.default).formatter)(e,r||a)},ut=Symbol("date-picker");function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return["bk-picker-panel-icon-btn","bk-date-picker-".concat(e,"-btn"),"bk-date-picker-".concat(e,"-btn-arrow").concat(t)]}var st,dt,ft=function(e,t){var n,r=new Date(e),a=r.getMonth()+t,o=(n=r.getFullYear(),new Date(n,a+1,0).getDate());return o<r.getDate()&&r.setDate(o),r.setMonth(a),r},ht=(st={yyyy:function(e){return e.getFullYear()},m:function(e){return e.getMonth()+1},mm:function(e){return"0".concat(e.getMonth()+1).slice(-2)},mmm:function(e,t){return e.toLocaleDateString(t,{month:"long"}).slice(0,3)},Mmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return(n[0].toUpperCase()+n.slice(1).toLowerCase()).slice(0,3)},mmmm:function(e,t){return e.toLocaleDateString(t,{month:"long"})},Mmmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return n[0].toUpperCase()+n.slice(1).toLowerCase()}},dt=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(e,t,n){var r=t.match(/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/).slice(1),a=r[1],o=[r[0],r[2]].map((function(t){var r=t.replace(/\[[^\]]+\]/,(function(t){return t.slice(1,-1).replace(dt,(function(t){return st[t](n,e)}))}));return{label:r,type:-1!==t.indexOf("yy")?"year":"month"}}));return{separator:a,labels:o}}),pt=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},mt=function(e,t,n){if(!t||!n)return!1;var r=[t,n].sort(),a=f(r,2),o=a[0],i=a[1];return e>=o&&e<=i},gt={tableDate:{type:Date,required:!0},disableDate:Function,selectionMode:{type:String,required:!0},modelValue:{type:[Date,String,Number,Array]},rangeState:{type:Object,default:function(){return{from:null,to:null,selecting:!1}}},focusedDate:{type:Date,required:!0}},yt=n.defineComponent({props:gt,emits:["pick","pick-click","changeRange"],setup:function(e,t){var r=t.emit,a=n.computed((function(){return new F({onlyDays:!0,weekStart:0})})),o=n.computed((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),i=n.computed((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue}));return{headerDays:o,cells:n.computed((function(){var t=e.tableDate.getFullYear(),n=e.tableDate.getMonth(),r=pt(new Date),o=i.value.filter(Boolean).map(pt),l=i.value.map(pt),u=f(l,2),c=u[0],s=u[1],d=e.rangeState.from&&pt(e.rangeState.from),h=e.rangeState.to&&pt(e.rangeState.to),p="range"===e.selectionMode,m="function"==typeof e.disableDate&&e.disableDate;return a.value(t,n,(function(e){e.date instanceof Date&&e.date.setTime(e.date.getTime()+6e4*e.date.getTimezoneOffset());var t=e.date&&pt(e.date),a=e.date&&n===e.date.getMonth();return Object.assign(Object.assign({},e),{type:t===r?"today":e.type,selected:a&&o.includes(t),disabled:e.date&&m&&m(new Date(t)),range:a&&p&&mt(t,d,h),start:a&&p&&t===c,end:a&&p&&t===s})})).cells.slice(0)})),getCellCls:function(e){var t;return["bk-date-picker-cells-cell",(t={},M(t,"bk-date-picker-cells-cell-selected",e.selected||e.start||e.end),M(t,"bk-date-picker-cells-cell-disabled",e.disabled),M(t,"bk-date-picker-cells-cell-today","today"===e.type),M(t,"bk-date-picker-cells-cell-prev-month","prevMonth"===e.type),M(t,"bk-date-picker-cells-cell-next-month","nextMonth"===e.type),M(t,"bk-date-picker-cells-cell-week-label","weekLabel"===e.type),M(t,"bk-date-picker-cells-cell-range",e.range&&!e.start&&!e.end),t)]},handleClick:function(e){if(!e.disabled&&"weekLabel"!==e.type){var t=new Date(pt(e.date));r("pick",t),r("pick-click")}},handleMouseMove:function(t){if(e.rangeState.selecting&&!t.disabled){var n=t.date;r("changeRange",n)}}}},render:function(){var e=this;return n.createVNode("div",{class:"bk-date-picker-cells"},[n.createVNode("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map((function(e){return n.createVNode("span",null,[e])}))]),this.cells.map((function(t){return n.createVNode("span",{class:e.getCellCls(t),onClick:function(){return e.handleClick(t)},onMouseenter:function(){return e.handleMouseMove(t)}},[n.createVNode("em",null,[t.desc])])}))])}}),vt={modelValue:{type:[Date,String,Number,Array]},shortcuts:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0)||(console.error("selectionMode property is not valid: '".concat(e,"'")),!1)}},startDate:{type:Date},disableDate:Function,focusedDate:{type:Date,required:!0}},bt=n.defineComponent({props:vt,emits:["pick","pick-success"],setup:function(e,t){var r=this,a=t.emit,o=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},i=e.modelValue.slice().sort(),l=n.reactive({currentView:e.selectionMode||"date",pickerTable:o(e.selectionMode),dates:i,panelDate:e.startDate||i[0]||new Date}),u=function(e){l.panelDate=e,"year-table"===l.pickerTable?l.pickerTable="month-table":l.pickerTable=o(l.currentView)},c=function(t,n){console.warn("handlePick");var r=t;r="year"===e.selectionMode?new Date(t.getFullYear(),0,1):"month"===e.selectionMode?new Date(l.panelDate.getFullYear(),t.getMonth(),1):new Date(t),l.dates=[r],a("pick",r,!1,n||e.selectionMode)},s=function(){setTimeout((function(){l.currentView=e.selectionMode}),500),a("pick-success")},d=n.ref(null),f=n.ref(null),h=n.computed((function(){return l.pickerTable==="".concat(l.currentView,"-table")?c:u})),p=n.computed((function(){var e=l.panelDate,t=ht("zh-CN","[yyyy]-[mm]",e),n=t.labels,r=t.separator;return{separator:r,labels:n.map((function(e){var t,n=e;return n.handler=(t=e.type,function(){l.pickerTable=o(t)}),n}))}})),m=n.computed((function(){return"year"===p.value.labels[0].type||"date"===l.currentView})),g=n.computed((function(){return"year"===p.value.labels[1].type||"date"===l.currentView})),y=n.computed((function(){return"time"===l.currentView}));return console.warn("panelDatepanelDate",l.panelDate),Object.assign(Object.assign({},n.toRefs(l)),{panelPickerHandlers:h,datePanelLabel:p,showLabelFirst:m,showLabelSecond:g,handleShortcutClick:function(t){t.value&&a("pick",t.value(),!1,void 0,t),t.onClick&&t.onClick(r),e.shortcutClose&&s()},changeYear:function(t){"year"===e.selectionMode||"year-table"===l.pickerTable?l.panelDate=new Date(l.panelDate.getFullYear()+10*t,0,1):l.panelDate=ft(l.panelDate,12*t)},changeMonth:function(e){l.panelDate=ft(l.panelDate,e)},reset:function(){l.currentView=e.selectionMode,l.pickerTable=o(l.currentView)},isTime:y,onToggleVisibility:function(e){var t,n;e&&(null===(t=null==d?void 0:d.value)||void 0===t||t.updateScroll(),null===(n=null==f?void 0:f.value)||void 0===n||n.updateScroll())}})},render:function(){var e=this;return n.createVNode("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[this.shortcuts.length?n.createVNode("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map((function(t){return n.createVNode("div",{class:"bk-picker-panel-shortcut",onClick:function(){return e.handleShortcutClick(t)}},[t.text])}))]):"",n.createVNode("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[n.withDirectives(n.createVNode("div",{class:"bk-date-picker-header"},[n.createVNode("span",{class:ct("prev","-double"),onClick:function(){return e.changeYear(-1)}},[n.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?n.withDirectives(n.createVNode("span",{class:ct("prev"),onClick:function(){return e.changeMonth(-1)}},[n.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?n.createVNode("span",null,[n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[0].handler}},[this.datePanelLabel.labels[0].label]),[[n.vShow,this.showLabelFirst]]),"date"===this.currentView?" ".concat(this.datePanelLabel.separator," "):" ",n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.datePanelLabel.labels[1].handler}},[this.datePanelLabel.labels[1].label]),[[n.vShow,this.showLabelSecond]])]):"",n.createVNode("span",{class:ct("next","-double"),onClick:function(){return e.changeYear(1)}},[n.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?n.withDirectives(n.createVNode("span",{class:ct("next"),onClick:function(){return e.changeMonth(1)}},[n.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):""]),[[n.vShow,"time"!==this.currentView]]),n.createVNode("div",{class:"bk-picker-panel-content"},["time"!==this.currentView?"date-table"===e.pickerTable?n.createVNode(yt,{tableDate:e.panelDate,disableDate:e.disableDate,selectionMode:e.selectionMode,modelValue:e.dates,focusedDate:e.focusedDate,onPick:e.panelPickerHandlers},null):null:""])])])}}),wt={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0)||(console.error("type property is not valid: '".concat(e,"'")),!1)}},shortcuts:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0)||(console.error("selectionMode property is not valid: '".concat(e,"'")),!1)}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0}},Dt=n.defineComponent({props:wt,emits:["pick"],setup:function(e,t){var r=t.emit,a=e.modelValue.map((function(e){return e||function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e}()})),o=f(a,2),i=o[0],l=o[1],u=e.startDate?e.startDate:i,c=n.reactive({currentView:e.selectionMode||"date",leftPickerTable:"".concat(e.selectionMode,"-table"),rightPickerTable:"".concat(e.selectionMode,"-table"),leftPanelDate:u,rightPanelDate:new Date(u.getFullYear(),u.getMonth()+1,1),rangeState:{from:e.modelValue[0],to:e.modelValue[1],selecting:i&&!l},upToNowEnable:!1,dates:e.modelValue}),s=function(e,t){return e&&t?e.getTime()-t.getTime():0},d=n.ref(null),h=n.ref(null),p=function t(n,r,a){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=new Date(c["".concat(n,"PanelDate")]);if(i["set".concat(r)](i["get".concat(r)]()+a),c["".concat(n,"PanelDate")]=i,o)if(e.splitPanels){var l="left"===n?"right":"left";"left"===n&&c.leftPanelDate>=c.rightPanelDate&&t(l,r,1),"right"===n&&c.rightPanelDate<=c.leftPanelDate&&t(l,r,-1)}else{var u="left"===n?"right":"left",s=c["".concat(u,"PanelDate")],d=new Date(s);if("Month"===r){var f=new Date(d.getFullYear(),d.getMonth()+a+1,0).getDate();d.setDate(Math.min(f,d.getDate()))}d["set".concat(r)](d["get".concat(r)]()+a),c["".concat(u,"PanelDate")]=d}},m=function(e){c["".concat(e,"PickerTable")]="year-table"},g=function(e){c["".concat(e,"PickerTable")]="month-table"},y=function(e){var t=c["".concat(e,"PanelDate")],n=ht("zh-CN","[yyyy]-[mm]",t),r=n.labels,a=n.separator;return{separator:a,labels:r.map((function(t){var n,r,a=t;return a.handler=(n=t.type,r="month"===n?g:m,function(){return r(e)}),a}))}},v=function(t,n){if(console.warn("handleRangePick"),c.rangeState.selecting||"time"===c.currentView){if("time"===c.currentView)c.dates=t;else{var a=[c.rangeState.from,t].sort(s),o=f(a,2),i=o[0],l=o[1],u="upToNow"===n?new Date:new Date(new Date(new Date(l.setHours(23)).setMinutes(59)).setSeconds(59));c.dates=[i,u],c.rangeState={from:i,to:u,selecting:!1}}!function(t,n){r("pick",c.dates,t,n||e.type)}(!1,n||"date")}else c.upToNowEnable=new Date(t).getTime()<(new Date).getTime(),c.rangeState={from:t,to:null,selecting:!0}},b=function(t,n){c["".concat(t,"PanelDate")]=n;var r=c["".concat(t,"PickerTable")];if(c["".concat(t,"PickerTable")]="year-table"===r?"month-table":"".concat(c.currentView,"-table"),!e.splitPanels){var a="left"===t?"right":"left";c["".concat(a,"PanelDate")]=n,p(a,"Month","left"===a?-1:1,!1)}};n.watch((function(){return e.selectionMode}),(function(e){c.currentView=e||"range"}));var w=n.computed((function(){return"time"===c.currentView})),D=n.computed((function(){return y("left")})),k=n.computed((function(){return y("right")})),M=n.computed((function(){return c.leftPickerTable.split("-").shift()})),x=n.computed((function(){return c.rightPickerTable.split("-").shift()})),S=n.computed((function(){return"year"===D.value.labels[0].type||"date"===c.currentView})),T=n.computed((function(){return"year"===D.value.labels[1].type||"date"===c.currentView})),C=n.computed((function(){return"year"===k.value.labels[0].type||"date"===c.currentView})),P=n.computed((function(){return"year"===k.value.labels[1].type||"date"===c.currentView})),V=n.computed((function(){var e="".concat(c.currentView,"-table");return{left:c.leftPickerTable!==e,right:c.rightPickerTable!==e}})),N=n.computed((function(){return{left:V.value.left?b.bind("left"):v,right:V.value.right?b.bind("right"):v}}));return Object.assign(Object.assign({},n.toRefs(c)),{isTime:w,prevYear:function(e){var t="year"===c.currentView?-10:-1;p(e,"FullYear",t)},nextYear:function(e){var t="year"===c.currentView?10:1;p(e,"FullYear",t)},prevMonth:function(e){p(e,"Month",-1)},nextMonth:function(e){p(e,"Month",1)},leftDatePanelLabel:D,rightDatePanelLabel:k,leftDatePanelView:M,rightDatePanelView:x,leftShowLabelFirst:S,leftShowLabelSecond:T,rightShowLabelFirst:C,rightShowLabelSecond:P,preSelecting:V,panelPickerHandlers:N,reset:function(){c.currentView=e.selectionMode,c.leftPickerTable="".concat(c.currentView,"-table"),c.rightPickerTable="".concat(c.currentView,"-table")},onToggleVisibility:function(e){var t,n;e&&(null===(t=null==d?void 0:d.value)||void 0===t||t.updateScroll(),null===(n=null==h?void 0:h.value)||void 0===n||n.updateScroll())},handleRangePick:v,handleChangeRange:function(e){c.rangeState.to=e}})},render:function(){var e=this;return n.createVNode("div",{class:["bk-picker-panel-body-wrapper","bk-date-picker-with-range",this.shortcuts.length||this.$slots.shortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[n.createVNode("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[n.withDirectives(n.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[n.withDirectives(n.createVNode("div",{class:"bk-date-picker-header"},[n.createVNode("span",{class:ct("prev","-double"),onClick:function(){return e.prevYear("left")}},[n.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?n.withDirectives(n.createVNode("span",{class:ct("prev"),onClick:function(){return e.prevMonth("left")}},[n.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?n.createVNode("span",null,[n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[0].handler}},[this.leftDatePanelLabel.labels[0].label]),[[n.vShow,this.leftShowLabelFirst]]),"date"===this.leftDatePanelView?" ".concat(this.leftDatePanelLabel.separator," "):" ",n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.leftDatePanelLabel.labels[1].handler}},[this.leftDatePanelLabel.labels[1].label]),[[n.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||"date-table"!==this.leftPickerTable?n.createVNode("span",{class:ct("next","-double"),onClick:function(){return e.nextYear("left")}},[n.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?n.withDirectives(n.createVNode("span",{class:ct("next"),onClick:function(){return e.nextMonth("left")}},[n.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):""]),[[n.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.leftPickerTable?n.createVNode(yt,{selectionMode:"range",tableDate:e.leftPanelDate,disableDate:e.disableDate,rangeState:e.rangeState,modelValue:e.preSelecting.left?[e.dates[0]]:e.dates,focusedDate:e.focusedDate,onChangeRange:e.handleChangeRange,onPick:e.panelPickerHandlers.left},null):null:""]),[[n.vShow,!this.isTime]]),n.withDirectives(n.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[n.withDirectives(n.createVNode("div",{class:"bk-date-picker-header"},[this.splitPanels||"date-table"!==this.rightPickerTable?n.createVNode("span",{class:ct("prev","-double"),onClick:function(){return e.prevYear("right")}},[n.createVNode(a.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?n.withDirectives(n.createVNode("span",{class:ct("prev","-double"),onClick:function(){return e.prevMonth("right")}},[n.createVNode(a.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?n.createVNode("span",null,[n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[0].handler}},[this.rightDatePanelLabel.labels[0].label]),[[n.vShow,this.rightShowLabelFirst]]),"date"===this.rightDatePanelView?" ".concat(this.rightDatePanelLabel.separator," "):" ",n.withDirectives(n.createVNode("span",{class:"bk-date-picker-header-label",onClick:function(){return e.rightDatePanelLabel.labels[1].handler}},[this.rightDatePanelLabel.labels[1].label]),[[n.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(e.rangeState.selecting||"time"===e.currentView)&&e.upToNowEnable?n.createVNode("span",{class:"up-to-now",onClick:function(){return e.handleRangePick(new Date,"upToNow")}},[n.createTextVNode("至今")]):n.createVNode("span",{class:"up-to-now disabled"},[n.createTextVNode("至今")]):"",n.createVNode("span",{class:ct("next","-double"),onClick:function(){return e.nextYear("right")}},[n.createVNode(a.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?n.withDirectives(n.createVNode("span",{class:ct("next"),onClick:function(){return e.nextMonth("right")}},[n.createVNode(a.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[n.vShow,"date"===this.currentView]]):""]),[[n.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===e.rightPickerTable?n.createVNode(yt,{selectionMode:"range",tableDate:e.rightPanelDate,disableDate:e.disableDate,rangeState:e.rangeState,modelValue:e.preSelecting.right?[e.dates[e.dates.length-1]]:e.dates,focusedDate:e.focusedDate,onChangeRange:e.handleChangeRange,onPick:e.panelPickerHandlers.right},null):null:""]),[[n.vShow,!this.isTime]])])])}}),kt={type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0)||(console.error("type property is not valid: '".concat(e,"'")),!1)}},extPopoverCls:{type:String,default:""},format:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{type:Object,default:function(){return{}}},splitPanels:{type:Boolean,default:!0},startDate:Date,placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0)||(console.error("placement property is not valid: '".concat(e,"'")),!1)}},transfer:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},shortcuts:{type:Array,default:function(){return[]}},shortcutClose:{type:Boolean,default:!1},modelValue:{type:[Date,String,Number,Array]},options:{type:Object,default:function(){return{}}},fontSize:{type:String,default:"normal"},upToNow:{type:Boolean,default:!1},useShortcutText:{type:Boolean,default:!1},shortcutSelectedIndex:{type:Number,default:-1},footerSlotCls:{type:String,default:""},allowCrossDay:{type:Boolean,default:!1},behavior:{type:String,default:"normal",validator:function(e){return["simplicity","normal"].indexOf(e)>-1}},disableDate:Function},Mt=n.defineComponent({name:"DatePicker",directives:{clickoutside:r.clickoutside},props:kt,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],setup:function(e,t){var r=t.slots,a=t.emit,o=e.type.includes("range"),i=o?[null,null]:[null],l=((o?e.modelValue:[e.modelValue])||[]).every((function(e){return!e||"string"==typeof e&&""===e.trim()}))?i:it(e.modelValue,e.type,e.multiple,e.format),u=null;-1!==e.shortcutSelectedIndex&&(u=e.shortcuts[e.shortcutSelectedIndex]||null)&&(l=u.value());var c=n.reactive({showClose:!1,visible:!1,internalValue:l,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:l[0]||e.startDate||new Date,focusedTime:{column:0,picker:0,time:l.map(at),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:u,onSelectionModeChange:s});function s(e){var t=e;return e.match(/^date/)&&(t="date"),c.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,c.selectionMode}var d=n.computed((function(){if(e.multiple)return c.internalValue.slice();var t=e.type.includes("range"),n=c.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return e.type.match(/^time/)&&(n=n.map((function(t){return lt(t,e.type,e.multiple,e.format)}))),t||e.multiple?n:n[0]})),h=n.computed((function(){return e.type.match(/^time/)?d.value:e.multiple?lt(d.value,e.type,e.multiple,e.format):Array.isArray(d.value)?d.value.map((function(t){return lt(t,e.type,e.multiple,e.format)})):lt(d.value,e.type,e.multiple,e.format)})),p=n.computed((function(){return"daterange"===e.type||"datetimerange"===e.type?"DateRangePanel":"DatePanel"})),m=n.computed((function(){return null===e.open?c.visible:e.open})),g=n.computed((function(){return console.warn("state.internalValue",c.internalValue),lt(c.internalValue,e.type,e.multiple,e.format)})),v=n.computed((function(){var t;return(null===(t=c.shortcut)||void 0===t?void 0:t.text)&&e.useShortcutText?c.shortcut.text:g.value})),w=n.computed((function(){return!!r.trigger||"datetime"===e.type||"datetimerange"===e.type||e.multiple})),D=n.computed((function(){var t="";return"medium"===e.fontSize?t="medium-font":"large"===e.fontSize&&(t="large-font"),t})),k=n.computed((function(){var t="";return"medium"===e.fontSize?t="medium-width":"large"===e.fontSize&&(t="large-width"),t})),M=n.computed((function(){var t;return!(!(null===(t=c.shortcut)||void 0===t?void 0:t.text)||!e.useShortcutText)||(!e.editable||e.readonly)})),x=n.computed((function(){return!!r.footer})),S=n.computed((function(){return"RangeTimePickerPanel"===p.value&&e.allowCrossDay})),T=n.ref(null);n.watch((function(){return c.visible}),(function(e){var t,n;console.error(123),!1===e&&(null===(t=C.value)||void 0===t||t.destoryDropdown()),null===(n=C.value)||void 0===n||n.updateDropdown(),a("open-change",e)}));var C=n.ref(null);n.watch((function(){return e.modelValue}),(function(t){c.internalValue=it(t,e.type,e.multiple,e.format)})),n.watch((function(){return e.open}),(function(e){c.visible=!0===e})),n.watch((function(){return e.type}),(function(e){s(e)})),n.watch((function(){return d}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||b(e)!==b(t))&&a("input",e)})),n.onMounted((function(){e.type.indexOf("date"),c.timeEnterMode=!0;var t=e.modelValue,r=d.value;b(t)===b(r)&&JSON.stringify(t)===JSON.stringify(r)||a("input",d.value),null!==e.open&&(c.visible=e.open),n.provide(ut,{props:e,focus:function(){var e;null===(e=null==T?void 0:T.value)||void 0===e||e.focus()}})}));var P=n.ref(null),V=function(e){var t;if(c.disableCloseUnderTransfer)return c.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&c.visible)return e.preventDefault(),void e.stopPropagation();if(c.visible){var n=null===(t=null==P?void 0:P.value)||void 0===t?void 0:t.$el;if(e&&n&&n.contains(e.target))return;return c.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}c.isFocused=!1,c.disableClickOutSide=!1},N=function(t){n.nextTick((function(){var n;a("change",h.value,t),a("update:modelValue",d.value),e.type.indexOf("time")<0&&(null===(n=null==T?void 0:T.value)||void 0===n||n.blur())}))},O=function(){var e;null===(e=null==P?void 0:P.value)||void 0===e||e.reset()},F=function(){var e;c.visible=!1,n.nextTick((function(){a("pick-success")})),null===(e=null==T?void 0:T.value)||void 0===e||e.blur(),O()},L=n.ref(null);return Object.assign(Object.assign({},n.toRefs(c)),{panel:p,publicStringValue:h,opened:m,visualValue:g,displayValue:v,isConfirm:w,fontSizeCls:D,longWidthCls:k,localReadonly:M,hasFooter:x,allowCrossDayProp:S,pickerDropdownRef:C,inputRef:T,triggerRef:L,pickerPanelRef:P,handleClose:V,handleIconClick:function(){var e,t;null===(e=null==T?void 0:T.value)||void 0===e||e.focus(),null===(t=null==T?void 0:T.value)||void 0===t||t.click()},handleInputMouseenter:function(){e.readonly||e.disabled||(null==g?void 0:g.value)&&(c.showClose=!0)},handleInputMouseleave:function(e){var t;(null===(t=e.toElement)||void 0===t?void 0:t.classList.contains("clear-action"))||(c.showClose=!1)},handleFocus:function(t){e.readonly||(c.isFocused=!0,t&&"focus"===t.type||e.disabled||(c.visible=!0))},handleBlur:function(t){var n;c.internalFocus?c.internalFocus=!1:c.visible?t.preventDefault():(c.isFocused=!1,s(e.type),c.internalValue=c.internalValue.slice(),O(),null===(n=null==P?void 0:P.value)||void 0===n||n.onToggleVisibility(!1))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&c.visible)if(e.stopPropagation(),e.preventDefault(),w.value){var n=C.value.$el.querySelectorAll(".bk-picker-confirm > *");c.internalFocus=!0,y(n)[e.shiftKey?"pop":"shift"]().focus()}else V();var r=[37,38,39,40];c.visible||!r.includes(t)?(27===t&&c.visible&&(e.stopPropagation(),V()),r.includes(t)&&c.focusedTime.active&&e.preventDefault()):c.visible=!0},handleInputChange:function(t){var n,r=e.type.includes("range")||e.multiple,a=g.value,o=t.target.value,i=it(o,e.type,e.multiple,e.format),l=r?i:i[0],u=null===(n=e.disableDate)||void 0===n?void 0:n.call(e,l),s=i.reduce((function(e,t){return e&&t instanceof Date}),!0);o!==a&&!u&&s?(N(e.type),c.internalValue=i):c.forceInputRerender=c.forceInputRerender+1},handleClear:function(){c.visible=!1,c.internalValue=c.internalValue.map((function(){return null})),a("clear"),N(e.type),O(),c.showClose=!1,c.shortcut=null,setTimeout((function(){return s(e.type)}),500)},handleTransferClick:function(){e.appendToBody&&(c.disableCloseUnderTransfer=!0)},onPick:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=t;if(e.multiple){var l=i.getTime(),u=c.internalValue.findIndex((function(e){return e&&e.getTime()===l})),d=[].concat(y(c.internalValue),[i]).filter(Boolean),h=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==u}));c.internalValue=h.map((function(e){return new Date(e)}))}else i=it(t,e.type,e.multiple,e.format),c.internalValue=Array.isArray(i)?i:[i];if(c.internalValue[0]){var p=f(c.internalValue,1),m=p[0];c.focusedDate=m}c.focusedTime=Object.assign(Object.assign({},c.focusedTime),{time:c.internalValue.map(at)}),w.value||(s(e.type),c.visible=n),"upToNow"===r&&"daterange"===e.type&&F(),c.shortcut=o,N(r);var g=e.shortcuts.findIndex((function(e){return e===c.shortcut}));a("shortcut-change",c.shortcut,g)}})},render:function(){var e,t,r,a=this,o=n.createVNode("div",null,[n.createVNode("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},["time"===this.type||"timerange"===this.type?n.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[n.createVNode("g",{id:"time"},[n.createVNode("path",{fill:"#c4c6cc",d:"M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"},null),n.createVNode("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):n.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[n.createVNode("g",{id:"date"},[n.createVNode("path",{fill:"#c4c6cc",d:"M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"},null),n.createVNode("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),n.createVNode("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),n.createVNode("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),n.createVNode("polygon",{fill:"#c4c6cc",points:"403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"},null)])])]),n.createVNode("input",{type:"text",class:["bk-date-picker-editor",this.readonly?"readonly":"",this.fontSizeCls,"simplicity"===this.behavior?"only-bottom-border":""],ref:"inputRef",key:this.forceInputRerender,readonly:this.localReadonly,disabled:this.disabled,placeholder:this.placeholder,value:this.displayValue,onFocus:this.handleFocus,onClick:this.handleFocus,onBlur:this.handleBlur,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave,onKeydown:this.handleKeydown,onChange:this.handleInputChange},null),this.clearable&&this.showClose?n.createVNode("i",{class:"bk-icon icon-close-circle-shape clear-action",onClick:this.handleClear},null):""]);return n.withDirectives(n.createVNode("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[n.createVNode("div",{ref:"triggerRef",class:"bk-date-picker-rel"},[null!==(r=null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==r?r:o]),n.createVNode(n.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[n.createVNode(n.Transition,{name:"bk-fade-down-transition"},{default:function(){return[n.withDirectives(n.createVNode(D,{class:[a.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:a.triggerRef,placement:a.placement,extPopoverCls:a.extPopoverCls,appendToBody:a.appendToBody,onClick:a.handleTransferClick},{default:function(){return["DateRangePanel"===a.panel?n.createVNode(Dt,{ref:"pickerPanelRef",shortcuts:a.shortcuts,modelValue:a.internalValue,type:a.type,selectionMode:a.selectionMode,startDate:a.startDate,disableDate:a.disableDate,focusedDate:a.focusedDate,onPick:a.onPick},null):n.createVNode(bt,{ref:"pickerPanelRef",shortcuts:a.shortcuts,multiple:a.multiple,clearable:a.clearable,shortcutClose:a.shortcutClose,selectionMode:a.selectionMode,modelValue:a.internalValue,startDate:a.startDate,disableDate:a.disableDate,focusedDate:a.focusedDate,onPick:a.onPick},null)]}}),[[n.vShow,a.opened]])]}})]}})]),[[n.resolveDirective("clickoutside"),this.handleClose]])}}),xt=t.withInstall(Mt);e.default=xt,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/dialog/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue"),require("../button"),require("../modal")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../button","../modal"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e.Button,e.Modal)}(this,(function(e,t,o,l,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(l),i=r(n);var d=o.defineComponent({name:"Dialog",components:{BkModal:i.default,BkButton:a.default},props:Object.assign(Object.assign({},n.propsMixin),{confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},title:{type:String,default:"Title"},headerAlign:{type:String,default:"left",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0)||(console.error("headerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}},footerAlign:{type:String,default:"right",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0)||(console.error("footerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}}}),emits:["closed","update:isShow"],methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,t=this,l={header:function(){var e,l,n;return o.createVNode(o.Fragment,null,[o.createVNode("div",{class:"bk-dialog-tool"},[o.createVNode("span",{class:"bk-dialog-close",onClick:t.handleClose},[o.createTextVNode("+")])]),o.createVNode("div",{class:"bk-dialog-header"},[o.createVNode("span",{class:"bk-dialog-title",style:"text-align: ".concat(t.headerAlign)},[null!==(n=null===(l=(e=t.$slots).header)||void 0===l?void 0:l.call(e))&&void 0!==n?n:t.title])])])},default:function(){var e,o,l;return null!==(l=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==l?l:"default"},footer:function(){var e,l,n;return o.createVNode("div",{class:"bk-dialog-footer",style:"text-align: ".concat(t.footerAlign)},[null!==(n=null===(l=(e=t.$slots).footer)||void 0===l?void 0:l.call(e))&&void 0!==n?n:o.createVNode(o.Fragment,null,[o.createVNode(a.default,{onClick:t.handleClose,theme:"primary"},{default:function(){return[t.confirmText]}}),o.createVNode(a.default,{onClick:t.handleClose},{default:function(){return[t.cancelText]}})])])}},n="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return o.createVNode(i.default,o.mergeProps(this.$props,{class:n}),"function"==typeof(e=l)||"[object Object]"===Object.prototype.toString.call(e)&&!o.isVNode(e)?l:{default:function(){return[l]}})}}),c=t.withInstall(d);e.default=c,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/directives/index.js
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("../styles/mixins/popper.less")):"function"==typeof define&&define.amd?define(["exports","../shared","../styles/mixins/popper.less"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared)}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,o,i,a,s,f,c,u,p,l,d,m,h,v,y,b=!1;function g(){if(!b){b=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),y=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){(r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(r=document.documentMode);var g=/(?:Trident\/(\d+.\d+))/.exec(e);f=g?parseFloat(g[1])+4:r,o=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,(a=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=o=i=s=a=NaN;if(n){if(n[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!x||parseFloat(x[1].replace("_","."))}else c=!1;u=!!n[2],p=!!n[3]}else c=u=p=!1}}var x,w={ie:function(){return g()||r},ieCompatibilityMode:function(){return g()||f>r},ie64:function(){return w.ie()&&d},firefox:function(){return g()||o},opera:function(){return g()||i},webkit:function(){return g()||a},safari:function(){return w.webkit()},chrome:function(){return g()||s},windows:function(){return g()||u},osx:function(){return g()||c},linux:function(){return g()||p},iphone:function(){return g()||m},mobile:function(){return g()||m||h||l||y},nativeApp:function(){return g()||v},android:function(){return g()||l},ipad:function(){return g()||h}},O=w,E=!("undefined"==typeof window||!window.document||!window.document.createElement),A={canUseDOM:E,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:E&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:E&&!!window.screen,isInWorker:!E};A.canUseDOM&&(x=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
2
|
-
/**
|
3
|
-
* Checks if an event is supported in the current execution environment.
|
4
|
-
*
|
5
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
6
|
-
* `reset`, `load`, `error`, and `select`.
|
7
|
-
*
|
8
|
-
* Borrows from Modernizr.
|
9
|
-
*
|
10
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
11
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
12
|
-
* @return {boolean} True if the event is supported.
|
13
|
-
* @internal
|
14
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
15
|
-
*/;var S=O,j=function(e,t){if(!A.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&x&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};function M(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}M.getEventType=function(){return S.firefox()?"DOMMouseScroll":j("wheel")?"wheel":"mousewheel"};var D=M,k="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,N={beforeMount:function(e,t){var n,r;console.error(e,t),n=e,r=t.value,(null==n?void 0:n.addEventListener)&&n.addEventListener(k?"DOMMouseScroll":"mousewheel",(function(e){var t=D(e);null==r||r.apply(this,[e,t])}))}};function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _,T=new Map;function I(e,t){var n,r=[];return Array.isArray(t.arg)?r=t.arg:(n=t.arg,"undefined"!=typeof Element&&n instanceof Element&&r.push(t.arg)),function(n,o){var i=t.instance.popperRef,a=n.target,s=null==o?void 0:o.target,f=!t||!t.instance,c=!a||!s,u=e.contains(a)||e.contains(s),p=e===a,l=r.length&&r.some((function(e){return null==e?void 0:e.contains(a)}))||r.length&&r.includes(s),d=i&&(i.contains(a)||i.contains(s));f||c||u||p||l||d||t.value(n,o)}}document.addEventListener("mousedown",(function(e){return _=e})),document.addEventListener("mouseup",(function(e){var t,n=L(T.values());try{for(n.s();!(t=n.n()).done;){var r,o=L(t.value);try{for(o.s();!(r=o.n()).done;){(0,r.value.documentHandler)(e,_)}}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}}));var q={beforeMount:function(e,t){T.has(e)||T.set(e,[]),T.get(e).push({documentHandler:I(e,t),bindingFn:t.value})},updated:function(e,t){T.has(e)||T.set(e,[]);var n=T.get(e),r=n.findIndex((function(e){return e.bindingFn===t.oldValue})),o={documentHandler:I(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted:function(e){T.delete(e)}},W={exports:{}},H={exports:{}},V={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(V),function(e){var t=V.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(H);var C={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(C);var F={exports:{}};!function(e){var t=V.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(F);var B={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(B),function(e){var t=H.exports,n=C.exports,r=F.exports,o=B.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(W);var R=n(W.exports),U={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(U);var X=n(U.exports),Y="top",z="bottom",G="right",Z="left",$="auto",J=[Y,z,G,Z],K="start",Q="end",ee="viewport",te="popper",ne=J.reduce((function(e,t){return e.concat([t+"-"+K,t+"-"+Q])}),[]),re=[].concat(J,[$]).reduce((function(e,t){return e.concat([t,t+"-"+K,t+"-"+Q])}),[]),oe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ie(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function se(e){return e instanceof ae(e).Element||e instanceof Element}function fe(e){return e instanceof ae(e).HTMLElement||e instanceof HTMLElement}function ce(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ae(e).ShadowRoot||e instanceof ShadowRoot)}var ue={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];fe(o)&&ie(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});fe(r)&&ie(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function pe(e){return e.split("-")[0]}var le=Math.max,de=Math.min,me=Math.round;function he(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(fe(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=me(n.width)/a||1),i>0&&(o=me(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ve(e){var t=he(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ye(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ce(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function be(e){return ae(e).getComputedStyle(e)}function ge(e){return["table","td","th"].indexOf(ie(e))>=0}function xe(e){return((se(e)?e.ownerDocument:e.document)||window.document).documentElement}function we(e){return"html"===ie(e)?e:e.assignedSlot||e.parentNode||(ce(e)?e.host:null)||xe(e)}function Oe(e){return fe(e)&&"fixed"!==be(e).position?e.offsetParent:null}function Ee(e){for(var t=ae(e),n=Oe(e);n&&ge(n)&&"static"===be(n).position;)n=Oe(n);return n&&("html"===ie(n)||"body"===ie(n)&&"static"===be(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&fe(e)&&"fixed"===be(e).position)return null;var n=we(e);for(ce(n)&&(n=n.host);fe(n)&&["html","body"].indexOf(ie(n))<0;){var r=be(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Ae(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Se(e,t,n){return le(e,de(t,n))}function je(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var De={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=pe(n.placement),f=Ae(s),c=[Z,G].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return je("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Me(e,J))}(o.padding,n),p=ve(i),l="y"===f?Y:Z,d="y"===f?z:G,m=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],h=a[f]-n.rects.reference[f],v=Ee(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,b=m/2-h/2,g=u[l],x=y-p[c]-u[d],w=y/2-p[c]/2+b,O=Se(g,w,x),E=f;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(fe(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),ye(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ke(e){return e.split("-")[1]}var Ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Le(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,l=a.x,d=void 0===l?0:l,m=a.y,h=void 0===m?0:m,v="function"==typeof u?u({x:d,y:h}):{x:d,y:h};d=v.x,h=v.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=Z,x=Y,w=window;if(c){var O=Ee(n),E="clientHeight",A="clientWidth";if(O===ae(n)&&"static"!==be(O=xe(n)).position&&"absolute"===s&&(E="scrollHeight",A="scrollWidth"),O=O,o===Y||(o===Z||o===G)&&i===Q)x=z,h-=(p&&O===w&&w.visualViewport?w.visualViewport.height:O[E])-r.height,h*=f?1:-1;if(o===Z||(o===Y||o===z)&&i===Q)g=G,d-=(p&&O===w&&w.visualViewport?w.visualViewport.width:O[A])-r.width,d*=f?1:-1}var S,j=Object.assign({position:s},c&&Ne),M=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:me(t*r)/r||0,y:me(n*r)/r||0}}({x:d,y:h}):{x:d,y:h};return d=M.x,h=M.y,f?Object.assign({},j,((S={})[x]=b?"0":"",S[g]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",S)):Object.assign({},j,((t={})[x]=b?h+"px":"",t[g]=y?d+"px":"",t.transform="",t))}var Pe={passive:!0};var _e={left:"right",right:"left",bottom:"top",top:"bottom"};function Te(e){return e.replace(/left|right|bottom|top/g,(function(e){return _e[e]}))}var Ie={start:"end",end:"start"};function qe(e){return e.replace(/start|end/g,(function(e){return Ie[e]}))}function We(e){var t=ae(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function He(e){return he(xe(e)).left+We(e).scrollLeft}function Ve(e){var t=be(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ce(e){return["html","body","#document"].indexOf(ie(e))>=0?e.ownerDocument.body:fe(e)&&Ve(e)?e:Ce(we(e))}function Fe(e,t){var n;void 0===t&&(t=[]);var r=Ce(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ae(r),a=o?[i].concat(i.visualViewport||[],Ve(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Fe(we(a)))}function Be(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Re(e,t){return t===ee?Be(function(e){var t=ae(e),n=xe(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+He(e),y:s}}(e)):se(t)?function(e){var t=he(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Be(function(e){var t,n=xe(e),r=We(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=le(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=le(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+He(e),f=-r.scrollTop;return"rtl"===be(o||n).direction&&(s+=le(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(xe(e)))}function Ue(e,t,n){var r="clippingParents"===t?function(e){var t=Fe(we(e)),n=["absolute","fixed"].indexOf(be(e).position)>=0&&fe(e)?Ee(e):e;return se(n)?t.filter((function(e){return se(e)&&ye(e,n)&&"body"!==ie(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Re(e,n);return t.top=le(r.top,t.top),t.right=de(r.right,t.right),t.bottom=de(r.bottom,t.bottom),t.left=le(r.left,t.left),t}),Re(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Xe(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?pe(o):null,a=o?ke(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case Y:t={x:s,y:n.y-r.height};break;case z:t={x:s,y:n.y+n.height};break;case G:t={x:n.x+n.width,y:f};break;case Z:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?Ae(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case K:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Q:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Ye(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,f=void 0===s?ee:s,c=n.elementContext,u=void 0===c?te:c,p=n.altBoundary,l=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,h=je("number"!=typeof m?m:Me(m,J)),v=u===te?"reference":te,y=e.rects.popper,b=e.elements[l?v:u],g=Ue(se(b)?b:b.contextElement||xe(e.elements.popper),a,f),x=he(e.elements.reference),w=Xe({reference:x,element:y,strategy:"absolute",placement:o}),O=Be(Object.assign({},y,w)),E=u===te?O:x,A={top:g.top-E.top+h.top,bottom:E.bottom-g.bottom+h.bottom,left:g.left-E.left+h.left,right:E.right-g.right+h.right},S=e.modifiersData.offset;if(u===te&&S){var j=S[o];Object.keys(A).forEach((function(e){var t=[G,z].indexOf(e)>=0?1:-1,n=[Y,z].indexOf(e)>=0?"y":"x";A[e]+=j[n]*t}))}return A}function ze(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?re:f,u=ke(r),p=u?s?ne:ne.filter((function(e){return ke(e)===u})):J,l=p.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=p,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=l.reduce((function(t,n){return t[n]=Ye(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[pe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var Ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,y=pe(v),b=f||(y===v||!m?[Te(v)]:function(e){if(pe(e)===$)return[];var t=Te(e);return[qe(e),t,qe(t)]}(v)),g=[v].concat(b).reduce((function(e,n){return e.concat(pe(n)===$?ze(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,E=!0,A=g[0],S=0;S<g.length;S++){var j=g[S],M=pe(j),D=ke(j)===K,k=[Y,z].indexOf(M)>=0,N=k?"width":"height",L=Ye(t,{placement:j,boundary:u,rootBoundary:p,altBoundary:l,padding:c}),P=k?D?G:Z:D?z:Y;x[N]>w[N]&&(P=Te(P));var _=Te(P),T=[];if(i&&T.push(L[M]<=0),s&&T.push(L[P]<=0,L[_]<=0),T.every((function(e){return e}))){A=j,E=!1;break}O.set(j,T)}if(E)for(var I=function(e){var t=g.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},q=m?3:1;q>0;q--){if("break"===I(q))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ze(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $e(e){return[Y,G,z,Z].some((function(t){return e[t]>=0}))}var Je={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=re.reduce((function(e,n){return e[n]=function(e,t,n){var r=pe(e),o=[Z,Y].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Z,G].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Ke={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,f=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,l=n.tether,d=void 0===l||l,m=n.tetherOffset,h=void 0===m?0:m,v=Ye(t,{boundary:f,rootBoundary:c,padding:p,altBoundary:u}),y=pe(t.placement),b=ke(t.placement),g=!b,x=Ae(y),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,j="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(O){if(i){var k,N="y"===x?Y:Z,L="y"===x?z:G,P="y"===x?"height":"width",_=O[x],T=_+v[N],I=_-v[L],q=d?-A[P]/2:0,W=b===K?E[P]:A[P],H=b===K?-A[P]:-E[P],V=t.elements.arrow,C=d&&V?ve(V):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[N],R=F[L],U=Se(0,E[P],C[P]),X=g?E[P]/2-q-U-B-j.mainAxis:W-U-B-j.mainAxis,$=g?-E[P]/2+q+U+R+j.mainAxis:H+U+R+j.mainAxis,J=t.elements.arrow&&Ee(t.elements.arrow),Q=J?"y"===x?J.clientTop||0:J.clientLeft||0:0,ee=null!=(k=null==M?void 0:M[x])?k:0,te=_+$-ee,ne=Se(d?de(T,_+X-ee-Q):T,_,d?le(I,te):I);O[x]=ne,D[x]=ne-_}if(s){var re,oe="x"===x?Y:Z,ie="x"===x?z:G,ae=O[w],se="y"===w?"height":"width",fe=ae+v[oe],ce=ae-v[ie],ue=-1!==[Y,Z].indexOf(y),me=null!=(re=null==M?void 0:M[w])?re:0,he=ue?fe:ae-E[se]-A[se]-me+j.altAxis,ye=ue?ae+E[se]+A[se]-me-j.altAxis:ce,be=d&&ue?function(e,t,n){var r=Se(e,t,n);return r>n?n:r}(he,ae,ye):Se(d?he:fe,ae,d?ye:ce);O[w]=be,D[w]=be-ae}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function Qe(e,t,n){void 0===n&&(n=!1);var r,o,i=fe(t),a=fe(t)&&function(e){var t=e.getBoundingClientRect(),n=me(t.width)/e.offsetWidth||1,r=me(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=xe(t),f=he(e,a),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==ie(t)||Ve(s))&&(c=(r=t)!==ae(r)&&fe(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:We(r)),fe(t)?((u=he(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=He(s))),{x:f.left+c.scrollLeft-u.x,y:f.top+c.scrollTop-u.y,width:f.width,height:f.height}}function et(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function tt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var nt='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',rt=["name","enabled","phase","fn","effect","requires","options"];var ot="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",it={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function st(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?it:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},it,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:se(e)?Fe(e):e.contextElement?Fe(e.contextElement):[],popper:Fe(t)};var a,c,l,d=function(e){var t=et(e);return oe.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){[].concat(Object.keys(t),rt).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(tt(nt,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(tt(nt,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":oe.indexOf(t.phase)<0&&console.error(tt(nt,t.name,'"phase"',"either "+oe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(tt(nt,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(tt(nt,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(tt(nt,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(tt(nt,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+rt.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(tt('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((a=[].concat(d,s.options.modifiers),c=function(e){return e.name},l=new Set,a.filter((function(e){var t=c(e);if(!l.has(t))return l.add(t),!0})))),pe(s.options.placement)===$)s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var m=be(t);[m.marginTop,m.marginRight,m.marginBottom,m.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};f.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(at(t,n)){s.rects={reference:Qe(t,Ee(n),"fixed"===s.options.strategy),popper:ve(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var i=s.orderedModifiers[o],a=i.fn,f=i.options,p=void 0===f?{}:f,l=i.name;"function"==typeof a&&(s=a({state:s,options:p,name:l,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(ot)}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),c=!0}};if(!at(e,t))return"production"!==process.env.NODE_ENV&&console.error(ot),u;function p(){f.forEach((function(e){return e()})),f=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var ft=st({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,f=ae(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Pe)})),s&&f.addEventListener("resize",n.update,Pe),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Pe)})),s&&f.removeEventListener("resize",n.update,Pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Xe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=be(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:pe(t.placement),variation:ke(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Le(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Le(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ue,Je,Ge,Ke,De,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ye(t,{elementContext:"reference"}),s=Ye(t,{altBoundary:!0}),f=Ze(a,r),c=Ze(s,o,i),u=$e(f),p=$e(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),ct={mounted:function(e,n){var r={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===X(n.value)?Object.assign(r,n.value):r.content=n.value;var o=r.disabled,i=r.arrow,a=r.theme;if(!o){var s=function(e,n,r){var o=t.bkZIndexManager.getPopperIndex(),i=document.createElement("div");if(i.className="bk-popper ".concat(r?"light":"dark"),i.innerText=e,i.style.zIndex=String(o),n){var a=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();i.appendChild(a)}return document.body.appendChild(i),i}(r.content,i,"light"===a);!function(e,t,n){var r=n.placement,o=n.distance,i=n.trigger,a=n.showOnInit,s=n.onShow,f=n.onHide,c=ft(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){var u=["mouseleave","blur"];["mouseenter","focus"].forEach((function(t){e.addEventListener(t,p)})),u.forEach((function(t){e.addEventListener(t,l)}))}else"click"===i&&document.body.addEventListener("click",(function(n){e.contains(n.target)&&!t.hasAttribute("data-show")?p():t.hasAttribute("data-show")&&l()}));a&&p();function p(){t.setAttribute("data-show",""),s(),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(R(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),c.update()}function l(){t.removeAttribute("data-show"),f(),c.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(R(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}}(e,s,r)}}};e.bkTooltips=ct,e.clickoutside=q,e.mousewheel=N,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/divider/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("../shared"),require("vue")):"function"==typeof define&&define.amd?define(["exports","../shared","vue"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue)}(this,(function(e,o,t){"use strict";var i={direction:o.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),align:o.PropTypes.commonType(["left","center","right"],"align").def("center"),color:o.PropTypes.string.def("#dde4eb"),width:o.PropTypes.number.def(1),type:o.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed")},d=t.defineComponent({name:"Divider",props:i,render:function(){var e,o=this;return this.$slots.default&&(e=t.createVNode("div",{class:["bk-divider-info","bk-divider-info-".concat(this.align)]},[this.$slots.default()])),t.createVNode("div",{class:["bk-divider","bk-divider-".concat(this.direction)],style:"vertical"===o.direction?{borderRight:"".concat(o.width,"px ").concat(o.type," ").concat(o.color)}:{borderBottom:"".concat(o.width,"px ").concat(o.type," ").concat(o.color)}},[e])}}),r=o.withInstall(d);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/dropdown/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue")):"function"==typeof define&&define.amd?define(["exports","../shared","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue)}(this,(function(e,t,n){"use strict";var o=n.defineComponent({name:"BkDropdown",props:{isShow:t.PropTypes.bool.def(!1),placement:t.PropTypes.commonType(["auto","auto-start","auto-end","top","right","bottom","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],"placement").def("bottom"),trigger:t.PropTypes.commonType(["hover","click","manual"],"trigger").def("hover"),disabled:t.PropTypes.bool.def(!1),extCls:t.PropTypes.string},emits:["showChange"],setup:function(e,o){var r=o.emit,s=Object.create(null),i=n.ref(null),a=n.ref(null);n.onMounted((function(){d()})),n.onBeforeUnmount((function(){l()})),n.watch((function(){return e.isShow}),(function(t){n.nextTick((function(){"manual"===e.trigger&&s&&!e.disabled&&(t?s.show():s.hide())}))})),n.watch((function(){return e.disabled}),(function(e){return u(e)}));var d=function(){e.disabled||(s=new t.BKPopover(i.value,a.value,{placement:e.placement,trigger:e.trigger}),"manual"===e.trigger&&e.isShow&&s.show())},l=function(){if(s){var t=s;t.isShow&&t.hide(),t.destroy(),s=null,"manual"===e.trigger&&r("showChange",!1)}},u=function(t){var n=s;"manual"===e.trigger&&!t&&r("showChange",!1),n.updateDisabled(t)};return{reference:i,refContent:a}},render:function(){var e,o,r,s,i=t.classes({"bk-dropdown":!0},this.$props.extCls);return n.createVNode("div",{class:i},[n.createVNode("div",{ref:"reference",class:"bk-dropdown-reference"},[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e)]),n.createVNode("div",{ref:"refContent",class:"bk-dropdown-content"},[null===(s=(r=this.$slots).content)||void 0===s?void 0:s.call(r)])])}}),r=n.defineComponent({name:"BkDropdownItem",props:{extCls:t.PropTypes.string},emits:["click"],setup:function(e,t){var o=t.emit;return{wrapperCLasses:n.computed((function(){return["bk-dropdown-item",e.extCls]})),handleClick:function(e){o("click",e)}}},render:function(){var e,t;return n.createVNode("li",{class:this.wrapperCLasses,onClick:this.handleClick},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}}),s=n.defineComponent({name:"BkDropdownMenu",props:{extCls:t.PropTypes.string},setup:function(e){return{wrapperCLasses:n.computed((function(){return["bk-dropdown-menu",e.extCls]}))}},render:function(){var e,t;return n.createVNode("ul",{class:this.wrapperCLasses},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}}),i=t.withInstallProps(o,{DropdownMenu:s,DropdownItem:r});e.BkDropdown=i,e.BkDropdownItem=r,e.BkDropdownMenu=s,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}));
|