pns-component-library 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
ADDED
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";.fade-out[data-v-2eec1ba2]{animation:fadeOut-2eec1ba2 var(--fade-out-duration-ms, 3s) forwards}@keyframes fadeOut-2eec1ba2{0%{opacity:1}90%{opacity:.8}to{opacity:0}}.simplified-notification[data-v-2eec1ba2]{width:100%;padding:12px 16px;border-radius:8px;display:flex;gap:12px;align-items:stretch;box-sizing:border-box;position:relative}.simplified-notification.blue[data-v-2eec1ba2]{background:#e8f4fd}.simplified-notification.red[data-v-2eec1ba2]{background:#faeaea}.simplified-notification.yellow[data-v-2eec1ba2]{background:#fff7df}.simplified-notification.green[data-v-2eec1ba2]{background:#ebf4ec}.prefix_icon[data-v-2eec1ba2]{width:24px;height:24px}.prefix-icon-container[data-v-2eec1ba2]{display:flex;align-items:center}.close-btn-container[data-v-2eec1ba2]{display:flex;flex-direction:column}.close-btn[data-v-2eec1ba2]{cursor:pointer}.notifiction-text[data-v-2eec1ba2]{width:100%;color:#000;font-family:Roboto;font-size:14px;font-weight:400;line-height:20px;white-space:normal;word-break:break-word}.content-wrapper[data-v-2eec1ba2]{width:100%}.title[data-v-2eec1ba2]{color:#000;font-family:Roboto;font-size:14px;font-weight:600;line-height:16px;margin-bottom:4px}.content-details[data-v-2eec1ba2]{min-height:24px;display:flex;align-items:center}@media only screen and (max-width:767px){.simplified-notification[data-v-2eec1ba2]{padding:8px 12px;gap:8px}}.responsive-button-wrapper[data-v-dbbab9e8]{position:relative}.responsive-button-wrapper.fill-whole[data-v-dbbab9e8]{width:100%;height:fit-content}.responsive-button-wrapper.fit-content[data-v-dbbab9e8]{width:fit-content;height:fit-content}.responsive-button-wrapper[data-v-dbbab9e8] .component-loading-spinner{border-radius:4px}.responsive-button-wrapper[data-v-dbbab9e8] .component-loading-spinner:after{height:25px;width:25px}.responsive-button[data-v-dbbab9e8]{height:fit-content;box-sizing:border-box;border-radius:4px;text-align:center;display:flex;flex-direction:column;align-items:center;font-family:Roboto;cursor:pointer}.responsive-button.fit-content[data-v-dbbab9e8]{min-width:90px}.responsive-button.no-display-name[data-v-dbbab9e8]{min-width:0px!important}.button-content[data-v-dbbab9e8]{display:flex;column-gap:8px;align-items:center}.prefix-wrapper[data-v-dbbab9e8],.suffix-wrapper[data-v-dbbab9e8]{width:20px;height:20px;flex-shrink:0}.rotate-0[data-v-dbbab9e8]{transform:rotate(0);transition:all .3s}.rotate-180[data-v-dbbab9e8]{transform:rotate(180deg)}.responsive-button.xsmall[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.xsmall[data-v-dbbab9e8]{width:fit-content;padding:7px 23px}.responsive-button.no-display-name.fit-content.xsmall[data-v-dbbab9e8]{width:fit-content;padding:7px!important}.responsive-button.fit-content.xsmall.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:7px 23px 7px 15px}.responsive-button.fit-content.xsmall.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:7px 15px 7px 23px}.responsive-button.fit-content.xsmall.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:7px 15px}.responsive-button.fill-whole.xsmall[data-v-dbbab9e8]{width:100%;padding:7px}.responsive-button.small[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.small[data-v-dbbab9e8]{width:fit-content;padding:9px 23px}.responsive-button.no-display-name.fit-content.small[data-v-dbbab9e8]{width:fit-content;padding:9px!important}.responsive-button.fit-content.small.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:9px 23px 9px 15px}.responsive-button.fit-content.small.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:9px 15px 9px 23px}.responsive-button.fit-content.small.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:9px 15px}.responsive-button.fill-whole.small[data-v-dbbab9e8]{width:100%;padding:9px 7px}.responsive-button.medium[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.medium[data-v-dbbab9e8]{width:fit-content;padding:10px 23px}.responsive-button.no-display-name.fit-content.medium[data-v-dbbab9e8]{width:fit-content;padding:10px!important}.responsive-button.fit-content.medium.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:10px 23px 10px 15px}.responsive-button.fit-content.medium.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:10px 15px 10px 23px}.responsive-button.fit-content.medium.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:10px 15px}.responsive-button.fill-whole.medium[data-v-dbbab9e8]{width:100%;padding:10px 7px}.responsive-button.large[data-v-dbbab9e8]{font-size:16px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.large[data-v-dbbab9e8]{width:fit-content;padding:11px 23px}.responsive-button.no-display-name.fit-content.large[data-v-dbbab9e8]{width:fit-content;padding:11px!important}.responsive-button.fit-content.large.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:11px 23px 11px 15px}.responsive-button.fit-content.large.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:11px 15px 11px 23px}.responsive-button.fit-content.large.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:11px 15px}.responsive-button.fill-whole.large[data-v-dbbab9e8]{width:100%;padding:11px 7px}.disabled[data-v-dbbab9e8]{cursor:not-allowed}.outlined-primary[data-v-dbbab9e8]{border:1px solid #1E4670;background:#fff;color:#1e4670}.outlined-primary[data-v-dbbab9e8]:hover{background:#ecf2f8}.outlined-primary.focused[data-v-dbbab9e8],.outlined-primary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#ecf2f8}.outlined-primary.disabled[data-v-dbbab9e8],.outlined-primary.disabled[data-v-dbbab9e8]:hover,.outlined-primary.disabled.focused[data-v-dbbab9e8],.outlined-primary.disabled[data-v-dbbab9e8]:active{border:1px solid #979797;background:#f2f2f2;color:#979797}.filled-primary[data-v-dbbab9e8]{border:1px solid #1E4670;background:#1e4670;color:#fff}.filled-primary[data-v-dbbab9e8]:hover{background:#022a53}.filled-primary.focused[data-v-dbbab9e8],.filled-primary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#ffffff14,#ffffff14),#022a53}.filled-primary.disabled[data-v-dbbab9e8],.filled-primary.disabled[data-v-dbbab9e8]:hover,.filled-primary.disabled.focused .filled-primary.disabled[data-v-dbbab9e8]:active{border:1px solid #979797;background:#979797}.text-primary[data-v-dbbab9e8]{border:1px solid transparent;background:#fff;color:#1e4670}.text-primary[data-v-dbbab9e8]:hover{background:#ecf2f8}.text-primary.focused[data-v-dbbab9e8],.text-primary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#ecf2f8}.text-primary.disabled[data-v-dbbab9e8],.text-primary.disabled[data-v-dbbab9e8]:hover,.text-primary.disabled.focused[data-v-dbbab9e8],.text-primary.disabled[data-v-dbbab9e8]:active{color:#979797}.outlined-secondary[data-v-dbbab9e8]{border:1px solid #20A8C3;background:#fff;color:#20a8c3}.outlined-secondary[data-v-dbbab9e8]:hover{background:#e8f0f4}.outlined-secondary.focused[data-v-dbbab9e8],.outlined-secondary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#e8f0f4}.outlined-secondary.disabled[data-v-dbbab9e8],.outlined-secondary.disabled[data-v-dbbab9e8]:hover,.outlined-secondary.disabled.focused[data-v-dbbab9e8],.outlined-secondary.disabled[data-v-dbbab9e8]:active{border:1px solid #979797;background:#f2f2f2;color:#979797}.filled-secondary[data-v-dbbab9e8]{border:1px solid #20A8C3;background:#20a8c3;color:#fff}.filled-secondary[data-v-dbbab9e8]:hover{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#20a8c3;box-shadow:0 1px 2px #0000004d,0 1px 3px 1px #00000026}.filled-secondary.focused[data-v-dbbab9e8],.filled-secondary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#ffffff14,#ffffff14),#20a8c3}.filled-secondary.disabled[data-v-dbbab9e8],.filled-secondary.disabled[data-v-dbbab9e8]:hover,.filled-secondary.disabled.focused[data-v-dbbab9e8],.filled-secondary.disabled[data-v-dbbab9e8]:active{border:1px solid #979797;background:#979797}.text-secondary[data-v-dbbab9e8]{border:1px solid transparent;background:#fff;color:#20a8c3}.text-secondary[data-v-dbbab9e8]:hover{background:#e8f0f4}.text-secondary.focused[data-v-dbbab9e8],.text-secondary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#e8f0f4}.text-secondary.disabled[data-v-dbbab9e8],.text-secondary.disabled[data-v-dbbab9e8]:hover,.text-secondary.disabled.focused[data-v-dbbab9e8],.text-secondary.disabled[data-v-dbbab9e8]:active{color:#979797}.responsive-button-dropdown[data-v-dbbab9e8]{min-width:300px;padding:9px 12px;box-sizing:border-box;border-radius:4px;background:#fff;box-shadow:0 4px 8px #00000026,0 1px 3px #0000004d;position:absolute;z-index:1000}.fill-whole .responsive-button-dropdown[data-v-dbbab9e8]{width:100%}.fit-content .responsive-button-dropdown[data-v-dbbab9e8]{width:fit-content}.responsive-button-dropdown.sub-dropdown[data-v-dbbab9e8]{width:fit-content!important}.responsive-button-dropdown-option[data-v-dbbab9e8]{width:100%!important;padding:12px 8px!important;border:none!important;flex-direction:row;align-items:flex-start!important;justify-content:space-between;column-gap:12px;background:#fff!important;color:#1c1b1f!important;font-family:Roboto!important;font-size:16px!important;font-weight:400!important;line-height:19px!important;cursor:pointer}.responsive-button-dropdown-option.hovered[data-v-dbbab9e8]{border-radius:4px!important;background:#faebe6!important}.responsive-button-dropdown-option.disabled[data-v-dbbab9e8],.responsive-button-dropdown-option.disabled.hovered[data-v-dbbab9e8]{color:#979797!important;cursor:not-allowed!important}.responsive-button-dropdown-option .button-name[data-v-dbbab9e8]{text-align:left}.non-web-responsive-button-nested-dropdown-button[data-v-dbbab9e8]{width:100%!important;box-sizing:border-box;padding:12px 8px;border-bottom:1px solid #BCCCDC;display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;column-gap:12px;background:#fff;color:#1c1b1f;font-family:Roboto;font-size:14px;font-weight:400;line-height:20px;letter-spacing:.25px;cursor:pointer}.fill-whole .non-web-responsive-button-dropdown-option[data-v-dbbab9e8],.fit-content .non-web-responsive-button-dropdown-option[data-v-dbbab9e8]{width:100%}.non-web-responsive-button-dropdown-option[data-v-dbbab9e8]{box-sizing:border-box;padding:12px 8px;display:flex;flex-direction:row;align-items:flex-start!important;justify-content:space-between;column-gap:12px;background:#fff;color:#1c1b1f;font-family:Roboto;font-size:14px;font-weight:400;line-height:20px;letter-spacing:.25px;cursor:pointer}.non-web-responsive-button-dropdown-option[data-v-dbbab9e8]:active{border-radius:4px!important;background:#faebe6!important}.non-web-responsive-button-dropdown-option.disabled[data-v-dbbab9e8],.non-web-responsive-button-dropdown-option.disabled[data-v-dbbab9e8]:active{color:#979797!important;cursor:not-allowed!important}@media only screen and (max-width:767px){.simplified-notification[data-v-dbbab9e8]{padding:8px 12px;gap:8px}.responsive-button.small[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.small[data-v-dbbab9e8]{width:fit-content;padding:7px 23px}.responsive-button.fit-content.small.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:7px 23px 7px 15px}.responsive-button.fit-content.small.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:7px 15px 7px 23px}.responsive-button.fit-content.small.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:7px 15px}.responsive-button.fill-whole.small[data-v-dbbab9e8]{width:100%;padding:7px}.responsive-button.medium[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.medium[data-v-dbbab9e8]{width:fit-content;padding:9px 23px}.responsive-button.fit-content.medium.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:9px 23px 9px 15px}.responsive-button.fit-content.medium.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:9px 15px 9px 23px}.responsive-button.fit-content.medium.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:9px 15px}.responsive-button.fill-whole.medium[data-v-dbbab9e8]{width:100%;padding:9px 7px}.responsive-button.large[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.large[data-v-dbbab9e8]{width:fit-content;padding:10px 23px}.responsive-button.fit-content.large.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:10px 23px 10px 15px}.responsive-button.fit-content.large.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:10px 15px 10px 23px}.responsive-button.fit-content.large.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:10px 15px}.responsive-button.fill-whole.large[data-v-dbbab9e8]{width:100%;padding:10px 7px}.responsive-button-dropdown-option[data-v-dbbab9e8]{font-size:14px!important;font-weight:400!important;line-height:20px!important;letter-spacing:.25px!important}.responsive-button-dropdown[data-v-dbbab9e8]{min-width:267px}}.input-box-unit-wrapper[data-v-8f8a50f7]{width:100%;display:flex;flex-direction:column;row-gap:8px}.input-box-unit[data-v-8f8a50f7]{height:fit-content;width:100%;box-sizing:border-box;padding:8px 11px;display:flex;align-items:center;column-gap:12px;border-radius:4px;border:1px solid #BCCCDC;background:#fff;cursor:pointer;position:relative}.input-box-unit[data-v-8f8a50f7]:hover{border:1px solid #DEE6ED}.input-box-unit.is-focus[data-v-8f8a50f7]{border:1px solid #9BB2CA}.input-box-unit.has-prefix[data-v-8f8a50f7],.input-box-unit.has-prefix.has-suffix[data-v-8f8a50f7]{padding:8px 11px}.input-box-unit.has-suffix[data-v-8f8a50f7]{padding-left:15px}.input-box-unit.error[data-v-8f8a50f7]{border:1px solid #DE583F}.input-box-unit.alert[data-v-8f8a50f7]{border:1px solid #E0961E}.input-box-unit.disabled[data-v-8f8a50f7]{background:#f2f2f2;cursor:not-allowed}.input-box-unit.disabled[data-v-8f8a50f7]:hover{border:1px solid #BCCCDC}.input-box[data-v-8f8a50f7]{flex:1;width:100%;padding:0;background-color:transparent;border:none;outline:none;color:#1c1b1f;font-family:Roboto;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.5px;height:24px}.input-box[data-v-8f8a50f7]::placeholder{color:#979797;font-family:Roboto;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.5px}.input-box[data-v-8f8a50f7]::-webkit-calendar-picker-indicator{background:url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4698_42665)'%3e%3cpath%20d='M15.8333%203.33464H15V1.66797H13.3333V3.33464H6.66667V1.66797H5V3.33464H4.16667C3.24167%203.33464%202.50833%204.08464%202.50833%205.0013L2.5%2016.668C2.5%2017.5846%203.24167%2018.3346%204.16667%2018.3346H15.8333C16.75%2018.3346%2017.5%2017.5846%2017.5%2016.668V5.0013C17.5%204.08464%2016.75%203.33464%2015.8333%203.33464ZM15.8333%2016.668H4.16667V8.33464H15.8333V16.668ZM15.8333%206.66797H4.16667V5.0013H15.8333V6.66797ZM10%2010.8346H14.1667V15.0013H10V10.8346Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4698_42665'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e") no-repeat center;height:24px}.prefix-wrapper[data-v-8f8a50f7],.suffix-wrapper[data-v-8f8a50f7]{flex-shrink:0;display:flex;align-items:center;column-gap:8px;min-width:24px;width:fit-content;height:24px}.suffix-wrapper.only-clear-icon[data-v-8f8a50f7]{min-width:20px}.suffix-wrapper.with-date-icon[data-v-8f8a50f7]{position:absolute;right:40px}.clear-icon[data-v-8f8a50f7]{width:20px;height:20px;opacity:.7;cursor:pointer}.clear-icon[data-v-8f8a50f7]:hover{opacity:1}.hide[data-v-8f8a50f7]{display:none}.message-container[data-v-8f8a50f7]{width:100%;box-sizing:border-box;font-family:Roboto;font-size:16px;font-weight:400;line-height:19px}.message-container.error[data-v-8f8a50f7]{color:#de583f}.message-container.alert[data-v-8f8a50f7]{color:#e0961e}@media only screen and (max-width:767px){.input-box-unit-wrapper[data-v-8f8a50f7]{row-gap:4px}.input-box-unit[data-v-8f8a50f7]{padding:7px 11px;column-gap:8px}.input-box-unit.has-prefix[data-v-8f8a50f7],.input-box-unit.has-prefix.has-suffix[data-v-8f8a50f7]{padding:7px 11px}.input-box-unit.has-suffix[data-v-8f8a50f7]{padding-left:13px}.input-box[data-v-8f8a50f7]{font-size:14px;line-height:20px;letter-spacing:.25px;height:20px}.input-box[data-v-8f8a50f7]::placeholder{font-size:14px;line-height:20px;letter-spacing:.25px}.input-box[data-v-8f8a50f7]::-webkit-calendar-picker-indicator{height:20px}.prefix-wrapper[data-v-8f8a50f7]{min-width:20px;height:20px}.suffix-wrapper[data-v-8f8a50f7]{min-width:20px;height:20px;column-gap:0px}.suffix-wrapper.with-date-icon[data-v-8f8a50f7]{right:32px}.clear-icon[data-v-8f8a50f7]{width:36px;height:36px;box-sizing:border-box;padding:10px}.message-container[data-v-8f8a50f7]{font-size:14px;line-height:16px}}.single-selector-unit-wrapper[data-v-6da857c3]{width:100%;display:flex;flex-direction:column;row-gap:8px}.single-selector[data-v-6da857c3]{height:fit-content;width:100%;box-sizing:border-box;padding:9px 12px 9px 16px;display:flex;align-items:center;justify-content:space-between;column-gap:12px;border-radius:4px;box-shadow:inset 0 0 0 1px #bcccdc;background:#fff;cursor:pointer;position:relative}.single-selector[data-v-6da857c3]:hover{box-shadow:inset 0 0 0 1px #dee6ed}.single-selector.has-prefix[data-v-6da857c3]{padding-left:12px}.single-selector.is-focus[data-v-6da857c3]{box-shadow:inset 0 0 0 1px #9bb2ca}.single-selector.error[data-v-6da857c3]{box-shadow:inset 0 0 0 1px #de583f}.single-selector.alert[data-v-6da857c3]{box-shadow:inset 0 0 0 1px #e0961e}.single-selector.disabled[data-v-6da857c3]{background:#f2f2f2;cursor:not-allowed}.single-selector.disabled[data-v-6da857c3]:hover{box-shadow:inset 0 0 0 1px #bcccdc}.selected-content[data-v-6da857c3]{flex:1;font-family:Roboto;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hide[data-v-6da857c3]{display:none}.content-text[data-v-6da857c3]{color:#1c1b1f}.placeholder[data-v-6da857c3]{color:#979797}.single-selector.disabled .content-text[data-v-6da857c3],.single-selector.disabled .placeholder[data-v-6da857c3]{color:#555}.filter-input[data-v-6da857c3]{width:100%;border:none;outline:none;color:#1c1b1f;font-family:Roboto;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.5px;height:24px;padding:0}.default-suffix-pic[data-v-6da857c3]{width:100%;height:100%}.prefix-wrapper[data-v-6da857c3],.suffix-wrapper[data-v-6da857c3]{display:flex;align-items:center;column-gap:4px;flex-shrink:0;min-width:24px;width:fit-content;height:24px}.rotate-0[data-v-6da857c3]{transform:rotate(0);transition:all .3s}.rotate-180[data-v-6da857c3]{transform:rotate(180deg)}.clear-icon[data-v-6da857c3]{width:20px;height:20px;opacity:.7;cursor:pointer}.clear-icon[data-v-6da857c3]:hover{opacity:1}.single-selector-dropdown[data-v-6da857c3]{width:inherit;height:fit-content;max-height:233px;padding:8px 11px;box-sizing:border-box;border-radius:4px;border:1px solid #BCCCDC;background:#fff;overflow:auto;position:absolute;z-index:1000;top:50px;left:0}.no-data-notes[data-v-6da857c3]{width:100%;box-sizing:border-box;padding:12px 8px;border-radius:4px;color:#979797;font-family:Roboto;font-size:16px;font-weight:500;line-height:19px;text-align:center}.dropdown-item[data-v-6da857c3]{width:100%;box-sizing:border-box;padding:12px 8px;border-radius:4px;color:#1c1b1f;font-family:Roboto;font-size:16px;font-weight:400;line-height:19px}.dropdown-item[data-v-6da857c3]:hover{background:#faebe6}.dropdown-item.selected[data-v-6da857c3]{font-weight:600}.message-container[data-v-6da857c3]{width:100%;box-sizing:border-box;font-family:Roboto;font-size:16px;font-weight:400;line-height:19px}.message-container.error[data-v-6da857c3]{color:#de583f}.message-container.alert[data-v-6da857c3]{color:#e0961e}@media only screen and (max-width:767px){.single-selector-unit-wrapper[data-v-6da857c3]{row-gap:4px}.single-selector[data-v-6da857c3]{column-gap:8px;padding:8px 12px 8px 14px}.selected-content[data-v-6da857c3]{font-size:14px;line-height:20px;letter-spacing:.25px}.filter-input[data-v-6da857c3]{font-size:14px;font-weight:400;line-height:20px;letter-spacing:.25px;height:20px}.prefix-wrapper[data-v-6da857c3],.suffix-wrapper[data-v-6da857c3]{min-width:20px;height:20px;display:flex;align-items:center;column-gap:0px;flex-shrink:0}.clear-icon[data-v-6da857c3]{width:36px;height:36px;right:32px;box-sizing:border-box;padding:10px}.single-selector-dropdown[data-v-6da857c3]{max-height:176px;padding:7px;top:40px}.no-data-notes[data-v-6da857c3]{font-size:14px;line-height:20px;letter-spacing:.25px}.dropdown-item[data-v-6da857c3]{padding:6px 4px;font-size:14px;font-weight:400;line-height:20px;letter-spacing:.25px}.message-container[data-v-6da857c3]{font-size:14px;line-height:16px}}.component-loading-spinner{position:absolute;top:0;left:0;width:100%;height:100%;background:#fffc;display:flex;justify-content:center;align-items:center;z-index:1000}.component-loading-spinner:after{content:"";width:30px;height:30px;border:3px solid #ccc;border-top-color:#20a8c3;border-radius:100%;animation:spin 2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { openBlock as n, createElementBlock as r, normalizeClass as _, createElementVNode as d, toDisplayString as p, createCommentVNode as a, renderSlot as f, ref as B, onMounted as I, onUnmounted as R, resolveComponent as J, resolveDirective as $, withDirectives as C, normalizeStyle as V, Fragment as v, renderList as y, createBlock as F, mergeProps as K, vModelDynamic as q, vModelText as G } from "vue";
|
|
3
|
+
const P = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.11973%209.29055L11.9997%2013.1705L15.8797%209.29055C16.2697%208.90055%2016.8997%208.90055%2017.2897%209.29055C17.6797%209.68055%2017.6797%2010.3105%2017.2897%2010.7005L12.6997%2015.2905C12.3097%2015.6805%2011.6797%2015.6805%2011.2897%2015.2905L6.69973%2010.7005C6.30973%2010.3105%206.30973%209.68055%206.69973%209.29055C7.08973%208.91055%207.72973%208.90055%208.11973%209.29055Z'%20fill='black'/%3e%3c/svg%3e", Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
default: P
|
|
6
|
+
}, Symbol.toStringTag, { value: "Module" })), g = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4130_71343'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20y='20'%20width='20'%20height='20'%20transform='rotate(-90%200%2020)'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4130_71343)'%3e%3cpath%20d='M12.8112%2010L7.8112%2015L6.64453%2013.8333L10.4779%2010L6.64453%206.16667L7.8112%205L12.8112%2010Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/svg%3e", X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
default: g
|
|
9
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4698_42665)'%3e%3cpath%20d='M15.8333%203.33464H15V1.66797H13.3333V3.33464H6.66667V1.66797H5V3.33464H4.16667C3.24167%203.33464%202.50833%204.08464%202.50833%205.0013L2.5%2016.668C2.5%2017.5846%203.24167%2018.3346%204.16667%2018.3346H15.8333C16.75%2018.3346%2017.5%2017.5846%2017.5%2016.668V5.0013C17.5%204.08464%2016.75%203.33464%2015.8333%203.33464ZM15.8333%2016.668H4.16667V8.33464H15.8333V16.668ZM15.8333%206.66797H4.16667V5.0013H15.8333V6.66797ZM10%2010.8346H14.1667V15.0013H10V10.8346Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4698_42665'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
default: Y
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), te = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4655_62118)'%3e%3cpath%20d='M12.9167%2011.6667H12.2583L12.025%2011.4417C12.8417%2010.4917%2013.3333%209.25833%2013.3333%207.91667C13.3333%204.925%2010.9083%202.5%207.91667%202.5C4.925%202.5%202.5%204.925%202.5%207.91667C2.5%2010.9083%204.925%2013.3333%207.91667%2013.3333C9.25833%2013.3333%2010.4917%2012.8417%2011.4417%2012.025L11.6667%2012.2583V12.9167L15.8333%2017.075L17.075%2015.8333L12.9167%2011.6667ZM7.91667%2011.6667C5.84167%2011.6667%204.16667%209.99167%204.16667%207.91667C4.16667%205.84167%205.84167%204.16667%207.91667%204.16667C9.99167%204.16667%2011.6667%205.84167%2011.6667%207.91667C11.6667%209.99167%209.99167%2011.6667%207.91667%2011.6667Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4655_62118'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
|
+
__proto__: null,
|
|
14
|
+
default: te
|
|
15
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4479_76910'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4479_76910)'%3e%3cpath%20d='M10%2012.8151L5%207.8151L6.16667%206.64844L10%2010.4818L13.8333%206.64844L15%207.8151L10%2012.8151Z'%20fill='%2320A8C3'/%3e%3c/g%3e%3c/svg%3e", oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
|
+
__proto__: null,
|
|
17
|
+
default: Z
|
|
18
|
+
}, Symbol.toStringTag, { value: "Module" })), z = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4276_5653'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4276_5653)'%3e%3cpath%20d='M10%2012.8151L5%207.8151L6.16667%206.64844L10%2010.4818L13.8333%206.64844L15%207.8151L10%2012.8151Z'%20fill='%231E4670'/%3e%3c/g%3e%3c/svg%3e", ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
|
+
__proto__: null,
|
|
20
|
+
default: z
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" })), E = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_2631_18409'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2631_18409)'%3e%3cpath%20d='M12%2015.3766L6%209.37656L7.4%207.97656L12%2012.5766L16.6%207.97656L18%209.37656L12%2015.3766Z'%20fill='%23555555'/%3e%3c/g%3e%3c/svg%3e", ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
|
+
__proto__: null,
|
|
23
|
+
default: E
|
|
24
|
+
}, Symbol.toStringTag, { value: "Module" })), re = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4705_71801'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4705_71801)'%3e%3cpath%20d='M10.0026%2013.3359C11.0443%2013.3359%2011.9298%2012.9715%2012.6593%2012.2426C13.3882%2011.5132%2013.7526%2010.6276%2013.7526%209.58594C13.7526%208.54427%2013.3882%207.65872%2012.6593%206.92927C11.9298%206.20038%2011.0443%205.83594%2010.0026%205.83594C8.96094%205.83594%208.07538%206.20038%207.34594%206.92927C6.61705%207.65872%206.2526%208.54427%206.2526%209.58594C6.2526%2010.6276%206.61705%2011.5132%207.34594%2012.2426C8.07538%2012.9715%208.96094%2013.3359%2010.0026%2013.3359ZM10.0026%2011.8359C9.3776%2011.8359%208.84649%2011.617%208.40927%2011.1793C7.97149%2010.742%207.7526%2010.2109%207.7526%209.58594C7.7526%208.96094%207.97149%208.42955%208.40927%207.99177C8.84649%207.55455%209.3776%207.33594%2010.0026%207.33594C10.6276%207.33594%2011.159%207.55455%2011.5968%207.99177C12.034%208.42955%2012.2526%208.96094%2012.2526%209.58594C12.2526%2010.2109%2012.034%2010.742%2011.5968%2011.1793C11.159%2011.617%2010.6276%2011.8359%2010.0026%2011.8359ZM10.0026%2015.8359C7.97483%2015.8359%206.1276%2015.2698%204.46094%2014.1376C2.79427%2013.0059%201.58594%2011.4887%200.835938%209.58594C1.58594%207.68316%202.79427%206.16566%204.46094%205.03344C6.1276%203.90177%207.97483%203.33594%2010.0026%203.33594C12.0304%203.33594%2013.8776%203.90177%2015.5443%205.03344C17.2109%206.16566%2018.4193%207.68316%2019.1693%209.58594C18.4193%2011.4887%2017.2109%2013.0059%2015.5443%2014.1376C13.8776%2015.2698%2012.0304%2015.8359%2010.0026%2015.8359ZM10.0026%2014.1693C11.572%2014.1693%2013.0132%2013.7559%2014.3259%2012.9293C15.6382%2012.1032%2016.6415%2010.9887%2017.3359%209.58594C16.6415%208.18316%2015.6382%207.06844%2014.3259%206.24177C13.0132%205.41566%2011.572%205.0026%2010.0026%205.0026C8.43316%205.0026%206.99205%205.41566%205.67927%206.24177C4.36705%207.06844%203.36372%208.18316%202.66927%209.58594C3.36372%2010.9887%204.36705%2012.1032%205.67927%2012.9293C6.99205%2013.7559%208.43316%2014.1693%2010.0026%2014.1693Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/svg%3e", le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
default: re
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), de = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4705_71805'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4705_71805)'%3e%3cpath%20d='M13.4193%2011.0859L12.2109%209.8776C12.3359%209.22483%2012.1484%208.61372%2011.6484%208.04427C11.1484%207.47483%2010.5026%207.2526%209.71094%207.3776L8.5026%206.16927C8.73872%206.05816%208.9783%205.97483%209.22135%205.91927C9.46441%205.86372%209.72483%205.83594%2010.0026%205.83594C11.0443%205.83594%2011.9297%206.20052%2012.6589%206.92969C13.388%207.65885%2013.7526%208.54427%2013.7526%209.58594C13.7526%209.86372%2013.7248%2010.1241%2013.6693%2010.3672C13.6137%2010.6102%2013.5304%2010.8498%2013.4193%2011.0859ZM16.0859%2013.7109L14.8776%2012.5443C15.4054%2012.1415%2015.8741%2011.7005%2016.2839%2011.2214C16.6936%2010.7422%2017.0443%2010.197%2017.3359%209.58594C16.6415%208.18316%2015.645%207.06858%2014.3464%206.24219C13.0477%205.4158%2011.5998%205.0026%2010.0026%205.0026C9.59983%205.0026%209.20399%205.03038%208.8151%205.08594C8.42622%205.14149%208.04427%205.22483%207.66927%205.33594L6.3776%204.04427C6.94705%203.80816%207.53038%203.63108%208.1276%203.51302C8.72483%203.39497%209.34983%203.33594%2010.0026%203.33594C12.0998%203.33594%2013.9679%203.9158%2015.6068%205.07552C17.2457%206.23524%2018.4332%207.73872%2019.1693%209.58594C18.8498%2010.4054%2018.4297%2011.1658%2017.9089%2011.8672C17.388%2012.5686%2016.7804%2013.1832%2016.0859%2013.7109ZM16.5026%2018.8359L13.0026%2015.3776C12.5165%2015.5304%2012.0269%2015.645%2011.5339%2015.7214C11.0408%2015.7977%2010.5304%2015.8359%2010.0026%2015.8359C7.90538%2015.8359%206.03733%2015.2561%204.39844%2014.0964C2.75955%2012.9366%201.57205%2011.4332%200.835938%209.58594C1.1276%208.84983%201.49566%208.1658%201.9401%207.53385C2.38455%206.90191%202.89149%206.33594%203.46094%205.83594L1.16927%203.5026L2.33594%202.33594L17.6693%2017.6693L16.5026%2018.8359ZM4.6276%207.0026C4.22483%207.36372%203.85677%207.75955%203.52344%208.1901C3.1901%208.62066%202.90538%209.08594%202.66927%209.58594C3.36372%2010.9887%204.36024%2012.1033%205.65885%2012.9297C6.95747%2013.7561%208.40538%2014.1693%2010.0026%2014.1693C10.2804%2014.1693%2010.5512%2014.1519%2010.8151%2014.1172C11.079%2014.0825%2011.3498%2014.0443%2011.6276%2014.0026L10.8776%2013.2109C10.7248%2013.2526%2010.579%2013.2839%2010.4401%2013.3047C10.3012%2013.3255%2010.1554%2013.3359%2010.0026%2013.3359C8.96094%2013.3359%208.07552%2012.9714%207.34635%2012.2422C6.61719%2011.513%206.2526%2010.6276%206.2526%209.58594C6.2526%209.43316%206.26302%209.28733%206.28385%209.14844C6.30469%209.00955%206.33594%208.86372%206.3776%208.71094L4.6276%207.0026Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/svg%3e", _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
|
+
__proto__: null,
|
|
29
|
+
default: de
|
|
30
|
+
}, Symbol.toStringTag, { value: "Module" })), T = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2451_26188)'%3e%3cpath%20d='M12%202C6.48%202%202%206.48%202%2012C2%2017.52%206.48%2022%2012%2022C17.52%2022%2022%2017.52%2022%2012C22%206.48%2017.52%202%2012%202ZM10%2017L5%2012L6.41%2010.59L10%2014.17L17.59%206.58L19%208L10%2017Z'%20fill='%2384BC3B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2451_26188'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31
|
+
__proto__: null,
|
|
32
|
+
default: T
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), b = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4568_73894'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4568_73894)'%3e%3cpath%20d='M10%2012.8151L5%207.8151L6.16667%206.64844L10%2010.4818L13.8333%206.64844L15%207.8151L10%2012.8151Z'%20fill='%23979797'/%3e%3c/g%3e%3c/svg%3e", ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34
|
+
__proto__: null,
|
|
35
|
+
default: b
|
|
36
|
+
}, Symbol.toStringTag, { value: "Module" })), x = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4130_71343'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20y='20'%20width='20'%20height='20'%20transform='rotate(-90%200%2020)'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4130_71343)'%3e%3cpath%20d='M12.8112%2010L7.8112%2015L6.64453%2013.8333L10.4779%2010L6.64453%206.16667L7.8112%205L12.8112%2010Z'%20fill='%23979797'/%3e%3c/g%3e%3c/svg%3e", he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
|
+
__proto__: null,
|
|
38
|
+
default: x
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" })), k = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2451_26209)'%3e%3cpath%20d='M12%202C6.48%202%202%206.48%202%2012C2%2017.52%206.48%2022%2012%2022C17.52%2022%2022%2017.52%2022%2012C22%206.48%2017.52%202%2012%202ZM13%2017H11V11H13V17ZM13%209H11V7H13V9Z'%20fill='%233498DB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2451_26209'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
40
|
+
__proto__: null,
|
|
41
|
+
default: k
|
|
42
|
+
}, Symbol.toStringTag, { value: "Module" })), L = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4655_66375'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='16'%20height='16'%3e%3crect%20width='16'%20height='16'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4655_66375)'%3e%3cpath%20d='M5.5987%2011.3359L7.9987%208.93594L10.3987%2011.3359L11.332%2010.4026L8.93203%208.0026L11.332%205.6026L10.3987%204.66927L7.9987%207.06927L5.5987%204.66927L4.66536%205.6026L7.06536%208.0026L4.66536%2010.4026L5.5987%2011.3359ZM7.9987%2014.6693C7.07648%2014.6693%206.20981%2014.4943%205.3987%2014.1443C4.58759%2013.7943%203.88203%2013.3193%203.28203%2012.7193C2.68203%2012.1193%202.20703%2011.4137%201.85703%2010.6026C1.50703%209.79149%201.33203%208.92483%201.33203%208.0026C1.33203%207.08038%201.50703%206.21372%201.85703%205.4026C2.20703%204.59149%202.68203%203.88594%203.28203%203.28594C3.88203%202.68594%204.58759%202.21094%205.3987%201.86094C6.20981%201.51094%207.07648%201.33594%207.9987%201.33594C8.92092%201.33594%209.78759%201.51094%2010.5987%201.86094C11.4098%202.21094%2012.1154%202.68594%2012.7154%203.28594C13.3154%203.88594%2013.7904%204.59149%2014.1404%205.4026C14.4904%206.21372%2014.6654%207.08038%2014.6654%208.0026C14.6654%208.92483%2014.4904%209.79149%2014.1404%2010.6026C13.7904%2011.4137%2013.3154%2012.1193%2012.7154%2012.7193C12.1154%2013.3193%2011.4098%2013.7943%2010.5987%2014.1443C9.78759%2014.4943%208.92092%2014.6693%207.9987%2014.6693ZM7.9987%2013.3359C9.48759%2013.3359%2010.7487%2012.8193%2011.782%2011.7859C12.8154%2010.7526%2013.332%209.49149%2013.332%208.0026C13.332%206.51372%2012.8154%205.2526%2011.782%204.21927C10.7487%203.18594%209.48759%202.66927%207.9987%202.66927C6.50981%202.66927%205.2487%203.18594%204.21536%204.21927C3.18203%205.2526%202.66536%206.51372%202.66536%208.0026C2.66536%209.49149%203.18203%2010.7526%204.21536%2011.7859C5.2487%2012.8193%206.50981%2013.3359%207.9987%2013.3359Z'%20fill='%23555555'/%3e%3c/g%3e%3c/svg%3e", pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43
|
+
__proto__: null,
|
|
44
|
+
default: L
|
|
45
|
+
}, Symbol.toStringTag, { value: "Module" })), U = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2557_13935)'%3e%3cpath%20d='M15.8332%205.33906L14.6582%204.16406L9.99984%208.8224L5.3415%204.16406L4.1665%205.33906L8.82484%209.9974L4.1665%2014.6557L5.3415%2015.8307L9.99984%2011.1724L14.6582%2015.8307L15.8332%2014.6557L11.1748%209.9974L15.8332%205.33906Z'%20fill='%23292929'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2557_13935'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46
|
+
__proto__: null,
|
|
47
|
+
default: U
|
|
48
|
+
}, Symbol.toStringTag, { value: "Module" })), N = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2451_26202)'%3e%3cpath%20d='M12%202C6.47%202%202%206.47%202%2012C2%2017.53%206.47%2022%2012%2022C17.53%2022%2022%2017.53%2022%2012C22%206.47%2017.53%202%2012%202ZM17%2015.59L15.59%2017L12%2013.41L8.41%2017L7%2015.59L10.59%2012L7%208.41L8.41%207L12%2010.59L15.59%207L17%208.41L13.41%2012L17%2015.59Z'%20fill='%23DE583F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2451_26202'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49
|
+
__proto__: null,
|
|
50
|
+
default: N
|
|
51
|
+
}, Symbol.toStringTag, { value: "Module" })), W = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4479_76907'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4479_76907)'%3e%3cpath%20d='M10%2012.8151L5%207.8151L6.16667%206.64844L10%2010.4818L13.8333%206.64844L15%207.8151L10%2012.8151Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
52
|
+
__proto__: null,
|
|
53
|
+
default: W
|
|
54
|
+
}, Symbol.toStringTag, { value: "Module" })), A = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1771_11330)'%3e%3cpath%20d='M1%2021H23L12%202L1%2021ZM13%2018H11V16H13V18ZM13%2014H11V10H13V14Z'%20fill='%23E0961E'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1771_11330'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
55
|
+
__proto__: null,
|
|
56
|
+
default: A
|
|
57
|
+
}, Symbol.toStringTag, { value: "Module" })), m = (e, t) => {
|
|
58
|
+
const s = e.__vccOpts || e;
|
|
59
|
+
for (const [h, i] of t)
|
|
60
|
+
s[h] = i;
|
|
61
|
+
return s;
|
|
62
|
+
}, ve = {
|
|
63
|
+
props: {
|
|
64
|
+
content: String,
|
|
65
|
+
build_in_theme: {
|
|
66
|
+
//ENUM: blue, red, yellow, green
|
|
67
|
+
type: String,
|
|
68
|
+
default: "blue"
|
|
69
|
+
},
|
|
70
|
+
title: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: ""
|
|
73
|
+
},
|
|
74
|
+
customized_alert_icon_src: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: ""
|
|
77
|
+
},
|
|
78
|
+
customized_class: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: ""
|
|
81
|
+
},
|
|
82
|
+
with_close_btn: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !0
|
|
85
|
+
},
|
|
86
|
+
mounted_programmatically: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
},
|
|
90
|
+
hide_after: {
|
|
91
|
+
type: Number,
|
|
92
|
+
default: 0
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
mounted() {
|
|
96
|
+
console.log("auto hide", !this.hide_after, typeof this.hide_after), this.hide_after && typeof this.hide_after == "number" && this.autoClose();
|
|
97
|
+
},
|
|
98
|
+
computed: {
|
|
99
|
+
alert_icon_src() {
|
|
100
|
+
return this.customized_alert_icon_src ? this.customized_alert_icon_src : this.build_in_theme == "blue" ? k : this.build_in_theme == "yellow" ? A : this.build_in_theme == "red" ? N : this.build_in_theme == "green" ? T : k;
|
|
101
|
+
},
|
|
102
|
+
theme_class() {
|
|
103
|
+
return this.build_in_theme;
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
emits: ["close"],
|
|
107
|
+
methods: {
|
|
108
|
+
autoClose() {
|
|
109
|
+
setTimeout(() => {
|
|
110
|
+
this.manuallyClose();
|
|
111
|
+
}, this.hide_after), this.hide_after && (this.$el.classList.add("fade-out"), this.$el.style.setProperty("--fade-out-duration-ms", `${this.hide_after}ms`));
|
|
112
|
+
},
|
|
113
|
+
manuallyClose() {
|
|
114
|
+
if (this.mounted_programmatically) {
|
|
115
|
+
const t = this.$el ? this.$el.parentElement : null;
|
|
116
|
+
if (t) {
|
|
117
|
+
t.remove();
|
|
118
|
+
var e = this.$attrs.notification_instances_collection[this.$attrs.id];
|
|
119
|
+
e.unmount(), e._container = null, e = null, delete this.$attrs.notification_instances_collection[this.$attrs.id];
|
|
120
|
+
}
|
|
121
|
+
} else
|
|
122
|
+
this.$emit("close", this.$el);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}, ye = { class: "prefix-icon-container" }, be = ["src"], ke = { class: "notifiction-text" }, Ce = { class: "content-wrapper" }, xe = {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: "title"
|
|
128
|
+
}, Le = {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: "content-details"
|
|
131
|
+
}, Se = ["innerHTML"], Oe = { class: "close-btn-container" };
|
|
132
|
+
function Me(e, t, s, h, i, o) {
|
|
133
|
+
return n(), r("div", {
|
|
134
|
+
class: _([
|
|
135
|
+
"simplified-notification",
|
|
136
|
+
o.theme_class,
|
|
137
|
+
s.customized_class
|
|
138
|
+
])
|
|
139
|
+
}, [
|
|
140
|
+
d("div", ye, [
|
|
141
|
+
d("img", {
|
|
142
|
+
src: o.alert_icon_src,
|
|
143
|
+
class: "prefix_icon"
|
|
144
|
+
}, null, 8, be)
|
|
145
|
+
]),
|
|
146
|
+
d("div", ke, [
|
|
147
|
+
d("div", Ce, [
|
|
148
|
+
s.title ? (n(), r("div", xe, p(s.title), 1)) : a("", !0),
|
|
149
|
+
f(e.$slots, "content", {}, () => [
|
|
150
|
+
s.content ? (n(), r("div", Le, [
|
|
151
|
+
d("div", { innerHTML: s.content }, null, 8, Se)
|
|
152
|
+
])) : a("", !0)
|
|
153
|
+
], !0)
|
|
154
|
+
])
|
|
155
|
+
]),
|
|
156
|
+
d("div", Oe, [
|
|
157
|
+
s.with_close_btn ? (n(), r("img", {
|
|
158
|
+
key: 0,
|
|
159
|
+
src: U,
|
|
160
|
+
class: "close-btn",
|
|
161
|
+
onClick: t[0] || (t[0] = (...l) => o.manuallyClose && o.manuallyClose(...l))
|
|
162
|
+
})) : a("", !0)
|
|
163
|
+
])
|
|
164
|
+
], 2);
|
|
165
|
+
}
|
|
166
|
+
const De = /* @__PURE__ */ m(ve, [["render", Me], ["__scopeId", "data-v-2eec1ba2"]]);
|
|
167
|
+
function Be() {
|
|
168
|
+
const e = B(0), t = B(0), s = () => {
|
|
169
|
+
e.value = window.innerWidth, t.value = window.innerHeight;
|
|
170
|
+
};
|
|
171
|
+
return I(() => {
|
|
172
|
+
s(), window.addEventListener("resize", s);
|
|
173
|
+
}), R(() => {
|
|
174
|
+
window.removeEventListener("resize", s);
|
|
175
|
+
}), { width: e, height: t };
|
|
176
|
+
}
|
|
177
|
+
const Ve = {
|
|
178
|
+
name: "ResponsiveButton",
|
|
179
|
+
// for recognizing itself when it calls itself inside the component
|
|
180
|
+
inheritAttrs: !1,
|
|
181
|
+
props: {
|
|
182
|
+
display_name: {
|
|
183
|
+
type: String,
|
|
184
|
+
default: "button"
|
|
185
|
+
},
|
|
186
|
+
size: {
|
|
187
|
+
//reponsive for mobile version
|
|
188
|
+
//ENUM: xsmall, small, medium, large
|
|
189
|
+
//NOTES: xsmall -> height:36px; small -> height:40px; medium -> height:42px; large -> height:44px;
|
|
190
|
+
type: String,
|
|
191
|
+
default: "small"
|
|
192
|
+
},
|
|
193
|
+
width_type: {
|
|
194
|
+
//ENUM: fill-whole, fit-content
|
|
195
|
+
type: String,
|
|
196
|
+
default: "fit-content"
|
|
197
|
+
},
|
|
198
|
+
build_in_theme: {
|
|
199
|
+
//ENUM: outlined-primary, filled-primary, text-primary, outlined-secondary, filled-secondary, text-secondary
|
|
200
|
+
type: String,
|
|
201
|
+
default: "outlined-primary"
|
|
202
|
+
},
|
|
203
|
+
customized_class: {
|
|
204
|
+
type: String,
|
|
205
|
+
default: ""
|
|
206
|
+
},
|
|
207
|
+
disabled: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
default: !1
|
|
210
|
+
},
|
|
211
|
+
dropdown_options: {
|
|
212
|
+
type: Array,
|
|
213
|
+
default: () => []
|
|
214
|
+
},
|
|
215
|
+
is_dropdown_option: {
|
|
216
|
+
type: Boolean,
|
|
217
|
+
default: !1
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
mounted() {
|
|
221
|
+
!this.is_dropdown_option && this.has_dropdown && (document.addEventListener("click", (e) => this.closeWhenClickOutsideDropdownButton(e)), this.nested_dropdown_option_button_history_stack = []), this.is_dropdown_option_hovered && this.has_dropdown && (this.is_dropdown_visibile = !0);
|
|
222
|
+
},
|
|
223
|
+
unmounted() {
|
|
224
|
+
!this.is_dropdown_option && this.has_dropdown && document.removeEventListener("click", (e) => this.closeWhenClickOutsideDropdownButton(e));
|
|
225
|
+
},
|
|
226
|
+
setup() {
|
|
227
|
+
const { width: e } = Be();
|
|
228
|
+
return {
|
|
229
|
+
width: e
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
data() {
|
|
233
|
+
return {
|
|
234
|
+
is_dropdown_visibile: !1,
|
|
235
|
+
currently_hovered_dropdown_option_display_name: "",
|
|
236
|
+
dropdown_position_data: {},
|
|
237
|
+
nested_dropdown_option_button_history_stack: null,
|
|
238
|
+
loading: !1
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
emits: [
|
|
242
|
+
"click",
|
|
243
|
+
"update-currently-hovered-dropdown-option",
|
|
244
|
+
"add-nested-dropdown-history-stack",
|
|
245
|
+
"remove-nested-dropdown-history-stack"
|
|
246
|
+
],
|
|
247
|
+
computed: {
|
|
248
|
+
has_prefix() {
|
|
249
|
+
return this.$slots.prefix;
|
|
250
|
+
},
|
|
251
|
+
has_suffix() {
|
|
252
|
+
return this.$slots.suffix;
|
|
253
|
+
},
|
|
254
|
+
has_dropdown() {
|
|
255
|
+
return this.dropdown_options && Array.isArray(this.dropdown_options) && this.dropdown_options.length > 0;
|
|
256
|
+
},
|
|
257
|
+
dynamicDefaultDropdownDownArrow() {
|
|
258
|
+
return this.build_in_theme == "filled-primary" || this.build_in_theme == "filled-secondary" ? W : this.build_in_theme == "outlined-secondary" || this.build_in_theme == "text-secondary" ? this.disabled ? b : Z : this.disabled ? b : z;
|
|
259
|
+
},
|
|
260
|
+
web_version() {
|
|
261
|
+
return this.width > 1024;
|
|
262
|
+
},
|
|
263
|
+
mobile_version() {
|
|
264
|
+
return this.width <= 767;
|
|
265
|
+
},
|
|
266
|
+
is_dropdown_option_hovered() {
|
|
267
|
+
if (this.is_dropdown_option && this.has_dropdown && !this.$attrs.currently_hovered_dropdown_option_display_name && this.$attrs.nested_dropdown_option_button_history_stack && this.$attrs.nested_dropdown_option_button_history_stack.length > 0) {
|
|
268
|
+
for (const e of this.$attrs.nested_dropdown_option_button_history_stack)
|
|
269
|
+
if (e.display_name == this.display_name && JSON.stringify(e.dropdown_options) == JSON.stringify(this.dropdown_options))
|
|
270
|
+
return this.$emit("update-currently-hovered-dropdown-option", this.display_name), this.is_dropdown_visibile = !0, setTimeout(() => {
|
|
271
|
+
this.calculateDropdownPosition();
|
|
272
|
+
}, 100), !0;
|
|
273
|
+
}
|
|
274
|
+
return this.is_dropdown_option && this.$attrs.currently_hovered_dropdown_option_display_name == this.display_name;
|
|
275
|
+
},
|
|
276
|
+
show_dropdown() {
|
|
277
|
+
return this.is_dropdown_visibile && this.has_dropdown;
|
|
278
|
+
},
|
|
279
|
+
non_web_version_nested_dropdown_option_shown() {
|
|
280
|
+
return this.nested_dropdown_option_button_history_stack && this.nested_dropdown_option_button_history_stack.length > 0 ? this.nested_dropdown_option_button_history_stack[this.nested_dropdown_option_button_history_stack.length - 1].display_name : null;
|
|
281
|
+
},
|
|
282
|
+
non_web_version_dropdown_options() {
|
|
283
|
+
return this.nested_dropdown_option_button_history_stack && this.nested_dropdown_option_button_history_stack.length > 0 ? this.nested_dropdown_option_button_history_stack[this.nested_dropdown_option_button_history_stack.length - 1].dropdown_options : this.dropdown_options;
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
watch: {
|
|
287
|
+
is_dropdown_option_hovered(e) {
|
|
288
|
+
this.has_dropdown && !this.disabled && (this.is_dropdown_visibile = e, e ? this.$emit("add-nested-dropdown-history-stack", {
|
|
289
|
+
display_name: this.display_name,
|
|
290
|
+
dropdown_options: this.dropdown_options
|
|
291
|
+
}) : this.$emit("remove-nested-dropdown-history-stack", {
|
|
292
|
+
display_name: this.display_name,
|
|
293
|
+
dropdown_options: this.dropdown_options
|
|
294
|
+
}));
|
|
295
|
+
},
|
|
296
|
+
// nested_dropdown_option_button_history_stack:{
|
|
297
|
+
// deep:true,
|
|
298
|
+
// handler(newVal){
|
|
299
|
+
// console.log('nested_dropdown_option_button_history_stack', newVal);
|
|
300
|
+
// }
|
|
301
|
+
// },
|
|
302
|
+
show_dropdown(e) {
|
|
303
|
+
e ? this.$nextTick(() => {
|
|
304
|
+
this.calculateDropdownPosition();
|
|
305
|
+
}) : (this.dropdown_position_data = {}, this.currently_hovered_dropdown_option_display_name = "", this.is_dropdown_option || (this.nested_dropdown_option_button_history_stack = []));
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
methods: {
|
|
309
|
+
closeWhenClickOutsideDropdownButton(e) {
|
|
310
|
+
this.show_dropdown && this.$refs["responsive-button"] && !this.$refs["responsive-button"].contains(e.target) && this.$refs["responsive-button-dropdown"] && !this.$refs["responsive-button-dropdown"].contains(e.target) && (this.is_dropdown_visibile = !1);
|
|
311
|
+
},
|
|
312
|
+
handleClick() {
|
|
313
|
+
this.disabled || (this.has_dropdown ? this.is_dropdown_option || (this.is_dropdown_visibile = !this.is_dropdown_visibile) : this.$emit("click", this.display_name));
|
|
314
|
+
},
|
|
315
|
+
handleMouseEnterButton() {
|
|
316
|
+
this.is_dropdown_option && this.$emit("update-currently-hovered-dropdown-option", this.display_name);
|
|
317
|
+
},
|
|
318
|
+
updateCurrentlyHoveredDropdownOption(e) {
|
|
319
|
+
this.currently_hovered_dropdown_option_display_name = e;
|
|
320
|
+
},
|
|
321
|
+
updateNestedDropdownHistoryStack(e) {
|
|
322
|
+
this.is_dropdown_option ? this.$emit("add-nested-dropdown-history-stack", e) : this.nested_dropdown_option_button_history_stack.push(e);
|
|
323
|
+
},
|
|
324
|
+
removeNestedDropdownHistoryStack(e) {
|
|
325
|
+
if (this.is_dropdown_option)
|
|
326
|
+
this.$emit("remove-nested-dropdown-history-stack", e);
|
|
327
|
+
else
|
|
328
|
+
for (let t = this.nested_dropdown_option_button_history_stack.length - 1; t >= 0; t--) {
|
|
329
|
+
const s = this.nested_dropdown_option_button_history_stack[t];
|
|
330
|
+
if (s.display_name == e.display_name && JSON.stringify(s.dropdown_options) == JSON.stringify(e.dropdown_options)) {
|
|
331
|
+
this.nested_dropdown_option_button_history_stack.splice(t);
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
nonWebRemoveNestedDropdownHistoryStack(e) {
|
|
337
|
+
setTimeout(() => {
|
|
338
|
+
this.removeNestedDropdownHistoryStack(e);
|
|
339
|
+
}, 50);
|
|
340
|
+
},
|
|
341
|
+
clickWebDropdownOption(e) {
|
|
342
|
+
this.$emit("click", e), this.is_dropdown_option || (this.is_dropdown_visibile = !1);
|
|
343
|
+
},
|
|
344
|
+
clickNonWebDropdownOption(e) {
|
|
345
|
+
e.disabled || (e.dropdown_options ? setTimeout(() => {
|
|
346
|
+
var t;
|
|
347
|
+
for (let s = this.nested_dropdown_option_button_history_stack.length - 1; s >= 0; s--) {
|
|
348
|
+
const h = this.nested_dropdown_option_button_history_stack[s];
|
|
349
|
+
if (h.display_name == e.display_name && JSON.stringify(h.dropdown_options) == JSON.stringify(e.dropdown_options)) {
|
|
350
|
+
t = !0, this.nested_dropdown_option_button_history_stack.splice(s);
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
t || this.nested_dropdown_option_button_history_stack.push({
|
|
355
|
+
display_name: e.display_name,
|
|
356
|
+
dropdown_options: e.dropdown_options
|
|
357
|
+
});
|
|
358
|
+
}, 50) : (this.$emit("click", e.display_name), this.is_dropdown_visibile = !1));
|
|
359
|
+
},
|
|
360
|
+
calculateDropdownPosition() {
|
|
361
|
+
const e = {}, t = this.$refs["responsive-button"], s = this.$refs["responsive-button-dropdown"];
|
|
362
|
+
if (t && s) {
|
|
363
|
+
const h = window.innerWidth, i = window.innerHeight, o = t.getBoundingClientRect(), l = o.right, w = o.bottom, c = o.left, u = o.width, S = o.height, O = s.getBoundingClientRect(), M = O.height, D = O.width;
|
|
364
|
+
this.is_dropdown_option ? (i - w > M + (this.mobile_version ? 4 : 8) ? e.top = "0px" : e.bottom = "0px", h - l > D + (this.mobile_version ? 4 : 8) ? e.left = u + 12 + 8 + "px" : e.right = u + 12 + 8 + "px") : (i - w > M + (this.mobile_version ? 4 : 8) ? e.top = S + (this.mobile_version ? 4 : 8) + "px" : e.bottom = S + (this.mobile_version ? 4 : 8) + "px", h - c > D + (this.mobile_version ? 4 : 8) ? e.left = "0px" : e.right = "0px");
|
|
365
|
+
}
|
|
366
|
+
this.dropdown_position_data = e;
|
|
367
|
+
},
|
|
368
|
+
// expose
|
|
369
|
+
setLoading(e) {
|
|
370
|
+
this.loading = e;
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
expose: ["setLoading"]
|
|
374
|
+
}, je = { class: "button-content" }, He = {
|
|
375
|
+
key: 0,
|
|
376
|
+
class: "prefix-wrapper"
|
|
377
|
+
}, Pe = {
|
|
378
|
+
key: 1,
|
|
379
|
+
class: "button-name"
|
|
380
|
+
}, Ze = {
|
|
381
|
+
key: 2,
|
|
382
|
+
class: "suffix-wrapper"
|
|
383
|
+
}, ze = {
|
|
384
|
+
key: 3,
|
|
385
|
+
class: "outest-responsive-dropdown-button-default-suffix suffix-wrapper"
|
|
386
|
+
}, Ee = ["src"], Te = {
|
|
387
|
+
key: 0,
|
|
388
|
+
class: "nested-dropdown-default-suffix suffix-wrapper"
|
|
389
|
+
}, Ue = {
|
|
390
|
+
key: 0,
|
|
391
|
+
src: g
|
|
392
|
+
}, Ne = {
|
|
393
|
+
key: 1,
|
|
394
|
+
src: x
|
|
395
|
+
}, We = ["onClick"], Ae = { class: "non-web-dropdown-option-display-name" }, Ie = {
|
|
396
|
+
key: 0,
|
|
397
|
+
class: "non-web-responsive-nested-dropdown-option-default-suffix suffix-wrapper"
|
|
398
|
+
}, Re = {
|
|
399
|
+
key: 0,
|
|
400
|
+
src: g
|
|
401
|
+
}, Je = {
|
|
402
|
+
key: 1,
|
|
403
|
+
src: x
|
|
404
|
+
};
|
|
405
|
+
function $e(e, t, s, h, i, o) {
|
|
406
|
+
const l = J("ResponsiveButton", !0), w = $("component-loading");
|
|
407
|
+
return C((n(), r("div", {
|
|
408
|
+
class: _(["responsive-button-wrapper", s.width_type]),
|
|
409
|
+
ref: "responsive-button-wrapper"
|
|
410
|
+
}, [
|
|
411
|
+
d("div", {
|
|
412
|
+
class: _([
|
|
413
|
+
"responsive-button",
|
|
414
|
+
s.size,
|
|
415
|
+
s.width_type,
|
|
416
|
+
{ disabled: s.disabled },
|
|
417
|
+
{ "no-display-name": !s.display_name },
|
|
418
|
+
{ "has-prefix": o.has_prefix },
|
|
419
|
+
{ "has-suffix": o.has_suffix },
|
|
420
|
+
s.build_in_theme,
|
|
421
|
+
s.customized_class,
|
|
422
|
+
// only works when this button has dropdown
|
|
423
|
+
{ hovered: o.is_dropdown_option_hovered },
|
|
424
|
+
{ focused: o.show_dropdown }
|
|
425
|
+
]),
|
|
426
|
+
ref: "responsive-button",
|
|
427
|
+
onClick: t[0] || (t[0] = (c) => o.handleClick()),
|
|
428
|
+
onMouseenter: t[1] || (t[1] = (c) => o.handleMouseEnterButton())
|
|
429
|
+
}, [
|
|
430
|
+
d("div", je, [
|
|
431
|
+
e.$slots.prefix ? (n(), r("div", He, [
|
|
432
|
+
f(e.$slots, "prefix", {}, void 0, !0)
|
|
433
|
+
])) : a("", !0),
|
|
434
|
+
s.display_name ? (n(), r("div", Pe, p(s.display_name), 1)) : a("", !0),
|
|
435
|
+
e.$slots.suffix ? (n(), r("div", Ze, [
|
|
436
|
+
f(e.$slots, "suffix", {}, void 0, !0)
|
|
437
|
+
])) : a("", !0),
|
|
438
|
+
!s.is_dropdown_option && o.has_dropdown ? (n(), r("div", ze, [
|
|
439
|
+
d("img", {
|
|
440
|
+
src: o.dynamicDefaultDropdownDownArrow,
|
|
441
|
+
class: _([
|
|
442
|
+
"rotate-0",
|
|
443
|
+
{ "rotate-180": o.show_dropdown }
|
|
444
|
+
])
|
|
445
|
+
}, null, 10, Ee)
|
|
446
|
+
])) : a("", !0)
|
|
447
|
+
]),
|
|
448
|
+
s.is_dropdown_option && o.has_dropdown ? (n(), r("div", Te, [
|
|
449
|
+
s.disabled ? (n(), r("img", Ne)) : (n(), r("img", Ue))
|
|
450
|
+
])) : a("", !0)
|
|
451
|
+
], 34),
|
|
452
|
+
o.web_version && o.show_dropdown ? (n(), r("div", {
|
|
453
|
+
key: 0,
|
|
454
|
+
ref: "responsive-button-dropdown",
|
|
455
|
+
class: _([
|
|
456
|
+
"responsive-button-dropdown",
|
|
457
|
+
{ "sub-dropdown": s.is_dropdown_option }
|
|
458
|
+
]),
|
|
459
|
+
style: V(i.dropdown_position_data)
|
|
460
|
+
}, [
|
|
461
|
+
(n(!0), r(v, null, y(s.dropdown_options, (c) => (n(), F(l, K({
|
|
462
|
+
key: `${s.display_name.replaceAll(" ", "-")}-dropdown-item-${c.display_name.replaceAll(" ", "-")}`,
|
|
463
|
+
ref_for: !0
|
|
464
|
+
}, c, {
|
|
465
|
+
customized_class: "responsive-button-dropdown-option",
|
|
466
|
+
width_type: "fill-whole",
|
|
467
|
+
is_dropdown_option: !0,
|
|
468
|
+
nested_dropdown_option_button_history_stack: s.is_dropdown_option ? e.$attrs.nested_dropdown_option_button_history_stack : i.nested_dropdown_option_button_history_stack,
|
|
469
|
+
currently_hovered_dropdown_option_display_name: i.currently_hovered_dropdown_option_display_name,
|
|
470
|
+
onUpdateCurrentlyHoveredDropdownOption: t[2] || (t[2] = (u) => o.updateCurrentlyHoveredDropdownOption(u)),
|
|
471
|
+
onClick: t[3] || (t[3] = (u) => o.clickWebDropdownOption(u)),
|
|
472
|
+
onAddNestedDropdownHistoryStack: t[4] || (t[4] = (u) => o.updateNestedDropdownHistoryStack(u)),
|
|
473
|
+
onRemoveNestedDropdownHistoryStack: t[5] || (t[5] = (u) => o.removeNestedDropdownHistoryStack(u))
|
|
474
|
+
}), null, 16, ["nested_dropdown_option_button_history_stack", "currently_hovered_dropdown_option_display_name"]))), 128))
|
|
475
|
+
], 6)) : !o.web_version && o.show_dropdown ? (n(), r("div", {
|
|
476
|
+
key: 1,
|
|
477
|
+
ref: "responsive-button-dropdown",
|
|
478
|
+
class: _([
|
|
479
|
+
"responsive-button-dropdown",
|
|
480
|
+
{ "sub-dropdown": s.is_dropdown_option }
|
|
481
|
+
]),
|
|
482
|
+
style: V(i.dropdown_position_data)
|
|
483
|
+
}, [
|
|
484
|
+
o.non_web_version_nested_dropdown_option_shown ? (n(), r("div", {
|
|
485
|
+
key: 0,
|
|
486
|
+
class: "non-web-responsive-button-nested-dropdown-button",
|
|
487
|
+
onClick: t[6] || (t[6] = (c) => o.nonWebRemoveNestedDropdownHistoryStack({
|
|
488
|
+
display_name: o.non_web_version_nested_dropdown_option_shown,
|
|
489
|
+
dropdown_options: o.non_web_version_dropdown_options
|
|
490
|
+
}))
|
|
491
|
+
}, [
|
|
492
|
+
t[7] || (t[7] = d("div", { class: "non-web-responsive-nested-dropdown-button-default-prefeix prefix-wrapper" }, [
|
|
493
|
+
d("img", {
|
|
494
|
+
src: g,
|
|
495
|
+
class: "rotate-180"
|
|
496
|
+
})
|
|
497
|
+
], -1)),
|
|
498
|
+
d("div", null, p(o.non_web_version_nested_dropdown_option_shown), 1)
|
|
499
|
+
])) : a("", !0),
|
|
500
|
+
(n(!0), r(v, null, y(o.non_web_version_dropdown_options, (c) => (n(), r("div", {
|
|
501
|
+
key: `${s.display_name.replaceAll(" ", "-")}-dropdown-item-${c.display_name.replaceAll(" ", "-")}`,
|
|
502
|
+
class: _(["non-web-responsive-button-dropdown-option", { disabled: c.disabled }]),
|
|
503
|
+
onClick: (u) => o.clickNonWebDropdownOption(c)
|
|
504
|
+
}, [
|
|
505
|
+
d("div", Ae, p(c.display_name), 1),
|
|
506
|
+
c.dropdown_options ? (n(), r("div", Ie, [
|
|
507
|
+
c.disabled ? (n(), r("img", Je)) : (n(), r("img", Re))
|
|
508
|
+
])) : a("", !0)
|
|
509
|
+
], 10, We))), 128))
|
|
510
|
+
], 6)) : a("", !0)
|
|
511
|
+
], 2)), [
|
|
512
|
+
[w, i.loading]
|
|
513
|
+
]);
|
|
514
|
+
}
|
|
515
|
+
const Fe = /* @__PURE__ */ m(Ve, [["render", $e], ["__scopeId", "data-v-dbbab9e8"]]), Ke = {
|
|
516
|
+
props: {
|
|
517
|
+
modelValue: {
|
|
518
|
+
type: String,
|
|
519
|
+
default: ""
|
|
520
|
+
},
|
|
521
|
+
type: {
|
|
522
|
+
//ENUM: all type values of the raw input tag work
|
|
523
|
+
// some of the values works without using <form></form> and <button type = "submit"></button> are:
|
|
524
|
+
// text, date, time, datetime-local, month, week
|
|
525
|
+
// password, tel, number, search, color etc.
|
|
526
|
+
type: String,
|
|
527
|
+
default: "text"
|
|
528
|
+
},
|
|
529
|
+
placeholder: {
|
|
530
|
+
type: String,
|
|
531
|
+
default: "Enter"
|
|
532
|
+
},
|
|
533
|
+
clearable: {
|
|
534
|
+
type: Boolean,
|
|
535
|
+
default: !1
|
|
536
|
+
},
|
|
537
|
+
disabled: {
|
|
538
|
+
type: Boolean,
|
|
539
|
+
default: !1
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
mounted() {
|
|
543
|
+
document.addEventListener("click", (e) => this.blurWhenClickOutside(e));
|
|
544
|
+
},
|
|
545
|
+
unmounted() {
|
|
546
|
+
document.removeEventListener("click", (e) => this.blurWhenClickOutside(e));
|
|
547
|
+
},
|
|
548
|
+
data() {
|
|
549
|
+
return {
|
|
550
|
+
value: this.modelValue,
|
|
551
|
+
hovered: !1,
|
|
552
|
+
is_focus: !1,
|
|
553
|
+
show_alert: !1,
|
|
554
|
+
show_error: !1,
|
|
555
|
+
message_notification_text: ""
|
|
556
|
+
};
|
|
557
|
+
},
|
|
558
|
+
computed: {
|
|
559
|
+
show_clear_icon() {
|
|
560
|
+
return this.clearable && this.value && !this.disabled && (this.hovered || this.is_focus);
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
emits: [
|
|
564
|
+
"update:modelValue",
|
|
565
|
+
"input",
|
|
566
|
+
// press any key
|
|
567
|
+
"change",
|
|
568
|
+
//press Enter Key or Blur
|
|
569
|
+
"focus",
|
|
570
|
+
"blur",
|
|
571
|
+
"clear"
|
|
572
|
+
],
|
|
573
|
+
watch: {
|
|
574
|
+
modelValue(e) {
|
|
575
|
+
this.value = e;
|
|
576
|
+
},
|
|
577
|
+
value(e) {
|
|
578
|
+
console.log("value: ", this.clearable && e && !this.disabled), this.$emit("update:modelValue", e), this.$emit("input", e);
|
|
579
|
+
},
|
|
580
|
+
is_focus(e) {
|
|
581
|
+
e ? (this.$refs["input-box"].focus(), console.log("focus"), this.$emit("focus")) : (this.$refs["input-box"].blur(), console.log("blur"), this.$emit("blur"));
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
methods: {
|
|
585
|
+
handleClickInputBoxUnit(e) {
|
|
586
|
+
this.is_focus = !0, document.activeElement != this.$refs["input-box"] && this.$refs["input-box"].focus();
|
|
587
|
+
},
|
|
588
|
+
blurWhenClickOutside(e) {
|
|
589
|
+
this.is_focus && !this.$refs["input-box-unit"].contains(e.target) && (this.is_focus = !1);
|
|
590
|
+
},
|
|
591
|
+
handleKeydown(e) {
|
|
592
|
+
e.key === "Enter" && this.$emit("change", this.value);
|
|
593
|
+
},
|
|
594
|
+
handleClearValue() {
|
|
595
|
+
this.value = "", this.$emit("clear");
|
|
596
|
+
},
|
|
597
|
+
// expose methods
|
|
598
|
+
focus() {
|
|
599
|
+
this.is_focus = !0;
|
|
600
|
+
},
|
|
601
|
+
blur() {
|
|
602
|
+
this.is_focus = !1;
|
|
603
|
+
},
|
|
604
|
+
alert(e) {
|
|
605
|
+
this.show_alert = !0, this.show_error = !1, this.message_notification_text = e;
|
|
606
|
+
},
|
|
607
|
+
error(e) {
|
|
608
|
+
this.show_error = !0, this.show_alert = !1, this.message_notification_text = e;
|
|
609
|
+
},
|
|
610
|
+
removeAlertOrErrorEffect() {
|
|
611
|
+
this.show_alert = !1, this.show_error = !1, this.message_notification_text = "";
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
expose: ["focus", "blur", "alert", "error", "removeAlertOrErrorEffect"]
|
|
615
|
+
}, qe = { class: "input-box-unit-wrapper" }, Ge = {
|
|
616
|
+
key: 0,
|
|
617
|
+
class: "prefix-wrapper"
|
|
618
|
+
}, Qe = ["disabled", "type", "placeholder"];
|
|
619
|
+
function Xe(e, t, s, h, i, o) {
|
|
620
|
+
return n(), r("div", qe, [
|
|
621
|
+
d("div", {
|
|
622
|
+
class: _([
|
|
623
|
+
"input-box-unit",
|
|
624
|
+
{ "is-focus": i.is_focus },
|
|
625
|
+
{ "has-prefix": e.$slots.prefix },
|
|
626
|
+
{ "has-suffix": e.$slots.suffix },
|
|
627
|
+
{ disabled: s.disabled },
|
|
628
|
+
{ error: i.show_error },
|
|
629
|
+
{ alert: i.show_alert }
|
|
630
|
+
]),
|
|
631
|
+
ref: "input-box-unit",
|
|
632
|
+
onMouseenter: t[3] || (t[3] = (l) => i.hovered = !0),
|
|
633
|
+
onMouseleave: t[4] || (t[4] = (l) => i.hovered = !1),
|
|
634
|
+
onClick: t[5] || (t[5] = (l) => o.handleClickInputBoxUnit(l))
|
|
635
|
+
}, [
|
|
636
|
+
e.$slots.prefix ? (n(), r("div", Ge, [
|
|
637
|
+
f(e.$slots, "prefix", {}, void 0, !0)
|
|
638
|
+
])) : a("", !0),
|
|
639
|
+
C(d("input", {
|
|
640
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => i.value = l),
|
|
641
|
+
class: _([
|
|
642
|
+
"input-box"
|
|
643
|
+
]),
|
|
644
|
+
ref: "input-box",
|
|
645
|
+
disabled: s.disabled,
|
|
646
|
+
type: s.type,
|
|
647
|
+
placeholder: s.placeholder,
|
|
648
|
+
onKeydown: t[1] || (t[1] = (l) => o.handleKeydown(l))
|
|
649
|
+
}, null, 40, Qe), [
|
|
650
|
+
[q, i.value]
|
|
651
|
+
]),
|
|
652
|
+
e.$slots.suffix || o.show_clear_icon ? (n(), r("div", {
|
|
653
|
+
key: 1,
|
|
654
|
+
class: _([
|
|
655
|
+
"suffix-wrapper",
|
|
656
|
+
{ "only-clear-icon": o.show_clear_icon && !e.$slots.suffix },
|
|
657
|
+
{ "with-date-icon": s.type == "date" }
|
|
658
|
+
])
|
|
659
|
+
}, [
|
|
660
|
+
d("img", {
|
|
661
|
+
src: L,
|
|
662
|
+
class: _([
|
|
663
|
+
"clear-icon",
|
|
664
|
+
{ hide: !o.show_clear_icon }
|
|
665
|
+
]),
|
|
666
|
+
onClick: t[2] || (t[2] = (...l) => o.handleClearValue && o.handleClearValue(...l))
|
|
667
|
+
}, null, 2),
|
|
668
|
+
f(e.$slots, "suffix", {}, void 0, !0)
|
|
669
|
+
], 2)) : a("", !0)
|
|
670
|
+
], 34),
|
|
671
|
+
(i.show_alert || i.show_error) && i.message_notification_text ? (n(), r("div", {
|
|
672
|
+
key: 0,
|
|
673
|
+
class: _([
|
|
674
|
+
"message-container",
|
|
675
|
+
{ error: i.show_error },
|
|
676
|
+
{ alert: i.show_alert }
|
|
677
|
+
])
|
|
678
|
+
}, p(i.message_notification_text), 3)) : a("", !0)
|
|
679
|
+
]);
|
|
680
|
+
}
|
|
681
|
+
const Ye = /* @__PURE__ */ m(Ke, [["render", Xe], ["__scopeId", "data-v-8f8a50f7"]]), et = {
|
|
682
|
+
props: {
|
|
683
|
+
modelValue: {
|
|
684
|
+
type: String,
|
|
685
|
+
default: ""
|
|
686
|
+
},
|
|
687
|
+
options: {
|
|
688
|
+
type: Array,
|
|
689
|
+
default: () => []
|
|
690
|
+
},
|
|
691
|
+
filterable: {
|
|
692
|
+
type: Boolean,
|
|
693
|
+
default: !1
|
|
694
|
+
},
|
|
695
|
+
remote_search: {
|
|
696
|
+
type: Boolean,
|
|
697
|
+
default: !1
|
|
698
|
+
},
|
|
699
|
+
disabled: {
|
|
700
|
+
type: Boolean,
|
|
701
|
+
default: !1
|
|
702
|
+
},
|
|
703
|
+
placeholder: {
|
|
704
|
+
type: String,
|
|
705
|
+
default: "Select"
|
|
706
|
+
},
|
|
707
|
+
clearable: {
|
|
708
|
+
type: Boolean,
|
|
709
|
+
default: !1
|
|
710
|
+
},
|
|
711
|
+
loading: {
|
|
712
|
+
type: Boolean,
|
|
713
|
+
default: !1
|
|
714
|
+
},
|
|
715
|
+
loading_text: {
|
|
716
|
+
type: String,
|
|
717
|
+
default: "Loading"
|
|
718
|
+
},
|
|
719
|
+
no_data_text: {
|
|
720
|
+
type: String,
|
|
721
|
+
default: "No data"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
mounted() {
|
|
725
|
+
document.addEventListener("click", (e) => this.closeWhenClickOutsideSelector(e));
|
|
726
|
+
},
|
|
727
|
+
unmounted() {
|
|
728
|
+
document.removeEventListener("click", (e) => this.closeWhenClickOutsideSelector(e));
|
|
729
|
+
},
|
|
730
|
+
data() {
|
|
731
|
+
return {
|
|
732
|
+
selected_item: this.modelValue,
|
|
733
|
+
selected_item_label: this.findCorrespondingLabelViaValue(this.modelValue),
|
|
734
|
+
filter_keyword: "",
|
|
735
|
+
is_focus: !1,
|
|
736
|
+
hovered: !1,
|
|
737
|
+
show_error: !1,
|
|
738
|
+
show_alert: !1,
|
|
739
|
+
message_notification_text: "",
|
|
740
|
+
is_loading: this.loading
|
|
741
|
+
};
|
|
742
|
+
},
|
|
743
|
+
computed: {
|
|
744
|
+
default_dropdown_arrow_src() {
|
|
745
|
+
return this.disabled ? E : P;
|
|
746
|
+
},
|
|
747
|
+
options_shown() {
|
|
748
|
+
return this.remote_search ? this.options : this.filter_keyword ? this.options.filter((e) => JSON.stringify(e.value).toLowerCase().includes(this.filter_keyword.toLowerCase()) || JSON.stringify(e.label).toLowerCase().includes(this.filter_keyword.toLowerCase())) : this.options;
|
|
749
|
+
},
|
|
750
|
+
show_clear_icon() {
|
|
751
|
+
return this.clearable && this.selected_item && !this.disabled && (this.hovered || this.is_focus);
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
emits: [
|
|
755
|
+
"update:modelValue",
|
|
756
|
+
"change",
|
|
757
|
+
"remote-search",
|
|
758
|
+
"filter-change",
|
|
759
|
+
"visible-change",
|
|
760
|
+
"focus",
|
|
761
|
+
"blur",
|
|
762
|
+
"clear"
|
|
763
|
+
],
|
|
764
|
+
watch: {
|
|
765
|
+
modelValue(e) {
|
|
766
|
+
this.selected_item = e;
|
|
767
|
+
},
|
|
768
|
+
selected_item(e) {
|
|
769
|
+
this.$emit("update:modelValue", e), this.$emit("change", e), this.selected_item_label = this.findCorrespondingLabelViaValue(e), this.filter_keyword = "";
|
|
770
|
+
},
|
|
771
|
+
filter_keyword(e) {
|
|
772
|
+
this.$emit("filter-change", e), this.remote_search && this.$emit("remote-search", e);
|
|
773
|
+
},
|
|
774
|
+
is_focus(e) {
|
|
775
|
+
console.log("is_focus change", e), this.$emit("visible-change", e), e ? (this.$emit("focus"), this.filterable && this.$nextTick(() => {
|
|
776
|
+
var t;
|
|
777
|
+
(t = this.$refs["filter-input"]) == null || t.focus();
|
|
778
|
+
})) : this.$emit("blur");
|
|
779
|
+
},
|
|
780
|
+
loading(e) {
|
|
781
|
+
this.is_loading = e;
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
methods: {
|
|
785
|
+
findCorrespondingLabelViaValue(e) {
|
|
786
|
+
var t = e;
|
|
787
|
+
for (const s of this.options)
|
|
788
|
+
s.value == e && (t = s.label);
|
|
789
|
+
return t;
|
|
790
|
+
},
|
|
791
|
+
handleClickSingleSelector() {
|
|
792
|
+
console.log("handleClickSingleSelector("), this.disabled || (this.is_focus = !this.is_focus);
|
|
793
|
+
},
|
|
794
|
+
handleSelectOption(e) {
|
|
795
|
+
this.selected_item = e.value, this.selected_item_label = e.label, this.is_focus = !1;
|
|
796
|
+
},
|
|
797
|
+
closeWhenClickOutsideSelector(e) {
|
|
798
|
+
this.is_focus && !this.$refs["single-selector"].contains(e.target) && (this.is_focus = !1);
|
|
799
|
+
},
|
|
800
|
+
checkWhetherIsSelected(e) {
|
|
801
|
+
if (e.value == this.selected_item)
|
|
802
|
+
return !0;
|
|
803
|
+
},
|
|
804
|
+
handleClearValue(e) {
|
|
805
|
+
e.stopPropagation(), this.selected_item = "", this.$emit("clear");
|
|
806
|
+
},
|
|
807
|
+
// Define a method you want to expose
|
|
808
|
+
focus() {
|
|
809
|
+
var e;
|
|
810
|
+
this.disabled || (this.filterable && ((e = this.$refs["filter-input"]) == null || e.focus()), this.is_focus = !0);
|
|
811
|
+
},
|
|
812
|
+
blur() {
|
|
813
|
+
var e;
|
|
814
|
+
this.filterable && ((e = this.$refs["filter-input"]) == null || e.blur()), this.is_focus = !1;
|
|
815
|
+
},
|
|
816
|
+
alert(e) {
|
|
817
|
+
this.show_error = !1, this.show_alert = !0, this.message_notification_text = e;
|
|
818
|
+
},
|
|
819
|
+
error(e) {
|
|
820
|
+
this.show_alert = !1, this.show_error = !0, this.message_notification_text = e;
|
|
821
|
+
},
|
|
822
|
+
removeAlertOrErrorEffect() {
|
|
823
|
+
this.show_alert = !1, this.show_error = !1, this.message_notification_text = "";
|
|
824
|
+
},
|
|
825
|
+
setDropdownContentLoading(e) {
|
|
826
|
+
this.is_loading = e;
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
expose: ["focus", "blur", "alert", "error", "removeAlertOrErrorEffect", "setDropdownContentLoading"]
|
|
830
|
+
}, tt = { class: "single-selector-unit-wrapper" }, st = {
|
|
831
|
+
key: 0,
|
|
832
|
+
class: "prefix-wrapper"
|
|
833
|
+
}, ot = {
|
|
834
|
+
class: /* @__PURE__ */ _([
|
|
835
|
+
"suffix-wrapper"
|
|
836
|
+
])
|
|
837
|
+
}, it = ["src"], nt = {
|
|
838
|
+
key: 1,
|
|
839
|
+
class: "single-selector-dropdown"
|
|
840
|
+
}, rt = {
|
|
841
|
+
key: 0,
|
|
842
|
+
class: "options-list"
|
|
843
|
+
}, lt = ["onClick"], dt = {
|
|
844
|
+
key: 1,
|
|
845
|
+
class: "no-data-notes"
|
|
846
|
+
};
|
|
847
|
+
function _t(e, t, s, h, i, o) {
|
|
848
|
+
return n(), r("div", tt, [
|
|
849
|
+
d("div", {
|
|
850
|
+
ref: "single-selector",
|
|
851
|
+
class: _([
|
|
852
|
+
"single-selector",
|
|
853
|
+
{ error: i.show_error },
|
|
854
|
+
{ alert: i.show_alert },
|
|
855
|
+
{ disabled: s.disabled },
|
|
856
|
+
{ "is-focus": i.is_focus },
|
|
857
|
+
{ "has-prefix": e.$slots.prefix },
|
|
858
|
+
{ "show-clear-icon": o.show_clear_icon }
|
|
859
|
+
]),
|
|
860
|
+
onClick: t[2] || (t[2] = (...l) => o.handleClickSingleSelector && o.handleClickSingleSelector(...l)),
|
|
861
|
+
onMouseenter: t[3] || (t[3] = (l) => i.hovered = !0),
|
|
862
|
+
onMouseleave: t[4] || (t[4] = (l) => i.hovered = !1)
|
|
863
|
+
}, [
|
|
864
|
+
e.$slots.prefix ? (n(), r("div", st, [
|
|
865
|
+
f(e.$slots, "prefix", {}, void 0, !0)
|
|
866
|
+
])) : a("", !0),
|
|
867
|
+
d("div", {
|
|
868
|
+
class: _([
|
|
869
|
+
"selected-content",
|
|
870
|
+
i.selected_item ? "content-text" : "placeholder"
|
|
871
|
+
])
|
|
872
|
+
}, [
|
|
873
|
+
d("span", {
|
|
874
|
+
class: _([{ hide: i.is_focus && s.filterable }])
|
|
875
|
+
}, p(i.selected_item ? i.selected_item_label : s.placeholder), 3),
|
|
876
|
+
C(d("input", {
|
|
877
|
+
class: _(["filter-input", { hide: !(i.is_focus && s.filterable) }]),
|
|
878
|
+
ref: "filter-input",
|
|
879
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => i.filter_keyword = l)
|
|
880
|
+
}, null, 2), [
|
|
881
|
+
[G, i.filter_keyword]
|
|
882
|
+
])
|
|
883
|
+
], 2),
|
|
884
|
+
d("div", ot, [
|
|
885
|
+
d("img", {
|
|
886
|
+
src: L,
|
|
887
|
+
class: _([
|
|
888
|
+
"clear-icon",
|
|
889
|
+
{ hide: !o.show_clear_icon }
|
|
890
|
+
]),
|
|
891
|
+
onClick: t[1] || (t[1] = (...l) => o.handleClearValue && o.handleClearValue(...l))
|
|
892
|
+
}, null, 2),
|
|
893
|
+
f(e.$slots, "suffix", {}, () => [
|
|
894
|
+
d("img", {
|
|
895
|
+
src: o.default_dropdown_arrow_src,
|
|
896
|
+
class: _([
|
|
897
|
+
"default-suffix-pic",
|
|
898
|
+
"rotate-0",
|
|
899
|
+
{ "rotate-180": i.is_focus && !s.disabled }
|
|
900
|
+
])
|
|
901
|
+
}, null, 10, it)
|
|
902
|
+
], !0)
|
|
903
|
+
]),
|
|
904
|
+
i.is_focus ? (n(), r("div", nt, [
|
|
905
|
+
o.options_shown && o.options_shown.length > 0 ? (n(), r("div", rt, [
|
|
906
|
+
(n(!0), r(v, null, y(o.options_shown, (l) => (n(), r("div", {
|
|
907
|
+
key: l.value,
|
|
908
|
+
class: _([
|
|
909
|
+
"dropdown-item",
|
|
910
|
+
{ selected: o.checkWhetherIsSelected(l) }
|
|
911
|
+
]),
|
|
912
|
+
onClick: (w) => o.handleSelectOption(l)
|
|
913
|
+
}, p(l.label), 11, lt))), 128))
|
|
914
|
+
])) : (n(), r("div", dt, p(i.is_loading ? s.loading_text : s.no_data_text), 1))
|
|
915
|
+
])) : a("", !0)
|
|
916
|
+
], 34),
|
|
917
|
+
(i.show_alert || i.show_error) && i.message_notification_text ? (n(), r("div", {
|
|
918
|
+
key: 0,
|
|
919
|
+
class: _([
|
|
920
|
+
"message-container",
|
|
921
|
+
{ error: i.show_error },
|
|
922
|
+
{ alert: i.show_alert }
|
|
923
|
+
])
|
|
924
|
+
}, p(i.message_notification_text), 3)) : a("", !0)
|
|
925
|
+
]);
|
|
926
|
+
}
|
|
927
|
+
const at = /* @__PURE__ */ m(et, [["render", _t], ["__scopeId", "data-v-6da857c3"]]), ct = {
|
|
928
|
+
mounted(e, t) {
|
|
929
|
+
const s = document.createElement("div");
|
|
930
|
+
s.classList.add("component-loading-spinner"), s.style.display = "none", e._spinner = s, e.style.position = "relative", e.appendChild(s), t.value && (s.style.display = "flex");
|
|
931
|
+
},
|
|
932
|
+
updated(e, t) {
|
|
933
|
+
t.value ? e._spinner.style.display = "flex" : e._spinner.style.display = "none";
|
|
934
|
+
},
|
|
935
|
+
unmounted(e) {
|
|
936
|
+
e.removeChild(e._spinner);
|
|
937
|
+
}
|
|
938
|
+
}, j = { SimplifiedNotification: De, ResponsiveButton: Fe, InputBox: Ye, SingleSelector: at }, ht = (e) => {
|
|
939
|
+
Object.keys(j).forEach((t) => {
|
|
940
|
+
e.component(t, j[t]);
|
|
941
|
+
}), e.directive("component-loading", ct);
|
|
942
|
+
}, ft = { install: ht }, H = /* @__PURE__ */ Object.assign({ "./assets/icons/black_arrow_down.svg": Q, "./assets/icons/black_arrow_to_right.svg": X, "./assets/icons/black_calendar_icon.svg": ee, "./assets/icons/black_magnifying_glass_icon.svg": se, "./assets/icons/cyan_arrow_down.svg": oe, "./assets/icons/dark_blue_arrow_down.svg": ie, "./assets/icons/dark_gray_arrow_down.svg": ne, "./assets/icons/eye_icon.svg": le, "./assets/icons/eye_with_cross_icon.svg": _e, "./assets/icons/green_notification_icon.svg": ae, "./assets/icons/grey_arrow_down.svg": ce, "./assets/icons/grey_arrow_to_right.svg": he, "./assets/icons/info_blue_icon.svg": ue, "./assets/icons/input_clear_icon.svg": pe, "./assets/icons/notification_cross_icon.svg": fe, "./assets/icons/red_notification_icon.svg": we, "./assets/icons/white_arrow_down.svg": ge, "./assets/icons/yellow_notification_icon.svg": me });
|
|
943
|
+
var ut = {};
|
|
944
|
+
for (const e in H) {
|
|
945
|
+
const t = e.split("/").pop().replace(".svg", "");
|
|
946
|
+
ut[t] = H[e].default;
|
|
947
|
+
}
|
|
948
|
+
export {
|
|
949
|
+
Ye as InputBox,
|
|
950
|
+
Fe as ResponsiveButton,
|
|
951
|
+
De as SimplifiedNotification,
|
|
952
|
+
at as SingleSelector,
|
|
953
|
+
ct as component_loading,
|
|
954
|
+
ft as default,
|
|
955
|
+
H as icons,
|
|
956
|
+
ut as iconsMap
|
|
957
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";.fade-out[data-v-2eec1ba2]{animation:fadeOut-2eec1ba2 var(--fade-out-duration-ms, 3s) forwards}@keyframes fadeOut-2eec1ba2{0%{opacity:1}90%{opacity:.8}to{opacity:0}}.simplified-notification[data-v-2eec1ba2]{width:100%;padding:12px 16px;border-radius:8px;display:flex;gap:12px;align-items:stretch;box-sizing:border-box;position:relative}.simplified-notification.blue[data-v-2eec1ba2]{background:#e8f4fd}.simplified-notification.red[data-v-2eec1ba2]{background:#faeaea}.simplified-notification.yellow[data-v-2eec1ba2]{background:#fff7df}.simplified-notification.green[data-v-2eec1ba2]{background:#ebf4ec}.prefix_icon[data-v-2eec1ba2]{width:24px;height:24px}.prefix-icon-container[data-v-2eec1ba2]{display:flex;align-items:center}.close-btn-container[data-v-2eec1ba2]{display:flex;flex-direction:column}.close-btn[data-v-2eec1ba2]{cursor:pointer}.notifiction-text[data-v-2eec1ba2]{width:100%;color:#000;font-family:Roboto;font-size:14px;font-weight:400;line-height:20px;white-space:normal;word-break:break-word}.content-wrapper[data-v-2eec1ba2]{width:100%}.title[data-v-2eec1ba2]{color:#000;font-family:Roboto;font-size:14px;font-weight:600;line-height:16px;margin-bottom:4px}.content-details[data-v-2eec1ba2]{min-height:24px;display:flex;align-items:center}@media only screen and (max-width:767px){.simplified-notification[data-v-2eec1ba2]{padding:8px 12px;gap:8px}}.responsive-button-wrapper[data-v-dbbab9e8]{position:relative}.responsive-button-wrapper.fill-whole[data-v-dbbab9e8]{width:100%;height:fit-content}.responsive-button-wrapper.fit-content[data-v-dbbab9e8]{width:fit-content;height:fit-content}.responsive-button-wrapper[data-v-dbbab9e8] .component-loading-spinner{border-radius:4px}.responsive-button-wrapper[data-v-dbbab9e8] .component-loading-spinner:after{height:25px;width:25px}.responsive-button[data-v-dbbab9e8]{height:fit-content;box-sizing:border-box;border-radius:4px;text-align:center;display:flex;flex-direction:column;align-items:center;font-family:Roboto;cursor:pointer}.responsive-button.fit-content[data-v-dbbab9e8]{min-width:90px}.responsive-button.no-display-name[data-v-dbbab9e8]{min-width:0px!important}.button-content[data-v-dbbab9e8]{display:flex;column-gap:8px;align-items:center}.prefix-wrapper[data-v-dbbab9e8],.suffix-wrapper[data-v-dbbab9e8]{width:20px;height:20px;flex-shrink:0}.rotate-0[data-v-dbbab9e8]{transform:rotate(0);transition:all .3s}.rotate-180[data-v-dbbab9e8]{transform:rotate(180deg)}.responsive-button.xsmall[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.xsmall[data-v-dbbab9e8]{width:fit-content;padding:7px 23px}.responsive-button.no-display-name.fit-content.xsmall[data-v-dbbab9e8]{width:fit-content;padding:7px!important}.responsive-button.fit-content.xsmall.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:7px 23px 7px 15px}.responsive-button.fit-content.xsmall.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:7px 15px 7px 23px}.responsive-button.fit-content.xsmall.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:7px 15px}.responsive-button.fill-whole.xsmall[data-v-dbbab9e8]{width:100%;padding:7px}.responsive-button.small[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.small[data-v-dbbab9e8]{width:fit-content;padding:9px 23px}.responsive-button.no-display-name.fit-content.small[data-v-dbbab9e8]{width:fit-content;padding:9px!important}.responsive-button.fit-content.small.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:9px 23px 9px 15px}.responsive-button.fit-content.small.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:9px 15px 9px 23px}.responsive-button.fit-content.small.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:9px 15px}.responsive-button.fill-whole.small[data-v-dbbab9e8]{width:100%;padding:9px 7px}.responsive-button.medium[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.medium[data-v-dbbab9e8]{width:fit-content;padding:10px 23px}.responsive-button.no-display-name.fit-content.medium[data-v-dbbab9e8]{width:fit-content;padding:10px!important}.responsive-button.fit-content.medium.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:10px 23px 10px 15px}.responsive-button.fit-content.medium.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:10px 15px 10px 23px}.responsive-button.fit-content.medium.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:10px 15px}.responsive-button.fill-whole.medium[data-v-dbbab9e8]{width:100%;padding:10px 7px}.responsive-button.large[data-v-dbbab9e8]{font-size:16px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.large[data-v-dbbab9e8]{width:fit-content;padding:11px 23px}.responsive-button.no-display-name.fit-content.large[data-v-dbbab9e8]{width:fit-content;padding:11px!important}.responsive-button.fit-content.large.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:11px 23px 11px 15px}.responsive-button.fit-content.large.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:11px 15px 11px 23px}.responsive-button.fit-content.large.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:11px 15px}.responsive-button.fill-whole.large[data-v-dbbab9e8]{width:100%;padding:11px 7px}.disabled[data-v-dbbab9e8]{cursor:not-allowed}.outlined-primary[data-v-dbbab9e8]{border:1px solid #1E4670;background:#fff;color:#1e4670}.outlined-primary[data-v-dbbab9e8]:hover{background:#ecf2f8}.outlined-primary.focused[data-v-dbbab9e8],.outlined-primary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#ecf2f8}.outlined-primary.disabled[data-v-dbbab9e8],.outlined-primary.disabled[data-v-dbbab9e8]:hover,.outlined-primary.disabled.focused[data-v-dbbab9e8],.outlined-primary.disabled[data-v-dbbab9e8]:active{border:1px solid #979797;background:#f2f2f2;color:#979797}.filled-primary[data-v-dbbab9e8]{border:1px solid #1E4670;background:#1e4670;color:#fff}.filled-primary[data-v-dbbab9e8]:hover{background:#022a53}.filled-primary.focused[data-v-dbbab9e8],.filled-primary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#ffffff14,#ffffff14),#022a53}.filled-primary.disabled[data-v-dbbab9e8],.filled-primary.disabled[data-v-dbbab9e8]:hover,.filled-primary.disabled.focused .filled-primary.disabled[data-v-dbbab9e8]:active{border:1px solid #979797;background:#979797}.text-primary[data-v-dbbab9e8]{border:1px solid transparent;background:#fff;color:#1e4670}.text-primary[data-v-dbbab9e8]:hover{background:#ecf2f8}.text-primary.focused[data-v-dbbab9e8],.text-primary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#ecf2f8}.text-primary.disabled[data-v-dbbab9e8],.text-primary.disabled[data-v-dbbab9e8]:hover,.text-primary.disabled.focused[data-v-dbbab9e8],.text-primary.disabled[data-v-dbbab9e8]:active{color:#979797}.outlined-secondary[data-v-dbbab9e8]{border:1px solid #20A8C3;background:#fff;color:#20a8c3}.outlined-secondary[data-v-dbbab9e8]:hover{background:#e8f0f4}.outlined-secondary.focused[data-v-dbbab9e8],.outlined-secondary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#e8f0f4}.outlined-secondary.disabled[data-v-dbbab9e8],.outlined-secondary.disabled[data-v-dbbab9e8]:hover,.outlined-secondary.disabled.focused[data-v-dbbab9e8],.outlined-secondary.disabled[data-v-dbbab9e8]:active{border:1px solid #979797;background:#f2f2f2;color:#979797}.filled-secondary[data-v-dbbab9e8]{border:1px solid #20A8C3;background:#20a8c3;color:#fff}.filled-secondary[data-v-dbbab9e8]:hover{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#20a8c3;box-shadow:0 1px 2px #0000004d,0 1px 3px 1px #00000026}.filled-secondary.focused[data-v-dbbab9e8],.filled-secondary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#ffffff14,#ffffff14),#20a8c3}.filled-secondary.disabled[data-v-dbbab9e8],.filled-secondary.disabled[data-v-dbbab9e8]:hover,.filled-secondary.disabled.focused[data-v-dbbab9e8],.filled-secondary.disabled[data-v-dbbab9e8]:active{border:1px solid #979797;background:#979797}.text-secondary[data-v-dbbab9e8]{border:1px solid transparent;background:#fff;color:#20a8c3}.text-secondary[data-v-dbbab9e8]:hover{background:#e8f0f4}.text-secondary.focused[data-v-dbbab9e8],.text-secondary[data-v-dbbab9e8]:active{background:linear-gradient(0deg,#1c1b1f14,#1c1b1f14),#e8f0f4}.text-secondary.disabled[data-v-dbbab9e8],.text-secondary.disabled[data-v-dbbab9e8]:hover,.text-secondary.disabled.focused[data-v-dbbab9e8],.text-secondary.disabled[data-v-dbbab9e8]:active{color:#979797}.responsive-button-dropdown[data-v-dbbab9e8]{min-width:300px;padding:9px 12px;box-sizing:border-box;border-radius:4px;background:#fff;box-shadow:0 4px 8px #00000026,0 1px 3px #0000004d;position:absolute;z-index:1000}.fill-whole .responsive-button-dropdown[data-v-dbbab9e8]{width:100%}.fit-content .responsive-button-dropdown[data-v-dbbab9e8]{width:fit-content}.responsive-button-dropdown.sub-dropdown[data-v-dbbab9e8]{width:fit-content!important}.responsive-button-dropdown-option[data-v-dbbab9e8]{width:100%!important;padding:12px 8px!important;border:none!important;flex-direction:row;align-items:flex-start!important;justify-content:space-between;column-gap:12px;background:#fff!important;color:#1c1b1f!important;font-family:Roboto!important;font-size:16px!important;font-weight:400!important;line-height:19px!important;cursor:pointer}.responsive-button-dropdown-option.hovered[data-v-dbbab9e8]{border-radius:4px!important;background:#faebe6!important}.responsive-button-dropdown-option.disabled[data-v-dbbab9e8],.responsive-button-dropdown-option.disabled.hovered[data-v-dbbab9e8]{color:#979797!important;cursor:not-allowed!important}.responsive-button-dropdown-option .button-name[data-v-dbbab9e8]{text-align:left}.non-web-responsive-button-nested-dropdown-button[data-v-dbbab9e8]{width:100%!important;box-sizing:border-box;padding:12px 8px;border-bottom:1px solid #BCCCDC;display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;column-gap:12px;background:#fff;color:#1c1b1f;font-family:Roboto;font-size:14px;font-weight:400;line-height:20px;letter-spacing:.25px;cursor:pointer}.fill-whole .non-web-responsive-button-dropdown-option[data-v-dbbab9e8],.fit-content .non-web-responsive-button-dropdown-option[data-v-dbbab9e8]{width:100%}.non-web-responsive-button-dropdown-option[data-v-dbbab9e8]{box-sizing:border-box;padding:12px 8px;display:flex;flex-direction:row;align-items:flex-start!important;justify-content:space-between;column-gap:12px;background:#fff;color:#1c1b1f;font-family:Roboto;font-size:14px;font-weight:400;line-height:20px;letter-spacing:.25px;cursor:pointer}.non-web-responsive-button-dropdown-option[data-v-dbbab9e8]:active{border-radius:4px!important;background:#faebe6!important}.non-web-responsive-button-dropdown-option.disabled[data-v-dbbab9e8],.non-web-responsive-button-dropdown-option.disabled[data-v-dbbab9e8]:active{color:#979797!important;cursor:not-allowed!important}@media only screen and (max-width:767px){.simplified-notification[data-v-dbbab9e8]{padding:8px 12px;gap:8px}.responsive-button.small[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.small[data-v-dbbab9e8]{width:fit-content;padding:7px 23px}.responsive-button.fit-content.small.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:7px 23px 7px 15px}.responsive-button.fit-content.small.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:7px 15px 7px 23px}.responsive-button.fit-content.small.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:7px 15px}.responsive-button.fill-whole.small[data-v-dbbab9e8]{width:100%;padding:7px}.responsive-button.medium[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.medium[data-v-dbbab9e8]{width:fit-content;padding:9px 23px}.responsive-button.fit-content.medium.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:9px 23px 9px 15px}.responsive-button.fit-content.medium.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:9px 15px 9px 23px}.responsive-button.fit-content.medium.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:9px 15px}.responsive-button.fill-whole.medium[data-v-dbbab9e8]{width:100%;padding:9px 7px}.responsive-button.large[data-v-dbbab9e8]{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.1px}.responsive-button.fit-content.large[data-v-dbbab9e8]{width:fit-content;padding:10px 23px}.responsive-button.fit-content.large.has-prefix[data-v-dbbab9e8]{width:fit-content;padding:10px 23px 10px 15px}.responsive-button.fit-content.large.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:10px 15px 10px 23px}.responsive-button.fit-content.large.has-prefix.has-suffix[data-v-dbbab9e8]{width:fit-content;padding:10px 15px}.responsive-button.fill-whole.large[data-v-dbbab9e8]{width:100%;padding:10px 7px}.responsive-button-dropdown-option[data-v-dbbab9e8]{font-size:14px!important;font-weight:400!important;line-height:20px!important;letter-spacing:.25px!important}.responsive-button-dropdown[data-v-dbbab9e8]{min-width:267px}}.input-box-unit-wrapper[data-v-8f8a50f7]{width:100%;display:flex;flex-direction:column;row-gap:8px}.input-box-unit[data-v-8f8a50f7]{height:fit-content;width:100%;box-sizing:border-box;padding:8px 11px;display:flex;align-items:center;column-gap:12px;border-radius:4px;border:1px solid #BCCCDC;background:#fff;cursor:pointer;position:relative}.input-box-unit[data-v-8f8a50f7]:hover{border:1px solid #DEE6ED}.input-box-unit.is-focus[data-v-8f8a50f7]{border:1px solid #9BB2CA}.input-box-unit.has-prefix[data-v-8f8a50f7],.input-box-unit.has-prefix.has-suffix[data-v-8f8a50f7]{padding:8px 11px}.input-box-unit.has-suffix[data-v-8f8a50f7]{padding-left:15px}.input-box-unit.error[data-v-8f8a50f7]{border:1px solid #DE583F}.input-box-unit.alert[data-v-8f8a50f7]{border:1px solid #E0961E}.input-box-unit.disabled[data-v-8f8a50f7]{background:#f2f2f2;cursor:not-allowed}.input-box-unit.disabled[data-v-8f8a50f7]:hover{border:1px solid #BCCCDC}.input-box[data-v-8f8a50f7]{flex:1;width:100%;padding:0;background-color:transparent;border:none;outline:none;color:#1c1b1f;font-family:Roboto;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.5px;height:24px}.input-box[data-v-8f8a50f7]::placeholder{color:#979797;font-family:Roboto;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.5px}.input-box[data-v-8f8a50f7]::-webkit-calendar-picker-indicator{background:url("data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4698_42665)'%3e%3cpath%20d='M15.8333%203.33464H15V1.66797H13.3333V3.33464H6.66667V1.66797H5V3.33464H4.16667C3.24167%203.33464%202.50833%204.08464%202.50833%205.0013L2.5%2016.668C2.5%2017.5846%203.24167%2018.3346%204.16667%2018.3346H15.8333C16.75%2018.3346%2017.5%2017.5846%2017.5%2016.668V5.0013C17.5%204.08464%2016.75%203.33464%2015.8333%203.33464ZM15.8333%2016.668H4.16667V8.33464H15.8333V16.668ZM15.8333%206.66797H4.16667V5.0013H15.8333V6.66797ZM10%2010.8346H14.1667V15.0013H10V10.8346Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4698_42665'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e") no-repeat center;height:24px}.prefix-wrapper[data-v-8f8a50f7],.suffix-wrapper[data-v-8f8a50f7]{flex-shrink:0;display:flex;align-items:center;column-gap:8px;min-width:24px;width:fit-content;height:24px}.suffix-wrapper.only-clear-icon[data-v-8f8a50f7]{min-width:20px}.suffix-wrapper.with-date-icon[data-v-8f8a50f7]{position:absolute;right:40px}.clear-icon[data-v-8f8a50f7]{width:20px;height:20px;opacity:.7;cursor:pointer}.clear-icon[data-v-8f8a50f7]:hover{opacity:1}.hide[data-v-8f8a50f7]{display:none}.message-container[data-v-8f8a50f7]{width:100%;box-sizing:border-box;font-family:Roboto;font-size:16px;font-weight:400;line-height:19px}.message-container.error[data-v-8f8a50f7]{color:#de583f}.message-container.alert[data-v-8f8a50f7]{color:#e0961e}@media only screen and (max-width:767px){.input-box-unit-wrapper[data-v-8f8a50f7]{row-gap:4px}.input-box-unit[data-v-8f8a50f7]{padding:7px 11px;column-gap:8px}.input-box-unit.has-prefix[data-v-8f8a50f7],.input-box-unit.has-prefix.has-suffix[data-v-8f8a50f7]{padding:7px 11px}.input-box-unit.has-suffix[data-v-8f8a50f7]{padding-left:13px}.input-box[data-v-8f8a50f7]{font-size:14px;line-height:20px;letter-spacing:.25px;height:20px}.input-box[data-v-8f8a50f7]::placeholder{font-size:14px;line-height:20px;letter-spacing:.25px}.input-box[data-v-8f8a50f7]::-webkit-calendar-picker-indicator{height:20px}.prefix-wrapper[data-v-8f8a50f7]{min-width:20px;height:20px}.suffix-wrapper[data-v-8f8a50f7]{min-width:20px;height:20px;column-gap:0px}.suffix-wrapper.with-date-icon[data-v-8f8a50f7]{right:32px}.clear-icon[data-v-8f8a50f7]{width:36px;height:36px;box-sizing:border-box;padding:10px}.message-container[data-v-8f8a50f7]{font-size:14px;line-height:16px}}.single-selector-unit-wrapper[data-v-6da857c3]{width:100%;display:flex;flex-direction:column;row-gap:8px}.single-selector[data-v-6da857c3]{height:fit-content;width:100%;box-sizing:border-box;padding:9px 12px 9px 16px;display:flex;align-items:center;justify-content:space-between;column-gap:12px;border-radius:4px;box-shadow:inset 0 0 0 1px #bcccdc;background:#fff;cursor:pointer;position:relative}.single-selector[data-v-6da857c3]:hover{box-shadow:inset 0 0 0 1px #dee6ed}.single-selector.has-prefix[data-v-6da857c3]{padding-left:12px}.single-selector.is-focus[data-v-6da857c3]{box-shadow:inset 0 0 0 1px #9bb2ca}.single-selector.error[data-v-6da857c3]{box-shadow:inset 0 0 0 1px #de583f}.single-selector.alert[data-v-6da857c3]{box-shadow:inset 0 0 0 1px #e0961e}.single-selector.disabled[data-v-6da857c3]{background:#f2f2f2;cursor:not-allowed}.single-selector.disabled[data-v-6da857c3]:hover{box-shadow:inset 0 0 0 1px #bcccdc}.selected-content[data-v-6da857c3]{flex:1;font-family:Roboto;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hide[data-v-6da857c3]{display:none}.content-text[data-v-6da857c3]{color:#1c1b1f}.placeholder[data-v-6da857c3]{color:#979797}.single-selector.disabled .content-text[data-v-6da857c3],.single-selector.disabled .placeholder[data-v-6da857c3]{color:#555}.filter-input[data-v-6da857c3]{width:100%;border:none;outline:none;color:#1c1b1f;font-family:Roboto;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.5px;height:24px;padding:0}.default-suffix-pic[data-v-6da857c3]{width:100%;height:100%}.prefix-wrapper[data-v-6da857c3],.suffix-wrapper[data-v-6da857c3]{display:flex;align-items:center;column-gap:4px;flex-shrink:0;min-width:24px;width:fit-content;height:24px}.rotate-0[data-v-6da857c3]{transform:rotate(0);transition:all .3s}.rotate-180[data-v-6da857c3]{transform:rotate(180deg)}.clear-icon[data-v-6da857c3]{width:20px;height:20px;opacity:.7;cursor:pointer}.clear-icon[data-v-6da857c3]:hover{opacity:1}.single-selector-dropdown[data-v-6da857c3]{width:inherit;height:fit-content;max-height:233px;padding:8px 11px;box-sizing:border-box;border-radius:4px;border:1px solid #BCCCDC;background:#fff;overflow:auto;position:absolute;z-index:1000;top:50px;left:0}.no-data-notes[data-v-6da857c3]{width:100%;box-sizing:border-box;padding:12px 8px;border-radius:4px;color:#979797;font-family:Roboto;font-size:16px;font-weight:500;line-height:19px;text-align:center}.dropdown-item[data-v-6da857c3]{width:100%;box-sizing:border-box;padding:12px 8px;border-radius:4px;color:#1c1b1f;font-family:Roboto;font-size:16px;font-weight:400;line-height:19px}.dropdown-item[data-v-6da857c3]:hover{background:#faebe6}.dropdown-item.selected[data-v-6da857c3]{font-weight:600}.message-container[data-v-6da857c3]{width:100%;box-sizing:border-box;font-family:Roboto;font-size:16px;font-weight:400;line-height:19px}.message-container.error[data-v-6da857c3]{color:#de583f}.message-container.alert[data-v-6da857c3]{color:#e0961e}@media only screen and (max-width:767px){.single-selector-unit-wrapper[data-v-6da857c3]{row-gap:4px}.single-selector[data-v-6da857c3]{column-gap:8px;padding:8px 12px 8px 14px}.selected-content[data-v-6da857c3]{font-size:14px;line-height:20px;letter-spacing:.25px}.filter-input[data-v-6da857c3]{font-size:14px;font-weight:400;line-height:20px;letter-spacing:.25px;height:20px}.prefix-wrapper[data-v-6da857c3],.suffix-wrapper[data-v-6da857c3]{min-width:20px;height:20px;display:flex;align-items:center;column-gap:0px;flex-shrink:0}.clear-icon[data-v-6da857c3]{width:36px;height:36px;right:32px;box-sizing:border-box;padding:10px}.single-selector-dropdown[data-v-6da857c3]{max-height:176px;padding:7px;top:40px}.no-data-notes[data-v-6da857c3]{font-size:14px;line-height:20px;letter-spacing:.25px}.dropdown-item[data-v-6da857c3]{padding:6px 4px;font-size:14px;font-weight:400;line-height:20px;letter-spacing:.25px}.message-container[data-v-6da857c3]{font-size:14px;line-height:16px}}.component-loading-spinner{position:absolute;top:0;left:0;width:100%;height:100%;background:#fffc;display:flex;justify-content:center;align-items:center;z-index:1000}.component-loading-spinner:after{content:"";width:30px;height:30px;border:3px solid #ccc;border-top-color:#20a8c3;border-radius:100%;animation:spin 2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
(function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.PNSComponentLibrary={},r.Vue))})(this,function(r,e){"use strict";const y="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.11973%209.29055L11.9997%2013.1705L15.8797%209.29055C16.2697%208.90055%2016.8997%208.90055%2017.2897%209.29055C17.6797%209.68055%2017.6797%2010.3105%2017.2897%2010.7005L12.6997%2015.2905C12.3097%2015.6805%2011.6797%2015.6805%2011.2897%2015.2905L6.69973%2010.7005C6.30973%2010.3105%206.30973%209.68055%206.69973%209.29055C7.08973%208.91055%207.72973%208.90055%208.11973%209.29055Z'%20fill='black'/%3e%3c/svg%3e",T=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),h="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4130_71343'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20y='20'%20width='20'%20height='20'%20transform='rotate(-90%200%2020)'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4130_71343)'%3e%3cpath%20d='M12.8112%2010L7.8112%2015L6.64453%2013.8333L10.4779%2010L6.64453%206.16667L7.8112%205L12.8112%2010Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/svg%3e",U=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4698_42665)'%3e%3cpath%20d='M15.8333%203.33464H15V1.66797H13.3333V3.33464H6.66667V1.66797H5V3.33464H4.16667C3.24167%203.33464%202.50833%204.08464%202.50833%205.0013L2.5%2016.668C2.5%2017.5846%203.24167%2018.3346%204.16667%2018.3346H15.8333C16.75%2018.3346%2017.5%2017.5846%2017.5%2016.668V5.0013C17.5%204.08464%2016.75%203.33464%2015.8333%203.33464ZM15.8333%2016.668H4.16667V8.33464H15.8333V16.668ZM15.8333%206.66797H4.16667V5.0013H15.8333V6.66797ZM10%2010.8346H14.1667V15.0013H10V10.8346Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4698_42665'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"})),A=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4655_62118)'%3e%3cpath%20d='M12.9167%2011.6667H12.2583L12.025%2011.4417C12.8417%2010.4917%2013.3333%209.25833%2013.3333%207.91667C13.3333%204.925%2010.9083%202.5%207.91667%202.5C4.925%202.5%202.5%204.925%202.5%207.91667C2.5%2010.9083%204.925%2013.3333%207.91667%2013.3333C9.25833%2013.3333%2010.4917%2012.8417%2011.4417%2012.025L11.6667%2012.2583V12.9167L15.8333%2017.075L17.075%2015.8333L12.9167%2011.6667ZM7.91667%2011.6667C5.84167%2011.6667%204.16667%209.99167%204.16667%207.91667C4.16667%205.84167%205.84167%204.16667%207.91667%204.16667C9.99167%204.16667%2011.6667%205.84167%2011.6667%207.91667C11.6667%209.99167%209.99167%2011.6667%207.91667%2011.6667Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4655_62118'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"})),b="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4479_76910'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4479_76910)'%3e%3cpath%20d='M10%2012.8151L5%207.8151L6.16667%206.64844L10%2010.4818L13.8333%206.64844L15%207.8151L10%2012.8151Z'%20fill='%2320A8C3'/%3e%3c/g%3e%3c/svg%3e",I=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})),k="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4276_5653'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4276_5653)'%3e%3cpath%20d='M10%2012.8151L5%207.8151L6.16667%206.64844L10%2010.4818L13.8333%206.64844L15%207.8151L10%2012.8151Z'%20fill='%231E4670'/%3e%3c/g%3e%3c/svg%3e",R=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"})),C="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_2631_18409'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2631_18409)'%3e%3cpath%20d='M12%2015.3766L6%209.37656L7.4%207.97656L12%2012.5766L16.6%207.97656L18%209.37656L12%2015.3766Z'%20fill='%23555555'/%3e%3c/g%3e%3c/svg%3e",F=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4705_71801'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4705_71801)'%3e%3cpath%20d='M10.0026%2013.3359C11.0443%2013.3359%2011.9298%2012.9715%2012.6593%2012.2426C13.3882%2011.5132%2013.7526%2010.6276%2013.7526%209.58594C13.7526%208.54427%2013.3882%207.65872%2012.6593%206.92927C11.9298%206.20038%2011.0443%205.83594%2010.0026%205.83594C8.96094%205.83594%208.07538%206.20038%207.34594%206.92927C6.61705%207.65872%206.2526%208.54427%206.2526%209.58594C6.2526%2010.6276%206.61705%2011.5132%207.34594%2012.2426C8.07538%2012.9715%208.96094%2013.3359%2010.0026%2013.3359ZM10.0026%2011.8359C9.3776%2011.8359%208.84649%2011.617%208.40927%2011.1793C7.97149%2010.742%207.7526%2010.2109%207.7526%209.58594C7.7526%208.96094%207.97149%208.42955%208.40927%207.99177C8.84649%207.55455%209.3776%207.33594%2010.0026%207.33594C10.6276%207.33594%2011.159%207.55455%2011.5968%207.99177C12.034%208.42955%2012.2526%208.96094%2012.2526%209.58594C12.2526%2010.2109%2012.034%2010.742%2011.5968%2011.1793C11.159%2011.617%2010.6276%2011.8359%2010.0026%2011.8359ZM10.0026%2015.8359C7.97483%2015.8359%206.1276%2015.2698%204.46094%2014.1376C2.79427%2013.0059%201.58594%2011.4887%200.835938%209.58594C1.58594%207.68316%202.79427%206.16566%204.46094%205.03344C6.1276%203.90177%207.97483%203.33594%2010.0026%203.33594C12.0304%203.33594%2013.8776%203.90177%2015.5443%205.03344C17.2109%206.16566%2018.4193%207.68316%2019.1693%209.58594C18.4193%2011.4887%2017.2109%2013.0059%2015.5443%2014.1376C13.8776%2015.2698%2012.0304%2015.8359%2010.0026%2015.8359ZM10.0026%2014.1693C11.572%2014.1693%2013.0132%2013.7559%2014.3259%2012.9293C15.6382%2012.1032%2016.6415%2010.9887%2017.3359%209.58594C16.6415%208.18316%2015.6382%207.06844%2014.3259%206.24177C13.0132%205.41566%2011.572%205.0026%2010.0026%205.0026C8.43316%205.0026%206.99205%205.41566%205.67927%206.24177C4.36705%207.06844%203.36372%208.18316%202.66927%209.58594C3.36372%2010.9887%204.36705%2012.1032%205.67927%2012.9293C6.99205%2013.7559%208.43316%2014.1693%2010.0026%2014.1693Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"})),$=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4705_71805'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4705_71805)'%3e%3cpath%20d='M13.4193%2011.0859L12.2109%209.8776C12.3359%209.22483%2012.1484%208.61372%2011.6484%208.04427C11.1484%207.47483%2010.5026%207.2526%209.71094%207.3776L8.5026%206.16927C8.73872%206.05816%208.9783%205.97483%209.22135%205.91927C9.46441%205.86372%209.72483%205.83594%2010.0026%205.83594C11.0443%205.83594%2011.9297%206.20052%2012.6589%206.92969C13.388%207.65885%2013.7526%208.54427%2013.7526%209.58594C13.7526%209.86372%2013.7248%2010.1241%2013.6693%2010.3672C13.6137%2010.6102%2013.5304%2010.8498%2013.4193%2011.0859ZM16.0859%2013.7109L14.8776%2012.5443C15.4054%2012.1415%2015.8741%2011.7005%2016.2839%2011.2214C16.6936%2010.7422%2017.0443%2010.197%2017.3359%209.58594C16.6415%208.18316%2015.645%207.06858%2014.3464%206.24219C13.0477%205.4158%2011.5998%205.0026%2010.0026%205.0026C9.59983%205.0026%209.20399%205.03038%208.8151%205.08594C8.42622%205.14149%208.04427%205.22483%207.66927%205.33594L6.3776%204.04427C6.94705%203.80816%207.53038%203.63108%208.1276%203.51302C8.72483%203.39497%209.34983%203.33594%2010.0026%203.33594C12.0998%203.33594%2013.9679%203.9158%2015.6068%205.07552C17.2457%206.23524%2018.4332%207.73872%2019.1693%209.58594C18.8498%2010.4054%2018.4297%2011.1658%2017.9089%2011.8672C17.388%2012.5686%2016.7804%2013.1832%2016.0859%2013.7109ZM16.5026%2018.8359L13.0026%2015.3776C12.5165%2015.5304%2012.0269%2015.645%2011.5339%2015.7214C11.0408%2015.7977%2010.5304%2015.8359%2010.0026%2015.8359C7.90538%2015.8359%206.03733%2015.2561%204.39844%2014.0964C2.75955%2012.9366%201.57205%2011.4332%200.835938%209.58594C1.1276%208.84983%201.49566%208.1658%201.9401%207.53385C2.38455%206.90191%202.89149%206.33594%203.46094%205.83594L1.16927%203.5026L2.33594%202.33594L17.6693%2017.6693L16.5026%2018.8359ZM4.6276%207.0026C4.22483%207.36372%203.85677%207.75955%203.52344%208.1901C3.1901%208.62066%202.90538%209.08594%202.66927%209.58594C3.36372%2010.9887%204.36024%2012.1033%205.65885%2012.9297C6.95747%2013.7561%208.40538%2014.1693%2010.0026%2014.1693C10.2804%2014.1693%2010.5512%2014.1519%2010.8151%2014.1172C11.079%2014.0825%2011.3498%2014.0443%2011.6276%2014.0026L10.8776%2013.2109C10.7248%2013.2526%2010.579%2013.2839%2010.4401%2013.3047C10.3012%2013.3255%2010.1554%2013.3359%2010.0026%2013.3359C8.96094%2013.3359%208.07552%2012.9714%207.34635%2012.2422C6.61719%2011.513%206.2526%2010.6276%206.2526%209.58594C6.2526%209.43316%206.26302%209.28733%206.28385%209.14844C6.30469%209.00955%206.33594%208.86372%206.3776%208.71094L4.6276%207.0026Z'%20fill='%231C1B1F'/%3e%3c/g%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"})),v="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2451_26188)'%3e%3cpath%20d='M12%202C6.48%202%202%206.48%202%2012C2%2017.52%206.48%2022%2012%2022C17.52%2022%2022%2017.52%2022%2012C22%206.48%2017.52%202%2012%202ZM10%2017L5%2012L6.41%2010.59L10%2014.17L17.59%206.58L19%208L10%2017Z'%20fill='%2384BC3B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2451_26188'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",K=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),f="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4568_73894'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4568_73894)'%3e%3cpath%20d='M10%2012.8151L5%207.8151L6.16667%206.64844L10%2010.4818L13.8333%206.64844L15%207.8151L10%2012.8151Z'%20fill='%23979797'/%3e%3c/g%3e%3c/svg%3e",q=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"})),m="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4130_71343'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20y='20'%20width='20'%20height='20'%20transform='rotate(-90%200%2020)'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4130_71343)'%3e%3cpath%20d='M12.8112%2010L7.8112%2015L6.64453%2013.8333L10.4779%2010L6.64453%206.16667L7.8112%205L12.8112%2010Z'%20fill='%23979797'/%3e%3c/g%3e%3c/svg%3e",G=Object.freeze(Object.defineProperty({__proto__:null,default:m},Symbol.toStringTag,{value:"Module"})),w="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2451_26209)'%3e%3cpath%20d='M12%202C6.48%202%202%206.48%202%2012C2%2017.52%206.48%2022%2012%2022C17.52%2022%2022%2017.52%2022%2012C22%206.48%2017.52%202%2012%202ZM13%2017H11V11H13V17ZM13%209H11V7H13V9Z'%20fill='%233498DB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2451_26209'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Q=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),u="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4655_66375'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='16'%20height='16'%3e%3crect%20width='16'%20height='16'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4655_66375)'%3e%3cpath%20d='M5.5987%2011.3359L7.9987%208.93594L10.3987%2011.3359L11.332%2010.4026L8.93203%208.0026L11.332%205.6026L10.3987%204.66927L7.9987%207.06927L5.5987%204.66927L4.66536%205.6026L7.06536%208.0026L4.66536%2010.4026L5.5987%2011.3359ZM7.9987%2014.6693C7.07648%2014.6693%206.20981%2014.4943%205.3987%2014.1443C4.58759%2013.7943%203.88203%2013.3193%203.28203%2012.7193C2.68203%2012.1193%202.20703%2011.4137%201.85703%2010.6026C1.50703%209.79149%201.33203%208.92483%201.33203%208.0026C1.33203%207.08038%201.50703%206.21372%201.85703%205.4026C2.20703%204.59149%202.68203%203.88594%203.28203%203.28594C3.88203%202.68594%204.58759%202.21094%205.3987%201.86094C6.20981%201.51094%207.07648%201.33594%207.9987%201.33594C8.92092%201.33594%209.78759%201.51094%2010.5987%201.86094C11.4098%202.21094%2012.1154%202.68594%2012.7154%203.28594C13.3154%203.88594%2013.7904%204.59149%2014.1404%205.4026C14.4904%206.21372%2014.6654%207.08038%2014.6654%208.0026C14.6654%208.92483%2014.4904%209.79149%2014.1404%2010.6026C13.7904%2011.4137%2013.3154%2012.1193%2012.7154%2012.7193C12.1154%2013.3193%2011.4098%2013.7943%2010.5987%2014.1443C9.78759%2014.4943%208.92092%2014.6693%207.9987%2014.6693ZM7.9987%2013.3359C9.48759%2013.3359%2010.7487%2012.8193%2011.782%2011.7859C12.8154%2010.7526%2013.332%209.49149%2013.332%208.0026C13.332%206.51372%2012.8154%205.2526%2011.782%204.21927C10.7487%203.18594%209.48759%202.66927%207.9987%202.66927C6.50981%202.66927%205.2487%203.18594%204.21536%204.21927C3.18203%205.2526%202.66536%206.51372%202.66536%208.0026C2.66536%209.49149%203.18203%2010.7526%204.21536%2011.7859C5.2487%2012.8193%206.50981%2013.3359%207.9987%2013.3359Z'%20fill='%23555555'/%3e%3c/g%3e%3c/svg%3e",X=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),x="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2557_13935)'%3e%3cpath%20d='M15.8332%205.33906L14.6582%204.16406L9.99984%208.8224L5.3415%204.16406L4.1665%205.33906L8.82484%209.9974L4.1665%2014.6557L5.3415%2015.8307L9.99984%2011.1724L14.6582%2015.8307L15.8332%2014.6557L11.1748%209.9974L15.8332%205.33906Z'%20fill='%23292929'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2557_13935'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Y=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})),L="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2451_26202)'%3e%3cpath%20d='M12%202C6.47%202%202%206.47%202%2012C2%2017.53%206.47%2022%2012%2022C17.53%2022%2022%2017.53%2022%2012C22%206.47%2017.53%202%2012%202ZM17%2015.59L15.59%2017L12%2013.41L8.41%2017L7%2015.59L10.59%2012L7%208.41L8.41%207L12%2010.59L15.59%207L17%208.41L13.41%2012L17%2015.59Z'%20fill='%23DE583F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2451_26202'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ee=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"})),S="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4479_76907'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4479_76907)'%3e%3cpath%20d='M10%2012.8151L5%207.8151L6.16667%206.64844L10%2010.4818L13.8333%206.64844L15%207.8151L10%2012.8151Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",te=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),B="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1771_11330)'%3e%3cpath%20d='M1%2021H23L12%202L1%2021ZM13%2018H11V16H13V18ZM13%2014H11V10H13V14Z'%20fill='%23E0961E'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1771_11330'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",oe=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"})),p=(t,o)=>{const i=t.__vccOpts||t;for(const[a,n]of o)i[a]=n;return i},ie={props:{content:String,build_in_theme:{type:String,default:"blue"},title:{type:String,default:""},customized_alert_icon_src:{type:String,default:""},customized_class:{type:String,default:""},with_close_btn:{type:Boolean,default:!0},mounted_programmatically:{type:Boolean,default:!1},hide_after:{type:Number,default:0}},mounted(){console.log("auto hide",!this.hide_after,typeof this.hide_after),this.hide_after&&typeof this.hide_after=="number"&&this.autoClose()},computed:{alert_icon_src(){return this.customized_alert_icon_src?this.customized_alert_icon_src:this.build_in_theme=="blue"?w:this.build_in_theme=="yellow"?B:this.build_in_theme=="red"?L:this.build_in_theme=="green"?v:w},theme_class(){return this.build_in_theme}},emits:["close"],methods:{autoClose(){setTimeout(()=>{this.manuallyClose()},this.hide_after),this.hide_after&&(this.$el.classList.add("fade-out"),this.$el.style.setProperty("--fade-out-duration-ms",`${this.hide_after}ms`))},manuallyClose(){if(this.mounted_programmatically){const o=this.$el?this.$el.parentElement:null;if(o){o.remove();var t=this.$attrs.notification_instances_collection[this.$attrs.id];t.unmount(),t._container=null,t=null,delete this.$attrs.notification_instances_collection[this.$attrs.id]}}else this.$emit("close",this.$el)}}},se={class:"prefix-icon-container"},ne=["src"],le={class:"notifiction-text"},re={class:"content-wrapper"},de={key:0,class:"title"},ae={key:0,class:"content-details"},ce=["innerHTML"],_e={class:"close-btn-container"};function he(t,o,i,a,n,s){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["simplified-notification",s.theme_class,i.customized_class])},[e.createElementVNode("div",se,[e.createElementVNode("img",{src:s.alert_icon_src,class:"prefix_icon"},null,8,ne)]),e.createElementVNode("div",le,[e.createElementVNode("div",re,[i.title?(e.openBlock(),e.createElementBlock("div",de,e.toDisplayString(i.title),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"content",{},()=>[i.content?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",{innerHTML:i.content},null,8,ce)])):e.createCommentVNode("",!0)],!0)])]),e.createElementVNode("div",_e,[i.with_close_btn?(e.openBlock(),e.createElementBlock("img",{key:0,src:x,class:"close-btn",onClick:o[0]||(o[0]=(...l)=>s.manuallyClose&&s.manuallyClose(...l))})):e.createCommentVNode("",!0)])],2)}const E=p(ie,[["render",he],["__scopeId","data-v-2eec1ba2"]]);function pe(){const t=e.ref(0),o=e.ref(0),i=()=>{t.value=window.innerWidth,o.value=window.innerHeight};return e.onMounted(()=>{i(),window.addEventListener("resize",i)}),e.onUnmounted(()=>{window.removeEventListener("resize",i)}),{width:t,height:o}}const fe={name:"ResponsiveButton",inheritAttrs:!1,props:{display_name:{type:String,default:"button"},size:{type:String,default:"small"},width_type:{type:String,default:"fit-content"},build_in_theme:{type:String,default:"outlined-primary"},customized_class:{type:String,default:""},disabled:{type:Boolean,default:!1},dropdown_options:{type:Array,default:()=>[]},is_dropdown_option:{type:Boolean,default:!1}},mounted(){!this.is_dropdown_option&&this.has_dropdown&&(document.addEventListener("click",t=>this.closeWhenClickOutsideDropdownButton(t)),this.nested_dropdown_option_button_history_stack=[]),this.is_dropdown_option_hovered&&this.has_dropdown&&(this.is_dropdown_visibile=!0)},unmounted(){!this.is_dropdown_option&&this.has_dropdown&&document.removeEventListener("click",t=>this.closeWhenClickOutsideDropdownButton(t))},setup(){const{width:t}=pe();return{width:t}},data(){return{is_dropdown_visibile:!1,currently_hovered_dropdown_option_display_name:"",dropdown_position_data:{},nested_dropdown_option_button_history_stack:null,loading:!1}},emits:["click","update-currently-hovered-dropdown-option","add-nested-dropdown-history-stack","remove-nested-dropdown-history-stack"],computed:{has_prefix(){return this.$slots.prefix},has_suffix(){return this.$slots.suffix},has_dropdown(){return this.dropdown_options&&Array.isArray(this.dropdown_options)&&this.dropdown_options.length>0},dynamicDefaultDropdownDownArrow(){return this.build_in_theme=="filled-primary"||this.build_in_theme=="filled-secondary"?S:this.build_in_theme=="outlined-secondary"||this.build_in_theme=="text-secondary"?this.disabled?f:b:this.disabled?f:k},web_version(){return this.width>1024},mobile_version(){return this.width<=767},is_dropdown_option_hovered(){if(this.is_dropdown_option&&this.has_dropdown&&!this.$attrs.currently_hovered_dropdown_option_display_name&&this.$attrs.nested_dropdown_option_button_history_stack&&this.$attrs.nested_dropdown_option_button_history_stack.length>0){for(const t of this.$attrs.nested_dropdown_option_button_history_stack)if(t.display_name==this.display_name&&JSON.stringify(t.dropdown_options)==JSON.stringify(this.dropdown_options))return this.$emit("update-currently-hovered-dropdown-option",this.display_name),this.is_dropdown_visibile=!0,setTimeout(()=>{this.calculateDropdownPosition()},100),!0}return this.is_dropdown_option&&this.$attrs.currently_hovered_dropdown_option_display_name==this.display_name},show_dropdown(){return this.is_dropdown_visibile&&this.has_dropdown},non_web_version_nested_dropdown_option_shown(){return this.nested_dropdown_option_button_history_stack&&this.nested_dropdown_option_button_history_stack.length>0?this.nested_dropdown_option_button_history_stack[this.nested_dropdown_option_button_history_stack.length-1].display_name:null},non_web_version_dropdown_options(){return this.nested_dropdown_option_button_history_stack&&this.nested_dropdown_option_button_history_stack.length>0?this.nested_dropdown_option_button_history_stack[this.nested_dropdown_option_button_history_stack.length-1].dropdown_options:this.dropdown_options}},watch:{is_dropdown_option_hovered(t){this.has_dropdown&&!this.disabled&&(this.is_dropdown_visibile=t,t?this.$emit("add-nested-dropdown-history-stack",{display_name:this.display_name,dropdown_options:this.dropdown_options}):this.$emit("remove-nested-dropdown-history-stack",{display_name:this.display_name,dropdown_options:this.dropdown_options}))},show_dropdown(t){t?this.$nextTick(()=>{this.calculateDropdownPosition()}):(this.dropdown_position_data={},this.currently_hovered_dropdown_option_display_name="",this.is_dropdown_option||(this.nested_dropdown_option_button_history_stack=[]))}},methods:{closeWhenClickOutsideDropdownButton(t){this.show_dropdown&&this.$refs["responsive-button"]&&!this.$refs["responsive-button"].contains(t.target)&&this.$refs["responsive-button-dropdown"]&&!this.$refs["responsive-button-dropdown"].contains(t.target)&&(this.is_dropdown_visibile=!1)},handleClick(){this.disabled||(this.has_dropdown?this.is_dropdown_option||(this.is_dropdown_visibile=!this.is_dropdown_visibile):this.$emit("click",this.display_name))},handleMouseEnterButton(){this.is_dropdown_option&&this.$emit("update-currently-hovered-dropdown-option",this.display_name)},updateCurrentlyHoveredDropdownOption(t){this.currently_hovered_dropdown_option_display_name=t},updateNestedDropdownHistoryStack(t){this.is_dropdown_option?this.$emit("add-nested-dropdown-history-stack",t):this.nested_dropdown_option_button_history_stack.push(t)},removeNestedDropdownHistoryStack(t){if(this.is_dropdown_option)this.$emit("remove-nested-dropdown-history-stack",t);else for(let o=this.nested_dropdown_option_button_history_stack.length-1;o>=0;o--){const i=this.nested_dropdown_option_button_history_stack[o];if(i.display_name==t.display_name&&JSON.stringify(i.dropdown_options)==JSON.stringify(t.dropdown_options)){this.nested_dropdown_option_button_history_stack.splice(o);break}}},nonWebRemoveNestedDropdownHistoryStack(t){setTimeout(()=>{this.removeNestedDropdownHistoryStack(t)},50)},clickWebDropdownOption(t){this.$emit("click",t),this.is_dropdown_option||(this.is_dropdown_visibile=!1)},clickNonWebDropdownOption(t){t.disabled||(t.dropdown_options?setTimeout(()=>{var o;for(let i=this.nested_dropdown_option_button_history_stack.length-1;i>=0;i--){const a=this.nested_dropdown_option_button_history_stack[i];if(a.display_name==t.display_name&&JSON.stringify(a.dropdown_options)==JSON.stringify(t.dropdown_options)){o=!0,this.nested_dropdown_option_button_history_stack.splice(i);break}}o||this.nested_dropdown_option_button_history_stack.push({display_name:t.display_name,dropdown_options:t.dropdown_options})},50):(this.$emit("click",t.display_name),this.is_dropdown_visibile=!1))},calculateDropdownPosition(){const t={},o=this.$refs["responsive-button"],i=this.$refs["responsive-button-dropdown"];if(o&&i){const a=window.innerWidth,n=window.innerHeight,s=o.getBoundingClientRect(),l=s.right,_=s.bottom,d=s.left,c=s.width,j=s.height,P=i.getBoundingClientRect(),H=P.height,Z=P.width;this.is_dropdown_option?(n-_>H+(this.mobile_version?4:8)?t.top="0px":t.bottom="0px",a-l>Z+(this.mobile_version?4:8)?t.left=c+12+8+"px":t.right=c+12+8+"px"):(n-_>H+(this.mobile_version?4:8)?t.top=j+(this.mobile_version?4:8)+"px":t.bottom=j+(this.mobile_version?4:8)+"px",a-d>Z+(this.mobile_version?4:8)?t.left="0px":t.right="0px")}this.dropdown_position_data=t},setLoading(t){this.loading=t}},expose:["setLoading"]},me={class:"button-content"},we={key:0,class:"prefix-wrapper"},ue={key:1,class:"button-name"},ge={key:2,class:"suffix-wrapper"},ye={key:3,class:"outest-responsive-dropdown-button-default-suffix suffix-wrapper"},be=["src"],ke={key:0,class:"nested-dropdown-default-suffix suffix-wrapper"},Ce={key:0,src:h},ve={key:1,src:m},xe=["onClick"],Le={class:"non-web-dropdown-option-display-name"},Se={key:0,class:"non-web-responsive-nested-dropdown-option-default-suffix suffix-wrapper"},Be={key:0,src:h},Ee={key:1,src:m};function Oe(t,o,i,a,n,s){const l=e.resolveComponent("ResponsiveButton",!0),_=e.resolveDirective("component-loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["responsive-button-wrapper",i.width_type]),ref:"responsive-button-wrapper"},[e.createElementVNode("div",{class:e.normalizeClass(["responsive-button",i.size,i.width_type,{disabled:i.disabled},{"no-display-name":!i.display_name},{"has-prefix":s.has_prefix},{"has-suffix":s.has_suffix},i.build_in_theme,i.customized_class,{hovered:s.is_dropdown_option_hovered},{focused:s.show_dropdown}]),ref:"responsive-button",onClick:o[0]||(o[0]=d=>s.handleClick()),onMouseenter:o[1]||(o[1]=d=>s.handleMouseEnterButton())},[e.createElementVNode("div",me,[t.$slots.prefix?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),i.display_name?(e.openBlock(),e.createElementBlock("div",ue,e.toDisplayString(i.display_name),1)):e.createCommentVNode("",!0),t.$slots.suffix?(e.openBlock(),e.createElementBlock("div",ge,[e.renderSlot(t.$slots,"suffix",{},void 0,!0)])):e.createCommentVNode("",!0),!i.is_dropdown_option&&s.has_dropdown?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("img",{src:s.dynamicDefaultDropdownDownArrow,class:e.normalizeClass(["rotate-0",{"rotate-180":s.show_dropdown}])},null,10,be)])):e.createCommentVNode("",!0)]),i.is_dropdown_option&&s.has_dropdown?(e.openBlock(),e.createElementBlock("div",ke,[i.disabled?(e.openBlock(),e.createElementBlock("img",ve)):(e.openBlock(),e.createElementBlock("img",Ce))])):e.createCommentVNode("",!0)],34),s.web_version&&s.show_dropdown?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"responsive-button-dropdown",class:e.normalizeClass(["responsive-button-dropdown",{"sub-dropdown":i.is_dropdown_option}]),style:e.normalizeStyle(n.dropdown_position_data)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.dropdown_options,d=>(e.openBlock(),e.createBlock(l,e.mergeProps({key:`${i.display_name.replaceAll(" ","-")}-dropdown-item-${d.display_name.replaceAll(" ","-")}`,ref_for:!0},d,{customized_class:"responsive-button-dropdown-option",width_type:"fill-whole",is_dropdown_option:!0,nested_dropdown_option_button_history_stack:i.is_dropdown_option?t.$attrs.nested_dropdown_option_button_history_stack:n.nested_dropdown_option_button_history_stack,currently_hovered_dropdown_option_display_name:n.currently_hovered_dropdown_option_display_name,onUpdateCurrentlyHoveredDropdownOption:o[2]||(o[2]=c=>s.updateCurrentlyHoveredDropdownOption(c)),onClick:o[3]||(o[3]=c=>s.clickWebDropdownOption(c)),onAddNestedDropdownHistoryStack:o[4]||(o[4]=c=>s.updateNestedDropdownHistoryStack(c)),onRemoveNestedDropdownHistoryStack:o[5]||(o[5]=c=>s.removeNestedDropdownHistoryStack(c))}),null,16,["nested_dropdown_option_button_history_stack","currently_hovered_dropdown_option_display_name"]))),128))],6)):!s.web_version&&s.show_dropdown?(e.openBlock(),e.createElementBlock("div",{key:1,ref:"responsive-button-dropdown",class:e.normalizeClass(["responsive-button-dropdown",{"sub-dropdown":i.is_dropdown_option}]),style:e.normalizeStyle(n.dropdown_position_data)},[s.non_web_version_nested_dropdown_option_shown?(e.openBlock(),e.createElementBlock("div",{key:0,class:"non-web-responsive-button-nested-dropdown-button",onClick:o[6]||(o[6]=d=>s.nonWebRemoveNestedDropdownHistoryStack({display_name:s.non_web_version_nested_dropdown_option_shown,dropdown_options:s.non_web_version_dropdown_options}))},[o[7]||(o[7]=e.createElementVNode("div",{class:"non-web-responsive-nested-dropdown-button-default-prefeix prefix-wrapper"},[e.createElementVNode("img",{src:h,class:"rotate-180"})],-1)),e.createElementVNode("div",null,e.toDisplayString(s.non_web_version_nested_dropdown_option_shown),1)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.non_web_version_dropdown_options,d=>(e.openBlock(),e.createElementBlock("div",{key:`${i.display_name.replaceAll(" ","-")}-dropdown-item-${d.display_name.replaceAll(" ","-")}`,class:e.normalizeClass(["non-web-responsive-button-dropdown-option",{disabled:d.disabled}]),onClick:c=>s.clickNonWebDropdownOption(d)},[e.createElementVNode("div",Le,e.toDisplayString(d.display_name),1),d.dropdown_options?(e.openBlock(),e.createElementBlock("div",Se,[d.disabled?(e.openBlock(),e.createElementBlock("img",Ee)):(e.openBlock(),e.createElementBlock("img",Be))])):e.createCommentVNode("",!0)],10,xe))),128))],6)):e.createCommentVNode("",!0)],2)),[[_,n.loading]])}const O=p(fe,[["render",Oe],["__scopeId","data-v-dbbab9e8"]]),Ve={props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},placeholder:{type:String,default:"Enter"},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},mounted(){document.addEventListener("click",t=>this.blurWhenClickOutside(t))},unmounted(){document.removeEventListener("click",t=>this.blurWhenClickOutside(t))},data(){return{value:this.modelValue,hovered:!1,is_focus:!1,show_alert:!1,show_error:!1,message_notification_text:""}},computed:{show_clear_icon(){return this.clearable&&this.value&&!this.disabled&&(this.hovered||this.is_focus)}},emits:["update:modelValue","input","change","focus","blur","clear"],watch:{modelValue(t){this.value=t},value(t){console.log("value: ",this.clearable&&t&&!this.disabled),this.$emit("update:modelValue",t),this.$emit("input",t)},is_focus(t){t?(this.$refs["input-box"].focus(),console.log("focus"),this.$emit("focus")):(this.$refs["input-box"].blur(),console.log("blur"),this.$emit("blur"))}},methods:{handleClickInputBoxUnit(t){this.is_focus=!0,document.activeElement!=this.$refs["input-box"]&&this.$refs["input-box"].focus()},blurWhenClickOutside(t){this.is_focus&&!this.$refs["input-box-unit"].contains(t.target)&&(this.is_focus=!1)},handleKeydown(t){t.key==="Enter"&&this.$emit("change",this.value)},handleClearValue(){this.value="",this.$emit("clear")},focus(){this.is_focus=!0},blur(){this.is_focus=!1},alert(t){this.show_alert=!0,this.show_error=!1,this.message_notification_text=t},error(t){this.show_error=!0,this.show_alert=!1,this.message_notification_text=t},removeAlertOrErrorEffect(){this.show_alert=!1,this.show_error=!1,this.message_notification_text=""}},expose:["focus","blur","alert","error","removeAlertOrErrorEffect"]},De={class:"input-box-unit-wrapper"},Me={key:0,class:"prefix-wrapper"},Ne=["disabled","type","placeholder"];function ze(t,o,i,a,n,s){return e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",{class:e.normalizeClass(["input-box-unit",{"is-focus":n.is_focus},{"has-prefix":t.$slots.prefix},{"has-suffix":t.$slots.suffix},{disabled:i.disabled},{error:n.show_error},{alert:n.show_alert}]),ref:"input-box-unit",onMouseenter:o[3]||(o[3]=l=>n.hovered=!0),onMouseleave:o[4]||(o[4]=l=>n.hovered=!1),onClick:o[5]||(o[5]=l=>s.handleClickInputBoxUnit(l))},[t.$slots.prefix?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>n.value=l),class:e.normalizeClass(["input-box"]),ref:"input-box",disabled:i.disabled,type:i.type,placeholder:i.placeholder,onKeydown:o[1]||(o[1]=l=>s.handleKeydown(l))},null,40,Ne),[[e.vModelDynamic,n.value]]),t.$slots.suffix||s.show_clear_icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["suffix-wrapper",{"only-clear-icon":s.show_clear_icon&&!t.$slots.suffix},{"with-date-icon":i.type=="date"}])},[e.createElementVNode("img",{src:u,class:e.normalizeClass(["clear-icon",{hide:!s.show_clear_icon}]),onClick:o[2]||(o[2]=(...l)=>s.handleClearValue&&s.handleClearValue(...l))},null,2),e.renderSlot(t.$slots,"suffix",{},void 0,!0)],2)):e.createCommentVNode("",!0)],34),(n.show_alert||n.show_error)&&n.message_notification_text?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["message-container",{error:n.show_error},{alert:n.show_alert}])},e.toDisplayString(n.message_notification_text),3)):e.createCommentVNode("",!0)])}const V=p(Ve,[["render",ze],["__scopeId","data-v-8f8a50f7"]]),je={props:{modelValue:{type:String,default:""},options:{type:Array,default:()=>[]},filterable:{type:Boolean,default:!1},remote_search:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Select"},clearable:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loading_text:{type:String,default:"Loading"},no_data_text:{type:String,default:"No data"}},mounted(){document.addEventListener("click",t=>this.closeWhenClickOutsideSelector(t))},unmounted(){document.removeEventListener("click",t=>this.closeWhenClickOutsideSelector(t))},data(){return{selected_item:this.modelValue,selected_item_label:this.findCorrespondingLabelViaValue(this.modelValue),filter_keyword:"",is_focus:!1,hovered:!1,show_error:!1,show_alert:!1,message_notification_text:"",is_loading:this.loading}},computed:{default_dropdown_arrow_src(){return this.disabled?C:y},options_shown(){return this.remote_search?this.options:this.filter_keyword?this.options.filter(t=>JSON.stringify(t.value).toLowerCase().includes(this.filter_keyword.toLowerCase())||JSON.stringify(t.label).toLowerCase().includes(this.filter_keyword.toLowerCase())):this.options},show_clear_icon(){return this.clearable&&this.selected_item&&!this.disabled&&(this.hovered||this.is_focus)}},emits:["update:modelValue","change","remote-search","filter-change","visible-change","focus","blur","clear"],watch:{modelValue(t){this.selected_item=t},selected_item(t){this.$emit("update:modelValue",t),this.$emit("change",t),this.selected_item_label=this.findCorrespondingLabelViaValue(t),this.filter_keyword=""},filter_keyword(t){this.$emit("filter-change",t),this.remote_search&&this.$emit("remote-search",t)},is_focus(t){console.log("is_focus change",t),this.$emit("visible-change",t),t?(this.$emit("focus"),this.filterable&&this.$nextTick(()=>{var o;(o=this.$refs["filter-input"])==null||o.focus()})):this.$emit("blur")},loading(t){this.is_loading=t}},methods:{findCorrespondingLabelViaValue(t){var o=t;for(const i of this.options)i.value==t&&(o=i.label);return o},handleClickSingleSelector(){console.log("handleClickSingleSelector("),this.disabled||(this.is_focus=!this.is_focus)},handleSelectOption(t){this.selected_item=t.value,this.selected_item_label=t.label,this.is_focus=!1},closeWhenClickOutsideSelector(t){this.is_focus&&!this.$refs["single-selector"].contains(t.target)&&(this.is_focus=!1)},checkWhetherIsSelected(t){if(t.value==this.selected_item)return!0},handleClearValue(t){t.stopPropagation(),this.selected_item="",this.$emit("clear")},focus(){var t;this.disabled||(this.filterable&&((t=this.$refs["filter-input"])==null||t.focus()),this.is_focus=!0)},blur(){var t;this.filterable&&((t=this.$refs["filter-input"])==null||t.blur()),this.is_focus=!1},alert(t){this.show_error=!1,this.show_alert=!0,this.message_notification_text=t},error(t){this.show_alert=!1,this.show_error=!0,this.message_notification_text=t},removeAlertOrErrorEffect(){this.show_alert=!1,this.show_error=!1,this.message_notification_text=""},setDropdownContentLoading(t){this.is_loading=t}},expose:["focus","blur","alert","error","removeAlertOrErrorEffect","setDropdownContentLoading"]},Pe={class:"single-selector-unit-wrapper"},He={key:0,class:"prefix-wrapper"},Ze={class:e.normalizeClass(["suffix-wrapper"])},Te=["src"],Ue={key:1,class:"single-selector-dropdown"},We={key:0,class:"options-list"},Ae=["onClick"],Ie={key:1,class:"no-data-notes"};function Re(t,o,i,a,n,s){return e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",{ref:"single-selector",class:e.normalizeClass(["single-selector",{error:n.show_error},{alert:n.show_alert},{disabled:i.disabled},{"is-focus":n.is_focus},{"has-prefix":t.$slots.prefix},{"show-clear-icon":s.show_clear_icon}]),onClick:o[2]||(o[2]=(...l)=>s.handleClickSingleSelector&&s.handleClickSingleSelector(...l)),onMouseenter:o[3]||(o[3]=l=>n.hovered=!0),onMouseleave:o[4]||(o[4]=l=>n.hovered=!1)},[t.$slots.prefix?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["selected-content",n.selected_item?"content-text":"placeholder"])},[e.createElementVNode("span",{class:e.normalizeClass([{hide:n.is_focus&&i.filterable}])},e.toDisplayString(n.selected_item?n.selected_item_label:i.placeholder),3),e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(["filter-input",{hide:!(n.is_focus&&i.filterable)}]),ref:"filter-input","onUpdate:modelValue":o[0]||(o[0]=l=>n.filter_keyword=l)},null,2),[[e.vModelText,n.filter_keyword]])],2),e.createElementVNode("div",Ze,[e.createElementVNode("img",{src:u,class:e.normalizeClass(["clear-icon",{hide:!s.show_clear_icon}]),onClick:o[1]||(o[1]=(...l)=>s.handleClearValue&&s.handleClearValue(...l))},null,2),e.renderSlot(t.$slots,"suffix",{},()=>[e.createElementVNode("img",{src:s.default_dropdown_arrow_src,class:e.normalizeClass(["default-suffix-pic","rotate-0",{"rotate-180":n.is_focus&&!i.disabled}])},null,10,Te)],!0)]),n.is_focus?(e.openBlock(),e.createElementBlock("div",Ue,[s.options_shown&&s.options_shown.length>0?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options_shown,l=>(e.openBlock(),e.createElementBlock("div",{key:l.value,class:e.normalizeClass(["dropdown-item",{selected:s.checkWhetherIsSelected(l)}]),onClick:_=>s.handleSelectOption(l)},e.toDisplayString(l.label),11,Ae))),128))])):(e.openBlock(),e.createElementBlock("div",Ie,e.toDisplayString(n.is_loading?i.loading_text:i.no_data_text),1))])):e.createCommentVNode("",!0)],34),(n.show_alert||n.show_error)&&n.message_notification_text?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["message-container",{error:n.show_error},{alert:n.show_alert}])},e.toDisplayString(n.message_notification_text),3)):e.createCommentVNode("",!0)])}const D=p(je,[["render",Re],["__scopeId","data-v-6da857c3"]]),M={mounted(t,o){const i=document.createElement("div");i.classList.add("component-loading-spinner"),i.style.display="none",t._spinner=i,t.style.position="relative",t.appendChild(i),o.value&&(i.style.display="flex")},updated(t,o){o.value?t._spinner.style.display="flex":t._spinner.style.display="none"},unmounted(t){t.removeChild(t._spinner)}},N={SimplifiedNotification:E,ResponsiveButton:O,InputBox:V,SingleSelector:D},Fe={install:t=>{Object.keys(N).forEach(o=>{t.component(o,N[o])}),t.directive("component-loading",M)}},g=Object.assign({"./assets/icons/black_arrow_down.svg":T,"./assets/icons/black_arrow_to_right.svg":U,"./assets/icons/black_calendar_icon.svg":W,"./assets/icons/black_magnifying_glass_icon.svg":A,"./assets/icons/cyan_arrow_down.svg":I,"./assets/icons/dark_blue_arrow_down.svg":R,"./assets/icons/dark_gray_arrow_down.svg":F,"./assets/icons/eye_icon.svg":J,"./assets/icons/eye_with_cross_icon.svg":$,"./assets/icons/green_notification_icon.svg":K,"./assets/icons/grey_arrow_down.svg":q,"./assets/icons/grey_arrow_to_right.svg":G,"./assets/icons/info_blue_icon.svg":Q,"./assets/icons/input_clear_icon.svg":X,"./assets/icons/notification_cross_icon.svg":Y,"./assets/icons/red_notification_icon.svg":ee,"./assets/icons/white_arrow_down.svg":te,"./assets/icons/yellow_notification_icon.svg":oe});var z={};for(const t in g){const o=t.split("/").pop().replace(".svg","");z[o]=g[t].default}r.InputBox=V,r.ResponsiveButton=O,r.SimplifiedNotification=E,r.SingleSelector=D,r.component_loading=M,r.default=Fe,r.icons=g,r.iconsMap=z,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pns-component-library",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "dist/pns-component-library.umd.js",
|
|
5
|
+
"module": "dist/pns-component-library.es.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"require": "./dist/pns-component-library.cjs.js",
|
|
9
|
+
"import": "./dist/pns-component-library.es.js",
|
|
10
|
+
"umd": "./dist/pns-component-library.umd.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "vite build",
|
|
17
|
+
"preview": "vite preview"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"vue": "^3.5.13"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
24
|
+
"vite": "^6.0.5",
|
|
25
|
+
"vite-plugin-css-injected-by-js": "^3.5.2"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"src/composables",
|
|
30
|
+
"src/directives",
|
|
31
|
+
"README.md"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/composables/useWindowSize.js
|
|
2
|
+
import { ref, onMounted, onUnmounted } from 'vue';
|
|
3
|
+
|
|
4
|
+
export function useWindowSize() {
|
|
5
|
+
const width = ref(0);
|
|
6
|
+
const height = ref(0);
|
|
7
|
+
|
|
8
|
+
const updateSize = () => {
|
|
9
|
+
width.value = window.innerWidth;
|
|
10
|
+
height.value = window.innerHeight;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
onMounted(() => {
|
|
14
|
+
updateSize(); // Initialize size on mount
|
|
15
|
+
window.addEventListener('resize', updateSize);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
onUnmounted(() => {
|
|
19
|
+
window.removeEventListener('resize', updateSize);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
return { width, height };
|
|
23
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const component_loading = {
|
|
2
|
+
mounted(el, binding) {
|
|
3
|
+
// Create a loading container
|
|
4
|
+
const spinner = document.createElement("div");
|
|
5
|
+
spinner.classList.add("component-loading-spinner");
|
|
6
|
+
spinner.style.display = "none"; // Initially hidden
|
|
7
|
+
el._spinner = spinner; // Store reference on the element
|
|
8
|
+
el.style.position = "relative"; // Ensure parent element has positioning
|
|
9
|
+
el.appendChild(spinner);
|
|
10
|
+
|
|
11
|
+
// Show or hide spinner based on binding value
|
|
12
|
+
if (binding.value) {
|
|
13
|
+
spinner.style.display = "flex";
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
updated(el, binding) {
|
|
17
|
+
// Toggle loading spinner
|
|
18
|
+
if (binding.value) {
|
|
19
|
+
el._spinner.style.display = "flex";
|
|
20
|
+
} else {
|
|
21
|
+
el._spinner.style.display = "none";
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
unmounted(el) {
|
|
25
|
+
// Cleanup: Remove spinner element
|
|
26
|
+
el.removeChild(el._spinner);
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default component_loading;
|