bromcom-ui 2.8.1-rc.6 → 2.8.1-rc.8
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/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-17fce2b7.entry.js → p-036e44bb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-183f5997.entry.js → p-082857fd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-62db73c1.entry.js → p-0b9f7527.entry.js} +1 -1
- package/dist/bromcom-ui/{p-029ff228.entry.js → p-183fd65c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5cf1a724.entry.js → p-1d942570.entry.js} +2 -2
- package/dist/bromcom-ui/{p-c202f8fa.entry.js → p-1f77d25a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9fe7bdd5.entry.js → p-202721fe.entry.js} +1 -1
- package/dist/bromcom-ui/{p-912afd99.entry.js → p-25fff5b8.entry.js} +1 -1
- package/dist/bromcom-ui/p-275070fd.js +5 -0
- package/dist/bromcom-ui/{p-36150ba5.entry.js → p-305964a3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e814a4e7.entry.js → p-3478c7cd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ff839593.entry.js → p-3597fec4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-954d2b72.entry.js → p-366e081b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f4b791c6.entry.js → p-36cd0820.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bd5b39f6.entry.js → p-3ad13ae4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cbb29318.entry.js → p-3cec75ba.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ced3725c.entry.js → p-413f88a7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2e496083.entry.js → p-4e1632d2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1225fa3a.entry.js → p-52597308.entry.js} +1 -1
- package/dist/bromcom-ui/{p-03a6d655.entry.js → p-5607e7f9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9afdbf06.entry.js → p-64955418.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8a1a14eb.entry.js → p-64c9f4fa.entry.js} +1 -1
- package/dist/bromcom-ui/p-67b4ea5b.js +5 -0
- package/dist/bromcom-ui/{p-7047f1f8.js → p-6dfffdab.js} +1 -1
- package/dist/bromcom-ui/{p-2222fe4d.entry.js → p-710f545e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ddc5eb6d.entry.js → p-7c658944.entry.js} +1 -1
- package/dist/bromcom-ui/{p-bf73c4a0.entry.js → p-7d6b77a8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2466f689.js → p-84ae9894.js} +1 -1
- package/dist/bromcom-ui/{p-8f2f39d9.js → p-94e72f51.js} +1 -1
- package/dist/bromcom-ui/{p-bd3fe613.entry.js → p-96a89000.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a56bd66e.entry.js → p-9ab731b8.entry.js} +1 -1
- package/dist/bromcom-ui/p-9f3893a5.entry.js +5 -0
- package/dist/bromcom-ui/{p-7162bb72.entry.js → p-9fa58866.entry.js} +1 -1
- package/dist/bromcom-ui/{p-19914e83.entry.js → p-a0d7a266.entry.js} +1 -1
- package/dist/bromcom-ui/p-a575e4f0.js +5 -0
- package/dist/bromcom-ui/{p-40de862f.entry.js → p-a7d6e814.entry.js} +1 -1
- package/dist/bromcom-ui/{p-44bf5a4e.entry.js → p-ab9ce666.entry.js} +1 -1
- package/dist/bromcom-ui/{p-025f4007.entry.js → p-ac58b4de.entry.js} +1 -1
- package/dist/bromcom-ui/{p-40dfe399.js → p-b1aa3243.js} +1 -1
- package/dist/bromcom-ui/{p-056b2ba2.entry.js → p-bafd4b8d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b3973ea2.entry.js → p-bc2e4265.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1173f223.entry.js → p-bc3de030.entry.js} +1 -1
- package/dist/bromcom-ui/{p-29988de4.entry.js → p-bd69dcfb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-72e668a3.entry.js → p-c196a929.entry.js} +1 -1
- package/dist/bromcom-ui/{p-e5236fa3.entry.js → p-d9058428.entry.js} +1 -1
- package/dist/bromcom-ui/{p-519cad1c.entry.js → p-dd13436d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c62a2304.entry.js → p-e09c0562.entry.js} +1 -1
- package/dist/bromcom-ui/{p-44b33c12.entry.js → p-e15e0a6e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4b0b321b.entry.js → p-e2cd4645.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a2305202.entry.js → p-e6257831.entry.js} +1 -1
- package/dist/bromcom-ui/p-e841a487.entry.js +5 -0
- package/dist/bromcom-ui/{p-60143ae9.entry.js → p-e9bd0969.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61ea7f76.entry.js → p-eb970381.entry.js} +1 -1
- package/dist/bromcom-ui/{p-23e581c9.entry.js → p-ef999b8f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c085373c.entry.js → p-f1b7a4d9.entry.js} +1 -1
- package/dist/bromcom-ui/{p-933fb66c.entry.js → p-f430c2df.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5e6b8d68.entry.js → p-f5cd37e0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-869cd6ac.entry.js → p-faaff3b9.entry.js} +1 -1
- package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
- package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-button_7.cjs.entry.js +4 -4
- package/dist/cjs/bcm-card.cjs.entry.js +1 -1
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +1 -1
- package/dist/cjs/bcm-chip.cjs.entry.js +1 -1
- package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
- package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
- package/dist/cjs/bcm-colorful_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-default.cjs.entry.js +1 -1
- package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input.cjs.entry.js +5 -5
- package/dist/cjs/bcm-item.cjs.entry.js +1 -1
- package/dist/cjs/bcm-items.cjs.entry.js +1 -1
- package/dist/cjs/bcm-list.cjs.entry.js +5 -5
- package/dist/cjs/bcm-menu.cjs.entry.js +4 -4
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal-2.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popover.cjs.entry.js +3 -3
- package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
- package/dist/cjs/bcm-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-radio.cjs.entry.js +3 -3
- package/dist/cjs/bcm-range.cjs.entry.js +1 -1
- package/dist/cjs/bcm-rc-overflow_2.cjs.entry.js +5 -5
- package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/bcm-step.cjs.entry.js +2 -2
- package/dist/cjs/bcm-stepper.cjs.entry.js +4 -4
- package/dist/cjs/bcm-switch.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
- package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-toast.cjs.entry.js +1 -1
- package/dist/cjs/{generate-2f772b8c.js → generate-61ee151f.js} +1 -1
- package/dist/cjs/{input-template-eb189d30.js → input-template-e6649490.js} +1 -1
- package/dist/cjs/{json-parse-decarator-b7915a46.js → json-parse-decarator-8cc180e7.js} +1 -1
- package/dist/cjs/{number-helper-6497c99e.js → number-helper-4464fee7.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
- package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
- package/dist/cjs/{stepper-states-92effe49.js → stepper-states-abd1909f.js} +1 -1
- package/dist/cjs/{tooltip-helper-ca75dae7.js → tooltip-helper-8f10ada8.js} +3 -3
- package/dist/cjs/{validators-c92cc70c.js → validators-a47182ee.js} +1 -1
- package/dist/collection/components/molecules/input/input.css +0 -4
- package/dist/collection/components/molecules/search/search.css +0 -4
- package/dist/collection/components/molecules/textarea/textarea.css +0 -4
- package/dist/collection/components/organism/list/list.js +1 -1
- package/dist/collection/components/third-parts/colorful/colorful.css +0 -4
- package/dist/components/bcm-list.js +1 -1
- package/dist/components/bcm-textarea.js +1 -1
- package/dist/components/colorful.js +1 -1
- package/dist/components/generate.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/search.js +1 -1
- package/dist/esm/bcm-accordion.entry.js +1 -1
- package/dist/esm/bcm-alert.entry.js +1 -1
- package/dist/esm/bcm-attendance.entry.js +1 -1
- package/dist/esm/bcm-avatar_2.entry.js +3 -3
- package/dist/esm/bcm-breadcrumb.entry.js +1 -1
- package/dist/esm/bcm-button-group.entry.js +1 -1
- package/dist/esm/bcm-button_7.entry.js +4 -4
- package/dist/esm/bcm-card.entry.js +1 -1
- package/dist/esm/bcm-checkbox-lite_9.entry.js +1 -1
- package/dist/esm/bcm-chip.entry.js +1 -1
- package/dist/esm/bcm-collapse.entry.js +1 -1
- package/dist/esm/bcm-color-input.entry.js +3 -3
- package/dist/esm/bcm-colorful_2.entry.js +4 -4
- package/dist/esm/bcm-date-picker.entry.js +1 -1
- package/dist/esm/bcm-datetime-picker.entry.js +1 -1
- package/dist/esm/bcm-default.entry.js +1 -1
- package/dist/esm/bcm-drawer.entry.js +3 -3
- package/dist/esm/bcm-dropdown.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +1 -1
- package/dist/esm/bcm-form-2.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +1 -1
- package/dist/esm/bcm-input.entry.js +5 -5
- package/dist/esm/bcm-item.entry.js +1 -1
- package/dist/esm/bcm-items.entry.js +1 -1
- package/dist/esm/bcm-list.entry.js +5 -5
- package/dist/esm/bcm-menu.entry.js +4 -4
- package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
- package/dist/esm/bcm-modal-2-header.entry.js +3 -3
- package/dist/esm/bcm-modal-2.entry.js +3 -3
- package/dist/esm/bcm-modal.entry.js +1 -1
- package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
- package/dist/esm/bcm-popconfirm.entry.js +1 -1
- package/dist/esm/bcm-popover.entry.js +3 -3
- package/dist/esm/bcm-progress.entry.js +1 -1
- package/dist/esm/bcm-radio-group.entry.js +3 -3
- package/dist/esm/bcm-radio.entry.js +3 -3
- package/dist/esm/bcm-range.entry.js +1 -1
- package/dist/esm/bcm-rc-overflow_2.entry.js +5 -5
- package/dist/esm/bcm-skeleton.entry.js +1 -1
- package/dist/esm/bcm-step.entry.js +2 -2
- package/dist/esm/bcm-stepper.entry.js +4 -4
- package/dist/esm/bcm-switch.entry.js +1 -1
- package/dist/esm/bcm-tab-group.entry.js +3 -3
- package/dist/esm/bcm-tab-item-header.entry.js +3 -3
- package/dist/esm/bcm-tab-item.entry.js +3 -3
- package/dist/esm/bcm-tag.entry.js +2 -2
- package/dist/esm/bcm-textarea.entry.js +3 -3
- package/dist/esm/bcm-time-picker.entry.js +1 -1
- package/dist/esm/bcm-toast.entry.js +1 -1
- package/dist/esm/{generate-4adaaf05.js → generate-db9c8448.js} +1 -1
- package/dist/esm/{input-template-798b5684.js → input-template-07d9878b.js} +1 -1
- package/dist/esm/{json-parse-decarator-20b52636.js → json-parse-decarator-656d0c85.js} +1 -1
- package/dist/esm/{number-helper-d1650a56.js → number-helper-e49ced06.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +2 -2
- package/dist/esm/old-bcm-popover.entry.js +1 -1
- package/dist/esm/{stepper-states-d2276d34.js → stepper-states-01c80b02.js} +1 -1
- package/dist/esm/{tooltip-helper-5fdae0e3.js → tooltip-helper-a139b7be.js} +3 -3
- package/dist/esm/{validators-7d87bb83.js → validators-b8934173.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-10ac60f3.entry.js +0 -5
- package/dist/bromcom-ui/p-83130cb1.js +0 -5
- package/dist/bromcom-ui/p-a45a0d2a.js +0 -5
- package/dist/bromcom-ui/p-b9c5e320.js +0 -5
- package/dist/bromcom-ui/p-cf8b8c22.entry.js +0 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as t,c as e,g as n,h as i,H as r}from"./p-da1055cb.js";import"./p-843905c8.js";import"./p-626a65e9.js";import{G as o,s as a}from"./p-
|
|
5
|
+
import{r as t,c as e,g as n,h as i,H as r}from"./p-da1055cb.js";import"./p-843905c8.js";import"./p-626a65e9.js";import{G as o,s as a}from"./p-b1aa3243.js";import"./p-a575e4f0.js";import{S as c}from"./p-8d0ca8c2.js";import"./p-275070fd.js";import"./p-7e44e6b5.js";import{B as s}from"./p-a429e85b.js";import{r as u,a as l}from"./p-1eabd5dc.js";import{c as f}from"./p-d65a1e21.js";import{c as p}from"./p-6f56f8ca.js";import{I as m}from"./p-6dfffdab.js";import{d as h}from"./p-8c018ae0.js";import{c as d}from"./p-a60a2dd0.js";import"./p-436364c8.js";import"./p-4aa0e6b1.js";import"./p-3fac58f7.js";function b(){return b=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},b.apply(this,arguments)}function x(t){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x(t)}function g(t,e,n){return(e=function(t){var e=function(t){if("object"!==x(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===x(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){u=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(t,e):void 0}}(t,e)||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.")}()}function z(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function j(){return j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},j.apply(this,arguments)}
|
|
6
6
|
/** @license React v16.13.1
|
|
7
7
|
* react-is.production.min.js
|
|
8
8
|
*
|
|
@@ -10,4 +10,4 @@ import{r as t,c as e,g as n,h as i,H as r}from"./p-da1055cb.js";import"./p-84390
|
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var O="function"==typeof Symbol&&Symbol.for,S=O?Symbol.for("react.element"):60103,k=O?Symbol.for("react.portal"):60106,M=O?Symbol.for("react.fragment"):60107,C=O?Symbol.for("react.strict_mode"):60108,I=O?Symbol.for("react.profiler"):60114,E=O?Symbol.for("react.provider"):60109,R=O?Symbol.for("react.context"):60110,N=O?Symbol.for("react.async_mode"):60111,T=O?Symbol.for("react.concurrent_mode"):60111,D=O?Symbol.for("react.forward_ref"):60112,A=O?Symbol.for("react.suspense"):60113,F=O?Symbol.for("react.suspense_list"):60120,P=O?Symbol.for("react.memo"):60115,B=O?Symbol.for("react.lazy"):60116,W=O?Symbol.for("react.block"):60121,q=O?Symbol.for("react.fundamental"):60117,V=O?Symbol.for("react.responder"):60118,H=O?Symbol.for("react.scope"):60119;function L(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case S:switch(t=t.type){case N:case T:case M:case I:case C:case A:return t;default:switch(t=t&&t.$$typeof){case R:case D:case B:case P:case E:return t;default:return e}}case k:return e}}}function G(t){return L(t)===T}var K={AsyncMode:N,ConcurrentMode:T,ContextConsumer:R,ContextProvider:E,Element:S,ForwardRef:D,Fragment:M,Lazy:B,Memo:P,Portal:k,Profiler:I,StrictMode:C,Suspense:A,isAsyncMode:function(t){return G(t)||L(t)===N},isConcurrentMode:G,isContextConsumer:function(t){return L(t)===R},isContextProvider:function(t){return L(t)===E},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===S},isForwardRef:function(t){return L(t)===D},isFragment:function(t){return L(t)===M},isLazy:function(t){return L(t)===B},isMemo:function(t){return L(t)===P},isPortal:function(t){return L(t)===k},isProfiler:function(t){return L(t)===I},isStrictMode:function(t){return L(t)===C},isSuspense:function(t){return L(t)===A},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===M||t===T||t===I||t===C||t===A||t===F||"object"==typeof t&&null!==t&&(t.$$typeof===B||t.$$typeof===P||t.$$typeof===E||t.$$typeof===R||t.$$typeof===D||t.$$typeof===q||t.$$typeof===V||t.$$typeof===H||t.$$typeof===W)},typeOf:L};p((function(){}));var $=p((function(t){t.exports=K}));function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return u.Children.forEach(t,(function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?n=n.concat(U(t)):$.isFragment(t)&&t.props?n=n.concat(U(t.props.children,e)):n.push(t))})),n}function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function J(t){var e=function(t){if("object"!==Y(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Y(e)?e:String(e)}function Q(t,e,n){return(e=J(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){Q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(t)}function et(t,e){"function"==typeof t?t(e):"object"===tt(t)&&t&&"current"in t&&(t.current=e)}function nt(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof u.Component?l.findDOMNode(t):null}var it=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),rt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ot="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),at="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ot):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},ct=["top","right","bottom","left","width","height","size","weight"],st="undefined"!=typeof MutationObserver,ut=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t){var e=!1,n=!1,i=0;function r(){e&&(e=!1,t()),n&&a()}function o(){at(r)}function a(){var t=Date.now();if(e){if(t-i<2)return;n=!0}else e=!0,n=!1,setTimeout(o,20);i=t}return a}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){rt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),st?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){rt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;ct.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),lt=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},ft=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ot},pt=xt(0,0,0,0);function mt(t){return parseFloat(t)||0}function ht(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+mt(t["border-"+n+"-width"])}),0)}var dt="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ft(t).SVGGraphicsElement}:function(t){return t instanceof ft(t).SVGElement&&"function"==typeof t.getBBox};function bt(t){return rt?dt(t)?function(t){var e=t.getBBox();return xt(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return pt;var i=ft(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n];e[r]=mt(t["padding-"+r])}return e}(i),o=r.left+r.right,a=r.top+r.bottom,c=mt(i.width),s=mt(i.height);if("border-box"===i.boxSizing&&(Math.round(c+o)!==e&&(c-=ht(i,"left","right")+o),Math.round(s+a)!==n&&(s-=ht(i,"top","bottom")+a)),!function(t){return t===ft(t).document.documentElement}(t)){var u=Math.round(c+o)-e,l=Math.round(s+a)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(l)&&(s-=l)}return xt(r.left,r.top,c,s)}(t):pt}function xt(t,e,n,i){return{x:t,y:e,width:n,height:i}}var gt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xt(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=bt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),vt=function(t,e){var n=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return lt(a,{x:e,y:n,width:i,height:r,top:n,right:e+i,bottom:r+n,left:e}),a}(e);lt(this,{target:t,contentRect:n})},yt=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new it,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ft(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new gt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ft(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new vt(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),wt="undefined"!=typeof WeakMap?new WeakMap:new it,_t=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ut.getInstance(),i=new yt(e,n,this);wt.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){_t.prototype[t]=function(){var e;return(e=wt.get(this))[t].apply(e,arguments)}}));var zt=void 0!==ot.ResizeObserver?ot.ResizeObserver:_t,jt=new Map,Ot=new zt((function(t){t.forEach((function(t){var e,n=t.target;null===(e=jt.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));function St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,J(i.key),i)}}function Mt(t,e){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mt(t,e)}function Ct(t){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ct(t)}function It(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var Et=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mt(t,e)}(o,u.Component);var t,e,n,i,r=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ct(n);if(i){var r=Ct(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return It(this,t)});function o(){return St(this,o),r.apply(this,arguments)}return t=o,(e=[{key:"render",value:function(){return this.props.children}}])&&kt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(),Rt=u.createContext(null);function Nt(t,e){var n,i,r,o,a=t.children,c=t.disabled,s=u.useRef(null),l=u.useRef(null),f=u.useContext(Rt),p="function"==typeof a,m=p?a(s):a,h=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!p&&u.isValidElement(m)&&!!("function"!=typeof(o=$.isMemo(n=m)?n.type.type:n.type)||null!==(i=o.prototype)&&void 0!==i&&i.render)&&!!("function"!=typeof n||null!==(r=n.prototype)&&void 0!==r&&r.render),b=d?m.ref:null,x=u.useMemo((function(){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter((function(t){return t}));return i.length<=1?i[0]:function(t){e.forEach((function(e){et(e,t)}))}}(b,s)}),[b,s]),g=function(){return nt(s.current)||nt(l.current)};u.useImperativeHandle(e,(function(){return g()}));var v=u.useRef(t);v.current=t;var y=u.useCallback((function(t){var e=v.current,n=e.onResize,i=e.data,r=t.getBoundingClientRect(),o=r.width,a=r.height,c=t.offsetWidth,s=t.offsetHeight,u=Math.floor(o),l=Math.floor(a);if(h.current.width!==u||h.current.height!==l||h.current.offsetWidth!==c||h.current.offsetHeight!==s){var p={width:u,height:l,offsetWidth:c,offsetHeight:s};h.current=p;var m=c===Math.round(o)?o:c,d=s===Math.round(a)?a:s,b=Z(Z({},p),{},{offsetWidth:m,offsetHeight:d});null==f||f(b,t,i),n&&Promise.resolve().then((function(){n(b,t)}))}}),[]);return u.useEffect((function(){var t,e,n=g();return n&&!c&&(e=y,jt.has(t=n)||(jt.set(t,new Set),Ot.observe(t)),jt.get(t).add(e)),function(){return function(t,e){jt.has(t)&&(jt.get(t).delete(e),jt.get(t).size||(Ot.unobserve(t),jt.delete(t)))}(n,y)}}),[s.current,c]),u.createElement(Et,{ref:l},d?u.cloneElement(m,{ref:x}):m)}var Tt=u.forwardRef(Nt);function Dt(t,e){var n=t.children;return("function"==typeof n?[n]:U(n)).map((function(n,i){var r=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return u.createElement(Tt,j({},t,{key:r,ref:0===i?e:void 0}),n)}))}var At=u.forwardRef(Dt);At.Collection=function(t){var e=t.children,n=t.onBatchResize,i=u.useRef(0),r=u.useRef([]),o=u.useContext(Rt),a=u.useCallback((function(t,e,a){i.current+=1;var c=i.current;r.current.push({size:t,element:e,data:a}),Promise.resolve().then((function(){c===i.current&&(null==n||n(r.current),r.current=[])})),null==o||o(t,e,a)}),[n,o]);return u.createElement(Rt.Provider,{value:a},e)};var Ft="undefined"!=typeof window&&window.document&&window.document.createElement?u.useLayoutEffect:u.useEffect,Pt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Bt=void 0;function Wt(t,e){var n=t.prefixCls,i=t.invalidate,r=t.item,o=t.renderItem,a=t.responsive,c=t.responsiveDisabled,s=t.registerSize,l=t.itemKey,p=t.className,m=t.style,h=t.children,d=t.display,x=t.order,g=t.component,v=void 0===g?"div":g,w=z(t,Pt),_=a&&!d;function j(t){s(l,t)}u.useEffect((function(){return function(){j(null)}}),[]);var O,S=o&&r!==Bt?o(r):h;i||(O={opacity:_?0:1,height:_?0:Bt,overflowY:_?"hidden":Bt,order:a?x:Bt,pointerEvents:_?"none":Bt,position:_?"absolute":Bt});var k={};_&&(k["aria-hidden"]=!0);var M=u.createElement(v,b({className:f(!i&&n,p),style:y(y({},O),m)},k,w,{ref:e}),S);return a&&(M=u.createElement(At,{onResize:function(t){j(t.offsetWidth)},disabled:c},M)),M}var qt=u.forwardRef(Wt);qt.displayName="Item";var Vt=function(t){return+setTimeout(t,16)},Ht=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Vt=function(t){return window.requestAnimationFrame(t)},Ht=function(t){return window.cancelAnimationFrame(t)});var Lt=0,Gt=new Map;function Kt(t){Gt.delete(t)}var $t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Lt+=1;function i(e){if(0===e)Kt(n),t();else{var r=Vt((function(){i(e-1)}));Gt.set(n,r)}}return i(e),n};function Ut(t,e){var n=_(u.useState(e),2),i=n[0],r=n[1],o=function(){var e=u.useRef();e.current=function(e){t((function(){r(e)}))};var n=u.useCallback((function(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(i))}),[]);return n}();return[i,o]}$t.cancel=function(t){var e=Gt.get(t);return Kt(e),Ht(e)};var Yt=u.createContext(null),Jt=["component"],Qt=["className"],Xt=["className"],Zt=function(t,e){var n=u.useContext(Yt);if(!n){var i=t.component,r=void 0===i?"div":i,o=z(t,Jt);return u.createElement(r,b({},o,{ref:e}))}var a=n.className,c=z(n,Qt),s=t.className,l=z(t,Xt);return u.createElement(Yt.Provider,{value:null},u.createElement(qt,b({ref:e,className:f(a,s)},c,l)))},te=u.forwardRef(Zt);te.displayName="RawItem";var ee=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ne="responsive",ie="invalidate";function re(t){return"+ ".concat(t.length," ...")}function oe(t,e){var n,i,r,o,a=t.prefixCls,c=void 0===a?"rc-overflow":a,s=t.data,p=void 0===s?[]:s,m=t.renderItem,h=t.renderRawItem,d=t.itemKey,x=t.itemWidth,g=void 0===x?10:x,v=t.ssr,w=t.style,j=t.className,O=t.maxCount,S=t.renderRest,k=t.renderRawRest,M=t.suffix,C=t.component,I=void 0===C?"div":C,E=t.itemComponent,R=t.onVisibleChange,N=z(t,ee),T="full"===v,D=(o=u.useRef(null),function(t){o.current||(o.current=[],function(t){if("undefined"==typeof MessageChannel)$t(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}((function(){l.unstable_batchedUpdates((function(){o.current.forEach((function(t){t()})),o.current=null}))}))),o.current.push(t)}),A=_(Ut(D,null),2),F=A[0],P=A[1],B=F||0,W=_(Ut(D,new Map),2),q=W[0],V=W[1],H=_(Ut(D,0),2),L=H[0],G=H[1],K=_(Ut(D,0),2),$=K[0],U=K[1],Y=_(Ut(D,0),2),J=Y[0],Q=Y[1],X=_(u.useState(null),2),Z=X[0],tt=X[1],et=_(u.useState(null),2),nt=et[0],it=et[1],rt=u.useMemo((function(){return null===nt&&T?Number.MAX_SAFE_INTEGER:nt||0}),[nt,F]),ot=_(u.useState(!1),2),at=ot[0],ct=ot[1],st="".concat(c,"-item"),ut=Math.max(L,$),lt=O===ne,ft=p.length&<,pt=O===ie,mt=ft||"number"==typeof O&&p.length>O,ht=u.useMemo((function(){var t=p;return ft?t=null===F&&T?p:p.slice(0,Math.min(p.length,B/g)):"number"==typeof O&&(t=p.slice(0,O)),t}),[p,g,F,O,ft]),dt=u.useMemo((function(){return p.slice(ft?rt+1:ht.length)}),[p,ht,ft,rt]),bt=u.useCallback((function(t,e){var n;return"function"==typeof d?d(t):null!==(n=d&&(null==t?void 0:t[d]))&&void 0!==n?n:e}),[d]),xt=u.useCallback(m||function(t){return t},[m]);function gt(t,e,n){(nt!==t||void 0!==e&&e!==Z)&&(it(t),n||(ct(t<p.length-1),null==R||R(t)),void 0!==e&&tt(e))}function vt(t,e){V((function(n){var i=new Map(n);return null===e?i.delete(t):i.set(t,e),i}))}function yt(t){return q.get(bt(ht[t],t))}n=function(){if(B&&"number"==typeof ut&&ht){var t=J,e=ht.length,n=e-1;if(!e)return void gt(0,null);for(var i=0;i<e;i+=1){var r=yt(i);if(T&&(r=r||0),void 0===r){gt(i-1,void 0,!0);break}if(t+=r,0===n&&t<=B||i===n-1&&t+yt(n)<=B){gt(n,null);break}if(t+ut>B){gt(i-1,t-r-J+$);break}}M&&yt(0)+J>B&&tt(null)}},i=[B,q,$,J,bt,ht],r=u.useRef(!0),Ft((function(){return n()}),i),Ft((function(){return r.current=!1,function(){r.current=!0}}),[]);var wt=at&&!!dt.length,_t={};null!==Z&&ft&&(_t={position:"absolute",left:Z,top:0});var zt,jt={prefixCls:st,responsive:ft,component:E,invalidate:pt},Ot=h?function(t,e){var n=bt(t,e);return u.createElement(Yt.Provider,{key:n,value:y(y({},jt),{},{order:e,item:t,itemKey:n,registerSize:vt,display:e<=rt})},h(t,e))}:function(t,e){var n=bt(t,e);return u.createElement(qt,b({},jt,{order:e,key:n,item:t,renderItem:xt,itemKey:n,registerSize:vt,display:e<=rt}))},St={order:wt?rt:Number.MAX_SAFE_INTEGER,className:"".concat(st,"-rest"),registerSize:function(t,e){U(e),G($)},display:wt};if(k)k&&(zt=u.createElement(Yt.Provider,{value:y(y({},jt),St)},k(dt)));else{var kt=S||re;zt=u.createElement(qt,b({},jt,St),"function"==typeof kt?kt(dt):kt)}var Mt=u.createElement(I,b({className:f(!pt&&c,j),style:w,ref:e},N),ht.map(Ot),mt?zt:null,M&&u.createElement(qt,b({},jt,{responsive:lt,responsiveDisabled:!ft,order:rt,className:"".concat(st,"-suffix"),registerSize:function(t,e){Q(e)},display:!0,style:_t}),M));return lt&&(Mt=u.createElement(At,{onResize:function(t,e){P(e.clientWidth)},disabled:!ft},Mt)),Mt}var ae=u.forwardRef(oe);ae.displayName="Overflow",ae.Item=te,ae.RESPONSIVE=ne,ae.INVALIDATE=ie;const ce=class{constructor(n){t(this,n),this.selectOtherTag=e(this,"bcm-select-other-tag",7),this.selectTag=e(this,"bcm-select-tag",7),this.deleteTag=e(this,"bcm-delete-tag",7),this.renderItem=t=>u.createElement("bcm-tooltip",{placement:"bottom",message:t.text,trigger:"hover"},u.createElement("div",{id:t.value+"-tag",className:"bcm-tag",onClick:({target:e})=>this.onClickControl(e,t,!1)},u.createElement("span",{className:"bcm-tag__content dismissable"},u.createElement("div",{className:"value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap"},t.text),u.createElement("span",{className:"right close-button"},u.createElement("bcm-icon",{icon:"fa fa-times"}))))),this.renderRest=t=>{const e=(null==t?void 0:t.sort(((t,e)=>+t.ct-+e.ct)).slice(0,15).map((t=>c.textLimitter(t.text,40,!0))).toString().split(",").join("\r\n"))+(t.length>15?"\r\n...":"");return u.createElement("bcm-tooltip",{placement:"bottom",message:e,trigger:"hover"},u.createElement("div",{className:"bcm-tag bcm-tag--other",onClick:({target:e})=>this.onClickControl(e,t,!0)},u.createElement("span",{className:"bcm-tag__content dismissable "+(this.checked?"checkable checked":"")},u.createElement("span",{className:"value"},`+${null==t?void 0:t.length}`),u.createElement("span",{className:"right close-button"},u.createElement("bcm-icon",{icon:"fa fa-times"})))))},this._id=o.UID(),this.maxCount=1,this.data=[],this.checked=!1}isClickDismiss(t){return"BCM-ICON"===t["s-hn"]}onClickControl(t,e,n=!1){const i=this.isClickDismiss(t);i&&this.deleteTag.emit({id:Array.isArray(e)?e.map((t=>t.value)):e.value})&&this.checked&&(this.checked=!1),!n&&this.selectTag.emit({id:e.value})&&this.checked&&(this.checked=!1),n&&!i&&(this.checked=!this.checked,this.selectOtherTag.emit({id:null==e?void 0:e.map((t=>t.value)),checked:this.checked}))}componentWillRender(){const{data:t,renderItem:e,renderRest:n,maxCount:i}=this;this.overflowInstance=u.createElement(ae,{data:t,renderItem:e,renderRest:n,maxCount:i}),l.render(this.overflowInstance,this.el)}get el(){return n(this)}};ce.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.rc-overflow{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%}.rc-overflow-item{transition:all 0.3s ease;padding:0 2px;display:flex;align-items:center;justify-content:center}';const{state:se}=d({value:new Map}),ue=(t,e)=>{let n=[];return t&&(n=t.map((t=>Object.assign(Object.assign(Object.assign({},t),{parentId:a((()=>e),null)}),t.items&&t.items.length>0&&{items:a((()=>ue(t.items,t.id)),[])})))),n},le=t=>a((()=>se.value.get(t)),{}),fe=(t,e,n)=>{let i=[],r=[],o=[],a=[];const{searchIsOnlyChilds:s}=le(t);return e&&e.length>0&&e.forEach((e=>{let u=s&&null!==e.parentId;if((c.slugify(e.text).indexOf(c.slugify(n))>-1||e.keywords&&c.slugify(e.keywords).indexOf(c.slugify(n))>-1)&&(!s||s&&u)){if(o.push(e.id),i.push(e.id),r.push(e.id),a.push({id:e.id,text:e.text,parentId:e.parentId}),e.items&&e.items.length>0){const r=fe(t,e.items,n);r.matching.length>0&&r.matching.forEach((t=>{i.push(t)}))}}else if(e.items&&e.items.length>0){const c=fe(t,e.items,n);c.result.length>0&&(c.result.forEach((t=>{o.push(t)})),o.push(e.id),r.push(e.id),a.push({id:e.id,text:e.text,parentId:e.parentId,items:c.nestedResult})),c.matching.length>0&&i.push(...c.matching)}})),{result:o,matching:i,parentIndex:r,nestedResult:a}},pe=(t,e,n)=>{let i;i=n&&n.length>0?n:le(t).dataSource;let r=[];return i&&r.push(fe(t,i,e)),{result:a((()=>o.flatArray(r[0].result)),[]),matching:a((()=>r[0].matching),[]),parentIndex:a((()=>r[0].parentIndex),[]),nestedResult:a((()=>r[0].nestedResult),[])}},me=class{constructor(n){t(this,n),this.bcmOnSearch=e(this,"bcm-on-search",7),this.bcmOnSearchClear=e(this,"bcm-on-search-clear",7),this.debounceHandler=o.debounceInput((t=>this.onSearchValue(t,this)),300,!1,(()=>{var t,e;this.isActiveClearable=(null===(e=null===(t=this.inputElement)||void 0===t?void 0:t.value)||void 0===e?void 0:e.length)>0&&this.clearable})),this._id=o.UID(),this.placeholder="Search",this.disabled=!1,this.readonly=!1,this.clearable=!0,this.size=s.Size.medium,this.limit=10,this.searchIsOnlyChilds=!1,this.minSearchLength=2,this.data=[],this.tick={},this.isActiveClearable=!1}async componentDidLoad(){await this.initState()}async dataChanged(t,e){t!==e&&await this.initState()}async initState(){await(t=>{const{id:e,dataSource:n}=t,i={id:a((()=>e),o.UID),dataSource:n&&n.length>0&&ue(n),searchIsOnlyChilds:t.searchIsOnlyChilds};se.value.set(i.id,i)})({id:this._id+"-input",dataSource:this.data,searchIsOnlyChilds:this.searchIsOnlyChilds}),await this.markForCheck()}markForCheck(){this.tick=o.UID()}handleInput(){}async onBcmFocus(){this.inputElement.focus()}async onBcmBlur(){this.inputElement.blur()}async onBcmSelect(){this.inputElement.select()}async setValue(t){this.inputElement.value=t}handleFocus(){}handleBlur(){}handleChange(){}async handleClear(t=!0){this.inputElement.value="";const{value:e,id:n}=this.inputElement;return pe(n,e),this.isActiveClearable=!1,this.bcmOnSearch.emit({result:null,value:null,matching:null,parentIndex:null}),this.bcmOnSearchClear.emit(t),await h(10),Promise.resolve()}onSearchValue(t,e){const{value:n,id:i}=t.target,r=(null==n?void 0:n.length)>=this.minSearchLength?pe(i,n,null):null,{bcmOnSearch:o,inputElement:a}=e;o.emit({result:null==r?void 0:r.result,value:null==a?void 0:a.value,matching:null==r?void 0:r.matching,parentIndex:null==r?void 0:r.parentIndex,nestedResult:null==r?void 0:r.nestedResult})}render(){const{_id:t,placeholder:e,disabled:n,readonly:o}=this;return i(r,{onClick:()=>{this.onBcmFocus(),this.onBcmSelect()}},i(m,{size:this.size,id:t,type:"search",placeholder:e,disabled:n,"full-width":!0,readonly:o,clearable:this.isActiveClearable,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleClear:()=>this.handleClear(),handleInput:this.debounceHandler,ref:t=>this.inputElement=t}))}get el(){return n(this)}static get watchers(){return{data:["dataChanged"]}}};me.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea .bcm-input-element{white-space:normal}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}';export{ce as bcm_rc_overflow,me as bcm_search}
|
|
13
|
+
*/var O="function"==typeof Symbol&&Symbol.for,S=O?Symbol.for("react.element"):60103,k=O?Symbol.for("react.portal"):60106,M=O?Symbol.for("react.fragment"):60107,C=O?Symbol.for("react.strict_mode"):60108,I=O?Symbol.for("react.profiler"):60114,E=O?Symbol.for("react.provider"):60109,R=O?Symbol.for("react.context"):60110,N=O?Symbol.for("react.async_mode"):60111,T=O?Symbol.for("react.concurrent_mode"):60111,D=O?Symbol.for("react.forward_ref"):60112,A=O?Symbol.for("react.suspense"):60113,F=O?Symbol.for("react.suspense_list"):60120,P=O?Symbol.for("react.memo"):60115,B=O?Symbol.for("react.lazy"):60116,W=O?Symbol.for("react.block"):60121,q=O?Symbol.for("react.fundamental"):60117,V=O?Symbol.for("react.responder"):60118,H=O?Symbol.for("react.scope"):60119;function L(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case S:switch(t=t.type){case N:case T:case M:case I:case C:case A:return t;default:switch(t=t&&t.$$typeof){case R:case D:case B:case P:case E:return t;default:return e}}case k:return e}}}function G(t){return L(t)===T}var K={AsyncMode:N,ConcurrentMode:T,ContextConsumer:R,ContextProvider:E,Element:S,ForwardRef:D,Fragment:M,Lazy:B,Memo:P,Portal:k,Profiler:I,StrictMode:C,Suspense:A,isAsyncMode:function(t){return G(t)||L(t)===N},isConcurrentMode:G,isContextConsumer:function(t){return L(t)===R},isContextProvider:function(t){return L(t)===E},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===S},isForwardRef:function(t){return L(t)===D},isFragment:function(t){return L(t)===M},isLazy:function(t){return L(t)===B},isMemo:function(t){return L(t)===P},isPortal:function(t){return L(t)===k},isProfiler:function(t){return L(t)===I},isStrictMode:function(t){return L(t)===C},isSuspense:function(t){return L(t)===A},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===M||t===T||t===I||t===C||t===A||t===F||"object"==typeof t&&null!==t&&(t.$$typeof===B||t.$$typeof===P||t.$$typeof===E||t.$$typeof===R||t.$$typeof===D||t.$$typeof===q||t.$$typeof===V||t.$$typeof===H||t.$$typeof===W)},typeOf:L};p((function(){}));var $=p((function(t){t.exports=K}));function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return u.Children.forEach(t,(function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?n=n.concat(U(t)):$.isFragment(t)&&t.props?n=n.concat(U(t.props.children,e)):n.push(t))})),n}function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function J(t){var e=function(t){if("object"!==Y(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Y(e)?e:String(e)}function Q(t,e,n){return(e=J(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){Q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(t)}function et(t,e){"function"==typeof t?t(e):"object"===tt(t)&&t&&"current"in t&&(t.current=e)}function nt(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof u.Component?l.findDOMNode(t):null}var it=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),rt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ot="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),at="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ot):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)},ct=["top","right","bottom","left","width","height","size","weight"],st="undefined"!=typeof MutationObserver,ut=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t){var e=!1,n=!1,i=0;function r(){e&&(e=!1,t()),n&&a()}function o(){at(r)}function a(){var t=Date.now();if(e){if(t-i<2)return;n=!0}else e=!0,n=!1,setTimeout(o,20);i=t}return a}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){rt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),st?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){rt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;ct.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),lt=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},ft=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ot},pt=xt(0,0,0,0);function mt(t){return parseFloat(t)||0}function ht(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+mt(t["border-"+n+"-width"])}),0)}var dt="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ft(t).SVGGraphicsElement}:function(t){return t instanceof ft(t).SVGElement&&"function"==typeof t.getBBox};function bt(t){return rt?dt(t)?function(t){var e=t.getBBox();return xt(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return pt;var i=ft(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n];e[r]=mt(t["padding-"+r])}return e}(i),o=r.left+r.right,a=r.top+r.bottom,c=mt(i.width),s=mt(i.height);if("border-box"===i.boxSizing&&(Math.round(c+o)!==e&&(c-=ht(i,"left","right")+o),Math.round(s+a)!==n&&(s-=ht(i,"top","bottom")+a)),!function(t){return t===ft(t).document.documentElement}(t)){var u=Math.round(c+o)-e,l=Math.round(s+a)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(l)&&(s-=l)}return xt(r.left,r.top,c,s)}(t):pt}function xt(t,e,n,i){return{x:t,y:e,width:n,height:i}}var gt=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xt(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=bt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),vt=function(t,e){var n=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return lt(a,{x:e,y:n,width:i,height:r,top:n,right:e+i,bottom:r+n,left:e}),a}(e);lt(this,{target:t,contentRect:n})},yt=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new it,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ft(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new gt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ft(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new vt(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),wt="undefined"!=typeof WeakMap?new WeakMap:new it,_t=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ut.getInstance(),i=new yt(e,n,this);wt.set(this,i)};["observe","unobserve","disconnect"].forEach((function(t){_t.prototype[t]=function(){var e;return(e=wt.get(this))[t].apply(e,arguments)}}));var zt=void 0!==ot.ResizeObserver?ot.ResizeObserver:_t,jt=new Map,Ot=new zt((function(t){t.forEach((function(t){var e,n=t.target;null===(e=jt.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}));function St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,J(i.key),i)}}function Mt(t,e){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mt(t,e)}function Ct(t){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ct(t)}function It(t,e){if(e&&("object"===Y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var Et=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mt(t,e)}(o,u.Component);var t,e,n,i,r=(n=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ct(n);if(i){var r=Ct(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return It(this,t)});function o(){return St(this,o),r.apply(this,arguments)}return t=o,(e=[{key:"render",value:function(){return this.props.children}}])&&kt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(),Rt=u.createContext(null);function Nt(t,e){var n,i,r,o,a=t.children,c=t.disabled,s=u.useRef(null),l=u.useRef(null),f=u.useContext(Rt),p="function"==typeof a,m=p?a(s):a,h=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!p&&u.isValidElement(m)&&!!("function"!=typeof(o=$.isMemo(n=m)?n.type.type:n.type)||null!==(i=o.prototype)&&void 0!==i&&i.render)&&!!("function"!=typeof n||null!==(r=n.prototype)&&void 0!==r&&r.render),b=d?m.ref:null,x=u.useMemo((function(){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.filter((function(t){return t}));return i.length<=1?i[0]:function(t){e.forEach((function(e){et(e,t)}))}}(b,s)}),[b,s]),g=function(){return nt(s.current)||nt(l.current)};u.useImperativeHandle(e,(function(){return g()}));var v=u.useRef(t);v.current=t;var y=u.useCallback((function(t){var e=v.current,n=e.onResize,i=e.data,r=t.getBoundingClientRect(),o=r.width,a=r.height,c=t.offsetWidth,s=t.offsetHeight,u=Math.floor(o),l=Math.floor(a);if(h.current.width!==u||h.current.height!==l||h.current.offsetWidth!==c||h.current.offsetHeight!==s){var p={width:u,height:l,offsetWidth:c,offsetHeight:s};h.current=p;var m=c===Math.round(o)?o:c,d=s===Math.round(a)?a:s,b=Z(Z({},p),{},{offsetWidth:m,offsetHeight:d});null==f||f(b,t,i),n&&Promise.resolve().then((function(){n(b,t)}))}}),[]);return u.useEffect((function(){var t,e,n=g();return n&&!c&&(e=y,jt.has(t=n)||(jt.set(t,new Set),Ot.observe(t)),jt.get(t).add(e)),function(){return function(t,e){jt.has(t)&&(jt.get(t).delete(e),jt.get(t).size||(Ot.unobserve(t),jt.delete(t)))}(n,y)}}),[s.current,c]),u.createElement(Et,{ref:l},d?u.cloneElement(m,{ref:x}):m)}var Tt=u.forwardRef(Nt);function Dt(t,e){var n=t.children;return("function"==typeof n?[n]:U(n)).map((function(n,i){var r=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return u.createElement(Tt,j({},t,{key:r,ref:0===i?e:void 0}),n)}))}var At=u.forwardRef(Dt);At.Collection=function(t){var e=t.children,n=t.onBatchResize,i=u.useRef(0),r=u.useRef([]),o=u.useContext(Rt),a=u.useCallback((function(t,e,a){i.current+=1;var c=i.current;r.current.push({size:t,element:e,data:a}),Promise.resolve().then((function(){c===i.current&&(null==n||n(r.current),r.current=[])})),null==o||o(t,e,a)}),[n,o]);return u.createElement(Rt.Provider,{value:a},e)};var Ft="undefined"!=typeof window&&window.document&&window.document.createElement?u.useLayoutEffect:u.useEffect,Pt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Bt=void 0;function Wt(t,e){var n=t.prefixCls,i=t.invalidate,r=t.item,o=t.renderItem,a=t.responsive,c=t.responsiveDisabled,s=t.registerSize,l=t.itemKey,p=t.className,m=t.style,h=t.children,d=t.display,x=t.order,g=t.component,v=void 0===g?"div":g,w=z(t,Pt),_=a&&!d;function j(t){s(l,t)}u.useEffect((function(){return function(){j(null)}}),[]);var O,S=o&&r!==Bt?o(r):h;i||(O={opacity:_?0:1,height:_?0:Bt,overflowY:_?"hidden":Bt,order:a?x:Bt,pointerEvents:_?"none":Bt,position:_?"absolute":Bt});var k={};_&&(k["aria-hidden"]=!0);var M=u.createElement(v,b({className:f(!i&&n,p),style:y(y({},O),m)},k,w,{ref:e}),S);return a&&(M=u.createElement(At,{onResize:function(t){j(t.offsetWidth)},disabled:c},M)),M}var qt=u.forwardRef(Wt);qt.displayName="Item";var Vt=function(t){return+setTimeout(t,16)},Ht=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Vt=function(t){return window.requestAnimationFrame(t)},Ht=function(t){return window.cancelAnimationFrame(t)});var Lt=0,Gt=new Map;function Kt(t){Gt.delete(t)}var $t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Lt+=1;function i(e){if(0===e)Kt(n),t();else{var r=Vt((function(){i(e-1)}));Gt.set(n,r)}}return i(e),n};function Ut(t,e){var n=_(u.useState(e),2),i=n[0],r=n[1],o=function(){var e=u.useRef();e.current=function(e){t((function(){r(e)}))};var n=u.useCallback((function(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(i))}),[]);return n}();return[i,o]}$t.cancel=function(t){var e=Gt.get(t);return Kt(e),Ht(e)};var Yt=u.createContext(null),Jt=["component"],Qt=["className"],Xt=["className"],Zt=function(t,e){var n=u.useContext(Yt);if(!n){var i=t.component,r=void 0===i?"div":i,o=z(t,Jt);return u.createElement(r,b({},o,{ref:e}))}var a=n.className,c=z(n,Qt),s=t.className,l=z(t,Xt);return u.createElement(Yt.Provider,{value:null},u.createElement(qt,b({ref:e,className:f(a,s)},c,l)))},te=u.forwardRef(Zt);te.displayName="RawItem";var ee=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ne="responsive",ie="invalidate";function re(t){return"+ ".concat(t.length," ...")}function oe(t,e){var n,i,r,o,a=t.prefixCls,c=void 0===a?"rc-overflow":a,s=t.data,p=void 0===s?[]:s,m=t.renderItem,h=t.renderRawItem,d=t.itemKey,x=t.itemWidth,g=void 0===x?10:x,v=t.ssr,w=t.style,j=t.className,O=t.maxCount,S=t.renderRest,k=t.renderRawRest,M=t.suffix,C=t.component,I=void 0===C?"div":C,E=t.itemComponent,R=t.onVisibleChange,N=z(t,ee),T="full"===v,D=(o=u.useRef(null),function(t){o.current||(o.current=[],function(t){if("undefined"==typeof MessageChannel)$t(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}((function(){l.unstable_batchedUpdates((function(){o.current.forEach((function(t){t()})),o.current=null}))}))),o.current.push(t)}),A=_(Ut(D,null),2),F=A[0],P=A[1],B=F||0,W=_(Ut(D,new Map),2),q=W[0],V=W[1],H=_(Ut(D,0),2),L=H[0],G=H[1],K=_(Ut(D,0),2),$=K[0],U=K[1],Y=_(Ut(D,0),2),J=Y[0],Q=Y[1],X=_(u.useState(null),2),Z=X[0],tt=X[1],et=_(u.useState(null),2),nt=et[0],it=et[1],rt=u.useMemo((function(){return null===nt&&T?Number.MAX_SAFE_INTEGER:nt||0}),[nt,F]),ot=_(u.useState(!1),2),at=ot[0],ct=ot[1],st="".concat(c,"-item"),ut=Math.max(L,$),lt=O===ne,ft=p.length&<,pt=O===ie,mt=ft||"number"==typeof O&&p.length>O,ht=u.useMemo((function(){var t=p;return ft?t=null===F&&T?p:p.slice(0,Math.min(p.length,B/g)):"number"==typeof O&&(t=p.slice(0,O)),t}),[p,g,F,O,ft]),dt=u.useMemo((function(){return p.slice(ft?rt+1:ht.length)}),[p,ht,ft,rt]),bt=u.useCallback((function(t,e){var n;return"function"==typeof d?d(t):null!==(n=d&&(null==t?void 0:t[d]))&&void 0!==n?n:e}),[d]),xt=u.useCallback(m||function(t){return t},[m]);function gt(t,e,n){(nt!==t||void 0!==e&&e!==Z)&&(it(t),n||(ct(t<p.length-1),null==R||R(t)),void 0!==e&&tt(e))}function vt(t,e){V((function(n){var i=new Map(n);return null===e?i.delete(t):i.set(t,e),i}))}function yt(t){return q.get(bt(ht[t],t))}n=function(){if(B&&"number"==typeof ut&&ht){var t=J,e=ht.length,n=e-1;if(!e)return void gt(0,null);for(var i=0;i<e;i+=1){var r=yt(i);if(T&&(r=r||0),void 0===r){gt(i-1,void 0,!0);break}if(t+=r,0===n&&t<=B||i===n-1&&t+yt(n)<=B){gt(n,null);break}if(t+ut>B){gt(i-1,t-r-J+$);break}}M&&yt(0)+J>B&&tt(null)}},i=[B,q,$,J,bt,ht],r=u.useRef(!0),Ft((function(){return n()}),i),Ft((function(){return r.current=!1,function(){r.current=!0}}),[]);var wt=at&&!!dt.length,_t={};null!==Z&&ft&&(_t={position:"absolute",left:Z,top:0});var zt,jt={prefixCls:st,responsive:ft,component:E,invalidate:pt},Ot=h?function(t,e){var n=bt(t,e);return u.createElement(Yt.Provider,{key:n,value:y(y({},jt),{},{order:e,item:t,itemKey:n,registerSize:vt,display:e<=rt})},h(t,e))}:function(t,e){var n=bt(t,e);return u.createElement(qt,b({},jt,{order:e,key:n,item:t,renderItem:xt,itemKey:n,registerSize:vt,display:e<=rt}))},St={order:wt?rt:Number.MAX_SAFE_INTEGER,className:"".concat(st,"-rest"),registerSize:function(t,e){U(e),G($)},display:wt};if(k)k&&(zt=u.createElement(Yt.Provider,{value:y(y({},jt),St)},k(dt)));else{var kt=S||re;zt=u.createElement(qt,b({},jt,St),"function"==typeof kt?kt(dt):kt)}var Mt=u.createElement(I,b({className:f(!pt&&c,j),style:w,ref:e},N),ht.map(Ot),mt?zt:null,M&&u.createElement(qt,b({},jt,{responsive:lt,responsiveDisabled:!ft,order:rt,className:"".concat(st,"-suffix"),registerSize:function(t,e){Q(e)},display:!0,style:_t}),M));return lt&&(Mt=u.createElement(At,{onResize:function(t,e){P(e.clientWidth)},disabled:!ft},Mt)),Mt}var ae=u.forwardRef(oe);ae.displayName="Overflow",ae.Item=te,ae.RESPONSIVE=ne,ae.INVALIDATE=ie;const ce=class{constructor(n){t(this,n),this.selectOtherTag=e(this,"bcm-select-other-tag",7),this.selectTag=e(this,"bcm-select-tag",7),this.deleteTag=e(this,"bcm-delete-tag",7),this.renderItem=t=>u.createElement("bcm-tooltip",{placement:"bottom",message:t.text,trigger:"hover"},u.createElement("div",{id:t.value+"-tag",className:"bcm-tag",onClick:({target:e})=>this.onClickControl(e,t,!1)},u.createElement("span",{className:"bcm-tag__content dismissable"},u.createElement("div",{className:"value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap"},t.text),u.createElement("span",{className:"right close-button"},u.createElement("bcm-icon",{icon:"fa fa-times"}))))),this.renderRest=t=>{const e=(null==t?void 0:t.sort(((t,e)=>+t.ct-+e.ct)).slice(0,15).map((t=>c.textLimitter(t.text,40,!0))).toString().split(",").join("\r\n"))+(t.length>15?"\r\n...":"");return u.createElement("bcm-tooltip",{placement:"bottom",message:e,trigger:"hover"},u.createElement("div",{className:"bcm-tag bcm-tag--other",onClick:({target:e})=>this.onClickControl(e,t,!0)},u.createElement("span",{className:"bcm-tag__content dismissable "+(this.checked?"checkable checked":"")},u.createElement("span",{className:"value"},`+${null==t?void 0:t.length}`),u.createElement("span",{className:"right close-button"},u.createElement("bcm-icon",{icon:"fa fa-times"})))))},this._id=o.UID(),this.maxCount=1,this.data=[],this.checked=!1}isClickDismiss(t){return"BCM-ICON"===t["s-hn"]}onClickControl(t,e,n=!1){const i=this.isClickDismiss(t);i&&this.deleteTag.emit({id:Array.isArray(e)?e.map((t=>t.value)):e.value})&&this.checked&&(this.checked=!1),!n&&this.selectTag.emit({id:e.value})&&this.checked&&(this.checked=!1),n&&!i&&(this.checked=!this.checked,this.selectOtherTag.emit({id:null==e?void 0:e.map((t=>t.value)),checked:this.checked}))}componentWillRender(){const{data:t,renderItem:e,renderRest:n,maxCount:i}=this;this.overflowInstance=u.createElement(ae,{data:t,renderItem:e,renderRest:n,maxCount:i}),l.render(this.overflowInstance,this.el)}get el(){return n(this)}};ce.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.rc-overflow{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%}.rc-overflow-item{transition:all 0.3s ease;padding:0 2px;display:flex;align-items:center;justify-content:center}';const{state:se}=d({value:new Map}),ue=(t,e)=>{let n=[];return t&&(n=t.map((t=>Object.assign(Object.assign(Object.assign({},t),{parentId:a((()=>e),null)}),t.items&&t.items.length>0&&{items:a((()=>ue(t.items,t.id)),[])})))),n},le=t=>a((()=>se.value.get(t)),{}),fe=(t,e,n)=>{let i=[],r=[],o=[],a=[];const{searchIsOnlyChilds:s}=le(t);return e&&e.length>0&&e.forEach((e=>{let u=s&&null!==e.parentId;if((c.slugify(e.text).indexOf(c.slugify(n))>-1||e.keywords&&c.slugify(e.keywords).indexOf(c.slugify(n))>-1)&&(!s||s&&u)){if(o.push(e.id),i.push(e.id),r.push(e.id),a.push({id:e.id,text:e.text,parentId:e.parentId}),e.items&&e.items.length>0){const r=fe(t,e.items,n);r.matching.length>0&&r.matching.forEach((t=>{i.push(t)}))}}else if(e.items&&e.items.length>0){const c=fe(t,e.items,n);c.result.length>0&&(c.result.forEach((t=>{o.push(t)})),o.push(e.id),r.push(e.id),a.push({id:e.id,text:e.text,parentId:e.parentId,items:c.nestedResult})),c.matching.length>0&&i.push(...c.matching)}})),{result:o,matching:i,parentIndex:r,nestedResult:a}},pe=(t,e,n)=>{let i;i=n&&n.length>0?n:le(t).dataSource;let r=[];return i&&r.push(fe(t,i,e)),{result:a((()=>o.flatArray(r[0].result)),[]),matching:a((()=>r[0].matching),[]),parentIndex:a((()=>r[0].parentIndex),[]),nestedResult:a((()=>r[0].nestedResult),[])}},me=class{constructor(n){t(this,n),this.bcmOnSearch=e(this,"bcm-on-search",7),this.bcmOnSearchClear=e(this,"bcm-on-search-clear",7),this.debounceHandler=o.debounceInput((t=>this.onSearchValue(t,this)),300,!1,(()=>{var t,e;this.isActiveClearable=(null===(e=null===(t=this.inputElement)||void 0===t?void 0:t.value)||void 0===e?void 0:e.length)>0&&this.clearable})),this._id=o.UID(),this.placeholder="Search",this.disabled=!1,this.readonly=!1,this.clearable=!0,this.size=s.Size.medium,this.limit=10,this.searchIsOnlyChilds=!1,this.minSearchLength=2,this.data=[],this.tick={},this.isActiveClearable=!1}async componentDidLoad(){await this.initState()}async dataChanged(t,e){t!==e&&await this.initState()}async initState(){await(t=>{const{id:e,dataSource:n}=t,i={id:a((()=>e),o.UID),dataSource:n&&n.length>0&&ue(n),searchIsOnlyChilds:t.searchIsOnlyChilds};se.value.set(i.id,i)})({id:this._id+"-input",dataSource:this.data,searchIsOnlyChilds:this.searchIsOnlyChilds}),await this.markForCheck()}markForCheck(){this.tick=o.UID()}handleInput(){}async onBcmFocus(){this.inputElement.focus()}async onBcmBlur(){this.inputElement.blur()}async onBcmSelect(){this.inputElement.select()}async setValue(t){this.inputElement.value=t}handleFocus(){}handleBlur(){}handleChange(){}async handleClear(t=!0){this.inputElement.value="";const{value:e,id:n}=this.inputElement;return pe(n,e),this.isActiveClearable=!1,this.bcmOnSearch.emit({result:null,value:null,matching:null,parentIndex:null}),this.bcmOnSearchClear.emit(t),await h(10),Promise.resolve()}onSearchValue(t,e){const{value:n,id:i}=t.target,r=(null==n?void 0:n.length)>=this.minSearchLength?pe(i,n,null):null,{bcmOnSearch:o,inputElement:a}=e;o.emit({result:null==r?void 0:r.result,value:null==a?void 0:a.value,matching:null==r?void 0:r.matching,parentIndex:null==r?void 0:r.parentIndex,nestedResult:null==r?void 0:r.nestedResult})}render(){const{_id:t,placeholder:e,disabled:n,readonly:o}=this;return i(r,{onClick:()=>{this.onBcmFocus(),this.onBcmSelect()}},i(m,{size:this.size,id:t,type:"search",placeholder:e,disabled:n,"full-width":!0,readonly:o,clearable:this.isActiveClearable,handleFocus:()=>this.handleFocus(),handleBlur:()=>this.handleBlur(),handleChange:()=>this.handleChange(),handleClear:()=>this.handleClear(),handleInput:this.debounceHandler,ref:t=>this.inputElement=t}))}get el(){return n(this)}static get watchers(){return{data:["dataChanged"]}}};me.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-caption-area{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:"Inter", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:"Inter", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}';export{ce as bcm_rc_overflow,me as bcm_search}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as e,c as i,h as t,H as o,g as a}from"./p-da1055cb.js";import{c as n}from"./p-d65a1e21.js";import{B as s}from"./p-a429e85b.js";import{S as l}from"./p-8d0ca8c2.js";import{S as c}from"./p-79fd816c.js";import{G as r}from"./p-
|
|
5
|
+
import{r as e,c as i,h as t,H as o,g as a}from"./p-da1055cb.js";import{c as n}from"./p-d65a1e21.js";import{B as s}from"./p-a429e85b.js";import{S as l}from"./p-8d0ca8c2.js";import{S as c}from"./p-79fd816c.js";import{G as r}from"./p-b1aa3243.js";import"./p-6f56f8ca.js";import"./p-4aa0e6b1.js";const d=class{constructor(t){e(this,t),this.close=i(this,"bcm-close",7),this.modalBeforeClose=i(this,"bcm-modal-before-close",7),this.modalBeforeOpen=i(this,"bcm-modal-before-open",7),this.modalSlots={},this._id=r.UID(),this.isShow=!1,this.hidden=!1,this.size=s.Size.medium,this.backdrop=!0,this.width=void 0,this.height=void 0,this.fullWidth=!1}connectedCallback(){const e=this.el.querySelectorAll("bcm-modal-header, bcm-modal-footer");e&&e.forEach((e=>{let i=l.lowercase(l.split(e.nodeName,"-").pop());e.slot=i,e.classList.add(`bcm-modal__container-${i}-content`),this.modalSlots[i]=e}));const i=`bcm-modal--disable-scroll-${this._id}`,t=`bcm-modal-style-${this._id}`;let o=document.getElementById(t);o||(o=document.createElement("style"),o.id=t,o.innerHTML=`.${i} { overflow: hidden; }`,document.head.appendChild(o))}componentWillLoad(){}handleSubmit(e){const i=r.findEventPathWithNodeName(e,l.uppercase("bcm-button"));i&&i.dataDismiss&&this.hide()}handleBackdrop(){1==this.backdrop&&this.hide()}async hide(e={force:!1}){if(null==e?void 0:e.force)return this.isShow=!1,void this.close.emit();this.modalBeforeClose.emit(this.el)}async show(e={force:!1}){(null==e?void 0:e.force)?this.isShow=!0:this.modalBeforeOpen.emit(this.el)}keyboardNavigation(e){1==this.backdrop&&(e.keyCode||0)==s.KeyCode.escape&&(e.preventDefault(),this.hide())}async showModal(e){e.defaultPrevented||e.target===this.el&&(this.isShow=!0)}async hideModal(e){e.defaultPrevented||e.target===this.el&&(this.isShow=!1,this.close.emit())}_openHandler(){const e=`bcm-modal--disable-scroll-${this._id}`;this.isShow?document.body.classList.add(e):document.body.classList.remove(e)}disconnectedCallback(){document.body.classList.remove(`bcm-modal--disable-scroll-${this._id}`)}render(){const{isShow:e,size:i,fullWidth:a,hidden:s,width:l,height:r}=this,d=n("bcm-modal__container",i,{"custom-size":l||r,"full-width":a,"bcm-modal__show":e}),m=n("bcm-modal",{hidden:s,"bcm-modal__show":e}),h=n("bcm-modal__container-main","size-2"),p=Object.assign(Object.assign({},l&&{width:l}),r&&{height:r});return t(o,{class:`tw-overscroll-contain ${m}`},t("div",{class:"overlay",onClick:()=>this.handleBackdrop()}),t("div",{class:d,style:p},t((()=>this.modalSlots.header&&t("header",{class:"bcm-modal__container-header"},t(c,{name:"header",className:"full-width"}),t("div",{class:"bcm-modal__container-header-close",onClick:()=>this.hide()},t("bcm-icon",{icon:"far fa-times"})))),null),t("main",{class:h},t("article",null,t(c,null))),t((()=>this.modalSlots.footer&&t("footer",{class:"bcm-modal__container-footer"},t("slot",{name:"footer"}))),null)))}get el(){return a(this)}static get watchers(){return{isShow:["_openHandler"]}}};d.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-modal{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:100%;height:100%;position:fixed;z-index:-1;opacity:0;top:0;left:0;visibility:hidden;overflow:auto;padding:24px;transition:opacity 0.5s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show{opacity:1;z-index:10500;visibility:visible;transition:opacity 0.2s ease, visibility 0.4s ease-in-out, 0.3s z-index}.bcm-modal__show .bcm-modal__container{transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out;transform:translateY(0)}.bcm-modal .overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0;opacity:0.6;background-color:var(--bcm-new-ds-color-slate-900)}.bcm-modal__container{display:flex;flex-direction:column;width:100%;box-shadow:0 2px 6px 1px rgba(17, 24, 38, 0.1);border-radius:8px;background-color:var(--bcm-new-ds-color-white);z-index:2;transform:translateY(-50px);transition:opacity 0.2s ease-in-out, transform 0.2s ease-in-out}.bcm-modal__container.portrait{max-width:312px}.bcm-modal__container.landscape{max-width:475px}.bcm-modal__container.small{max-width:576px}.bcm-modal__container.medium{max-width:768px}.bcm-modal__container.large{max-width:992px}.bcm-modal__container.xlarge{max-width:1024px}.bcm-modal__container.xxlarge{max-width:1200px}.bcm-modal__container.xxxlarge{max-width:1700px}.bcm-modal__container.full-width{width:100%;max-width:100%}.bcm-modal__container.custom-size main{overflow:auto;height:100%;width:100%}.bcm-modal__container-main{color:var(--bcm-color-grey-8);padding:0}.bcm-modal__container-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;padding:12px 24px;font-size:16px;line-height:calc(16px + 8px);font-weight:500;color:var(--bcm-new-ds-color-slate-600);background-color:var(--bcm-new-ds-color-slate-100);position:relative}.bcm-modal__container-header span.full-width{width:100%}.bcm-modal__container-header-close{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:8px;cursor:pointer;color:var(--bcm-new-ds-color-slate-500);transition:color 0.1s ease-in-out}.bcm-modal__container-header-close:hover{color:var(--bcm-new-ds-color-slate-600)}.bcm-modal__container-header-close:active{color:var(--bcm-new-ds-color-slate-700)}.bcm-modal__container-header-close:focus-visible{color:var(--bcm-new-ds-color-slate-800)}.bcm-modal__container-header:after{border-radius:8px 8px 0 0;content:"";display:block;width:100%;height:4px;background-color:var(--bcm-color-primary-400);position:absolute;top:-4px;left:0}.bcm-modal__container-footer-content{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-end;flex-wrap:nowrap;padding:12px 24px 24px;grid-gap:8px}';export{d as bcm_modal}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as e,h as i,H as t,g as n}from"./p-da1055cb.js";import{G as p}from"./p-
|
|
5
|
+
import{r as e,h as i,H as t,g as n}from"./p-da1055cb.js";import{G as p}from"./p-b1aa3243.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const a=class{constructor(i){e(this,i),this._id=p.UID(),this.multi=!1}componentDidRender(){this.multi||this.checkExpandedCount()}checkExpandedCount(){var e,i;const t=this.el.querySelectorAll(".bcm-expansion-panel");if(t&&Array.from(t).map((e=>e.expanded)).filter(Boolean).length>1){const n=null===(i=null===(e=Array.from(t).filter((e=>e.expanded)))||void 0===e?void 0:e.pop())||void 0===i?void 0:i.id;Array.from(t).forEach((e=>{e.id!==n&&(e.expanded=!1)}))}}open(e){if(this.multi)return;const i=e.detail,t=this.el.querySelectorAll(".bcm-expansion-panel");t&&t.forEach((e=>{e.id!==i&&(e.expanded=!1)}))}isLoad(e){var i,t,n;if(!this.multi){var p=(null===(t=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.parentElement)||void 0===t?void 0:t.id)||null;"BCM-EXPANSION-PANEL"==((null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.nodeName)||null)&&this._id==p&&this.checkExpandedCount()}}render(){return i(t,{id:this._id},i("slot",null))}get el(){return n(this)}};a.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}';export{a as bcm_accordion}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as
|
|
5
|
+
import{r as i,c as e,h as t,H as s,g as h}from"./p-da1055cb.js";import{c as o}from"./p-d65a1e21.js";import{B as p}from"./p-a429e85b.js";import{G as n}from"./p-b1aa3243.js";import"./p-6f56f8ca.js";import"./p-4aa0e6b1.js";const a=class{constructor(t){i(this,t),this.onShow=e(this,"bcm-show",7),this.onHide=e(this,"bcm-hide",7),this._title=void 0,this._id=n.UID(),this.message=void 0,this.placement=p.Placement.top,this.trigger=p.TriggerType.click,this.open=!1,this.linkedComponent=void 0}async show(){this.open||(this.open=!0,this.onShow.emit(),this.createBox(),this.showBox())}async hide(){this.open&&(this.open=!1,this.onHide.emit(),this.hideBox())}createBox(){if(!this.getPopoverBox()){const i=document.createElement("old-bcm-popover-box");i.setAttribute("id","box-"+this._id),i.setAttribute("target-id",this._id),i.setAttribute("placement",this.placement),i.setAttribute("message",this.message),i.setAttribute("_title",this._title),i.setAttribute("linked-component",this.linkedComponent),document.body.appendChild(i)}}getPopoverBox(){return document.querySelector(`old-bcm-popover-box[id="box-${this._id}"]`)}showBox(){this.getPopoverBox()&&this.getPopoverBox().show()}hideBox(){this.getPopoverBox()&&this.getPopoverBox().hide()}listenTrigger(i){switch(this.trigger){case"click":"click"===i&&(this.open?this.hide():this.show());break;case"hover":"onMouseOver"===i&&this.show(),"onMouseOut"===i&&this.hide();break;case"focus":"onFocus"===i&&this.show(),"onBlur"===i&&this.hide()}}render(){const i=o("bcm-popover");return t(s,{class:i,onMouseOver:()=>this.listenTrigger("onMouseOver"),onMouseOut:()=>this.listenTrigger("onMouseOut"),onclick:()=>this.listenTrigger("click"),onFocus:()=>this.listenTrigger("onFocus"),onBlur:()=>this.listenTrigger("onBlur"),tabindex:0},t("slot",null))}get el(){return h(this)}};a.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-popover{display:inline-flex}';export{a as old_bcm_popover}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import{s as a}from"./p-b1aa3243.js";class f{}f.compareTwoArrayIsSame=(f,d)=>a((()=>f.length===d.length&&f.every(((a,f)=>a===d[f])))),f.isEmailValid=a=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a),f.isUrlValid=a=>/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/i.test(a),f.isNumberValid=a=>/^[+-]?\d+$/.test(a),f.isNumberFloatValid=a=>/^\d+(\.\d+)?$/.test(a),f.isPhoneValid=a=>/^(?=.*[0-9])[- +()0-9]+$/.test(a),f.pattern=(a,f)=>new RegExp(f).test(a),f.isValidate=(a,d)=>{switch(d){case"email":return f.isEmailValid(a);case"url":return f.isUrlValid(a);case"number":return f.isNumberValid(a)||f.isNumberFloatValid(a);case"phone":return f.isPhoneValid(a);default:return!0}};export{f as V}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as t,c as e,h as i,H as o,g as r}from"./p-da1055cb.js";import"./p-843905c8.js";import"./p-626a65e9.js";import{G as n}from"./p-
|
|
5
|
+
import{r as t,c as e,h as i,H as o,g as r}from"./p-da1055cb.js";import"./p-843905c8.js";import"./p-626a65e9.js";import{G as n}from"./p-b1aa3243.js";import"./p-a575e4f0.js";import"./p-8d0ca8c2.js";import"./p-275070fd.js";import"./p-7e44e6b5.js";import{a as s}from"./p-a429e85b.js";import{c as a}from"./p-d65a1e21.js";import"./p-436364c8.js";import"./p-8c018ae0.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const c=class{constructor(i){t(this,i),this.bcmBeforeOpen=e(this,"bcm-before-open",7),this.bcmBeforeClose=e(this,"bcm-before-close",7),this._id=n.UID(),this._title=void 0,this.position=s.Position.right,this.fullWidth=!1,this._open=!1,this._close=!1}async show(){this.bcmBeforeOpen.emit(!0)}async hide(){this.bcmBeforeClose.emit(!0),this._close=!0}_beforeOpen(t){var e;t&&(null===(e=t.target)||void 0===e?void 0:e.id)==this._id&&(this._open=!0)}_beforeClose(t){var e;t&&(null===(e=t.target)||void 0===e?void 0:e.id)==this._id&&(this._open=!1)}_openHandler(){this._open?document.body.classList.add("bcm-disable-scroll"):document.body.classList.remove("bcm-disable-scroll")}keyboardNavigation(t){(t.keyCode||0)==s.KeyCode.escape&&(t.preventDefault(),this.hide())}disconnectedCallback(){this._open=!1,document.body.classList.remove("bcm-disable-scroll"),this.el.remove()}render(){const t=a("bcm-drawer",{"bcm-drawer--open":this._open}),e=a("bcm-drawer__content",`bcm-drawer__content--position-${this.position}`,{"bcm-drawer__content--open":this._open,"bcm-drawer__content--close":this._close,"full-width":this.fullWidth}),r=a("bcm-drawer__overlay",{"bcm-drawer__overlay--open":this._open,"bcm-drawer__overlay--close":this._close});return i(o,{class:t},i("div",{class:r,onClick:()=>this.hide()}),i("div",{class:e},i("div",{class:"bcm-drawer__content-header"},i("bcm-text",{class:"bcm-drawer__content-header-title","font-size":"6",weight:"600",color:"slate-800"},this._title," ",i("slot",{name:"header"})),i("div",{class:"bcm-drawer__content-header-close size-4",onClick:()=>this.hide()},i("bcm-icon",{icon:"fal fa-times"}))),i("div",{style:{overflow:"auto",flex:"1"}},i("div",{class:"bcm-drawer__content-body"},i("slot",null))),i("div",{class:"bcm-drawer__content-footer"},i("slot",{name:"footer"}))))}get el(){return r(this)}static get watchers(){return{_open:["_openHandler"]}}};c.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-drawer{user-select:none;position:absolute;width:100vw;height:100vh;top:-100%;left:-100%;overflow:hidden;visibility:hidden}.bcm-drawer--open{visibility:visible;top:0;left:0}.bcm-drawer__content{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;user-select:text;position:fixed;width:100%;height:100%;background-color:#f1f5f9;z-index:10350;transition:transform 0.2s ease-in-out;transform:translateX(-100%);visibility:hidden;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}.bcm-drawer__content-body{padding:0 24px 24px 24px}.bcm-drawer__content.full-width{max-width:100%}.bcm-drawer__content-header{padding:24px 24px 0 24px;display:flex;justify-content:space-between;align-items:flex-start;color:var(--bcm-color-grey-8);margin-bottom:8px}.bcm-drawer__content-header-close{padding:4px 8px;margin-right:-4px;margin-top:-4px;color:var(--bcm-color-grey-7)}.bcm-drawer__content-header-close:hover{cursor:pointer;color:var(--bcm-color-grey-8)}.bcm-drawer__content-footer{padding:12px 24px}.bcm-drawer__content--position-left,.bcm-drawer__content--position-right{max-width:500px}.bcm-drawer__content--position-left.full-width,.bcm-drawer__content--position-right.full-width{max-width:100%}.bcm-drawer__content--position-top,.bcm-drawer__content--position-bottom{max-height:500px}.bcm-drawer__content--position-top.full-width,.bcm-drawer__content--position-bottom.full-width{max-height:100%}.bcm-drawer__content--position-left{transform:translateX(-100%);top:0;left:0}.bcm-drawer__content--position-top{transform:translateY(-100%);top:0;left:0}.bcm-drawer__content--position-right{transform:translateX(100%);top:0;right:0}.bcm-drawer__content--position-bottom{transform:translateY(100%);bottom:0;left:0}.bcm-drawer__content--open{transform:translateX(0);visibility:visible}.bcm-drawer__content--close{visibility:visible}.bcm-drawer__overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:10349;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out}.bcm-drawer__overlay--close{opacity:0;visibility:visible;transform:translateX(-100%)}.bcm-drawer__overlay--open{opacity:1;visibility:visible;transform:translateX(0)}';export{c as bcm_drawer}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as t,h as e,H as s,g as r}from"./p-da1055cb.js";import{G as o}from"./p-
|
|
5
|
+
import{r as t,h as e,H as s,g as r}from"./p-da1055cb.js";import{G as o}from"./p-b1aa3243.js";import{c as i}from"./p-d65a1e21.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const a=class{constructor(e){t(this,e),this.handleFocus=()=>{this.hasFocus=!0},this.handleBlur=()=>{this.hasFocus=!1},this.handleChange=t=>{this.value=t.target.value,console.log(t)},this.handleInput=t=>{console.log(t)},this._id=o.UID(),this.name=void 0,this.value=void 0,this.type="text",this.label=void 0,this.required=!1,this.disabled=!1,this.readonly=!1,this.placeholder=void 0,this.fullwidth=!1,this.hasFocus=!1}render(){const{_id:t,type:r,name:o,value:a,label:l,required:w,fullwidth:n,placeholder:d,disabled:h,readonly:c}=this;return e(s,{class:i("tw-inline-flex tw-w-full tw-max-w-[256px] tw-flex-col",{"tw-max-w-full":n})},l&&e("bcm-label",{value:l,required:w,htmlFor:t}),e("div",{class:i("tw-relative tw-flex tw-w-full tw-flex-row tw-items-stretch tw-rounded tw-border tw-p-0 hover:tw-border-primary-600",{"tw-cursor-not-allowed tw-bg-secondary-50":this.disabled,"tw-cursor-text":!this.disabled,"tw-cursor-default tw-bg-secondary-50":this.readonly,"tw-border-primary-500 tw-bg-secondary-50":this.hasFocus,"tw-border-secondary-300 tw-bg-white":!this.hasFocus})},e("input",{id:t,name:o,type:r,value:a,"data-value":a,placeholder:d,required:w,disabled:h,readonly:c,class:i("tw-text-overflow-ellipsis","tw-rounded-none","tw-flex-1","tw-cursor-inherit","tw-w-full","tw-appearance-none","tw-overflow-hidden","tw-whitespace-nowrap","tw-border-none","tw-bg-transparent","tw-p-2","tw-text-secondary-600","tw-placeholder-secondary-300","tw-outline-none"),onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:t=>this.handleChange(t),onInput:this.handleInput})))}get el(){return r(this)}};export{a as bcm_input_custom}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import{r as t,h as s,g as a}from"./p-da1055cb.js";import{G as w}from"./p-
|
|
5
|
+
import{r as t,h as s,g as a}from"./p-da1055cb.js";import{G as w}from"./p-b1aa3243.js";import"./p-4aa0e6b1.js";import"./p-6f56f8ca.js";const d=class{constructor(s){t(this,s),this._id=w.UID(),this.loading=!0}componentDidLoad(){var t;const s=null===(t=this.el)||void 0===t?void 0:t.parentElement;if(s){const t=document.createElement("span");t.setAttribute("id",`${this._id}-span`),t.classList.add("tw-hidden"),t.innerHTML="<slot />",s.appendChild(t),s.isConnected&&(this.loading=!1,s.querySelector(`#${this._id}-span`).remove())}}render(){return s(this.loading?()=>s("div",{class:"tw-mx-auto tw-w-full tw-max-w-sm tw-rounded-md tw-border tw-border-blue-300 tw-p-4 tw-shadow"},s("span",{class:"tw-hidden"},s("slot",null)),s("div",{class:"tw-flex tw-animate-pulse tw-space-x-4"},s("div",{class:"tw-h-10 tw-w-10 tw-rounded-full tw-bg-slate-200"}),s("div",{class:"tw-flex-1 tw-space-y-6 tw-py-1"},s("div",{class:"tw-h-2 tw-rounded tw-bg-slate-200"}),s("div",{class:"tw-space-y-3"},s("div",{class:"tw-grid tw-grid-cols-3 tw-gap-4"},s("div",{class:"tw-col-span-2 tw-h-2 tw-rounded tw-bg-slate-200"}),s("div",{class:"tw-col-span-1 tw-h-2 tw-rounded tw-bg-slate-200"})),s("div",{class:"tw-h-2 tw-rounded tw-bg-slate-200"}))))):"slot",null)}get el(){return a(this)}};export{d as bcm_skeleton}
|